[03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:28]accept exits with 9 [03:18:28]New connection [03:18:28]New thread 3067358564 created [03:18:28]Thread 3067501924 joined [03:18:28]Waiting for new connection... [03:18:28] Sock 9.Parse request [03:18:28]Sock 9.Check first char [03:18:28]Sock 9.First char is OK [03:18:28]request: POST /json_proto HTTP/1.0 [03:18:28]Method: POST [03:18:28]URL: /json_proto [03:18:28]Method is POST - this is cgi request [03:18:28]url: /json_proto [03:18:28]query_string will be loaded in cgi processing [03:18:28]execute_cgi json_proto POST (null) [03:18:28]execute_cgi path=json_proto method=POST [03:18:28]POST find Content-Length [03:18:28]Host: 172.17.96.197:8080 [03:18:28]Content-Length: 676 [03:18:28]Content-Type: application/json [03:18:28] [03:18:28]POST finish read [03:18:28]Found Content-Length = 676 [03:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48443", "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.30, "quantity" : 3.300, "sum" : 212.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 212.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:28]execute_script... [03:18: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)48443", "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.30, "quantity" : 3.300, "sum" : 212.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 212.00, "total" : 212.00, "payments": [ { "type": 0, "sum" : 212.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:18:28]POST & json_proto [03:18:28]process_json_proto [03:18:28]json parsed OK: [03:18:28]protocol is kg_v1.0 [03:18:28]action value=close_receipt [03:18:28]process_action close_receipt [03:18:28]cmd_close_receipt [03:18:28]MH_GetDate [03:18:28]Write to MH i2c: F0 00 00 10 04 03 [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: F0 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: F0 09 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: F0 09 00 10 04 00 06 4B 1B 66 E0 85 7F 64 26 [03:18:28]GetLastDocTimeStamp 1713064624 [03:18:28]current date 1713064710 [03:18:28]FM_GetShiftState [03:18:28]SAM_PROTO_GetShiftState [03:18:28]wFMCommunicate request_size=4 [03:18:28]MH_SAM_APDU [03:18:28]CAPDU: 80 13 01 00 [03:18:28]Write to MH i2c: E2 08 00 11 04 80 13 01 00 00 00 00 00 92 [03:18:28]Write i2c OK [03:18:28]MH_I2C_Read... [03:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:28]Read from MH i2c: E2 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0E 00 [03:18:28]MH_I2C_Read... [03:18:28]Read from MH i2c: E2 0E 00 11 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2A [03:18:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [03:18:28]wFMCommunicate OK [03:18:28]SAM_PROTO_GetShiftState done [03:18:28]FM_GetShiftState done [03:18:28]opened in 1713054696 [03:18:28]opened+sec_in_day 1713141096 [03:18:28]quantity*price = 21219 [03:18:28]sum+1 = 21220 [03:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 212.00 Внесено: 212.00 СДАЧА: 0.00 НСП 1% : 1.88 НДС 12% : 22.53 Наличными: 212.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 10 14.04.2024 03:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112111 ФПД: 267328480981654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T031830&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112111&fm=267328480981654&tin=02508201610067®Number=0000000000094237&sum=21200 [03:18:29]StoreToDocumentArchive [03:18:29]shift 357 fd 112111 [03:18:29]save to /storage/0357/doc_00112111 [03:18:29]save last doc name /storage/0357/doc_00112111 to /storage/kkm_last_doc_name [03:18:29]save OK [03:18:29]Clear old archive folders... [03:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:18:29]tlvbuf is 019C0180 [03:18:29]SAM_PROTO_ClearQueue [03:18:29]wFMCommunicate request_size=4 [03:18:29]MH_SAM_APDU [03:18:29]CAPDU: 80 09 00 00 [03:18:29]Write to MH i2c: E2 08 00 1E 04 80 09 00 00 00 00 00 00 94 [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:18:29]Read from MH i2c: E2 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: E2 03 00 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: E2 03 00 1E 04 00 90 00 96 [03:18:29]RAPDU: 90 00 [03:18:29]wFMCommunicate OK [03:18:29]SAM_PROTO_ClearQueue done [03:18:29]KKMCreateOFDPacket [03:18:29]OFDProtocolAddRootSTLVToBuf [03:18:29]FM_MakeSignedData [03:18:29]FM_MakeSignedData [03:18:29]SAM_PROTO_SignData [03:18:29]wFMCommunicate request_size=4 [03:18:29]MH_SAM_APDU [03:18:29]CAPDU: 80 0D 01 02 [03:18:29]Write to MH i2c: E2 08 00 1F 04 80 0D 01 02 00 00 00 00 9C [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:18:29]Read from MH i2c: E2 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: E2 03 00 [03:18:29]MH_I2C_Read... [03:18:29]Read from MH i2c: E2 03 00 1F 04 00 90 00 97 [03:18:29]RAPDU: 90 00 [03:18:29]wFMCommunicate OK [03:18:29]wFMCommunicate request_size=255 [03:18:29]MH_SAM_APDU [03:18: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 E4 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E3 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 4B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B5 01 00 35 04 06 00 F3 [03:18:29]Write to MH i2c: E2 02 01 20 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 E4 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E3 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 4B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B5 01 00 35 04 06 00 F3 00 00 AF [03:18:29]Write i2c OK [03:18:29]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 03 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 03 00 20 04 00 90 00 98 [03:18:30]RAPDU: 90 00 [03:18:30]wFMCommunicate OK [03:18:30]wFMCommunicate request_size=10 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 0D 02 02 05 22 43 25 B2 96 [03:18:30]Write to MH i2c: E2 0D 00 21 04 80 0D 02 02 05 00 22 43 25 B2 96 00 00 7B [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 03 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 03 00 21 04 00 90 00 99 [03:18:30]RAPDU: 90 00 [03:18:30]wFMCommunicate OK [03:18:30]wFMCommunicate request_size=4 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 0D 03 02 [03:18:30]Write to MH i2c: E2 08 00 22 04 80 0D 03 02 00 00 00 00 A1 [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 0B 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 0B 00 22 04 00 5B BC FE CB A0 59 E3 AA 90 00 08 [03:18:30]RAPDU: 5B BC FE CB A0 59 E3 AA 90 00 [03:18:30]wFMCommunicate OK [03:18:30]SAM_PROTO_SignData done [03:18:30]FM_MakeSignedData done [03:18:30]CreateOFDProtocolMessage [03:18:30]wFMCommunicate request_size=4 [03:18:30]MH_SAM_APDU [03:18:30]CAPDU: 80 11 00 00 [03:18:30]Write to MH i2c: E2 08 00 23 04 80 11 00 00 00 00 00 00 A1 [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:30]Read from MH i2c: E2 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 17 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: E2 17 00 23 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F2 [03:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:18:30]wFMCommunicate OK [03:18:30]CreateOFDProtocolMessage done [03:18:30]OFDSenderStorePacket 112111 [03:18:30]StoreOFDPacket docnum=112111 [03:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 22 C2 07 01 05 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E3 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 4B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B5 01 00 35 04 06 00 F3 22 43 25 B2 96 5B BC FE CB A0 59 E3 AA [03:18:30]CheckFolder [03:18:30]dirname=/storage/ofd_packets [03:18:30]CheckFolder done [03:18:30]ProducePacketName [03:18:30]name=ofd_packets/00112111 [03:18:30]NVStorageSaveData ofd_packets/00112111 [03:18:30]File name is /storage/ofd_packets/00112111 [03:18:30]Write 301 bytes [03:18:30]NVStorageSaveData done [03:18:30]OFDSenderStorePacket done [03:18:30]KKMCreateOFDPacket done [03:18:30]NVStorageSaveData kkm_last_timestamp [03:18:30]File name is /storage/kkm_last_timestamp [03:18:30]Write 4 bytes [03:18:30]NVStorageSaveData done [03:18:30]ExternCall_PrintAddStr [03:18:30]wPrintStart [03:18:30]Write to MH i2c: 01 00 00 24 04 28 [03:18:30]Write i2c OK [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: 01 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: 01 07 00 [03:18:30]MH_I2C_Read... [03:18:30]Read from MH i2c: 01 07 00 24 04 00 00 00 00 00 FF 0F 3D [03:18:30]RasterBufferAndPrint [03:18:30]line Счет N : (1)48443 [03:18:30]line ИНН: 02508201610067 [03:18:30]line Контрольно-Кассовый Чек [03:18:30]line ПРОДАЖА [03:18:30]line ТРК (МРК, ГНК) : 42 [03:18:30]line Товар: 2710124130 [03:18:30]line Аи-92-К-5 [03:18:30]line 3.300 * 64.30 [03:18:30]line = 212.19 [03:18:30]line НДС 12% НСП 1% [03:18:30]line > о реализуемом товаре [03:18:30]line ОКРУГЛЕНИЕ: -0.19 [03:18:30]line ИТОГО: 212.00 [03:18:30]line Внесено: 212.00 [03:18:30]line СДАЧА: 0.00 [03:18:30]line НСП 1% : 1.88 [03:18:30]line НДС 12% : 22.53 [03:18:30]line Наличными: 212.00 [03:18:30]line Безнал.: 0.00 [03:18:30]line Место: АЗС № 47 "Партнер Нефть" [03:18:30]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:18:30]line СНО: Общий режим [03:18:30]line Чек 10 14.04.2024 03:18 [03:18:30]line Смена: 357 ФФД: 1.0 [03:18:30]line ЗНМ: 0300000138 [03:18:30]line РНМ: 0000000000094237 [03:18:30]line Версия ККМ: 001 [03:18:30]line ФМ: 0000000000875019 [03:18:30]line ФД: 112111 [03:18:30]line ФПД: 267328480981654 [03:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T031830&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112111&fm=267328480981654&tin=02508201610067®Number=0000000000094237&sum=21200 [03:18:30]OFD Sender: Processing packet 112111 [packets to send 71, broken 70] [03:18:30]ProducePacketName [03:18:30]name=ofd_packets/00112111 [03:18:30]OFD Sender: To server: pG, [03:18:30]CommunicateWithHost lk.salyk.kg:30040 [03:18:30]ConnectInit lk.salyk.kg [03:18:30]written 0, free lines is 4095 [03:18:30]Connected sock=10 [03:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 22 C2 07 01 05 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E3 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 08 00 00 00 00 07 04 06 00 D0 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 06 4B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B5 01 00 35 04 06 00 F3 22 43 25 B2 96 5B BC FE CB A0 59 E3 AA [03:18:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 7B 47 00 6E 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 38 37 35 30 31 39 10 04 04 00 EF B5 01 00 F4 03 04 00 92 F2 1A 66 B6 04 01 00 00 16 CA E7 18 52 03 95 42 [03:18:31]CommunicateWithHost err = 0 [03:18:31]CheckOFDResponse [03:18:31]1017 (14) - 77093643461234 [03:18:31]1041 (16) - 0000000000875019 [03:18:31]1040 (4) - 112111 [03:18:31]1012 (4) - 13.04.2024 21:01 [03:18:31]1206 (1) - 0 [03:18:31]OFD Sender: Remove packet 112111 [03:18:31]ProducePacketName [03:18:31]name=ofd_packets/00112111 [03:18:31]NVStorageDeleteData [03:18:31]Write to MH i2c: 01 00 00 4F 04 53 [03:18:31]Write i2c OK [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: 01 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: 01 07 00 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: 01 07 00 4F 04 00 00 00 00 00 D5 0C 3B [03:18:31]RasterBufferAndPrint [03:18:31]line [03:18:31]line [03:18:31]line [03:18:31]line [03:18:31]line [03:18:31]written 0, free lines is 3289 [03:18:31]MH_Cut [03:18:31]Write to MH i2c: D1 01 00 56 04 01 2C [03:18:31]Write i2c OK [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: D1 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: D1 01 00 [03:18:31]MH_I2C_Read... [03:18:31]Read from MH i2c: D1 01 00 56 04 00 2B [03:18:31]Write to MH i2c: 01 00 00 57 04 5B [03:18:31]Write i2c OK [03:18:31]MH_I2C_Read... [03:18:31]OFD Sender: No OFD packet to send [03:18:31]*** Cut start [03:18:31]*** Partial cut [03:18:31]*** CUTSNS_PIN = 1 [03:18:31]*** CUTSNS_PIN = 0 [03:18:32]*** Brake cut motor [03:18:32]Read from MH i2c: 01 [03:18:32]MH_I2C_Read... [03:18:32]*** Stop cut motor [03:18:32]*** Cut end [03:18:32]Read from MH i2c: 01 07 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: 01 07 00 57 04 00 00 00 00 00 FF 0F 70 [03:18:32]process_action close_receipt done [03:18:32]requested_data is exist [03:18:32]produce_requested_data [03:18:32]requested_item fm.sn is exist - process it [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 11 00 00 [03:18:32]Write to MH i2c: E2 08 00 58 04 80 11 00 00 00 00 00 00 D6 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 17 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 17 00 58 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 27 [03:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:18:32]wFMCommunicate OK [03:18:32]requested_item fd.num is exist - process it [03:18:32]SAM_PROTO_GetFieldsCounters [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 13 00 00 [03:18:32]Write to MH i2c: E2 08 00 59 04 80 13 00 00 00 00 00 00 D9 [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 62 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 62 00 59 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EF B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [03:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EF B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:18:32]wFMCommunicate OK [03:18:32]SAM_PROTO_GetFieldsCounters done [03:18:32]requested_item shift.num is exist - process it [03:18:32]requested_item shift.opened is exist - process it [03:18:32]req_shift_opened [03:18:32]FM_GetShiftState [03:18:32]SAM_PROTO_GetShiftState [03:18:32]wFMCommunicate request_size=4 [03:18:32]MH_SAM_APDU [03:18:32]CAPDU: 80 13 01 00 [03:18:32]Write to MH i2c: E2 08 00 5A 04 80 13 01 00 00 00 00 00 DB [03:18:32]Write i2c OK [03:18:32]MH_I2C_Read... [03:18:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:32]Read from MH i2c: E2 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 0E 00 [03:18:32]MH_I2C_Read... [03:18:32]Read from MH i2c: E2 0E 00 5A 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 73 [03:18:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [03:18:32]wFMCommunicate OK [03:18:32]SAM_PROTO_GetShiftState done [03:18:32]FM_GetShiftState done [03:18:32]req_shift_opened done [03:18:32]requested_item shift.open_date is exist - process it [03:18:32]req_shift_open_date [03:18:32]req_shift_open_date done [03:18:32]produce_requested_data done [03:18:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112111,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [03:18:32]process_action_free close_receipt [03:18:32]json_value_free [03:18:32]json_value_free done [03:18:32]process_json_proto returns [03:18:32]Send response to host [03:18:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112111,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [03:18:32]free response buf [03:18:32]execute_script done [03:18:32]execute_script returns [03:18:32]free content buf [03:18:32]Sock 9.Close socket [03:18:32]Sock 9.Thread stoped [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]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:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:20]accept exits with 8 [03:36:20]New connection [03:36:20]New thread 3067501924 created [03:36:20]Thread 3067358564 joined [03:36:20]Waiting for new connection... [03:36:20] Sock 8.Parse request [03:36:20]Sock 8.Check first char [03:36:20]Sock 8.First char is OK [03:36:20]request: POST /json_proto HTTP/1.0 [03:36:20]Method: POST [03:36:20]URL: /json_proto [03:36:20]Method is POST - this is cgi request [03:36:20]url: /json_proto [03:36:20]query_string will be loaded in cgi processing [03:36:20]execute_cgi json_proto POST (null) [03:36:20]execute_cgi path=json_proto method=POST [03:36:20]POST find Content-Length [03:36:20]Host: 172.17.96.197:8080 [03:36:20]Content-Length: 676 [03:36:20]Content-Type: application/json [03:36:20] [03:36:20]POST finish read [03:36:20]Found Content-Length = 676 [03:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48444", "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.30, "quantity" : 2.650, "sum" : 170.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:20]execute_script... [03:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48444", "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.30, "quantity" : 2.650, "sum" : 170.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 170.00, "total" : 170.00, "payments": [ { "type": 0, "sum" : 170.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:36:20]POST & json_proto [03:36:20]process_json_proto [03:36:20]json parsed OK: [03:36:20]protocol is kg_v1.0 [03:36:20]action value=close_receipt [03:36:20]process_action close_receipt [03:36:20]cmd_close_receipt [03:36:20]MH_GetDate [03:36:20]Write to MH i2c: F0 00 00 5B 04 4E [03:36:20]Write i2c OK [03:36:20]MH_I2C_Read... [03:36:20]Read from MH i2c: F0 [03:36:20]MH_I2C_Read... [03:36:20]Read from MH i2c: F0 09 00 [03:36:20]MH_I2C_Read... [03:36:20]Read from MH i2c: F0 09 00 5B 04 00 36 4F 1B 66 E0 85 7F 64 A5 [03:36:20]GetLastDocTimeStamp 1713064710 [03:36:20]current date 1713065782 [03:36:20]FM_GetShiftState [03:36:20]SAM_PROTO_GetShiftState [03:36:20]wFMCommunicate request_size=4 [03:36:20]MH_SAM_APDU [03:36:20]CAPDU: 80 13 01 00 [03:36:20]Write to MH i2c: E2 08 00 5C 04 80 13 01 00 00 00 00 00 DD [03:36:20]Write i2c OK [03:36:20]MH_I2C_Read... [03:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:20]Read from MH i2c: E2 [03:36:20]MH_I2C_Read... [03:36:20]Read from MH i2c: E2 0E 00 [03:36:20]MH_I2C_Read... [03:36:20]Read from MH i2c: E2 0E 00 5C 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 75 [03:36:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [03:36:20]wFMCommunicate OK [03:36:20]SAM_PROTO_GetShiftState done [03:36:20]FM_GetShiftState done [03:36:20]opened in 1713054696 [03:36:20]opened+sec_in_day 1713141096 [03:36:20]quantity*price = 17039 [03:36:20]sum+1 = 17041 [03:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 170.00 Внесено: 170.00 СДАЧА: 0.00 НСП 1% : 1.51 НДС 12% : 18.10 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 11 14.04.2024 03:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112112 ФПД: 199238090878027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T033622&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112112&fm=199238090878027&tin=02508201610067®Number=0000000000094237&sum=17000 [03:36:21]StoreToDocumentArchive [03:36:21]shift 357 fd 112112 [03:36:21]save to /storage/0357/doc_00112112 [03:36:21]save last doc name /storage/0357/doc_00112112 to /storage/kkm_last_doc_name [03:36:21]save OK [03:36:21]Clear old archive folders... [03:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:36:21]tlvbuf is 01B1DBC0 [03:36:21]SAM_PROTO_ClearQueue [03:36:21]wFMCommunicate request_size=4 [03:36:21]MH_SAM_APDU [03:36:21]CAPDU: 80 09 00 00 [03:36:21]Write to MH i2c: E2 08 00 69 04 80 09 00 00 00 00 00 00 DF [03:36:21]Write i2c OK [03:36:21]MH_I2C_Read... [03:36:21]Read from MH i2c: E2 [03:36:21]MH_I2C_Read... [03:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:36:21]Read from MH i2c: E2 03 00 [03:36:21]MH_I2C_Read... [03:36:21]Read from MH i2c: E2 03 00 69 04 00 90 00 E1 [03:36:21]RAPDU: 90 00 [03:36:21]wFMCommunicate OK [03:36:21]SAM_PROTO_ClearQueue done [03:36:21]KKMCreateOFDPacket [03:36:21]OFDProtocolAddRootSTLVToBuf [03:36:21]FM_MakeSignedData [03:36:21]FM_MakeSignedData [03:36:21]SAM_PROTO_SignData [03:36:21]wFMCommunicate request_size=4 [03:36:21]MH_SAM_APDU [03:36:21]CAPDU: 80 0D 01 02 [03:36:21]Write to MH i2c: E2 08 00 6A 04 80 0D 01 02 00 00 00 00 E7 [03:36:21]Write i2c OK [03:36:21]MH_I2C_Read... [03:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:36:21]Read from MH i2c: E2 [03:36:21]MH_I2C_Read... [03:36:21]Read from MH i2c: E2 03 00 [03:36:21]MH_I2C_Read... [03:36:21]Read from MH i2c: E2 03 00 6A 04 00 90 00 E2 [03:36:21]RAPDU: 90 00 [03:36:21]wFMCommunicate OK [03:36:21]wFMCommunicate request_size=255 [03:36:21]MH_SAM_APDU [03:36: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 5A 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 90 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 4F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B5 01 00 35 04 06 00 B5 [03:36:21]Write to MH i2c: E2 02 01 6B 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 5A 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 90 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 4F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B5 01 00 35 04 06 00 B5 00 00 32 [03:36:21]Write i2c OK [03:36:21]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 03 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 03 00 6B 04 00 90 00 E3 [03:36:22]RAPDU: 90 00 [03:36:22]wFMCommunicate OK [03:36:22]wFMCommunicate request_size=10 [03:36:22]MH_SAM_APDU [03:36:22]CAPDU: 80 0D 02 02 05 34 BB A1 EC 4B [03:36:22]Write to MH i2c: E2 0D 00 6C 04 80 0D 02 02 05 00 34 BB A1 EC 4B 00 00 BB [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 03 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 03 00 6C 04 00 90 00 E4 [03:36:22]RAPDU: 90 00 [03:36:22]wFMCommunicate OK [03:36:22]wFMCommunicate request_size=4 [03:36:22]MH_SAM_APDU [03:36:22]CAPDU: 80 0D 03 02 [03:36:22]Write to MH i2c: E2 08 00 6D 04 80 0D 03 02 00 00 00 00 EC [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 0B 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 0B 00 6D 04 00 5F 41 4E 27 8F 42 8B 96 90 00 F4 [03:36:22]RAPDU: 5F 41 4E 27 8F 42 8B 96 90 00 [03:36:22]wFMCommunicate OK [03:36:22]SAM_PROTO_SignData done [03:36:22]FM_MakeSignedData done [03:36:22]CreateOFDProtocolMessage [03:36:22]wFMCommunicate request_size=4 [03:36:22]MH_SAM_APDU [03:36:22]CAPDU: 80 11 00 00 [03:36:22]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:22]Read from MH i2c: E2 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 17 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3D [03:36:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:36:22]wFMCommunicate OK [03:36:22]CreateOFDProtocolMessage done [03:36:22]OFDSenderStorePacket 112112 [03:36:22]StoreOFDPacket docnum=112112 [03:36:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 98 AA 07 01 F3 C2 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 5A 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 90 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 4F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B5 01 00 35 04 06 00 B5 34 BB A1 EC 4B 5F 41 4E 27 8F 42 8B 96 [03:36:22]CheckFolder [03:36:22]dirname=/storage/ofd_packets [03:36:22]CheckFolder done [03:36:22]ProducePacketName [03:36:22]name=ofd_packets/00112112 [03:36:22]NVStorageSaveData ofd_packets/00112112 [03:36:22]File name is /storage/ofd_packets/00112112 [03:36:22]Write 301 bytes [03:36:22]NVStorageSaveData done [03:36:22]OFDSenderStorePacket done [03:36:22]KKMCreateOFDPacket done [03:36:22]NVStorageSaveData kkm_last_timestamp [03:36:22]File name is /storage/kkm_last_timestamp [03:36:22]Write 4 bytes [03:36:22]NVStorageSaveData done [03:36:22]ExternCall_PrintAddStr [03:36:22]wPrintStart [03:36:22]Write to MH i2c: 01 00 00 6F 04 73 [03:36:22]Write i2c OK [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: 01 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: 01 07 00 [03:36:22]MH_I2C_Read... [03:36:22]Read from MH i2c: 01 07 00 6F 04 00 00 00 00 00 FF 0F 88 [03:36:22]RasterBufferAndPrint [03:36:22]line Счет N : (1)48444 [03:36:22]line ИНН: 02508201610067 [03:36:22]line Контрольно-Кассовый Чек [03:36:22]line ПРОДАЖА [03:36:22]line ТРК (МРК, ГНК) : 42 [03:36:22]line Товар: 2710124130 [03:36:22]line Аи-92-К-5 [03:36:22]line 2.650 * 64.30 [03:36:22]line = 170.40 [03:36:22]line НДС 12% НСП 1% [03:36:22]line > о реализуемом товаре [03:36:22]line ОКРУГЛЕНИЕ: -0.40 [03:36:22]line ИТОГО: 170.00 [03:36:22]line Внесено: 170.00 [03:36:22]line СДАЧА: 0.00 [03:36:22]line НСП 1% : 1.51 [03:36:22]line НДС 12% : 18.10 [03:36:22]line Наличными: 170.00 [03:36:22]line Безнал.: 0.00 [03:36:22]line Место: АЗС № 47 "Партнер Нефть" [03:36:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:36:22]line СНО: Общий режим [03:36:22]line Чек 11 14.04.2024 03:36 [03:36:22]line Смена: 357 ФФД: 1.0 [03:36:22]line ЗНМ: 0300000138 [03:36:22]line РНМ: 0000000000094237 [03:36:22]line Версия ККМ: 001 [03:36:22]line ФМ: 0000000000875019 [03:36:22]line ФД: 112112 [03:36:22]line ФПД: 199238090878027 [03:36:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T033622&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112112&fm=199238090878027&tin=02508201610067®Number=0000000000094237&sum=17000 [03:36:22]OFD Sender: Processing packet 112112 [packets to send 71, broken 70] [03:36:22]ProducePacketName [03:36:22]name=ofd_packets/00112112 [03:36:22]OFD Sender: To server: pG, [03:36:22]CommunicateWithHost lk.salyk.kg:30040 [03:36:22]ConnectInit lk.salyk.kg [03:36:22]written 0, free lines is 4095 [03:36:22]Connected sock=10 [03:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 98 AA 07 01 F3 C2 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 5A 0A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 90 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 36 4F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B5 01 00 35 04 06 00 B5 34 BB A1 EC 4B 5F 41 4E 27 8F 42 8B 96 [03:36:23]Write to MH i2c: 01 00 00 9A 04 9E [03:36:23]Write i2c OK [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: 01 [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: 01 07 00 [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: 01 07 00 9A 04 00 00 00 00 00 CE 0C 7F [03:36:23]RasterBufferAndPrint [03:36:23]line [03:36:23]line [03:36:23]line [03:36:23]line [03:36:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4E DA 47 00 1A BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B5 01 00 F4 03 04 00 C2 F6 1A 66 B6 04 01 00 00 18 DA 8D CB 87 09 B7 C1 [03:36:23]CommunicateWithHost err = 0 [03:36:23]CheckOFDResponse [03:36:23]1017 (14) - 77093643461234 [03:36:23]1041 (16) - 0000000000875019 [03:36:23]1040 (4) - 112112 [03:36:23]1012 (4) - 13.04.2024 21:18 [03:36:23]1206 (1) - 0 [03:36:23]OFD Sender: Remove packet 112112 [03:36:23]ProducePacketName [03:36:23]name=ofd_packets/00112112 [03:36:23]NVStorageDeleteData [03:36:23]line [03:36:23]written 0, free lines is 3292 [03:36:23]MH_Cut [03:36:23]Write to MH i2c: D1 01 00 A1 04 01 77 [03:36:23]Write i2c OK [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: D1 [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: D1 01 00 [03:36:23]MH_I2C_Read... [03:36:23]Read from MH i2c: D1 01 00 A1 04 00 76 [03:36:23]Write to MH i2c: 01 00 00 A2 04 A6 [03:36:23]Write i2c OK [03:36:23]MH_I2C_Read... [03:36:23]OFD Sender: No OFD packet to send [03:36:23]*** Cut start [03:36:23]*** Partial cut [03:36:23]*** CUTSNS_PIN = 1 [03:36:23]*** CUTSNS_PIN = 0 [03:36:24]*** Brake cut motor [03:36:24]Read from MH i2c: 01 [03:36:24]MH_I2C_Read... [03:36:24]*** Stop cut motor [03:36:24]*** Cut end [03:36:24]Read from MH i2c: 01 07 00 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 FF 0F BB [03:36:24]process_action close_receipt done [03:36:24]requested_data is exist [03:36:24]produce_requested_data [03:36:24]requested_item fm.sn is exist - process it [03:36:24]wFMCommunicate request_size=4 [03:36:24]MH_SAM_APDU [03:36:24]CAPDU: 80 11 00 00 [03:36:24]Write to MH i2c: E2 08 00 A3 04 80 11 00 00 00 00 00 00 21 [03:36:24]Write i2c OK [03:36:24]MH_I2C_Read... [03:36:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:36:24]Read from MH i2c: E2 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 17 00 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 17 00 A3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 72 [03:36:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:36:24]wFMCommunicate OK [03:36:24]requested_item fd.num is exist - process it [03:36:24]SAM_PROTO_GetFieldsCounters [03:36:24]wFMCommunicate request_size=4 [03:36:24]MH_SAM_APDU [03:36:24]CAPDU: 80 13 00 00 [03:36:24]Write to MH i2c: E2 08 00 A4 04 80 13 00 00 00 00 00 00 24 [03:36:24]Write i2c OK [03:36:24]MH_I2C_Read... [03:36:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:36:24]Read from MH i2c: E2 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 62 00 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 62 00 A4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F0 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [03:36:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F0 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:36:24]wFMCommunicate OK [03:36:24]SAM_PROTO_GetFieldsCounters done [03:36:24]requested_item shift.num is exist - process it [03:36:24]requested_item shift.opened is exist - process it [03:36:24]req_shift_opened [03:36:24]FM_GetShiftState [03:36:24]SAM_PROTO_GetShiftState [03:36:24]wFMCommunicate request_size=4 [03:36:24]MH_SAM_APDU [03:36:24]CAPDU: 80 13 01 00 [03:36:24]Write to MH i2c: E2 08 00 A5 04 80 13 01 00 00 00 00 00 26 [03:36:24]Write i2c OK [03:36:24]MH_I2C_Read... [03:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:36:24]Read from MH i2c: E2 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 0E 00 [03:36:24]MH_I2C_Read... [03:36:24]Read from MH i2c: E2 0E 00 A5 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BE [03:36:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [03:36:24]wFMCommunicate OK [03:36:24]SAM_PROTO_GetShiftState done [03:36:24]FM_GetShiftState done [03:36:24]req_shift_opened done [03:36:24]requested_item shift.open_date is exist - process it [03:36:24]req_shift_open_date [03:36:24]req_shift_open_date done [03:36:24]produce_requested_data done [03:36:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112112,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [03:36:24]process_action_free close_receipt [03:36:24]json_value_free [03:36:24]json_value_free done [03:36:24]process_json_proto returns [03:36:24]Send response to host [03:36:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112112,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [03:36:24]free response buf [03:36:24]execute_script done [03:36:24]execute_script returns [03:36:24]free content buf [03:36:24]Sock 8.Close socket [03:36:24]Sock 8.Thread stoped [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:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:09]OFD Sender: No OFD packet to send [03:57:14]OFD Sender: No OFD packet to send [03:57:19]OFD Sender: No OFD packet to send [03:57:24]OFD Sender: No OFD packet to send [03:57:29]OFD Sender: No OFD packet to send [03:57:34]OFD Sender: No OFD packet to send [03:57:39]OFD Sender: No OFD packet to send [03:57:44]OFD Sender: No OFD packet to send [03:57:49]OFD Sender: No OFD packet to send [03:57:54]OFD Sender: No OFD packet to send [03:57:59]OFD Sender: No OFD packet to send [03:58:04]OFD Sender: No OFD packet to send [03:58:09]OFD Sender: No OFD packet to send [03:58:14]OFD Sender: No OFD packet to send [03:58:19]OFD Sender: No OFD packet to send [03:58:24]OFD Sender: No OFD packet to send [03:58:29]OFD Sender: No OFD packet to send [03:58:34]OFD Sender: No OFD packet to send [03:58:39]OFD Sender: No OFD packet to send [03:58:44]OFD Sender: No OFD packet to send [03:58:49]OFD Sender: No OFD packet to send [03:58:54]OFD Sender: No OFD packet to send [03:58:59]OFD Sender: No OFD packet to send [03:59:04]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:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:06]accept exits with 9 [04:05:06]New connection [04:05:06]New thread 3067358564 created [04:05:06]Thread 3067501924 joined [04:05:06]Waiting for new connection... [04:05:06] Sock 9.Parse request [04:05:06]Sock 9.Check first char [04:05:06]Sock 9.First char is OK [04:05:06]request: POST /json_proto HTTP/1.0 [04:05:06]Method: POST [04:05:06]URL: /json_proto [04:05:06]Method is POST - this is cgi request [04:05:06]url: /json_proto [04:05:06]query_string will be loaded in cgi processing [04:05:06]execute_cgi json_proto POST (null) [04:05:06]execute_cgi path=json_proto method=POST [04:05:06]POST find Content-Length [04:05:06]Host: 172.17.96.197:8080 [04:05:06]Content-Length: 623 [04:05:06]Content-Type: application/json [04:05:06] [04:05:06]POST finish read [04:05:06]Found Content-Length = 623 [04:05:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10397", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:06]execute_script... [04:05:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10397", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:05:06]POST & json_proto [04:05:06]process_json_proto [04:05:06]json parsed OK: [04:05:06]protocol is kg_v1.0 [04:05:06]action value=close_receipt [04:05:06]process_action close_receipt [04:05:06]cmd_close_receipt [04:05:06]MH_GetDate [04:05:06]Write to MH i2c: F0 00 00 A6 04 99 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: F0 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: F0 09 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: F0 09 00 A6 04 00 F4 55 1B 66 E0 85 7F 64 B4 [04:05:06]GetLastDocTimeStamp 1713065782 [04:05:06]current date 1713067508 [04:05:06]FM_GetShiftState [04:05:06]SAM_PROTO_GetShiftState [04:05:06]wFMCommunicate request_size=4 [04:05:06]MH_SAM_APDU [04:05:06]CAPDU: 80 13 01 00 [04:05:06]Write to MH i2c: E2 08 00 A7 04 80 13 01 00 00 00 00 00 28 [04:05:06]Write i2c OK [04:05:06]MH_I2C_Read... [04:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:06]Read from MH i2c: E2 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 0E 00 [04:05:06]MH_I2C_Read... [04:05:06]Read from MH i2c: E2 0E 00 A7 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C0 [04:05:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:05:06]wFMCommunicate OK [04:05:06]SAM_PROTO_GetShiftState done [04:05:06]FM_GetShiftState done [04:05:06]opened in 1713054696 [04:05:06]opened+sec_in_day 1713141096 [04:05:06]quantity*price = 15100 [04:05:06]sum+1 = 15101 [04:05:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 12 14.04.2024 04:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112113 ФПД: 80143531455174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T040508&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112113&fm=80143531455174&tin=02508201610067®Number=0000000000094237&sum=15100 0 [04:05:07]StoreToDocumentArchive [04:05:07]shift 357 fd 112113 [04:05:07]save to /storage/0357/doc_00112113 [04:05:07]save last doc name /storage/0357/doc_00112113 to /storage/kkm_last_doc_name [04:05:07]save OK [04:05:07]Clear old archive folders... [04:05:07]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:05:07]tlvbuf is 01B22060 [04:05:07]SAM_PROTO_ClearQueue [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 09 00 00 [04:05:07]Write to MH i2c: E2 08 00 B4 04 80 09 00 00 00 00 00 00 2A [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 B4 04 00 90 00 2C [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]SAM_PROTO_ClearQueue done [04:05:07]KKMCreateOFDPacket [04:05:07]OFDProtocolAddRootSTLVToBuf [04:05:07]FM_MakeSignedData [04:05:07]FM_MakeSignedData [04:05:07]SAM_PROTO_SignData [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 01 02 [04:05:07]Write to MH i2c: E2 08 00 B5 04 80 0D 01 02 00 00 00 00 32 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 B5 04 00 90 00 2D [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]wFMCommunicate request_size=255 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F4 55 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 [04:05:07]Write to MH i2c: E2 02 01 B6 04 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F4 55 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 00 00 C0 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 B6 04 00 90 00 2E [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]wFMCommunicate request_size=35 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B5 01 00 35 04 06 00 48 E3 DE B9 32 C6 [04:05:07]Write to MH i2c: E2 26 00 B7 04 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B5 01 00 35 04 06 00 48 E3 DE B9 32 C6 00 00 87 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:07]Read from MH i2c: E2 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 [04:05:07]MH_I2C_Read... [04:05:07]Read from MH i2c: E2 03 00 B7 04 00 90 00 2F [04:05:07]RAPDU: 90 00 [04:05:07]wFMCommunicate OK [04:05:07]wFMCommunicate request_size=4 [04:05:07]MH_SAM_APDU [04:05:07]CAPDU: 80 0D 03 02 [04:05:07]Write to MH i2c: E2 08 00 B8 04 80 0D 03 02 00 00 00 00 37 [04:05:07]Write i2c OK [04:05:07]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 0B 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 0B 00 B8 04 00 B0 4C 30 55 C1 F5 61 9D 90 00 6D [04:05:08]RAPDU: B0 4C 30 55 C1 F5 61 9D 90 00 [04:05:08]wFMCommunicate OK [04:05:08]SAM_PROTO_SignData done [04:05:08]FM_MakeSignedData done [04:05:08]CreateOFDProtocolMessage [04:05:08]wFMCommunicate request_size=4 [04:05:08]MH_SAM_APDU [04:05:08]CAPDU: 80 11 00 00 [04:05:08]Write to MH i2c: E2 08 00 B9 04 80 11 00 00 00 00 00 00 37 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:08]Read from MH i2c: E2 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 17 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: E2 17 00 B9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 88 [04:05:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:05:08]wFMCommunicate OK [04:05:08]CreateOFDProtocolMessage done [04:05:08]OFDSenderStorePacket 112113 [04:05:08]StoreOFDPacket docnum=112113 [04:05:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 43 C5 20 01 ED FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F4 55 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B5 01 00 35 04 06 00 48 E3 DE B9 32 C6 B0 4C 30 55 C1 F5 61 9D [04:05:08]CheckFolder [04:05:08]dirname=/storage/ofd_packets [04:05:08]CheckFolder done [04:05:08]ProducePacketName [04:05:08]name=ofd_packets/00112113 [04:05:08]NVStorageSaveData ofd_packets/00112113 [04:05:08]File name is /storage/ofd_packets/00112113 [04:05:08]Write 326 bytes [04:05:08]NVStorageSaveData done [04:05:08]OFDSenderStorePacket done [04:05:08]KKMCreateOFDPacket done [04:05:08]NVStorageSaveData kkm_last_timestamp [04:05:08]File name is /storage/kkm_last_timestamp [04:05:08]Write 4 bytes [04:05:08]NVStorageSaveData done [04:05:08]ExternCall_PrintAddStr [04:05:08]wPrintStart [04:05:08]Write to MH i2c: 01 00 00 BA 04 BE [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 BA 04 00 00 00 00 00 FF 0F D3 [04:05:08]RasterBufferAndPrint [04:05:08]line Счет N : (3)10397 [04:05:08]line ИНН: 02508201610067 [04:05:08]line Контрольно-Кассовый Чек [04:05:08]line ПРОДАЖА [04:05:08]line Товар: 48742245 [04:05:08]line Сигареты Parliament Silver Blue [04:05:08]line 1.000 * 151.00 [04:05:08]line = 151.00 [04:05:08]line НДС 12% НСП 1% [04:05:08]line > о реализуемом товаре [04:05:08]line ИТОГО: 151.00 [04:05:08]line НСП 1% : 1.34 [04:05:08]line НДС 12% : 16.03 [04:05:08]line Наличными: 151.00 [04:05:08]line Безнал.: 0.00 [04:05:08]line Место: АЗС № 47 "Партнер Нефть" [04:05:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:05:08]line СНО: Общий режим [04:05:08]line Чек 12 14.04.2024 04:05 [04:05:08]line Смена: 357 ФФД: 1.0 [04:05:08]line ЗНМ: 0300000138 [04:05:08]line РНМ: 0000000000094237 [04:05:08]line Версия ККМ: 001 [04:05:08]line ФМ: 0000000000875019 [04:05:08]line ФД: 112113 [04:05:08]line ФПД: 80143531455174 [04:05:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T040508&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112113&fm=80143531455174&tin=02508201610067®Number=0000000000094237&sum=15100 [04:05:08]line 0 [04:05:08]OFD Sender: Processing packet 112113 [packets to send 71, broken 70] [04:05:08]ProducePacketName [04:05:08]name=ofd_packets/00112113 [04:05:08]OFD Sender: To server: pG, [04:05:08]CommunicateWithHost lk.salyk.kg:30040 [04:05:08]ConnectInit lk.salyk.kg [04:05:08]written 0, free lines is 4095 [04:05:08]Connected sock=10 [04:05:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 43 C5 20 01 ED FB 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 F4 55 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B5 01 00 35 04 06 00 48 E3 DE B9 32 C6 B0 4C 30 55 C1 F5 61 9D [04:05:08]Write to MH i2c: 01 00 00 E3 04 E7 [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: 01 07 00 E3 04 00 00 00 00 00 D4 0C CE [04:05:08]RasterBufferAndPrint [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]line [04:05:08]written 0, free lines is 3290 [04:05:08]MH_Cut [04:05:08]Write to MH i2c: D1 01 00 EA 04 01 C0 [04:05:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 87 23 47 00 A2 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B5 01 00 F4 03 04 00 80 FD 1A 66 B6 04 01 00 00 42 D0 76 B7 94 6A 2E 5A [04:05:08]CommunicateWithHost err = 0 [04:05:08]CheckOFDResponse [04:05:08]1017 (14) - 77093643461234 [04:05:08]1041 (16) - 0000000000875019 [04:05:08]1040 (4) - 112113 [04:05:08]1012 (4) - 13.04.2024 21:47 [04:05:08]1206 (1) - 0 [04:05:08]OFD Sender: Remove packet 112113 [04:05:08]ProducePacketName [04:05:08]name=ofd_packets/00112113 [04:05:08]NVStorageDeleteData [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 01 00 [04:05:08]MH_I2C_Read... [04:05:08]Read from MH i2c: D1 01 00 EA 04 00 BF [04:05:08]Write to MH i2c: 01 00 00 EB 04 EF [04:05:08]Write i2c OK [04:05:08]MH_I2C_Read... [04:05:09]OFD Sender: No OFD packet to send [04:05:09]*** Cut start [04:05:09]*** Partial cut [04:05:09]*** CUTSNS_PIN = 1 [04:05:09]*** CUTSNS_PIN = 0 [04:05:09]*** Brake cut motor [04:05:10]Read from MH i2c: 01 [04:05:10]MH_I2C_Read... [04:05:10]*** Stop cut motor [04:05:10]*** Cut end [04:05:10]Read from MH i2c: 01 07 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 FF 0F 04 [04:05:10]process_action close_receipt done [04:05:10]requested_data is exist [04:05:10]produce_requested_data [04:05:10]requested_item fm.sn is exist - process it [04:05:10]wFMCommunicate request_size=4 [04:05:10]MH_SAM_APDU [04:05:10]CAPDU: 80 11 00 00 [04:05:10]Write to MH i2c: E2 08 00 EC 04 80 11 00 00 00 00 00 00 6A [04:05:10]Write i2c OK [04:05:10]MH_I2C_Read... [04:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:10]Read from MH i2c: E2 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 17 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 17 00 EC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BB [04:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:05:10]wFMCommunicate OK [04:05:10]requested_item fd.num is exist - process it [04:05:10]SAM_PROTO_GetFieldsCounters [04:05:10]wFMCommunicate request_size=4 [04:05:10]MH_SAM_APDU [04:05:10]CAPDU: 80 13 00 00 [04:05:10]Write to MH i2c: E2 08 00 ED 04 80 13 00 00 00 00 00 00 6D [04:05:10]Write i2c OK [04:05:10]MH_I2C_Read... [04:05:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:10]Read from MH i2c: E2 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 62 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 62 00 ED 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F1 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [04:05:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F1 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:05:10]wFMCommunicate OK [04:05:10]SAM_PROTO_GetFieldsCounters done [04:05:10]requested_item shift.num is exist - process it [04:05:10]requested_item shift.opened is exist - process it [04:05:10]req_shift_opened [04:05:10]FM_GetShiftState [04:05:10]SAM_PROTO_GetShiftState [04:05:10]wFMCommunicate request_size=4 [04:05:10]MH_SAM_APDU [04:05:10]CAPDU: 80 13 01 00 [04:05:10]Write to MH i2c: E2 08 00 EE 04 80 13 01 00 00 00 00 00 6F [04:05:10]Write i2c OK [04:05:10]MH_I2C_Read... [04:05:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:10]Read from MH i2c: E2 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 0E 00 [04:05:10]MH_I2C_Read... [04:05:10]Read from MH i2c: E2 0E 00 EE 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 07 [04:05:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:05:10]wFMCommunicate OK [04:05:10]SAM_PROTO_GetShiftState done [04:05:10]FM_GetShiftState done [04:05:10]req_shift_opened done [04:05:10]requested_item shift.open_date is exist - process it [04:05:10]req_shift_open_date [04:05:10]req_shift_open_date done [04:05:10]produce_requested_data done [04:05:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112113,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:05:10]process_action_free close_receipt [04:05:10]json_value_free [04:05:10]json_value_free done [04:05:10]process_json_proto returns [04:05:10]Send response to host [04:05:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112113,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:05:10]free response buf [04:05:10]execute_script done [04:05:10]execute_script returns [04:05:10]free content buf [04:05:10]Sock 9.Close socket [04:05:10]Sock 9.Thread stoped [04:05:14]OFD Sender: No OFD packet to send [04:05:19]OFD Sender: No OFD packet to send [04:05:24]OFD Sender: No OFD packet to send [04:05:29]OFD Sender: No OFD packet to send [04:05:34]OFD Sender: No OFD packet to send [04:05:39]OFD Sender: No OFD packet to send [04:05:44]OFD Sender: No OFD packet to send [04:05:49]OFD Sender: No OFD packet to send [04:05:54]OFD Sender: No OFD packet to send [04:05:59]OFD Sender: No OFD packet to send [04:06:04]OFD Sender: No OFD packet to send [04:06:09]OFD Sender: No OFD packet to send [04:06:14]OFD Sender: No OFD packet to send [04:06:19]OFD Sender: No OFD packet to send [04:06:22]accept exits with 8 [04:06:22]New connection [04:06:22]New thread 3067501924 created [04:06:22]Thread 3067358564 joined [04:06:22]Waiting for new connection... [04:06:22] Sock 8.Parse request [04:06:22]Sock 8.Check first char [04:06:22]Sock 8.First char is OK [04:06:22]request: POST /json_proto HTTP/1.0 [04:06:22]Method: POST [04:06:22]URL: /json_proto [04:06:22]Method is POST - this is cgi request [04:06:22]url: /json_proto [04:06:22]query_string will be loaded in cgi processing [04:06:22]execute_cgi json_proto POST (null) [04:06:22]execute_cgi path=json_proto method=POST [04:06:22]POST find Content-Length [04:06:22]Host: 172.17.96.197:8080 [04:06:22]Content-Length: 676 [04:06:22]Content-Type: application/json [04:06:22] [04:06:22]POST finish read [04:06:22]Found Content-Length = 676 [04:06:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48445", "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.30, "quantity" : 9.650, "sum" : 620.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:06:22]execute_script... [04:06: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)48445", "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.30, "quantity" : 9.650, "sum" : 620.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:06:22]POST & json_proto [04:06:22]process_json_proto [04:06:22]json parsed OK: [04:06:22]protocol is kg_v1.0 [04:06:22]action value=close_receipt [04:06:22]process_action close_receipt [04:06:22]cmd_close_receipt [04:06:22]MH_GetDate [04:06:22]Write to MH i2c: F0 00 00 EF 04 E2 [04:06:22]Write i2c OK [04:06:22]MH_I2C_Read... [04:06:22]Read from MH i2c: F0 [04:06:22]MH_I2C_Read... [04:06:22]Read from MH i2c: F0 09 00 [04:06:22]MH_I2C_Read... [04:06:22]Read from MH i2c: F0 09 00 EF 04 00 40 56 1B 66 E0 85 7F 64 4A [04:06:22]GetLastDocTimeStamp 1713067508 [04:06:22]current date 1713067584 [04:06:22]FM_GetShiftState [04:06:22]SAM_PROTO_GetShiftState [04:06:22]wFMCommunicate request_size=4 [04:06:22]MH_SAM_APDU [04:06:22]CAPDU: 80 13 01 00 [04:06:22]Write to MH i2c: E2 08 00 F0 04 80 13 01 00 00 00 00 00 71 [04:06:22]Write i2c OK [04:06:22]MH_I2C_Read... [04:06:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:06:22]Read from MH i2c: E2 [04:06:22]MH_I2C_Read... [04:06:22]Read from MH i2c: E2 0E 00 [04:06:22]MH_I2C_Read... [04:06:22]Read from MH i2c: E2 0E 00 F0 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 09 [04:06:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:06:22]wFMCommunicate OK [04:06:22]SAM_PROTO_GetShiftState done [04:06:22]FM_GetShiftState done [04:06:22]opened in 1713054696 [04:06:22]opened+sec_in_day 1713141096 [04:06:22]quantity*price = 62049 [04:06:22]sum+1 = 62051 [04:06:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.89 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 13 14.04.2024 04:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112114 ФПД: 225965779077673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T040624&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112114&fm=225965779077673&tin=02508201610067®Number=0000000000094237&sum=62000 [04:06:23]StoreToDocumentArchive [04:06:23]shift 357 fd 112114 [04:06:23]save to /storage/0357/doc_00112114 [04:06:23]save last doc name /storage/0357/doc_00112114 to /storage/kkm_last_doc_name [04:06:23]save OK [04:06:23]Clear old archive folders... [04:06:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:06:23]tlvbuf is 019C18F0 [04:06:23]SAM_PROTO_ClearQueue [04:06:23]wFMCommunicate request_size=4 [04:06:23]MH_SAM_APDU [04:06:23]CAPDU: 80 09 00 00 [04:06:23]Write to MH i2c: E2 08 00 FD 04 80 09 00 00 00 00 00 00 73 [04:06:23]Write i2c OK [04:06:23]MH_I2C_Read... [04:06:23]Read from MH i2c: E2 [04:06:23]MH_I2C_Read... [04:06:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:06:23]Read from MH i2c: E2 03 00 [04:06:23]MH_I2C_Read... [04:06:23]Read from MH i2c: E2 03 00 FD 04 00 90 00 75 [04:06:23]RAPDU: 90 00 [04:06:23]wFMCommunicate OK [04:06:23]SAM_PROTO_ClearQueue done [04:06:23]KKMCreateOFDPacket [04:06:23]OFDProtocolAddRootSTLVToBuf [04:06:23]FM_MakeSignedData [04:06:23]FM_MakeSignedData [04:06:23]SAM_PROTO_SignData [04:06:23]wFMCommunicate request_size=4 [04:06:23]MH_SAM_APDU [04:06:23]CAPDU: 80 0D 01 02 [04:06:23]Write to MH i2c: E2 08 00 FE 04 80 0D 01 02 00 00 00 00 7B [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:06:24]Read from MH i2c: E2 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 FE 04 00 90 00 76 [04:06:24]RAPDU: 90 00 [04:06:24]wFMCommunicate OK [04:06:24]wFMCommunicate request_size=255 [04:06:24]MH_SAM_APDU [04:06: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 B2 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 40 56 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B5 01 00 35 04 06 00 CD [04:06:24]Write to MH i2c: E2 02 01 FF 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 B2 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 40 56 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B5 01 00 35 04 06 00 CD 00 00 25 [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:06:24]Read from MH i2c: E2 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 FF 04 00 90 00 77 [04:06:24]RAPDU: 90 00 [04:06:24]wFMCommunicate OK [04:06:24]wFMCommunicate request_size=10 [04:06:24]MH_SAM_APDU [04:06:24]CAPDU: 80 0D 02 02 05 83 C1 FE 4A 29 [04:06:24]Write to MH i2c: E2 0D 00 00 05 80 0D 02 02 05 00 83 C1 FE 4A 29 00 00 3E [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:06:24]Read from MH i2c: E2 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 03 00 00 05 00 90 00 79 [04:06:24]RAPDU: 90 00 [04:06:24]wFMCommunicate OK [04:06:24]wFMCommunicate request_size=4 [04:06:24]MH_SAM_APDU [04:06:24]CAPDU: 80 0D 03 02 [04:06:24]Write to MH i2c: E2 08 00 01 05 80 0D 03 02 00 00 00 00 81 [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:06:24]Read from MH i2c: E2 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 0B 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 0B 00 01 05 00 7F EF 57 CE C2 1D 2D 7F 90 00 A0 [04:06:24]RAPDU: 7F EF 57 CE C2 1D 2D 7F 90 00 [04:06:24]wFMCommunicate OK [04:06:24]SAM_PROTO_SignData done [04:06:24]FM_MakeSignedData done [04:06:24]CreateOFDProtocolMessage [04:06:24]wFMCommunicate request_size=4 [04:06:24]MH_SAM_APDU [04:06:24]CAPDU: 80 11 00 00 [04:06:24]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]OFD Sender: No OFD packet to send [04:06:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:06:24]Read from MH i2c: E2 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 17 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D2 [04:06:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:06:24]wFMCommunicate OK [04:06:24]CreateOFDProtocolMessage done [04:06:24]OFDSenderStorePacket 112114 [04:06:24]StoreOFDPacket docnum=112114 [04:06:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B C5 07 01 D8 B9 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 B2 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 40 56 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B5 01 00 35 04 06 00 CD 83 C1 FE 4A 29 7F EF 57 CE C2 1D 2D 7F [04:06:24]CheckFolder [04:06:24]dirname=/storage/ofd_packets [04:06:24]CheckFolder done [04:06:24]ProducePacketName [04:06:24]name=ofd_packets/00112114 [04:06:24]NVStorageSaveData ofd_packets/00112114 [04:06:24]File name is /storage/ofd_packets/00112114 [04:06:24]Write 301 bytes [04:06:24]NVStorageSaveData done [04:06:24]OFDSenderStorePacket done [04:06:24]KKMCreateOFDPacket done [04:06:24]NVStorageSaveData kkm_last_timestamp [04:06:24]File name is /storage/kkm_last_timestamp [04:06:24]Write 4 bytes [04:06:24]NVStorageSaveData done [04:06:24]ExternCall_PrintAddStr [04:06:24]wPrintStart [04:06:24]Write to MH i2c: 01 00 00 03 05 08 [04:06:24]Write i2c OK [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: 01 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: 01 07 00 [04:06:24]MH_I2C_Read... [04:06:24]Read from MH i2c: 01 07 00 03 05 00 00 00 00 00 FF 0F 1D [04:06:24]RasterBufferAndPrint [04:06:24]line Счет N : (1)48445 [04:06:24]line ИНН: 02508201610067 [04:06:24]line Контрольно-Кассовый Чек [04:06:24]line ПРОДАЖА [04:06:24]line ТРК (МРК, ГНК) : 42 [04:06:24]line Товар: 2710124130 [04:06:24]line Аи-92-К-5 [04:06:24]line 9.650 * 64.30 [04:06:24]line = 620.50 [04:06:24]line НДС 12% НСП 1% [04:06:24]line > о реализуемом товаре [04:06:24]line ОКРУГЛЕНИЕ: -0.50 [04:06:24]line ИТОГО: 620.00 [04:06:24]line Внесено: 620.00 [04:06:24]line СДАЧА: 0.00 [04:06:24]line НСП 1% : 5.49 [04:06:24]line НДС 12% : 65.89 [04:06:24]line Наличными: 620.00 [04:06:24]line Безнал.: 0.00 [04:06:24]line Место: АЗС № 47 "Партнер Нефть" [04:06:24]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:06:24]line СНО: Общий режим [04:06:24]line Чек 13 14.04.2024 04:06 [04:06:24]line Смена: 357 ФФД: 1.0 [04:06:24]line ЗНМ: 0300000138 [04:06:24]line РНМ: 0000000000094237 [04:06:24]line Версия ККМ: 001 [04:06:24]line ФМ: 0000000000875019 [04:06:24]line ФД: 112114 [04:06:24]line ФПД: 225965779077673 [04:06:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T040624&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112114&fm=225965779077673&tin=02508201610067®Number=0000000000094237&sum=62000 [04:06:24]OFD Sender: Processing packet 112114 [packets to send 71, broken 70] [04:06:24]ProducePacketName [04:06:24]name=ofd_packets/00112114 [04:06:24]OFD Sender: To server: pG, [04:06:24]CommunicateWithHost lk.salyk.kg:30040 [04:06:24]ConnectInit lk.salyk.kg [04:06:24]written 0, free lines is 4095 [04:06:25]Connected sock=10 [04:06:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B C5 07 01 D8 B9 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 B2 25 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 62 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 40 56 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B5 01 00 35 04 06 00 CD 83 C1 FE 4A 29 7F EF 57 CE C2 1D 2D 7F [04:06:25]Write to MH i2c: 01 00 00 2E 05 33 [04:06:25]Write i2c OK [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: 01 [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: 01 07 00 [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: 01 07 00 2E 05 00 00 00 00 00 E3 0C 29 [04:06:25]RasterBufferAndPrint [04:06:25]line [04:06:25]line [04:06:25]line [04:06:25]line [04:06:25]line [04:06:25]written 0, free lines is 3305 [04:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AF 15 47 00 D7 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 38 37 35 30 31 39 10 04 04 00 F2 B5 01 00 F4 03 04 00 CD FD 1A 66 B6 04 01 00 00 BD EE 8F BE 6D CC 75 21 [04:06:25]CommunicateWithHost err = 0 [04:06:25]CheckOFDResponse [04:06:25]1017 (14) - 77093643461234 [04:06:25]1041 (16) - 0000000000875019 [04:06:25]1040 (4) - 112114 [04:06:25]1012 (4) - 13.04.2024 21:49 [04:06:25]1206 (1) - 0 [04:06:25]OFD Sender: Remove packet 112114 [04:06:25]ProducePacketName [04:06:25]name=ofd_packets/00112114 [04:06:25]NVStorageDeleteData [04:06:25]MH_Cut [04:06:25]Write to MH i2c: D1 01 00 35 05 01 0C [04:06:25]Write i2c OK [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: D1 [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: D1 01 00 [04:06:25]MH_I2C_Read... [04:06:25]Read from MH i2c: D1 01 00 35 05 00 0B [04:06:25]Write to MH i2c: 01 00 00 36 05 3B [04:06:25]Write i2c OK [04:06:25]MH_I2C_Read... [04:06:25]OFD Sender: No OFD packet to send [04:06:26]*** Cut start [04:06:26]*** Partial cut [04:06:26]*** CUTSNS_PIN = 1 [04:06:26]*** CUTSNS_PIN = 0 [04:06:26]*** Brake cut motor [04:06:26]Read from MH i2c: 01 [04:06:26]MH_I2C_Read... [04:06:26]*** Stop cut motor [04:06:26]*** Cut end [04:06:26]Read from MH i2c: 01 07 00 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 FF 0F 50 [04:06:26]process_action close_receipt done [04:06:26]requested_data is exist [04:06:26]produce_requested_data [04:06:26]requested_item fm.sn is exist - process it [04:06:26]wFMCommunicate request_size=4 [04:06:26]MH_SAM_APDU [04:06:26]CAPDU: 80 11 00 00 [04:06:26]Write to MH i2c: E2 08 00 37 05 80 11 00 00 00 00 00 00 B6 [04:06:26]Write i2c OK [04:06:26]MH_I2C_Read... [04:06:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:06:26]Read from MH i2c: E2 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 17 00 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 17 00 37 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 07 [04:06:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:06:26]wFMCommunicate OK [04:06:26]requested_item fd.num is exist - process it [04:06:26]SAM_PROTO_GetFieldsCounters [04:06:26]wFMCommunicate request_size=4 [04:06:26]MH_SAM_APDU [04:06:26]CAPDU: 80 13 00 00 [04:06:26]Write to MH i2c: E2 08 00 38 05 80 13 00 00 00 00 00 00 B9 [04:06:26]Write i2c OK [04:06:26]MH_I2C_Read... [04:06:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:06:26]Read from MH i2c: E2 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 62 00 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 62 00 38 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F2 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [04:06:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F2 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:06:26]wFMCommunicate OK [04:06:26]SAM_PROTO_GetFieldsCounters done [04:06:26]requested_item shift.num is exist - process it [04:06:26]requested_item shift.opened is exist - process it [04:06:26]req_shift_opened [04:06:26]FM_GetShiftState [04:06:26]SAM_PROTO_GetShiftState [04:06:26]wFMCommunicate request_size=4 [04:06:26]MH_SAM_APDU [04:06:26]CAPDU: 80 13 01 00 [04:06:26]Write to MH i2c: E2 08 00 39 05 80 13 01 00 00 00 00 00 BB [04:06:26]Write i2c OK [04:06:26]MH_I2C_Read... [04:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:06:26]Read from MH i2c: E2 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 0E 00 [04:06:26]MH_I2C_Read... [04:06:26]Read from MH i2c: E2 0E 00 39 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 53 [04:06:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:06:26]wFMCommunicate OK [04:06:26]SAM_PROTO_GetShiftState done [04:06:26]FM_GetShiftState done [04:06:26]req_shift_opened done [04:06:26]requested_item shift.open_date is exist - process it [04:06:26]req_shift_open_date [04:06:26]req_shift_open_date done [04:06:26]produce_requested_data done [04:06:26]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112114,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:06:26]process_action_free close_receipt [04:06:26]json_value_free [04:06:26]json_value_free done [04:06:26]process_json_proto returns [04:06:26]Send response to host [04:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112114,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:06:26]free response buf [04:06:26]execute_script done [04:06:26]execute_script returns [04:06:26]free content buf [04:06:26]Sock 8.Close socket [04:06:26]Sock 8.Thread stoped [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]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]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:51]OFD Sender: No OFD packet to send [04:22:56]OFD Sender: No OFD packet to send [04:23:01]OFD Sender: No OFD packet to send [04:23:06]OFD Sender: No OFD packet to send [04:23:11]OFD Sender: No OFD packet to send [04:23:16]OFD Sender: No OFD packet to send [04:23:21]OFD Sender: No OFD packet to send [04:23:26]OFD Sender: No OFD packet to send [04:23:31]OFD Sender: No OFD packet to send [04:23:36]OFD Sender: No OFD packet to send [04:23:41]OFD Sender: No OFD packet to send [04:23:46]OFD Sender: No OFD packet to send [04:23:51]OFD Sender: No OFD packet to send [04:23:56]OFD Sender: No OFD packet to send [04:24:01]OFD Sender: No OFD packet to send [04:24:06]OFD Sender: No OFD packet to send [04:24:11]OFD Sender: No OFD packet to send [04:24:16]OFD Sender: No OFD packet to send [04:24:21]OFD Sender: No OFD packet to send [04:24:26]OFD Sender: No OFD packet to send [04:24:31]OFD Sender: No OFD packet to send [04:24:36]OFD Sender: No OFD packet to send [04:24:41]OFD Sender: No OFD packet to send [04:24:46]OFD Sender: No OFD packet to send [04:24:51]OFD Sender: No OFD packet to send [04:24:56]OFD Sender: No OFD packet to send [04:25:01]OFD Sender: No OFD packet to send [04:25:06]OFD Sender: No OFD packet to send [04:25:11]OFD Sender: No OFD packet to send [04:25:16]OFD Sender: No OFD packet to send [04:25:21]OFD Sender: No OFD packet to send [04:25:26]OFD Sender: No OFD packet to send [04:25:31]OFD Sender: No OFD packet to send [04:25:36]OFD Sender: No OFD packet to send [04:25:39]accept exits with 9 [04:25:39]New connection [04:25:39]New thread 3067358564 created [04:25:39]Thread 3067501924 joined [04:25:39]Waiting for new connection... [04:25:39] Sock 9.Parse request [04:25:39]Sock 9.Check first char [04:25:39]Sock 9.First char is OK [04:25:39]request: POST /json_proto HTTP/1.0 [04:25:39]Method: POST [04:25:39]URL: /json_proto [04:25:39]Method is POST - this is cgi request [04:25:39]url: /json_proto [04:25:39]query_string will be loaded in cgi processing [04:25:39]execute_cgi json_proto POST (null) [04:25:39]execute_cgi path=json_proto method=POST [04:25:39]POST find Content-Length [04:25:39]Host: 172.17.96.197:8080 [04:25:39]Content-Length: 619 [04:25:39]Content-Type: application/json [04:25:39] [04:25:39]POST finish read [04:25:39]Found Content-Length = 619 [04:25:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10398", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:39]execute_script... [04:25:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10398", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:25:39]POST & json_proto [04:25:39]process_json_proto [04:25:39]json parsed OK: [04:25:39]protocol is kg_v1.0 [04:25:39]action value=close_receipt [04:25:39]process_action close_receipt [04:25:39]cmd_close_receipt [04:25:39]MH_GetDate [04:25:39]Write to MH i2c: F0 00 00 3A 05 2E [04:25:39]Write i2c OK [04:25:39]MH_I2C_Read... [04:25:39]Read from MH i2c: F0 [04:25:39]MH_I2C_Read... [04:25:39]Read from MH i2c: F0 09 00 [04:25:39]MH_I2C_Read... [04:25:39]Read from MH i2c: F0 09 00 3A 05 00 C5 5A 1B 66 E0 85 7F 64 1F [04:25:39]GetLastDocTimeStamp 1713067584 [04:25:39]current date 1713068741 [04:25:39]FM_GetShiftState [04:25:39]SAM_PROTO_GetShiftState [04:25:39]wFMCommunicate request_size=4 [04:25:39]MH_SAM_APDU [04:25:39]CAPDU: 80 13 01 00 [04:25:39]Write to MH i2c: E2 08 00 3B 05 80 13 01 00 00 00 00 00 BD [04:25:39]Write i2c OK [04:25:39]MH_I2C_Read... [04:25:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:39]Read from MH i2c: E2 [04:25:39]MH_I2C_Read... [04:25:39]Read from MH i2c: E2 0E 00 [04:25:39]MH_I2C_Read... [04:25:39]Read from MH i2c: E2 0E 00 3B 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 55 [04:25:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:25:39]wFMCommunicate OK [04:25:39]SAM_PROTO_GetShiftState done [04:25:39]FM_GetShiftState done [04:25:39]opened in 1713054696 [04:25:39]opened+sec_in_day 1713141096 [04:25:39]quantity*price = 13800 [04:25:39]sum+1 = 13801 [04:25:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 14 14.04.2024 04:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112115 ФПД: 64950204986525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T042541&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112115&fm=64950204986525&tin=02508201610067®Number=0000000000094237&sum=13800 0 [04:25:40]StoreToDocumentArchive [04:25:40]shift 357 fd 112115 [04:25:40]save to /storage/0357/doc_00112115 [04:25:40]save last doc name /storage/0357/doc_00112115 to /storage/kkm_last_doc_name [04:25:40]save OK [04:25:40]Clear old archive folders... [04:25:40]ProcessDocumentItem done err = 0, tmpTLVsize=272 [04:25:40]tlvbuf is 01B36FA0 [04:25:40]SAM_PROTO_ClearQueue [04:25:40]wFMCommunicate request_size=4 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 09 00 00 [04:25:40]Write to MH i2c: E2 08 00 48 05 80 09 00 00 00 00 00 00 BF [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:40]Read from MH i2c: E2 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 48 05 00 90 00 C1 [04:25:40]RAPDU: 90 00 [04:25:40]wFMCommunicate OK [04:25:40]SAM_PROTO_ClearQueue done [04:25:40]KKMCreateOFDPacket [04:25:40]OFDProtocolAddRootSTLVToBuf [04:25:40]FM_MakeSignedData [04:25:40]FM_MakeSignedData [04:25:40]SAM_PROTO_SignData [04:25:40]wFMCommunicate request_size=4 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 0D 01 02 [04:25:40]Write to MH i2c: E2 08 00 49 05 80 0D 01 02 00 00 00 00 C7 [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:40]Read from MH i2c: E2 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 49 05 00 90 00 C2 [04:25:40]RAPDU: 90 00 [04:25:40]wFMCommunicate OK [04:25:40]wFMCommunicate request_size=255 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 C5 5A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [04:25:40]Write to MH i2c: E2 02 01 4A 05 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 C5 5A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 03 [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:40]Read from MH i2c: E2 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 4A 05 00 90 00 C3 [04:25:40]RAPDU: 90 00 [04:25:40]wFMCommunicate OK [04:25:40]wFMCommunicate request_size=31 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 F3 B5 01 00 35 04 06 00 3B 12 65 E5 74 9D [04:25:40]Write to MH i2c: E2 22 00 4B 05 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 F3 B5 01 00 35 04 06 00 3B 12 65 E5 74 9D 00 00 44 [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:40]Read from MH i2c: E2 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 03 00 4B 05 00 90 00 C4 [04:25:40]RAPDU: 90 00 [04:25:40]wFMCommunicate OK [04:25:40]wFMCommunicate request_size=4 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 0D 03 02 [04:25:40]Write to MH i2c: E2 08 00 4C 05 80 0D 03 02 00 00 00 00 CC [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:40]Read from MH i2c: E2 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 0B 00 [04:25:40]MH_I2C_Read... [04:25:40]Read from MH i2c: E2 0B 00 4C 05 00 67 A0 22 DB 4A 5C 54 6A 90 00 35 [04:25:40]RAPDU: 67 A0 22 DB 4A 5C 54 6A 90 00 [04:25:40]wFMCommunicate OK [04:25:40]SAM_PROTO_SignData done [04:25:40]FM_MakeSignedData done [04:25:40]CreateOFDProtocolMessage [04:25:40]wFMCommunicate request_size=4 [04:25:40]MH_SAM_APDU [04:25:40]CAPDU: 80 11 00 00 [04:25:40]Write to MH i2c: E2 08 00 4D 05 80 11 00 00 00 00 00 00 CC [04:25:40]Write i2c OK [04:25:40]MH_I2C_Read... [04:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:41]Read from MH i2c: E2 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: E2 17 00 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: E2 17 00 4D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1D [04:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:25:41]wFMCommunicate OK [04:25:41]CreateOFDProtocolMessage done [04:25:41]OFDSenderStorePacket 112115 [04:25:41]StoreOFDPacket docnum=112115 [04:25:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 F4 0A 1C 01 22 57 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 C5 5A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B5 01 00 35 04 06 00 3B 12 65 E5 74 9D 67 A0 22 DB 4A 5C 54 6A [04:25:41]CheckFolder [04:25:41]dirname=/storage/ofd_packets [04:25:41]CheckFolder done [04:25:41]ProducePacketName [04:25:41]name=ofd_packets/00112115 [04:25:41]NVStorageSaveData ofd_packets/00112115 [04:25:41]File name is /storage/ofd_packets/00112115 [04:25:41]Write 322 bytes [04:25:41]NVStorageSaveData done [04:25:41]OFDSenderStorePacket done [04:25:41]KKMCreateOFDPacket done [04:25:41]NVStorageSaveData kkm_last_timestamp [04:25:41]File name is /storage/kkm_last_timestamp [04:25:41]Write 4 bytes [04:25:41]NVStorageSaveData done [04:25:41]ExternCall_PrintAddStr [04:25:41]wPrintStart [04:25:41]Write to MH i2c: 01 00 00 4E 05 53 [04:25:41]Write i2c OK [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 07 00 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 07 00 4E 05 00 00 00 00 00 FF 0F 68 [04:25:41]RasterBufferAndPrint [04:25:41]line Счет N : (3)10398 [04:25:41]line ИНН: 02508201610067 [04:25:41]line Контрольно-Кассовый Чек [04:25:41]line ПРОДАЖА [04:25:41]line Товар: 4640030091607 [04:25:41]line Сигареты ESSE Exchange [04:25:41]line 1.000 * 138.00 [04:25:41]line = 138.00 [04:25:41]line НДС 12% НСП 1% [04:25:41]line > о реализуемом товаре [04:25:41]line ИТОГО: 138.00 [04:25:41]line НСП 1% : 1.22 [04:25:41]line НДС 12% : 14.65 [04:25:41]line Наличными: 138.00 [04:25:41]line Безнал.: 0.00 [04:25:41]line Место: АЗС № 47 "Партнер Нефть" [04:25:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:25:41]line СНО: Общий режим [04:25:41]line Чек 14 14.04.2024 04:25 [04:25:41]line Смена: 357 ФФД: 1.0 [04:25:41]line ЗНМ: 0300000138 [04:25:41]line РНМ: 0000000000094237 [04:25:41]line Версия ККМ: 001 [04:25:41]line ФМ: 0000000000875019 [04:25:41]line ФД: 112115 [04:25:41]line ФПД: 64950204986525 [04:25:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T042541&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112115&fm=64950204986525&tin=02508201610067®Number=0000000000094237&sum=13800 [04:25:41]line 0 [04:25:41]OFD Sender: Processing packet 112115 [packets to send 71, broken 70] [04:25:41]ProducePacketName [04:25:41]name=ofd_packets/00112115 [04:25:41]OFD Sender: To server: pG, [04:25:41]CommunicateWithHost lk.salyk.kg:30040 [04:25:41]ConnectInit lk.salyk.kg [04:25:41]written 0, free lines is 4095 [04:25:41]Connected sock=10 [04:25:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 F4 0A 1C 01 22 57 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 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 C5 5A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B5 01 00 35 04 06 00 3B 12 65 E5 74 9D 67 A0 22 DB 4A 5C 54 6A [04:25:41]Write to MH i2c: 01 00 00 76 05 7B [04:25:41]Write i2c OK [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 07 00 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: 01 07 00 76 05 00 00 00 00 00 F7 0C 85 [04:25:41]RasterBufferAndPrint [04:25:41]line [04:25:41]line [04:25:41]line [04:25:41]line [04:25:41]line [04:25:41]written 0, free lines is 3326 [04:25:41]MH_Cut [04:25:41]Write to MH i2c: D1 01 00 7D 05 01 54 [04:25:41]Write i2c OK [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: D1 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: D1 01 00 [04:25:41]MH_I2C_Read... [04:25:41]Read from MH i2c: D1 01 00 7D 05 00 53 [04:25:41]Write to MH i2c: 01 00 00 7E 05 83 [04:25:41]Write i2c OK [04:25:41]MH_I2C_Read... [04:25:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C6 D5 47 00 84 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B5 01 00 F4 03 04 00 51 02 1B 66 B6 04 01 00 00 0E B3 33 1D CF 28 C1 3D [04:25:41]CommunicateWithHost err = 0 [04:25:41]CheckOFDResponse [04:25:41]1017 (14) - 77093643461234 [04:25:41]1041 (16) - 0000000000875019 [04:25:41]1040 (4) - 112115 [04:25:41]1012 (4) - 13.04.2024 22:08 [04:25:41]1206 (1) - 0 [04:25:41]OFD Sender: Remove packet 112115 [04:25:41]ProducePacketName [04:25:41]name=ofd_packets/00112115 [04:25:41]NVStorageDeleteData [04:25:42]OFD Sender: No OFD packet to send [04:25:42]*** Cut start [04:25:42]*** Partial cut [04:25:42]*** CUTSNS_PIN = 1 [04:25:42]*** CUTSNS_PIN = 0 [04:25:42]*** Brake cut motor [04:25:43]Read from MH i2c: 01 [04:25:43]MH_I2C_Read... [04:25:43]*** Stop cut motor [04:25:43]*** Cut end [04:25:43]Read from MH i2c: 01 07 00 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: 01 07 00 7E 05 00 00 00 00 00 FF 0F 98 [04:25:43]process_action close_receipt done [04:25:43]requested_data is exist [04:25:43]produce_requested_data [04:25:43]requested_item fm.sn is exist - process it [04:25:43]wFMCommunicate request_size=4 [04:25:43]MH_SAM_APDU [04:25:43]CAPDU: 80 11 00 00 [04:25:43]Write to MH i2c: E2 08 00 7F 05 80 11 00 00 00 00 00 00 FE [04:25:43]Write i2c OK [04:25:43]MH_I2C_Read... [04:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:43]Read from MH i2c: E2 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 17 00 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 17 00 7F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [04:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:25:43]wFMCommunicate OK [04:25:43]requested_item fd.num is exist - process it [04:25:43]SAM_PROTO_GetFieldsCounters [04:25:43]wFMCommunicate request_size=4 [04:25:43]MH_SAM_APDU [04:25:43]CAPDU: 80 13 00 00 [04:25:43]Write to MH i2c: E2 08 00 80 05 80 13 00 00 00 00 00 00 01 [04:25:43]Write i2c OK [04:25:43]MH_I2C_Read... [04:25:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:43]Read from MH i2c: E2 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 62 00 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 62 00 80 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F3 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [04:25:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F3 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:25:43]wFMCommunicate OK [04:25:43]SAM_PROTO_GetFieldsCounters done [04:25:43]requested_item shift.num is exist - process it [04:25:43]requested_item shift.opened is exist - process it [04:25:43]req_shift_opened [04:25:43]FM_GetShiftState [04:25:43]SAM_PROTO_GetShiftState [04:25:43]wFMCommunicate request_size=4 [04:25:43]MH_SAM_APDU [04:25:43]CAPDU: 80 13 01 00 [04:25:43]Write to MH i2c: E2 08 00 81 05 80 13 01 00 00 00 00 00 03 [04:25:43]Write i2c OK [04:25:43]MH_I2C_Read... [04:25:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:43]Read from MH i2c: E2 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 0E 00 [04:25:43]MH_I2C_Read... [04:25:43]Read from MH i2c: E2 0E 00 81 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9B [04:25:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:25:43]wFMCommunicate OK [04:25:43]SAM_PROTO_GetShiftState done [04:25:43]FM_GetShiftState done [04:25:43]req_shift_opened done [04:25:43]requested_item shift.open_date is exist - process it [04:25:43]req_shift_open_date [04:25:43]req_shift_open_date done [04:25:43]produce_requested_data done [04:25:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112115,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:25:43]process_action_free close_receipt [04:25:43]json_value_free [04:25:43]json_value_free done [04:25:43]process_json_proto returns [04:25:43]Send response to host [04:25:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112115,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:25:43]free response buf [04:25:43]execute_script done [04:25:43]execute_script returns [04:25:43]free content buf [04:25:43]Sock 9.Close socket [04:25:43]Sock 9.Thread stoped [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:02]OFD Sender: No OFD packet to send [04:31:07]OFD Sender: No OFD packet to send [04:31:12]OFD Sender: No OFD packet to send [04:31:17]OFD Sender: No OFD packet to send [04:31:22]OFD Sender: No OFD packet to send [04:31:27]OFD Sender: No OFD packet to send [04:31:32]OFD Sender: No OFD packet to send [04:31:37]OFD Sender: No OFD packet to send [04:31:42]accept exits with 8 [04:31:42]New connection [04:31:42]New thread 3067501924 created [04:31:42]Thread 3067358564 joined [04:31:42]Waiting for new connection... [04:31:42] Sock 8.Parse request [04:31:42]Sock 8.Check first char [04:31:42]Sock 8.First char is OK [04:31:42]request: POST /json_proto HTTP/1.0 [04:31:42]Method: POST [04:31:42]URL: /json_proto [04:31:42]Method is POST - this is cgi request [04:31:42]url: /json_proto [04:31:42]query_string will be loaded in cgi processing [04:31:42]execute_cgi json_proto POST (null) [04:31:42]execute_cgi path=json_proto method=POST [04:31:42]POST find Content-Length [04:31:42]Host: 172.17.96.197:8080 [04:31:42]Content-Length: 694 [04:31:42]Content-Type: application/json [04:31:42] [04:31:42]POST finish read [04:31:42]Found Content-Length = 694 [04:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10399", "tax_sys" : 0, "items" : [ { "code": "2000039210055", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u043A\u0443\u0440\u0438\u043D\u0430\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:42]execute_script... [04:31:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10399", "tax_sys" : 0, "items" : [ { "code": "2000039210055", "name": "\u0410\u041A\u0426\u0418\u042F \u0424\u0440\u0435\u043D\u0447-\u0434\u043E\u0433 Sib \u043A\u0443\u0440\u0438\u043D\u0430\u044F 180\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:42]POST & json_proto [04:31:42]process_json_proto [04:31:42]json parsed OK: [04:31:42]protocol is kg_v1.0 [04:31:42]action value=close_receipt [04:31:42]process_action close_receipt [04:31:42]cmd_close_receipt [04:31:42]MH_GetDate [04:31:42]Write to MH i2c: F0 00 00 82 05 76 [04:31:42]Write i2c OK [04:31:42]MH_I2C_Read... [04:31:42]Read from MH i2c: F0 [04:31:42]MH_I2C_Read... [04:31:42]Read from MH i2c: F0 09 00 [04:31:42]MH_I2C_Read... [04:31:42]Read from MH i2c: F0 09 00 82 05 00 30 5C 1B 66 E0 85 7F 64 D4 [04:31:42]GetLastDocTimeStamp 1713068741 [04:31:42]current date 1713069104 [04:31:42]FM_GetShiftState [04:31:42]SAM_PROTO_GetShiftState [04:31:42]wFMCommunicate request_size=4 [04:31:42]MH_SAM_APDU [04:31:42]CAPDU: 80 13 01 00 [04:31:42]Write to MH i2c: E2 08 00 83 05 80 13 01 00 00 00 00 00 05 [04:31:42]Write i2c OK [04:31:42]MH_I2C_Read... [04:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:42]Read from MH i2c: E2 [04:31:42]MH_I2C_Read... [04:31:42]Read from MH i2c: E2 0E 00 [04:31:42]MH_I2C_Read... [04:31:42]Read from MH i2c: E2 0E 00 83 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9D [04:31:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:31:42]wFMCommunicate OK [04:31:42]SAM_PROTO_GetShiftState done [04:31:42]FM_GetShiftState done [04:31:42]opened in 1713054696 [04:31:42]opened+sec_in_day 1713141096 [04:31:42]quantity*price = 13000 [04:31:42]sum+1 = 13001 [04:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 15 14.04.2024 04:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112116 ФПД: 65687697206910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043144&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112116&fm=65687697206910&tin=02508201610067®Number=0000000000094237&sum=13000 0 [04:31:43]StoreToDocumentArchive [04:31:43]shift 357 fd 112116 [04:31:43]save to /storage/0357/doc_00112116 [04:31:43]save last doc name /storage/0357/doc_00112116 to /storage/kkm_last_doc_name [04:31:43]save OK [04:31:43]Clear old archive folders... [04:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=295 [04:31:43]tlvbuf is 01B217D0 [04:31:43]SAM_PROTO_ClearQueue [04:31:43]wFMCommunicate request_size=4 [04:31:43]MH_SAM_APDU [04:31:43]CAPDU: 80 09 00 00 [04:31:43]Write to MH i2c: E2 08 00 90 05 80 09 00 00 00 00 00 00 07 [04:31:43]Write i2c OK [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 [04:31:43]MH_I2C_Read... [04:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:43]Read from MH i2c: E2 03 00 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 90 05 00 90 00 09 [04:31:43]RAPDU: 90 00 [04:31:43]wFMCommunicate OK [04:31:43]SAM_PROTO_ClearQueue done [04:31:43]KKMCreateOFDPacket [04:31:43]OFDProtocolAddRootSTLVToBuf [04:31:43]FM_MakeSignedData [04:31:43]FM_MakeSignedData [04:31:43]SAM_PROTO_SignData [04:31:43]wFMCommunicate request_size=4 [04:31:43]MH_SAM_APDU [04:31:43]CAPDU: 80 0D 01 02 [04:31:43]Write to MH i2c: E2 08 00 91 05 80 0D 01 02 00 00 00 00 0F [04:31:43]Write i2c OK [04:31:43]MH_I2C_Read... [04:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:43]Read from MH i2c: E2 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 91 05 00 90 00 0A [04:31:43]RAPDU: 90 00 [04:31:43]wFMCommunicate OK [04:31:43]wFMCommunicate request_size=255 [04:31:43]MH_SAM_APDU [04:31:43]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 35 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 5C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [04:31:43]Write to MH i2c: E2 02 01 92 05 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 35 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 5C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 1D [04:31:43]Write i2c OK [04:31:43]MH_I2C_Read... [04:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:43]Read from MH i2c: E2 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 92 05 00 90 00 0B [04:31:43]RAPDU: 90 00 [04:31:43]wFMCommunicate OK [04:31:43]wFMCommunicate request_size=54 [04:31:43]MH_SAM_APDU [04:31:43]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B5 01 00 35 04 06 00 3B BE 1B DB AE 7E [04:31:43]Write to MH i2c: E2 39 00 93 05 80 0D 02 02 31 00 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B5 01 00 35 04 06 00 3B BE 1B DB AE 7E 00 00 FC [04:31:43]Write i2c OK [04:31:43]MH_I2C_Read... [04:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:43]Read from MH i2c: E2 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 [04:31:43]MH_I2C_Read... [04:31:43]Read from MH i2c: E2 03 00 93 05 00 90 00 0C [04:31:43]RAPDU: 90 00 [04:31:43]wFMCommunicate OK [04:31:43]wFMCommunicate request_size=4 [04:31:43]MH_SAM_APDU [04:31:43]CAPDU: 80 0D 03 02 [04:31:43]Write to MH i2c: E2 08 00 94 05 80 0D 03 02 00 00 00 00 14 [04:31:43]Write i2c OK [04:31:43]MH_I2C_Read... [04:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:44]Read from MH i2c: E2 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: E2 0B 00 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: E2 0B 00 94 05 00 09 2D 96 01 9F C3 B3 42 90 00 39 [04:31:44]RAPDU: 09 2D 96 01 9F C3 B3 42 90 00 [04:31:44]wFMCommunicate OK [04:31:44]SAM_PROTO_SignData done [04:31:44]FM_MakeSignedData done [04:31:44]CreateOFDProtocolMessage [04:31:44]wFMCommunicate request_size=4 [04:31:44]MH_SAM_APDU [04:31:44]CAPDU: 80 11 00 00 [04:31:44]Write to MH i2c: E2 08 00 95 05 80 11 00 00 00 00 00 00 14 [04:31:44]Write i2c OK [04:31:44]MH_I2C_Read... [04:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:44]Read from MH i2c: E2 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: E2 17 00 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: E2 17 00 95 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [04:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:31:44]wFMCommunicate OK [04:31:44]CreateOFDProtocolMessage done [04:31:44]OFDSenderStorePacket 112116 [04:31:44]StoreOFDPacket docnum=112116 [04:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3B 01 00 00 8B 3C 33 01 8C 6C 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 35 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 5C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B5 01 00 35 04 06 00 3B BE 1B DB AE 7E 09 2D 96 01 9F C3 B3 42 [04:31:44]CheckFolder [04:31:44]dirname=/storage/ofd_packets [04:31:44]CheckFolder done [04:31:44]ProducePacketName [04:31:44]name=ofd_packets/00112116 [04:31:44]NVStorageSaveData ofd_packets/00112116 [04:31:44]File name is /storage/ofd_packets/00112116 [04:31:44]Write 345 bytes [04:31:44]NVStorageSaveData done [04:31:44]OFDSenderStorePacket done [04:31:44]KKMCreateOFDPacket done [04:31:44]NVStorageSaveData kkm_last_timestamp [04:31:44]File name is /storage/kkm_last_timestamp [04:31:44]Write 4 bytes [04:31:44]NVStorageSaveData done [04:31:44]ExternCall_PrintAddStr [04:31:44]wPrintStart [04:31:44]Write to MH i2c: 01 00 00 96 05 9B [04:31:44]Write i2c OK [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 07 00 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 07 00 96 05 00 00 00 00 00 FF 0F B0 [04:31:44]RasterBufferAndPrint [04:31:44]line Счет N : (3)10399 [04:31:44]line ИНН: 02508201610067 [04:31:44]line Контрольно-Кассовый Чек [04:31:44]line ПРОДАЖА [04:31:44]line Товар: 2000039210055 [04:31:44]line АКЦИЯ Френч-дог Sib куриная 180г [04:31:44]line 1.000 * 130.00 [04:31:44]line = 130.00 [04:31:44]line НДС 12% НСП 1% [04:31:44]line > о реализуемом товаре [04:31:44]line ИТОГО: 130.00 [04:31:44]line НСП 1% : 1.15 [04:31:44]line НДС 12% : 13.80 [04:31:44]line Наличными: 130.00 [04:31:44]line Безнал.: 0.00 [04:31:44]line Место: АЗС № 47 "Партнер Нефть" [04:31:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:31:44]line СНО: Общий режим [04:31:44]line Чек 15 14.04.2024 04:31 [04:31:44]line Смена: 357 ФФД: 1.0 [04:31:44]line ЗНМ: 0300000138 [04:31:44]line РНМ: 0000000000094237 [04:31:44]line Версия ККМ: 001 [04:31:44]line ФМ: 0000000000875019 [04:31:44]line ФД: 112116 [04:31:44]line ФПД: 65687697206910 [04:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043144&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112116&fm=65687697206910&tin=02508201610067®Number=0000000000094237&sum=13000 [04:31:44]line 0 [04:31:44]OFD Sender: Processing packet 112116 [packets to send 71, broken 70] [04:31:44]ProducePacketName [04:31:44]name=ofd_packets/00112116 [04:31:44]OFD Sender: To server: pG, [04:31:44]CommunicateWithHost lk.salyk.kg:30040 [04:31:44]ConnectInit lk.salyk.kg [04:31:44]written 0, free lines is 4095 [04:31:44]Connected sock=10 [04:31:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3B 01 00 00 8B 3C 33 01 8C 6C 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 32 30 30 30 30 33 39 32 31 30 30 35 35 06 04 35 00 D0 90 D0 9A D0 A6 D0 98 D0 AF 20 D0 A4 D1 80 D0 B5 D0 BD D1 87 2D D0 B4 D0 BE D0 B3 20 53 69 62 20 D0 BA D1 83 D1 80 D0 B8 D0 BD D0 B0 D1 8F 20 31 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 30 5C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B5 01 00 35 04 06 00 3B BE 1B DB AE 7E 09 2D 96 01 9F C3 B3 42 [04:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 85 C0 47 00 4A 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 38 37 35 30 31 39 10 04 04 00 F4 B5 01 00 F4 03 04 00 BC 03 1B 66 B6 04 01 00 00 34 19 63 6B 3F 78 A4 8F [04:31:44]CommunicateWithHost err = 0 [04:31:44]CheckOFDResponse [04:31:44]1017 (14) - 77093643461234 [04:31:44]1041 (16) - 0000000000875019 [04:31:44]1040 (4) - 112116 [04:31:44]1012 (4) - 13.04.2024 22:14 [04:31:44]1206 (1) - 0 [04:31:44]OFD Sender: Remove packet 112116 [04:31:44]ProducePacketName [04:31:44]name=ofd_packets/00112116 [04:31:44]NVStorageDeleteData [04:31:44]Write to MH i2c: 01 00 00 BF 05 C4 [04:31:44]Write i2c OK [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 07 00 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 F0 0C C7 [04:31:44]RasterBufferAndPrint [04:31:44]line [04:31:44]line [04:31:44]line [04:31:44]line [04:31:44]line [04:31:44]written 0, free lines is 3322 [04:31:44]MH_Cut [04:31:44]Write to MH i2c: D1 01 00 C6 05 01 9D [04:31:44]Write i2c OK [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: D1 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: D1 01 00 [04:31:44]MH_I2C_Read... [04:31:44]Read from MH i2c: D1 01 00 C6 05 00 9C [04:31:44]Write to MH i2c: 01 00 00 C7 05 CC [04:31:44]Write i2c OK [04:31:44]MH_I2C_Read... [04:31:45]OFD Sender: No OFD packet to send [04:31:45]*** Cut start [04:31:45]*** Partial cut [04:31:45]*** CUTSNS_PIN = 1 [04:31:45]*** CUTSNS_PIN = 0 [04:31:45]*** Brake cut motor [04:31:46]Read from MH i2c: 01 [04:31:46]MH_I2C_Read... [04:31:46]*** Stop cut motor [04:31:46]*** Cut end [04:31:46]Read from MH i2c: 01 07 00 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 FF 0F E1 [04:31:46]process_action close_receipt done [04:31:46]requested_data is exist [04:31:46]produce_requested_data [04:31:46]requested_item fm.sn is exist - process it [04:31:46]wFMCommunicate request_size=4 [04:31:46]MH_SAM_APDU [04:31:46]CAPDU: 80 11 00 00 [04:31:46]Write to MH i2c: E2 08 00 C8 05 80 11 00 00 00 00 00 00 47 [04:31:46]Write i2c OK [04:31:46]MH_I2C_Read... [04:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:46]Read from MH i2c: E2 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 17 00 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 17 00 C8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 98 [04:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:31:46]wFMCommunicate OK [04:31:46]requested_item fd.num is exist - process it [04:31:46]SAM_PROTO_GetFieldsCounters [04:31:46]wFMCommunicate request_size=4 [04:31:46]MH_SAM_APDU [04:31:46]CAPDU: 80 13 00 00 [04:31:46]Write to MH i2c: E2 08 00 C9 05 80 13 00 00 00 00 00 00 4A [04:31:46]Write i2c OK [04:31:46]MH_I2C_Read... [04:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:46]Read from MH i2c: E2 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 62 00 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 62 00 C9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F4 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [04:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F4 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:31:46]wFMCommunicate OK [04:31:46]SAM_PROTO_GetFieldsCounters done [04:31:46]requested_item shift.num is exist - process it [04:31:46]requested_item shift.opened is exist - process it [04:31:46]req_shift_opened [04:31:46]FM_GetShiftState [04:31:46]SAM_PROTO_GetShiftState [04:31:46]wFMCommunicate request_size=4 [04:31:46]MH_SAM_APDU [04:31:46]CAPDU: 80 13 01 00 [04:31:46]Write to MH i2c: E2 08 00 CA 05 80 13 01 00 00 00 00 00 4C [04:31:46]Write i2c OK [04:31:46]MH_I2C_Read... [04:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:46]Read from MH i2c: E2 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 0E 00 [04:31:46]MH_I2C_Read... [04:31:46]Read from MH i2c: E2 0E 00 CA 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E4 [04:31:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:31:46]wFMCommunicate OK [04:31:46]SAM_PROTO_GetShiftState done [04:31:46]FM_GetShiftState done [04:31:46]req_shift_opened done [04:31:46]requested_item shift.open_date is exist - process it [04:31:46]req_shift_open_date [04:31:46]req_shift_open_date done [04:31:46]produce_requested_data done [04:31:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112116,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:31:46]process_action_free close_receipt [04:31:46]json_value_free [04:31:46]json_value_free done [04:31:46]process_json_proto returns [04:31:46]Send response to host [04:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112116,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:31:46]free response buf [04:31:46]execute_script done [04:31:46]execute_script returns [04:31:46]free content buf [04:31:46]Sock 8.Close socket [04:31:46]Sock 8.Thread stoped [04:31:50]OFD Sender: No OFD packet to send [04:31:55]OFD Sender: No OFD packet to send [04:32:00]OFD Sender: No OFD packet to send [04:32:05]OFD Sender: No OFD packet to send [04:32:10]OFD Sender: No OFD packet to send [04:32:15]OFD Sender: No OFD packet to send [04:32:20]OFD Sender: No OFD packet to send [04:32:25]OFD Sender: No OFD packet to send [04:32:30]OFD Sender: No OFD packet to send [04:32:35]OFD Sender: No OFD packet to send [04:32:40]OFD Sender: No OFD packet to send [04:32:45]OFD Sender: No OFD packet to send [04:32:50]OFD Sender: No OFD packet to send [04:32:55]OFD Sender: No OFD packet to send [04:33:00]OFD Sender: No OFD packet to send [04:33:05]OFD Sender: No OFD packet to send [04:33:10]OFD Sender: No OFD packet to send [04:33:15]OFD Sender: No OFD packet to send [04:33:20]OFD Sender: No OFD packet to send [04:33:25]OFD Sender: No OFD packet to send [04:33:30]OFD Sender: No OFD packet to send [04:33:35]OFD Sender: No OFD packet to send [04:33:40]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:32]accept exits with 9 [04:38:32]New connection [04:38:32]New thread 3067358564 created [04:38:32]Thread 3067501924 joined [04:38:32]Waiting for new connection... [04:38:32] Sock 9.Parse request [04:38:32]Sock 9.Check first char [04:38:32]Sock 9.First char is OK [04:38:32]request: POST /json_proto HTTP/1.0 [04:38:32]Method: POST [04:38:32]URL: /json_proto [04:38:32]Method is POST - this is cgi request [04:38:32]url: /json_proto [04:38:32]query_string will be loaded in cgi processing [04:38:32]execute_cgi json_proto POST (null) [04:38:32]execute_cgi path=json_proto method=POST [04:38:32]POST find Content-Length [04:38:32]Host: 172.17.96.197:8080 [04:38:32]Content-Length: 681 [04:38:32]Content-Type: application/json [04:38:32] [04:38:32]POST finish read [04:38:32]Found Content-Length = 681 [04:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 21.780, "sum" : 1400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:32]execute_script... [04:38: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)48446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 21.780, "sum" : 1400.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:38:32]POST & json_proto [04:38:32]process_json_proto [04:38:32]json parsed OK: [04:38:32]protocol is kg_v1.0 [04:38:32]action value=close_receipt [04:38:32]process_action close_receipt [04:38:32]cmd_close_receipt [04:38:32]MH_GetDate [04:38:32]Write to MH i2c: F0 00 00 CB 05 BF [04:38:32]Write i2c OK [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: F0 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: F0 09 00 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: F0 09 00 CB 05 00 CA 5D 1B 66 E0 85 7F 64 B8 [04:38:32]GetLastDocTimeStamp 1713069104 [04:38:32]current date 1713069514 [04:38:32]FM_GetShiftState [04:38:32]SAM_PROTO_GetShiftState [04:38:32]wFMCommunicate request_size=4 [04:38:32]MH_SAM_APDU [04:38:32]CAPDU: 80 13 01 00 [04:38:32]Write to MH i2c: E2 08 00 CC 05 80 13 01 00 00 00 00 00 4E [04:38:32]Write i2c OK [04:38:32]MH_I2C_Read... [04:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:32]Read from MH i2c: E2 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 0E 00 [04:38:32]MH_I2C_Read... [04:38:32]Read from MH i2c: E2 0E 00 CC 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E6 [04:38:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:38:32]wFMCommunicate OK [04:38:32]SAM_PROTO_GetShiftState done [04:38:32]FM_GetShiftState done [04:38:32]opened in 1713054696 [04:38:32]opened+sec_in_day 1713141096 [04:38:32]quantity*price = 140045 [04:38:32]sum+1 = 140046 [04:38:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 16 14.04.2024 04:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112117 ФПД: 234179629014495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043834&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112117&fm=234179629014495&tin=02508201610067®Number=0000000000094237&sum=140000 [04:38:33]StoreToDocumentArchive [04:38:33]shift 357 fd 112117 [04:38:33]save to /storage/0357/doc_00112117 [04:38:33]save last doc name /storage/0357/doc_00112117 to /storage/kkm_last_doc_name [04:38:33]save OK [04:38:33]Clear old archive folders... [04:38:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:38:33]tlvbuf is 01B1F060 [04:38:33]SAM_PROTO_ClearQueue [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 09 00 00 [04:38:33]Write to MH i2c: E2 08 00 D9 05 80 09 00 00 00 00 00 00 50 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]SAM_PROTO_ClearQueue done [04:38:33]KKMCreateOFDPacket [04:38:33]OFDProtocolAddRootSTLVToBuf [04:38:33]FM_MakeSignedData [04:38:33]FM_MakeSignedData [04:38:33]SAM_PROTO_SignData [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 0D 01 02 [04:38:33]Write to MH i2c: E2 08 00 DA 05 80 0D 01 02 00 00 00 00 58 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]wFMCommunicate request_size=255 [04:38:33]MH_SAM_APDU [04:38: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 14 55 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 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 CA 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B5 01 00 35 04 06 00 D4 [04:38:33]Write to MH i2c: E2 02 01 DB 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 14 55 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 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 CA 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B5 01 00 35 04 06 00 D4 00 00 04 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]wFMCommunicate request_size=10 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 0D 02 02 05 FC 31 99 DD DF [04:38:33]Write to MH i2c: E2 0D 00 DC 05 80 0D 02 02 05 00 FC 31 99 DD DF 00 00 E7 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [04:38:33]RAPDU: 90 00 [04:38:33]wFMCommunicate OK [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 0D 03 02 [04:38:33]Write to MH i2c: E2 08 00 DD 05 80 0D 03 02 00 00 00 00 5D [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 0B 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 0B 00 DD 05 00 A7 96 A2 0F 2E 0C A0 0D 90 00 33 [04:38:33]RAPDU: A7 96 A2 0F 2E 0C A0 0D 90 00 [04:38:33]wFMCommunicate OK [04:38:33]SAM_PROTO_SignData done [04:38:33]FM_MakeSignedData done [04:38:33]CreateOFDProtocolMessage [04:38:33]wFMCommunicate request_size=4 [04:38:33]MH_SAM_APDU [04:38:33]CAPDU: 80 11 00 00 [04:38:33]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:33]Read from MH i2c: E2 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 17 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AE [04:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:38:33]wFMCommunicate OK [04:38:33]CreateOFDProtocolMessage done [04:38:33]OFDSenderStorePacket 112117 [04:38:33]StoreOFDPacket docnum=112117 [04:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6E 44 07 01 CB 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 14 55 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 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 CA 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B5 01 00 35 04 06 00 D4 FC 31 99 DD DF A7 96 A2 0F 2E 0C A0 0D [04:38:33]CheckFolder [04:38:33]dirname=/storage/ofd_packets [04:38:33]CheckFolder done [04:38:33]ProducePacketName [04:38:33]name=ofd_packets/00112117 [04:38:33]NVStorageSaveData ofd_packets/00112117 [04:38:33]File name is /storage/ofd_packets/00112117 [04:38:33]Write 301 bytes [04:38:33]NVStorageSaveData done [04:38:33]OFDSenderStorePacket done [04:38:33]KKMCreateOFDPacket done [04:38:33]NVStorageSaveData kkm_last_timestamp [04:38:33]File name is /storage/kkm_last_timestamp [04:38:33]Write 4 bytes [04:38:33]NVStorageSaveData done [04:38:33]ExternCall_PrintAddStr [04:38:33]wPrintStart [04:38:33]Write to MH i2c: 01 00 00 DF 05 E4 [04:38:33]Write i2c OK [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 [04:38:33]MH_I2C_Read... [04:38:33]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [04:38:33]RasterBufferAndPrint [04:38:33]line Счет N : (1)48446 [04:38:33]line ИНН: 02508201610067 [04:38:33]line Контрольно-Кассовый Чек [04:38:33]line ПРОДАЖА [04:38:33]line ТРК (МРК, ГНК) : 11 [04:38:33]line Товар: 2710124130 [04:38:33]line Аи-92-К-5 [04:38:33]line 21.780 * 64.30 [04:38:33]line = 1400.45 [04:38:33]line НДС 12% НСП 1% [04:38:33]line > о реализуемом товаре [04:38:33]line ОКРУГЛЕНИЕ: -0.45 [04:38:33]line ИТОГО: 1400.00 [04:38:33]line Внесено: 1400.00 [04:38:33]line СДАЧА: 0.00 [04:38:33]line НСП 1% : 12.39 [04:38:33]line НДС 12% : 148.72 [04:38:33]line Наличными: 1400.00 [04:38:33]line Безнал.: 0.00 [04:38:33]line Место: АЗС № 47 "Партнер Нефть" [04:38:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:38:33]line СНО: Общий режим [04:38:33]line Чек 16 14.04.2024 04:38 [04:38:33]line Смена: 357 ФФД: 1.0 [04:38:33]line ЗНМ: 0300000138 [04:38:33]line РНМ: 0000000000094237 [04:38:33]line Версия ККМ: 001 [04:38:33]line ФМ: 0000000000875019 [04:38:33]line ФД: 112117 [04:38:33]line ФПД: 234179629014495 [04:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043834&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112117&fm=234179629014495&tin=02508201610067®Number=0000000000094237&sum=140000 [04:38:34]written 0, free lines is 4095 [04:38:34]OFD Sender: Processing packet 112117 [packets to send 71, broken 70] [04:38:34]ProducePacketName [04:38:34]name=ofd_packets/00112117 [04:38:34]OFD Sender: To server: pG, [04:38:34]CommunicateWithHost lk.salyk.kg:30040 [04:38:34]ConnectInit lk.salyk.kg [04:38:34]Write to MH i2c: 01 00 00 0A 06 10 [04:38:34]Write i2c OK [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: 01 [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: 01 07 00 [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 DA 0C FD [04:38:34]RasterBufferAndPrint [04:38:34]line [04:38:34]line [04:38:34]line [04:38:34]line [04:38:34]line [04:38:34]written 0, free lines is 3294 [04:38:34]MH_Cut [04:38:34]Write to MH i2c: D1 01 00 11 06 01 E9 [04:38:34]Write i2c OK [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: D1 [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: D1 01 00 [04:38:34]MH_I2C_Read... [04:38:34]Read from MH i2c: D1 01 00 11 06 00 E8 [04:38:34]Write to MH i2c: 01 00 00 12 06 18 [04:38:34]Write i2c OK [04:38:34]MH_I2C_Read... [04:38:35]*** Cut start [04:38:35]*** Partial cut [04:38:35]*** CUTSNS_PIN = 1 [04:38:35]*** CUTSNS_PIN = 0 [04:38:35]*** Brake cut motor [04:38:36]Read from MH i2c: 01 [04:38:36]MH_I2C_Read... [04:38:36]*** Stop cut motor [04:38:36]*** Cut end [04:38:36]Read from MH i2c: 01 07 00 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [04:38:36]process_action close_receipt done [04:38:36]requested_data is exist [04:38:36]produce_requested_data [04:38:36]requested_item fm.sn is exist - process it [04:38:36]wFMCommunicate request_size=4 [04:38:36]MH_SAM_APDU [04:38:36]CAPDU: 80 11 00 00 [04:38:36]Write to MH i2c: E2 08 00 13 06 80 11 00 00 00 00 00 00 93 [04:38:36]Write i2c OK [04:38:36]MH_I2C_Read... [04:38:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:36]Read from MH i2c: E2 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 17 00 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 17 00 13 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E4 [04:38:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:38:36]wFMCommunicate OK [04:38:36]requested_item fd.num is exist - process it [04:38:36]SAM_PROTO_GetFieldsCounters [04:38:36]wFMCommunicate request_size=4 [04:38:36]MH_SAM_APDU [04:38:36]CAPDU: 80 13 00 00 [04:38:36]Write to MH i2c: E2 08 00 14 06 80 13 00 00 00 00 00 00 96 [04:38:36]Write i2c OK [04:38:36]MH_I2C_Read... [04:38:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:36]Read from MH i2c: E2 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 62 00 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 62 00 14 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F5 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [04:38:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F5 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:36]wFMCommunicate OK [04:38:36]SAM_PROTO_GetFieldsCounters done [04:38:36]requested_item shift.num is exist - process it [04:38:36]requested_item shift.opened is exist - process it [04:38:36]req_shift_opened [04:38:36]FM_GetShiftState [04:38:36]SAM_PROTO_GetShiftState [04:38:36]wFMCommunicate request_size=4 [04:38:36]MH_SAM_APDU [04:38:36]CAPDU: 80 13 01 00 [04:38:36]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [04:38:36]Write i2c OK [04:38:36]MH_I2C_Read... [04:38:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:36]Read from MH i2c: E2 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 0E 00 [04:38:36]MH_I2C_Read... [04:38:36]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 30 [04:38:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:38:36]wFMCommunicate OK [04:38:36]SAM_PROTO_GetShiftState done [04:38:36]FM_GetShiftState done [04:38:36]req_shift_opened done [04:38:36]requested_item shift.open_date is exist - process it [04:38:36]req_shift_open_date [04:38:36]req_shift_open_date done [04:38:36]produce_requested_data done [04:38:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112117,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:38:36]process_action_free close_receipt [04:38:36]json_value_free [04:38:36]json_value_free done [04:38:36]process_json_proto returns [04:38:36]Send response to host [04:38:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112117,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:38:36]free response buf [04:38:36]execute_script done [04:38:36]execute_script returns [04:38:36]free content buf [04:38:36]Sock 9.Close socket [04:38:36]Sock 9.Thread stoped [04:38:39]accept exits with 8 [04:38:39]New connection [04:38:39]New thread 3067501924 created [04:38:39]Thread 3067358564 joined [04:38:39]Waiting for new connection... [04:38:39] Sock 8.Parse request [04:38:39]Sock 8.Check first char [04:38:39]Sock 8.First char is OK [04:38:39]request: POST /json_proto HTTP/1.0 [04:38:39]Method: POST [04:38:39]URL: /json_proto [04:38:39]Method is POST - this is cgi request [04:38:39]url: /json_proto [04:38:39]query_string will be loaded in cgi processing [04:38:39]execute_cgi json_proto POST (null) [04:38:39]execute_cgi path=json_proto method=POST [04:38:39]POST find Content-Length [04:38:39]Host: 172.17.96.197:8080 [04:38:39]Content-Length: 677 [04:38:39]Content-Type: application/json [04:38:39] [04:38:39]POST finish read [04:38:39]Found Content-Length = 677 [04:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48447", "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.30, "quantity" : 10.890, "sum" : 700.23, "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:38:39]execute_script... [04:38: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)48447", "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.30, "quantity" : 10.890, "sum" : 700.23, "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:38:39]POST & json_proto [04:38:39]process_json_proto [04:38:39]json parsed OK: [04:38:39]protocol is kg_v1.0 [04:38:39]action value=close_receipt [04:38:39]process_action close_receipt [04:38:39]cmd_close_receipt [04:38:39]MH_GetDate [04:38:39]Write to MH i2c: F0 00 00 16 06 0B [04:38:39]Write i2c OK [04:38:39]MH_I2C_Read... [04:38:39]Read from MH i2c: F0 [04:38:39]MH_I2C_Read... [04:38:39]Read from MH i2c: F0 09 00 [04:38:39]MH_I2C_Read... [04:38:39]Read from MH i2c: F0 09 00 16 06 00 D1 5D 1B 66 E0 85 7F 64 0B [04:38:39]GetLastDocTimeStamp 1713069514 [04:38:39]current date 1713069521 [04:38:39]FM_GetShiftState [04:38:39]SAM_PROTO_GetShiftState [04:38:39]wFMCommunicate request_size=4 [04:38:39]MH_SAM_APDU [04:38:39]CAPDU: 80 13 01 00 [04:38:39]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [04:38:39]Write i2c OK [04:38:39]MH_I2C_Read... [04:38:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:39]Read from MH i2c: E2 [04:38:39]MH_I2C_Read... [04:38:39]Read from MH i2c: E2 0E 00 [04:38:39]MH_I2C_Read... [04:38:39]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 32 [04:38:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:38:39]wFMCommunicate OK [04:38:39]SAM_PROTO_GetShiftState done [04:38:39]FM_GetShiftState done [04:38:39]opened in 1713054696 [04:38:39]opened+sec_in_day 1713141096 [04:38:39]quantity*price = 70022 [04:38:39]sum+1 = 70024 [04:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 17 14.04.2024 04:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112118 ФПД: 6460278247108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043841&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112118&fm=6460278247108&tin=02508201610067®Number=0000000000094237&sum=70000 [04:38:40]StoreToDocumentArchive [04:38:40]shift 357 fd 112118 [04:38:40]save to /storage/0357/doc_00112118 [04:38:40]save last doc name /storage/0357/doc_00112118 to /storage/kkm_last_doc_name [04:38:40]save OK [04:38:40]Clear old archive folders... [04:38:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:38:40]tlvbuf is 019CB180 [04:38:40]SAM_PROTO_ClearQueue [04:38:40]wFMCommunicate request_size=4 [04:38:40]MH_SAM_APDU [04:38:40]CAPDU: 80 09 00 00 [04:38:40]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [04:38:40]Write i2c OK [04:38:40]MH_I2C_Read... [04:38:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [04:38:41]RAPDU: 90 00 [04:38:41]wFMCommunicate OK [04:38:41]SAM_PROTO_ClearQueue done [04:38:41]KKMCreateOFDPacket [04:38:41]OFDProtocolAddRootSTLVToBuf [04:38:41]FM_MakeSignedData [04:38:41]FM_MakeSignedData [04:38:41]SAM_PROTO_SignData [04:38:41]wFMCommunicate request_size=4 [04:38:41]MH_SAM_APDU [04:38:41]CAPDU: 80 0D 01 02 [04:38:41]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [04:38:41]RAPDU: 90 00 [04:38:41]wFMCommunicate OK [04:38:41]wFMCommunicate request_size=255 [04:38:41]MH_SAM_APDU [04:38:41]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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 11 00 00 00 F4 03 04 00 D1 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B5 01 00 35 04 06 00 05 [04:38:41]Write to MH i2c: E2 02 01 26 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 11 00 00 00 F4 03 04 00 D1 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B5 01 00 35 04 06 00 05 00 00 A2 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [04:38:41]RAPDU: 90 00 [04:38:41]wFMCommunicate OK [04:38:41]wFMCommunicate request_size=10 [04:38:41]MH_SAM_APDU [04:38:41]CAPDU: 80 0D 02 02 05 E0 26 97 0E C4 [04:38:41]Write to MH i2c: E2 0D 00 27 06 80 0D 02 02 05 00 E0 26 97 0E C4 00 00 20 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [04:38:41]RAPDU: 90 00 [04:38:41]wFMCommunicate OK [04:38:41]wFMCommunicate request_size=4 [04:38:41]MH_SAM_APDU [04:38:41]CAPDU: 80 0D 03 02 [04:38:41]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 0B 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 0B 00 28 06 00 69 20 0B E7 D7 BA 4D 51 90 00 54 [04:38:41]RAPDU: 69 20 0B E7 D7 BA 4D 51 90 00 [04:38:41]wFMCommunicate OK [04:38:41]SAM_PROTO_SignData done [04:38:41]FM_MakeSignedData done [04:38:41]CreateOFDProtocolMessage [04:38:41]wFMCommunicate request_size=4 [04:38:41]MH_SAM_APDU [04:38:41]CAPDU: 80 11 00 00 [04:38:41]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:41]Read from MH i2c: E2 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 17 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FA [04:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:38:41]wFMCommunicate OK [04:38:41]CreateOFDProtocolMessage done [04:38:41]OFDSenderStorePacket 112118 [04:38:41]StoreOFDPacket docnum=112118 [04:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8A AC 07 01 3B 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 11 00 00 00 F4 03 04 00 D1 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B5 01 00 35 04 06 00 05 E0 26 97 0E C4 69 20 0B E7 D7 BA 4D 51 [04:38:41]CheckFolder [04:38:41]dirname=/storage/ofd_packets [04:38:41]CheckFolder done [04:38:41]ProducePacketName [04:38:41]name=ofd_packets/00112118 [04:38:41]NVStorageSaveData ofd_packets/00112118 [04:38:41]File name is /storage/ofd_packets/00112118 [04:38:41]Write 301 bytes [04:38:41]NVStorageSaveData done [04:38:41]OFDSenderStorePacket done [04:38:41]KKMCreateOFDPacket done [04:38:41]NVStorageSaveData kkm_last_timestamp [04:38:41]File name is /storage/kkm_last_timestamp [04:38:41]Write 4 bytes [04:38:41]NVStorageSaveData done [04:38:41]ExternCall_PrintAddStr [04:38:41]wPrintStart [04:38:41]Write to MH i2c: 01 00 00 2A 06 30 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 07 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [04:38:41]RasterBufferAndPrint [04:38:41]line Счет N : (1)48447 [04:38:41]line ИНН: 02508201610067 [04:38:41]line Контрольно-Кассовый Чек [04:38:41]line ПРОДАЖА [04:38:41]line ТРК (МРК, ГНК) : 42 [04:38:41]line Товар: 2710124130 [04:38:41]line Аи-92-К-5 [04:38:41]line 10.890 * 64.30 [04:38:41]line = 700.23 [04:38:41]line НДС 12% НСП 1% [04:38:41]line > о реализуемом товаре [04:38:41]line ОКРУГЛЕНИЕ: -0.23 [04:38:41]line ИТОГО: 700.00 [04:38:41]line Внесено: 700.00 [04:38:41]line СДАЧА: 0.00 [04:38:41]line НСП 1% : 6.20 [04:38:41]line НДС 12% : 74.36 [04:38:41]line Наличными: 700.00 [04:38:41]line Безнал.: 0.00 [04:38:41]line Место: АЗС № 47 "Партнер Нефть" [04:38:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:38:41]line СНО: Общий режим [04:38:41]line Чек 17 14.04.2024 04:38 [04:38:41]line Смена: 357 ФФД: 1.0 [04:38:41]line ЗНМ: 0300000138 [04:38:41]line РНМ: 0000000000094237 [04:38:41]line Версия ККМ: 001 [04:38:41]line ФМ: 0000000000875019 [04:38:41]line ФД: 112118 [04:38:41]line ФПД: 6460278247108 [04:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T043841&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112118&fm=6460278247108&tin=02508201610067®Number=0000000000094237&sum=70000 [04:38:41]written 0, free lines is 4095 [04:38:41]Write to MH i2c: 01 00 00 55 06 5B [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 07 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: 01 07 00 55 06 00 00 00 00 00 D4 0C 42 [04:38:41]RasterBufferAndPrint [04:38:41]line [04:38:41]line [04:38:41]line [04:38:41]line [04:38:41]line [04:38:41]written 0, free lines is 3292 [04:38:41]MH_Cut [04:38:41]Write to MH i2c: D1 01 00 5C 06 01 34 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: D1 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: D1 01 00 [04:38:41]MH_I2C_Read... [04:38:41]Read from MH i2c: D1 01 00 5C 06 00 33 [04:38:41]Write to MH i2c: 01 00 00 5D 06 63 [04:38:41]Write i2c OK [04:38:41]MH_I2C_Read... [04:38:42]*** Cut start [04:38:42]*** Partial cut [04:38:42]*** CUTSNS_PIN = 1 [04:38:42]*** CUTSNS_PIN = 0 [04:38:42]*** Brake cut motor [04:38:43]Read from MH i2c: 01 [04:38:43]MH_I2C_Read... [04:38:43]*** Stop cut motor [04:38:43]*** Cut end [04:38:43]Read from MH i2c: 01 07 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 FF 0F 78 [04:38:43]process_action close_receipt done [04:38:43]requested_data is exist [04:38:43]produce_requested_data [04:38:43]requested_item fm.sn is exist - process it [04:38:43]wFMCommunicate request_size=4 [04:38:43]MH_SAM_APDU [04:38:43]CAPDU: 80 11 00 00 [04:38:43]Write to MH i2c: E2 08 00 5E 06 80 11 00 00 00 00 00 00 DE [04:38:43]Write i2c OK [04:38:43]MH_I2C_Read... [04:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:38:43]Read from MH i2c: E2 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 17 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 17 00 5E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [04:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:38:43]wFMCommunicate OK [04:38:43]requested_item fd.num is exist - process it [04:38:43]SAM_PROTO_GetFieldsCounters [04:38:43]wFMCommunicate request_size=4 [04:38:43]MH_SAM_APDU [04:38:43]CAPDU: 80 13 00 00 [04:38:43]Write to MH i2c: E2 08 00 5F 06 80 13 00 00 00 00 00 00 E1 [04:38:43]Write i2c OK [04:38:43]MH_I2C_Read... [04:38:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:38:43]Read from MH i2c: E2 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 62 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 62 00 5F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F6 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [04:38:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F6 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:38:43]wFMCommunicate OK [04:38:43]SAM_PROTO_GetFieldsCounters done [04:38:43]requested_item shift.num is exist - process it [04:38:43]requested_item shift.opened is exist - process it [04:38:43]req_shift_opened [04:38:43]FM_GetShiftState [04:38:43]SAM_PROTO_GetShiftState [04:38:43]wFMCommunicate request_size=4 [04:38:43]MH_SAM_APDU [04:38:43]CAPDU: 80 13 01 00 [04:38:43]Write to MH i2c: E2 08 00 60 06 80 13 01 00 00 00 00 00 E3 [04:38:43]Write i2c OK [04:38:43]MH_I2C_Read... [04:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:38:43]Read from MH i2c: E2 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 0E 00 [04:38:43]MH_I2C_Read... [04:38:43]Read from MH i2c: E2 0E 00 60 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7B [04:38:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:38:43]wFMCommunicate OK [04:38:43]SAM_PROTO_GetShiftState done [04:38:43]FM_GetShiftState done [04:38:43]req_shift_opened done [04:38:43]requested_item shift.open_date is exist - process it [04:38:43]req_shift_open_date [04:38:43]req_shift_open_date done [04:38:43]produce_requested_data done [04:38:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112118,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:38:43]process_action_free close_receipt [04:38:43]json_value_free [04:38:43]json_value_free done [04:38:43]process_json_proto returns [04:38:43]Send response to host [04:38:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112118,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:38:43]free response buf [04:38:43]execute_script done [04:38:43]execute_script returns [04:38:43]free content buf [04:38:43]Sock 8.Close socket [04:38:43]Sock 8.Thread stoped [04:40:47]ConnectInit Can't connect to host [04:40:47]CommunicateWithHost connect error [04:40:47]CommunicateWithHost err = -1 [04:40:47]OFD Sender: Server communicate error [04:40:47]OFD Sender: Processing packet 112117 [packets to send 72, broken 70] [04:40:47]ProducePacketName [04:40:47]name=ofd_packets/00112117 [04:40:47]OFD Sender: To server: pG, [04:40:47]CommunicateWithHost lk.salyk.kg:30040 [04:40:47]ConnectInit lk.salyk.kg [04:40:48]Connected sock=8 [04:40:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6E 44 07 01 CB 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 14 55 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0D 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 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 CA 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B5 01 00 35 04 06 00 D4 FC 31 99 DD DF A7 96 A2 0F 2E 0C A0 0D [04:40:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D4 B9 47 00 77 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 38 37 35 30 31 39 10 04 04 00 F5 B5 01 00 F4 03 04 00 DC 05 1B 66 B6 04 01 00 00 85 C2 8B 2D 53 38 6D C6 [04:40:48]CommunicateWithHost err = 0 [04:40:48]CheckOFDResponse [04:40:48]1017 (14) - 77093643461234 [04:40:48]1041 (16) - 0000000000875019 [04:40:48]1040 (4) - 112117 [04:40:48]1012 (4) - 13.04.2024 22:23 [04:40:48]1206 (1) - 0 [04:40:48]OFD Sender: Remove packet 112117 [04:40:48]ProducePacketName [04:40:48]name=ofd_packets/00112117 [04:40:48]NVStorageDeleteData [04:40:48]OFD Sender: Processing packet 112118 [packets to send 71, broken 70] [04:40:48]ProducePacketName [04:40:48]name=ofd_packets/00112118 [04:40:48]OFD Sender: To server: pG, [04:40:48]CommunicateWithHost lk.salyk.kg:30040 [04:40:48]ConnectInit lk.salyk.kg [04:40:49]Connected sock=8 [04:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8A AC 07 01 3B 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 11 00 00 00 F4 03 04 00 D1 5D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B5 01 00 35 04 06 00 05 E0 26 97 0E C4 69 20 0B E7 D7 BA 4D 51 [04:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B1 68 47 00 E1 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B5 01 00 F4 03 04 00 DD 05 1B 66 B6 04 01 00 00 2A B5 1C 8F D7 C3 B0 D2 [04:40:49]CommunicateWithHost err = 0 [04:40:49]CheckOFDResponse [04:40:49]1017 (14) - 77093643461234 [04:40:49]1041 (16) - 0000000000875019 [04:40:49]1040 (4) - 112118 [04:40:49]1012 (4) - 13.04.2024 22:23 [04:40:49]1206 (1) - 0 [04:40:49]OFD Sender: Remove packet 112118 [04:40:49]ProducePacketName [04:40:49]name=ofd_packets/00112118 [04:40:49]NVStorageDeleteData [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42: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:49]accept exits with 11 [04:47:49]New connection [04:47:49]New thread 3067358564 created [04:47:49]Thread 3067501924 joined [04:47:49]Waiting for new connection... [04:47:49] Sock 11.Parse request [04:47:49]Sock 11.Check first char [04:47:49]Sock 11.First char is OK [04:47:49]request: POST /json_proto HTTP/1.0 [04:47:49]Method: POST [04:47:49]URL: /json_proto [04:47:49]Method is POST - this is cgi request [04:47:49]url: /json_proto [04:47:49]query_string will be loaded in cgi processing [04:47:49]execute_cgi json_proto POST (null) [04:47:49]execute_cgi path=json_proto method=POST [04:47:49]POST find Content-Length [04:47:49]Host: 172.17.96.197:8080 [04:47:49]Content-Length: 1151 [04:47:49]Content-Type: application/json [04:47:49] [04:47:49]POST finish read [04:47:49]Found Content-Length = 1151 [04:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10400", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:49]execute_script... [04:47:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10400", "tax_sys" : 0, "items" : [ { "code": "2000032780025", "name": "\u0421\u043E\u0441\u0438\u0441\u043A\u0430 \u0432 \u0442\u0435\u0441\u0442\u0435 DC 110\u0433", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:47:49]POST & json_proto [04:47:49]process_json_proto [04:47:49]json parsed OK: [04:47:49]protocol is kg_v1.0 [04:47:49]action value=close_receipt [04:47:49]process_action close_receipt [04:47:49]cmd_close_receipt [04:47:49]MH_GetDate [04:47:49]Write to MH i2c: F0 00 00 61 06 56 [04:47:49]Write i2c OK [04:47:49]MH_I2C_Read... [04:47:49]Read from MH i2c: F0 [04:47:49]MH_I2C_Read... [04:47:49]Read from MH i2c: F0 09 00 [04:47:49]MH_I2C_Read... [04:47:49]Read from MH i2c: F0 09 00 61 06 00 F7 5F 1B 66 E0 85 7F 64 7E [04:47:49]GetLastDocTimeStamp 1713069521 [04:47:49]current date 1713070071 [04:47:49]FM_GetShiftState [04:47:49]SAM_PROTO_GetShiftState [04:47:49]wFMCommunicate request_size=4 [04:47:49]MH_SAM_APDU [04:47:49]CAPDU: 80 13 01 00 [04:47:49]Write to MH i2c: E2 08 00 62 06 80 13 01 00 00 00 00 00 E5 [04:47:49]Write i2c OK [04:47:49]MH_I2C_Read... [04:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:49]Read from MH i2c: E2 [04:47:49]MH_I2C_Read... [04:47:49]Read from MH i2c: E2 0E 00 [04:47:49]MH_I2C_Read... [04:47:49]Read from MH i2c: E2 0E 00 62 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7D [04:47:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:47:49]wFMCommunicate OK [04:47:49]SAM_PROTO_GetShiftState done [04:47:49]FM_GetShiftState done [04:47:49]opened in 1713054696 [04:47:49]opened+sec_in_day 1713141096 [04:47:49]quantity*price = 10000 [04:47:49]sum+1 = 10001 [04:47:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000032780015 Слойка DC треугольная курица 110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.45 НДС 12% : 17.52 Наличными: 0.00 Безнал.: 165.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 18 14.04.2024 04:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112119 ФПД: 219986746750215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T044751&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112119&fm=219986746750215&tin=02508201610067®Number=0000000000094237&sum=16500 0 [04:47:50]StoreToDocumentArchive [04:47:50]shift 357 fd 112119 [04:47:50]save to /storage/0357/doc_00112119 [04:47:50]save last doc name /storage/0357/doc_00112119 to /storage/kkm_last_doc_name [04:47:50]save OK [04:47:50]Clear old archive folders... [04:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=408 [04:47:50]tlvbuf is 01B2F2C0 [04:47:50]SAM_PROTO_ClearQueue [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 09 00 00 [04:47:50]Write to MH i2c: E2 08 00 6F 06 80 09 00 00 00 00 00 00 E7 [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [04:47:50]RAPDU: 90 00 [04:47:50]wFMCommunicate OK [04:47:50]SAM_PROTO_ClearQueue done [04:47:50]KKMCreateOFDPacket [04:47:50]OFDProtocolAddRootSTLVToBuf [04:47:50]FM_MakeSignedData [04:47:50]FM_MakeSignedData [04:47:50]SAM_PROTO_SignData [04:47:50]wFMCommunicate request_size=4 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 0D 01 02 [04:47:50]Write to MH i2c: E2 08 00 70 06 80 0D 01 02 00 00 00 00 EF [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [04:47:50]RAPDU: 90 00 [04:47:50]wFMCommunicate OK [04:47:50]wFMCommunicate request_size=255 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [04:47:50]Write to MH i2c: E2 02 01 71 06 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 EB [04:47:50]Write i2c OK [04:47:50]MH_I2C_Read... [04:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:50]Read from MH i2c: E2 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 [04:47:50]MH_I2C_Read... [04:47:50]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [04:47:50]RAPDU: 90 00 [04:47:50]wFMCommunicate OK [04:47:50]wFMCommunicate request_size=167 [04:47:50]MH_SAM_APDU [04:47:50]CAPDU: 80 0D 02 02 A2 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F7 5F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B5 01 00 35 04 06 00 C8 13 A7 E5 35 07 [04:47:51]Write to MH i2c: E2 AA 00 72 06 80 0D 02 02 A2 00 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F7 5F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B5 01 00 35 04 06 00 C8 13 A7 E5 35 07 00 00 E7 [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 03 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 03 00 72 06 00 90 00 EC [04:47:51]RAPDU: 90 00 [04:47:51]wFMCommunicate OK [04:47:51]wFMCommunicate request_size=4 [04:47:51]MH_SAM_APDU [04:47:51]CAPDU: 80 0D 03 02 [04:47:51]Write to MH i2c: E2 08 00 73 06 80 0D 03 02 00 00 00 00 F4 [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0B 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 0B 00 73 06 00 78 EC F4 C5 2C A3 DD 1E 90 00 DC [04:47:51]RAPDU: 78 EC F4 C5 2C A3 DD 1E 90 00 [04:47:51]wFMCommunicate OK [04:47:51]SAM_PROTO_SignData done [04:47:51]FM_MakeSignedData done [04:47:51]CreateOFDProtocolMessage [04:47:51]wFMCommunicate request_size=4 [04:47:51]MH_SAM_APDU [04:47:51]CAPDU: 80 11 00 00 [04:47:51]Write to MH i2c: E2 08 00 74 06 80 11 00 00 00 00 00 00 F4 [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:51]Read from MH i2c: E2 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 17 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: E2 17 00 74 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 45 [04:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:47:51]wFMCommunicate OK [04:47:51]CreateOFDProtocolMessage done [04:47:51]OFDSenderStorePacket 112119 [04:47:51]StoreOFDPacket docnum=112119 [04:47:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AC 01 00 00 73 39 A4 01 D2 6C 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F7 5F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B5 01 00 35 04 06 00 C8 13 A7 E5 35 07 78 EC F4 C5 2C A3 DD 1E [04:47:51]CheckFolder [04:47:51]dirname=/storage/ofd_packets [04:47:51]CheckFolder done [04:47:51]ProducePacketName [04:47:51]name=ofd_packets/00112119 [04:47:51]NVStorageSaveData ofd_packets/00112119 [04:47:51]File name is /storage/ofd_packets/00112119 [04:47:51]Write 458 bytes [04:47:51]NVStorageSaveData done [04:47:51]OFDSenderStorePacket done [04:47:51]KKMCreateOFDPacket done [04:47:51]NVStorageSaveData kkm_last_timestamp [04:47:51]File name is /storage/kkm_last_timestamp [04:47:51]Write 4 bytes [04:47:51]NVStorageSaveData done [04:47:51]ExternCall_PrintAddStr [04:47:51]wPrintStart [04:47:51]Write to MH i2c: 01 00 00 75 06 7B [04:47:51]Write i2c OK [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: 01 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: 01 07 00 [04:47:51]MH_I2C_Read... [04:47:51]Read from MH i2c: 01 07 00 75 06 00 00 00 00 00 FF 0F 90 [04:47:51]RasterBufferAndPrint [04:47:51]line Счет N : (3)10400 [04:47:51]line ИНН: 02508201610067 [04:47:51]line Контрольно-Кассовый Чек [04:47:51]line ПРОДАЖА [04:47:51]line Товар: 2000032780025 [04:47:51]line Сосиска в тесте DC 110г [04:47:51]line 2.000 * 50.00 [04:47:51]line = 100.00 [04:47:51]line НДС 12% НСП 1% [04:47:51]line > о реализуемом товаре [04:47:51]line Товар: 2000032780015 [04:47:51]line Слойка DC треугольная курица 110г [04:47:51]line 1.000 * 65.00 [04:47:51]line = 65.00 [04:47:51]line НДС 12% НСП 1% [04:47:51]line > о реализуемом товаре [04:47:51]line ИТОГО: 165.00 [04:47:51]line НСП 1% : 1.45 [04:47:51]line НДС 12% : 17.52 [04:47:51]line Наличными: 0.00 [04:47:51]line Безнал.: 165.00 [04:47:51]line Место: АЗС № 47 "Партнер Нефть" [04:47:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [04:47:51]line СНО: Общий режим [04:47:51]line Чек 18 14.04.2024 04:47 [04:47:51]line Смена: 357 ФФД: 1.0 [04:47:51]line ЗНМ: 0300000138 [04:47:51]line РНМ: 0000000000094237 [04:47:51]line Версия ККМ: 001 [04:47:51]line Платежная система: Бакай Банк [04:47:51]line ФМ: 0000000000875019 [04:47:51]line ФД: 112119 [04:47:51]line ФПД: 219986746750215 [04:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T044751&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112119&fm=219986746750215&tin=02508201610067®Number=0000000000094237&sum=16500 [04:47:51]line 0 [04:47:51]written 0, free lines is 4095 [04:47:51]OFD Sender: Processing packet 112119 [packets to send 71, broken 70] [04:47:51]ProducePacketName [04:47:51]name=ofd_packets/00112119 [04:47:51]OFD Sender: To server: pG, [04:47:51]CommunicateWithHost lk.salyk.kg:30040 [04:47:51]ConnectInit lk.salyk.kg [04:47:52]Write to MH i2c: 01 00 00 A6 06 AC [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: 01 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: 01 07 00 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 6A 0C 29 [04:47:52]RasterBufferAndPrint [04:47:52]line [04:47:52]line [04:47:52]line [04:47:52]line [04:47:52]line [04:47:52]written 0, free lines is 3182 [04:47:52]MH_Cut [04:47:52]Write to MH i2c: D1 01 00 AD 06 01 85 [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: D1 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: D1 01 00 [04:47:52]MH_I2C_Read... [04:47:52]Read from MH i2c: D1 01 00 AD 06 00 84 [04:47:52]Write to MH i2c: 01 00 00 AE 06 B4 [04:47:52]Write i2c OK [04:47:52]MH_I2C_Read... [04:47:52]*** Cut start [04:47:52]*** Partial cut [04:47:52]*** CUTSNS_PIN = 1 [04:47:53]*** CUTSNS_PIN = 0 [04:47:53]*** Brake cut motor [04:47:53]Read from MH i2c: 01 [04:47:53]MH_I2C_Read... [04:47:53]*** Stop cut motor [04:47:53]*** Cut end [04:47:53]Read from MH i2c: 01 07 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: 01 07 00 AE 06 00 00 00 00 00 FF 0F C9 [04:47:53]process_action close_receipt done [04:47:53]requested_data is exist [04:47:53]produce_requested_data [04:47:53]requested_item fm.sn is exist - process it [04:47:53]wFMCommunicate request_size=4 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 11 00 00 [04:47:53]Write to MH i2c: E2 08 00 AF 06 80 11 00 00 00 00 00 00 2F [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 17 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 17 00 AF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 80 [04:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [04:47:53]wFMCommunicate OK [04:47:53]requested_item fd.num is exist - process it [04:47:53]SAM_PROTO_GetFieldsCounters [04:47:53]wFMCommunicate request_size=4 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 13 00 00 [04:47:53]Write to MH i2c: E2 08 00 B0 06 80 13 00 00 00 00 00 00 32 [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 62 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 62 00 B0 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F7 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [04:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F7 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:47:53]wFMCommunicate OK [04:47:53]SAM_PROTO_GetFieldsCounters done [04:47:53]requested_item shift.num is exist - process it [04:47:53]requested_item shift.opened is exist - process it [04:47:53]req_shift_opened [04:47:53]FM_GetShiftState [04:47:53]SAM_PROTO_GetShiftState [04:47:53]wFMCommunicate request_size=4 [04:47:53]MH_SAM_APDU [04:47:53]CAPDU: 80 13 01 00 [04:47:53]Write to MH i2c: E2 08 00 B1 06 80 13 01 00 00 00 00 00 34 [04:47:53]Write i2c OK [04:47:53]MH_I2C_Read... [04:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:47:53]Read from MH i2c: E2 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 0E 00 [04:47:53]MH_I2C_Read... [04:47:53]Read from MH i2c: E2 0E 00 B1 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CC [04:47:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [04:47:53]wFMCommunicate OK [04:47:53]SAM_PROTO_GetShiftState done [04:47:53]FM_GetShiftState done [04:47:53]req_shift_opened done [04:47:53]requested_item shift.open_date is exist - process it [04:47:53]req_shift_open_date [04:47:53]req_shift_open_date done [04:47:53]produce_requested_data done [04:47:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112119,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [04:47:53]process_action_free close_receipt [04:47:53]json_value_free [04:47:53]json_value_free done [04:47:53]process_json_proto returns [04:47:53]Send response to host [04:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112119,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [04:47:53]free response buf [04:47:53]execute_script done [04:47:53]execute_script returns [04:47:53]free content buf [04:47:53]Sock 11.Close socket [04:47:53]Sock 11.Thread stoped [04:50:05]ConnectInit Can't connect to host [04:50:05]CommunicateWithHost connect error [04:50:05]CommunicateWithHost err = -1 [04:50:05]OFD Sender: Server communicate error [04:50:10]OFD Sender: Processing packet 112119 [packets to send 71, broken 70] [04:50:10]ProducePacketName [04:50:10]name=ofd_packets/00112119 [04:50:10]OFD Sender: To server: pG, [04:50:10]CommunicateWithHost lk.salyk.kg:30040 [04:50:10]ConnectInit lk.salyk.kg [04:50:11]Connected sock=9 [04:50:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AC 01 00 00 73 39 A4 01 D2 6C 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 32 35 06 04 25 00 D0 A1 D0 BE D1 81 D0 B8 D1 81 D0 BA D0 B0 20 D0 B2 20 D1 82 D0 B5 D1 81 D1 82 D0 B5 20 44 43 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 F7 5F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B5 01 00 35 04 06 00 C8 13 A7 E5 35 07 78 EC F4 C5 2C A3 DD 1E [04:50:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 77 15 47 00 03 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 38 37 35 30 31 39 10 04 04 00 F7 B5 01 00 F4 03 04 00 0F 08 1B 66 B6 04 01 00 00 B8 66 B4 D6 F6 74 19 92 [04:50:11]CommunicateWithHost err = 0 [04:50:11]CheckOFDResponse [04:50:11]1017 (14) - 77093643461234 [04:50:11]1041 (16) - 0000000000875019 [04:50:11]1040 (4) - 112119 [04:50:11]1012 (4) - 13.04.2024 22:32 [04:50:11]1206 (1) - 0 [04:50:11]OFD Sender: Remove packet 112119 [04:50:11]ProducePacketName [04:50:11]name=ofd_packets/00112119 [04:50:11]NVStorageDeleteData [04:50:11]OFD Sender: No OFD packet to send [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:26]OFD Sender: No OFD packet to send [04:50:31]OFD Sender: No OFD packet to send [04:50:36]OFD Sender: No OFD packet to send [04:50:41]OFD Sender: No OFD packet to send [04:50:46]OFD Sender: No OFD packet to send [04:50:51]OFD Sender: No OFD packet to send [04:50:56]OFD Sender: No OFD packet to send [04:51:01]OFD Sender: No OFD packet to send [04:51:06]OFD Sender: No OFD packet to send [04:51:11]OFD Sender: No OFD packet to send [04:51:16]OFD Sender: No OFD packet to send [04:51:21]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:32]OFD Sender: No OFD packet to send [05:03:37]OFD Sender: No OFD packet to send [05:03:42]OFD Sender: No OFD packet to send [05:03:47]OFD Sender: No OFD packet to send [05:03:52]OFD Sender: No OFD packet to send [05:03:57]OFD Sender: No OFD packet to send [05:04:02]OFD Sender: No OFD packet to send [05:04:07]OFD Sender: No OFD packet to send [05:04:12]OFD Sender: No OFD packet to send [05:04:17]OFD Sender: No OFD packet to send [05:04:22]OFD Sender: No OFD packet to send [05:04:27]OFD Sender: No OFD packet to send [05:04:32]OFD Sender: No OFD packet to send [05:04:37]OFD Sender: No OFD packet to send [05:04:42]OFD Sender: No OFD packet to send [05:04:47]OFD Sender: No OFD packet to send [05:04:52]OFD Sender: No OFD packet to send [05:04:57]OFD Sender: No OFD packet to send [05:05:02]OFD Sender: No OFD packet to send [05:05:07]OFD Sender: No OFD packet to send [05:05:12]OFD Sender: No OFD packet to send [05:05:17]OFD Sender: No OFD packet to send [05:05:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:18]OFD Sender: No OFD packet to send [05:08:23]OFD Sender: No OFD packet to send [05:08:28]OFD Sender: No OFD packet to send [05:08:33]OFD Sender: No OFD packet to send [05:08:38]OFD Sender: No OFD packet to send [05:08:43]OFD Sender: No OFD packet to send [05:08:48]OFD Sender: No OFD packet to send [05:08:53]OFD Sender: No OFD packet to send [05:08:58]OFD Sender: No OFD packet to send [05:09:03]OFD Sender: No OFD packet to send [05:09:08]OFD Sender: No OFD packet to send [05:09:13]OFD Sender: No OFD packet to send [05:09:18]OFD Sender: No OFD packet to send [05:09:23]OFD Sender: No OFD packet to send [05:09:28]OFD Sender: No OFD packet to send [05:09:33]OFD Sender: No OFD packet to send [05:09:38]OFD Sender: No OFD packet to send [05:09:43]OFD Sender: No OFD packet to send [05:09:48]OFD Sender: No OFD packet to send [05:09:53]OFD Sender: No OFD packet to send [05:09:58]OFD Sender: No OFD packet to send [05:10:03]OFD Sender: No OFD packet to send [05:10:08]OFD Sender: No OFD packet to send [05:10:13]OFD Sender: No OFD packet to send [05:10:18]OFD Sender: No OFD packet to send [05:10:23]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:43]OFD Sender: No OFD packet to send [05:13:48]OFD Sender: No OFD packet to send [05:13:53]OFD Sender: No OFD packet to send [05:13:54]ConnectInit Can't connect to host [05:13:58]OFD Sender: No OFD packet to send [05:14:03]OFD Sender: No OFD packet to send [05:14:08]OFD Sender: No OFD packet to send [05:14:13]OFD Sender: No OFD packet to send [05:14:18]OFD Sender: No OFD packet to send [05:14:23]OFD Sender: No OFD packet to send [05:14:28]OFD Sender: No OFD packet to send [05:14:33]OFD Sender: No OFD packet to send [05:14:38]OFD Sender: No OFD packet to send [05:14:43]OFD Sender: No OFD packet to send [05:14:48]OFD Sender: No OFD packet to send [05:14:53]OFD Sender: No OFD packet to send [05:14:58]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:28]OFD Sender: No OFD packet to send [05:16:33]OFD Sender: No OFD packet to send [05:16:38]OFD Sender: No OFD packet to send [05:16:43]OFD Sender: No OFD packet to send [05:16:48]OFD Sender: No OFD packet to send [05:16:53]OFD Sender: No OFD packet to send [05:16:58]OFD Sender: No OFD packet to send [05:17:03]OFD Sender: No OFD packet to send [05:17:08]OFD Sender: No OFD packet to send [05:17:13]OFD Sender: No OFD packet to send [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:23]OFD Sender: No OFD packet to send [05:18:28]OFD Sender: No OFD packet to send [05:18:33]OFD Sender: No OFD packet to send [05:18:38]OFD Sender: No OFD packet to send [05:18:43]OFD Sender: No OFD packet to send [05:18:48]OFD Sender: No OFD packet to send [05:18:53]OFD Sender: No OFD packet to send [05:18:58]OFD Sender: No OFD packet to send [05:19:03]OFD Sender: No OFD packet to send [05:19:08]OFD Sender: No OFD packet to send [05:19:13]OFD Sender: No OFD packet to send [05:19:18]OFD Sender: No OFD packet to send [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:00]accept exits with 8 [05:21:00]New connection [05:21:00]New thread 3067501924 created [05:21:00]Thread 3067358564 joined [05:21:00]Waiting for new connection... [05:21:00] Sock 8.Parse request [05:21:00]Sock 8.Check first char [05:21:00]Sock 8.First char is OK [05:21:00]request: POST /json_proto HTTP/1.0 [05:21:00]Method: POST [05:21:00]URL: /json_proto [05:21:00]Method is POST - this is cgi request [05:21:00]url: /json_proto [05:21:00]query_string will be loaded in cgi processing [05:21:00]execute_cgi json_proto POST (null) [05:21:00]execute_cgi path=json_proto method=POST [05:21:00]POST find Content-Length [05:21:00]Host: 172.17.96.197:8080 [05:21:00]Content-Length: 677 [05:21:00]Content-Type: application/json [05:21:00] [05:21:00]POST finish read [05:21:00]Found Content-Length = 677 [05:21:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48448", "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.30, "quantity" : 13.690, "sum" : 880.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:00]execute_script... [05:21: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)48448", "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.30, "quantity" : 13.690, "sum" : 880.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 880.00, "total" : 880.00, "payments": [ { "type": 0, "sum" : 880.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:00]POST & json_proto [05:21:00]process_json_proto [05:21:00]json parsed OK: [05:21:00]protocol is kg_v1.0 [05:21:00]action value=close_receipt [05:21:00]process_action close_receipt [05:21:00]cmd_close_receipt [05:21:00]MH_GetDate [05:21:00]Write to MH i2c: F0 00 00 B2 06 A7 [05:21:00]Write i2c OK [05:21:00]MH_I2C_Read... [05:21:00]Read from MH i2c: F0 [05:21:00]MH_I2C_Read... [05:21:00]Read from MH i2c: F0 09 00 [05:21:00]MH_I2C_Read... [05:21:00]Read from MH i2c: F0 09 00 B2 06 00 BE 67 1B 66 E0 85 7F 64 9E [05:21:00]GetLastDocTimeStamp 1713070071 [05:21:00]current date 1713072062 [05:21:00]FM_GetShiftState [05:21:00]SAM_PROTO_GetShiftState [05:21:00]wFMCommunicate request_size=4 [05:21:00]MH_SAM_APDU [05:21:00]CAPDU: 80 13 01 00 [05:21:00]Write to MH i2c: E2 08 00 B3 06 80 13 01 00 00 00 00 00 36 [05:21:00]Write i2c OK [05:21:00]MH_I2C_Read... [05:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:00]Read from MH i2c: E2 [05:21:00]MH_I2C_Read... [05:21:00]Read from MH i2c: E2 0E 00 [05:21:00]MH_I2C_Read... [05:21:00]Read from MH i2c: E2 0E 00 B3 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CE [05:21:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:21:00]wFMCommunicate OK [05:21:00]SAM_PROTO_GetShiftState done [05:21:00]FM_GetShiftState done [05:21:00]opened in 1713054696 [05:21:00]opened+sec_in_day 1713141096 [05:21:00]quantity*price = 88026 [05:21:00]sum+1 = 88028 [05:21:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 880.00 Внесено: 880.00 СДАЧА: 0.00 НСП 1% : 7.79 НДС 12% : 93.48 Наличными: 880.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 19 14.04.2024 05:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112120 ФПД: 195373137381284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T052102&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112120&fm=195373137381284&tin=02508201610067®Number=0000000000094237&sum=88000 [05:21:01]StoreToDocumentArchive [05:21:01]shift 357 fd 112120 [05:21:01]save to /storage/0357/doc_00112120 [05:21:01]save last doc name /storage/0357/doc_00112120 to /storage/kkm_last_doc_name [05:21:01]save OK [05:21:01]Clear old archive folders... [05:21:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:21:01]tlvbuf is 01B37620 [05:21:01]SAM_PROTO_ClearQueue [05:21:01]wFMCommunicate request_size=4 [05:21:01]MH_SAM_APDU [05:21:01]CAPDU: 80 09 00 00 [05:21:01]Write to MH i2c: E2 08 00 C0 06 80 09 00 00 00 00 00 00 38 [05:21:01]Write i2c OK [05:21:01]MH_I2C_Read... [05:21:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:21:01]Read from MH i2c: E2 [05:21:01]MH_I2C_Read... [05:21:01]Read from MH i2c: E2 03 00 [05:21:01]MH_I2C_Read... [05:21:01]Read from MH i2c: E2 03 00 C0 06 00 90 00 3A [05:21:01]RAPDU: 90 00 [05:21:01]wFMCommunicate OK [05:21:01]SAM_PROTO_ClearQueue done [05:21:01]KKMCreateOFDPacket [05:21:01]OFDProtocolAddRootSTLVToBuf [05:21:01]FM_MakeSignedData [05:21:01]FM_MakeSignedData [05:21:01]SAM_PROTO_SignData [05:21:01]wFMCommunicate request_size=4 [05:21:01]MH_SAM_APDU [05:21:01]CAPDU: 80 0D 01 02 [05:21:01]Write to MH i2c: E2 08 00 C1 06 80 0D 01 02 00 00 00 00 40 [05:21:01]Write i2c OK [05:21:01]MH_I2C_Read... [05:21:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:21:01]Read from MH i2c: E2 [05:21:01]MH_I2C_Read... [05:21:01]Read from MH i2c: E2 03 00 [05:21:01]MH_I2C_Read... [05:21:01]Read from MH i2c: E2 03 00 C1 06 00 90 00 3B [05:21:01]RAPDU: 90 00 [05:21:01]wFMCommunicate OK [05:21:01]wFMCommunicate request_size=255 [05:21:01]MH_SAM_APDU [05:21:01]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 7A 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B5 01 00 35 04 06 00 B1 [05:21:01]Write to MH i2c: E2 02 01 C2 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 7A 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B5 01 00 35 04 06 00 B1 00 00 C5 [05:21:01]Write i2c OK [05:21:01]MH_I2C_Read... [05:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:02]Read from MH i2c: E2 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 03 00 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 03 00 C2 06 00 90 00 3C [05:21:02]RAPDU: 90 00 [05:21:02]wFMCommunicate OK [05:21:02]wFMCommunicate request_size=10 [05:21:02]MH_SAM_APDU [05:21:02]CAPDU: 80 0D 02 02 05 B0 DA 73 C7 A4 [05:21:02]Write to MH i2c: E2 0D 00 C3 06 80 0D 02 02 05 00 B0 DA 73 C7 A4 00 00 B5 [05:21:02]Write i2c OK [05:21:02]MH_I2C_Read... [05:21:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:02]Read from MH i2c: E2 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 03 00 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 03 00 C3 06 00 90 00 3D [05:21:02]RAPDU: 90 00 [05:21:02]wFMCommunicate OK [05:21:02]wFMCommunicate request_size=4 [05:21:02]MH_SAM_APDU [05:21:02]CAPDU: 80 0D 03 02 [05:21:02]Write to MH i2c: E2 08 00 C4 06 80 0D 03 02 00 00 00 00 45 [05:21:02]Write i2c OK [05:21:02]MH_I2C_Read... [05:21:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:21:02]Read from MH i2c: E2 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 0B 00 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 0B 00 C4 06 00 FA 9E 27 BF BA 99 61 44 90 00 BC [05:21:02]RAPDU: FA 9E 27 BF BA 99 61 44 90 00 [05:21:02]wFMCommunicate OK [05:21:02]SAM_PROTO_SignData done [05:21:02]FM_MakeSignedData done [05:21:02]CreateOFDProtocolMessage [05:21:02]wFMCommunicate request_size=4 [05:21:02]MH_SAM_APDU [05:21:02]CAPDU: 80 11 00 00 [05:21:02]Write to MH i2c: E2 08 00 C5 06 80 11 00 00 00 00 00 00 45 [05:21:02]Write i2c OK [05:21:02]MH_I2C_Read... [05:21:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:02]Read from MH i2c: E2 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 17 00 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: E2 17 00 C5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 96 [05:21:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:21:02]wFMCommunicate OK [05:21:02]CreateOFDProtocolMessage done [05:21:02]OFDSenderStorePacket 112120 [05:21:02]StoreOFDPacket docnum=112120 [05:21:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 21 B6 07 01 4D 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 7A 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B5 01 00 35 04 06 00 B1 B0 DA 73 C7 A4 FA 9E 27 BF BA 99 61 44 [05:21:02]CheckFolder [05:21:02]dirname=/storage/ofd_packets [05:21:02]CheckFolder done [05:21:02]ProducePacketName [05:21:02]name=ofd_packets/00112120 [05:21:02]NVStorageSaveData ofd_packets/00112120 [05:21:02]File name is /storage/ofd_packets/00112120 [05:21:02]Write 301 bytes [05:21:02]NVStorageSaveData done [05:21:02]OFDSenderStorePacket done [05:21:02]KKMCreateOFDPacket done [05:21:02]NVStorageSaveData kkm_last_timestamp [05:21:02]File name is /storage/kkm_last_timestamp [05:21:02]Write 4 bytes [05:21:02]NVStorageSaveData done [05:21:02]ExternCall_PrintAddStr [05:21:02]wPrintStart [05:21:02]Write to MH i2c: 01 00 00 C6 06 CC [05:21:02]Write i2c OK [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: 01 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: 01 07 00 [05:21:02]MH_I2C_Read... [05:21:02]Read from MH i2c: 01 07 00 C6 06 00 00 00 00 00 FF 0F E1 [05:21:02]RasterBufferAndPrint [05:21:02]line Счет N : (1)48448 [05:21:02]line ИНН: 02508201610067 [05:21:02]line Контрольно-Кассовый Чек [05:21:02]line ПРОДАЖА [05:21:02]line ТРК (МРК, ГНК) : 32 [05:21:02]line Товар: 2710124130 [05:21:02]line Аи-92-К-5 [05:21:02]line 13.690 * 64.30 [05:21:02]line = 880.27 [05:21:02]line НДС 12% НСП 1% [05:21:02]line > о реализуемом товаре [05:21:02]line ОКРУГЛЕНИЕ: -0.27 [05:21:02]line ИТОГО: 880.00 [05:21:02]line Внесено: 880.00 [05:21:02]line СДАЧА: 0.00 [05:21:02]line НСП 1% : 7.79 [05:21:02]line НДС 12% : 93.48 [05:21:02]line Наличными: 880.00 [05:21:02]line Безнал.: 0.00 [05:21:02]line Место: АЗС № 47 "Партнер Нефть" [05:21:02]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [05:21:02]line СНО: Общий режим [05:21:02]line Чек 19 14.04.2024 05:21 [05:21:02]line Смена: 357 ФФД: 1.0 [05:21:02]line ЗНМ: 0300000138 [05:21:02]line РНМ: 0000000000094237 [05:21:02]line Версия ККМ: 001 [05:21:02]line ФМ: 0000000000875019 [05:21:02]line ФД: 112120 [05:21:02]line ФПД: 195373137381284 [05:21:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T052102&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112120&fm=195373137381284&tin=02508201610067®Number=0000000000094237&sum=88000 [05:21:02]written 0, free lines is 4095 [05:21:02]OFD Sender: Processing packet 112120 [packets to send 71, broken 70] [05:21:02]ProducePacketName [05:21:02]name=ofd_packets/00112120 [05:21:02]OFD Sender: To server: pG, [05:21:02]CommunicateWithHost lk.salyk.kg:30040 [05:21:02]ConnectInit lk.salyk.kg [05:21:02]Connected sock=10 [05:21:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 21 B6 07 01 4D 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 7A 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DB 57 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 57 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 24 00 00 00 00 07 04 06 00 C0 57 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 BE 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B5 01 00 35 04 06 00 B1 B0 DA 73 C7 A4 FA 9E 27 BF BA 99 61 44 [05:21:03]Write to MH i2c: 01 00 00 F1 06 F7 [05:21:03]Write i2c OK [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: 01 [05:21:03]MH_I2C_Read... [05:21:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 44 2F 47 00 03 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 38 37 35 30 31 39 10 04 04 00 F8 B5 01 00 F4 03 04 00 4B 0F 1B 66 B6 04 01 00 00 1D 56 39 6E 15 C3 57 F8 [05:21:03]CommunicateWithHost err = 0 [05:21:03]CheckOFDResponse [05:21:03]1017 (14) - 77093643461234 [05:21:03]1041 (16) - 0000000000875019 [05:21:03]1040 (4) - 112120 [05:21:03]1012 (4) - 13.04.2024 23:03 [05:21:03]1206 (1) - 0 [05:21:03]OFD Sender: Remove packet 112120 [05:21:03]ProducePacketName [05:21:03]name=ofd_packets/00112120 [05:21:03]NVStorageDeleteData [05:21:03]Read from MH i2c: 01 07 00 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 CF 0C D9 [05:21:03]RasterBufferAndPrint [05:21:03]line [05:21:03]line [05:21:03]line [05:21:03]line [05:21:03]line [05:21:03]written 0, free lines is 3326 [05:21:03]MH_Cut [05:21:03]Write to MH i2c: D1 01 00 F8 06 01 D0 [05:21:03]Write i2c OK [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: D1 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: D1 01 00 [05:21:03]MH_I2C_Read... [05:21:03]Read from MH i2c: D1 01 00 F8 06 00 CF [05:21:03]Write to MH i2c: 01 00 00 F9 06 FF [05:21:03]Write i2c OK [05:21:03]MH_I2C_Read... [05:21:03]OFD Sender: No OFD packet to send [05:21:03]*** Cut start [05:21:03]*** Partial cut [05:21:03]*** CUTSNS_PIN = 1 [05:21:03]*** CUTSNS_PIN = 0 [05:21:04]*** Brake cut motor [05:21:04]Read from MH i2c: 01 [05:21:04]MH_I2C_Read... [05:21:04]*** Stop cut motor [05:21:04]*** Cut end [05:21:04]Read from MH i2c: 01 07 00 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: 01 07 00 F9 06 00 00 00 00 00 FF 0F 14 [05:21:04]process_action close_receipt done [05:21:04]requested_data is exist [05:21:04]produce_requested_data [05:21:04]requested_item fm.sn is exist - process it [05:21:04]wFMCommunicate request_size=4 [05:21:04]MH_SAM_APDU [05:21:04]CAPDU: 80 11 00 00 [05:21:04]Write to MH i2c: E2 08 00 FA 06 80 11 00 00 00 00 00 00 7A [05:21:04]Write i2c OK [05:21:04]MH_I2C_Read... [05:21:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:04]Read from MH i2c: E2 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 17 00 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 17 00 FA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CB [05:21:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:21:04]wFMCommunicate OK [05:21:04]requested_item fd.num is exist - process it [05:21:04]SAM_PROTO_GetFieldsCounters [05:21:04]wFMCommunicate request_size=4 [05:21:04]MH_SAM_APDU [05:21:04]CAPDU: 80 13 00 00 [05:21:04]Write to MH i2c: E2 08 00 FB 06 80 13 00 00 00 00 00 00 7D [05:21:04]Write i2c OK [05:21:04]MH_I2C_Read... [05:21:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:04]Read from MH i2c: E2 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 62 00 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 62 00 FB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F8 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [05:21:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F8 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:04]wFMCommunicate OK [05:21:04]SAM_PROTO_GetFieldsCounters done [05:21:04]requested_item shift.num is exist - process it [05:21:04]requested_item shift.opened is exist - process it [05:21:04]req_shift_opened [05:21:04]FM_GetShiftState [05:21:04]SAM_PROTO_GetShiftState [05:21:04]wFMCommunicate request_size=4 [05:21:04]MH_SAM_APDU [05:21:04]CAPDU: 80 13 01 00 [05:21:04]Write to MH i2c: E2 08 00 FC 06 80 13 01 00 00 00 00 00 7F [05:21:04]Write i2c OK [05:21:04]MH_I2C_Read... [05:21:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:04]Read from MH i2c: E2 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 0E 00 [05:21:04]MH_I2C_Read... [05:21:04]Read from MH i2c: E2 0E 00 FC 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 17 [05:21:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:21:04]wFMCommunicate OK [05:21:04]SAM_PROTO_GetShiftState done [05:21:04]FM_GetShiftState done [05:21:04]req_shift_opened done [05:21:04]requested_item shift.open_date is exist - process it [05:21:04]req_shift_open_date [05:21:04]req_shift_open_date done [05:21:04]produce_requested_data done [05:21:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112120,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [05:21:04]process_action_free close_receipt [05:21:04]json_value_free [05:21:04]json_value_free done [05:21:04]process_json_proto returns [05:21:04]Send response to host [05:21:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112120,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [05:21:04]free response buf [05:21:04]execute_script done [05:21:04]execute_script returns [05:21:04]free content buf [05:21:04]Sock 8.Close socket [05:21:04]Sock 8.Thread stoped [05:21:05]accept exits with 9 [05:21:05]New connection [05:21:05]New thread 3067358564 created [05:21:05]Thread 3067501924 joined [05:21:05]Waiting for new connection... [05:21:05] Sock 9.Parse request [05:21:05]Sock 9.Check first char [05:21:05]Sock 9.First char is OK [05:21:05]request: POST /json_proto HTTP/1.0 [05:21:05]Method: POST [05:21:05]URL: /json_proto [05:21:05]Method is POST - this is cgi request [05:21:05]url: /json_proto [05:21:05]query_string will be loaded in cgi processing [05:21:05]execute_cgi json_proto POST (null) [05:21:05]execute_cgi path=json_proto method=POST [05:21:05]POST find Content-Length [05:21:05]Host: 172.17.96.197:8080 [05:21:05]Content-Length: 1257 [05:21:05]Content-Type: application/json [05:21:05] [05:21:05]POST finish read [05:21:05]Found Content-Length = 1257 [05:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10401", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:05]execute_script... [05:21:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10401", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870003982421", "name": "\u041F\u0438\u0432\u043E \u0411\u0435\u043B\u044B\u0439 \u041C\u0435\u0434\u0432\u0435\u0434\u044C \u0441\u0432\u0435\u0442\u043B\u043E\u0435 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:21:05]POST & json_proto [05:21:05]process_json_proto [05:21:05]json parsed OK: [05:21:05]protocol is kg_v1.0 [05:21:05]action value=close_receipt [05:21:05]process_action close_receipt [05:21:05]cmd_close_receipt [05:21:05]MH_GetDate [05:21:05]Write to MH i2c: F0 00 00 FD 06 F2 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: F0 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: F0 09 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: F0 09 00 FD 06 00 C3 67 1B 66 E0 85 7F 64 EE [05:21:05]GetLastDocTimeStamp 1713072062 [05:21:05]current date 1713072067 [05:21:05]FM_GetShiftState [05:21:05]SAM_PROTO_GetShiftState [05:21:05]wFMCommunicate request_size=4 [05:21:05]MH_SAM_APDU [05:21:05]CAPDU: 80 13 01 00 [05:21:05]Write to MH i2c: E2 08 00 FE 06 80 13 01 00 00 00 00 00 81 [05:21:05]Write i2c OK [05:21:05]MH_I2C_Read... [05:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:05]Read from MH i2c: E2 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 0E 00 [05:21:05]MH_I2C_Read... [05:21:05]Read from MH i2c: E2 0E 00 FE 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 19 [05:21:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:21:05]wFMCommunicate OK [05:21:05]SAM_PROTO_GetShiftState done [05:21:05]FM_GetShiftState done [05:21:05]opened in 1713054696 [05:21:05]opened+sec_in_day 1713141096 [05:21:05]quantity*price = 13500 [05:21:05]sum+1 = 13501 [05:21:05]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870003982421 Пиво Белый Медведь светлое 0,5л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.87 НДС 12% : 34.51 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 20 14.04.2024 05:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112121 ФПД: 213681051257751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T052108&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112121&fm=213681051257751&tin=02508201610067®Number=0000000000094237&sum=32500 0 [05:21:07]StoreToDocumentArchive [05:21:07]shift 357 fd 112121 [05:21:07]save to /storage/0357/doc_00112121 [05:21:07]save last doc name /storage/0357/doc_00112121 to /storage/kkm_last_doc_name [05:21:07]save OK [05:21:07]Clear old archive folders... [05:21:07]ProcessDocumentItem done err = 0, tmpTLVsize=524 [05:21:07]tlvbuf is 019C22B0 [05:21:07]SAM_PROTO_ClearQueue [05:21:07]wFMCommunicate request_size=4 [05:21:07]MH_SAM_APDU [05:21:07]CAPDU: 80 09 00 00 [05:21:07]Write to MH i2c: E2 08 00 0B 07 80 09 00 00 00 00 00 00 84 [05:21:07]Write i2c OK [05:21:07]MH_I2C_Read... [05:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:21:07]Read from MH i2c: E2 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 03 00 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 03 00 0B 07 00 90 00 86 [05:21:07]RAPDU: 90 00 [05:21:07]wFMCommunicate OK [05:21:07]SAM_PROTO_ClearQueue done [05:21:07]KKMCreateOFDPacket [05:21:07]OFDProtocolAddRootSTLVToBuf [05:21:07]FM_MakeSignedData [05:21:07]FM_MakeSignedData [05:21:07]SAM_PROTO_SignData [05:21:07]wFMCommunicate request_size=4 [05:21:07]MH_SAM_APDU [05:21:07]CAPDU: 80 0D 01 02 [05:21:07]Write to MH i2c: E2 08 00 0C 07 80 0D 01 02 00 00 00 00 8C [05:21:07]Write i2c OK [05:21:07]MH_I2C_Read... [05:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:21:07]Read from MH i2c: E2 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 03 00 [05:21:07]MH_I2C_Read... [05:21:07]Read from MH i2c: E2 03 00 0C 07 00 90 00 87 [05:21:07]RAPDU: 90 00 [05:21:07]wFMCommunicate OK [05:21:07]wFMCommunicate request_size=255 [05:21:07]MH_SAM_APDU [05:21:07]CAPDU: 80 0D 02 02 FA 03 00 0C 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 [05:21:07]Write to MH i2c: E2 02 01 0D 07 80 0D 02 02 FA 00 03 00 0C 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 00 00 F6 [05:21:07]Write i2c OK [05:21:07]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 0D 07 00 90 00 88 [05:21:08]RAPDU: 90 00 [05:21:08]wFMCommunicate OK [05:21:08]wFMCommunicate request_size=255 [05:21:08]MH_SAM_APDU [05:21:08]CAPDU: 80 0D 02 02 FA 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C4 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 [05:21:08]Write to MH i2c: E2 02 01 0E 07 80 0D 02 02 FA 00 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C4 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 00 00 25 [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 0E 07 00 90 00 89 [05:21:08]RAPDU: 90 00 [05:21:08]wFMCommunicate OK [05:21:08]wFMCommunicate request_size=33 [05:21:08]MH_SAM_APDU [05:21:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B5 01 00 35 04 06 00 C2 57 7F 27 CB 97 [05:21:08]Write to MH i2c: E2 24 00 0F 07 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B5 01 00 35 04 06 00 C2 57 7F 27 CB 97 00 00 ED [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 03 00 0F 07 00 90 00 8A [05:21:08]RAPDU: 90 00 [05:21:08]wFMCommunicate OK [05:21:08]wFMCommunicate request_size=4 [05:21:08]MH_SAM_APDU [05:21:08]CAPDU: 80 0D 03 02 [05:21:08]Write to MH i2c: E2 08 00 10 07 80 0D 03 02 00 00 00 00 92 [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:21:08]OFD Sender: No OFD packet to send [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 0B 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 0B 00 10 07 00 8F 33 9F A4 F0 F7 67 83 90 00 69 [05:21:08]RAPDU: 8F 33 9F A4 F0 F7 67 83 90 00 [05:21:08]wFMCommunicate OK [05:21:08]SAM_PROTO_SignData done [05:21:08]FM_MakeSignedData done [05:21:08]CreateOFDProtocolMessage [05:21:08]wFMCommunicate request_size=4 [05:21:08]MH_SAM_APDU [05:21:08]CAPDU: 80 11 00 00 [05:21:08]Write to MH i2c: E2 08 00 11 07 80 11 00 00 00 00 00 00 92 [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:08]Read from MH i2c: E2 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 17 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: E2 17 00 11 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E3 [05:21:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:21:08]wFMCommunicate OK [05:21:08]CreateOFDProtocolMessage done [05:21:08]OFDSenderStorePacket 112121 [05:21:08]StoreOFDPacket docnum=112121 [05:21:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 20 02 00 00 8C 4C 18 02 D1 8C 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C4 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B5 01 00 35 04 06 00 C2 57 7F 27 CB 97 8F 33 9F A4 F0 F7 67 83 [05:21:08]CheckFolder [05:21:08]dirname=/storage/ofd_packets [05:21:08]CheckFolder done [05:21:08]ProducePacketName [05:21:08]name=ofd_packets/00112121 [05:21:08]NVStorageSaveData ofd_packets/00112121 [05:21:08]File name is /storage/ofd_packets/00112121 [05:21:08]Write 574 bytes [05:21:08]NVStorageSaveData done [05:21:08]OFDSenderStorePacket done [05:21:08]KKMCreateOFDPacket done [05:21:08]NVStorageSaveData kkm_last_timestamp [05:21:08]File name is /storage/kkm_last_timestamp [05:21:08]Write 4 bytes [05:21:08]NVStorageSaveData done [05:21:08]ExternCall_PrintAddStr [05:21:08]wPrintStart [05:21:08]Write to MH i2c: 01 00 00 12 07 19 [05:21:08]Write i2c OK [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: 01 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: 01 07 00 [05:21:08]MH_I2C_Read... [05:21:08]Read from MH i2c: 01 07 00 12 07 00 00 00 00 00 FF 0F 2E [05:21:08]RasterBufferAndPrint [05:21:08]line Счет N : (3)10401 [05:21:08]line ИНН: 02508201610067 [05:21:08]line Контрольно-Кассовый Чек [05:21:08]line ПРОДАЖА [05:21:08]line Товар: 48743570 [05:21:08]line Сигареты Winston XStyle Blue [05:21:08]line 1.000 * 135.00 [05:21:08]line = 135.00 [05:21:08]line НДС 12% НСП 1% [05:21:08]line > о реализуемом товаре [05:21:08]line Товар: 4870003982421 [05:21:08]line Пиво Белый Медведь светлое 0,5л [05:21:08]line 1.000 * 125.00 [05:21:08]line = 125.00 [05:21:08]line НДС 12% НСП 1% [05:21:08]line > о реализуемом товаре [05:21:08]line Товар: 2000032760017 [05:21:08]line Слойка DC треугольная мясо110г [05:21:08]line 1.000 * 65.00 [05:21:08]line = 65.00 [05:21:08]line НДС 12% НСП 1% [05:21:08]line > о реализуемом товаре [05:21:08]line ИТОГО: 325.00 [05:21:08]line НСП 1% : 2.87 [05:21:08]line НДС 12% : 34.51 [05:21:08]line Наличными: 325.00 [05:21:08]line Безнал.: 0.00 [05:21:08]line Место: АЗС № 47 "Партнер Нефть" [05:21:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [05:21:08]line СНО: Общий режим [05:21:08]line Чек 20 14.04.2024 05:21 [05:21:08]line Смена: 357 ФФД: 1.0 [05:21:08]line ЗНМ: 0300000138 [05:21:08]line РНМ: 0000000000094237 [05:21:08]line Версия ККМ: 001 [05:21:08]line ФМ: 0000000000875019 [05:21:08]line ФД: 112121 [05:21:08]line ФПД: 213681051257751 [05:21:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T052108&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112121&fm=213681051257751&tin=02508201610067®Number=0000000000094237&sum=32500 [05:21:08]OFD Sender: Processing packet 112121 [packets to send 71, broken 70] [05:21:08]ProducePacketName [05:21:08]name=ofd_packets/00112121 [05:21:08]OFD Sender: To server: pG, [05:21:08]CommunicateWithHost lk.salyk.kg:30040 [05:21:08]ConnectInit lk.salyk.kg [05:21:08]line 0 [05:21:08]written 0, free lines is 4095 [05:21:08]Connected sock=10 [05:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 20 02 00 00 8C 4C 18 02 D1 8C 5A 03 01 00 03 00 0C 02 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 33 39 38 32 34 32 31 06 04 37 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B5 D0 BB D1 8B D0 B9 20 D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C 20 D1 81 D0 B2 D0 B5 D1 82 D0 BB D0 BE D0 B5 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 C4 67 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B5 01 00 35 04 06 00 C2 57 7F 27 CB 97 8F 33 9F A4 F0 F7 67 83 [05:21:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 02 DD 47 00 07 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 38 37 35 30 31 39 10 04 04 00 F9 B5 01 00 F4 03 04 00 51 0F 1B 66 B6 04 01 00 00 99 42 DF 02 8F A3 36 6F [05:21:09]CommunicateWithHost err = 0 [05:21:09]CheckOFDResponse [05:21:09]1017 (14) - 77093643461234 [05:21:09]1041 (16) - 0000000000875019 [05:21:09]1040 (4) - 112121 [05:21:09]1012 (4) - 13.04.2024 23:03 [05:21:09]1206 (1) - 0 [05:21:09]OFD Sender: Remove packet 112121 [05:21:09]ProducePacketName [05:21:09]name=ofd_packets/00112121 [05:21:09]NVStorageDeleteData [05:21:09]Write to MH i2c: 01 00 00 48 07 4F [05:21:09]Write i2c OK [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: 01 [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: 01 07 00 [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: 01 07 00 48 07 00 00 00 00 00 0F 0C 71 [05:21:09]RasterBufferAndPrint [05:21:09]line [05:21:09]line [05:21:09]line [05:21:09]line [05:21:09]line [05:21:09]written 0, free lines is 3098 [05:21:09]MH_Cut [05:21:09]Write to MH i2c: D1 01 00 4F 07 01 28 [05:21:09]Write i2c OK [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: D1 [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: D1 01 00 [05:21:09]MH_I2C_Read... [05:21:09]Read from MH i2c: D1 01 00 4F 07 00 27 [05:21:09]Write to MH i2c: 01 00 00 50 07 57 [05:21:09]Write i2c OK [05:21:09]MH_I2C_Read... [05:21:09]OFD Sender: No OFD packet to send [05:21:10]*** Cut start [05:21:10]*** Partial cut [05:21:10]*** CUTSNS_PIN = 1 [05:21:10]*** CUTSNS_PIN = 0 [05:21:10]*** Brake cut motor [05:21:10]Read from MH i2c: 01 [05:21:10]MH_I2C_Read... [05:21:10]*** Stop cut motor [05:21:10]*** Cut end [05:21:10]Read from MH i2c: 01 07 00 [05:21:10]MH_I2C_Read... [05:21:10]Read from MH i2c: 01 07 00 50 07 00 00 00 00 00 FF 0F 6C [05:21:10]process_action close_receipt done [05:21:10]requested_data is exist [05:21:10]produce_requested_data [05:21:10]requested_item fm.sn is exist - process it [05:21:10]wFMCommunicate request_size=4 [05:21:10]MH_SAM_APDU [05:21:10]CAPDU: 80 11 00 00 [05:21:10]Write to MH i2c: E2 08 00 51 07 80 11 00 00 00 00 00 00 D2 [05:21:10]Write i2c OK [05:21:10]MH_I2C_Read... [05:21:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:21:10]Read from MH i2c: E2 [05:21:10]MH_I2C_Read... [05:21:10]Read from MH i2c: E2 17 00 [05:21:10]MH_I2C_Read... [05:21:10]Read from MH i2c: E2 17 00 51 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 23 [05:21:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:21:10]wFMCommunicate OK [05:21:10]requested_item fd.num is exist - process it [05:21:10]SAM_PROTO_GetFieldsCounters [05:21:10]wFMCommunicate request_size=4 [05:21:10]MH_SAM_APDU [05:21:10]CAPDU: 80 13 00 00 [05:21:10]Write to MH i2c: E2 08 00 52 07 80 13 00 00 00 00 00 00 D5 [05:21:10]Write i2c OK [05:21:10]MH_I2C_Read... [05:21:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:21:11]Read from MH i2c: E2 [05:21:11]MH_I2C_Read... [05:21:11]Read from MH i2c: E2 62 00 [05:21:11]MH_I2C_Read... [05:21:11]Read from MH i2c: E2 62 00 52 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F9 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [05:21:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F9 B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:21:11]wFMCommunicate OK [05:21:11]SAM_PROTO_GetFieldsCounters done [05:21:11]requested_item shift.num is exist - process it [05:21:11]requested_item shift.opened is exist - process it [05:21:11]req_shift_opened [05:21:11]FM_GetShiftState [05:21:11]SAM_PROTO_GetShiftState [05:21:11]wFMCommunicate request_size=4 [05:21:11]MH_SAM_APDU [05:21:11]CAPDU: 80 13 01 00 [05:21:11]Write to MH i2c: E2 08 00 53 07 80 13 01 00 00 00 00 00 D7 [05:21:11]Write i2c OK [05:21:11]MH_I2C_Read... [05:21:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:21:11]Read from MH i2c: E2 [05:21:11]MH_I2C_Read... [05:21:11]Read from MH i2c: E2 0E 00 [05:21:11]MH_I2C_Read... [05:21:11]Read from MH i2c: E2 0E 00 53 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6F [05:21:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:21:11]wFMCommunicate OK [05:21:11]SAM_PROTO_GetShiftState done [05:21:11]FM_GetShiftState done [05:21:11]req_shift_opened done [05:21:11]requested_item shift.open_date is exist - process it [05:21:11]req_shift_open_date [05:21:11]req_shift_open_date done [05:21:11]produce_requested_data done [05:21:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112121,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [05:21:11]process_action_free close_receipt [05:21:11]json_value_free [05:21:11]json_value_free done [05:21:11]process_json_proto returns [05:21:11]Send response to host [05:21:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112121,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [05:21:11]free response buf [05:21:11]execute_script done [05:21:11]execute_script returns [05:21:11]free content buf [05:21:11]Sock 9.Close socket [05:21:11]Sock 9.Thread stoped [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:20]OFD Sender: No OFD packet to send [05:24:25]OFD Sender: No OFD packet to send [05:24:30]OFD Sender: No OFD packet to send [05:24:35]OFD Sender: No OFD packet to send [05:24:40]OFD Sender: No OFD packet to send [05:24:45]OFD Sender: No OFD packet to send [05:24:50]OFD Sender: No OFD packet to send [05:24:55]OFD Sender: No OFD packet to send [05:25:00]OFD Sender: No OFD packet to send [05:25:05]OFD Sender: No OFD packet to send [05:25:10]OFD Sender: No OFD packet to send [05:25:15]OFD Sender: No OFD packet to send [05:25:20]OFD Sender: No OFD packet to send [05:25:25]OFD Sender: No OFD packet to send [05:25:30]OFD Sender: No OFD packet to send [05:25:35]OFD Sender: No OFD packet to send [05:25:40]OFD Sender: No OFD packet to send [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:10]OFD Sender: No OFD packet to send [05:30:15]OFD Sender: No OFD packet to send [05:30:20]OFD Sender: No OFD packet to send [05:30:25]OFD Sender: No OFD packet to send [05:30:30]OFD Sender: No OFD packet to send [05:30:35]OFD Sender: No OFD packet to send [05:30:40]OFD Sender: No OFD packet to send [05:30:45]OFD Sender: No OFD packet to send [05:30:50]OFD Sender: No OFD packet to send [05:30:55]OFD Sender: No OFD packet to send [05:31:00]OFD Sender: No OFD packet to send [05:31:05]OFD Sender: No OFD packet to send [05:31:10]OFD Sender: No OFD packet to send [05:31:15]OFD Sender: No OFD packet to send [05:31:20]OFD Sender: No OFD packet to send [05:31:25]OFD Sender: No OFD packet to send [05:31:30]OFD Sender: No OFD packet to send [05:31:35]OFD Sender: No OFD packet to send [05:31:40]OFD Sender: No OFD packet to send [05:31:45]OFD Sender: No OFD packet to send [05:31:50]OFD Sender: No OFD packet to send [05:31:55]OFD Sender: No OFD packet to send [05:32:00]OFD Sender: No OFD packet to send [05:32:05]OFD Sender: No OFD packet to send [05:32:10]OFD Sender: No OFD packet to send [05:32:15]OFD Sender: No OFD packet to send [05:32:20]OFD Sender: No OFD packet to send [05:32:25]OFD Sender: No OFD packet to send [05:32:30]OFD Sender: No OFD packet to send [05:32:35]OFD Sender: No OFD packet to send [05:32:40]OFD Sender: No OFD packet to send [05:32:45]OFD Sender: No OFD packet to send [05:32:50]OFD Sender: No OFD packet to send [05:32:55]OFD Sender: No OFD packet to send [05:33:00]OFD Sender: No OFD packet to send [05:33:05]OFD Sender: No OFD packet to send [05:33:10]OFD Sender: No OFD packet to send [05:33:15]OFD Sender: No OFD packet to send [05:33:20]OFD Sender: No OFD packet to send [05:33:25]OFD Sender: No OFD packet to send [05:33:30]OFD Sender: No OFD packet to send [05:33:35]OFD Sender: No OFD packet to send [05:33:40]OFD Sender: No OFD packet to send [05:33:45]OFD Sender: No OFD packet to send [05:33:50]OFD Sender: No OFD packet to send [05:33:55]OFD Sender: No OFD packet to send [05:34:00]OFD Sender: No OFD packet to send [05:34:05]OFD Sender: No OFD packet to send [05:34:10]OFD Sender: No OFD packet to send [05:34:15]OFD Sender: No OFD packet to send [05:34:20]OFD Sender: No OFD packet to send [05:34:25]OFD Sender: No OFD packet to send [05:34:30]OFD Sender: No OFD packet to send [05:34:35]OFD Sender: No OFD packet to send [05:34:40]OFD Sender: No OFD packet to send [05:34:45]OFD Sender: No OFD packet to send [05:34:50]OFD Sender: No OFD packet to send [05:34:55]OFD Sender: No OFD packet to send [05:35:00]OFD Sender: No OFD packet to send [05:35:05]OFD Sender: No OFD packet to send [05:35:10]OFD Sender: No OFD packet to send [05:35:15]OFD Sender: No OFD packet to send [05:35:20]OFD Sender: No OFD packet to send [05:35:25]OFD Sender: No OFD packet to send [05:35:30]OFD Sender: No OFD packet to send [05:35:35]OFD Sender: No OFD packet to send [05:35:40]OFD Sender: No OFD packet to send [05:35:45]OFD Sender: No OFD packet to send [05:35:50]OFD Sender: No OFD packet to send [05:35:55]OFD Sender: No OFD packet to send [05:36:00]OFD Sender: No OFD packet to send [05:36:05]OFD Sender: No OFD packet to send [05:36:10]OFD Sender: No OFD packet to send [05:36:15]OFD Sender: No OFD packet to send [05:36:20]OFD Sender: No OFD packet to send [05:36:25]OFD Sender: No OFD packet to send [05:36:30]OFD Sender: No OFD packet to send [05:36:35]OFD Sender: No OFD packet to send [05:36:40]OFD Sender: No OFD packet to send [05:36:45]OFD Sender: No OFD packet to send [05:36:50]OFD Sender: No OFD packet to send [05:36:55]OFD Sender: No OFD packet to send [05:37:00]OFD Sender: No OFD packet to send [05:37:05]OFD Sender: No OFD packet to send [05:37:10]OFD Sender: No OFD packet to send [05:37:15]OFD Sender: No OFD packet to send [05:37:20]OFD Sender: No OFD packet to send [05:37:25]OFD Sender: No OFD packet to send [05:37:30]OFD Sender: No OFD packet to send [05:37:35]OFD Sender: No OFD packet to send [05:37:40]OFD Sender: No OFD packet to send [05:37:45]OFD Sender: No OFD packet to send [05:37:50]OFD Sender: No OFD packet to send [05:37:55]OFD Sender: No OFD packet to send [05:38:00]OFD Sender: No OFD packet to send [05:38:05]OFD Sender: No OFD packet to send [05:38:10]OFD Sender: No OFD packet to send [05:38:15]OFD Sender: No OFD packet to send [05:38:20]OFD Sender: No OFD packet to send [05:38:25]OFD Sender: No OFD packet to send [05:38:30]OFD Sender: No OFD packet to send [05:38:35]OFD Sender: No OFD packet to send [05:38:40]OFD Sender: No OFD packet to send [05:38:45]OFD Sender: No OFD packet to send [05:38:50]OFD Sender: No OFD packet to send [05:38:55]OFD Sender: No OFD packet to send [05:39:00]OFD Sender: No OFD packet to send [05:39:05]OFD Sender: No OFD packet to send [05:39:10]OFD Sender: No OFD packet to send [05:39:15]OFD Sender: No OFD packet to send [05:39:20]OFD Sender: No OFD packet to send [05:39:25]OFD Sender: No OFD packet to send [05:39:30]OFD Sender: No OFD packet to send [05:39:35]OFD Sender: No OFD packet to send [05:39:40]OFD Sender: No OFD packet to send [05:39:45]OFD Sender: No OFD packet to send [05:39:50]OFD Sender: No OFD packet to send [05:39:55]OFD Sender: No OFD packet to send [05:40:00]OFD Sender: No OFD packet to send [05:40:05]OFD Sender: No OFD packet to send [05:40:10]OFD Sender: No OFD packet to send [05:40:15]OFD Sender: No OFD packet to send [05:40:20]OFD Sender: No OFD packet to send [05:40:25]OFD Sender: No OFD packet to send [05:40:30]OFD Sender: No OFD packet to send [05:40:35]OFD Sender: No OFD packet to send [05:40:40]OFD Sender: No OFD packet to send [05:40:45]OFD Sender: No OFD packet to send [05:40:50]OFD Sender: No OFD packet to send [05:40:55]OFD Sender: No OFD packet to send [05:41:00]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:41]OFD Sender: No OFD packet to send [05:45:46]OFD Sender: No OFD packet to send [05:45:51]OFD Sender: No OFD packet to send [05:45:56]OFD Sender: No OFD packet to send [05:46:01]OFD Sender: No OFD packet to send [05:46:06]OFD Sender: No OFD packet to send [05:46:11]OFD Sender: No OFD packet to send [05:46:16]OFD Sender: No OFD packet to send [05:46:21]OFD Sender: No OFD packet to send [05:46:26]OFD Sender: No OFD packet to send [05:46:31]OFD Sender: No OFD packet to send [05:46:36]OFD Sender: No OFD packet to send [05:46:41]OFD Sender: No OFD packet to send [05:46:46]OFD Sender: No OFD packet to send [05:46:51]OFD Sender: No OFD packet to send [05:46:56]OFD Sender: No OFD packet to send [05:47:01]OFD Sender: No OFD packet to send [05:47:06]OFD Sender: No OFD packet to send [05:47:11]OFD Sender: No OFD packet to send [05:47:16]OFD Sender: No OFD packet to send [05:47:21]OFD Sender: No OFD packet to send [05:47:26]OFD Sender: No OFD packet to send [05:47:31]OFD Sender: No OFD packet to send [05:47:36]OFD Sender: No OFD packet to send [05:47:41]OFD Sender: No OFD packet to send [05:47:46]OFD Sender: No OFD packet to send [05:47:51]OFD Sender: No OFD packet to send [05:47:56]OFD Sender: No OFD packet to send [05:48:01]OFD Sender: No OFD packet to send [05:48:06]OFD Sender: No OFD packet to send [05:48:11]OFD Sender: No OFD packet to send [05:48:16]OFD Sender: No OFD packet to send [05:48:21]OFD Sender: No OFD packet to send [05:48:26]OFD Sender: No OFD packet to send [05:48:31]OFD Sender: No OFD packet to send [05:48:36]OFD Sender: No OFD packet to send [05:48:41]OFD Sender: No OFD packet to send [05:48:46]OFD Sender: No OFD packet to send [05:48:51]OFD Sender: No OFD packet to send [05:48:56]OFD Sender: No OFD packet to send [05:49:01]OFD Sender: No OFD packet to send [05:49:06]OFD Sender: No OFD packet to send [05:49:11]OFD Sender: No OFD packet to send [05:49:16]OFD Sender: No OFD packet to send [05:49:21]OFD Sender: No OFD packet to send [05:49:26]OFD Sender: No OFD packet to send [05:49:31]OFD Sender: No OFD packet to send [05:49:36]OFD Sender: No OFD packet to send [05:49:41]OFD Sender: No OFD packet to send [05:49:46]OFD Sender: No OFD packet to send [05:49:51]OFD Sender: No OFD packet to send [05:49:56]OFD Sender: No OFD packet to send [05:50:01]OFD Sender: No OFD packet to send [05:50:06]OFD Sender: No OFD packet to send [05:50:11]OFD Sender: No OFD packet to send [05:50:16]OFD Sender: No OFD packet to send [05:50:21]OFD Sender: No OFD packet to send [05:50:26]OFD Sender: No OFD packet to send [05:50:31]OFD Sender: No OFD packet to send [05:50:36]OFD Sender: No OFD packet to send [05:50:41]OFD Sender: No OFD packet to send [05:50:46]OFD Sender: No OFD packet to send [05:50:51]OFD Sender: No OFD packet to send [05:50:56]OFD Sender: No OFD packet to send [05:51:01]OFD Sender: No OFD packet to send [05:51:06]OFD Sender: No OFD packet to send [05:51:11]OFD Sender: No OFD packet to send [05:51:16]OFD Sender: No OFD packet to send [05:51:21]OFD Sender: No OFD packet to send [05:51:26]OFD Sender: No OFD packet to send [05:51:31]OFD Sender: No OFD packet to send [05:51:36]OFD Sender: No OFD packet to send [05:51:41]OFD Sender: No OFD packet to send [05:51:46]OFD Sender: No OFD packet to send [05:51:51]OFD Sender: No OFD packet to send [05:51:56]OFD Sender: No OFD packet to send [05:52:01]OFD Sender: No OFD packet to send [05:52:06]OFD Sender: No OFD packet to send [05:52:11]OFD Sender: No OFD packet to send [05:52:16]OFD Sender: No OFD packet to send [05:52:21]OFD Sender: No OFD packet to send [05:52:26]OFD Sender: No OFD packet to send [05:52:31]OFD Sender: No OFD packet to send [05:52:36]OFD Sender: No OFD packet to send [05:52:41]OFD Sender: No OFD packet to send [05:52:46]OFD Sender: No OFD packet to send [05:52:51]OFD Sender: No OFD packet to send [05:52:56]OFD Sender: No OFD packet to send [05:53:01]OFD Sender: No OFD packet to send [05:53:06]OFD Sender: No OFD packet to send [05:53:11]OFD Sender: No OFD packet to send [05:53:16]OFD Sender: No OFD packet to send [05:53:21]OFD Sender: No OFD packet to send [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:39]accept exits with 8 [05:59:39]New connection [05:59:39]New thread 3067501924 created [05:59:39]Thread 3067358564 joined [05:59:39]Waiting for new connection... [05:59:39] Sock 8.Parse request [05:59:39]Sock 8.Check first char [05:59:39]Sock 8.First char is OK [05:59:39]request: POST /json_proto HTTP/1.0 [05:59:39]Method: POST [05:59:39]URL: /json_proto [05:59:39]Method is POST - this is cgi request [05:59:39]url: /json_proto [05:59:39]query_string will be loaded in cgi processing [05:59:39]execute_cgi json_proto POST (null) [05:59:39]execute_cgi path=json_proto method=POST [05:59:39]POST find Content-Length [05:59:39]Host: 172.17.96.197:8080 [05:59:39]Content-Length: 676 [05:59:39]Content-Type: application/json [05:59:39] [05:59:39]POST finish read [05:59:39]Found Content-Length = 676 [05:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [05:59:39]execute_script... [05:59: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)48449", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [05:59:39]POST & json_proto [05:59:39]process_json_proto [05:59:39]json parsed OK: [05:59:39]protocol is kg_v1.0 [05:59:39]action value=close_receipt [05:59:39]process_action close_receipt [05:59:39]cmd_close_receipt [05:59:39]MH_GetDate [05:59:39]Write to MH i2c: F0 00 00 54 07 4A [05:59:39]Write i2c OK [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: F0 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: F0 09 00 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: F0 09 00 54 07 00 CE 70 1B 66 E0 85 7F 64 5A [05:59:39]GetLastDocTimeStamp 1713072068 [05:59:39]current date 1713074382 [05:59:39]FM_GetShiftState [05:59:39]SAM_PROTO_GetShiftState [05:59:39]wFMCommunicate request_size=4 [05:59:39]MH_SAM_APDU [05:59:39]CAPDU: 80 13 01 00 [05:59:39]Write to MH i2c: E2 08 00 55 07 80 13 01 00 00 00 00 00 D9 [05:59:39]Write i2c OK [05:59:39]MH_I2C_Read... [05:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:39]Read from MH i2c: E2 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: E2 0E 00 [05:59:39]MH_I2C_Read... [05:59:39]Read from MH i2c: E2 0E 00 55 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 71 [05:59:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:59:39]wFMCommunicate OK [05:59:39]SAM_PROTO_GetShiftState done [05:59:39]FM_GetShiftState done [05:59:39]opened in 1713054696 [05:59:39]opened+sec_in_day 1713141096 [05:59:39]quantity*price = 50025 [05:59:39]sum+1 = 50026 [05:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 21 14.04.2024 05:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112122 ФПД: 92785978689492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T055942&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112122&fm=92785978689492&tin=02508201610067®Number=0000000000094237&sum=50000 [05:59:41]StoreToDocumentArchive [05:59:41]shift 357 fd 112122 [05:59:41]save to /storage/0357/doc_00112122 [05:59:41]save last doc name /storage/0357/doc_00112122 to /storage/kkm_last_doc_name [05:59:41]save OK [05:59:41]Clear old archive folders... [05:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:59:41]tlvbuf is 019BD8D0 [05:59:41]SAM_PROTO_ClearQueue [05:59:41]wFMCommunicate request_size=4 [05:59:41]MH_SAM_APDU [05:59:41]CAPDU: 80 09 00 00 [05:59:41]Write to MH i2c: E2 08 00 62 07 80 09 00 00 00 00 00 00 DB [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 62 07 00 90 00 DD [05:59:41]RAPDU: 90 00 [05:59:41]wFMCommunicate OK [05:59:41]SAM_PROTO_ClearQueue done [05:59:41]KKMCreateOFDPacket [05:59:41]OFDProtocolAddRootSTLVToBuf [05:59:41]FM_MakeSignedData [05:59:41]FM_MakeSignedData [05:59:41]SAM_PROTO_SignData [05:59:41]wFMCommunicate request_size=4 [05:59:41]MH_SAM_APDU [05:59:41]CAPDU: 80 0D 01 02 [05:59:41]Write to MH i2c: E2 08 00 63 07 80 0D 01 02 00 00 00 00 E3 [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [05:59:41]RAPDU: 90 00 [05:59:41]wFMCommunicate OK [05:59:41]wFMCommunicate request_size=255 [05:59:41]MH_SAM_APDU [05:59:41]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 15 00 00 00 F4 03 04 00 CE 70 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B5 01 00 35 04 06 00 54 [05:59:41]Write to MH i2c: E2 02 01 64 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 15 00 00 00 F4 03 04 00 CE 70 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B5 01 00 35 04 06 00 54 00 00 C4 [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [05:59:41]RAPDU: 90 00 [05:59:41]wFMCommunicate OK [05:59:41]wFMCommunicate request_size=10 [05:59:41]MH_SAM_APDU [05:59:41]CAPDU: 80 0D 02 02 05 63 6B 4C C7 D4 [05:59:41]Write to MH i2c: E2 0D 00 65 07 80 0D 02 02 05 00 63 6B 4C C7 D4 00 00 A5 [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [05:59:41]RAPDU: 90 00 [05:59:41]wFMCommunicate OK [05:59:41]wFMCommunicate request_size=4 [05:59:41]MH_SAM_APDU [05:59:41]CAPDU: 80 0D 03 02 [05:59:41]Write to MH i2c: E2 08 00 66 07 80 0D 03 02 00 00 00 00 E8 [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 0B 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 0B 00 66 07 00 60 7A 13 CD CC 40 C1 F9 90 00 69 [05:59:41]RAPDU: 60 7A 13 CD CC 40 C1 F9 90 00 [05:59:41]wFMCommunicate OK [05:59:41]SAM_PROTO_SignData done [05:59:41]FM_MakeSignedData done [05:59:41]CreateOFDProtocolMessage [05:59:41]wFMCommunicate request_size=4 [05:59:41]MH_SAM_APDU [05:59:41]CAPDU: 80 11 00 00 [05:59:41]Write to MH i2c: E2 08 00 67 07 80 11 00 00 00 00 00 00 E8 [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:41]Read from MH i2c: E2 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 17 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: E2 17 00 67 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 39 [05:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:59:41]wFMCommunicate OK [05:59:41]CreateOFDProtocolMessage done [05:59:41]OFDSenderStorePacket 112122 [05:59:41]StoreOFDPacket docnum=112122 [05:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A6 A4 07 01 C7 FB 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 15 00 00 00 F4 03 04 00 CE 70 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B5 01 00 35 04 06 00 54 63 6B 4C C7 D4 60 7A 13 CD CC 40 C1 F9 [05:59:41]CheckFolder [05:59:41]dirname=/storage/ofd_packets [05:59:41]CheckFolder done [05:59:41]ProducePacketName [05:59:41]name=ofd_packets/00112122 [05:59:41]NVStorageSaveData ofd_packets/00112122 [05:59:41]File name is /storage/ofd_packets/00112122 [05:59:41]Write 301 bytes [05:59:41]NVStorageSaveData done [05:59:41]OFDSenderStorePacket done [05:59:41]KKMCreateOFDPacket done [05:59:41]NVStorageSaveData kkm_last_timestamp [05:59:41]File name is /storage/kkm_last_timestamp [05:59:41]Write 4 bytes [05:59:41]NVStorageSaveData done [05:59:41]ExternCall_PrintAddStr [05:59:41]wPrintStart [05:59:41]Write to MH i2c: 01 00 00 68 07 6F [05:59:41]Write i2c OK [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: 01 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: 01 07 00 [05:59:41]MH_I2C_Read... [05:59:41]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [05:59:41]RasterBufferAndPrint [05:59:41]line Счет N : (1)48449 [05:59:41]line ИНН: 02508201610067 [05:59:41]line Контрольно-Кассовый Чек [05:59:41]line ПРОДАЖА [05:59:41]line ТРК (МРК, ГНК) : 21 [05:59:41]line Товар: 2710124130 [05:59:41]line Аи-92-К-5 [05:59:41]line 7.780 * 64.30 [05:59:41]line = 500.25 [05:59:41]line НДС 12% НСП 1% [05:59:41]line > о реализуемом товаре [05:59:41]line ОКРУГЛЕНИЕ: -0.25 [05:59:41]line ИТОГО: 500.00 [05:59:41]line Внесено: 500.00 [05:59:41]line СДАЧА: 0.00 [05:59:41]line НСП 1% : 4.43 [05:59:41]line НДС 12% : 53.12 [05:59:41]line Наличными: 500.00 [05:59:41]line Безнал.: 0.00 [05:59:41]line Место: АЗС № 47 "Партнер Нефть" [05:59:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [05:59:41]line СНО: Общий режим [05:59:41]line Чек 21 14.04.2024 05:59 [05:59:41]line Смена: 357 ФФД: 1.0 [05:59:41]line ЗНМ: 0300000138 [05:59:41]line РНМ: 0000000000094237 [05:59:41]line Версия ККМ: 001 [05:59:41]line ФМ: 0000000000875019 [05:59:41]line ФД: 112122 [05:59:41]line ФПД: 92785978689492 [05:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T055942&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112122&fm=92785978689492&tin=02508201610067®Number=0000000000094237&sum=50000 [05:59:41]OFD Sender: Processing packet 112122 [packets to send 71, broken 70] [05:59:41]ProducePacketName [05:59:41]name=ofd_packets/00112122 [05:59:41]OFD Sender: To server: pG, [05:59:41]CommunicateWithHost lk.salyk.kg:30040 [05:59:41]ConnectInit lk.salyk.kg [05:59:41]written 0, free lines is 4095 [05:59:42]Connected sock=10 [05:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A6 A4 07 01 C7 FB 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 15 00 00 00 F4 03 04 00 CE 70 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B5 01 00 35 04 06 00 54 63 6B 4C C7 D4 60 7A 13 CD CC 40 C1 F9 [05:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D2 A7 47 00 E1 E5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B5 01 00 F4 03 04 00 5A 18 1B 66 B6 04 01 00 00 97 03 39 26 A8 50 42 B0 [05:59:42]CommunicateWithHost err = 0 [05:59:42]CheckOFDResponse [05:59:42]1017 (14) - 77093643461234 [05:59:42]1041 (16) - 0000000000875019 [05:59:42]1040 (4) - 112122 [05:59:42]1012 (4) - 13.04.2024 23:42 [05:59:42]1206 (1) - 0 [05:59:42]OFD Sender: Remove packet 112122 [05:59:42]ProducePacketName [05:59:42]name=ofd_packets/00112122 [05:59:42]NVStorageDeleteData [05:59:42]Write to MH i2c: 01 00 00 93 07 9A [05:59:42]Write i2c OK [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: 01 [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: 01 07 00 [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 DC 0C 89 [05:59:42]RasterBufferAndPrint [05:59:42]line [05:59:42]line [05:59:42]line [05:59:42]line [05:59:42]line [05:59:42]written 0, free lines is 3298 [05:59:42]MH_Cut [05:59:42]Write to MH i2c: D1 01 00 9A 07 01 73 [05:59:42]Write i2c OK [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: D1 [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: D1 01 00 [05:59:42]MH_I2C_Read... [05:59:42]Read from MH i2c: D1 01 00 9A 07 00 72 [05:59:42]Write to MH i2c: 01 00 00 9B 07 A2 [05:59:42]Write i2c OK [05:59:42]MH_I2C_Read... [05:59:42]OFD Sender: No OFD packet to send [05:59:43]*** Cut start [05:59:43]*** Partial cut [05:59:43]*** CUTSNS_PIN = 1 [05:59:43]*** CUTSNS_PIN = 0 [05:59:43]*** Brake cut motor [05:59:43]Read from MH i2c: 01 [05:59:43]MH_I2C_Read... [05:59:43]*** Stop cut motor [05:59:43]*** Cut end [05:59:43]Read from MH i2c: 01 07 00 [05:59:43]MH_I2C_Read... [05:59:43]Read from MH i2c: 01 07 00 9B 07 00 00 00 00 00 FF 0F B7 [05:59:43]process_action close_receipt done [05:59:43]requested_data is exist [05:59:43]produce_requested_data [05:59:43]requested_item fm.sn is exist - process it [05:59:43]wFMCommunicate request_size=4 [05:59:43]MH_SAM_APDU [05:59:43]CAPDU: 80 11 00 00 [05:59:43]Write to MH i2c: E2 08 00 9C 07 80 11 00 00 00 00 00 00 1D [05:59:43]Write i2c OK [05:59:43]MH_I2C_Read... [05:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:59:43]Read from MH i2c: E2 [05:59:43]MH_I2C_Read... [05:59:43]Read from MH i2c: E2 17 00 [05:59:43]MH_I2C_Read... [05:59:43]Read from MH i2c: E2 17 00 9C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6E [05:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [05:59:43]wFMCommunicate OK [05:59:43]requested_item fd.num is exist - process it [05:59:43]SAM_PROTO_GetFieldsCounters [05:59:43]wFMCommunicate request_size=4 [05:59:43]MH_SAM_APDU [05:59:43]CAPDU: 80 13 00 00 [05:59:43]Write to MH i2c: E2 08 00 9D 07 80 13 00 00 00 00 00 00 20 [05:59:43]Write i2c OK [05:59:43]MH_I2C_Read... [05:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:59:44]Read from MH i2c: E2 [05:59:44]MH_I2C_Read... [05:59:44]Read from MH i2c: E2 62 00 [05:59:44]MH_I2C_Read... [05:59:44]Read from MH i2c: E2 62 00 9D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FA B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [05:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FA B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:59:44]wFMCommunicate OK [05:59:44]SAM_PROTO_GetFieldsCounters done [05:59:44]requested_item shift.num is exist - process it [05:59:44]requested_item shift.opened is exist - process it [05:59:44]req_shift_opened [05:59:44]FM_GetShiftState [05:59:44]SAM_PROTO_GetShiftState [05:59:44]wFMCommunicate request_size=4 [05:59:44]MH_SAM_APDU [05:59:44]CAPDU: 80 13 01 00 [05:59:44]Write to MH i2c: E2 08 00 9E 07 80 13 01 00 00 00 00 00 22 [05:59:44]Write i2c OK [05:59:44]MH_I2C_Read... [05:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:59:44]Read from MH i2c: E2 [05:59:44]MH_I2C_Read... [05:59:44]Read from MH i2c: E2 0E 00 [05:59:44]MH_I2C_Read... [05:59:44]Read from MH i2c: E2 0E 00 9E 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BA [05:59:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [05:59:44]wFMCommunicate OK [05:59:44]SAM_PROTO_GetShiftState done [05:59:44]FM_GetShiftState done [05:59:44]req_shift_opened done [05:59:44]requested_item shift.open_date is exist - process it [05:59:44]req_shift_open_date [05:59:44]req_shift_open_date done [05:59:44]produce_requested_data done [05:59:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112122,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [05:59:44]process_action_free close_receipt [05:59:44]json_value_free [05:59:44]json_value_free done [05:59:44]process_json_proto returns [05:59:44]Send response to host [05:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112122,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [05:59:44]free response buf [05:59:44]execute_script done [05:59:44]execute_script returns [05:59:44]free content buf [05:59:44]Sock 8.Close socket [05:59:44]Sock 8.Thread stoped [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:18]OFD Sender: No OFD packet to send [06:01:23]OFD Sender: No OFD packet to send [06:01:28]OFD Sender: No OFD packet to send [06:01:33]OFD Sender: No OFD packet to send [06:01:38]OFD Sender: No OFD packet to send [06:01:43]OFD Sender: No OFD packet to send [06:01:48]OFD Sender: No OFD packet to send [06:01:53]OFD Sender: No OFD packet to send [06:01:58]OFD Sender: No OFD packet to send [06:02:03]OFD Sender: No OFD packet to send [06:02:08]OFD Sender: No OFD packet to send [06:02:13]OFD Sender: No OFD packet to send [06:02:18]OFD Sender: No OFD packet to send [06:02:23]OFD Sender: No OFD packet to send [06:02:28]OFD Sender: No OFD packet to send [06:02:33]OFD Sender: No OFD packet to send [06:02:38]OFD Sender: No OFD packet to send [06:02:43]OFD Sender: No OFD packet to send [06:02:48]OFD Sender: No OFD packet to send [06:02:53]OFD Sender: No OFD packet to send [06:02:58]OFD Sender: No OFD packet to send [06:03:03]OFD Sender: No OFD packet to send [06:03:08]OFD Sender: No OFD packet to send [06:03:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:41]accept exits with 9 [06:10:41]New connection [06:10:41]New thread 3067358564 created [06:10:41]Thread 3067501924 joined [06:10:41]Waiting for new connection... [06:10:41] Sock 9.Parse request [06:10:41]Sock 9.Check first char [06:10:41]Sock 9.First char is OK [06:10:41]request: POST /json_proto HTTP/1.0 [06:10:41]Method: POST [06:10:41]URL: /json_proto [06:10:41]Method is POST - this is cgi request [06:10:41]url: /json_proto [06:10:41]query_string will be loaded in cgi processing [06:10:41]execute_cgi json_proto POST (null) [06:10:41]execute_cgi path=json_proto method=POST [06:10:41]POST find Content-Length [06:10:41]Host: 172.17.96.197:8080 [06:10:41]Content-Length: 864 [06:10:41]Content-Type: application/json [06:10:41] [06:10:41]POST finish read [06:10:41]Found Content-Length = 864 [06:10:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10402", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:41]execute_script... [06: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 : (3)10402", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42113164", "name": "\u0416\u0435\u0432 Orbit White Spearmint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:41]POST & json_proto [06:10:41]process_json_proto [06:10:41]json parsed OK: [06:10:41]protocol is kg_v1.0 [06:10:41]action value=close_receipt [06:10:41]process_action close_receipt [06:10:41]cmd_close_receipt [06:10:41]MH_GetDate [06:10:41]Write to MH i2c: F0 00 00 9F 07 95 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: F0 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: F0 09 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: F0 09 00 9F 07 00 64 73 1B 66 E0 85 7F 64 3E [06:10:41]GetLastDocTimeStamp 1713074382 [06:10:41]current date 1713075044 [06:10:41]FM_GetShiftState [06:10:41]SAM_PROTO_GetShiftState [06:10:41]wFMCommunicate request_size=4 [06:10:41]MH_SAM_APDU [06:10:41]CAPDU: 80 13 01 00 [06:10:41]Write to MH i2c: E2 08 00 A0 07 80 13 01 00 00 00 00 00 24 [06:10:41]Write i2c OK [06:10:41]MH_I2C_Read... [06:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:41]Read from MH i2c: E2 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 0E 00 [06:10:41]MH_I2C_Read... [06:10:41]Read from MH i2c: E2 0E 00 A0 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BC [06:10:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:10:41]wFMCommunicate OK [06:10:41]SAM_PROTO_GetShiftState done [06:10:41]FM_GetShiftState done [06:10:41]opened in 1713054696 [06:10:41]opened+sec_in_day 1713141096 [06:10:41]quantity*price = 9500 [06:10:41]sum+1 = 9501 [06:10:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42113164 Жев Orbit White Spearmint 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 22 14.04.2024 06:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112123 ФПД: 49134793426367 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T061044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112123&fm=49134793426367&tin=02508201610067®Number=0000000000094237&sum=13500 0 [06:10:43]StoreToDocumentArchive [06:10:43]shift 357 fd 112123 [06:10:43]save to /storage/0357/doc_00112123 [06:10:43]save last doc name /storage/0357/doc_00112123 to /storage/kkm_last_doc_name [06:10:43]save OK [06:10:43]Clear old archive folders... [06:10:43]ProcessDocumentItem done err = 0, tmpTLVsize=383 [06:10:43]tlvbuf is 019A1860 [06:10:43]SAM_PROTO_ClearQueue [06:10:43]wFMCommunicate request_size=4 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 09 00 00 [06:10:43]Write to MH i2c: E2 08 00 AD 07 80 09 00 00 00 00 00 00 26 [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 AD 07 00 90 00 28 [06:10:43]RAPDU: 90 00 [06:10:43]wFMCommunicate OK [06:10:43]SAM_PROTO_ClearQueue done [06:10:43]KKMCreateOFDPacket [06:10:43]OFDProtocolAddRootSTLVToBuf [06:10:43]FM_MakeSignedData [06:10:43]FM_MakeSignedData [06:10:43]SAM_PROTO_SignData [06:10:43]wFMCommunicate request_size=4 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 0D 01 02 [06:10:43]Write to MH i2c: E2 08 00 AE 07 80 0D 01 02 00 00 00 00 2E [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [06:10:43]RAPDU: 90 00 [06:10:43]wFMCommunicate OK [06:10:43]wFMCommunicate request_size=255 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 [06:10:43]Write to MH i2c: E2 02 01 AF 07 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 11 [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [06:10:43]RAPDU: 90 00 [06:10:43]wFMCommunicate OK [06:10:43]wFMCommunicate request_size=142 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 64 73 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B5 01 00 35 04 06 00 2C B0 15 E8 85 BF [06:10:43]Write to MH i2c: E2 91 00 B0 07 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 64 73 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B5 01 00 35 04 06 00 2C B0 15 E8 85 BF 00 00 9F [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]OFD Sender: No OFD packet to send [06:10:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [06:10:43]RAPDU: 90 00 [06:10:43]wFMCommunicate OK [06:10:43]wFMCommunicate request_size=4 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 0D 03 02 [06:10:43]Write to MH i2c: E2 08 00 B1 07 80 0D 03 02 00 00 00 00 33 [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 0B 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 0B 00 B1 07 00 BB 70 DD 07 50 3E 1A 23 90 00 0E [06:10:43]RAPDU: BB 70 DD 07 50 3E 1A 23 90 00 [06:10:43]wFMCommunicate OK [06:10:43]SAM_PROTO_SignData done [06:10:43]FM_MakeSignedData done [06:10:43]CreateOFDProtocolMessage [06:10:43]wFMCommunicate request_size=4 [06:10:43]MH_SAM_APDU [06:10:43]CAPDU: 80 11 00 00 [06:10:43]Write to MH i2c: E2 08 00 B2 07 80 11 00 00 00 00 00 00 33 [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:43]Read from MH i2c: E2 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 17 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: E2 17 00 B2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 84 [06:10:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:10:43]wFMCommunicate OK [06:10:43]CreateOFDProtocolMessage done [06:10:43]OFDSenderStorePacket 112123 [06:10:43]StoreOFDPacket docnum=112123 [06:10:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 93 01 00 00 E8 23 8B 01 82 99 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 64 73 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B5 01 00 35 04 06 00 2C B0 15 E8 85 BF BB 70 DD 07 50 3E 1A 23 [06:10:43]CheckFolder [06:10:43]dirname=/storage/ofd_packets [06:10:43]CheckFolder done [06:10:43]ProducePacketName [06:10:43]name=ofd_packets/00112123 [06:10:43]NVStorageSaveData ofd_packets/00112123 [06:10:43]File name is /storage/ofd_packets/00112123 [06:10:43]Write 433 bytes [06:10:43]NVStorageSaveData done [06:10:43]OFDSenderStorePacket done [06:10:43]KKMCreateOFDPacket done [06:10:43]NVStorageSaveData kkm_last_timestamp [06:10:43]File name is /storage/kkm_last_timestamp [06:10:43]Write 4 bytes [06:10:43]NVStorageSaveData done [06:10:43]ExternCall_PrintAddStr [06:10:43]wPrintStart [06:10:43]Write to MH i2c: 01 00 00 B3 07 BA [06:10:43]Write i2c OK [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: 01 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: 01 07 00 [06:10:43]MH_I2C_Read... [06:10:43]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 FF 0F CF [06:10:43]RasterBufferAndPrint [06:10:43]line Счет N : (3)10402 [06:10:43]line ИНН: 02508201610067 [06:10:44]line Контрольно-Кассовый Чек [06:10:44]line ПРОДАЖА [06:10:44]line Товар: 4700000481453 [06:10:44]line Напиток энерг Nitro Max 0,45 ж/б [06:10:44]line 1.000 * 95.00 [06:10:44]line = 95.00 [06:10:44]line НДС 12% НСП 1% [06:10:44]line > о реализуемом товаре [06:10:44]line Товар: 42113164 [06:10:44]line Жев Orbit White Spearmint [06:10:44]line 1.000 * 40.00 [06:10:44]line = 40.00 [06:10:44]line НДС 12% НСП 1% [06:10:44]line > о реализуемом товаре [06:10:44]line ИТОГО: 135.00 [06:10:44]line НСП 1% : 1.19 [06:10:44]line НДС 12% : 14.34 [06:10:44]line Наличными: 135.00 [06:10:44]line Безнал.: 0.00 [06:10:44]line Место: АЗС № 47 "Партнер Нефть" [06:10:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:10:44]line СНО: Общий режим [06:10:44]line Чек 22 14.04.2024 06:10 [06:10:44]line Смена: 357 ФФД: 1.0 [06:10:44]line ЗНМ: 0300000138 [06:10:44]line РНМ: 0000000000094237 [06:10:44]line Версия ККМ: 001 [06:10:44]line ФМ: 0000000000875019 [06:10:44]line ФД: 112123 [06:10:44]line ФПД: 49134793426367 [06:10:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T061044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112123&fm=49134793426367&tin=02508201610067®Number=0000000000094237&sum=13500 [06:10:44]line 0 [06:10:44]OFD Sender: Processing packet 112123 [packets to send 71, broken 70] [06:10:44]ProducePacketName [06:10:44]name=ofd_packets/00112123 [06:10:44]OFD Sender: To server: pG, [06:10:44]CommunicateWithHost lk.salyk.kg:30040 [06:10:44]ConnectInit lk.salyk.kg [06:10:44]written 0, free lines is 4095 [06:10:44]Connected sock=10 [06:10:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 93 01 00 00 E8 23 8B 01 82 99 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5B 00 8A 04 08 00 34 32 31 31 33 31 36 34 06 04 1C 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 53 70 65 61 72 6D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 64 73 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B5 01 00 35 04 06 00 2C B0 15 E8 85 BF BB 70 DD 07 50 3E 1A 23 [06:10:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 79 1D 47 00 22 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B5 01 00 F4 03 04 00 F0 1A 1B 66 B6 04 01 00 00 12 8F 5A 60 A0 57 9B A5 [06:10:44]CommunicateWithHost err = 0 [06:10:44]CheckOFDResponse [06:10:44]1017 (14) - 77093643461234 [06:10:44]1041 (16) - 0000000000875019 [06:10:44]1040 (4) - 112123 [06:10:44]1012 (4) - 13.04.2024 23:53 [06:10:44]1206 (1) - 0 [06:10:44]OFD Sender: Remove packet 112123 [06:10:44]ProducePacketName [06:10:44]name=ofd_packets/00112123 [06:10:44]NVStorageDeleteData [06:10:44]Write to MH i2c: 01 00 00 E2 07 E9 [06:10:44]Write i2c OK [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: 01 [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: 01 07 00 [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: 01 07 00 E2 07 00 00 00 00 00 99 0C 95 [06:10:44]RasterBufferAndPrint [06:10:44]line [06:10:44]line [06:10:44]line [06:10:44]line [06:10:44]line [06:10:44]written 0, free lines is 3230 [06:10:44]MH_Cut [06:10:44]Write to MH i2c: D1 01 00 E9 07 01 C2 [06:10:44]Write i2c OK [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: D1 [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: D1 01 00 [06:10:44]MH_I2C_Read... [06:10:44]Read from MH i2c: D1 01 00 E9 07 00 C1 [06:10:44]Write to MH i2c: 01 00 00 EA 07 F1 [06:10:44]Write i2c OK [06:10:44]MH_I2C_Read... [06:10:45]OFD Sender: No OFD packet to send [06:10:45]*** Cut start [06:10:45]*** Partial cut [06:10:45]*** CUTSNS_PIN = 1 [06:10:45]*** CUTSNS_PIN = 0 [06:10:45]*** Brake cut motor [06:10:46]Read from MH i2c: 01 [06:10:46]MH_I2C_Read... [06:10:46]*** Stop cut motor [06:10:46]*** Cut end [06:10:46]Read from MH i2c: 01 07 00 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: 01 07 00 EA 07 00 00 00 00 00 FF 0F 06 [06:10:46]process_action close_receipt done [06:10:46]requested_data is exist [06:10:46]produce_requested_data [06:10:46]requested_item fm.sn is exist - process it [06:10:46]wFMCommunicate request_size=4 [06:10:46]MH_SAM_APDU [06:10:46]CAPDU: 80 11 00 00 [06:10:46]Write to MH i2c: E2 08 00 EB 07 80 11 00 00 00 00 00 00 6C [06:10:46]Write i2c OK [06:10:46]MH_I2C_Read... [06:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:46]Read from MH i2c: E2 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 17 00 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 17 00 EB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BD [06:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:10:46]wFMCommunicate OK [06:10:46]requested_item fd.num is exist - process it [06:10:46]SAM_PROTO_GetFieldsCounters [06:10:46]wFMCommunicate request_size=4 [06:10:46]MH_SAM_APDU [06:10:46]CAPDU: 80 13 00 00 [06:10:46]Write to MH i2c: E2 08 00 EC 07 80 13 00 00 00 00 00 00 6F [06:10:46]Write i2c OK [06:10:46]MH_I2C_Read... [06:10:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:46]Read from MH i2c: E2 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 62 00 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 62 00 EC 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FB B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [06:10:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FB B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:10:46]wFMCommunicate OK [06:10:46]SAM_PROTO_GetFieldsCounters done [06:10:46]requested_item shift.num is exist - process it [06:10:46]requested_item shift.opened is exist - process it [06:10:46]req_shift_opened [06:10:46]FM_GetShiftState [06:10:46]SAM_PROTO_GetShiftState [06:10:46]wFMCommunicate request_size=4 [06:10:46]MH_SAM_APDU [06:10:46]CAPDU: 80 13 01 00 [06:10:46]Write to MH i2c: E2 08 00 ED 07 80 13 01 00 00 00 00 00 71 [06:10:46]Write i2c OK [06:10:46]MH_I2C_Read... [06:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:46]Read from MH i2c: E2 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 0E 00 [06:10:46]MH_I2C_Read... [06:10:46]Read from MH i2c: E2 0E 00 ED 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 09 [06:10:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:10:46]wFMCommunicate OK [06:10:46]SAM_PROTO_GetShiftState done [06:10:46]FM_GetShiftState done [06:10:46]req_shift_opened done [06:10:46]requested_item shift.open_date is exist - process it [06:10:46]req_shift_open_date [06:10:46]req_shift_open_date done [06:10:46]produce_requested_data done [06:10:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112123,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:10:46]process_action_free close_receipt [06:10:46]json_value_free [06:10:46]json_value_free done [06:10:46]process_json_proto returns [06:10:46]Send response to host [06:10:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112123,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:10:46]free response buf [06:10:46]execute_script done [06:10:46]execute_script returns [06:10:46]free content buf [06:10:46]Sock 9.Close socket [06:10:46]Sock 9.Thread stoped [06:10:50]OFD Sender: No OFD packet to send [06:10:55]OFD Sender: No OFD packet to send [06:11:00]OFD Sender: No OFD packet to send [06:11:05]OFD Sender: No OFD packet to send [06:11:10]OFD Sender: No OFD packet to send [06:11:15]OFD Sender: No OFD packet to send [06:11:20]OFD Sender: No OFD packet to send [06:11:25]OFD Sender: No OFD packet to send [06:11:30]OFD Sender: No OFD packet to send [06:11:35]OFD Sender: No OFD packet to send [06:11:40]OFD Sender: No OFD packet to send [06:11:45]OFD Sender: No OFD packet to send [06:11:50]OFD Sender: No OFD packet to send [06:11:55]OFD Sender: No OFD packet to send [06:12:00]OFD Sender: No OFD packet to send [06:12:05]OFD Sender: No OFD packet to send [06:12:10]OFD Sender: No OFD packet to send [06:12:15]OFD Sender: No OFD packet to send [06:12:20]OFD Sender: No OFD packet to send [06:12:25]OFD Sender: No OFD packet to send [06:12:30]OFD Sender: No OFD packet to send [06:12:35]OFD Sender: No OFD packet to send [06:12:40]OFD Sender: No OFD packet to send [06:12:45]OFD Sender: No OFD packet to send [06:12:50]OFD Sender: No OFD packet to send [06:12:55]OFD Sender: No OFD packet to send [06:13:00]OFD Sender: No OFD packet to send [06:13:05]OFD Sender: No OFD packet to send [06:13:10]OFD Sender: No OFD packet to send [06:13:15]OFD Sender: No OFD packet to send [06:13:20]OFD Sender: No OFD packet to send [06:13:25]OFD Sender: No OFD packet to send [06:13:30]OFD Sender: No OFD packet to send [06:13:35]OFD Sender: No OFD packet to send [06:13:40]OFD Sender: No OFD packet to send [06:13:45]OFD Sender: No OFD packet to send [06:13:50]OFD Sender: No OFD packet to send [06:13:55]OFD Sender: No OFD packet to send [06:14:00]OFD Sender: No OFD packet to send [06:14:05]OFD Sender: No OFD packet to send [06:14:10]OFD Sender: No OFD packet to send [06:14:15]OFD Sender: No OFD packet to send [06:14:20]OFD Sender: No OFD packet to send [06:14:25]OFD Sender: No OFD packet to send [06:14:30]OFD Sender: No OFD packet to send [06:14:35]OFD Sender: No OFD packet to send [06:14:40]OFD Sender: No OFD packet to send [06:14:45]OFD Sender: No OFD packet to send [06:14:50]OFD Sender: No OFD packet to send [06:14:55]OFD Sender: No OFD packet to send [06:15:00]OFD Sender: No OFD packet to send [06:15:05]OFD Sender: No OFD packet to send [06:15:10]OFD Sender: No OFD packet to send [06:15:15]OFD Sender: No OFD packet to send [06:15:20]OFD Sender: No OFD packet to send [06:15:25]OFD Sender: No OFD packet to send [06:15:30]OFD Sender: No OFD packet to send [06:15:35]OFD Sender: No OFD packet to send [06:15:40]OFD Sender: No OFD packet to send [06:15:45]OFD Sender: No OFD packet to send [06:15:50]OFD Sender: No OFD packet to send [06:15:55]OFD Sender: No OFD packet to send [06:16:00]OFD Sender: No OFD packet to send [06:16:05]OFD Sender: No OFD packet to send [06:16:10]OFD Sender: No OFD packet to send [06:16:15]OFD Sender: No OFD packet to send [06:16:20]OFD Sender: No OFD packet to send [06:16:25]OFD Sender: No OFD packet to send [06:16:30]OFD Sender: No OFD packet to send [06:16:35]OFD Sender: No OFD packet to send [06:16:40]OFD Sender: No OFD packet to send [06:16:45]OFD Sender: No OFD packet to send [06:16:50]OFD Sender: No OFD packet to send [06:16:55]OFD Sender: No OFD packet to send [06:17:00]OFD Sender: No OFD packet to send [06:17:05]OFD Sender: No OFD packet to send [06:17:10]OFD Sender: No OFD packet to send [06:17:15]OFD Sender: No OFD packet to send [06:17:20]OFD Sender: No OFD packet to send [06:17:25]OFD Sender: No OFD packet to send [06:17:30]OFD Sender: No OFD packet to send [06:17:35]OFD Sender: No OFD packet to send [06:17:40]OFD Sender: No OFD packet to send [06:17:45]OFD Sender: No OFD packet to send [06:17:50]OFD Sender: No OFD packet to send [06:17:55]OFD Sender: No OFD packet to send [06:18:00]OFD Sender: No OFD packet to send [06:18:05]OFD Sender: No OFD packet to send [06:18:10]OFD Sender: No OFD packet to send [06:18:15]OFD Sender: No OFD packet to send [06:18:20]OFD Sender: No OFD packet to send [06:18:25]OFD Sender: No OFD packet to send [06:18:30]OFD Sender: No OFD packet to send [06:18:35]OFD Sender: No OFD packet to send [06:18:40]OFD Sender: No OFD packet to send [06:18:45]OFD Sender: No OFD packet to send [06:18:50]OFD Sender: No OFD packet to send [06:18:55]OFD Sender: No OFD packet to send [06:19:00]OFD Sender: No OFD packet to send [06:19:05]OFD Sender: No OFD packet to send [06:19: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:00]OFD Sender: No OFD packet to send [06:21:05]OFD Sender: No OFD packet to send [06:21:10]OFD Sender: No OFD packet to send [06:21:15]OFD Sender: No OFD packet to send [06:21:20]OFD Sender: No OFD packet to send [06:21:25]OFD Sender: No OFD packet to send [06:21:30]OFD Sender: No OFD packet to send [06:21:35]OFD Sender: No OFD packet to send [06:21:40]OFD Sender: No OFD packet to send [06:21:45]OFD Sender: No OFD packet to send [06:21:50]OFD Sender: No OFD packet to send [06:21:55]OFD Sender: No OFD packet to send [06:22:00]OFD Sender: No OFD packet to send [06:22:05]OFD Sender: No OFD packet to send [06:22:10]OFD Sender: No OFD packet to send [06:22:15]OFD Sender: No OFD packet to send [06:22:20]OFD Sender: No OFD packet to send [06:22:25]OFD Sender: No OFD packet to send [06:22:30]OFD Sender: No OFD packet to send [06:22:35]OFD Sender: No OFD packet to send [06:22:40]OFD Sender: No OFD packet to send [06:22:45]OFD Sender: No OFD packet to send [06:22:50]OFD Sender: No OFD packet to send [06:22:55]OFD Sender: No OFD packet to send [06:23:00]OFD Sender: No OFD packet to send [06:23:05]OFD Sender: No OFD packet to send [06:23:10]OFD Sender: No OFD packet to send [06:23:15]OFD Sender: No OFD packet to send [06:23:20]OFD Sender: No OFD packet to send [06:23:25]OFD Sender: No OFD packet to send [06:23:30]OFD Sender: No OFD packet to send [06:23:35]OFD Sender: No OFD packet to send [06:23:40]OFD Sender: No OFD packet to send [06:23:45]OFD Sender: No OFD packet to send [06:23:50]OFD Sender: No OFD packet to send [06:23:55]OFD Sender: No OFD packet to send [06:24:00]OFD Sender: No OFD packet to send [06:24:05]OFD Sender: No OFD packet to send [06:24:10]OFD Sender: No OFD packet to send [06:24:15]OFD Sender: No OFD packet to send [06:24:20]OFD Sender: No OFD packet to send [06:24:25]OFD Sender: No OFD packet to send [06:24:30]OFD Sender: No OFD packet to send [06:24:35]OFD Sender: No OFD packet to send [06:24:40]OFD Sender: No OFD packet to send [06:24:45]OFD Sender: No OFD packet to send [06:24:50]OFD Sender: No OFD packet to send [06:24:55]OFD Sender: No OFD packet to send [06:25:00]OFD Sender: No OFD packet to send [06:25:05]OFD Sender: No OFD packet to send [06:25:10]OFD Sender: No OFD packet to send [06:25:15]OFD Sender: No OFD packet to send [06:25:20]OFD Sender: No OFD packet to send [06:25:25]OFD Sender: No OFD packet to send [06:25:30]OFD Sender: No OFD packet to send [06:25:35]OFD Sender: No OFD packet to send [06:25:40]OFD Sender: No OFD packet to send [06:25:45]OFD Sender: No OFD packet to send [06:25:50]OFD Sender: No OFD packet to send [06:25:55]OFD Sender: No OFD packet to send [06:26:00]OFD Sender: No OFD packet to send [06:26:05]OFD Sender: No OFD packet to send [06:26:10]OFD Sender: No OFD packet to send [06:26:15]OFD Sender: No OFD packet to send [06:26:20]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:36]OFD Sender: No OFD packet to send [06:28:41]OFD Sender: No OFD packet to send [06:28:46]OFD Sender: No OFD packet to send [06:28:51]OFD Sender: No OFD packet to send [06:28:56]OFD Sender: No OFD packet to send [06:29:01]OFD Sender: No OFD packet to send [06:29:06]OFD Sender: No OFD packet to send [06:29:11]OFD Sender: No OFD packet to send [06:29:16]OFD Sender: No OFD packet to send [06:29:21]OFD Sender: No OFD packet to send [06:29:26]OFD Sender: No OFD packet to send [06:29:31]OFD Sender: No OFD packet to send [06:29:36]OFD Sender: No OFD packet to send [06:29:41]OFD Sender: No OFD packet to send [06:29:46]OFD Sender: No OFD packet to send [06:29:51]OFD Sender: No OFD packet to send [06:29:56]OFD Sender: No OFD packet to send [06:30:01]OFD Sender: No OFD packet to send [06:30:06]OFD Sender: No OFD packet to send [06:30:11]OFD Sender: No OFD packet to send [06:30:16]OFD Sender: No OFD packet to send [06:30:21]OFD Sender: No OFD packet to send [06:30:26]OFD Sender: No OFD packet to send [06:30:31]OFD Sender: No OFD packet to send [06:30:36]OFD Sender: No OFD packet to send [06:30:41]OFD Sender: No OFD packet to send [06:30:46]OFD Sender: No OFD packet to send [06:30:51]OFD Sender: No OFD packet to send [06:30:56]OFD Sender: No OFD packet to send [06:31:01]OFD Sender: No OFD packet to send [06:31:06]OFD Sender: No OFD packet to send [06:31:11]OFD Sender: No OFD packet to send [06:31:16]OFD Sender: No OFD packet to send [06:31:21]OFD Sender: No OFD packet to send [06:31:26]OFD Sender: No OFD packet to send [06:31:31]OFD Sender: No OFD packet to send [06:31:36]OFD Sender: No OFD packet to send [06:31:41]OFD Sender: No OFD packet to send [06:31:46]OFD Sender: No OFD packet to send [06:31:51]OFD Sender: No OFD packet to send [06:31:56]OFD Sender: No OFD packet to send [06:32:01]OFD Sender: No OFD packet to send [06:32:06]OFD Sender: No OFD packet to send [06:32:11]OFD Sender: No OFD packet to send [06:32:16]OFD Sender: No OFD packet to send [06:32:21]OFD Sender: No OFD packet to send [06:32:26]OFD Sender: No OFD packet to send [06:32:31]OFD Sender: No OFD packet to send [06:32:36]OFD Sender: No OFD packet to send [06:32:41]OFD Sender: No OFD packet to send [06:32:46]OFD Sender: No OFD packet to send [06:32:51]OFD Sender: No OFD packet to send [06:32:56]OFD Sender: No OFD packet to send [06:33:01]OFD Sender: No OFD packet to send [06:33:06]OFD Sender: No OFD packet to send [06:33:11]OFD Sender: No OFD packet to send [06:33:16]OFD Sender: No OFD packet to send [06:33:21]OFD Sender: No OFD packet to send [06:33:26]OFD Sender: No OFD packet to send [06:33:31]OFD Sender: No OFD packet to send [06:33:36]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:40]accept exits with 8 [06:34:40]New connection [06:34:40]New thread 3067501924 created [06:34:40]Thread 3067358564 joined [06:34:40]Waiting for new connection... [06:34:40] Sock 8.Parse request [06:34:40]Sock 8.Check first char [06:34:40]Sock 8.First char is OK [06:34:40]request: POST /json_proto HTTP/1.0 [06:34:40]Method: POST [06:34:40]URL: /json_proto [06:34:40]Method is POST - this is cgi request [06:34:40]url: /json_proto [06:34:40]query_string will be loaded in cgi processing [06:34:40]execute_cgi json_proto POST (null) [06:34:40]execute_cgi path=json_proto method=POST [06:34:40]POST find Content-Length [06:34:40]Host: 172.17.96.197:8080 [06:34:40]Content-Length: 676 [06:34:40]Content-Type: application/json [06:34:40] [06:34:40]POST finish read [06:34:40]Found Content-Length = 676 [06:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48450", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [06:34:40]execute_script... [06:34: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)48450", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [06:34:40]POST & json_proto [06:34:40]process_json_proto [06:34:40]json parsed OK: [06:34:40]protocol is kg_v1.0 [06:34:40]action value=close_receipt [06:34:40]process_action close_receipt [06:34:40]cmd_close_receipt [06:34:40]MH_GetDate [06:34:40]Write to MH i2c: F0 00 00 EE 07 E4 [06:34:40]Write i2c OK [06:34:40]MH_I2C_Read... [06:34:40]Read from MH i2c: F0 [06:34:40]MH_I2C_Read... [06:34:40]Read from MH i2c: F0 09 00 [06:34:40]MH_I2C_Read... [06:34:40]Read from MH i2c: F0 09 00 EE 07 00 02 79 1B 66 E0 85 7F 64 31 [06:34:40]GetLastDocTimeStamp 1713075044 [06:34:40]current date 1713076482 [06:34:40]FM_GetShiftState [06:34:40]SAM_PROTO_GetShiftState [06:34:40]wFMCommunicate request_size=4 [06:34:40]MH_SAM_APDU [06:34:40]CAPDU: 80 13 01 00 [06:34:40]Write to MH i2c: E2 08 00 EF 07 80 13 01 00 00 00 00 00 73 [06:34:40]Write i2c OK [06:34:40]MH_I2C_Read... [06:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:40]Read from MH i2c: E2 [06:34:40]MH_I2C_Read... [06:34:40]Read from MH i2c: E2 0E 00 [06:34:40]MH_I2C_Read... [06:34:40]Read from MH i2c: E2 0E 00 EF 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0B [06:34:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:34:40]wFMCommunicate OK [06:34:40]SAM_PROTO_GetShiftState done [06:34:40]FM_GetShiftState done [06:34:40]opened in 1713054696 [06:34:40]opened+sec_in_day 1713141096 [06:34:40]quantity*price = 30028 [06:34:40]sum+1 = 30029 [06:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 23 14.04.2024 06:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112124 ФПД: 161004668833194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T063443&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112124&fm=161004668833194&tin=02508201610067®Number=0000000000094237&sum=30000 [06:34:41]StoreToDocumentArchive [06:34:41]shift 357 fd 112124 [06:34:41]save to /storage/0357/doc_00112124 [06:34:41]save last doc name /storage/0357/doc_00112124 to /storage/kkm_last_doc_name [06:34:41]save OK [06:34:41]Clear old archive folders... [06:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:34:41]tlvbuf is 019C27D0 [06:34:41]SAM_PROTO_ClearQueue [06:34:41]wFMCommunicate request_size=4 [06:34:41]MH_SAM_APDU [06:34:41]CAPDU: 80 09 00 00 [06:34:41]Write to MH i2c: E2 08 00 FC 07 80 09 00 00 00 00 00 00 75 [06:34:41]Write i2c OK [06:34:41]MH_I2C_Read... [06:34:41]Read from MH i2c: E2 [06:34:41]MH_I2C_Read... [06:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:41]Read from MH i2c: E2 03 00 [06:34:41]MH_I2C_Read... [06:34:41]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [06:34:41]RAPDU: 90 00 [06:34:41]wFMCommunicate OK [06:34:41]SAM_PROTO_ClearQueue done [06:34:41]KKMCreateOFDPacket [06:34:41]OFDProtocolAddRootSTLVToBuf [06:34:41]FM_MakeSignedData [06:34:41]FM_MakeSignedData [06:34:41]SAM_PROTO_SignData [06:34:41]wFMCommunicate request_size=4 [06:34:41]MH_SAM_APDU [06:34:41]CAPDU: 80 0D 01 02 [06:34:41]Write to MH i2c: E2 08 00 FD 07 80 0D 01 02 00 00 00 00 7D [06:34:41]Write i2c OK [06:34:41]MH_I2C_Read... [06:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:41]Read from MH i2c: E2 [06:34:41]MH_I2C_Read... [06:34:41]Read from MH i2c: E2 03 00 [06:34:41]MH_I2C_Read... [06:34:41]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [06:34:41]RAPDU: 90 00 [06:34:41]wFMCommunicate OK [06:34:41]wFMCommunicate request_size=255 [06:34:41]MH_SAM_APDU [06:34:41]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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 17 00 00 00 F4 03 04 00 03 79 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B5 01 00 35 04 06 00 92 [06:34:41]Write to MH i2c: E2 02 01 FE 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 17 00 00 00 F4 03 04 00 03 79 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B5 01 00 35 04 06 00 92 00 00 61 [06:34:41]Write i2c OK [06:34:41]MH_I2C_Read... [06:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:42]Read from MH i2c: E2 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 03 00 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [06:34:42]RAPDU: 90 00 [06:34:42]wFMCommunicate OK [06:34:42]wFMCommunicate request_size=10 [06:34:42]MH_SAM_APDU [06:34:42]CAPDU: 80 0D 02 02 05 6E D2 17 CD AA [06:34:42]Write to MH i2c: E2 0D 00 FF 07 80 0D 02 02 05 00 6E D2 17 CD AA 00 00 58 [06:34:42]Write i2c OK [06:34:42]MH_I2C_Read... [06:34:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:42]Read from MH i2c: E2 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 03 00 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [06:34:42]RAPDU: 90 00 [06:34:42]wFMCommunicate OK [06:34:42]wFMCommunicate request_size=4 [06:34:42]MH_SAM_APDU [06:34:42]CAPDU: 80 0D 03 02 [06:34:42]Write to MH i2c: E2 08 00 00 08 80 0D 03 02 00 00 00 00 83 [06:34:42]Write i2c OK [06:34:42]MH_I2C_Read... [06:34:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:42]Read from MH i2c: E2 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 0B 00 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 0B 00 00 08 00 40 11 46 6C 8C 71 D2 E8 90 00 3E [06:34:42]RAPDU: 40 11 46 6C 8C 71 D2 E8 90 00 [06:34:42]wFMCommunicate OK [06:34:42]SAM_PROTO_SignData done [06:34:42]FM_MakeSignedData done [06:34:42]CreateOFDProtocolMessage [06:34:42]wFMCommunicate request_size=4 [06:34:42]MH_SAM_APDU [06:34:42]CAPDU: 80 11 00 00 [06:34:42]Write to MH i2c: E2 08 00 01 08 80 11 00 00 00 00 00 00 83 [06:34:42]Write i2c OK [06:34:42]MH_I2C_Read... [06:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:42]Read from MH i2c: E2 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 17 00 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: E2 17 00 01 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D4 [06:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:34:42]wFMCommunicate OK [06:34:42]CreateOFDProtocolMessage done [06:34:42]OFDSenderStorePacket 112124 [06:34:42]StoreOFDPacket docnum=112124 [06:34:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C8 AA 07 01 9B 40 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 17 00 00 00 F4 03 04 00 03 79 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B5 01 00 35 04 06 00 92 6E D2 17 CD AA 40 11 46 6C 8C 71 D2 E8 [06:34:42]CheckFolder [06:34:42]dirname=/storage/ofd_packets [06:34:42]CheckFolder done [06:34:42]ProducePacketName [06:34:42]name=ofd_packets/00112124 [06:34:42]NVStorageSaveData ofd_packets/00112124 [06:34:42]File name is /storage/ofd_packets/00112124 [06:34:42]Write 301 bytes [06:34:42]NVStorageSaveData done [06:34:42]OFDSenderStorePacket done [06:34:42]KKMCreateOFDPacket done [06:34:42]NVStorageSaveData kkm_last_timestamp [06:34:42]File name is /storage/kkm_last_timestamp [06:34:42]Write 4 bytes [06:34:42]NVStorageSaveData done [06:34:42]ExternCall_PrintAddStr [06:34:42]wPrintStart [06:34:42]Write to MH i2c: 01 00 00 02 08 0A [06:34:42]Write i2c OK [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: 01 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: 01 07 00 [06:34:42]MH_I2C_Read... [06:34:42]Read from MH i2c: 01 07 00 02 08 00 00 00 00 00 FF 0F 1F [06:34:42]RasterBufferAndPrint [06:34:42]line Счет N : (1)48450 [06:34:42]line ИНН: 02508201610067 [06:34:42]line Контрольно-Кассовый Чек [06:34:42]line ПРОДАЖА [06:34:42]line ТРК (МРК, ГНК) : 42 [06:34:42]line Товар: 2710124130 [06:34:42]line Аи-92-К-5 [06:34:42]line 4.670 * 64.30 [06:34:42]line = 300.28 [06:34:42]line НДС 12% НСП 1% [06:34:42]line > о реализуемом товаре [06:34:42]line ОКРУГЛЕНИЕ: -0.28 [06:34:42]line ИТОГО: 300.00 [06:34:42]line Внесено: 300.00 [06:34:42]line СДАЧА: 0.00 [06:34:42]line НСП 1% : 2.66 [06:34:42]line НДС 12% : 31.89 [06:34:42]line Наличными: 300.00 [06:34:42]line Безнал.: 0.00 [06:34:42]line Место: АЗС № 47 "Партнер Нефть" [06:34:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:34:42]line СНО: Общий режим [06:34:42]line Чек 23 14.04.2024 06:34 [06:34:42]line Смена: 357 ФФД: 1.0 [06:34:42]line ЗНМ: 0300000138 [06:34:42]line РНМ: 0000000000094237 [06:34:42]line Версия ККМ: 001 [06:34:42]line ФМ: 0000000000875019 [06:34:42]line ФД: 112124 [06:34:42]line ФПД: 161004668833194 [06:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T063443&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112124&fm=161004668833194&tin=02508201610067®Number=0000000000094237&sum=30000 [06:34:42]OFD Sender: Processing packet 112124 [packets to send 71, broken 70] [06:34:42]ProducePacketName [06:34:42]name=ofd_packets/00112124 [06:34:42]OFD Sender: To server: pG, [06:34:42]CommunicateWithHost lk.salyk.kg:30040 [06:34:42]ConnectInit lk.salyk.kg [06:34:42]written 0, free lines is 4095 [06:34:42]Connected sock=10 [06:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C8 AA 07 01 9B 40 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 17 00 00 00 F4 03 04 00 03 79 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B5 01 00 35 04 06 00 92 6E D2 17 CD AA 40 11 46 6C 8C 71 D2 E8 [06:34:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5A F8 47 00 CB 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B5 01 00 F4 03 04 00 8F 20 1B 66 B6 04 01 00 00 AE 3E 0F 40 C7 A8 4B 05 [06:34:43]CommunicateWithHost err = 0 [06:34:43]CheckOFDResponse [06:34:43]1017 (14) - 77093643461234 [06:34:43]1041 (16) - 0000000000875019 [06:34:43]1040 (4) - 112124 [06:34:43]1012 (4) - 14.04.2024 00:17 [06:34:43]1206 (1) - 0 [06:34:43]OFD Sender: Remove packet 112124 [06:34:43]ProducePacketName [06:34:43]name=ofd_packets/00112124 [06:34:43]NVStorageDeleteData [06:34:43]Write to MH i2c: 01 00 00 2D 08 35 [06:34:43]Write i2c OK [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: 01 [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: 01 07 00 [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 E4 0C 2C [06:34:43]RasterBufferAndPrint [06:34:43]line [06:34:43]line [06:34:43]line [06:34:43]line [06:34:43]line [06:34:43]written 0, free lines is 3306 [06:34:43]MH_Cut [06:34:43]Write to MH i2c: D1 01 00 34 08 01 0E [06:34:43]Write i2c OK [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: D1 [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: D1 01 00 [06:34:43]MH_I2C_Read... [06:34:43]Read from MH i2c: D1 01 00 34 08 00 0D [06:34:43]Write to MH i2c: 01 00 00 35 08 3D [06:34:43]Write i2c OK [06:34:43]MH_I2C_Read... [06:34:43]OFD Sender: No OFD packet to send [06:34:43]*** Cut start [06:34:43]*** Partial cut [06:34:43]*** CUTSNS_PIN = 1 [06:34:43]*** CUTSNS_PIN = 0 [06:34:44]*** Brake cut motor [06:34:44]Read from MH i2c: 01 [06:34:44]MH_I2C_Read... [06:34:44]*** Stop cut motor [06:34:44]*** Cut end [06:34:44]Read from MH i2c: 01 07 00 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [06:34:44]process_action close_receipt done [06:34:44]requested_data is exist [06:34:44]produce_requested_data [06:34:44]requested_item fm.sn is exist - process it [06:34:44]wFMCommunicate request_size=4 [06:34:44]MH_SAM_APDU [06:34:44]CAPDU: 80 11 00 00 [06:34:44]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [06:34:44]Write i2c OK [06:34:44]MH_I2C_Read... [06:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:44]Read from MH i2c: E2 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 17 00 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 09 [06:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:34:44]wFMCommunicate OK [06:34:44]requested_item fd.num is exist - process it [06:34:44]SAM_PROTO_GetFieldsCounters [06:34:44]wFMCommunicate request_size=4 [06:34:44]MH_SAM_APDU [06:34:44]CAPDU: 80 13 00 00 [06:34:44]Write to MH i2c: E2 08 00 37 08 80 13 00 00 00 00 00 00 BB [06:34:44]Write i2c OK [06:34:44]MH_I2C_Read... [06:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:34:44]Read from MH i2c: E2 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 62 00 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 62 00 37 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FC B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [06:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FC B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:34:44]wFMCommunicate OK [06:34:44]SAM_PROTO_GetFieldsCounters done [06:34:44]requested_item shift.num is exist - process it [06:34:44]requested_item shift.opened is exist - process it [06:34:44]req_shift_opened [06:34:44]FM_GetShiftState [06:34:44]SAM_PROTO_GetShiftState [06:34:44]wFMCommunicate request_size=4 [06:34:44]MH_SAM_APDU [06:34:44]CAPDU: 80 13 01 00 [06:34:44]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [06:34:44]Write i2c OK [06:34:44]MH_I2C_Read... [06:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:44]Read from MH i2c: E2 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 0E 00 [06:34:44]MH_I2C_Read... [06:34:44]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 55 [06:34:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:34:44]wFMCommunicate OK [06:34:44]SAM_PROTO_GetShiftState done [06:34:44]FM_GetShiftState done [06:34:44]req_shift_opened done [06:34:44]requested_item shift.open_date is exist - process it [06:34:44]req_shift_open_date [06:34:44]req_shift_open_date done [06:34:44]produce_requested_data done [06:34:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112124,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:34:44]process_action_free close_receipt [06:34:44]json_value_free [06:34:44]json_value_free done [06:34:44]process_json_proto returns [06:34:44]Send response to host [06:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112124,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:34:44]free response buf [06:34:44]execute_script done [06:34:44]execute_script returns [06:34:44]free content buf [06:34:44]Sock 8.Close socket [06:34:44]Sock 8.Thread stoped [06:34:48]OFD Sender: No OFD packet to send [06:34:53]OFD Sender: No OFD packet to send [06:34:58]OFD Sender: No OFD packet to send [06:35:03]OFD Sender: No OFD packet to send [06:35:08]OFD Sender: No OFD packet to send [06:35:13]OFD Sender: No OFD packet to send [06:35:18]OFD Sender: No OFD packet to send [06:35:23]OFD Sender: No OFD packet to send [06:35:28]OFD Sender: No OFD packet to send [06:35:33]OFD Sender: No OFD packet to send [06:35:38]OFD Sender: No OFD packet to send [06:35:43]OFD Sender: No OFD packet to send [06:35:48]OFD Sender: No OFD packet to send [06:35:53]OFD Sender: No OFD packet to send [06:35:58]OFD Sender: No OFD packet to send [06:36:03]OFD Sender: No OFD packet to send [06:36:08]OFD Sender: No OFD packet to send [06:36:13]OFD Sender: No OFD packet to send [06:36:18]OFD Sender: No OFD packet to send [06:36:23]OFD Sender: No OFD packet to send [06:36:28]OFD Sender: No OFD packet to send [06:36:33]OFD Sender: No OFD packet to send [06:36:38]OFD Sender: No OFD packet to send [06:36:43]OFD Sender: No OFD packet to send [06:36:48]OFD Sender: No OFD packet to send [06:36:53]OFD Sender: No OFD packet to send [06:36:58]OFD Sender: No OFD packet to send [06:37:03]OFD Sender: No OFD packet to send [06:37:08]OFD Sender: No OFD packet to send [06:37:13]OFD Sender: No OFD packet to send [06:37:18]OFD Sender: No OFD packet to send [06:37:23]OFD Sender: No OFD packet to send [06:37:28]OFD Sender: No OFD packet to send [06:37:33]OFD Sender: No OFD packet to send [06:37:38]OFD Sender: No OFD packet to send [06:37:43]OFD Sender: No OFD packet to send [06:37:48]OFD Sender: No OFD packet to send [06:37:53]OFD Sender: No OFD packet to send [06:37:58]OFD Sender: No OFD packet to send [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:23]OFD Sender: No OFD packet to send [06:38:28]OFD Sender: No OFD packet to send [06:38:33]OFD Sender: No OFD packet to send [06:38:38]OFD Sender: No OFD packet to send [06:38:43]OFD Sender: No OFD packet to send [06:38:48]OFD Sender: No OFD packet to send [06:38:53]OFD Sender: No OFD packet to send [06:38:58]OFD Sender: No OFD packet to send [06:39:03]OFD Sender: No OFD packet to send [06:39:08]OFD Sender: No OFD packet to send [06:39:13]OFD Sender: No OFD packet to send [06:39:18]OFD Sender: No OFD packet to send [06:39:23]OFD Sender: No OFD packet to send [06:39:28]OFD Sender: No OFD packet to send [06:39:33]OFD Sender: No OFD packet to send [06:39:38]OFD Sender: No OFD packet to send [06:39:43]OFD Sender: No OFD packet to send [06:39:48]OFD Sender: No OFD packet to send [06:39:53]OFD Sender: No OFD packet to send [06:39:58]OFD Sender: No OFD packet to send [06:40:03]OFD Sender: No OFD packet to send [06:40:08]OFD Sender: No OFD packet to send [06:40:13]OFD Sender: No OFD packet to send [06:40:18]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:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:47]accept exits with 9 [06:41:47]New connection [06:41:47]New thread 3067358564 created [06:41:47]Thread 3067501924 joined [06:41:47]Waiting for new connection... [06:41:47] Sock 9.Parse request [06:41:47]Sock 9.Check first char [06:41:47]Sock 9.First char is OK [06:41:47]request: POST /json_proto HTTP/1.0 [06:41:47]Method: POST [06:41:47]URL: /json_proto [06:41:47]Method is POST - this is cgi request [06:41:47]url: /json_proto [06:41:47]query_string will be loaded in cgi processing [06:41:47]execute_cgi json_proto POST (null) [06:41:47]execute_cgi path=json_proto method=POST [06:41:47]POST find Content-Length [06:41:47]Host: 172.17.96.197:8080 [06:41:47]Content-Length: 676 [06:41:47]Content-Type: application/json [06:41:47] [06:41:47]POST finish read [06:41:47]Found Content-Length = 676 [06:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [06:41:47]execute_script... [06:41: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)48451", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [06:41:47]POST & json_proto [06:41:47]process_json_proto [06:41:47]json parsed OK: [06:41:47]protocol is kg_v1.0 [06:41:47]action value=close_receipt [06:41:47]process_action close_receipt [06:41:47]cmd_close_receipt [06:41:47]MH_GetDate [06:41:47]Write to MH i2c: F0 00 00 39 08 30 [06:41:47]Write i2c OK [06:41:47]MH_I2C_Read... [06:41:47]Read from MH i2c: F0 [06:41:47]MH_I2C_Read... [06:41:47]Read from MH i2c: F0 09 00 [06:41:47]MH_I2C_Read... [06:41:47]Read from MH i2c: F0 09 00 39 08 00 AD 7A 1B 66 E0 85 7F 64 29 [06:41:47]GetLastDocTimeStamp 1713076483 [06:41:47]current date 1713076909 [06:41:47]FM_GetShiftState [06:41:47]SAM_PROTO_GetShiftState [06:41:47]wFMCommunicate request_size=4 [06:41:47]MH_SAM_APDU [06:41:47]CAPDU: 80 13 01 00 [06:41:47]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [06:41:47]Write i2c OK [06:41:47]MH_I2C_Read... [06:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:47]Read from MH i2c: E2 [06:41:47]MH_I2C_Read... [06:41:47]Read from MH i2c: E2 0E 00 [06:41:47]MH_I2C_Read... [06:41:47]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 57 [06:41:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:41:47]wFMCommunicate OK [06:41:47]SAM_PROTO_GetShiftState done [06:41:47]FM_GetShiftState done [06:41:47]opened in 1713054696 [06:41:47]opened+sec_in_day 1713141096 [06:41:47]quantity*price = 60056 [06:41:47]sum+1 = 60057 [06:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 24 14.04.2024 06:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112125 ФПД: 136939461860768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064149&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112125&fm=136939461860768&tin=02508201610067®Number=0000000000094237&sum=60000 [06:41:48]StoreToDocumentArchive [06:41:48]shift 357 fd 112125 [06:41:48]save to /storage/0357/doc_00112125 [06:41:48]save last doc name /storage/0357/doc_00112125 to /storage/kkm_last_doc_name [06:41:48]save OK [06:41:48]Clear old archive folders... [06:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:41:48]tlvbuf is 019C1300 [06:41:48]SAM_PROTO_ClearQueue [06:41:48]wFMCommunicate request_size=4 [06:41:48]MH_SAM_APDU [06:41:48]CAPDU: 80 09 00 00 [06:41:48]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [06:41:48]Write i2c OK [06:41:48]MH_I2C_Read... [06:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:41:48]Read from MH i2c: E2 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: E2 03 00 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [06:41:48]RAPDU: 90 00 [06:41:48]wFMCommunicate OK [06:41:48]SAM_PROTO_ClearQueue done [06:41:48]KKMCreateOFDPacket [06:41:48]OFDProtocolAddRootSTLVToBuf [06:41:48]FM_MakeSignedData [06:41:48]FM_MakeSignedData [06:41:48]SAM_PROTO_SignData [06:41:48]wFMCommunicate request_size=4 [06:41:48]MH_SAM_APDU [06:41:48]CAPDU: 80 0D 01 02 [06:41:48]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [06:41:48]Write i2c OK [06:41:48]MH_I2C_Read... [06:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:41:48]Read from MH i2c: E2 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: E2 03 00 [06:41:48]MH_I2C_Read... [06:41:48]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [06:41:48]RAPDU: 90 00 [06:41:48]wFMCommunicate OK [06:41:48]wFMCommunicate request_size=255 [06:41:48]MH_SAM_APDU [06:41: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 AD 7A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B5 01 00 35 04 06 00 7C [06:41:48]Write to MH i2c: E2 02 01 49 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 AD 7A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B5 01 00 35 04 06 00 7C 00 00 2A [06:41:48]Write i2c OK [06:41:48]MH_I2C_Read... [06:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:49]Read from MH i2c: E2 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 03 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [06:41:49]RAPDU: 90 00 [06:41:49]wFMCommunicate OK [06:41:49]wFMCommunicate request_size=10 [06:41:49]MH_SAM_APDU [06:41:49]CAPDU: 80 0D 02 02 05 8B B3 FA DD A0 [06:41:49]Write to MH i2c: E2 0D 00 4A 08 80 0D 02 02 05 00 8B B3 FA DD A0 00 00 8B [06:41:49]Write i2c OK [06:41:49]MH_I2C_Read... [06:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:41:49]Read from MH i2c: E2 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 03 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [06:41:49]RAPDU: 90 00 [06:41:49]wFMCommunicate OK [06:41:49]wFMCommunicate request_size=4 [06:41:49]MH_SAM_APDU [06:41:49]CAPDU: 80 0D 03 02 [06:41:49]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [06:41:49]Write i2c OK [06:41:49]MH_I2C_Read... [06:41:49]OFD Sender: No OFD packet to send [06:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:41:49]Read from MH i2c: E2 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 0B 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 0B 00 4B 08 00 AB 72 E3 07 9D FC D6 17 90 00 5C [06:41:49]RAPDU: AB 72 E3 07 9D FC D6 17 90 00 [06:41:49]wFMCommunicate OK [06:41:49]SAM_PROTO_SignData done [06:41:49]FM_MakeSignedData done [06:41:49]CreateOFDProtocolMessage [06:41:49]wFMCommunicate request_size=4 [06:41:49]MH_SAM_APDU [06:41:49]CAPDU: 80 11 00 00 [06:41:49]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [06:41:49]Write i2c OK [06:41:49]MH_I2C_Read... [06:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:49]Read from MH i2c: E2 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 17 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1F [06:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:41:49]wFMCommunicate OK [06:41:49]CreateOFDProtocolMessage done [06:41:49]OFDSenderStorePacket 112125 [06:41:49]StoreOFDPacket docnum=112125 [06:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9F A4 07 01 7B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 AD 7A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B5 01 00 35 04 06 00 7C 8B B3 FA DD A0 AB 72 E3 07 9D FC D6 17 [06:41:49]CheckFolder [06:41:49]dirname=/storage/ofd_packets [06:41:49]CheckFolder done [06:41:49]ProducePacketName [06:41:49]name=ofd_packets/00112125 [06:41:49]NVStorageSaveData ofd_packets/00112125 [06:41:49]File name is /storage/ofd_packets/00112125 [06:41:49]Write 301 bytes [06:41:49]NVStorageSaveData done [06:41:49]OFDSenderStorePacket done [06:41:49]KKMCreateOFDPacket done [06:41:49]NVStorageSaveData kkm_last_timestamp [06:41:49]File name is /storage/kkm_last_timestamp [06:41:49]Write 4 bytes [06:41:49]NVStorageSaveData done [06:41:49]ExternCall_PrintAddStr [06:41:49]wPrintStart [06:41:49]Write to MH i2c: 01 00 00 4D 08 55 [06:41:49]Write i2c OK [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: 01 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: 01 07 00 [06:41:49]MH_I2C_Read... [06:41:49]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [06:41:49]RasterBufferAndPrint [06:41:49]line Счет N : (1)48451 [06:41:49]line ИНН: 02508201610067 [06:41:49]line Контрольно-Кассовый Чек [06:41:49]line ПРОДАЖА [06:41:49]line ТРК (МРК, ГНК) : 11 [06:41:49]line Товар: 2710124130 [06:41:49]line Аи-92-К-5 [06:41:49]line 9.340 * 64.30 [06:41:49]line = 600.56 [06:41:49]line НДС 12% НСП 1% [06:41:49]line > о реализуемом товаре [06:41:49]line ОКРУГЛЕНИЕ: -0.56 [06:41:49]line ИТОГО: 600.00 [06:41:49]line Внесено: 600.00 [06:41:49]line СДАЧА: 0.00 [06:41:49]line НСП 1% : 5.31 [06:41:49]line НДС 12% : 63.78 [06:41:49]line Наличными: 600.00 [06:41:49]line Безнал.: 0.00 [06:41:49]line Место: АЗС № 47 "Партнер Нефть" [06:41:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:41:49]line СНО: Общий режим [06:41:49]line Чек 24 14.04.2024 06:41 [06:41:49]line Смена: 357 ФФД: 1.0 [06:41:49]line ЗНМ: 0300000138 [06:41:49]line РНМ: 0000000000094237 [06:41:49]line Версия ККМ: 001 [06:41:49]line ФМ: 0000000000875019 [06:41:49]line ФД: 112125 [06:41:49]line ФПД: 136939461860768 [06:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064149&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112125&fm=136939461860768&tin=02508201610067®Number=0000000000094237&sum=60000 [06:41:49]OFD Sender: Processing packet 112125 [packets to send 71, broken 70] [06:41:49]ProducePacketName [06:41:49]name=ofd_packets/00112125 [06:41:49]OFD Sender: To server: pG, [06:41:49]CommunicateWithHost lk.salyk.kg:30040 [06:41:49]ConnectInit lk.salyk.kg [06:41:49]written 0, free lines is 4095 [06:41:49]Connected sock=10 [06:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9F A4 07 01 7B 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 AD 7A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B5 01 00 35 04 06 00 7C 8B B3 FA DD A0 AB 72 E3 07 9D FC D6 17 [06:41:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B7 DC 47 00 CF 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B5 01 00 F4 03 04 00 3A 22 1B 66 B6 04 01 00 00 57 B9 C4 1E B8 2F 3A BE [06:41:50]CommunicateWithHost err = 0 [06:41:50]CheckOFDResponse [06:41:50]1017 (14) - 77093643461234 [06:41:50]1041 (16) - 0000000000875019 [06:41:50]1040 (4) - 112125 [06:41:50]1012 (4) - 14.04.2024 00:24 [06:41:50]1206 (1) - 0 [06:41:50]OFD Sender: Remove packet 112125 [06:41:50]ProducePacketName [06:41:50]name=ofd_packets/00112125 [06:41:50]NVStorageDeleteData [06:41:50]Write to MH i2c: 01 00 00 78 08 80 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 07 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: 01 07 00 78 08 00 00 00 00 00 E4 0C 77 [06:41:50]RasterBufferAndPrint [06:41:50]line [06:41:50]line [06:41:50]line [06:41:50]line [06:41:50]line [06:41:50]written 0, free lines is 3306 [06:41:50]MH_Cut [06:41:50]Write to MH i2c: D1 01 00 7F 08 01 59 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: D1 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: D1 01 00 [06:41:50]MH_I2C_Read... [06:41:50]Read from MH i2c: D1 01 00 7F 08 00 58 [06:41:50]Write to MH i2c: 01 00 00 80 08 88 [06:41:50]Write i2c OK [06:41:50]MH_I2C_Read... [06:41:50]OFD Sender: No OFD packet to send [06:41:50]*** Cut start [06:41:50]*** Partial cut [06:41:50]*** CUTSNS_PIN = 1 [06:41:50]*** CUTSNS_PIN = 0 [06:41:51]*** Brake cut motor [06:41:51]Read from MH i2c: 01 [06:41:51]MH_I2C_Read... [06:41:51]*** Stop cut motor [06:41:51]*** Cut end [06:41:51]Read from MH i2c: 01 07 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: 01 07 00 80 08 00 00 00 00 00 FF 0F 9D [06:41:51]process_action close_receipt done [06:41:51]requested_data is exist [06:41:51]produce_requested_data [06:41:51]requested_item fm.sn is exist - process it [06:41:51]wFMCommunicate request_size=4 [06:41:51]MH_SAM_APDU [06:41:51]CAPDU: 80 11 00 00 [06:41:51]Write to MH i2c: E2 08 00 81 08 80 11 00 00 00 00 00 00 03 [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:41:51]Read from MH i2c: E2 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 17 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 17 00 81 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 54 [06:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:41:51]wFMCommunicate OK [06:41:51]requested_item fd.num is exist - process it [06:41:51]SAM_PROTO_GetFieldsCounters [06:41:51]wFMCommunicate request_size=4 [06:41:51]MH_SAM_APDU [06:41:51]CAPDU: 80 13 00 00 [06:41:51]Write to MH i2c: E2 08 00 82 08 80 13 00 00 00 00 00 00 06 [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:41:51]Read from MH i2c: E2 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 62 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 62 00 82 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FD B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [06:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FD B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:41:51]wFMCommunicate OK [06:41:51]SAM_PROTO_GetFieldsCounters done [06:41:51]requested_item shift.num is exist - process it [06:41:51]requested_item shift.opened is exist - process it [06:41:51]req_shift_opened [06:41:51]FM_GetShiftState [06:41:51]SAM_PROTO_GetShiftState [06:41:51]wFMCommunicate request_size=4 [06:41:51]MH_SAM_APDU [06:41:51]CAPDU: 80 13 01 00 [06:41:51]Write to MH i2c: E2 08 00 83 08 80 13 01 00 00 00 00 00 08 [06:41:51]Write i2c OK [06:41:51]MH_I2C_Read... [06:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:41:51]Read from MH i2c: E2 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 0E 00 [06:41:51]MH_I2C_Read... [06:41:51]Read from MH i2c: E2 0E 00 83 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A0 [06:41:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:41:51]wFMCommunicate OK [06:41:51]SAM_PROTO_GetShiftState done [06:41:51]FM_GetShiftState done [06:41:51]req_shift_opened done [06:41:51]requested_item shift.open_date is exist - process it [06:41:51]req_shift_open_date [06:41:51]req_shift_open_date done [06:41:51]produce_requested_data done [06:41:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112125,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:41:51]process_action_free close_receipt [06:41:51]json_value_free [06:41:51]json_value_free done [06:41:51]process_json_proto returns [06:41:51]Send response to host [06:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112125,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:41:51]free response buf [06:41:51]execute_script done [06:41:51]execute_script returns [06:41:51]free content buf [06:41:51]Sock 9.Close socket [06:41:51]Sock 9.Thread stoped [06:41:55]OFD Sender: No OFD packet to send [06:42:00]OFD Sender: No OFD packet to send [06:42:05]OFD Sender: No OFD packet to send [06:42:10]OFD Sender: No OFD packet to send [06:42:15]OFD Sender: No OFD packet to send [06:42:20]OFD Sender: No OFD packet to send [06:42:25]OFD Sender: No OFD packet to send [06:42:30]OFD Sender: No OFD packet to send [06:42:35]OFD Sender: No OFD packet to send [06:42:40]OFD Sender: No OFD packet to send [06:42:45]OFD Sender: No OFD packet to send [06:42:50]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:46:58]accept exits with 8 [06:46:58]New connection [06:46:58]New thread 3067501924 created [06:46:58]Thread 3067358564 joined [06:46:58]Waiting for new connection... [06:46:58] Sock 8.Parse request [06:46:58]Sock 8.Check first char [06:46:58]Sock 8.First char is OK [06:46:58]request: POST /json_proto HTTP/1.0 [06:46:58]Method: POST [06:46:58]URL: /json_proto [06:46:58]Method is POST - this is cgi request [06:46:58]url: /json_proto [06:46:58]query_string will be loaded in cgi processing [06:46:58]execute_cgi json_proto POST (null) [06:46:58]execute_cgi path=json_proto method=POST [06:46:58]POST find Content-Length [06:46:58]Host: 172.17.96.197:8080 [06:46:58]Content-Length: 669 [06:46:58]Content-Type: application/json [06:46:58] [06:46:58]POST finish read [06:46:58]Found Content-Length = 669 [06:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48452", "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.30, "quantity" : 6.130, "sum" : 400.29, "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:46:58]execute_script... [06:46:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48452", "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.30, "quantity" : 6.130, "sum" : 400.29, "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:46:58]POST & json_proto [06:46:58]process_json_proto [06:46:58]json parsed OK: [06:46:58]protocol is kg_v1.0 [06:46:58]action value=close_receipt [06:46:58]process_action close_receipt [06:46:58]cmd_close_receipt [06:46:58]MH_GetDate [06:46:58]Write to MH i2c: F0 00 00 84 08 7B [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: F0 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: F0 09 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: F0 09 00 84 08 00 E4 7B 1B 66 E0 85 7F 64 AC [06:46:58]GetLastDocTimeStamp 1713076909 [06:46:58]current date 1713077220 [06:46:58]FM_GetShiftState [06:46:58]SAM_PROTO_GetShiftState [06:46:58]wFMCommunicate request_size=4 [06:46:58]MH_SAM_APDU [06:46:58]CAPDU: 80 13 01 00 [06:46:58]Write to MH i2c: E2 08 00 85 08 80 13 01 00 00 00 00 00 0A [06:46:58]Write i2c OK [06:46:58]MH_I2C_Read... [06:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:46:58]Read from MH i2c: E2 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 0E 00 [06:46:58]MH_I2C_Read... [06:46:58]Read from MH i2c: E2 0E 00 85 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A2 [06:46:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:46:58]wFMCommunicate OK [06:46:58]SAM_PROTO_GetShiftState done [06:46:58]FM_GetShiftState done [06:46:58]opened in 1713054696 [06:46:58]opened+sec_in_day 1713141096 [06:46:58]quantity*price = 40028 [06:46:58]sum+1 = 40030 [06:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 25 14.04.2024 06:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112126 ФПД: 163886418882809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064700&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112126&fm=163886418882809&tin=02508201610067®Number=0000000000094237&sum=40000 [06:46:59]StoreToDocumentArchive [06:46:59]shift 357 fd 112126 [06:46:59]save to /storage/0357/doc_00112126 [06:46:59]save last doc name /storage/0357/doc_00112126 to /storage/kkm_last_doc_name [06:46:59]save OK [06:46:59]Clear old archive folders... [06:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=252 [06:46:59]tlvbuf is 01B23F50 [06:46:59]SAM_PROTO_ClearQueue [06:46:59]wFMCommunicate request_size=4 [06:46:59]MH_SAM_APDU [06:46:59]CAPDU: 80 09 00 00 [06:46:59]Write to MH i2c: E2 08 00 92 08 80 09 00 00 00 00 00 00 0C [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:46:59]Read from MH i2c: E2 03 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [06:46:59]RAPDU: 90 00 [06:46:59]wFMCommunicate OK [06:46:59]SAM_PROTO_ClearQueue done [06:46:59]KKMCreateOFDPacket [06:46:59]OFDProtocolAddRootSTLVToBuf [06:46:59]FM_MakeSignedData [06:46:59]FM_MakeSignedData [06:46:59]SAM_PROTO_SignData [06:46:59]wFMCommunicate request_size=4 [06:46:59]MH_SAM_APDU [06:46:59]CAPDU: 80 0D 01 02 [06:46:59]Write to MH i2c: E2 08 00 93 08 80 0D 01 02 00 00 00 00 14 [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [06:46:59]RAPDU: 90 00 [06:46:59]wFMCommunicate OK [06:46:59]wFMCommunicate request_size=255 [06:46:59]MH_SAM_APDU [06:46:59]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 9B 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 19 00 00 00 F4 03 04 00 E4 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B5 01 00 35 04 06 00 [06:46:59]Write to MH i2c: E2 02 01 94 08 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 9B 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 19 00 00 00 F4 03 04 00 E4 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B5 01 00 35 04 06 00 00 00 2F [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [06:46:59]RAPDU: 90 00 [06:46:59]wFMCommunicate OK [06:46:59]wFMCommunicate request_size=11 [06:46:59]MH_SAM_APDU [06:46:59]CAPDU: 80 0D 02 02 06 95 0D C7 C7 F0 F9 [06:46:59]Write to MH i2c: E2 0E 00 95 08 80 0D 02 02 06 00 95 0D C7 C7 F0 F9 00 00 3C [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [06:46:59]RAPDU: 90 00 [06:46:59]wFMCommunicate OK [06:46:59]wFMCommunicate request_size=4 [06:46:59]MH_SAM_APDU [06:46:59]CAPDU: 80 0D 03 02 [06:46:59]Write to MH i2c: E2 08 00 96 08 80 0D 03 02 00 00 00 00 19 [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 0B 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 0B 00 96 08 00 5B 82 24 4E BA 5A 54 68 90 00 39 [06:46:59]RAPDU: 5B 82 24 4E BA 5A 54 68 90 00 [06:46:59]wFMCommunicate OK [06:46:59]SAM_PROTO_SignData done [06:46:59]FM_MakeSignedData done [06:46:59]CreateOFDProtocolMessage [06:46:59]wFMCommunicate request_size=4 [06:46:59]MH_SAM_APDU [06:46:59]CAPDU: 80 11 00 00 [06:46:59]Write to MH i2c: E2 08 00 97 08 80 11 00 00 00 00 00 00 19 [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:46:59]Read from MH i2c: E2 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 17 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: E2 17 00 97 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6A [06:46:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:46:59]wFMCommunicate OK [06:46:59]CreateOFDProtocolMessage done [06:46:59]OFDSenderStorePacket 112126 [06:46:59]StoreOFDPacket docnum=112126 [06:46:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 04 19 08 01 A8 A8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 9B 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 19 00 00 00 F4 03 04 00 E4 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B5 01 00 35 04 06 00 95 0D C7 C7 F0 F9 5B 82 24 4E BA 5A 54 68 [06:46:59]CheckFolder [06:46:59]dirname=/storage/ofd_packets [06:46:59]CheckFolder done [06:46:59]ProducePacketName [06:46:59]name=ofd_packets/00112126 [06:46:59]NVStorageSaveData ofd_packets/00112126 [06:46:59]File name is /storage/ofd_packets/00112126 [06:46:59]Write 302 bytes [06:46:59]NVStorageSaveData done [06:46:59]OFDSenderStorePacket done [06:46:59]KKMCreateOFDPacket done [06:46:59]NVStorageSaveData kkm_last_timestamp [06:46:59]File name is /storage/kkm_last_timestamp [06:46:59]Write 4 bytes [06:46:59]NVStorageSaveData done [06:46:59]ExternCall_PrintAddStr [06:46:59]wPrintStart [06:46:59]Write to MH i2c: 01 00 00 98 08 A0 [06:46:59]Write i2c OK [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 07 00 [06:46:59]MH_I2C_Read... [06:46:59]Read from MH i2c: 01 07 00 98 08 00 00 00 00 00 FF 0F B5 [06:46:59]RasterBufferAndPrint [06:46:59]line Счет N : (1)48452 [06:46:59]line ИНН: 02508201610067 [06:46:59]line Контрольно-Кассовый Чек [06:46:59]line ПРОДАЖА [06:46:59]line ТРК (МРК, ГНК) : 41 [06:46:59]line Товар: 2710124130 [06:46:59]line SUPER 92-К-5 [06:46:59]line 6.130 * 65.30 [06:46:59]line = 400.29 [06:46:59]line НДС 12% НСП 1% [06:46:59]line > о реализуемом товаре [06:46:59]line ОКРУГЛЕНИЕ: -0.29 [06:46:59]line ИТОГО: 400.00 [06:46:59]line Внесено: 400.00 [06:46:59]line СДАЧА: 0.00 [06:46:59]line НСП 1% : 3.54 [06:46:59]line НДС 12% : 42.51 [06:46:59]line Наличными: 400.00 [06:46:59]line Безнал.: 0.00 [06:46:59]line Место: АЗС № 47 "Партнер Нефть" [06:46:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:46:59]line СНО: Общий режим [06:46:59]line Чек 25 14.04.2024 06:47 [06:46:59]line Смена: 357 ФФД: 1.0 [06:46:59]line ЗНМ: 0300000138 [06:46:59]line РНМ: 0000000000094237 [06:46:59]line Версия ККМ: 001 [06:46:59]line ФМ: 0000000000875019 [06:46:59]line ФД: 112126 [06:46:59]line ФПД: 163886418882809 [06:46:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064700&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112126&fm=163886418882809&tin=02508201610067®Number=0000000000094237&sum=40000 [06:47:00]OFD Sender: Processing packet 112126 [packets to send 71, broken 70] [06:47:00]ProducePacketName [06:47:00]name=ofd_packets/00112126 [06:47:00]OFD Sender: To server: pG, [06:47:00]CommunicateWithHost lk.salyk.kg:30040 [06:47:00]ConnectInit lk.salyk.kg [06:47:00]written 0, free lines is 4095 [06:47:00]Connected sock=10 [06:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 04 19 08 01 A8 A8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 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 9B 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 19 00 00 00 F4 03 04 00 E4 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B5 01 00 35 04 06 00 95 0D C7 C7 F0 F9 5B 82 24 4E BA 5A 54 68 [06:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 80 8E 47 00 EF F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B5 01 00 F4 03 04 00 70 23 1B 66 B6 04 01 00 00 F3 D5 13 2F F2 1E 4C 1E [06:47:00]CommunicateWithHost err = 0 [06:47:00]CheckOFDResponse [06:47:00]1017 (14) - 77093643461234 [06:47:00]1041 (16) - 0000000000875019 [06:47:00]1040 (4) - 112126 [06:47:00]1012 (4) - 14.04.2024 00:29 [06:47:00]1206 (1) - 0 [06:47:00]OFD Sender: Remove packet 112126 [06:47:00]ProducePacketName [06:47:00]name=ofd_packets/00112126 [06:47:00]NVStorageDeleteData [06:47:00]Write to MH i2c: 01 00 00 C3 08 CB [06:47:00]Write i2c OK [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: 01 [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: 01 07 00 [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: 01 07 00 C3 08 00 00 00 00 00 EF 0C CD [06:47:00]RasterBufferAndPrint [06:47:00]line [06:47:00]line [06:47:00]line [06:47:00]line [06:47:00]line [06:47:00]written 0, free lines is 3317 [06:47:00]MH_Cut [06:47:00]Write to MH i2c: D1 01 00 CA 08 01 A4 [06:47:00]Write i2c OK [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: D1 [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: D1 01 00 [06:47:00]MH_I2C_Read... [06:47:00]Read from MH i2c: D1 01 00 CA 08 00 A3 [06:47:00]Write to MH i2c: 01 00 00 CB 08 D3 [06:47:00]Write i2c OK [06:47:00]MH_I2C_Read... [06:47:01]OFD Sender: No OFD packet to send [06:47:01]*** Cut start [06:47:01]*** Partial cut [06:47:01]*** CUTSNS_PIN = 1 [06:47:01]*** CUTSNS_PIN = 0 [06:47:01]*** Brake cut motor [06:47:02]Read from MH i2c: 01 [06:47:02]MH_I2C_Read... [06:47:02]*** Stop cut motor [06:47:02]*** Cut end [06:47:02]Read from MH i2c: 01 07 00 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: 01 07 00 CB 08 00 00 00 00 00 FF 0F E8 [06:47:02]process_action close_receipt done [06:47:02]requested_data is exist [06:47:02]produce_requested_data [06:47:02]requested_item fm.sn is exist - process it [06:47:02]wFMCommunicate request_size=4 [06:47:02]MH_SAM_APDU [06:47:02]CAPDU: 80 11 00 00 [06:47:02]Write to MH i2c: E2 08 00 CC 08 80 11 00 00 00 00 00 00 4E [06:47:02]Write i2c OK [06:47:02]MH_I2C_Read... [06:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:02]Read from MH i2c: E2 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 17 00 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 17 00 CC 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9F [06:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:47:02]wFMCommunicate OK [06:47:02]requested_item fd.num is exist - process it [06:47:02]SAM_PROTO_GetFieldsCounters [06:47:02]wFMCommunicate request_size=4 [06:47:02]MH_SAM_APDU [06:47:02]CAPDU: 80 13 00 00 [06:47:02]Write to MH i2c: E2 08 00 CD 08 80 13 00 00 00 00 00 00 51 [06:47:02]Write i2c OK [06:47:02]MH_I2C_Read... [06:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:02]Read from MH i2c: E2 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 62 00 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 62 00 CD 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FE B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [06:47:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FE B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:02]wFMCommunicate OK [06:47:02]SAM_PROTO_GetFieldsCounters done [06:47:02]requested_item shift.num is exist - process it [06:47:02]requested_item shift.opened is exist - process it [06:47:02]req_shift_opened [06:47:02]FM_GetShiftState [06:47:02]SAM_PROTO_GetShiftState [06:47:02]wFMCommunicate request_size=4 [06:47:02]MH_SAM_APDU [06:47:02]CAPDU: 80 13 01 00 [06:47:02]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [06:47:02]Write i2c OK [06:47:02]MH_I2C_Read... [06:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:02]Read from MH i2c: E2 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 0E 00 [06:47:02]MH_I2C_Read... [06:47:02]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EB [06:47:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:47:02]wFMCommunicate OK [06:47:02]SAM_PROTO_GetShiftState done [06:47:02]FM_GetShiftState done [06:47:02]req_shift_opened done [06:47:02]requested_item shift.open_date is exist - process it [06:47:02]req_shift_open_date [06:47:02]req_shift_open_date done [06:47:02]produce_requested_data done [06:47:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112126,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:47:02]process_action_free close_receipt [06:47:02]json_value_free [06:47:02]json_value_free done [06:47:02]process_json_proto returns [06:47:02]Send response to host [06:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112126,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:47:02]free response buf [06:47:02]execute_script done [06:47:02]execute_script returns [06:47:02]free content buf [06:47:02]Sock 8.Close socket [06:47:02]Sock 8.Thread stoped [06:47:06]OFD Sender: No OFD packet to send [06:47:11]OFD Sender: No OFD packet to send [06:47:16]OFD Sender: No OFD packet to send [06:47:20]accept exits with 9 [06:47:20]New connection [06:47:20]New thread 3067358564 created [06:47:20]Thread 3067501924 joined [06:47:20]Waiting for new connection... [06:47:20] Sock 9.Parse request [06:47:20]Sock 9.Check first char [06:47:20]Sock 9.First char is OK [06:47:20]request: POST /json_proto HTTP/1.0 [06:47:20]Method: POST [06:47:20]URL: /json_proto [06:47:20]Method is POST - this is cgi request [06:47:20]url: /json_proto [06:47:20]query_string will be loaded in cgi processing [06:47:20]execute_cgi json_proto POST (null) [06:47:20]execute_cgi path=json_proto method=POST [06:47:20]POST find Content-Length [06:47:20]Host: 172.17.96.197:8080 [06:47:20]Content-Length: 676 [06:47:20]Content-Type: application/json [06:47:20] [06:47:20]POST finish read [06:47:20]Found Content-Length = 676 [06:47:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:47:20]execute_script... [06:47:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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:47:20]POST & json_proto [06:47:20]process_json_proto [06:47:20]json parsed OK: [06:47:20]protocol is kg_v1.0 [06:47:20]action value=close_receipt [06:47:20]process_action close_receipt [06:47:20]cmd_close_receipt [06:47:20]MH_GetDate [06:47:20]Write to MH i2c: F0 00 00 CF 08 C6 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: F0 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: F0 09 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: F0 09 00 CF 08 00 FB 7B 1B 66 E0 85 7F 64 0E [06:47:20]GetLastDocTimeStamp 1713077220 [06:47:20]current date 1713077243 [06:47:20]FM_GetShiftState [06:47:20]SAM_PROTO_GetShiftState [06:47:20]wFMCommunicate request_size=4 [06:47:20]MH_SAM_APDU [06:47:20]CAPDU: 80 13 01 00 [06:47:20]Write to MH i2c: E2 08 00 D0 08 80 13 01 00 00 00 00 00 55 [06:47:20]Write i2c OK [06:47:20]MH_I2C_Read... [06:47:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:20]Read from MH i2c: E2 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 0E 00 [06:47:20]MH_I2C_Read... [06:47:20]Read from MH i2c: E2 0E 00 D0 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 ED [06:47:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:47:20]wFMCommunicate OK [06:47:20]SAM_PROTO_GetShiftState done [06:47:20]FM_GetShiftState done [06:47:20]opened in 1713054696 [06:47:20]opened+sec_in_day 1713141096 [06:47:20]quantity*price = 40058 [06:47:20]sum+1 = 40060 [06:47:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 26 14.04.2024 06:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112127 ФПД: 231095455880284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064723&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112127&fm=231095455880284&tin=02508201610067®Number=0000000000094237&sum=40000 [06:47:22]StoreToDocumentArchive [06:47:22]shift 357 fd 112127 [06:47:22]save to /storage/0357/doc_00112127 [06:47:22]save last doc name /storage/0357/doc_00112127 to /storage/kkm_last_doc_name [06:47:22]save OK [06:47:22]Clear old archive folders... [06:47:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:47:22]tlvbuf is 019D7C60 [06:47:22]SAM_PROTO_ClearQueue [06:47:22]wFMCommunicate request_size=4 [06:47:22]MH_SAM_APDU [06:47:22]CAPDU: 80 09 00 00 [06:47:22]Write to MH i2c: E2 08 00 DD 08 80 09 00 00 00 00 00 00 57 [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [06:47:22]RAPDU: 90 00 [06:47:22]wFMCommunicate OK [06:47:22]SAM_PROTO_ClearQueue done [06:47:22]KKMCreateOFDPacket [06:47:22]OFDProtocolAddRootSTLVToBuf [06:47:22]FM_MakeSignedData [06:47:22]FM_MakeSignedData [06:47:22]SAM_PROTO_SignData [06:47:22]wFMCommunicate request_size=4 [06:47:22]MH_SAM_APDU [06:47:22]CAPDU: 80 0D 01 02 [06:47:22]Write to MH i2c: E2 08 00 DE 08 80 0D 01 02 00 00 00 00 5F [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [06:47:22]RAPDU: 90 00 [06:47:22]wFMCommunicate OK [06:47:22]wFMCommunicate request_size=255 [06:47:22]MH_SAM_APDU [06:47: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 1A 00 00 00 F4 03 04 00 FB 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B5 01 00 35 04 06 00 D2 [06:47:22]Write to MH i2c: E2 02 01 DF 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 1A 00 00 00 F4 03 04 00 FB 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B5 01 00 35 04 06 00 D2 00 00 EA [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [06:47:22]RAPDU: 90 00 [06:47:22]wFMCommunicate OK [06:47:22]wFMCommunicate request_size=10 [06:47:22]MH_SAM_APDU [06:47:22]CAPDU: 80 0D 02 02 05 2E 1A 8E 94 5C [06:47:22]Write to MH i2c: E2 0D 00 E0 08 80 0D 02 02 05 00 2E 1A 8E 94 5C 00 00 32 [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 03 00 E0 08 00 90 00 5C [06:47:22]RAPDU: 90 00 [06:47:22]wFMCommunicate OK [06:47:22]wFMCommunicate request_size=4 [06:47:22]MH_SAM_APDU [06:47:22]CAPDU: 80 0D 03 02 [06:47:22]Write to MH i2c: E2 08 00 E1 08 80 0D 03 02 00 00 00 00 64 [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 0B 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 0B 00 E1 08 00 34 CB D3 C4 1A 96 8E E2 90 00 1B [06:47:22]RAPDU: 34 CB D3 C4 1A 96 8E E2 90 00 [06:47:22]wFMCommunicate OK [06:47:22]SAM_PROTO_SignData done [06:47:22]FM_MakeSignedData done [06:47:22]CreateOFDProtocolMessage [06:47:22]wFMCommunicate request_size=4 [06:47:22]MH_SAM_APDU [06:47:22]CAPDU: 80 11 00 00 [06:47:22]Write to MH i2c: E2 08 00 E2 08 80 11 00 00 00 00 00 00 64 [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:22]Read from MH i2c: E2 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 17 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: E2 17 00 E2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B5 [06:47:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:47:22]wFMCommunicate OK [06:47:22]CreateOFDProtocolMessage done [06:47:22]OFDSenderStorePacket 112127 [06:47:22]StoreOFDPacket docnum=112127 [06:47:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9A 08 07 01 56 67 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 1A 00 00 00 F4 03 04 00 FB 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B5 01 00 35 04 06 00 D2 2E 1A 8E 94 5C 34 CB D3 C4 1A 96 8E E2 [06:47:22]CheckFolder [06:47:22]dirname=/storage/ofd_packets [06:47:22]CheckFolder done [06:47:22]ProducePacketName [06:47:22]name=ofd_packets/00112127 [06:47:22]NVStorageSaveData ofd_packets/00112127 [06:47:22]File name is /storage/ofd_packets/00112127 [06:47:22]Write 301 bytes [06:47:22]NVStorageSaveData done [06:47:22]OFDSenderStorePacket done [06:47:22]KKMCreateOFDPacket done [06:47:22]NVStorageSaveData kkm_last_timestamp [06:47:22]File name is /storage/kkm_last_timestamp [06:47:22]Write 4 bytes [06:47:22]NVStorageSaveData done [06:47:22]ExternCall_PrintAddStr [06:47:22]wPrintStart [06:47:22]Write to MH i2c: 01 00 00 E3 08 EB [06:47:22]Write i2c OK [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: 01 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: 01 07 00 [06:47:22]MH_I2C_Read... [06:47:22]Read from MH i2c: 01 07 00 E3 08 00 00 00 00 00 FF 0F 00 [06:47:22]RasterBufferAndPrint [06:47:22]line Счет N : (1)48453 [06:47:22]line ИНН: 02508201610067 [06:47:22]line Контрольно-Кассовый Чек [06:47:22]line ПРОДАЖА [06:47:22]line ТРК (МРК, ГНК) : 21 [06:47:22]line Товар: 2710124130 [06:47:22]line Аи-92-К-5 [06:47:22]line 6.230 * 64.30 [06:47:22]line = 400.59 [06:47:22]line НДС 12% НСП 1% [06:47:22]line > о реализуемом товаре [06:47:22]line ОКРУГЛЕНИЕ: -0.59 [06:47:22]line ИТОГО: 400.00 [06:47:22]line Внесено: 400.00 [06:47:22]line СДАЧА: 0.00 [06:47:22]line НСП 1% : 3.54 [06:47:22]line НДС 12% : 42.54 [06:47:22]line Наличными: 400.00 [06:47:22]line Безнал.: 0.00 [06:47:22]line Место: АЗС № 47 "Партнер Нефть" [06:47:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:47:22]line СНО: Общий режим [06:47:22]line Чек 26 14.04.2024 06:47 [06:47:22]line Смена: 357 ФФД: 1.0 [06:47:22]line ЗНМ: 0300000138 [06:47:22]line РНМ: 0000000000094237 [06:47:22]line Версия ККМ: 001 [06:47:22]line ФМ: 0000000000875019 [06:47:22]line ФД: 112127 [06:47:22]line ФПД: 231095455880284 [06:47:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T064723&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112127&fm=231095455880284&tin=02508201610067®Number=0000000000094237&sum=40000 [06:47:22]OFD Sender: Processing packet 112127 [packets to send 71, broken 70] [06:47:22]ProducePacketName [06:47:22]name=ofd_packets/00112127 [06:47:22]OFD Sender: To server: pG, [06:47:22]CommunicateWithHost lk.salyk.kg:30040 [06:47:22]ConnectInit lk.salyk.kg [06:47:23]written 0, free lines is 4095 [06:47:23]Connected sock=10 [06:47:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9A 08 07 01 56 67 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 1A 00 00 00 F4 03 04 00 FB 7B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B5 01 00 35 04 06 00 D2 2E 1A 8E 94 5C 34 CB D3 C4 1A 96 8E E2 [06:47:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AF DF 47 00 F1 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B5 01 00 F4 03 04 00 87 23 1B 66 B6 04 01 00 00 37 48 24 99 DC AB 67 10 [06:47:23]CommunicateWithHost err = 0 [06:47:23]CheckOFDResponse [06:47:23]1017 (14) - 77093643461234 [06:47:23]1041 (16) - 0000000000875019 [06:47:23]1040 (4) - 112127 [06:47:23]1012 (4) - 14.04.2024 00:29 [06:47:23]1206 (1) - 0 [06:47:23]OFD Sender: Remove packet 112127 [06:47:23]ProducePacketName [06:47:23]name=ofd_packets/00112127 [06:47:23]NVStorageDeleteData [06:47:23]Write to MH i2c: 01 00 00 0E 09 17 [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: 01 07 00 0E 09 00 00 00 00 00 F7 0C 21 [06:47:23]RasterBufferAndPrint [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]line [06:47:23]written 0, free lines is 3323 [06:47:23]MH_Cut [06:47:23]Write to MH i2c: D1 01 00 15 09 01 F0 [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 01 00 [06:47:23]MH_I2C_Read... [06:47:23]Read from MH i2c: D1 01 00 15 09 00 EF [06:47:23]Write to MH i2c: 01 00 00 16 09 1F [06:47:23]Write i2c OK [06:47:23]MH_I2C_Read... [06:47:23]OFD Sender: No OFD packet to send [06:47:24]*** Cut start [06:47:24]*** Partial cut [06:47:24]*** CUTSNS_PIN = 1 [06:47:24]*** CUTSNS_PIN = 0 [06:47:24]*** Brake cut motor [06:47:24]Read from MH i2c: 01 [06:47:24]MH_I2C_Read... [06:47:24]*** Stop cut motor [06:47:24]*** Cut end [06:47:24]Read from MH i2c: 01 07 00 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: 01 07 00 16 09 00 00 00 00 00 FF 0F 34 [06:47:24]process_action close_receipt done [06:47:24]requested_data is exist [06:47:24]produce_requested_data [06:47:24]requested_item fm.sn is exist - process it [06:47:24]wFMCommunicate request_size=4 [06:47:24]MH_SAM_APDU [06:47:24]CAPDU: 80 11 00 00 [06:47:24]Write to MH i2c: E2 08 00 17 09 80 11 00 00 00 00 00 00 9A [06:47:24]Write i2c OK [06:47:24]MH_I2C_Read... [06:47:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:47:24]Read from MH i2c: E2 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 17 00 [06:47:24]MH_I2C_Read... [06:47:24]Read from MH i2c: E2 17 00 17 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EB [06:47:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:47:24]wFMCommunicate OK [06:47:24]requested_item fd.num is exist - process it [06:47:24]SAM_PROTO_GetFieldsCounters [06:47:24]wFMCommunicate request_size=4 [06:47:24]MH_SAM_APDU [06:47:24]CAPDU: 80 13 00 00 [06:47:24]Write to MH i2c: E2 08 00 18 09 80 13 00 00 00 00 00 00 9D [06:47:24]Write i2c OK [06:47:24]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 62 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 62 00 18 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FF B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [06:47:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FF B5 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:47:25]wFMCommunicate OK [06:47:25]SAM_PROTO_GetFieldsCounters done [06:47:25]requested_item shift.num is exist - process it [06:47:25]requested_item shift.opened is exist - process it [06:47:25]req_shift_opened [06:47:25]FM_GetShiftState [06:47:25]SAM_PROTO_GetShiftState [06:47:25]wFMCommunicate request_size=4 [06:47:25]MH_SAM_APDU [06:47:25]CAPDU: 80 13 01 00 [06:47:25]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [06:47:25]Write i2c OK [06:47:25]MH_I2C_Read... [06:47:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:47:25]Read from MH i2c: E2 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 0E 00 [06:47:25]MH_I2C_Read... [06:47:25]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 37 [06:47:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:47:25]wFMCommunicate OK [06:47:25]SAM_PROTO_GetShiftState done [06:47:25]FM_GetShiftState done [06:47:25]req_shift_opened done [06:47:25]requested_item shift.open_date is exist - process it [06:47:25]req_shift_open_date [06:47:25]req_shift_open_date done [06:47:25]produce_requested_data done [06:47:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112127,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:47:25]process_action_free close_receipt [06:47:25]json_value_free [06:47:25]json_value_free done [06:47:25]process_json_proto returns [06:47:25]Send response to host [06:47:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112127,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:47:25]free response buf [06:47:25]execute_script done [06:47:25]execute_script returns [06:47:25]free content buf [06:47:25]Sock 9.Close socket [06:47:25]Sock 9.Thread stoped [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]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:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [06:50:14]OFD Sender: No OFD packet to send [06:50:19]OFD Sender: No OFD packet to send [06:50:24]OFD Sender: No OFD packet to send [06:50:29]OFD Sender: No OFD packet to send [06:50:34]OFD Sender: No OFD packet to send [06:50:39]OFD Sender: No OFD packet to send [06:50:44]OFD Sender: No OFD packet to send [06:50:49]OFD Sender: No OFD packet to send [06:50:54]OFD Sender: No OFD packet to send [06:50:57]accept exits with 8 [06:50:57]New connection [06:50:57]New thread 3067501924 created [06:50:57]Thread 3067358564 joined [06:50:57]Waiting for new connection... [06:50:57] Sock 8.Parse request [06:50:57]Sock 8.Check first char [06:50:57]Sock 8.First char is OK [06:50:57]request: POST /json_proto HTTP/1.0 [06:50:57]Method: POST [06:50:57]URL: /json_proto [06:50:57]Method is POST - this is cgi request [06:50:57]url: /json_proto [06:50:57]query_string will be loaded in cgi processing [06:50:57]execute_cgi json_proto POST (null) [06:50:57]execute_cgi path=json_proto method=POST [06:50:57]POST find Content-Length [06:50:57]Host: 172.17.96.197:8080 [06:50:57]Content-Length: 677 [06:50:57]Content-Type: application/json [06:50:57] [06:50:57]POST finish read [06:50:57]Found Content-Length = 677 [06:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10403", "tax_sys" : 0, "items" : [ { "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:57]execute_script... [06:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10403", "tax_sys" : 0, "items" : [ { "code": "4700001060077", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u041A\u0412 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D 0,2\u043B", "price" : 400.00, "quantity" : 1.000, "sum" : 400.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:50:57]POST & json_proto [06:50:57]process_json_proto [06:50:57]json parsed OK: [06:50:57]protocol is kg_v1.0 [06:50:57]action value=close_receipt [06:50:57]process_action close_receipt [06:50:57]cmd_close_receipt [06:50:57]MH_GetDate [06:50:57]Write to MH i2c: F0 00 00 1A 09 12 [06:50:57]Write i2c OK [06:50:57]MH_I2C_Read... [06:50:57]Read from MH i2c: F0 [06:50:57]MH_I2C_Read... [06:50:57]Read from MH i2c: F0 09 00 [06:50:57]MH_I2C_Read... [06:50:57]Read from MH i2c: F0 09 00 1A 09 00 D4 7C 1B 66 E0 85 7F 64 34 [06:50:57]GetLastDocTimeStamp 1713077243 [06:50:57]current date 1713077460 [06:50:57]FM_GetShiftState [06:50:57]SAM_PROTO_GetShiftState [06:50:57]wFMCommunicate request_size=4 [06:50:57]MH_SAM_APDU [06:50:57]CAPDU: 80 13 01 00 [06:50:57]Write to MH i2c: E2 08 00 1B 09 80 13 01 00 00 00 00 00 A1 [06:50:57]Write i2c OK [06:50:57]MH_I2C_Read... [06:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:50:57]Read from MH i2c: E2 [06:50:57]MH_I2C_Read... [06:50:57]Read from MH i2c: E2 0E 00 [06:50:57]MH_I2C_Read... [06:50:57]Read from MH i2c: E2 0E 00 1B 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 39 [06:50:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:50:57]wFMCommunicate OK [06:50:57]SAM_PROTO_GetShiftState done [06:50:57]FM_GetShiftState done [06:50:57]opened in 1713054696 [06:50:57]opened+sec_in_day 1713141096 [06:50:57]quantity*price = 40000 [06:50:57]sum+1 = 40001 [06:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 27 14.04.2024 06:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112128 ФПД: 144851356726938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T065100&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112128&fm=144851356726938&tin=02508201610067®Number=0000000000094237&sum=40000 0 [06:50:58]StoreToDocumentArchive [06:50:58]shift 357 fd 112128 [06:50:58]save to /storage/0357/doc_00112128 [06:50:58]save last doc name /storage/0357/doc_00112128 to /storage/kkm_last_doc_name [06:50:58]save OK [06:50:58]Clear old archive folders... [06:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=286 [06:50:58]tlvbuf is 01B25610 [06:50:58]SAM_PROTO_ClearQueue [06:50:58]wFMCommunicate request_size=4 [06:50:58]MH_SAM_APDU [06:50:58]CAPDU: 80 09 00 00 [06:50:58]Write to MH i2c: E2 08 00 28 09 80 09 00 00 00 00 00 00 A3 [06:50:58]Write i2c OK [06:50:58]MH_I2C_Read... [06:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:50:58]Read from MH i2c: E2 [06:50:58]MH_I2C_Read... [06:50:58]Read from MH i2c: E2 03 00 [06:50:58]MH_I2C_Read... [06:50:58]Read from MH i2c: E2 03 00 28 09 00 90 00 A5 [06:50:58]RAPDU: 90 00 [06:50:58]wFMCommunicate OK [06:50:58]SAM_PROTO_ClearQueue done [06:50:58]KKMCreateOFDPacket [06:50:58]OFDProtocolAddRootSTLVToBuf [06:50:58]FM_MakeSignedData [06:50:58]FM_MakeSignedData [06:50:58]SAM_PROTO_SignData [06:50:58]wFMCommunicate request_size=4 [06:50:58]MH_SAM_APDU [06:50:58]CAPDU: 80 0D 01 02 [06:50:58]Write to MH i2c: E2 08 00 29 09 80 0D 01 02 00 00 00 00 AB [06:50:58]Write i2c OK [06:50:58]MH_I2C_Read... [06:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:50:58]Read from MH i2c: E2 [06:50:58]MH_I2C_Read... [06:50:58]Read from MH i2c: E2 03 00 [06:50:58]MH_I2C_Read... [06:50:58]Read from MH i2c: E2 03 00 29 09 00 90 00 A6 [06:50:58]RAPDU: 90 00 [06:50:58]wFMCommunicate OK [06:50:58]wFMCommunicate request_size=255 [06:50:58]MH_SAM_APDU [06:50:58]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 7C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 [06:50:58]Write to MH i2c: E2 02 01 2A 09 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 7C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 00 00 33 [06:50:58]Write i2c OK [06:50:58]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 03 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 03 00 2A 09 00 90 00 A7 [06:50:59]RAPDU: 90 00 [06:50:59]wFMCommunicate OK [06:50:59]wFMCommunicate request_size=45 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 0D 02 02 28 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B6 01 00 35 04 06 00 83 BD D5 A9 B6 9A [06:50:59]Write to MH i2c: E2 30 00 2B 09 80 0D 02 02 28 00 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B6 01 00 35 04 06 00 83 BD D5 A9 B6 9A 00 00 C7 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 03 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 03 00 2B 09 00 90 00 A8 [06:50:59]RAPDU: 90 00 [06:50:59]wFMCommunicate OK [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 0D 03 02 [06:50:59]Write to MH i2c: E2 08 00 2C 09 80 0D 03 02 00 00 00 00 B0 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]OFD Sender: No OFD packet to send [06:50:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 0B 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 0B 00 2C 09 00 9E 4B 20 FE 55 8C E0 57 90 00 D0 [06:50:59]RAPDU: 9E 4B 20 FE 55 8C E0 57 90 00 [06:50:59]wFMCommunicate OK [06:50:59]SAM_PROTO_SignData done [06:50:59]FM_MakeSignedData done [06:50:59]CreateOFDProtocolMessage [06:50:59]wFMCommunicate request_size=4 [06:50:59]MH_SAM_APDU [06:50:59]CAPDU: 80 11 00 00 [06:50:59]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:50:59]Read from MH i2c: E2 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 17 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 01 [06:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:50:59]wFMCommunicate OK [06:50:59]CreateOFDProtocolMessage done [06:50:59]OFDSenderStorePacket 112128 [06:50:59]StoreOFDPacket docnum=112128 [06:50:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 32 01 00 00 24 05 2A 01 3A A5 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 7C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B6 01 00 35 04 06 00 83 BD D5 A9 B6 9A 9E 4B 20 FE 55 8C E0 57 [06:50:59]CheckFolder [06:50:59]dirname=/storage/ofd_packets [06:50:59]CheckFolder done [06:50:59]ProducePacketName [06:50:59]name=ofd_packets/00112128 [06:50:59]NVStorageSaveData ofd_packets/00112128 [06:50:59]File name is /storage/ofd_packets/00112128 [06:50:59]Write 336 bytes [06:50:59]NVStorageSaveData done [06:50:59]OFDSenderStorePacket done [06:50:59]KKMCreateOFDPacket done [06:50:59]NVStorageSaveData kkm_last_timestamp [06:50:59]File name is /storage/kkm_last_timestamp [06:50:59]Write 4 bytes [06:50:59]NVStorageSaveData done [06:50:59]ExternCall_PrintAddStr [06:50:59]wPrintStart [06:50:59]Write to MH i2c: 01 00 00 2E 09 37 [06:50:59]Write i2c OK [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: 01 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: 01 07 00 [06:50:59]MH_I2C_Read... [06:50:59]Read from MH i2c: 01 07 00 2E 09 00 00 00 00 00 FF 0F 4C [06:50:59]RasterBufferAndPrint [06:50:59]line Счет N : (3)10403 [06:50:59]line ИНН: 02508201610067 [06:50:59]line Контрольно-Кассовый Чек [06:50:59]line ПРОДАЖА [06:50:59]line Товар: 4700001060077 [06:50:59]line Коньяк КВ Кыргызстан 0,2л [06:50:59]line 1.000 * 400.00 [06:50:59]line = 400.00 [06:50:59]line НДС 12% НСП 1% [06:50:59]line > о реализуемом товаре [06:50:59]line ИТОГО: 400.00 [06:50:59]line НСП 1% : 3.54 [06:50:59]line НДС 12% : 42.48 [06:50:59]line Наличными: 400.00 [06:50:59]line Безнал.: 0.00 [06:50:59]line Место: АЗС № 47 "Партнер Нефть" [06:50:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:50:59]line СНО: Общий режим [06:50:59]line Чек 27 14.04.2024 06:51 [06:50:59]line Смена: 357 ФФД: 1.0 [06:50:59]line ЗНМ: 0300000138 [06:50:59]line РНМ: 0000000000094237 [06:50:59]line Версия ККМ: 001 [06:50:59]line ФМ: 0000000000875019 [06:50:59]line ФД: 112128 [06:50:59]line ФПД: 144851356726938 [06:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T065100&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112128&fm=144851356726938&tin=02508201610067®Number=0000000000094237&sum=40000 [06:50:59]line 0 [06:50:59]OFD Sender: Processing packet 112128 [packets to send 71, broken 70] [06:50:59]ProducePacketName [06:50:59]name=ofd_packets/00112128 [06:50:59]OFD Sender: To server: pG, [06:50:59]CommunicateWithHost lk.salyk.kg:30040 [06:50:59]ConnectInit lk.salyk.kg [06:50:59]written 0, free lines is 4095 [06:50:59]Connected sock=10 [06:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 32 01 00 00 24 05 2A 01 3A A5 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 30 37 37 06 04 2C 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 9A D0 92 20 D0 9A D1 8B D1 80 D0 B3 D1 8B D0 B7 D1 81 D1 82 D0 B0 D0 BD 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 9C 00 00 00 00 13 04 06 00 40 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 D4 7C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B6 01 00 35 04 06 00 83 BD D5 A9 B6 9A 9E 4B 20 FE 55 8C E0 57 [06:51:00]Write to MH i2c: 01 00 00 56 09 5F [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: 01 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: 01 07 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: 01 07 00 56 09 00 00 00 00 00 0E 0D 81 [06:51:00]RasterBufferAndPrint [06:51:00]line [06:51:00]line [06:51:00]line [06:51:00]line [06:51:00]line [06:51:00]written 0, free lines is 3349 [06:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FB CF 47 00 B9 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B6 01 00 F4 03 04 00 60 24 1B 66 B6 04 01 00 00 F5 4E 30 EB 8D 17 B5 9F [06:51:00]CommunicateWithHost err = 0 [06:51:00]CheckOFDResponse [06:51:00]1017 (14) - 77093643461234 [06:51:00]1041 (16) - 0000000000875019 [06:51:00]1040 (4) - 112128 [06:51:00]1012 (4) - 14.04.2024 00:33 [06:51:00]1206 (1) - 0 [06:51:00]OFD Sender: Remove packet 112128 [06:51:00]ProducePacketName [06:51:00]name=ofd_packets/00112128 [06:51:00]NVStorageDeleteData [06:51:00]MH_Cut [06:51:00]Write to MH i2c: D1 01 00 5D 09 01 38 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: D1 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: D1 01 00 [06:51:00]MH_I2C_Read... [06:51:00]Read from MH i2c: D1 01 00 5D 09 00 37 [06:51:00]Write to MH i2c: 01 00 00 5E 09 67 [06:51:00]Write i2c OK [06:51:00]MH_I2C_Read... [06:51:00]OFD Sender: No OFD packet to send [06:51:00]*** Cut start [06:51:00]*** Partial cut [06:51:00]*** CUTSNS_PIN = 1 [06:51:00]*** CUTSNS_PIN = 0 [06:51:01]*** Brake cut motor [06:51:01]Read from MH i2c: 01 [06:51:01]MH_I2C_Read... [06:51:01]*** Stop cut motor [06:51:01]*** Cut end [06:51:01]Read from MH i2c: 01 07 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: 01 07 00 5E 09 00 00 00 00 00 FF 0F 7C [06:51:01]process_action close_receipt done [06:51:01]requested_data is exist [06:51:01]produce_requested_data [06:51:01]requested_item fm.sn is exist - process it [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 11 00 00 [06:51:01]Write to MH i2c: E2 08 00 5F 09 80 11 00 00 00 00 00 00 E2 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 17 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 17 00 5F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 33 [06:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:51:01]wFMCommunicate OK [06:51:01]requested_item fd.num is exist - process it [06:51:01]SAM_PROTO_GetFieldsCounters [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 13 00 00 [06:51:01]Write to MH i2c: E2 08 00 60 09 80 13 00 00 00 00 00 00 E5 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 62 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 62 00 60 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 00 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [06:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 00 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:01]wFMCommunicate OK [06:51:01]SAM_PROTO_GetFieldsCounters done [06:51:01]requested_item shift.num is exist - process it [06:51:01]requested_item shift.opened is exist - process it [06:51:01]req_shift_opened [06:51:01]FM_GetShiftState [06:51:01]SAM_PROTO_GetShiftState [06:51:01]wFMCommunicate request_size=4 [06:51:01]MH_SAM_APDU [06:51:01]CAPDU: 80 13 01 00 [06:51:01]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [06:51:01]Write i2c OK [06:51:01]MH_I2C_Read... [06:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:01]Read from MH i2c: E2 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 0E 00 [06:51:01]MH_I2C_Read... [06:51:01]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7F [06:51:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:51:01]wFMCommunicate OK [06:51:01]SAM_PROTO_GetShiftState done [06:51:01]FM_GetShiftState done [06:51:01]req_shift_opened done [06:51:01]requested_item shift.open_date is exist - process it [06:51:01]req_shift_open_date [06:51:01]req_shift_open_date done [06:51:01]produce_requested_data done [06:51:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112128,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:51:01]process_action_free close_receipt [06:51:01]json_value_free [06:51:01]json_value_free done [06:51:01]process_json_proto returns [06:51:01]Send response to host [06:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112128,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:51:01]free response buf [06:51:01]execute_script done [06:51:01]execute_script returns [06:51:01]free content buf [06:51:01]Sock 8.Close socket [06:51:01]Sock 8.Thread stoped [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:21]accept exits with 9 [06:53:21]New connection [06:53:21]New thread 3067358564 created [06:53:21]Thread 3067501924 joined [06:53:21]Waiting for new connection... [06:53:21] Sock 9.Parse request [06:53:21]Sock 9.Check first char [06:53:21]Sock 9.First char is OK [06:53:21]request: POST /json_proto HTTP/1.0 [06:53:21]Method: POST [06:53:21]URL: /json_proto [06:53:21]Method is POST - this is cgi request [06:53:21]url: /json_proto [06:53:21]query_string will be loaded in cgi processing [06:53:21]execute_cgi json_proto POST (null) [06:53:21]execute_cgi path=json_proto method=POST [06:53:21]POST find Content-Length [06:53:21]Host: 172.17.96.197:8080 [06:53:21]Content-Length: 818 [06:53:21]Content-Type: application/json [06:53:21] [06:53:21]POST finish read [06:53:21]Found Content-Length = 818 [06:53:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48454", "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.30, "quantity" : 15.560, "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" ] } } [06:53:21]execute_script... [06:53:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48454", "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.30, "quantity" : 15.560, "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" ] } } [06:53:21]POST & json_proto [06:53:21]process_json_proto [06:53:21]json parsed OK: [06:53:21]protocol is kg_v1.0 [06:53:21]action value=close_receipt [06:53:21]process_action close_receipt [06:53:21]cmd_close_receipt [06:53:21]MH_GetDate [06:53:21]Write to MH i2c: F0 00 00 62 09 5A [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: F0 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: F0 09 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: F0 09 00 62 09 00 63 7D 1B 66 E0 85 7F 64 0C [06:53:21]GetLastDocTimeStamp 1713077460 [06:53:21]current date 1713077603 [06:53:21]FM_GetShiftState [06:53:21]SAM_PROTO_GetShiftState [06:53:21]wFMCommunicate request_size=4 [06:53:21]MH_SAM_APDU [06:53:21]CAPDU: 80 13 01 00 [06:53:21]Write to MH i2c: E2 08 00 63 09 80 13 01 00 00 00 00 00 E9 [06:53:21]Write i2c OK [06:53:21]MH_I2C_Read... [06:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:21]Read from MH i2c: E2 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 0E 00 [06:53:21]MH_I2C_Read... [06:53:21]Read from MH i2c: E2 0E 00 63 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 81 [06:53:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:53:21]wFMCommunicate OK [06:53:21]SAM_PROTO_GetShiftState done [06:53:21]FM_GetShiftState done [06:53:21]opened in 1713054696 [06:53:21]opened+sec_in_day 1713141096 [06:53:21]quantity*price = 100050 [06:53:21]sum+1 = 100052 [06:53:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 28 14.04.2024 06:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112129 ФПД: 278789540515646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T065323&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112129&fm=278789540515646&tin=02508201610067®Number=0000000000094237&sum=100051 [06:53:22]StoreToDocumentArchive [06:53:22]shift 357 fd 112129 [06:53:22]save to /storage/0357/doc_00112129 [06:53:22]save last doc name /storage/0357/doc_00112129 to /storage/kkm_last_doc_name [06:53:22]save OK [06:53:22]Clear old archive folders... [06:53:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:53:22]tlvbuf is 019BFE20 [06:53:22]SAM_PROTO_ClearQueue [06:53:22]wFMCommunicate request_size=4 [06:53:22]MH_SAM_APDU [06:53:22]CAPDU: 80 09 00 00 [06:53:22]Write to MH i2c: E2 08 00 70 09 80 09 00 00 00 00 00 00 EB [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:53:22]Read from MH i2c: E2 03 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [06:53:22]RAPDU: 90 00 [06:53:22]wFMCommunicate OK [06:53:22]SAM_PROTO_ClearQueue done [06:53:22]KKMCreateOFDPacket [06:53:22]OFDProtocolAddRootSTLVToBuf [06:53:22]FM_MakeSignedData [06:53:22]FM_MakeSignedData [06:53:22]SAM_PROTO_SignData [06:53:22]wFMCommunicate request_size=4 [06:53:22]MH_SAM_APDU [06:53:22]CAPDU: 80 0D 01 02 [06:53:22]Write to MH i2c: E2 08 00 71 09 80 0D 01 02 00 00 00 00 F3 [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [06:53:22]RAPDU: 90 00 [06:53:22]wFMCommunicate OK [06:53:22]wFMCommunicate request_size=255 [06:53:22]MH_SAM_APDU [06:53: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 00 00 00 F4 03 04 00 63 7D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B6 01 00 35 04 06 00 FD [06:53:22]Write to MH i2c: E2 02 01 72 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 00 00 00 F4 03 04 00 63 7D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B6 01 00 35 04 06 00 FD 00 00 FE [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [06:53:22]RAPDU: 90 00 [06:53:22]wFMCommunicate OK [06:53:22]wFMCommunicate request_size=10 [06:53:22]MH_SAM_APDU [06:53:22]CAPDU: 80 0D 02 02 05 8E BF 87 8F 3E [06:53:22]Write to MH i2c: E2 0D 00 73 09 80 0D 02 02 05 00 8E BF 87 8F 3E 00 00 A1 [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 03 00 73 09 00 90 00 F0 [06:53:22]RAPDU: 90 00 [06:53:22]wFMCommunicate OK [06:53:22]wFMCommunicate request_size=4 [06:53:22]MH_SAM_APDU [06:53:22]CAPDU: 80 0D 03 02 [06:53:22]Write to MH i2c: E2 08 00 74 09 80 0D 03 02 00 00 00 00 F8 [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 0B 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 0B 00 74 09 00 BA D1 D3 3D 13 2D 80 77 90 00 CB [06:53:22]RAPDU: BA D1 D3 3D 13 2D 80 77 90 00 [06:53:22]wFMCommunicate OK [06:53:22]SAM_PROTO_SignData done [06:53:22]FM_MakeSignedData done [06:53:22]CreateOFDProtocolMessage [06:53:22]wFMCommunicate request_size=4 [06:53:22]MH_SAM_APDU [06:53:22]CAPDU: 80 11 00 00 [06:53:22]Write to MH i2c: E2 08 00 75 09 80 11 00 00 00 00 00 00 F8 [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:22]Read from MH i2c: E2 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 17 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: E2 17 00 75 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 49 [06:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:53:22]wFMCommunicate OK [06:53:22]CreateOFDProtocolMessage done [06:53:22]OFDSenderStorePacket 112129 [06:53:22]StoreOFDPacket docnum=112129 [06:53:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 06 CB 07 01 B9 C6 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 00 00 00 F4 03 04 00 63 7D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B6 01 00 35 04 06 00 FD 8E BF 87 8F 3E BA D1 D3 3D 13 2D 80 77 [06:53:22]CheckFolder [06:53:22]dirname=/storage/ofd_packets [06:53:22]CheckFolder done [06:53:22]ProducePacketName [06:53:22]name=ofd_packets/00112129 [06:53:22]NVStorageSaveData ofd_packets/00112129 [06:53:22]File name is /storage/ofd_packets/00112129 [06:53:22]Write 301 bytes [06:53:22]NVStorageSaveData done [06:53:22]OFDSenderStorePacket done [06:53:22]KKMCreateOFDPacket done [06:53:22]NVStorageSaveData kkm_last_timestamp [06:53:22]File name is /storage/kkm_last_timestamp [06:53:22]Write 4 bytes [06:53:22]NVStorageSaveData done [06:53:22]ExternCall_PrintAddStr [06:53:22]wPrintStart [06:53:22]Write to MH i2c: 01 00 00 76 09 7F [06:53:22]Write i2c OK [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 07 00 [06:53:22]MH_I2C_Read... [06:53:22]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 FF 0F 94 [06:53:22]RasterBufferAndPrint [06:53:22]line Счет N : (1)48454 [06:53:22]line ИНН: 02508201610067 [06:53:22]line Контрольно-Кассовый Чек [06:53:22]line ПРОДАЖА [06:53:22]line ТРК (МРК, ГНК) : 42 [06:53:22]line Товар: 2710124130 [06:53:22]line Аи-92-К-5 [06:53:22]line 15.560 * 64.30 [06:53:22]line = 1000.51 [06:53:22]line НДС 12% НСП 1% [06:53:22]line > о реализуемом товаре [06:53:22]line ИТОГО: 1000.51 [06:53:22]line НСП 1% : 8.85 [06:53:22]line НДС 12% : 106.25 [06:53:22]line Наличными: 0.00 [06:53:22]line Безнал.: 1000.51 [06:53:22]line Место: АЗС № 47 "Партнер Нефть" [06:53:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [06:53:22]line СНО: Общий режим [06:53:22]line Чек 28 14.04.2024 06:53 [06:53:22]line Смена: 357 ФФД: 1.0 [06:53:22]line ЗНМ: 0300000138 [06:53:22]line РНМ: 0000000000094237 [06:53:22]line Версия ККМ: 001 [06:53:22]line Платежная система: Бакай Банк [06:53:22]line ФМ: 0000000000875019 [06:53:22]line ФД: 112129 [06:53:22]line ФПД: 278789540515646 [06:53:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T065323&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112129&fm=278789540515646&tin=02508201610067®Number=0000000000094237&sum=100051 [06:53:23]written 0, free lines is 4095 [06:53:23]OFD Sender: Processing packet 112129 [packets to send 71, broken 70] [06:53:23]ProducePacketName [06:53:23]name=ofd_packets/00112129 [06:53:23]OFD Sender: To server: pG, [06:53:23]CommunicateWithHost lk.salyk.kg:30040 [06:53:23]ConnectInit lk.salyk.kg [06:53:23]Connected sock=10 [06:53:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 06 CB 07 01 B9 C6 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 00 00 00 F4 03 04 00 63 7D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B6 01 00 35 04 06 00 FD 8E BF 87 8F 3E BA D1 D3 3D 13 2D 80 77 [06:53:23]Write to MH i2c: 01 00 00 A0 09 A9 [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: 01 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: 01 07 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 ED 0C A9 [06:53:23]RasterBufferAndPrint [06:53:23]line [06:53:23]line [06:53:23]line [06:53:23]line [06:53:23]line [06:53:23]written 0, free lines is 3317 [06:53:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3D 60 47 00 4B 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B6 01 00 F4 03 04 00 EF 24 1B 66 B6 04 01 00 00 C9 18 6E B9 FE 0C 63 21 [06:53:23]CommunicateWithHost err = 0 [06:53:23]CheckOFDResponse [06:53:23]1017 (14) - 77093643461234 [06:53:23]1041 (16) - 0000000000875019 [06:53:23]1040 (4) - 112129 [06:53:23]1012 (4) - 14.04.2024 00:35 [06:53:23]1206 (1) - 0 [06:53:23]OFD Sender: Remove packet 112129 [06:53:23]ProducePacketName [06:53:23]name=ofd_packets/00112129 [06:53:23]NVStorageDeleteData [06:53:23]MH_Cut [06:53:23]Write to MH i2c: D1 01 00 A7 09 01 82 [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: D1 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: D1 01 00 [06:53:23]MH_I2C_Read... [06:53:23]Read from MH i2c: D1 01 00 A7 09 00 81 [06:53:23]Write to MH i2c: 01 00 00 A8 09 B1 [06:53:23]Write i2c OK [06:53:23]MH_I2C_Read... [06:53:24]OFD Sender: No OFD packet to send [06:53:24]*** Cut start [06:53:24]*** Partial cut [06:53:24]*** CUTSNS_PIN = 1 [06:53:24]*** CUTSNS_PIN = 0 [06:53:24]*** Brake cut motor [06:53:25]Read from MH i2c: 01 [06:53:25]MH_I2C_Read... [06:53:25]*** Stop cut motor [06:53:25]*** Cut end [06:53:25]Read from MH i2c: 01 07 00 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [06:53:25]process_action close_receipt done [06:53:25]requested_data is exist [06:53:25]produce_requested_data [06:53:25]requested_item fm.sn is exist - process it [06:53:25]wFMCommunicate request_size=4 [06:53:25]MH_SAM_APDU [06:53:25]CAPDU: 80 11 00 00 [06:53:25]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [06:53:25]Write i2c OK [06:53:25]MH_I2C_Read... [06:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:53:25]Read from MH i2c: E2 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 17 00 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7D [06:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [06:53:25]wFMCommunicate OK [06:53:25]requested_item fd.num is exist - process it [06:53:25]SAM_PROTO_GetFieldsCounters [06:53:25]wFMCommunicate request_size=4 [06:53:25]MH_SAM_APDU [06:53:25]CAPDU: 80 13 00 00 [06:53:25]Write to MH i2c: E2 08 00 AA 09 80 13 00 00 00 00 00 00 2F [06:53:25]Write i2c OK [06:53:25]MH_I2C_Read... [06:53:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:53:25]Read from MH i2c: E2 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 62 00 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 62 00 AA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 01 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [06:53:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 01 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:53:25]wFMCommunicate OK [06:53:25]SAM_PROTO_GetFieldsCounters done [06:53:25]requested_item shift.num is exist - process it [06:53:25]requested_item shift.opened is exist - process it [06:53:25]req_shift_opened [06:53:25]FM_GetShiftState [06:53:25]SAM_PROTO_GetShiftState [06:53:25]wFMCommunicate request_size=4 [06:53:25]MH_SAM_APDU [06:53:25]CAPDU: 80 13 01 00 [06:53:25]Write to MH i2c: E2 08 00 AB 09 80 13 01 00 00 00 00 00 31 [06:53:25]Write i2c OK [06:53:25]MH_I2C_Read... [06:53:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:53:25]Read from MH i2c: E2 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 0E 00 [06:53:25]MH_I2C_Read... [06:53:25]Read from MH i2c: E2 0E 00 AB 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C9 [06:53:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [06:53:25]wFMCommunicate OK [06:53:25]SAM_PROTO_GetShiftState done [06:53:25]FM_GetShiftState done [06:53:25]req_shift_opened done [06:53:25]requested_item shift.open_date is exist - process it [06:53:25]req_shift_open_date [06:53:25]req_shift_open_date done [06:53:25]produce_requested_data done [06:53:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112129,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [06:53:25]process_action_free close_receipt [06:53:25]json_value_free [06:53:25]json_value_free done [06:53:25]process_json_proto returns [06:53:25]Send response to host [06:53:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112129,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [06:53:25]free response buf [06:53:25]execute_script done [06:53:25]execute_script returns [06:53:25]free content buf [06:53:25]Sock 9.Close socket [06:53:25]Sock 9.Thread stoped [06:53:29]OFD Sender: No OFD packet to send [06:53:34]OFD Sender: No OFD packet to send [06:53:39]OFD Sender: No OFD packet to send [06:53:44]OFD Sender: No OFD packet to send [06:53:49]OFD Sender: No OFD packet to send [06:53:54]OFD Sender: No OFD packet to send [06:53:59]OFD Sender: No OFD packet to send [06:54:04]OFD Sender: No OFD packet to send [06:54:09]OFD Sender: No OFD packet to send [06:54:14]OFD Sender: No OFD packet to send [06:54:19]OFD Sender: No OFD packet to send [06:54:24]OFD Sender: No OFD packet to send [06:54:29]OFD Sender: No OFD packet to send [06:54:34]OFD Sender: No OFD packet to send [06:54:39]OFD Sender: No OFD packet to send [06:54:44]OFD Sender: No OFD packet to send [06:54:49]OFD Sender: No OFD packet to send [06:54:54]OFD Sender: No OFD packet to send [06:54:59]OFD Sender: No OFD packet to send [06:55:04]OFD Sender: No OFD packet to send [06:55:09]OFD Sender: No OFD packet to send [06:55:14]OFD Sender: No OFD packet to send [06:55:19]OFD Sender: No OFD packet to send [06:55:24]OFD Sender: No OFD packet to send [06:55:29]OFD Sender: No OFD packet to send [06:55:34]OFD Sender: No OFD packet to send [06:55:39]OFD Sender: No OFD packet to send [06:55:44]OFD Sender: No OFD packet to send [06:55:49]OFD Sender: No OFD packet to send [06:55:54]OFD Sender: No OFD packet to send [06:55:59]OFD Sender: No OFD packet to send [06:56:04]OFD Sender: No OFD packet to send [06:56:09]OFD Sender: No OFD packet to send [06:56:14]OFD Sender: No OFD packet to send [06:56:19]OFD Sender: No OFD packet to send [06:56:24]OFD Sender: No OFD packet to send [06:56:29]OFD Sender: No OFD packet to send [06:56:34]OFD Sender: No OFD packet to send [06:56:39]OFD Sender: No OFD packet to send [06:56:44]OFD Sender: No OFD packet to send [06:56:49]OFD Sender: No OFD packet to send [06:56:54]OFD Sender: No OFD packet to send [06:56:59]OFD Sender: No OFD packet to send [06:57:04]OFD Sender: No OFD packet to send [06:57:09]OFD Sender: No OFD packet to send [06:57:14]OFD Sender: No OFD packet to send [06:57:19]OFD Sender: No OFD packet to send [06:57:24]OFD Sender: No OFD packet to send [06:57:29]OFD Sender: No OFD packet to send [06:57:34]OFD Sender: No OFD packet to send [06:57:39]OFD Sender: No OFD packet to send [06:57:44]OFD Sender: No OFD packet to send [06:57:49]OFD Sender: No OFD packet to send [06:57:54]OFD Sender: No OFD packet to send [06:57:59]OFD Sender: No OFD packet to send [06:58:04]OFD Sender: No OFD packet to send [06:58:09]OFD Sender: No OFD packet to send [06:58:14]OFD Sender: No OFD packet to send [06:58:19]OFD Sender: No OFD packet to send [06:58:24]OFD Sender: No OFD packet to send [06:58:29]OFD Sender: No OFD packet to send [06:58:34]OFD Sender: No OFD packet to send [06:58:39]OFD Sender: No OFD packet to send [06:58:44]OFD Sender: No OFD packet to send [06:58:49]OFD Sender: No OFD packet to send [06:58:54]OFD Sender: No OFD packet to send [06:58:59]OFD Sender: No OFD packet to send [06:59:04]OFD Sender: No OFD packet to send [06:59:09]OFD Sender: No OFD packet to send [06:59:14]OFD Sender: No OFD packet to send [06:59:19]OFD Sender: No OFD packet to send [06:59:24]OFD Sender: No OFD packet to send [06:59:29]OFD Sender: No OFD packet to send [06:59:34]OFD Sender: No OFD packet to send [06:59:39]OFD Sender: No OFD packet to send [06:59:44]OFD Sender: No OFD packet to send [06:59:49]OFD Sender: No OFD packet to send [06:59:54]OFD Sender: No OFD packet to send [06:59:59]OFD Sender: No OFD packet to send [07:00:04]OFD Sender: No OFD packet to send [07:00:09]OFD Sender: No OFD packet to send [07:00:14]OFD Sender: No OFD packet to send [07:00:19]OFD Sender: No OFD packet to send [07:00:24]OFD Sender: No OFD packet to send [07:00:29]OFD Sender: No OFD packet to send [07:00:34]OFD Sender: No OFD packet to send [07:00:39]OFD Sender: No OFD packet to send [07:00:44]OFD Sender: No OFD packet to send [07:00:49]OFD Sender: No OFD packet to send [07:00:54]OFD Sender: No OFD packet to send [07:00:59]OFD Sender: No OFD packet to send [07:01:04]OFD Sender: No OFD packet to send [07:01:09]OFD Sender: No OFD packet to send [07:01:14]OFD Sender: No OFD packet to send [07:01:19]OFD Sender: No OFD packet to send [07:01:24]OFD Sender: No OFD packet to send [07:01:29]OFD Sender: No OFD packet to send [07:01:34]OFD Sender: No OFD packet to send [07:01:39]OFD Sender: No OFD packet to send [07:01:44]OFD Sender: No OFD packet to send [07:01:49]OFD Sender: No OFD packet to send [07:01:54]OFD Sender: No OFD packet to send [07:01:59]OFD Sender: No OFD packet to send [07:02:04]OFD Sender: No OFD packet to send [07:02:09]OFD Sender: No OFD packet to send [07:02:14]OFD Sender: No OFD packet to send [07:02:19]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:45]accept exits with 8 [07:04:45]New connection [07:04:45]New thread 3067501924 created [07:04:45]Thread 3067358564 joined [07:04:45]Waiting for new connection... [07:04:45] Sock 8.Parse request [07:04:45]Sock 8.Check first char [07:04:45]Sock 8.First char is OK [07:04:45]request: POST /json_proto HTTP/1.0 [07:04:45]Method: POST [07:04:45]URL: /json_proto [07:04:45]Method is POST - this is cgi request [07:04:45]url: /json_proto [07:04:45]query_string will be loaded in cgi processing [07:04:45]execute_cgi json_proto POST (null) [07:04:45]execute_cgi path=json_proto method=POST [07:04:45]POST find Content-Length [07:04:45]Host: 172.17.96.197:8080 [07:04:45]Content-Length: 681 [07:04:45]Content-Type: application/json [07:04:45] [07:04:45]POST finish read [07:04:45]Found Content-Length = 681 [07:04:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48455", "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.30, "quantity" : 15.560, "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" ] } } [07:04:45]execute_script... [07:04: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)48455", "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.30, "quantity" : 15.560, "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" ] } } [07:04:45]POST & json_proto [07:04:45]process_json_proto [07:04:45]json parsed OK: [07:04:45]protocol is kg_v1.0 [07:04:45]action value=close_receipt [07:04:45]process_action close_receipt [07:04:45]cmd_close_receipt [07:04:45]MH_GetDate [07:04:45]Write to MH i2c: F0 00 00 AC 09 A4 [07:04:45]Write i2c OK [07:04:45]MH_I2C_Read... [07:04:45]Read from MH i2c: F0 [07:04:45]MH_I2C_Read... [07:04:45]Read from MH i2c: F0 09 00 [07:04:45]MH_I2C_Read... [07:04:45]Read from MH i2c: F0 09 00 AC 09 00 0F 80 1B 66 E0 85 7F 64 05 [07:04:45]GetLastDocTimeStamp 1713077603 [07:04:45]current date 1713078287 [07:04:45]FM_GetShiftState [07:04:45]SAM_PROTO_GetShiftState [07:04:45]wFMCommunicate request_size=4 [07:04:45]MH_SAM_APDU [07:04:45]CAPDU: 80 13 01 00 [07:04:45]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [07:04:45]Write i2c OK [07:04:45]MH_I2C_Read... [07:04:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:45]Read from MH i2c: E2 [07:04:45]MH_I2C_Read... [07:04:45]Read from MH i2c: E2 0E 00 [07:04:45]MH_I2C_Read... [07:04:45]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [07:04:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:04:45]wFMCommunicate OK [07:04:45]SAM_PROTO_GetShiftState done [07:04:45]FM_GetShiftState done [07:04:45]opened in 1713054696 [07:04:45]opened+sec_in_day 1713141096 [07:04:45]quantity*price = 100050 [07:04:45]sum+1 = 100052 [07:04:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 29 14.04.2024 07:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112130 ФПД: 27023946866117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070447&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112130&fm=27023946866117&tin=02508201610067®Number=0000000000094237&sum=100000 [07:04:46]StoreToDocumentArchive [07:04:46]shift 357 fd 112130 [07:04:46]save to /storage/0357/doc_00112130 [07:04:46]save last doc name /storage/0357/doc_00112130 to /storage/kkm_last_doc_name [07:04:46]save OK [07:04:46]Clear old archive folders... [07:04:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:04:46]tlvbuf is 019A2CA0 [07:04:46]SAM_PROTO_ClearQueue [07:04:46]wFMCommunicate request_size=4 [07:04:46]MH_SAM_APDU [07:04:46]CAPDU: 80 09 00 00 [07:04:46]Write to MH i2c: E2 08 00 BA 09 80 09 00 00 00 00 00 00 35 [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:46]Read from MH i2c: E2 03 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [07:04:46]RAPDU: 90 00 [07:04:46]wFMCommunicate OK [07:04:46]SAM_PROTO_ClearQueue done [07:04:46]KKMCreateOFDPacket [07:04:46]OFDProtocolAddRootSTLVToBuf [07:04:46]FM_MakeSignedData [07:04:46]FM_MakeSignedData [07:04:46]SAM_PROTO_SignData [07:04:46]wFMCommunicate request_size=4 [07:04:46]MH_SAM_APDU [07:04:46]CAPDU: 80 0D 01 02 [07:04:46]Write to MH i2c: E2 08 00 BB 09 80 0D 01 02 00 00 00 00 3D [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [07:04:46]RAPDU: 90 00 [07:04:46]wFMCommunicate OK [07:04:46]wFMCommunicate request_size=255 [07:04:46]MH_SAM_APDU [07:04: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1D 00 00 00 F4 03 04 00 0F 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B6 01 00 35 04 06 00 18 [07:04:46]Write to MH i2c: E2 02 01 BC 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1D 00 00 00 F4 03 04 00 0F 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B6 01 00 35 04 06 00 18 00 00 AE [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [07:04:46]RAPDU: 90 00 [07:04:46]wFMCommunicate OK [07:04:46]wFMCommunicate request_size=10 [07:04:46]MH_SAM_APDU [07:04:46]CAPDU: 80 0D 02 02 05 94 00 C0 DD C5 [07:04:46]Write to MH i2c: E2 0D 00 BD 09 80 0D 02 02 05 00 94 00 C0 DD C5 00 00 40 [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [07:04:46]RAPDU: 90 00 [07:04:46]wFMCommunicate OK [07:04:46]wFMCommunicate request_size=4 [07:04:46]MH_SAM_APDU [07:04:46]CAPDU: 80 0D 03 02 [07:04:46]Write to MH i2c: E2 08 00 BE 09 80 0D 03 02 00 00 00 00 42 [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 0B 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 0B 00 BE 09 00 3B D5 AF D6 B8 E0 9B CA 90 00 D5 [07:04:46]RAPDU: 3B D5 AF D6 B8 E0 9B CA 90 00 [07:04:46]wFMCommunicate OK [07:04:46]SAM_PROTO_SignData done [07:04:46]FM_MakeSignedData done [07:04:46]CreateOFDProtocolMessage [07:04:46]wFMCommunicate request_size=4 [07:04:46]MH_SAM_APDU [07:04:46]CAPDU: 80 11 00 00 [07:04:46]Write to MH i2c: E2 08 00 BF 09 80 11 00 00 00 00 00 00 42 [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:46]Read from MH i2c: E2 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 17 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: E2 17 00 BF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [07:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:04:46]wFMCommunicate OK [07:04:46]CreateOFDProtocolMessage done [07:04:46]OFDSenderStorePacket 112130 [07:04:46]StoreOFDPacket docnum=112130 [07:04:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 42 7C 07 01 C2 19 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1D 00 00 00 F4 03 04 00 0F 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B6 01 00 35 04 06 00 18 94 00 C0 DD C5 3B D5 AF D6 B8 E0 9B CA [07:04:46]CheckFolder [07:04:46]dirname=/storage/ofd_packets [07:04:46]CheckFolder done [07:04:46]ProducePacketName [07:04:46]name=ofd_packets/00112130 [07:04:46]NVStorageSaveData ofd_packets/00112130 [07:04:46]File name is /storage/ofd_packets/00112130 [07:04:46]Write 301 bytes [07:04:46]NVStorageSaveData done [07:04:46]OFDSenderStorePacket done [07:04:46]KKMCreateOFDPacket done [07:04:46]NVStorageSaveData kkm_last_timestamp [07:04:46]File name is /storage/kkm_last_timestamp [07:04:46]Write 4 bytes [07:04:46]NVStorageSaveData done [07:04:46]ExternCall_PrintAddStr [07:04:46]wPrintStart [07:04:46]Write to MH i2c: 01 00 00 C0 09 C9 [07:04:46]Write i2c OK [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: 01 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: 01 07 00 [07:04:46]MH_I2C_Read... [07:04:46]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [07:04:46]RasterBufferAndPrint [07:04:46]line Счет N : (1)48455 [07:04:46]line ИНН: 02508201610067 [07:04:46]line Контрольно-Кассовый Чек [07:04:46]line ПРОДАЖА [07:04:46]line ТРК (МРК, ГНК) : 42 [07:04:46]line Товар: 2710124130 [07:04:46]line Аи-92-К-5 [07:04:46]line 15.560 * 64.30 [07:04:46]line = 1000.51 [07:04:46]line НДС 12% НСП 1% [07:04:46]line > о реализуемом товаре [07:04:46]line ОКРУГЛЕНИЕ: -0.51 [07:04:46]line ИТОГО: 1000.00 [07:04:46]line Внесено: 1000.00 [07:04:46]line СДАЧА: 0.00 [07:04:46]line НСП 1% : 8.85 [07:04:46]line НДС 12% : 106.25 [07:04:46]line Наличными: 1000.00 [07:04:46]line Безнал.: 0.00 [07:04:46]line Место: АЗС № 47 "Партнер Нефть" [07:04:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:04:46]line СНО: Общий режим [07:04:46]line Чек 29 14.04.2024 07:04 [07:04:46]line Смена: 357 ФФД: 1.0 [07:04:46]line ЗНМ: 0300000138 [07:04:46]line РНМ: 0000000000094237 [07:04:46]line Версия ККМ: 001 [07:04:46]line ФМ: 0000000000875019 [07:04:46]line ФД: 112130 [07:04:46]line ФПД: 27023946866117 [07:04:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070447&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112130&fm=27023946866117&tin=02508201610067®Number=0000000000094237&sum=100000 [07:04:47]written 0, free lines is 4095 [07:04:47]OFD Sender: Processing packet 112130 [packets to send 71, broken 70] [07:04:47]ProducePacketName [07:04:47]name=ofd_packets/00112130 [07:04:47]OFD Sender: To server: pG, [07:04:47]CommunicateWithHost lk.salyk.kg:30040 [07:04:47]ConnectInit lk.salyk.kg [07:04:47]Connected sock=10 [07:04:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 42 7C 07 01 C2 19 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1D 00 00 00 F4 03 04 00 0F 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B6 01 00 35 04 06 00 18 94 00 C0 DD C5 3B D5 AF D6 B8 E0 9B CA [07:04:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 44 85 47 00 DE 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B6 01 00 F4 03 04 00 9B 27 1B 66 B6 04 01 00 00 69 99 CD 0A 82 55 42 13 [07:04:47]CommunicateWithHost err = 0 [07:04:47]CheckOFDResponse [07:04:47]1017 (14) - 77093643461234 [07:04:47]1041 (16) - 0000000000875019 [07:04:47]1040 (4) - 112130 [07:04:47]1012 (4) - 14.04.2024 00:47 [07:04:47]1206 (1) - 0 [07:04:47]OFD Sender: Remove packet 112130 [07:04:47]ProducePacketName [07:04:47]name=ofd_packets/00112130 [07:04:47]NVStorageDeleteData [07:04:47]Write to MH i2c: 01 00 00 EB 09 F4 [07:04:47]Write i2c OK [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: 01 [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: 01 07 00 [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: 01 07 00 EB 09 00 00 00 00 00 E4 0C EB [07:04:47]RasterBufferAndPrint [07:04:47]line [07:04:47]line [07:04:47]line [07:04:47]line [07:04:47]line [07:04:47]written 0, free lines is 3306 [07:04:47]MH_Cut [07:04:47]Write to MH i2c: D1 01 00 F2 09 01 CD [07:04:47]Write i2c OK [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: D1 [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: D1 01 00 [07:04:47]MH_I2C_Read... [07:04:47]Read from MH i2c: D1 01 00 F2 09 00 CC [07:04:47]Write to MH i2c: 01 00 00 F3 09 FC [07:04:47]Write i2c OK [07:04:47]MH_I2C_Read... [07:04:48]OFD Sender: No OFD packet to send [07:04:48]*** Cut start [07:04:48]*** Partial cut [07:04:48]*** CUTSNS_PIN = 1 [07:04:48]*** CUTSNS_PIN = 0 [07:04:48]*** Brake cut motor [07:04:48]Read from MH i2c: 01 [07:04:48]MH_I2C_Read... [07:04:49]*** Stop cut motor [07:04:49]*** Cut end [07:04:49]Read from MH i2c: 01 07 00 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: 01 07 00 F3 09 00 00 00 00 00 FF 0F 11 [07:04:49]process_action close_receipt done [07:04:49]requested_data is exist [07:04:49]produce_requested_data [07:04:49]requested_item fm.sn is exist - process it [07:04:49]wFMCommunicate request_size=4 [07:04:49]MH_SAM_APDU [07:04:49]CAPDU: 80 11 00 00 [07:04:49]Write to MH i2c: E2 08 00 F4 09 80 11 00 00 00 00 00 00 77 [07:04:49]Write i2c OK [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 [07:04:49]MH_I2C_Read... [07:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:49]Read from MH i2c: E2 17 00 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 17 00 F4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C8 [07:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:04:49]wFMCommunicate OK [07:04:49]requested_item fd.num is exist - process it [07:04:49]SAM_PROTO_GetFieldsCounters [07:04:49]wFMCommunicate request_size=4 [07:04:49]MH_SAM_APDU [07:04:49]CAPDU: 80 13 00 00 [07:04:49]Write to MH i2c: E2 08 00 F5 09 80 13 00 00 00 00 00 00 7A [07:04:49]Write i2c OK [07:04:49]MH_I2C_Read... [07:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:49]Read from MH i2c: E2 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 62 00 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 62 00 F5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 02 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [07:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 02 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:49]wFMCommunicate OK [07:04:49]SAM_PROTO_GetFieldsCounters done [07:04:49]requested_item shift.num is exist - process it [07:04:49]requested_item shift.opened is exist - process it [07:04:49]req_shift_opened [07:04:49]FM_GetShiftState [07:04:49]SAM_PROTO_GetShiftState [07:04:49]wFMCommunicate request_size=4 [07:04:49]MH_SAM_APDU [07:04:49]CAPDU: 80 13 01 00 [07:04:49]Write to MH i2c: E2 08 00 F6 09 80 13 01 00 00 00 00 00 7C [07:04:49]Write i2c OK [07:04:49]MH_I2C_Read... [07:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:49]Read from MH i2c: E2 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 0E 00 [07:04:49]MH_I2C_Read... [07:04:49]Read from MH i2c: E2 0E 00 F6 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 14 [07:04:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:04:49]wFMCommunicate OK [07:04:49]SAM_PROTO_GetShiftState done [07:04:49]FM_GetShiftState done [07:04:49]req_shift_opened done [07:04:49]requested_item shift.open_date is exist - process it [07:04:49]req_shift_open_date [07:04:49]req_shift_open_date done [07:04:49]produce_requested_data done [07:04:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112130,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:04:49]process_action_free close_receipt [07:04:49]json_value_free [07:04:49]json_value_free done [07:04:49]process_json_proto returns [07:04:49]Send response to host [07:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112130,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:04:49]free response buf [07:04:49]execute_script done [07:04:49]execute_script returns [07:04:49]free content buf [07:04:49]Sock 8.Close socket [07:04:49]Sock 8.Thread stoped [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:28]accept exits with 9 [07:06:28]New connection [07:06:28]New thread 3067358564 created [07:06:28]Thread 3067501924 joined [07:06:28]Waiting for new connection... [07:06:28] Sock 9.Parse request [07:06:28]Sock 9.Check first char [07:06:28]Sock 9.First char is OK [07:06:28]request: POST /json_proto HTTP/1.0 [07:06:28]Method: POST [07:06:28]URL: /json_proto [07:06:28]Method is POST - this is cgi request [07:06:28]url: /json_proto [07:06:28]query_string will be loaded in cgi processing [07:06:28]execute_cgi json_proto POST (null) [07:06:28]execute_cgi path=json_proto method=POST [07:06:28]POST find Content-Length [07:06:28]Host: 172.17.96.197:8080 [07:06:28]Content-Length: 738 [07:06:28]Content-Type: application/json [07:06:28] [07:06:28]POST finish read [07:06:28]Found Content-Length = 738 [07:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 112130, "base_FM": "0000000000875019", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48455", "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.30, "quantity" : 15.560, "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" ] } } [07:06:28]execute_script... [07:06:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 112130, "base_FM": "0000000000875019", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48455", "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.30, "quantity" : 15.560, "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" ] } } [07:06:28]POST & json_proto [07:06:28]process_json_proto [07:06:28]json parsed OK: [07:06:28]protocol is kg_v1.0 [07:06:28]action value=close_receipt [07:06:28]process_action close_receipt [07:06:28]cmd_close_receipt [07:06:28]MH_GetDate [07:06:28]Write to MH i2c: F0 00 00 F7 09 EF [07:06:28]Write i2c OK [07:06:28]MH_I2C_Read... [07:06:28]Read from MH i2c: F0 [07:06:28]MH_I2C_Read... [07:06:28]Read from MH i2c: F0 09 00 [07:06:28]MH_I2C_Read... [07:06:28]Read from MH i2c: F0 09 00 F7 09 00 76 80 1B 66 E0 85 7F 64 B7 [07:06:28]GetLastDocTimeStamp 1713078287 [07:06:28]current date 1713078390 [07:06:28]FM_GetShiftState [07:06:28]SAM_PROTO_GetShiftState [07:06:28]wFMCommunicate request_size=4 [07:06:28]MH_SAM_APDU [07:06:28]CAPDU: 80 13 01 00 [07:06:28]Write to MH i2c: E2 08 00 F8 09 80 13 01 00 00 00 00 00 7E [07:06:28]Write i2c OK [07:06:28]MH_I2C_Read... [07:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:28]Read from MH i2c: E2 [07:06:28]MH_I2C_Read... [07:06:28]Read from MH i2c: E2 0E 00 [07:06:28]MH_I2C_Read... [07:06:28]Read from MH i2c: E2 0E 00 F8 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 16 [07:06:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:06:28]wFMCommunicate OK [07:06:28]SAM_PROTO_GetShiftState done [07:06:28]FM_GetShiftState done [07:06:28]opened in 1713054696 [07:06:28]opened+sec_in_day 1713141096 [07:06:28]quantity*price = 100050 [07:06:28]sum+1 = 100052 [07:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 30 14.04.2024 07:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФД осн.: 112130 ФМ осн.: 0000000000875019 ФМ: 0000000000875019 ФД: 112131 ФПД: 217037477126744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070630&type=2&operation_type=1&fn_number=0000000000875019&fd_number=112131&fm=217037477126744&tin=02508201610067®Number=0000000000094237&sum=100000 [07:06:29]StoreToDocumentArchive [07:06:29]shift 357 fd 112131 [07:06:29]save to /storage/0357/doc_00112131 [07:06:29]save last doc name /storage/0357/doc_00112131 to /storage/kkm_last_doc_name [07:06:29]save OK [07:06:29]Clear old archive folders... [07:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=279 [07:06:29]tlvbuf is 019C3430 [07:06:29]SAM_PROTO_ClearQueue [07:06:29]wFMCommunicate request_size=4 [07:06:29]MH_SAM_APDU [07:06:29]CAPDU: 80 09 00 00 [07:06:29]Write to MH i2c: E2 08 00 07 0A 80 09 00 00 00 00 00 00 83 [07:06:29]Write i2c OK [07:06:29]MH_I2C_Read... [07:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:29]Read from MH i2c: E2 [07:06:29]MH_I2C_Read... [07:06:29]Read from MH i2c: E2 03 00 [07:06:29]MH_I2C_Read... [07:06:29]Read from MH i2c: E2 03 00 07 0A 00 90 00 85 [07:06:29]RAPDU: 90 00 [07:06:29]wFMCommunicate OK [07:06:29]SAM_PROTO_ClearQueue done [07:06:29]KKMCreateOFDPacket [07:06:29]OFDProtocolAddRootSTLVToBuf [07:06:29]FM_MakeSignedData [07:06:29]FM_MakeSignedData [07:06:29]SAM_PROTO_SignData [07:06:29]wFMCommunicate request_size=4 [07:06:29]MH_SAM_APDU [07:06:29]CAPDU: 80 0D 01 02 [07:06:29]Write to MH i2c: E2 08 00 08 0A 80 0D 01 02 00 00 00 00 8B [07:06:29]Write i2c OK [07:06:29]MH_I2C_Read... [07:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:29]Read from MH i2c: E2 [07:06:29]MH_I2C_Read... [07:06:29]Read from MH i2c: E2 03 00 [07:06:29]MH_I2C_Read... [07:06:29]Read from MH i2c: E2 03 00 08 0A 00 90 00 86 [07:06:29]RAPDU: 90 00 [07:06:29]wFMCommunicate OK [07:06:29]wFMCommunicate request_size=255 [07:06:29]MH_SAM_APDU [07:06:29]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1E 00 00 00 F4 03 04 00 76 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 02 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 [07:06:29]Write to MH i2c: E2 02 01 09 0A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1E 00 00 00 F4 03 04 00 76 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 02 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 00 00 AE [07:06:29]Write i2c OK [07:06:29]MH_I2C_Read... [07:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:30]Read from MH i2c: E2 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 03 00 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 03 00 09 0A 00 90 00 87 [07:06:30]RAPDU: 90 00 [07:06:30]wFMCommunicate OK [07:06:30]wFMCommunicate request_size=38 [07:06:30]MH_SAM_APDU [07:06:30]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B6 01 00 35 04 06 00 C5 64 F9 BA 22 58 [07:06:30]Write to MH i2c: E2 29 00 0A 0A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B6 01 00 35 04 06 00 C5 64 F9 BA 22 58 00 00 25 [07:06:30]Write i2c OK [07:06:30]MH_I2C_Read... [07:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:30]Read from MH i2c: E2 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 03 00 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 03 00 0A 0A 00 90 00 88 [07:06:30]RAPDU: 90 00 [07:06:30]wFMCommunicate OK [07:06:30]wFMCommunicate request_size=4 [07:06:30]MH_SAM_APDU [07:06:30]CAPDU: 80 0D 03 02 [07:06:30]Write to MH i2c: E2 08 00 0B 0A 80 0D 03 02 00 00 00 00 90 [07:06:30]Write i2c OK [07:06:30]MH_I2C_Read... [07:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:30]Read from MH i2c: E2 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 0B 00 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 0B 00 0B 0A 00 B5 01 8B B3 03 DB A4 50 90 00 57 [07:06:30]RAPDU: B5 01 8B B3 03 DB A4 50 90 00 [07:06:30]wFMCommunicate OK [07:06:30]SAM_PROTO_SignData done [07:06:30]FM_MakeSignedData done [07:06:30]CreateOFDProtocolMessage [07:06:30]wFMCommunicate request_size=4 [07:06:30]MH_SAM_APDU [07:06:30]CAPDU: 80 11 00 00 [07:06:30]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [07:06:30]Write i2c OK [07:06:30]MH_I2C_Read... [07:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:30]Read from MH i2c: E2 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 17 00 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E1 [07:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:06:30]wFMCommunicate OK [07:06:30]CreateOFDProtocolMessage done [07:06:30]OFDSenderStorePacket 112131 [07:06:30]StoreOFDPacket docnum=112131 [07:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2B 01 00 00 B4 10 23 01 EF 05 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1E 00 00 00 F4 03 04 00 76 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 02 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B6 01 00 35 04 06 00 C5 64 F9 BA 22 58 B5 01 8B B3 03 DB A4 50 [07:06:30]CheckFolder [07:06:30]dirname=/storage/ofd_packets [07:06:30]CheckFolder done [07:06:30]ProducePacketName [07:06:30]name=ofd_packets/00112131 [07:06:30]NVStorageSaveData ofd_packets/00112131 [07:06:30]File name is /storage/ofd_packets/00112131 [07:06:30]Write 329 bytes [07:06:30]NVStorageSaveData done [07:06:30]OFDSenderStorePacket done [07:06:30]KKMCreateOFDPacket done [07:06:30]NVStorageSaveData kkm_last_timestamp [07:06:30]File name is /storage/kkm_last_timestamp [07:06:30]Write 4 bytes [07:06:30]NVStorageSaveData done [07:06:30]ExternCall_PrintAddStr [07:06:30]wPrintStart [07:06:30]Write to MH i2c: 01 00 00 0D 0A 17 [07:06:30]Write i2c OK [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: 01 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: 01 07 00 [07:06:30]MH_I2C_Read... [07:06:30]Read from MH i2c: 01 07 00 0D 0A 00 00 00 00 00 FF 0F 2C [07:06:30]RasterBufferAndPrint [07:06:30]line Счет N : (1)48455 [07:06:30]line ИНН: 02508201610067 [07:06:30]line Контрольно-Кассовый Чек [07:06:30]line ВОЗВРАТ ПРОДАЖИ [07:06:30]line ТРК (МРК, ГНК) : 42 [07:06:30]line Товар: 2710124130 [07:06:30]line Аи-92-К-5 [07:06:30]line 15.560 * 64.30 [07:06:30]line = 1000.51 [07:06:30]line НДС 12% НСП 1% [07:06:30]line > о реализуемом товаре [07:06:30]line ОКРУГЛЕНИЕ: -0.51 [07:06:30]line ИТОГО: 1000.00 [07:06:30]line НСП 1% : 8.85 [07:06:30]line НДС 12% : 106.25 [07:06:30]line Наличными: 1000.00 [07:06:30]line Безнал.: 0.00 [07:06:30]line Место: АЗС № 47 "Партнер Нефть" [07:06:30]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:06:30]line СНО: Общий режим [07:06:30]line Чек 30 14.04.2024 07:06 [07:06:30]line Смена: 357 ФФД: 1.0 [07:06:30]line ЗНМ: 0300000138 [07:06:30]line РНМ: 0000000000094237 [07:06:30]line Версия ККМ: 001 [07:06:30]line ФД осн.: 112130 [07:06:30]line ФМ осн.: 0000000000875019 [07:06:30]line ФМ: 0000000000875019 [07:06:30]line ФД: 112131 [07:06:30]line ФПД: 217037477126744 [07:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070630&type=2&operation_type=1&fn_number=0000000000875019&fd_number=112131&fm=217037477126744&tin=02508201610067®Number=0000000000094237&sum=100000 [07:06:30]OFD Sender: Processing packet 112131 [packets to send 71, broken 70] [07:06:30]ProducePacketName [07:06:30]name=ofd_packets/00112131 [07:06:30]OFD Sender: To server: pG, [07:06:30]CommunicateWithHost lk.salyk.kg:30040 [07:06:30]ConnectInit lk.salyk.kg [07:06:30]written 0, free lines is 4095 [07:06:30]Connected sock=10 [07:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2B 01 00 00 B4 10 23 01 EF 05 5A 03 01 00 03 00 17 01 1E 04 01 00 02 23 04 4D 00 8A 04 0A 00 32 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1E 00 00 00 F4 03 04 00 76 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 02 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B6 01 00 35 04 06 00 C5 64 F9 BA 22 58 B5 01 8B B3 03 DB A4 50 [07:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2A CF 47 00 75 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B6 01 00 F4 03 04 00 03 28 1B 66 B6 04 01 00 00 F2 47 B1 78 F6 F2 C6 1D [07:06:31]CommunicateWithHost err = 0 [07:06:31]CheckOFDResponse [07:06:31]1017 (14) - 77093643461234 [07:06:31]1041 (16) - 0000000000875019 [07:06:31]1040 (4) - 112131 [07:06:31]1012 (4) - 14.04.2024 00:49 [07:06:31]1206 (1) - 0 [07:06:31]OFD Sender: Remove packet 112131 [07:06:31]ProducePacketName [07:06:31]name=ofd_packets/00112131 [07:06:31]NVStorageDeleteData [07:06:31]Write to MH i2c: 01 00 00 38 0A 42 [07:06:31]Write i2c OK [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: 01 [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: 01 07 00 [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 EE 0C 43 [07:06:31]RasterBufferAndPrint [07:06:31]line [07:06:31]line [07:06:31]line [07:06:31]line [07:06:31]line [07:06:31]written 0, free lines is 3317 [07:06:31]MH_Cut [07:06:31]Write to MH i2c: D1 01 00 3F 0A 01 1B [07:06:31]Write i2c OK [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: D1 [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: D1 01 00 [07:06:31]MH_I2C_Read... [07:06:31]Read from MH i2c: D1 01 00 3F 0A 00 1A [07:06:31]Write to MH i2c: 01 00 00 40 0A 4A [07:06:31]Write i2c OK [07:06:31]MH_I2C_Read... [07:06:31]OFD Sender: No OFD packet to send [07:06:31]*** Cut start [07:06:31]*** Partial cut [07:06:31]*** CUTSNS_PIN = 1 [07:06:31]*** CUTSNS_PIN = 0 [07:06:32]*** Brake cut motor [07:06:32]Read from MH i2c: 01 [07:06:32]MH_I2C_Read... [07:06:32]*** Stop cut motor [07:06:32]*** Cut end [07:06:32]Read from MH i2c: 01 07 00 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: 01 07 00 40 0A 00 00 00 00 00 FF 0F 5F [07:06:32]process_action close_receipt done [07:06:32]requested_data is exist [07:06:32]produce_requested_data [07:06:32]requested_item fm.sn is exist - process it [07:06:32]wFMCommunicate request_size=4 [07:06:32]MH_SAM_APDU [07:06:32]CAPDU: 80 11 00 00 [07:06:32]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [07:06:32]Write i2c OK [07:06:32]MH_I2C_Read... [07:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:32]Read from MH i2c: E2 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 17 00 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [07:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:06:32]wFMCommunicate OK [07:06:32]requested_item fd.num is exist - process it [07:06:32]SAM_PROTO_GetFieldsCounters [07:06:32]wFMCommunicate request_size=4 [07:06:32]MH_SAM_APDU [07:06:32]CAPDU: 80 13 00 00 [07:06:32]Write to MH i2c: E2 08 00 42 0A 80 13 00 00 00 00 00 00 C8 [07:06:32]Write i2c OK [07:06:32]MH_I2C_Read... [07:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:32]Read from MH i2c: E2 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 62 00 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 62 00 42 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 03 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [07:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 03 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:32]wFMCommunicate OK [07:06:32]SAM_PROTO_GetFieldsCounters done [07:06:32]requested_item shift.num is exist - process it [07:06:32]requested_item shift.opened is exist - process it [07:06:32]req_shift_opened [07:06:32]FM_GetShiftState [07:06:32]SAM_PROTO_GetShiftState [07:06:32]wFMCommunicate request_size=4 [07:06:32]MH_SAM_APDU [07:06:32]CAPDU: 80 13 01 00 [07:06:32]Write to MH i2c: E2 08 00 43 0A 80 13 01 00 00 00 00 00 CA [07:06:32]Write i2c OK [07:06:32]MH_I2C_Read... [07:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:32]Read from MH i2c: E2 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 0E 00 [07:06:32]MH_I2C_Read... [07:06:32]Read from MH i2c: E2 0E 00 43 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 62 [07:06:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:06:32]wFMCommunicate OK [07:06:32]SAM_PROTO_GetShiftState done [07:06:32]FM_GetShiftState done [07:06:32]req_shift_opened done [07:06:32]requested_item shift.open_date is exist - process it [07:06:32]req_shift_open_date [07:06:32]req_shift_open_date done [07:06:32]produce_requested_data done [07:06:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112131,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:06:32]process_action_free close_receipt [07:06:32]json_value_free [07:06:32]json_value_free done [07:06:32]process_json_proto returns [07:06:32]Send response to host [07:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112131,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:06:32]free response buf [07:06:32]execute_script done [07:06:32]execute_script returns [07:06:32]free content buf [07:06:32]Sock 9.Close socket [07:06:32]Sock 9.Thread stoped [07:06:33]accept exits with 8 [07:06:33]New connection [07:06:33]New thread 3067501924 created [07:06:33]Thread 3067358564 joined [07:06:33]Waiting for new connection... [07:06:33] Sock 8.Parse request [07:06:33]Sock 8.Check first char [07:06:33]Sock 8.First char is OK [07:06:33]request: POST /json_proto HTTP/1.0 [07:06:33]Method: POST [07:06:33]URL: /json_proto [07:06:33]Method is POST - this is cgi request [07:06:33]url: /json_proto [07:06:33]query_string will be loaded in cgi processing [07:06:33]execute_cgi json_proto POST (null) [07:06:33]execute_cgi path=json_proto method=POST [07:06:33]POST find Content-Length [07:06:33]Host: 172.17.96.197:8080 [07:06:33]Content-Length: 678 [07:06:33]Content-Type: application/json [07:06:33] [07:06:33]POST finish read [07:06:33]Found Content-Length = 678 [07:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48455", "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.30, "quantity" : 10.590, "sum" : 680.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:33]execute_script... [07:06: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)48455", "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.30, "quantity" : 10.590, "sum" : 680.94, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 680.00, "payments": [ { "type": 0, "sum" : 680.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:33]POST & json_proto [07:06:33]process_json_proto [07:06:33]json parsed OK: [07:06:33]protocol is kg_v1.0 [07:06:33]action value=close_receipt [07:06:33]process_action close_receipt [07:06:33]cmd_close_receipt [07:06:33]MH_GetDate [07:06:33]Write to MH i2c: F0 00 00 44 0A 3D [07:06:33]Write i2c OK [07:06:33]MH_I2C_Read... [07:06:33]Read from MH i2c: F0 [07:06:33]MH_I2C_Read... [07:06:33]Read from MH i2c: F0 09 00 [07:06:33]MH_I2C_Read... [07:06:33]Read from MH i2c: F0 09 00 44 0A 00 7B 80 1B 66 E0 85 7F 64 0A [07:06:33]GetLastDocTimeStamp 1713078390 [07:06:33]current date 1713078395 [07:06:33]FM_GetShiftState [07:06:33]SAM_PROTO_GetShiftState [07:06:33]wFMCommunicate request_size=4 [07:06:33]MH_SAM_APDU [07:06:33]CAPDU: 80 13 01 00 [07:06:33]Write to MH i2c: E2 08 00 45 0A 80 13 01 00 00 00 00 00 CC [07:06:33]Write i2c OK [07:06:33]MH_I2C_Read... [07:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:33]Read from MH i2c: E2 [07:06:33]MH_I2C_Read... [07:06:33]Read from MH i2c: E2 0E 00 [07:06:33]MH_I2C_Read... [07:06:33]Read from MH i2c: E2 0E 00 45 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 64 [07:06:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:06:33]wFMCommunicate OK [07:06:33]SAM_PROTO_GetShiftState done [07:06:33]FM_GetShiftState done [07:06:33]opened in 1713054696 [07:06:33]opened+sec_in_day 1713141096 [07:06:33]quantity*price = 68093 [07:06:33]sum+1 = 68095 [07:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.94 ИТОГО: 680.00 Внесено: 1000.00 СДАЧА: 320.00 НСП 1% : 6.03 НДС 12% : 72.31 Наличными: 680.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 31 14.04.2024 07:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112132 ФПД: 277015406495739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070635&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112132&fm=277015406495739&tin=02508201610067®Number=0000000000094237&sum=68000 [07:06:34]StoreToDocumentArchive [07:06:34]shift 357 fd 112132 [07:06:34]save to /storage/0357/doc_00112132 [07:06:34]save last doc name /storage/0357/doc_00112132 to /storage/kkm_last_doc_name [07:06:34]save OK [07:06:34]Clear old archive folders... [07:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:34]tlvbuf is 019E0CA0 [07:06:34]SAM_PROTO_ClearQueue [07:06:34]wFMCommunicate request_size=4 [07:06:34]MH_SAM_APDU [07:06:34]CAPDU: 80 09 00 00 [07:06:34]Write to MH i2c: E2 08 00 52 0A 80 09 00 00 00 00 00 00 CE [07:06:34]Write i2c OK [07:06:34]MH_I2C_Read... [07:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:34]Read from MH i2c: E2 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 52 0A 00 90 00 D0 [07:06:34]RAPDU: 90 00 [07:06:34]wFMCommunicate OK [07:06:34]SAM_PROTO_ClearQueue done [07:06:34]KKMCreateOFDPacket [07:06:34]OFDProtocolAddRootSTLVToBuf [07:06:34]FM_MakeSignedData [07:06:34]FM_MakeSignedData [07:06:34]SAM_PROTO_SignData [07:06:34]wFMCommunicate request_size=4 [07:06:34]MH_SAM_APDU [07:06:34]CAPDU: 80 0D 01 02 [07:06:34]Write to MH i2c: E2 08 00 53 0A 80 0D 01 02 00 00 00 00 D6 [07:06:34]Write i2c OK [07:06:34]MH_I2C_Read... [07:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:34]Read from MH i2c: E2 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 53 0A 00 90 00 D1 [07:06:34]RAPDU: 90 00 [07:06:34]wFMCommunicate OK [07:06:34]wFMCommunicate request_size=255 [07:06:34]MH_SAM_APDU [07:06: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 5E 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FE 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B6 01 00 35 04 06 00 FB [07:06:34]Write to MH i2c: E2 02 01 54 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 5E 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FE 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B6 01 00 35 04 06 00 FB 00 00 67 [07:06:34]Write i2c OK [07:06:34]MH_I2C_Read... [07:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:34]Read from MH i2c: E2 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 [07:06:34]MH_I2C_Read... [07:06:34]Read from MH i2c: E2 03 00 54 0A 00 90 00 D2 [07:06:34]RAPDU: 90 00 [07:06:34]wFMCommunicate OK [07:06:34]wFMCommunicate request_size=10 [07:06:34]MH_SAM_APDU [07:06:34]CAPDU: 80 0D 02 02 05 F1 AC E6 C7 FB [07:06:34]Write to MH i2c: E2 0D 00 55 0A 80 0D 02 02 05 00 F1 AC E6 C7 FB 00 00 28 [07:06:34]Write i2c OK [07:06:34]MH_I2C_Read... [07:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:35]Read from MH i2c: E2 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 03 00 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 03 00 55 0A 00 90 00 D3 [07:06:35]RAPDU: 90 00 [07:06:35]wFMCommunicate OK [07:06:35]wFMCommunicate request_size=4 [07:06:35]MH_SAM_APDU [07:06:35]CAPDU: 80 0D 03 02 [07:06:35]Write to MH i2c: E2 08 00 56 0A 80 0D 03 02 00 00 00 00 DB [07:06:35]Write i2c OK [07:06:35]MH_I2C_Read... [07:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:35]Read from MH i2c: E2 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 0B 00 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 0B 00 56 0A 00 45 58 FD 79 5F 1F B5 B0 90 00 D2 [07:06:35]RAPDU: 45 58 FD 79 5F 1F B5 B0 90 00 [07:06:35]wFMCommunicate OK [07:06:35]SAM_PROTO_SignData done [07:06:35]FM_MakeSignedData done [07:06:35]CreateOFDProtocolMessage [07:06:35]wFMCommunicate request_size=4 [07:06:35]MH_SAM_APDU [07:06:35]CAPDU: 80 11 00 00 [07:06:35]Write to MH i2c: E2 08 00 57 0A 80 11 00 00 00 00 00 00 DB [07:06:35]Write i2c OK [07:06:35]MH_I2C_Read... [07:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:35]Read from MH i2c: E2 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 17 00 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: E2 17 00 57 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2C [07:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:06:35]wFMCommunicate OK [07:06:35]CreateOFDProtocolMessage done [07:06:35]OFDSenderStorePacket 112132 [07:06:35]StoreOFDPacket docnum=112132 [07:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 11 37 07 01 DA 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FE 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B6 01 00 35 04 06 00 FB F1 AC E6 C7 FB 45 58 FD 79 5F 1F B5 B0 [07:06:35]CheckFolder [07:06:35]dirname=/storage/ofd_packets [07:06:35]CheckFolder done [07:06:35]ProducePacketName [07:06:35]name=ofd_packets/00112132 [07:06:35]NVStorageSaveData ofd_packets/00112132 [07:06:35]File name is /storage/ofd_packets/00112132 [07:06:35]Write 301 bytes [07:06:35]NVStorageSaveData done [07:06:35]OFDSenderStorePacket done [07:06:35]KKMCreateOFDPacket done [07:06:35]NVStorageSaveData kkm_last_timestamp [07:06:35]File name is /storage/kkm_last_timestamp [07:06:35]Write 4 bytes [07:06:35]NVStorageSaveData done [07:06:35]ExternCall_PrintAddStr [07:06:35]wPrintStart [07:06:35]Write to MH i2c: 01 00 00 58 0A 62 [07:06:35]Write i2c OK [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: 01 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: 01 07 00 [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: 01 07 00 58 0A 00 00 00 00 00 FF 0F 77 [07:06:35]RasterBufferAndPrint [07:06:35]line Счет N : (1)48455 [07:06:35]line ИНН: 02508201610067 [07:06:35]line Контрольно-Кассовый Чек [07:06:35]line ПРОДАЖА [07:06:35]line ТРК (МРК, ГНК) : 42 [07:06:35]line Товар: 2710124130 [07:06:35]line Аи-92-К-5 [07:06:35]line 10.590 * 64.30 [07:06:35]line = 680.94 [07:06:35]line НДС 12% НСП 1% [07:06:35]line > о реализуемом товаре [07:06:35]line ОКРУГЛЕНИЕ: -0.94 [07:06:35]line ИТОГО: 680.00 [07:06:35]line Внесено: 1000.00 [07:06:35]line СДАЧА: 320.00 [07:06:35]line НСП 1% : 6.03 [07:06:35]line НДС 12% : 72.31 [07:06:35]line Наличными: 680.00 [07:06:35]line Безнал.: 0.00 [07:06:35]line Место: АЗС № 47 "Партнер Нефть" [07:06:35]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:06:35]line СНО: Общий режим [07:06:35]line Чек 31 14.04.2024 07:06 [07:06:35]line Смена: 357 ФФД: 1.0 [07:06:35]line ЗНМ: 0300000138 [07:06:35]line РНМ: 0000000000094237 [07:06:35]line Версия ККМ: 001 [07:06:35]line ФМ: 0000000000875019 [07:06:35]line ФД: 112132 [07:06:35]line ФПД: 277015406495739 [07:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T070635&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112132&fm=277015406495739&tin=02508201610067®Number=0000000000094237&sum=68000 [07:06:35]OFD Sender: Processing packet 112132 [packets to send 71, broken 70] [07:06:35]ProducePacketName [07:06:35]name=ofd_packets/00112132 [07:06:35]OFD Sender: To server: pG, [07:06:35]CommunicateWithHost lk.salyk.kg:30040 [07:06:35]ConnectInit lk.salyk.kg [07:06:35]written 0, free lines is 4095 [07:06:35]Connected sock=10 [07:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 11 37 07 01 DA 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5E 29 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FE 09 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 09 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 1C 00 00 00 00 07 04 06 00 A0 09 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 7B 80 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B6 01 00 35 04 06 00 FB F1 AC E6 C7 FB 45 58 FD 79 5F 1F B5 B0 [07:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 6C 83 47 00 E4 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B6 01 00 F4 03 04 00 08 28 1B 66 B6 04 01 00 00 1F 72 48 98 3D 20 26 0E [07:06:35]CommunicateWithHost err = 0 [07:06:35]CheckOFDResponse [07:06:35]1017 (14) - 77093643461234 [07:06:35]1041 (16) - 0000000000875019 [07:06:35]1040 (4) - 112132 [07:06:35]1012 (4) - 14.04.2024 00:49 [07:06:35]1206 (1) - 0 [07:06:35]OFD Sender: Remove packet 112132 [07:06:35]ProducePacketName [07:06:35]name=ofd_packets/00112132 [07:06:35]NVStorageDeleteData [07:06:35]Write to MH i2c: 01 00 00 83 0A 8D [07:06:35]Write i2c OK [07:06:35]MH_I2C_Read... [07:06:35]Read from MH i2c: 01 [07:06:36]MH_I2C_Read... [07:06:36]Read from MH i2c: 01 07 00 [07:06:36]MH_I2C_Read... [07:06:36]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 19 0D BA [07:06:36]RasterBufferAndPrint [07:06:36]line [07:06:36]line [07:06:36]line [07:06:36]line [07:06:36]line [07:06:36]written 0, free lines is 3369 [07:06:36]MH_Cut [07:06:36]Write to MH i2c: D1 01 00 8A 0A 01 66 [07:06:36]Write i2c OK [07:06:36]MH_I2C_Read... [07:06:36]Read from MH i2c: D1 [07:06:36]MH_I2C_Read... [07:06:36]Read from MH i2c: D1 01 00 [07:06:36]MH_I2C_Read... [07:06:36]Read from MH i2c: D1 01 00 8A 0A 00 65 [07:06:36]Write to MH i2c: 01 00 00 8B 0A 95 [07:06:36]Write i2c OK [07:06:36]MH_I2C_Read... [07:06:36]OFD Sender: No OFD packet to send [07:06:36]*** Cut start [07:06:36]*** Partial cut [07:06:36]*** CUTSNS_PIN = 1 [07:06:36]*** CUTSNS_PIN = 0 [07:06:37]*** Brake cut motor [07:06:37]Read from MH i2c: 01 [07:06:37]MH_I2C_Read... [07:06:37]*** Stop cut motor [07:06:37]*** Cut end [07:06:37]Read from MH i2c: 01 07 00 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: 01 07 00 8B 0A 00 00 00 00 00 FF 0F AA [07:06:37]process_action close_receipt done [07:06:37]requested_data is exist [07:06:37]produce_requested_data [07:06:37]requested_item fm.sn is exist - process it [07:06:37]wFMCommunicate request_size=4 [07:06:37]MH_SAM_APDU [07:06:37]CAPDU: 80 11 00 00 [07:06:37]Write to MH i2c: E2 08 00 8C 0A 80 11 00 00 00 00 00 00 10 [07:06:37]Write i2c OK [07:06:37]MH_I2C_Read... [07:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:37]Read from MH i2c: E2 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 17 00 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 17 00 8C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 61 [07:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:06:37]wFMCommunicate OK [07:06:37]requested_item fd.num is exist - process it [07:06:37]SAM_PROTO_GetFieldsCounters [07:06:37]wFMCommunicate request_size=4 [07:06:37]MH_SAM_APDU [07:06:37]CAPDU: 80 13 00 00 [07:06:37]Write to MH i2c: E2 08 00 8D 0A 80 13 00 00 00 00 00 00 13 [07:06:37]Write i2c OK [07:06:37]MH_I2C_Read... [07:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:37]Read from MH i2c: E2 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 62 00 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 62 00 8D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 04 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [07:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 04 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:06:37]wFMCommunicate OK [07:06:37]SAM_PROTO_GetFieldsCounters done [07:06:37]requested_item shift.num is exist - process it [07:06:37]requested_item shift.opened is exist - process it [07:06:37]req_shift_opened [07:06:37]FM_GetShiftState [07:06:37]SAM_PROTO_GetShiftState [07:06:37]wFMCommunicate request_size=4 [07:06:37]MH_SAM_APDU [07:06:37]CAPDU: 80 13 01 00 [07:06:37]Write to MH i2c: E2 08 00 8E 0A 80 13 01 00 00 00 00 00 15 [07:06:37]Write i2c OK [07:06:37]MH_I2C_Read... [07:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:37]Read from MH i2c: E2 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 0E 00 [07:06:37]MH_I2C_Read... [07:06:37]Read from MH i2c: E2 0E 00 8E 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AD [07:06:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:06:37]wFMCommunicate OK [07:06:37]SAM_PROTO_GetShiftState done [07:06:37]FM_GetShiftState done [07:06:37]req_shift_opened done [07:06:37]requested_item shift.open_date is exist - process it [07:06:37]req_shift_open_date [07:06:37]req_shift_open_date done [07:06:37]produce_requested_data done [07:06:37]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112132,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:06:37]process_action_free close_receipt [07:06:37]json_value_free [07:06:37]json_value_free done [07:06:37]process_json_proto returns [07:06:37]Send response to host [07:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112132,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:06:37]free response buf [07:06:37]execute_script done [07:06:37]execute_script returns [07:06:37]free content buf [07:06:37]Sock 8.Close socket [07:06:37]Sock 8.Thread stoped [07:06:41]OFD Sender: No OFD packet to send [07:06:46]OFD Sender: No OFD packet to send [07:06:51]OFD Sender: No OFD packet to send [07:06:56]OFD Sender: No OFD packet to send [07:07:01]OFD Sender: No OFD packet to send [07:07:06]OFD Sender: No OFD packet to send [07:07:11]OFD Sender: No OFD packet to send [07:07:16]OFD Sender: No OFD packet to send [07:07:21]OFD Sender: No OFD packet to send [07:07:26]OFD Sender: No OFD packet to send [07:07:31]OFD Sender: No OFD packet to send [07:07:36]OFD Sender: No OFD packet to send [07:07:41]OFD Sender: No OFD packet to send [07:07:46]OFD Sender: No OFD packet to send [07:07:51]OFD Sender: No OFD packet to send [07:07:56]OFD Sender: No OFD packet to send [07:08:01]OFD Sender: No OFD packet to send [07:08:06]OFD Sender: No OFD packet to send [07:08:11]OFD Sender: No OFD packet to send [07:08:16]OFD Sender: No OFD packet to send [07:08:21]OFD Sender: No OFD packet to send [07:08:26]OFD Sender: No OFD packet to send [07:08:31]OFD Sender: No OFD packet to send [07:08:36]OFD Sender: No OFD packet to send [07:08:41]OFD Sender: No OFD packet to send [07:08:46]OFD Sender: No OFD packet to send [07:08:51]OFD Sender: No OFD packet to send [07:08:56]OFD Sender: No OFD packet to send [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:37]accept exits with 9 [07:10:37]New connection [07:10:37]New thread 3067358564 created [07:10:37]Thread 3067501924 joined [07:10:37]Waiting for new connection... [07:10:37] Sock 9.Parse request [07:10:37]Sock 9.Check first char [07:10:37]Sock 9.First char is OK [07:10:37]request: POST /json_proto HTTP/1.0 [07:10:37]Method: POST [07:10:37]URL: /json_proto [07:10:37]Method is POST - this is cgi request [07:10:37]url: /json_proto [07:10:37]query_string will be loaded in cgi processing [07:10:37]execute_cgi json_proto POST (null) [07:10:37]execute_cgi path=json_proto method=POST [07:10:37]POST find Content-Length [07:10:37]Host: 172.17.96.197:8080 [07:10:37]Content-Length: 669 [07:10:37]Content-Type: application/json [07:10:37] [07:10:37]POST finish read [07:10:37]Found Content-Length = 669 [07:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48456", "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.30, "quantity" : 9.960, "sum" : 650.39, "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" ] } } [07:10:37]execute_script... [07: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)48456", "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.30, "quantity" : 9.960, "sum" : 650.39, "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" ] } } [07:10:37]POST & json_proto [07:10:37]process_json_proto [07:10:37]json parsed OK: [07:10:37]protocol is kg_v1.0 [07:10:37]action value=close_receipt [07:10:37]process_action close_receipt [07:10:37]cmd_close_receipt [07:10:37]MH_GetDate [07:10:37]Write to MH i2c: F0 00 00 8F 0A 88 [07:10:37]Write i2c OK [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: F0 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: F0 09 00 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: F0 09 00 8F 0A 00 70 81 1B 66 E0 85 7F 64 4B [07:10:37]GetLastDocTimeStamp 1713078395 [07:10:37]current date 1713078640 [07:10:37]FM_GetShiftState [07:10:37]SAM_PROTO_GetShiftState [07:10:37]wFMCommunicate request_size=4 [07:10:37]MH_SAM_APDU [07:10:37]CAPDU: 80 13 01 00 [07:10:37]Write to MH i2c: E2 08 00 90 0A 80 13 01 00 00 00 00 00 17 [07:10:37]Write i2c OK [07:10:37]MH_I2C_Read... [07:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:37]Read from MH i2c: E2 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 0E 00 [07:10:37]MH_I2C_Read... [07:10:37]Read from MH i2c: E2 0E 00 90 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AF [07:10:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:10:37]wFMCommunicate OK [07:10:37]SAM_PROTO_GetShiftState done [07:10:37]FM_GetShiftState done [07:10:37]opened in 1713054696 [07:10:37]opened+sec_in_day 1713141096 [07:10:37]quantity*price = 65038 [07:10:37]sum+1 = 65040 [07:10:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.76 НДС 12% : 69.07 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 32 14.04.2024 07:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112133 ФПД: 200389330858252 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T071040&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112133&fm=200389330858252&tin=02508201610067®Number=0000000000094237&sum=65000 [07:10:38]StoreToDocumentArchive [07:10:38]shift 357 fd 112133 [07:10:38]save to /storage/0357/doc_00112133 [07:10:38]save last doc name /storage/0357/doc_00112133 to /storage/kkm_last_doc_name [07:10:38]save OK [07:10:38]Clear old archive folders... [07:10:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:10:38]tlvbuf is 01B285A0 [07:10:38]SAM_PROTO_ClearQueue [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 09 00 00 [07:10:38]Write to MH i2c: E2 08 00 9D 0A 80 09 00 00 00 00 00 00 19 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 9D 0A 00 90 00 1B [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]SAM_PROTO_ClearQueue done [07:10:38]KKMCreateOFDPacket [07:10:38]OFDProtocolAddRootSTLVToBuf [07:10:38]FM_MakeSignedData [07:10:38]FM_MakeSignedData [07:10:38]SAM_PROTO_SignData [07:10:38]wFMCommunicate request_size=4 [07:10:38]MH_SAM_APDU [07:10:38]CAPDU: 80 0D 01 02 [07:10:38]Write to MH i2c: E2 08 00 9E 0A 80 0D 01 02 00 00 00 00 21 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 [07:10:38]MH_I2C_Read... [07:10:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:38]Read from MH i2c: E2 03 00 [07:10:38]MH_I2C_Read... [07:10:38]Read from MH i2c: E2 03 00 9E 0A 00 90 00 1C [07:10:38]RAPDU: 90 00 [07:10:38]wFMCommunicate OK [07:10:38]wFMCommunicate request_size=255 [07:10:38]MH_SAM_APDU [07:10:38]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 0F 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 FB 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 20 00 00 00 F4 03 04 00 70 81 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B6 01 00 35 04 06 00 [07:10:38]Write to MH i2c: E2 02 01 9F 0A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 0F 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 FB 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 20 00 00 00 F4 03 04 00 70 81 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B6 01 00 35 04 06 00 00 00 51 [07:10:38]Write i2c OK [07:10:38]MH_I2C_Read... [07:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:39]Read from MH i2c: E2 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 03 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 03 00 9F 0A 00 90 00 1D [07:10:39]RAPDU: 90 00 [07:10:39]wFMCommunicate OK [07:10:39]wFMCommunicate request_size=11 [07:10:39]MH_SAM_APDU [07:10:39]CAPDU: 80 0D 02 02 06 B6 40 C6 E1 F1 0C [07:10:39]Write to MH i2c: E2 0E 00 A0 0A 80 0D 02 02 06 00 B6 40 C6 E1 F1 0C 00 00 CA [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:39]Read from MH i2c: E2 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 03 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 03 00 A0 0A 00 90 00 1E [07:10:39]RAPDU: 90 00 [07:10:39]wFMCommunicate OK [07:10:39]wFMCommunicate request_size=4 [07:10:39]MH_SAM_APDU [07:10:39]CAPDU: 80 0D 03 02 [07:10:39]Write to MH i2c: E2 08 00 A1 0A 80 0D 03 02 00 00 00 00 26 [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:39]Read from MH i2c: E2 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 0B 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 0B 00 A1 0A 00 F5 99 6E 44 08 B9 EE C0 90 00 D6 [07:10:39]RAPDU: F5 99 6E 44 08 B9 EE C0 90 00 [07:10:39]wFMCommunicate OK [07:10:39]SAM_PROTO_SignData done [07:10:39]FM_MakeSignedData done [07:10:39]CreateOFDProtocolMessage [07:10:39]wFMCommunicate request_size=4 [07:10:39]MH_SAM_APDU [07:10:39]CAPDU: 80 11 00 00 [07:10:39]Write to MH i2c: E2 08 00 A2 0A 80 11 00 00 00 00 00 00 26 [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:39]Read from MH i2c: E2 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 17 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: E2 17 00 A2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 77 [07:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:10:39]wFMCommunicate OK [07:10:39]CreateOFDProtocolMessage done [07:10:39]OFDSenderStorePacket 112133 [07:10:39]StoreOFDPacket docnum=112133 [07:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 D3 E9 08 01 AE AA 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 0F 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 FB 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 20 00 00 00 F4 03 04 00 70 81 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B6 01 00 35 04 06 00 B6 40 C6 E1 F1 0C F5 99 6E 44 08 B9 EE C0 [07:10:39]CheckFolder [07:10:39]dirname=/storage/ofd_packets [07:10:39]CheckFolder done [07:10:39]ProducePacketName [07:10:39]name=ofd_packets/00112133 [07:10:39]NVStorageSaveData ofd_packets/00112133 [07:10:39]File name is /storage/ofd_packets/00112133 [07:10:39]Write 302 bytes [07:10:39]NVStorageSaveData done [07:10:39]OFDSenderStorePacket done [07:10:39]KKMCreateOFDPacket done [07:10:39]NVStorageSaveData kkm_last_timestamp [07:10:39]File name is /storage/kkm_last_timestamp [07:10:39]Write 4 bytes [07:10:39]NVStorageSaveData done [07:10:39]ExternCall_PrintAddStr [07:10:39]wPrintStart [07:10:39]Write to MH i2c: 01 00 00 A3 0A AD [07:10:39]Write i2c OK [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 [07:10:39]MH_I2C_Read... [07:10:39]Read from MH i2c: 01 07 00 A3 0A 00 00 00 00 00 FF 0F C2 [07:10:39]RasterBufferAndPrint [07:10:39]line Счет N : (1)48456 [07:10:39]line ИНН: 02508201610067 [07:10:39]line Контрольно-Кассовый Чек [07:10:39]line ПРОДАЖА [07:10:39]line ТРК (МРК, ГНК) : 41 [07:10:39]line Товар: 2710124130 [07:10:39]line SUPER 92-К-5 [07:10:39]line 9.960 * 65.30 [07:10:39]line = 650.39 [07:10:39]line НДС 12% НСП 1% [07:10:39]line > о реализуемом товаре [07:10:39]line ОКРУГЛЕНИЕ: -0.39 [07:10:39]line ИТОГО: 650.00 [07:10:39]line Внесено: 650.00 [07:10:39]line СДАЧА: 0.00 [07:10:39]line НСП 1% : 5.76 [07:10:39]line НДС 12% : 69.07 [07:10:39]line Наличными: 650.00 [07:10:39]line Безнал.: 0.00 [07:10:39]line Место: АЗС № 47 "Партнер Нефть" [07:10:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:10:39]line СНО: Общий режим [07:10:39]line Чек 32 14.04.2024 07:10 [07:10:39]line Смена: 357 ФФД: 1.0 [07:10:39]line ЗНМ: 0300000138 [07:10:39]line РНМ: 0000000000094237 [07:10:39]line Версия ККМ: 001 [07:10:39]line ФМ: 0000000000875019 [07:10:39]line ФД: 112133 [07:10:39]line ФПД: 200389330858252 [07:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T071040&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112133&fm=200389330858252&tin=02508201610067®Number=0000000000094237&sum=65000 [07:10:39]OFD Sender: Processing packet 112133 [packets to send 71, broken 70] [07:10:39]ProducePacketName [07:10:39]name=ofd_packets/00112133 [07:10:39]OFD Sender: To server: pG, [07:10:39]CommunicateWithHost lk.salyk.kg:30040 [07:10:39]ConnectInit lk.salyk.kg [07:10:39]written 0, free lines is 4095 [07:10:39]Connected sock=10 [07:10:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 D3 E9 08 01 AE AA 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E8 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 0F 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 FB 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 20 00 00 00 F4 03 04 00 70 81 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B6 01 00 35 04 06 00 B6 40 C6 E1 F1 0C F5 99 6E 44 08 B9 EE C0 [07:10:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 70 E4 47 00 A7 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B6 01 00 F4 03 04 00 FC 28 1B 66 B6 04 01 00 00 42 BC CC B1 45 96 87 48 [07:10:40]CommunicateWithHost err = 0 [07:10:40]CheckOFDResponse [07:10:40]1017 (14) - 77093643461234 [07:10:40]1041 (16) - 0000000000875019 [07:10:40]1040 (4) - 112133 [07:10:40]1012 (4) - 14.04.2024 00:53 [07:10:40]1206 (1) - 0 [07:10:40]OFD Sender: Remove packet 112133 [07:10:40]ProducePacketName [07:10:40]name=ofd_packets/00112133 [07:10:40]NVStorageDeleteData [07:10:40]Write to MH i2c: 01 00 00 CE 0A D8 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: 01 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: 01 07 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 DE 0C C9 [07:10:40]RasterBufferAndPrint [07:10:40]line [07:10:40]line [07:10:40]line [07:10:40]line [07:10:40]line [07:10:40]written 0, free lines is 3300 [07:10:40]MH_Cut [07:10:40]Write to MH i2c: D1 01 00 D5 0A 01 B1 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: D1 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: D1 01 00 [07:10:40]MH_I2C_Read... [07:10:40]Read from MH i2c: D1 01 00 D5 0A 00 B0 [07:10:40]Write to MH i2c: 01 00 00 D6 0A E0 [07:10:40]Write i2c OK [07:10:40]MH_I2C_Read... [07:10:40]OFD Sender: No OFD packet to send [07:10:40]*** Cut start [07:10:40]*** Partial cut [07:10:40]*** CUTSNS_PIN = 1 [07:10:40]*** CUTSNS_PIN = 0 [07:10:41]*** Brake cut motor [07:10:41]Read from MH i2c: 01 [07:10:41]MH_I2C_Read... [07:10:41]*** Stop cut motor [07:10:41]*** Cut end [07:10:41]Read from MH i2c: 01 07 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: 01 07 00 D6 0A 00 00 00 00 00 FF 0F F5 [07:10:41]process_action close_receipt done [07:10:41]requested_data is exist [07:10:41]produce_requested_data [07:10:41]requested_item fm.sn is exist - process it [07:10:41]wFMCommunicate request_size=4 [07:10:41]MH_SAM_APDU [07:10:41]CAPDU: 80 11 00 00 [07:10:41]Write to MH i2c: E2 08 00 D7 0A 80 11 00 00 00 00 00 00 5B [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:41]Read from MH i2c: E2 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 17 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 17 00 D7 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AC [07:10:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:10:41]wFMCommunicate OK [07:10:41]requested_item fd.num is exist - process it [07:10:41]SAM_PROTO_GetFieldsCounters [07:10:41]wFMCommunicate request_size=4 [07:10:41]MH_SAM_APDU [07:10:41]CAPDU: 80 13 00 00 [07:10:41]Write to MH i2c: E2 08 00 D8 0A 80 13 00 00 00 00 00 00 5E [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:41]Read from MH i2c: E2 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 62 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 62 00 D8 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 05 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [07:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 05 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:41]wFMCommunicate OK [07:10:41]SAM_PROTO_GetFieldsCounters done [07:10:41]requested_item shift.num is exist - process it [07:10:41]requested_item shift.opened is exist - process it [07:10:41]req_shift_opened [07:10:41]FM_GetShiftState [07:10:41]SAM_PROTO_GetShiftState [07:10:41]wFMCommunicate request_size=4 [07:10:41]MH_SAM_APDU [07:10:41]CAPDU: 80 13 01 00 [07:10:41]Write to MH i2c: E2 08 00 D9 0A 80 13 01 00 00 00 00 00 60 [07:10:41]Write i2c OK [07:10:41]MH_I2C_Read... [07:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:41]Read from MH i2c: E2 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 0E 00 [07:10:41]MH_I2C_Read... [07:10:41]Read from MH i2c: E2 0E 00 D9 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F8 [07:10:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:10:41]wFMCommunicate OK [07:10:41]SAM_PROTO_GetShiftState done [07:10:41]FM_GetShiftState done [07:10:41]req_shift_opened done [07:10:41]requested_item shift.open_date is exist - process it [07:10:41]req_shift_open_date [07:10:41]req_shift_open_date done [07:10:41]produce_requested_data done [07:10:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112133,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:10:41]process_action_free close_receipt [07:10:41]json_value_free [07:10:41]json_value_free done [07:10:41]process_json_proto returns [07:10:41]Send response to host [07:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112133,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:10:41]free response buf [07:10:41]execute_script done [07:10:41]execute_script returns [07:10:41]free content buf [07:10:41]Sock 9.Close socket [07:10:41]Sock 9.Thread stoped [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:07]accept exits with 8 [07:13:07]New connection [07:13:07]New thread 3067501924 created [07:13:07]Thread 3067358564 joined [07:13:07]Waiting for new connection... [07:13:07] Sock 8.Parse request [07:13:07]Sock 8.Check first char [07:13:07]Sock 8.First char is OK [07:13:07]request: POST /json_proto HTTP/1.0 [07:13:07]Method: POST [07:13:07]URL: /json_proto [07:13:07]Method is POST - this is cgi request [07:13:07]url: /json_proto [07:13:07]query_string will be loaded in cgi processing [07:13:07]execute_cgi json_proto POST (null) [07:13:07]execute_cgi path=json_proto method=POST [07:13:07]POST find Content-Length [07:13:07]Host: 172.17.96.197:8080 [07:13:07]Content-Length: 676 [07:13:07]Content-Type: application/json [07:13:07] [07:13:07]POST finish read [07:13:07]Found Content-Length = 676 [07:13:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:13:07]execute_script... [07:13: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)48457", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:13:07]POST & json_proto [07:13:07]process_json_proto [07:13:07]json parsed OK: [07:13:07]protocol is kg_v1.0 [07:13:07]action value=close_receipt [07:13:07]process_action close_receipt [07:13:07]cmd_close_receipt [07:13:07]MH_GetDate [07:13:07]Write to MH i2c: F0 00 00 DA 0A D3 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: F0 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: F0 09 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: F0 09 00 DA 0A 00 06 82 1B 66 E0 85 7F 64 2D [07:13:07]GetLastDocTimeStamp 1713078640 [07:13:07]current date 1713078790 [07:13:07]FM_GetShiftState [07:13:07]SAM_PROTO_GetShiftState [07:13:07]wFMCommunicate request_size=4 [07:13:07]MH_SAM_APDU [07:13:07]CAPDU: 80 13 01 00 [07:13:07]Write to MH i2c: E2 08 00 DB 0A 80 13 01 00 00 00 00 00 62 [07:13:07]Write i2c OK [07:13:07]MH_I2C_Read... [07:13:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:07]Read from MH i2c: E2 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 0E 00 [07:13:07]MH_I2C_Read... [07:13:07]Read from MH i2c: E2 0E 00 DB 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FA [07:13:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:13:07]wFMCommunicate OK [07:13:07]SAM_PROTO_GetShiftState done [07:13:07]FM_GetShiftState done [07:13:07]opened in 1713054696 [07:13:07]opened+sec_in_day 1713141096 [07:13:07]quantity*price = 50025 [07:13:07]sum+1 = 50026 [07:13:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 33 14.04.2024 07:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112134 ФПД: 261697692357629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T071310&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112134&fm=261697692357629&tin=02508201610067®Number=0000000000094237&sum=50000 [07:13:08]StoreToDocumentArchive [07:13:08]shift 357 fd 112134 [07:13:08]save to /storage/0357/doc_00112134 [07:13:08]save last doc name /storage/0357/doc_00112134 to /storage/kkm_last_doc_name [07:13:08]save OK [07:13:08]Clear old archive folders... [07:13:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:08]tlvbuf is 01B2DC30 [07:13:08]SAM_PROTO_ClearQueue [07:13:08]wFMCommunicate request_size=4 [07:13:08]MH_SAM_APDU [07:13:08]CAPDU: 80 09 00 00 [07:13:08]Write to MH i2c: E2 08 00 E8 0A 80 09 00 00 00 00 00 00 64 [07:13:08]Write i2c OK [07:13:08]MH_I2C_Read... [07:13:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:08]Read from MH i2c: E2 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 03 00 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [07:13:08]RAPDU: 90 00 [07:13:08]wFMCommunicate OK [07:13:08]SAM_PROTO_ClearQueue done [07:13:08]KKMCreateOFDPacket [07:13:08]OFDProtocolAddRootSTLVToBuf [07:13:08]FM_MakeSignedData [07:13:08]FM_MakeSignedData [07:13:08]SAM_PROTO_SignData [07:13:08]wFMCommunicate request_size=4 [07:13:08]MH_SAM_APDU [07:13:08]CAPDU: 80 0D 01 02 [07:13:08]Write to MH i2c: E2 08 00 E9 0A 80 0D 01 02 00 00 00 00 6C [07:13:08]Write i2c OK [07:13:08]MH_I2C_Read... [07:13:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:08]Read from MH i2c: E2 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 03 00 [07:13:08]MH_I2C_Read... [07:13:08]Read from MH i2c: E2 03 00 E9 0A 00 90 00 67 [07:13:08]RAPDU: 90 00 [07:13:08]wFMCommunicate OK [07:13:08]wFMCommunicate request_size=255 [07:13:08]MH_SAM_APDU [07:13: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 00 00 00 F4 03 04 00 06 82 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B6 01 00 35 04 06 00 EE [07:13:08]Write to MH i2c: E2 02 01 EA 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 00 00 00 F4 03 04 00 06 82 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B6 01 00 35 04 06 00 EE 00 00 4A [07:13:08]Write i2c OK [07:13:08]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 EA 0A 00 90 00 68 [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]wFMCommunicate request_size=10 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 02 02 05 03 3D FD D3 FD [07:13:09]Write to MH i2c: E2 0D 00 EB 0A 80 0D 02 02 05 00 03 3D FD D3 FD 00 00 86 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 03 00 EB 0A 00 90 00 69 [07:13:09]RAPDU: 90 00 [07:13:09]wFMCommunicate OK [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 0D 03 02 [07:13:09]Write to MH i2c: E2 08 00 EC 0A 80 0D 03 02 00 00 00 00 71 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 0B 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 0B 00 EC 0A 00 D7 00 13 4A 24 D5 2C 66 90 00 31 [07:13:09]RAPDU: D7 00 13 4A 24 D5 2C 66 90 00 [07:13:09]wFMCommunicate OK [07:13:09]SAM_PROTO_SignData done [07:13:09]FM_MakeSignedData done [07:13:09]CreateOFDProtocolMessage [07:13:09]wFMCommunicate request_size=4 [07:13:09]MH_SAM_APDU [07:13:09]CAPDU: 80 11 00 00 [07:13:09]Write to MH i2c: E2 08 00 ED 0A 80 11 00 00 00 00 00 00 71 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:09]Read from MH i2c: E2 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 17 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: E2 17 00 ED 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C2 [07:13:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:13:09]wFMCommunicate OK [07:13:09]CreateOFDProtocolMessage done [07:13:09]OFDSenderStorePacket 112134 [07:13:09]StoreOFDPacket docnum=112134 [07:13:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 32 21 07 01 B7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 00 00 00 F4 03 04 00 06 82 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B6 01 00 35 04 06 00 EE 03 3D FD D3 FD D7 00 13 4A 24 D5 2C 66 [07:13:09]CheckFolder [07:13:09]dirname=/storage/ofd_packets [07:13:09]CheckFolder done [07:13:09]ProducePacketName [07:13:09]name=ofd_packets/00112134 [07:13:09]NVStorageSaveData ofd_packets/00112134 [07:13:09]File name is /storage/ofd_packets/00112134 [07:13:09]Write 301 bytes [07:13:09]NVStorageSaveData done [07:13:09]OFDSenderStorePacket done [07:13:09]KKMCreateOFDPacket done [07:13:09]NVStorageSaveData kkm_last_timestamp [07:13:09]File name is /storage/kkm_last_timestamp [07:13:09]Write 4 bytes [07:13:09]NVStorageSaveData done [07:13:09]ExternCall_PrintAddStr [07:13:09]wPrintStart [07:13:09]Write to MH i2c: 01 00 00 EE 0A F8 [07:13:09]Write i2c OK [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 07 00 [07:13:09]MH_I2C_Read... [07:13:09]Read from MH i2c: 01 07 00 EE 0A 00 00 00 00 00 FF 0F 0D [07:13:09]RasterBufferAndPrint [07:13:09]line Счет N : (1)48457 [07:13:09]line ИНН: 02508201610067 [07:13:09]line Контрольно-Кассовый Чек [07:13:09]line ПРОДАЖА [07:13:09]line ТРК (МРК, ГНК) : 11 [07:13:09]line Товар: 2710124130 [07:13:09]line Аи-92-К-5 [07:13:09]line 7.780 * 64.30 [07:13:09]line = 500.25 [07:13:09]line НДС 12% НСП 1% [07:13:09]line > о реализуемом товаре [07:13:09]line ОКРУГЛЕНИЕ: -0.25 [07:13:09]line ИТОГО: 500.00 [07:13:09]line Внесено: 500.00 [07:13:09]line СДАЧА: 0.00 [07:13:09]line НСП 1% : 4.43 [07:13:09]line НДС 12% : 53.12 [07:13:09]line Наличными: 500.00 [07:13:09]line Безнал.: 0.00 [07:13:09]line Место: АЗС № 47 "Партнер Нефть" [07:13:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:13:09]line СНО: Общий режим [07:13:09]line Чек 33 14.04.2024 07:13 [07:13:09]line Смена: 357 ФФД: 1.0 [07:13:09]line ЗНМ: 0300000138 [07:13:09]line РНМ: 0000000000094237 [07:13:09]line Версия ККМ: 001 [07:13:09]line ФМ: 0000000000875019 [07:13:09]line ФД: 112134 [07:13:09]line ФПД: 261697692357629 [07:13:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T071310&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112134&fm=261697692357629&tin=02508201610067®Number=0000000000094237&sum=50000 [07:13:09]written 0, free lines is 4095 [07:13:09]OFD Sender: Processing packet 112134 [packets to send 71, broken 70] [07:13:09]ProducePacketName [07:13:09]name=ofd_packets/00112134 [07:13:09]OFD Sender: To server: pG, [07:13:09]CommunicateWithHost lk.salyk.kg:30040 [07:13:09]ConnectInit lk.salyk.kg [07:13:09]Connected sock=10 [07:13:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 32 21 07 01 B7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 00 00 00 F4 03 04 00 06 82 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B6 01 00 35 04 06 00 EE 03 3D FD D3 FD D7 00 13 4A 24 D5 2C 66 [07:13:10]Write to MH i2c: 01 00 00 19 0B 24 [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 07 00 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: 01 07 00 19 0B 00 00 00 00 00 D1 0C 08 [07:13:10]RasterBufferAndPrint [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]line [07:13:10]written 0, free lines is 3287 [07:13:10]MH_Cut [07:13:10]Write to MH i2c: D1 01 00 20 0B 01 FD [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 01 00 [07:13:10]MH_I2C_Read... [07:13:10]Read from MH i2c: D1 01 00 20 0B 00 FC [07:13:10]Write to MH i2c: 01 00 00 21 0B 2C [07:13:10]Write i2c OK [07:13:10]MH_I2C_Read... [07:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 71 4C 47 00 DB 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B6 01 00 F4 03 04 00 92 29 1B 66 B6 04 01 00 00 52 32 31 FD B4 C7 F6 8C [07:13:10]CommunicateWithHost err = 0 [07:13:10]CheckOFDResponse [07:13:10]1017 (14) - 77093643461234 [07:13:10]1041 (16) - 0000000000875019 [07:13:10]1040 (4) - 112134 [07:13:10]1012 (4) - 14.04.2024 00:55 [07:13:10]1206 (1) - 0 [07:13:10]OFD Sender: Remove packet 112134 [07:13:10]ProducePacketName [07:13:10]name=ofd_packets/00112134 [07:13:10]NVStorageDeleteData [07:13:10]OFD Sender: No OFD packet to send [07:13:10]*** Cut start [07:13:10]*** Partial cut [07:13:10]*** CUTSNS_PIN = 1 [07:13:10]*** CUTSNS_PIN = 0 [07:13:11]*** Brake cut motor [07:13:11]Read from MH i2c: 01 [07:13:11]MH_I2C_Read... [07:13:11]*** Stop cut motor [07:13:11]*** Cut end [07:13:11]Read from MH i2c: 01 07 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: 01 07 00 21 0B 00 00 00 00 00 FF 0F 41 [07:13:11]process_action close_receipt done [07:13:11]requested_data is exist [07:13:11]produce_requested_data [07:13:11]requested_item fm.sn is exist - process it [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 11 00 00 [07:13:11]Write to MH i2c: E2 08 00 22 0B 80 11 00 00 00 00 00 00 A7 [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:11]Read from MH i2c: E2 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 17 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 17 00 22 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F8 [07:13:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:13:11]wFMCommunicate OK [07:13:11]requested_item fd.num is exist - process it [07:13:11]SAM_PROTO_GetFieldsCounters [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 13 00 00 [07:13:11]Write to MH i2c: E2 08 00 23 0B 80 13 00 00 00 00 00 00 AA [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:13:11]Read from MH i2c: E2 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 62 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 62 00 23 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 06 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [07:13:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 06 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:13:11]wFMCommunicate OK [07:13:11]SAM_PROTO_GetFieldsCounters done [07:13:11]requested_item shift.num is exist - process it [07:13:11]requested_item shift.opened is exist - process it [07:13:11]req_shift_opened [07:13:11]FM_GetShiftState [07:13:11]SAM_PROTO_GetShiftState [07:13:11]wFMCommunicate request_size=4 [07:13:11]MH_SAM_APDU [07:13:11]CAPDU: 80 13 01 00 [07:13:11]Write to MH i2c: E2 08 00 24 0B 80 13 01 00 00 00 00 00 AC [07:13:11]Write i2c OK [07:13:11]MH_I2C_Read... [07:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:11]Read from MH i2c: E2 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 [07:13:11]MH_I2C_Read... [07:13:11]Read from MH i2c: E2 0E 00 24 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 44 [07:13:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:13:11]wFMCommunicate OK [07:13:11]SAM_PROTO_GetShiftState done [07:13:11]FM_GetShiftState done [07:13:11]req_shift_opened done [07:13:11]requested_item shift.open_date is exist - process it [07:13:11]req_shift_open_date [07:13:11]req_shift_open_date done [07:13:11]produce_requested_data done [07:13:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112134,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:13:11]process_action_free close_receipt [07:13:11]json_value_free [07:13:11]json_value_free done [07:13:11]process_json_proto returns [07:13:11]Send response to host [07:13:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112134,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:13:11]free response buf [07:13:11]execute_script done [07:13:11]execute_script returns [07:13:11]free content buf [07:13:11]Sock 8.Close socket [07:13:11]Sock 8.Thread stoped [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:31]accept exits with 9 [07:22:31]New connection [07:22:31]New thread 3067358564 created [07:22:31]Thread 3067501924 joined [07:22:31]Waiting for new connection... [07:22:31] Sock 9.Parse request [07:22:31]Sock 9.Check first char [07:22:31]Sock 9.First char is OK [07:22:31]request: POST /json_proto HTTP/1.0 [07:22:31]Method: POST [07:22:31]URL: /json_proto [07:22:31]Method is POST - this is cgi request [07:22:31]url: /json_proto [07:22:31]query_string will be loaded in cgi processing [07:22:31]execute_cgi json_proto POST (null) [07:22:31]execute_cgi path=json_proto method=POST [07:22:31]POST find Content-Length [07:22:31]Host: 172.17.96.197:8080 [07:22:31]Content-Length: 684 [07:22:31]Content-Type: application/json [07:22:31] [07:22:31]POST finish read [07:22:31]Found Content-Length = 684 [07:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.700, "sum" : 1200.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:31]execute_script... [07: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)48458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.700, "sum" : 1200.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:22:31]POST & json_proto [07:22:31]process_json_proto [07:22:31]json parsed OK: [07:22:31]protocol is kg_v1.0 [07:22:31]action value=close_receipt [07:22:31]process_action close_receipt [07:22:31]cmd_close_receipt [07:22:31]MH_GetDate [07:22:31]Write to MH i2c: F0 00 00 25 0B 1F [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 09 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: F0 09 00 25 0B 00 39 84 1B 66 E0 85 7F 64 AE [07:22:31]GetLastDocTimeStamp 1713078790 [07:22:31]current date 1713079353 [07:22:31]FM_GetShiftState [07:22:31]SAM_PROTO_GetShiftState [07:22:31]wFMCommunicate request_size=4 [07:22:31]MH_SAM_APDU [07:22:31]CAPDU: 80 13 01 00 [07:22:31]Write to MH i2c: E2 08 00 26 0B 80 13 01 00 00 00 00 00 AE [07:22:31]Write i2c OK [07:22:31]MH_I2C_Read... [07:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:31]Read from MH i2c: E2 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 0E 00 [07:22:31]MH_I2C_Read... [07:22:31]Read from MH i2c: E2 0E 00 26 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 46 [07:22:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:22:31]wFMCommunicate OK [07:22:31]SAM_PROTO_GetShiftState done [07:22:31]FM_GetShiftState done [07:22:31]opened in 1713054696 [07:22:31]opened+sec_in_day 1713141096 [07:22:31]quantity*price = 120009 [07:22:31]sum+1 = 120010 [07:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 34 14.04.2024 07:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112135 ФПД: 9016266627510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072233&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112135&fm=9016266627510&tin=02508201610067®Number=0000000000094237&sum=120000 [07:22:32]StoreToDocumentArchive [07:22:32]shift 357 fd 112135 [07:22:32]save to /storage/0357/doc_00112135 [07:22:32]save last doc name /storage/0357/doc_00112135 to /storage/kkm_last_doc_name [07:22:32]save OK [07:22:32]Clear old archive folders... [07:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [07:22:32]tlvbuf is 01B23F50 [07:22:32]SAM_PROTO_ClearQueue [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 09 00 00 [07:22:32]Write to MH i2c: E2 08 00 33 0B 80 09 00 00 00 00 00 00 B0 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]SAM_PROTO_ClearQueue done [07:22:32]KKMCreateOFDPacket [07:22:32]OFDProtocolAddRootSTLVToBuf [07:22:32]FM_MakeSignedData [07:22:32]FM_MakeSignedData [07:22:32]SAM_PROTO_SignData [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 01 02 [07:22:32]Write to MH i2c: E2 08 00 34 0B 80 0D 01 02 00 00 00 00 B8 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 34 0B 00 90 00 B3 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]wFMCommunicate request_size=255 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B6 01 00 35 04 06 00 08 33 [07:22:32]Write to MH i2c: E2 02 01 35 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B6 01 00 35 04 06 00 08 33 00 00 CE [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 35 0B 00 90 00 B4 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]wFMCommunicate request_size=9 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 02 02 04 43 5E 99 B6 [07:22:32]Write to MH i2c: E2 0C 00 36 0B 80 0D 02 02 04 00 43 5E 99 B6 00 00 B3 [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 03 00 36 0B 00 90 00 B5 [07:22:32]RAPDU: 90 00 [07:22:32]wFMCommunicate OK [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 0D 03 02 [07:22:32]Write to MH i2c: E2 08 00 37 0B 80 0D 03 02 00 00 00 00 BD [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 0B 00 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 0B 00 37 0B 00 3C 24 7A 4B 9E 72 BC CD 90 00 7C [07:22:32]RAPDU: 3C 24 7A 4B 9E 72 BC CD 90 00 [07:22:32]wFMCommunicate OK [07:22:32]SAM_PROTO_SignData done [07:22:32]FM_MakeSignedData done [07:22:32]CreateOFDProtocolMessage [07:22:32]wFMCommunicate request_size=4 [07:22:32]MH_SAM_APDU [07:22:32]CAPDU: 80 11 00 00 [07:22:32]Write to MH i2c: E2 08 00 38 0B 80 11 00 00 00 00 00 00 BD [07:22:32]Write i2c OK [07:22:32]MH_I2C_Read... [07:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:32]Read from MH i2c: E2 [07:22:32]MH_I2C_Read... [07:22:32]Read from MH i2c: E2 17 00 [07:22:32]MH_I2C_Read... [07:22:33]Read from MH i2c: E2 17 00 38 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0E [07:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:22:33]wFMCommunicate OK [07:22:33]CreateOFDProtocolMessage done [07:22:33]OFDSenderStorePacket 112135 [07:22:33]StoreOFDPacket docnum=112135 [07:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 36 3C 06 01 71 1A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B6 01 00 35 04 06 00 08 33 43 5E 99 B6 3C 24 7A 4B 9E 72 BC CD [07:22:33]CheckFolder [07:22:33]dirname=/storage/ofd_packets [07:22:33]CheckFolder done [07:22:33]ProducePacketName [07:22:33]name=ofd_packets/00112135 [07:22:33]NVStorageSaveData ofd_packets/00112135 [07:22:33]File name is /storage/ofd_packets/00112135 [07:22:33]Write 300 bytes [07:22:33]NVStorageSaveData done [07:22:33]OFDSenderStorePacket done [07:22:33]KKMCreateOFDPacket done [07:22:33]NVStorageSaveData kkm_last_timestamp [07:22:33]File name is /storage/kkm_last_timestamp [07:22:33]Write 4 bytes [07:22:33]NVStorageSaveData done [07:22:33]ExternCall_PrintAddStr [07:22:33]wPrintStart [07:22:33]Write to MH i2c: 01 00 00 39 0B 44 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 39 0B 00 00 00 00 00 FF 0F 59 [07:22:33]RasterBufferAndPrint [07:22:33]line Счет N : (1)48458 [07:22:33]line ИНН: 02508201610067 [07:22:33]line Контрольно-Кассовый Чек [07:22:33]line ПРОДАЖА [07:22:33]line ТРК (МРК, ГНК) : 72 [07:22:33]line Товар: 2711190000 [07:22:33]line ГАЗ-К-5 [07:22:33]line 36.700 * 32.70 [07:22:33]line = 1200.09 [07:22:33]line НДС 12% НСП 1% [07:22:33]line > о реализуемом товаре [07:22:33]line ОКРУГЛЕНИЕ: -0.09 [07:22:33]line ИТОГО: 1200.00 [07:22:33]line Внесено: 1200.00 [07:22:33]line СДАЧА: 0.00 [07:22:33]line НСП 1% : 10.62 [07:22:33]line НДС 12% : 127.44 [07:22:33]line Наличными: 1200.00 [07:22:33]line Безнал.: 0.00 [07:22:33]line Место: АЗС № 47 "Партнер Нефть" [07:22:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:22:33]line СНО: Общий режим [07:22:33]line Чек 34 14.04.2024 07:22 [07:22:33]line Смена: 357 ФФД: 1.0 [07:22:33]line ЗНМ: 0300000138 [07:22:33]line РНМ: 0000000000094237 [07:22:33]line Версия ККМ: 001 [07:22:33]line ФМ: 0000000000875019 [07:22:33]line ФД: 112135 [07:22:33]line ФПД: 9016266627510 [07:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072233&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112135&fm=9016266627510&tin=02508201610067®Number=0000000000094237&sum=120000 [07:22:33]OFD Sender: Processing packet 112135 [packets to send 71, broken 70] [07:22:33]ProducePacketName [07:22:33]name=ofd_packets/00112135 [07:22:33]OFD Sender: To server: pG, [07:22:33]CommunicateWithHost lk.salyk.kg:30040 [07:22:33]ConnectInit lk.salyk.kg [07:22:33]written 0, free lines is 4095 [07:22:33]Connected sock=10 [07:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 36 3C 06 01 71 1A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 39 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B6 01 00 35 04 06 00 08 33 43 5E 99 B6 3C 24 7A 4B 9E 72 BC CD [07:22:33]Write to MH i2c: 01 00 00 64 0B 6F [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: 01 07 00 64 0B 00 00 00 00 00 C6 0C 48 [07:22:33]RasterBufferAndPrint [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]line [07:22:33]written 0, free lines is 3276 [07:22:33]MH_Cut [07:22:33]Write to MH i2c: D1 01 00 6B 0B 01 48 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 [07:22:33]MH_I2C_Read... [07:22:33]Read from MH i2c: D1 01 00 6B 0B 00 47 [07:22:33]Write to MH i2c: 01 00 00 6C 0B 77 [07:22:33]Write i2c OK [07:22:33]MH_I2C_Read... [07:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 72 68 47 00 3E DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B6 01 00 F4 03 04 00 C6 2B 1B 66 B6 04 01 00 00 1A BE 3F 6C 21 5C 90 2D [07:22:33]CommunicateWithHost err = 0 [07:22:33]CheckOFDResponse [07:22:33]1017 (14) - 77093643461234 [07:22:33]1041 (16) - 0000000000875019 [07:22:33]1040 (4) - 112135 [07:22:33]1012 (4) - 14.04.2024 01:05 [07:22:33]1206 (1) - 0 [07:22:33]OFD Sender: Remove packet 112135 [07:22:33]ProducePacketName [07:22:33]name=ofd_packets/00112135 [07:22:33]NVStorageDeleteData [07:22:34]OFD Sender: No OFD packet to send [07:22:34]*** Cut start [07:22:34]*** Partial cut [07:22:34]*** CUTSNS_PIN = 1 [07:22:34]*** CUTSNS_PIN = 0 [07:22:34]*** Brake cut motor [07:22:35]Read from MH i2c: 01 [07:22:35]MH_I2C_Read... [07:22:35]*** Stop cut motor [07:22:35]*** Cut end [07:22:35]Read from MH i2c: 01 07 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: 01 07 00 6C 0B 00 00 00 00 00 FF 0F 8C [07:22:35]process_action close_receipt done [07:22:35]requested_data is exist [07:22:35]produce_requested_data [07:22:35]requested_item fm.sn is exist - process it [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 11 00 00 [07:22:35]Write to MH i2c: E2 08 00 6D 0B 80 11 00 00 00 00 00 00 F2 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 17 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 17 00 6D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 43 [07:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:22:35]wFMCommunicate OK [07:22:35]requested_item fd.num is exist - process it [07:22:35]SAM_PROTO_GetFieldsCounters [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 13 00 00 [07:22:35]Write to MH i2c: E2 08 00 6E 0B 80 13 00 00 00 00 00 00 F5 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 62 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 62 00 6E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 07 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [07:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 07 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:22:35]wFMCommunicate OK [07:22:35]SAM_PROTO_GetFieldsCounters done [07:22:35]requested_item shift.num is exist - process it [07:22:35]requested_item shift.opened is exist - process it [07:22:35]req_shift_opened [07:22:35]FM_GetShiftState [07:22:35]SAM_PROTO_GetShiftState [07:22:35]wFMCommunicate request_size=4 [07:22:35]MH_SAM_APDU [07:22:35]CAPDU: 80 13 01 00 [07:22:35]Write to MH i2c: E2 08 00 6F 0B 80 13 01 00 00 00 00 00 F7 [07:22:35]Write i2c OK [07:22:35]MH_I2C_Read... [07:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:22:35]Read from MH i2c: E2 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 0E 00 [07:22:35]MH_I2C_Read... [07:22:35]Read from MH i2c: E2 0E 00 6F 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8F [07:22:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:22:35]wFMCommunicate OK [07:22:35]SAM_PROTO_GetShiftState done [07:22:35]FM_GetShiftState done [07:22:35]req_shift_opened done [07:22:35]requested_item shift.open_date is exist - process it [07:22:35]req_shift_open_date [07:22:35]req_shift_open_date done [07:22:35]produce_requested_data done [07:22:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112135,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:22:35]process_action_free close_receipt [07:22:35]json_value_free [07:22:35]json_value_free done [07:22:35]process_json_proto returns [07:22:35]Send response to host [07:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112135,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:22:35]free response buf [07:22:35]execute_script done [07:22:35]execute_script returns [07:22:35]free content buf [07:22:35]Sock 9.Close socket [07:22:35]Sock 9.Thread stoped [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:28]accept exits with 8 [07:24:28]New connection [07:24:28]New thread 3067501924 created [07:24:28]Thread 3067358564 joined [07:24:28]Waiting for new connection... [07:24:28] Sock 8.Parse request [07:24:28]Sock 8.Check first char [07:24:28]Sock 8.First char is OK [07:24:28]request: POST /json_proto HTTP/1.0 [07:24:28]Method: POST [07:24:28]URL: /json_proto [07:24:28]Method is POST - this is cgi request [07:24:28]url: /json_proto [07:24:28]query_string will be loaded in cgi processing [07:24:28]execute_cgi json_proto POST (null) [07:24:28]execute_cgi path=json_proto method=POST [07:24:28]POST find Content-Length [07:24:28]Host: 172.17.96.197:8080 [07:24:28]Content-Length: 676 [07:24:28]Content-Type: application/json [07:24:28] [07:24:28]POST finish read [07:24:28]Found Content-Length = 676 [07:24:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48459", "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.30, "quantity" : 5.450, "sum" : 350.44, "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" ] } } [07:24:28]execute_script... [07:24: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)48459", "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.30, "quantity" : 5.450, "sum" : 350.44, "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" ] } } [07:24:28]POST & json_proto [07:24:28]process_json_proto [07:24:28]json parsed OK: [07:24:28]protocol is kg_v1.0 [07:24:28]action value=close_receipt [07:24:28]process_action close_receipt [07:24:28]cmd_close_receipt [07:24:28]MH_GetDate [07:24:28]Write to MH i2c: F0 00 00 70 0B 6A [07:24:28]Write i2c OK [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: F0 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: F0 09 00 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: F0 09 00 70 0B 00 AE 84 1B 66 E0 85 7F 64 6E [07:24:28]GetLastDocTimeStamp 1713079353 [07:24:28]current date 1713079470 [07:24:28]FM_GetShiftState [07:24:28]SAM_PROTO_GetShiftState [07:24:28]wFMCommunicate request_size=4 [07:24:28]MH_SAM_APDU [07:24:28]CAPDU: 80 13 01 00 [07:24:28]Write to MH i2c: E2 08 00 71 0B 80 13 01 00 00 00 00 00 F9 [07:24:28]Write i2c OK [07:24:28]MH_I2C_Read... [07:24:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:28]Read from MH i2c: E2 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: E2 0E 00 [07:24:28]MH_I2C_Read... [07:24:28]Read from MH i2c: E2 0E 00 71 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 91 [07:24:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:24:28]wFMCommunicate OK [07:24:28]SAM_PROTO_GetShiftState done [07:24:28]FM_GetShiftState done [07:24:28]opened in 1713054696 [07:24:28]opened+sec_in_day 1713141096 [07:24:28]quantity*price = 35043 [07:24:28]sum+1 = 35045 [07:24:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 35 14.04.2024 07:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112136 ФПД: 108127389305846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072430&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112136&fm=108127389305846&tin=02508201610067®Number=0000000000094237&sum=35000 [07:24:29]StoreToDocumentArchive [07:24:29]shift 357 fd 112136 [07:24:29]save to /storage/0357/doc_00112136 [07:24:29]save last doc name /storage/0357/doc_00112136 to /storage/kkm_last_doc_name [07:24:29]save OK [07:24:29]Clear old archive folders... [07:24:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:24:29]tlvbuf is 019A2250 [07:24:29]SAM_PROTO_ClearQueue [07:24:29]wFMCommunicate request_size=4 [07:24:29]MH_SAM_APDU [07:24:29]CAPDU: 80 09 00 00 [07:24:29]Write to MH i2c: E2 08 00 7E 0B 80 09 00 00 00 00 00 00 FB [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:29]Read from MH i2c: E2 03 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 7E 0B 00 90 00 FD [07:24:29]RAPDU: 90 00 [07:24:29]wFMCommunicate OK [07:24:29]SAM_PROTO_ClearQueue done [07:24:29]KKMCreateOFDPacket [07:24:29]OFDProtocolAddRootSTLVToBuf [07:24:29]FM_MakeSignedData [07:24:29]FM_MakeSignedData [07:24:29]SAM_PROTO_SignData [07:24:29]wFMCommunicate request_size=4 [07:24:29]MH_SAM_APDU [07:24:29]CAPDU: 80 0D 01 02 [07:24:29]Write to MH i2c: E2 08 00 7F 0B 80 0D 01 02 00 00 00 00 03 [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 7F 0B 00 90 00 FE [07:24:29]RAPDU: 90 00 [07:24:29]wFMCommunicate OK [07:24:29]wFMCommunicate request_size=255 [07:24:29]MH_SAM_APDU [07:24: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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 23 00 00 00 F4 03 04 00 AE 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B6 01 00 35 04 06 00 62 [07:24:29]Write to MH i2c: E2 02 01 80 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 23 00 00 00 F4 03 04 00 AE 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B6 01 00 35 04 06 00 62 00 00 B8 [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]OFD Sender: No OFD packet to send [07:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 80 0B 00 90 00 FF [07:24:29]RAPDU: 90 00 [07:24:29]wFMCommunicate OK [07:24:29]wFMCommunicate request_size=10 [07:24:29]MH_SAM_APDU [07:24:29]CAPDU: 80 0D 02 02 05 57 5E A1 4B F6 [07:24:29]Write to MH i2c: E2 0D 00 81 0B 80 0D 02 02 05 00 57 5E A1 4B F6 00 00 A7 [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 03 00 81 0B 00 90 00 00 [07:24:29]RAPDU: 90 00 [07:24:29]wFMCommunicate OK [07:24:29]wFMCommunicate request_size=4 [07:24:29]MH_SAM_APDU [07:24:29]CAPDU: 80 0D 03 02 [07:24:29]Write to MH i2c: E2 08 00 82 0B 80 0D 03 02 00 00 00 00 08 [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 0B 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 0B 00 82 0B 00 BD A9 E6 5C 99 33 50 19 90 00 E6 [07:24:29]RAPDU: BD A9 E6 5C 99 33 50 19 90 00 [07:24:29]wFMCommunicate OK [07:24:29]SAM_PROTO_SignData done [07:24:29]FM_MakeSignedData done [07:24:29]CreateOFDProtocolMessage [07:24:29]wFMCommunicate request_size=4 [07:24:29]MH_SAM_APDU [07:24:29]CAPDU: 80 11 00 00 [07:24:29]Write to MH i2c: E2 08 00 83 0B 80 11 00 00 00 00 00 00 08 [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:29]Read from MH i2c: E2 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 17 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: E2 17 00 83 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [07:24:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:24:29]wFMCommunicate OK [07:24:29]CreateOFDProtocolMessage done [07:24:29]OFDSenderStorePacket 112136 [07:24:29]StoreOFDPacket docnum=112136 [07:24:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B E2 07 01 48 DD 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 23 00 00 00 F4 03 04 00 AE 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B6 01 00 35 04 06 00 62 57 5E A1 4B F6 BD A9 E6 5C 99 33 50 19 [07:24:29]CheckFolder [07:24:29]dirname=/storage/ofd_packets [07:24:29]CheckFolder done [07:24:29]ProducePacketName [07:24:29]name=ofd_packets/00112136 [07:24:29]NVStorageSaveData ofd_packets/00112136 [07:24:29]File name is /storage/ofd_packets/00112136 [07:24:29]Write 301 bytes [07:24:29]NVStorageSaveData done [07:24:29]OFDSenderStorePacket done [07:24:29]KKMCreateOFDPacket done [07:24:29]NVStorageSaveData kkm_last_timestamp [07:24:29]File name is /storage/kkm_last_timestamp [07:24:29]Write 4 bytes [07:24:29]NVStorageSaveData done [07:24:29]OFD Sender: Processing packet 112136 [packets to send 71, broken 70] [07:24:29]ProducePacketName [07:24:29]name=ofd_packets/00112136 [07:24:29]OFD Sender: To server: pG, [07:24:29]CommunicateWithHost lk.salyk.kg:30040 [07:24:29]ConnectInit lk.salyk.kg [07:24:29]ExternCall_PrintAddStr [07:24:29]wPrintStart [07:24:29]Write to MH i2c: 01 00 00 84 0B 8F [07:24:29]Write i2c OK [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: 01 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: 01 07 00 [07:24:29]MH_I2C_Read... [07:24:29]Read from MH i2c: 01 07 00 84 0B 00 00 00 00 00 FF 0F A4 [07:24:29]RasterBufferAndPrint [07:24:29]line Счет N : (1)48459 [07:24:29]line ИНН: 02508201610067 [07:24:29]line Контрольно-Кассовый Чек [07:24:29]line ПРОДАЖА [07:24:29]line ТРК (МРК, ГНК) : 42 [07:24:29]line Товар: 2710124130 [07:24:29]line Аи-92-К-5 [07:24:29]line 5.450 * 64.30 [07:24:29]line = 350.44 [07:24:29]line НДС 12% НСП 1% [07:24:29]line > о реализуемом товаре [07:24:29]line ОКРУГЛЕНИЕ: -0.44 [07:24:29]line ИТОГО: 350.00 [07:24:29]line Внесено: 350.00 [07:24:29]line СДАЧА: 0.00 [07:24:29]line НСП 1% : 3.10 [07:24:29]line НДС 12% : 37.21 [07:24:29]line Наличными: 350.00 [07:24:29]line Безнал.: 0.00 [07:24:29]line Место: АЗС № 47 "Партнер Нефть" [07:24:29]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:24:29]line СНО: Общий режим [07:24:29]line Чек 35 14.04.2024 07:24 [07:24:29]line Смена: 357 ФФД: 1.0 [07:24:29]line ЗНМ: 0300000138 [07:24:29]line РНМ: 0000000000094237 [07:24:29]line Версия ККМ: 001 [07:24:29]line ФМ: 0000000000875019 [07:24:29]line ФД: 112136 [07:24:30]line ФПД: 108127389305846 [07:24:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072430&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112136&fm=108127389305846&tin=02508201610067®Number=0000000000094237&sum=35000 [07:24:30]Connected sock=11 [07:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B E2 07 01 48 DD 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 23 00 00 00 F4 03 04 00 AE 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B6 01 00 35 04 06 00 62 57 5E A1 4B F6 BD A9 E6 5C 99 33 50 19 [07:24:30]written 0, free lines is 4095 [07:24:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F0 70 47 00 A0 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B6 01 00 F4 03 04 00 3A 2C 1B 66 B6 04 01 00 00 53 B4 5F 37 7F 6E D2 1F [07:24:30]CommunicateWithHost err = 0 [07:24:30]CheckOFDResponse [07:24:30]1017 (14) - 77093643461234 [07:24:30]1041 (16) - 0000000000875019 [07:24:30]1040 (4) - 112136 [07:24:30]1012 (4) - 14.04.2024 01:07 [07:24:30]1206 (1) - 0 [07:24:30]OFD Sender: Remove packet 112136 [07:24:30]ProducePacketName [07:24:30]name=ofd_packets/00112136 [07:24:30]NVStorageDeleteData [07:24:30]Write to MH i2c: 01 00 00 AF 0B BA [07:24:30]Write i2c OK [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: 01 [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: 01 07 00 [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: 01 07 00 AF 0B 00 00 00 00 00 CC 0C 99 [07:24:30]RasterBufferAndPrint [07:24:30]line [07:24:30]line [07:24:30]line [07:24:30]line [07:24:30]line [07:24:30]written 0, free lines is 3283 [07:24:30]MH_Cut [07:24:30]Write to MH i2c: D1 01 00 B6 0B 01 93 [07:24:30]Write i2c OK [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: D1 [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: D1 01 00 [07:24:30]MH_I2C_Read... [07:24:30]Read from MH i2c: D1 01 00 B6 0B 00 92 [07:24:30]Write to MH i2c: 01 00 00 B7 0B C2 [07:24:30]Write i2c OK [07:24:30]MH_I2C_Read... [07:24:30]OFD Sender: No OFD packet to send [07:24:31]*** Cut start [07:24:31]*** Partial cut [07:24:31]*** CUTSNS_PIN = 1 [07:24:31]*** CUTSNS_PIN = 0 [07:24:31]*** Brake cut motor [07:24:31]Read from MH i2c: 01 [07:24:31]MH_I2C_Read... [07:24:31]*** Stop cut motor [07:24:31]*** Cut end [07:24:31]Read from MH i2c: 01 07 00 [07:24:31]MH_I2C_Read... [07:24:31]Read from MH i2c: 01 07 00 B7 0B 00 00 00 00 00 FF 0F D7 [07:24:31]process_action close_receipt done [07:24:31]requested_data is exist [07:24:31]produce_requested_data [07:24:31]requested_item fm.sn is exist - process it [07:24:31]wFMCommunicate request_size=4 [07:24:32]MH_SAM_APDU [07:24:32]CAPDU: 80 11 00 00 [07:24:32]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [07:24:32]Write i2c OK [07:24:32]MH_I2C_Read... [07:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:32]Read from MH i2c: E2 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 17 00 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [07:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:24:32]wFMCommunicate OK [07:24:32]requested_item fd.num is exist - process it [07:24:32]SAM_PROTO_GetFieldsCounters [07:24:32]wFMCommunicate request_size=4 [07:24:32]MH_SAM_APDU [07:24:32]CAPDU: 80 13 00 00 [07:24:32]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [07:24:32]Write i2c OK [07:24:32]MH_I2C_Read... [07:24:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:32]Read from MH i2c: E2 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 62 00 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 08 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [07:24:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 08 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:24:32]wFMCommunicate OK [07:24:32]SAM_PROTO_GetFieldsCounters done [07:24:32]requested_item shift.num is exist - process it [07:24:32]requested_item shift.opened is exist - process it [07:24:32]req_shift_opened [07:24:32]FM_GetShiftState [07:24:32]SAM_PROTO_GetShiftState [07:24:32]wFMCommunicate request_size=4 [07:24:32]MH_SAM_APDU [07:24:32]CAPDU: 80 13 01 00 [07:24:32]Write to MH i2c: E2 08 00 BA 0B 80 13 01 00 00 00 00 00 42 [07:24:32]Write i2c OK [07:24:32]MH_I2C_Read... [07:24:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:32]Read from MH i2c: E2 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 0E 00 [07:24:32]MH_I2C_Read... [07:24:32]Read from MH i2c: E2 0E 00 BA 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DA [07:24:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:24:32]wFMCommunicate OK [07:24:32]SAM_PROTO_GetShiftState done [07:24:32]FM_GetShiftState done [07:24:32]req_shift_opened done [07:24:32]requested_item shift.open_date is exist - process it [07:24:32]req_shift_open_date [07:24:32]req_shift_open_date done [07:24:32]produce_requested_data done [07:24:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112136,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:24:32]process_action_free close_receipt [07:24:32]json_value_free [07:24:32]json_value_free done [07:24:32]process_json_proto returns [07:24:32]Send response to host [07:24:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112136,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:24:32]free response buf [07:24:32]execute_script done [07:24:32]execute_script returns [07:24:32]free content buf [07:24:32]Sock 8.Close socket [07:24:32]Sock 8.Thread stoped [07:24:35]OFD Sender: No OFD packet to send [07:24:40]OFD Sender: No OFD packet to send [07:24:45]OFD Sender: No OFD packet to send [07:24:50]OFD Sender: No OFD packet to send [07:24:55]OFD Sender: No OFD packet to send [07:25:00]OFD Sender: No OFD packet to send [07:25:05]OFD Sender: No OFD packet to send [07:25:10]OFD Sender: No OFD packet to send [07:25:15]OFD Sender: No OFD packet to send [07:25:20]OFD Sender: No OFD packet to send [07:25:25]OFD Sender: No OFD packet to send [07:25:30]OFD Sender: No OFD packet to send [07:25:32]accept exits with 9 [07:25:32]New connection [07:25:32]New thread 3067358564 created [07:25:32]Thread 3067501924 joined [07:25:32]Waiting for new connection... [07:25:32] Sock 9.Parse request [07:25:32]Sock 9.Check first char [07:25:32]Sock 9.First char is OK [07:25:32]request: POST /json_proto HTTP/1.0 [07:25:32]Method: POST [07:25:32]URL: /json_proto [07:25:32]Method is POST - this is cgi request [07:25:32]url: /json_proto [07:25:32]query_string will be loaded in cgi processing [07:25:32]execute_cgi json_proto POST (null) [07:25:32]execute_cgi path=json_proto method=POST [07:25:32]POST find Content-Length [07:25:32]Host: 172.17.96.197:8080 [07:25:32]Content-Length: 818 [07:25:32]Content-Type: application/json [07:25:32] [07:25:32]POST finish read [07:25:32]Found Content-Length = 818 [07:25:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48460", "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.30, "quantity" : 15.560, "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" ] } } [07:25:32]execute_script... [07: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)48460", "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.30, "quantity" : 15.560, "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" ] } } [07:25:32]POST & json_proto [07:25:32]process_json_proto [07:25:32]json parsed OK: [07:25:32]protocol is kg_v1.0 [07:25:32]action value=close_receipt [07:25:32]process_action close_receipt [07:25:32]cmd_close_receipt [07:25:32]MH_GetDate [07:25:32]Write to MH i2c: F0 00 00 BB 0B B5 [07:25:32]Write i2c OK [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: F0 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: F0 09 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: F0 09 00 BB 0B 00 EF 84 1B 66 E0 85 7F 64 FA [07:25:32]GetLastDocTimeStamp 1713079470 [07:25:32]current date 1713079535 [07:25:32]FM_GetShiftState [07:25:32]SAM_PROTO_GetShiftState [07:25:32]wFMCommunicate request_size=4 [07:25:32]MH_SAM_APDU [07:25:32]CAPDU: 80 13 01 00 [07:25:32]Write to MH i2c: E2 08 00 BC 0B 80 13 01 00 00 00 00 00 44 [07:25:32]Write i2c OK [07:25:32]MH_I2C_Read... [07:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:32]Read from MH i2c: E2 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 0E 00 [07:25:32]MH_I2C_Read... [07:25:32]Read from MH i2c: E2 0E 00 BC 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DC [07:25:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:25:32]wFMCommunicate OK [07:25:32]SAM_PROTO_GetShiftState done [07:25:32]FM_GetShiftState done [07:25:32]opened in 1713054696 [07:25:32]opened+sec_in_day 1713141096 [07:25:32]quantity*price = 100050 [07:25:32]sum+1 = 100052 [07:25:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 36 14.04.2024 07:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112137 ФПД: 91500109006970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072535&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112137&fm=91500109006970&tin=02508201610067®Number=0000000000094237&sum=100051 [07:25:33]StoreToDocumentArchive [07:25:33]shift 357 fd 112137 [07:25:33]save to /storage/0357/doc_00112137 [07:25:33]save last doc name /storage/0357/doc_00112137 to /storage/kkm_last_doc_name [07:25:33]save OK [07:25:33]Clear old archive folders... [07:25:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:25:33]tlvbuf is 019C6B60 [07:25:33]SAM_PROTO_ClearQueue [07:25:33]wFMCommunicate request_size=4 [07:25:33]MH_SAM_APDU [07:25:33]CAPDU: 80 09 00 00 [07:25:33]Write to MH i2c: E2 08 00 C9 0B 80 09 00 00 00 00 00 00 46 [07:25:33]Write i2c OK [07:25:33]MH_I2C_Read... [07:25:33]Read from MH i2c: E2 [07:25:33]MH_I2C_Read... [07:25:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:25:33]Read from MH i2c: E2 03 00 [07:25:33]MH_I2C_Read... [07:25:33]Read from MH i2c: E2 03 00 C9 0B 00 90 00 48 [07:25:33]RAPDU: 90 00 [07:25:33]wFMCommunicate OK [07:25:33]SAM_PROTO_ClearQueue done [07:25:33]KKMCreateOFDPacket [07:25:33]OFDProtocolAddRootSTLVToBuf [07:25:33]FM_MakeSignedData [07:25:33]FM_MakeSignedData [07:25:33]SAM_PROTO_SignData [07:25:33]wFMCommunicate request_size=4 [07:25:33]MH_SAM_APDU [07:25:33]CAPDU: 80 0D 01 02 [07:25:33]Write to MH i2c: E2 08 00 CA 0B 80 0D 01 02 00 00 00 00 4E [07:25:33]Write i2c OK [07:25:33]MH_I2C_Read... [07:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:25:34]Read from MH i2c: E2 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 CA 0B 00 90 00 49 [07:25:34]RAPDU: 90 00 [07:25:34]wFMCommunicate OK [07:25:34]wFMCommunicate request_size=255 [07:25:34]MH_SAM_APDU [07:25: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 24 00 00 00 F4 03 04 00 EF 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B6 01 00 35 04 06 00 53 [07:25:34]Write to MH i2c: E2 02 01 CB 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 24 00 00 00 F4 03 04 00 EF 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B6 01 00 35 04 06 00 53 00 00 52 [07:25:34]Write i2c OK [07:25:34]MH_I2C_Read... [07:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:34]Read from MH i2c: E2 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 CB 0B 00 90 00 4A [07:25:34]RAPDU: 90 00 [07:25:34]wFMCommunicate OK [07:25:34]wFMCommunicate request_size=10 [07:25:34]MH_SAM_APDU [07:25:34]CAPDU: 80 0D 02 02 05 38 07 7E 88 7A [07:25:34]Write to MH i2c: E2 0D 00 CC 0B 80 0D 02 02 05 00 38 07 7E 88 7A 00 00 1A [07:25:34]Write i2c OK [07:25:34]MH_I2C_Read... [07:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:25:34]Read from MH i2c: E2 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 03 00 CC 0B 00 90 00 4B [07:25:34]RAPDU: 90 00 [07:25:34]wFMCommunicate OK [07:25:34]wFMCommunicate request_size=4 [07:25:34]MH_SAM_APDU [07:25:34]CAPDU: 80 0D 03 02 [07:25:34]Write to MH i2c: E2 08 00 CD 0B 80 0D 03 02 00 00 00 00 53 [07:25:34]Write i2c OK [07:25:34]MH_I2C_Read... [07:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:25:34]Read from MH i2c: E2 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 0B 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 0B 00 CD 0B 00 BB 97 54 C5 C8 2C 86 5B 90 00 94 [07:25:34]RAPDU: BB 97 54 C5 C8 2C 86 5B 90 00 [07:25:34]wFMCommunicate OK [07:25:34]SAM_PROTO_SignData done [07:25:34]FM_MakeSignedData done [07:25:34]CreateOFDProtocolMessage [07:25:34]wFMCommunicate request_size=4 [07:25:34]MH_SAM_APDU [07:25:34]CAPDU: 80 11 00 00 [07:25:34]Write to MH i2c: E2 08 00 CE 0B 80 11 00 00 00 00 00 00 53 [07:25:34]Write i2c OK [07:25:34]MH_I2C_Read... [07:25:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:34]Read from MH i2c: E2 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 17 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: E2 17 00 CE 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [07:25:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:25:34]wFMCommunicate OK [07:25:34]CreateOFDProtocolMessage done [07:25:34]OFDSenderStorePacket 112137 [07:25:34]StoreOFDPacket docnum=112137 [07:25:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DE F7 07 01 B8 48 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 3C 00 00 00 00 00 37 04 06 00 1E 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 24 00 00 00 F4 03 04 00 EF 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B6 01 00 35 04 06 00 53 38 07 7E 88 7A BB 97 54 C5 C8 2C 86 5B [07:25:34]CheckFolder [07:25:34]dirname=/storage/ofd_packets [07:25:34]CheckFolder done [07:25:34]ProducePacketName [07:25:34]name=ofd_packets/00112137 [07:25:34]NVStorageSaveData ofd_packets/00112137 [07:25:34]File name is /storage/ofd_packets/00112137 [07:25:34]Write 301 bytes [07:25:34]NVStorageSaveData done [07:25:34]OFDSenderStorePacket done [07:25:34]KKMCreateOFDPacket done [07:25:34]NVStorageSaveData kkm_last_timestamp [07:25:34]File name is /storage/kkm_last_timestamp [07:25:34]Write 4 bytes [07:25:34]NVStorageSaveData done [07:25:34]ExternCall_PrintAddStr [07:25:34]wPrintStart [07:25:34]Write to MH i2c: 01 00 00 CF 0B DA [07:25:34]Write i2c OK [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: 01 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: 01 07 00 [07:25:34]MH_I2C_Read... [07:25:34]Read from MH i2c: 01 07 00 CF 0B 00 00 00 00 00 FF 0F EF [07:25:34]RasterBufferAndPrint [07:25:34]line Счет N : (1)48460 [07:25:34]line ИНН: 02508201610067 [07:25:34]line Контрольно-Кассовый Чек [07:25:34]line ПРОДАЖА [07:25:34]line ТРК (МРК, ГНК) : 32 [07:25:34]line Товар: 2710124130 [07:25:34]line Аи-92-К-5 [07:25:34]line 15.560 * 64.30 [07:25:34]line = 1000.51 [07:25:34]line НДС 12% НСП 1% [07:25:34]line > о реализуемом товаре [07:25:34]line ИТОГО: 1000.51 [07:25:34]line НСП 1% : 8.85 [07:25:34]line НДС 12% : 106.25 [07:25:34]line Наличными: 0.00 [07:25:34]line Безнал.: 1000.51 [07:25:34]line Место: АЗС № 47 "Партнер Нефть" [07:25:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:25:34]line СНО: Общий режим [07:25:34]line Чек 36 14.04.2024 07:25 [07:25:34]line Смена: 357 ФФД: 1.0 [07:25:34]line ЗНМ: 0300000138 [07:25:34]line РНМ: 0000000000094237 [07:25:34]line Версия ККМ: 001 [07:25:34]line Платежная система: Бакай Банк [07:25:34]line ФМ: 0000000000875019 [07:25:34]line ФД: 112137 [07:25:34]line ФПД: 91500109006970 [07:25:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072535&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112137&fm=91500109006970&tin=02508201610067®Number=0000000000094237&sum=100051 [07:25:34]OFD Sender: Processing packet 112137 [packets to send 71, broken 70] [07:25:34]ProducePacketName [07:25:34]name=ofd_packets/00112137 [07:25:34]OFD Sender: To server: pG, [07:25:34]CommunicateWithHost lk.salyk.kg:30040 [07:25:34]ConnectInit lk.salyk.kg [07:25:34]written 0, free lines is 4095 [07:25:34]Connected sock=10 [07:25:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DE F7 07 01 B8 48 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 3C 00 00 00 00 00 37 04 06 00 1E 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 24 00 00 00 F4 03 04 00 EF 84 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B6 01 00 35 04 06 00 53 38 07 7E 88 7A BB 97 54 C5 C8 2C 86 5B [07:25:35]Write to MH i2c: 01 00 00 F9 0B 04 [07:25:35]Write i2c OK [07:25:35]MH_I2C_Read... [07:25:35]Read from MH i2c: 01 [07:25:35]MH_I2C_Read... [07:25:35]Read from MH i2c: 01 07 00 [07:25:35]MH_I2C_Read... [07:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 21 5B 47 00 C2 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 38 37 35 30 31 39 10 04 04 00 09 B6 01 00 F4 03 04 00 7B 2C 1B 66 B6 04 01 00 00 EB 67 D7 D5 38 A4 EE F8 [07:25:35]CommunicateWithHost err = 0 [07:25:35]CheckOFDResponse [07:25:35]1017 (14) - 77093643461234 [07:25:35]1041 (16) - 0000000000875019 [07:25:35]1040 (4) - 112137 [07:25:35]1012 (4) - 14.04.2024 01:08 [07:25:35]1206 (1) - 0 [07:25:35]OFD Sender: Remove packet 112137 [07:25:35]ProducePacketName [07:25:35]name=ofd_packets/00112137 [07:25:35]NVStorageDeleteData [07:25:35]Read from MH i2c: 01 07 00 F9 0B 00 00 00 00 00 DD 0C F4 [07:25:35]RasterBufferAndPrint [07:25:35]line [07:25:35]line [07:25:35]line [07:25:35]line [07:25:35]line [07:25:35]written 0, free lines is 3337 [07:25:35]MH_Cut [07:25:35]Write to MH i2c: D1 01 00 00 0C 01 DE [07:25:35]Write i2c OK [07:25:35]MH_I2C_Read... [07:25:35]Read from MH i2c: D1 [07:25:35]MH_I2C_Read... [07:25:35]Read from MH i2c: D1 01 00 [07:25:35]MH_I2C_Read... [07:25:35]Read from MH i2c: D1 01 00 00 0C 00 DD [07:25:35]Write to MH i2c: 01 00 00 01 0C 0D [07:25:35]Write i2c OK [07:25:35]MH_I2C_Read... [07:25:35]OFD Sender: No OFD packet to send [07:25:36]*** Cut start [07:25:36]*** Partial cut [07:25:36]*** CUTSNS_PIN = 1 [07:25:36]*** CUTSNS_PIN = 0 [07:25:36]*** Brake cut motor [07:25:36]Read from MH i2c: 01 [07:25:36]MH_I2C_Read... [07:25:36]*** Stop cut motor [07:25:36]*** Cut end [07:25:36]Read from MH i2c: 01 07 00 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: 01 07 00 01 0C 00 00 00 00 00 FF 0F 22 [07:25:36]process_action close_receipt done [07:25:36]requested_data is exist [07:25:36]produce_requested_data [07:25:36]requested_item fm.sn is exist - process it [07:25:36]wFMCommunicate request_size=4 [07:25:36]MH_SAM_APDU [07:25:36]CAPDU: 80 11 00 00 [07:25:36]Write to MH i2c: E2 08 00 02 0C 80 11 00 00 00 00 00 00 88 [07:25:36]Write i2c OK [07:25:36]MH_I2C_Read... [07:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:25:36]Read from MH i2c: E2 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 17 00 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 17 00 02 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [07:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:25:36]wFMCommunicate OK [07:25:36]requested_item fd.num is exist - process it [07:25:36]SAM_PROTO_GetFieldsCounters [07:25:36]wFMCommunicate request_size=4 [07:25:36]MH_SAM_APDU [07:25:36]CAPDU: 80 13 00 00 [07:25:36]Write to MH i2c: E2 08 00 03 0C 80 13 00 00 00 00 00 00 8B [07:25:36]Write i2c OK [07:25:36]MH_I2C_Read... [07:25:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:25:36]Read from MH i2c: E2 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 62 00 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 62 00 03 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 09 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [07:25:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 09 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:25:36]wFMCommunicate OK [07:25:36]SAM_PROTO_GetFieldsCounters done [07:25:36]requested_item shift.num is exist - process it [07:25:36]requested_item shift.opened is exist - process it [07:25:36]req_shift_opened [07:25:36]FM_GetShiftState [07:25:36]SAM_PROTO_GetShiftState [07:25:36]wFMCommunicate request_size=4 [07:25:36]MH_SAM_APDU [07:25:36]CAPDU: 80 13 01 00 [07:25:36]Write to MH i2c: E2 08 00 04 0C 80 13 01 00 00 00 00 00 8D [07:25:36]Write i2c OK [07:25:36]MH_I2C_Read... [07:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:36]Read from MH i2c: E2 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 0E 00 [07:25:36]MH_I2C_Read... [07:25:36]Read from MH i2c: E2 0E 00 04 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 25 [07:25:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:25:36]wFMCommunicate OK [07:25:36]SAM_PROTO_GetShiftState done [07:25:36]FM_GetShiftState done [07:25:36]req_shift_opened done [07:25:36]requested_item shift.open_date is exist - process it [07:25:36]req_shift_open_date [07:25:36]req_shift_open_date done [07:25:36]produce_requested_data done [07:25:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112137,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:25:36]process_action_free close_receipt [07:25:36]json_value_free [07:25:36]json_value_free done [07:25:36]process_json_proto returns [07:25:36]Send response to host [07:25:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112137,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:25:36]free response buf [07:25:36]execute_script done [07:25:36]execute_script returns [07:25:36]free content buf [07:25:36]Sock 9.Close socket [07:25:36]Sock 9.Thread stoped [07:25:40]OFD Sender: No OFD packet to send [07:25:45]OFD Sender: No OFD packet to send [07:25:50]OFD Sender: No OFD packet to send [07:25:55]OFD Sender: No OFD packet to send [07:26:00]OFD Sender: No OFD packet to send [07:26:05]OFD Sender: No OFD packet to send [07:26:10]OFD Sender: No OFD packet to send [07:26:15]OFD Sender: No OFD packet to send [07:26:20]OFD Sender: No OFD packet to send [07:26:25]OFD Sender: No OFD packet to send [07:26:30]OFD Sender: No OFD packet to send [07:26:35]OFD Sender: No OFD packet to send [07:26:40]OFD Sender: No OFD packet to send [07:26:45]OFD Sender: No OFD packet to send [07:26:50]OFD Sender: No OFD packet to send [07:26:55]OFD Sender: No OFD packet to send [07:27:00]OFD Sender: No OFD packet to send [07:27:05]OFD Sender: No OFD packet to send [07:27:10]OFD Sender: No OFD packet to send [07:27:15]OFD Sender: No OFD packet to send [07:27:20]OFD Sender: No OFD packet to send [07:27:25]OFD Sender: No OFD packet to send [07:27:30]OFD Sender: No OFD packet to send [07:27:35]OFD Sender: No OFD packet to send [07:27:40]OFD Sender: No OFD packet to send [07:27:45]OFD Sender: No OFD packet to send [07:27:50]OFD Sender: No OFD packet to send [07:27:55]OFD Sender: No OFD packet to send [07:28:00]OFD Sender: No OFD packet to send [07:28:05]OFD Sender: No OFD packet to send [07:28:10]OFD Sender: No OFD packet to send [07:28:15]OFD Sender: No OFD packet to send [07:28:20]OFD Sender: No OFD packet to send [07:28:25]OFD Sender: No OFD packet to send [07:28:30]OFD Sender: No OFD packet to send [07:28:35]OFD Sender: No OFD packet to send [07:28:40]OFD Sender: No OFD packet to send [07:28:45]OFD Sender: No OFD packet to send [07:28:50]OFD Sender: No OFD packet to send [07:28:55]OFD Sender: No OFD packet to send [07:29:00]OFD Sender: No OFD packet to send [07:29:04]accept exits with 8 [07:29:04]New connection [07:29:04]New thread 3067501924 created [07:29:04]Thread 3067358564 joined [07:29:04]Waiting for new connection... [07:29:04] Sock 8.Parse request [07:29:04]Sock 8.Check first char [07:29:04]Sock 8.First char is OK [07:29:04]request: POST /json_proto HTTP/1.0 [07:29:04]Method: POST [07:29:04]URL: /json_proto [07:29:04]Method is POST - this is cgi request [07:29:04]url: /json_proto [07:29:04]query_string will be loaded in cgi processing [07:29:04]execute_cgi json_proto POST (null) [07:29:04]execute_cgi path=json_proto method=POST [07:29:04]POST find Content-Length [07:29:04]Host: 172.17.96.197:8080 [07:29:04]Content-Length: 676 [07:29:04]Content-Type: application/json [07:29:04] [07:29:04]POST finish read [07:29:04]Found Content-Length = 676 [07:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48461", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [07:29:04]execute_script... [07:29: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)48461", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [07:29:04]POST & json_proto [07:29:04]process_json_proto [07:29:04]json parsed OK: [07:29:04]protocol is kg_v1.0 [07:29:04]action value=close_receipt [07:29:04]process_action close_receipt [07:29:04]cmd_close_receipt [07:29:04]MH_GetDate [07:29:04]Write to MH i2c: F0 00 00 05 0C 00 [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 09 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: F0 09 00 05 0C 00 C3 85 1B 66 E0 85 7F 64 1A [07:29:04]GetLastDocTimeStamp 1713079535 [07:29:04]current date 1713079747 [07:29:04]FM_GetShiftState [07:29:04]SAM_PROTO_GetShiftState [07:29:04]wFMCommunicate request_size=4 [07:29:04]MH_SAM_APDU [07:29:04]CAPDU: 80 13 01 00 [07:29:04]Write to MH i2c: E2 08 00 06 0C 80 13 01 00 00 00 00 00 8F [07:29:04]Write i2c OK [07:29:04]MH_I2C_Read... [07:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:04]Read from MH i2c: E2 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: E2 0E 00 [07:29:04]MH_I2C_Read... [07:29:04]Read from MH i2c: E2 0E 00 06 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 27 [07:29:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:29:04]wFMCommunicate OK [07:29:04]SAM_PROTO_GetShiftState done [07:29:04]FM_GetShiftState done [07:29:04]opened in 1713054696 [07:29:04]opened+sec_in_day 1713141096 [07:29:04]quantity*price = 30028 [07:29:04]sum+1 = 30029 [07:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 37 14.04.2024 07:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112138 ФПД: 161700261675529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112138&fm=161700261675529&tin=02508201610067®Number=0000000000094237&sum=30000 [07:29:05]StoreToDocumentArchive [07:29:05]shift 357 fd 112138 [07:29:05]save to /storage/0357/doc_00112138 [07:29:05]save last doc name /storage/0357/doc_00112138 to /storage/kkm_last_doc_name [07:29:05]save OK [07:29:05]Clear old archive folders... [07:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:05]tlvbuf is 019C7250 [07:29:05]SAM_PROTO_ClearQueue [07:29:05]wFMCommunicate request_size=4 [07:29:05]MH_SAM_APDU [07:29:05]CAPDU: 80 09 00 00 [07:29:05]Write to MH i2c: E2 08 00 13 0C 80 09 00 00 00 00 00 00 91 [07:29:05]Write i2c OK [07:29:05]MH_I2C_Read... [07:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:05]Read from MH i2c: E2 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 03 00 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [07:29:05]RAPDU: 90 00 [07:29:05]wFMCommunicate OK [07:29:05]SAM_PROTO_ClearQueue done [07:29:05]KKMCreateOFDPacket [07:29:05]OFDProtocolAddRootSTLVToBuf [07:29:05]FM_MakeSignedData [07:29:05]FM_MakeSignedData [07:29:05]SAM_PROTO_SignData [07:29:05]wFMCommunicate request_size=4 [07:29:05]MH_SAM_APDU [07:29:05]CAPDU: 80 0D 01 02 [07:29:05]Write to MH i2c: E2 08 00 14 0C 80 0D 01 02 00 00 00 00 99 [07:29:05]Write i2c OK [07:29:05]MH_I2C_Read... [07:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:05]Read from MH i2c: E2 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 03 00 [07:29:05]MH_I2C_Read... [07:29:05]Read from MH i2c: E2 03 00 14 0C 00 90 00 94 [07:29:05]RAPDU: 90 00 [07:29:05]wFMCommunicate OK [07:29:05]wFMCommunicate request_size=255 [07:29:05]MH_SAM_APDU [07:29: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 25 00 00 00 F4 03 04 00 C3 85 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B6 01 00 35 04 06 00 93 [07:29:05]Write to MH i2c: E2 02 01 15 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 25 00 00 00 F4 03 04 00 C3 85 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B6 01 00 35 04 06 00 93 00 00 67 [07:29:05]Write i2c OK [07:29:05]MH_I2C_Read... [07:29:06]OFD Sender: No OFD packet to send [07:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 15 0C 00 90 00 95 [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=10 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 02 02 05 10 C6 A8 42 09 [07:29:06]Write to MH i2c: E2 0D 00 16 0C 80 0D 02 02 05 00 10 C6 A8 42 09 00 00 6F [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 03 00 16 0C 00 90 00 96 [07:29:06]RAPDU: 90 00 [07:29:06]wFMCommunicate OK [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 0D 03 02 [07:29:06]Write to MH i2c: E2 08 00 17 0C 80 0D 03 02 00 00 00 00 9E [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0B 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 0B 00 17 0C 00 D2 71 00 BD CD B0 77 B3 90 00 46 [07:29:06]RAPDU: D2 71 00 BD CD B0 77 B3 90 00 [07:29:06]wFMCommunicate OK [07:29:06]SAM_PROTO_SignData done [07:29:06]FM_MakeSignedData done [07:29:06]CreateOFDProtocolMessage [07:29:06]wFMCommunicate request_size=4 [07:29:06]MH_SAM_APDU [07:29:06]CAPDU: 80 11 00 00 [07:29:06]Write to MH i2c: E2 08 00 18 0C 80 11 00 00 00 00 00 00 9E [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:06]Read from MH i2c: E2 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: E2 17 00 18 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EF [07:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:29:06]wFMCommunicate OK [07:29:06]CreateOFDProtocolMessage done [07:29:06]OFDSenderStorePacket 112138 [07:29:06]StoreOFDPacket docnum=112138 [07:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A9 EF 07 01 CE 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 25 00 00 00 F4 03 04 00 C3 85 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B6 01 00 35 04 06 00 93 10 C6 A8 42 09 D2 71 00 BD CD B0 77 B3 [07:29:06]CheckFolder [07:29:06]dirname=/storage/ofd_packets [07:29:06]CheckFolder done [07:29:06]ProducePacketName [07:29:06]name=ofd_packets/00112138 [07:29:06]NVStorageSaveData ofd_packets/00112138 [07:29:06]File name is /storage/ofd_packets/00112138 [07:29:06]Write 301 bytes [07:29:06]NVStorageSaveData done [07:29:06]OFDSenderStorePacket done [07:29:06]KKMCreateOFDPacket done [07:29:06]NVStorageSaveData kkm_last_timestamp [07:29:06]File name is /storage/kkm_last_timestamp [07:29:06]Write 4 bytes [07:29:06]NVStorageSaveData done [07:29:06]ExternCall_PrintAddStr [07:29:06]wPrintStart [07:29:06]Write to MH i2c: 01 00 00 19 0C 25 [07:29:06]Write i2c OK [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 07 00 [07:29:06]MH_I2C_Read... [07:29:06]Read from MH i2c: 01 07 00 19 0C 00 00 00 00 00 FF 0F 3A [07:29:06]RasterBufferAndPrint [07:29:06]line Счет N : (1)48461 [07:29:06]line ИНН: 02508201610067 [07:29:06]line Контрольно-Кассовый Чек [07:29:06]line ПРОДАЖА [07:29:06]line ТРК (МРК, ГНК) : 42 [07:29:06]line Товар: 2710124130 [07:29:06]line Аи-92-К-5 [07:29:06]line 4.670 * 64.30 [07:29:06]line = 300.28 [07:29:06]line НДС 12% НСП 1% [07:29:06]line > о реализуемом товаре [07:29:06]line ОКРУГЛЕНИЕ: -0.28 [07:29:06]line ИТОГО: 300.00 [07:29:06]line Внесено: 300.00 [07:29:06]line СДАЧА: 0.00 [07:29:06]line НСП 1% : 2.66 [07:29:06]line НДС 12% : 31.89 [07:29:06]line Наличными: 300.00 [07:29:06]line Безнал.: 0.00 [07:29:06]line Место: АЗС № 47 "Партнер Нефть" [07:29:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:29:06]line СНО: Общий режим [07:29:06]line Чек 37 14.04.2024 07:29 [07:29:06]line Смена: 357 ФФД: 1.0 [07:29:06]line ЗНМ: 0300000138 [07:29:06]line РНМ: 0000000000094237 [07:29:06]line Версия ККМ: 001 [07:29:06]line ФМ: 0000000000875019 [07:29:06]line ФД: 112138 [07:29:06]line ФПД: 161700261675529 [07:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T072907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112138&fm=161700261675529&tin=02508201610067®Number=0000000000094237&sum=30000 [07:29:06]OFD Sender: Processing packet 112138 [packets to send 71, broken 70] [07:29:06]ProducePacketName [07:29:06]name=ofd_packets/00112138 [07:29:06]OFD Sender: To server: pG, [07:29:06]CommunicateWithHost lk.salyk.kg:30040 [07:29:06]ConnectInit lk.salyk.kg [07:29:06]written 0, free lines is 4095 [07:29:06]Connected sock=11 [07:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A9 EF 07 01 CE 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 25 00 00 00 F4 03 04 00 C3 85 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B6 01 00 35 04 06 00 93 10 C6 A8 42 09 D2 71 00 BD CD B0 77 B3 [07:29:07]Write to MH i2c: 01 00 00 44 0C 50 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: 01 07 00 44 0C 00 00 00 00 00 D8 0C 3B [07:29:07]RasterBufferAndPrint [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]line [07:29:07]written 0, free lines is 3296 [07:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 23 59 47 00 E4 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B6 01 00 F4 03 04 00 4F 2D 1B 66 B6 04 01 00 00 90 E2 94 1A 11 3E 81 B0 [07:29:07]CommunicateWithHost err = 0 [07:29:07]CheckOFDResponse [07:29:07]1017 (14) - 77093643461234 [07:29:07]1041 (16) - 0000000000875019 [07:29:07]1040 (4) - 112138 [07:29:07]1012 (4) - 14.04.2024 01:11 [07:29:07]1206 (1) - 0 [07:29:07]OFD Sender: Remove packet 112138 [07:29:07]ProducePacketName [07:29:07]name=ofd_packets/00112138 [07:29:07]NVStorageDeleteData [07:29:07]MH_Cut [07:29:07]Write to MH i2c: D1 01 00 4B 0C 01 29 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 [07:29:07]MH_I2C_Read... [07:29:07]Read from MH i2c: D1 01 00 4B 0C 00 28 [07:29:07]Write to MH i2c: 01 00 00 4C 0C 58 [07:29:07]Write i2c OK [07:29:07]MH_I2C_Read... [07:29:07]OFD Sender: No OFD packet to send [07:29:07]*** Cut start [07:29:07]*** Partial cut [07:29:07]*** CUTSNS_PIN = 1 [07:29:07]*** CUTSNS_PIN = 0 [07:29:08]*** Brake cut motor [07:29:08]Read from MH i2c: 01 [07:29:08]MH_I2C_Read... [07:29:08]*** Stop cut motor [07:29:08]*** Cut end [07:29:08]Read from MH i2c: 01 07 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: 01 07 00 4C 0C 00 00 00 00 00 FF 0F 6D [07:29:08]process_action close_receipt done [07:29:08]requested_data is exist [07:29:08]produce_requested_data [07:29:08]requested_item fm.sn is exist - process it [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 11 00 00 [07:29:08]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 17 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [07:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:29:08]wFMCommunicate OK [07:29:08]requested_item fd.num is exist - process it [07:29:08]SAM_PROTO_GetFieldsCounters [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 13 00 00 [07:29:08]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 62 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 62 00 4E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [07:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:29:08]wFMCommunicate OK [07:29:08]SAM_PROTO_GetFieldsCounters done [07:29:08]requested_item shift.num is exist - process it [07:29:08]requested_item shift.opened is exist - process it [07:29:08]req_shift_opened [07:29:08]FM_GetShiftState [07:29:08]SAM_PROTO_GetShiftState [07:29:08]wFMCommunicate request_size=4 [07:29:08]MH_SAM_APDU [07:29:08]CAPDU: 80 13 01 00 [07:29:08]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [07:29:08]Write i2c OK [07:29:08]MH_I2C_Read... [07:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:08]Read from MH i2c: E2 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 0E 00 [07:29:08]MH_I2C_Read... [07:29:08]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 70 [07:29:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:29:08]wFMCommunicate OK [07:29:08]SAM_PROTO_GetShiftState done [07:29:08]FM_GetShiftState done [07:29:08]req_shift_opened done [07:29:08]requested_item shift.open_date is exist - process it [07:29:08]req_shift_open_date [07:29:08]req_shift_open_date done [07:29:08]produce_requested_data done [07:29:08]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112138,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:29:08]process_action_free close_receipt [07:29:08]json_value_free [07:29:08]json_value_free done [07:29:08]process_json_proto returns [07:29:08]Send response to host [07:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112138,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:29:08]free response buf [07:29:08]execute_script done [07:29:08]execute_script returns [07:29:08]free content buf [07:29:08]Sock 8.Close socket [07:29:08]Sock 8.Thread stoped [07:29:12]OFD Sender: No OFD packet to send [07:29:17]OFD Sender: No OFD packet to send [07:29:22]OFD Sender: No OFD packet to send [07:29:27]OFD Sender: No OFD packet to send [07:29:32]OFD Sender: No OFD packet to send [07:29:37]OFD Sender: No OFD packet to send [07:29:42]OFD Sender: No OFD packet to send [07:29:47]OFD Sender: No OFD packet to send [07:29:52]OFD Sender: No OFD packet to send [07:29:57]OFD Sender: No OFD packet to send [07:30:02]OFD Sender: No OFD packet to send [07:30:07]OFD Sender: No OFD packet to send [07:30:12]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:26]accept exits with 9 [07:31:26]New connection [07:31:26]New thread 3067358564 created [07:31:26]Thread 3067501924 joined [07:31:26]Waiting for new connection... [07:31:26] Sock 9.Parse request [07:31:26]Sock 9.Check first char [07:31:26]Sock 9.First char is OK [07:31:26]request: POST /json_proto HTTP/1.0 [07:31:26]Method: POST [07:31:26]URL: /json_proto [07:31:26]Method is POST - this is cgi request [07:31:26]url: /json_proto [07:31:26]query_string will be loaded in cgi processing [07:31:26]execute_cgi json_proto POST (null) [07:31:26]execute_cgi path=json_proto method=POST [07:31:26]POST find Content-Length [07:31:26]Host: 172.17.96.197:8080 [07:31:26]Content-Length: 897 [07:31:26]Content-Type: application/json [07:31:26] [07:31:26]POST finish read [07:31:26]Found Content-Length = 897 [07:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10404", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:26]execute_script... [07:31:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10404", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 197.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:31:26]POST & json_proto [07:31:26]process_json_proto [07:31:26]json parsed OK: [07:31:26]protocol is kg_v1.0 [07:31:26]action value=close_receipt [07:31:26]process_action close_receipt [07:31:26]cmd_close_receipt [07:31:26]MH_GetDate [07:31:26]Write to MH i2c: F0 00 00 50 0C 4B [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 09 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: F0 09 00 50 0C 00 51 86 1B 66 E0 85 7F 64 F4 [07:31:26]GetLastDocTimeStamp 1713079747 [07:31:26]current date 1713079889 [07:31:26]FM_GetShiftState [07:31:26]SAM_PROTO_GetShiftState [07:31:26]wFMCommunicate request_size=4 [07:31:26]MH_SAM_APDU [07:31:26]CAPDU: 80 13 01 00 [07:31:26]Write to MH i2c: E2 08 00 51 0C 80 13 01 00 00 00 00 00 DA [07:31:26]Write i2c OK [07:31:26]MH_I2C_Read... [07:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:26]Read from MH i2c: E2 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 [07:31:26]MH_I2C_Read... [07:31:26]Read from MH i2c: E2 0E 00 51 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 72 [07:31:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:31:26]wFMCommunicate OK [07:31:26]SAM_PROTO_GetShiftState done [07:31:26]FM_GetShiftState done [07:31:26]opened in 1713054696 [07:31:26]opened+sec_in_day 1713141096 [07:31:26]quantity*price = 13000 [07:31:26]sum+1 = 13001 [07:31:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 197.00 НСП 1% : 1.74 НДС 12% : 20.91 Наличными: 197.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 38 14.04.2024 07:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112139 ФПД: 153328322418448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073129&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112139&fm=153328322418448&tin=02508201610067®Number=0000000000094237&sum=19700 0 [07:31:27]StoreToDocumentArchive [07:31:27]shift 357 fd 112139 [07:31:27]save to /storage/0357/doc_00112139 [07:31:27]save last doc name /storage/0357/doc_00112139 to /storage/kkm_last_doc_name [07:31:27]save OK [07:31:27]Clear old archive folders... [07:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=386 [07:31:27]tlvbuf is 019D8BC0 [07:31:27]SAM_PROTO_ClearQueue [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 09 00 00 [07:31:27]Write to MH i2c: E2 08 00 5E 0C 80 09 00 00 00 00 00 00 DC [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]SAM_PROTO_ClearQueue done [07:31:27]KKMCreateOFDPacket [07:31:27]OFDProtocolAddRootSTLVToBuf [07:31:27]FM_MakeSignedData [07:31:27]FM_MakeSignedData [07:31:27]SAM_PROTO_SignData [07:31:27]wFMCommunicate request_size=4 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 01 02 [07:31:27]Write to MH i2c: E2 08 00 5F 0C 80 0D 01 02 00 00 00 00 E4 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:27]OFD Sender: No OFD packet to send [07:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:31:27]Read from MH i2c: E2 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 [07:31:27]MH_I2C_Read... [07:31:27]Read from MH i2c: E2 03 00 5F 0C 00 90 00 DF [07:31:27]RAPDU: 90 00 [07:31:27]wFMCommunicate OK [07:31:27]wFMCommunicate request_size=255 [07:31:27]MH_SAM_APDU [07:31:27]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [07:31:27]Write to MH i2c: E2 02 01 60 0C 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 E3 [07:31:27]Write i2c OK [07:31:27]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 03 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 03 00 60 0C 00 90 00 E0 [07:31:28]RAPDU: 90 00 [07:31:28]wFMCommunicate OK [07:31:28]wFMCommunicate request_size=145 [07:31:28]MH_SAM_APDU [07:31:28]CAPDU: 80 0D 02 02 8C 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B6 01 00 35 04 06 00 8B 73 88 31 17 10 [07:31:28]Write to MH i2c: E2 94 00 61 0C 80 0D 02 02 8C 00 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B6 01 00 35 04 06 00 8B 73 88 31 17 10 00 00 D5 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 03 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 03 00 61 0C 00 90 00 E1 [07:31:28]RAPDU: 90 00 [07:31:28]wFMCommunicate OK [07:31:28]wFMCommunicate request_size=4 [07:31:28]MH_SAM_APDU [07:31:28]CAPDU: 80 0D 03 02 [07:31:28]Write to MH i2c: E2 08 00 62 0C 80 0D 03 02 00 00 00 00 E9 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0B 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 0B 00 62 0C 00 8B 42 F1 F5 58 B7 CC 99 90 00 11 [07:31:28]RAPDU: 8B 42 F1 F5 58 B7 CC 99 90 00 [07:31:28]wFMCommunicate OK [07:31:28]SAM_PROTO_SignData done [07:31:28]FM_MakeSignedData done [07:31:28]CreateOFDProtocolMessage [07:31:28]wFMCommunicate request_size=4 [07:31:28]MH_SAM_APDU [07:31:28]CAPDU: 80 11 00 00 [07:31:28]Write to MH i2c: E2 08 00 63 0C 80 11 00 00 00 00 00 00 E9 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:28]Read from MH i2c: E2 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 17 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: E2 17 00 63 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3A [07:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:31:28]wFMCommunicate OK [07:31:28]CreateOFDProtocolMessage done [07:31:28]OFDSenderStorePacket 112139 [07:31:28]StoreOFDPacket docnum=112139 [07:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 96 01 00 00 B9 6F 8E 01 BB 70 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B6 01 00 35 04 06 00 8B 73 88 31 17 10 8B 42 F1 F5 58 B7 CC 99 [07:31:28]CheckFolder [07:31:28]dirname=/storage/ofd_packets [07:31:28]CheckFolder done [07:31:28]ProducePacketName [07:31:28]name=ofd_packets/00112139 [07:31:28]NVStorageSaveData ofd_packets/00112139 [07:31:28]File name is /storage/ofd_packets/00112139 [07:31:28]Write 436 bytes [07:31:28]NVStorageSaveData done [07:31:28]OFDSenderStorePacket done [07:31:28]KKMCreateOFDPacket done [07:31:28]NVStorageSaveData kkm_last_timestamp [07:31:28]File name is /storage/kkm_last_timestamp [07:31:28]Write 4 bytes [07:31:28]NVStorageSaveData done [07:31:28]ExternCall_PrintAddStr [07:31:28]wPrintStart [07:31:28]Write to MH i2c: 01 00 00 64 0C 70 [07:31:28]Write i2c OK [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 [07:31:28]MH_I2C_Read... [07:31:28]Read from MH i2c: 01 07 00 64 0C 00 00 00 00 00 FF 0F 85 [07:31:28]RasterBufferAndPrint [07:31:28]line Счет N : (3)10404 [07:31:28]line ИНН: 02508201610067 [07:31:28]line Контрольно-Кассовый Чек [07:31:28]line ПРОДАЖА [07:31:28]line Товар: 48745000 [07:31:28]line Сигареты Winston Purple Mix [07:31:28]line 1.000 * 130.00 [07:31:28]line = 130.00 [07:31:28]line НДС 12% НСП 1% [07:31:28]line > о реализуемом товаре [07:31:28]line Товар: 6931280300549 [07:31:28]line Зажигалка Cricket ПН пьезо [07:31:28]line 1.000 * 67.00 [07:31:28]line = 67.00 [07:31:28]line НДС 12% НСП 1% [07:31:28]line > о реализуемом товаре [07:31:28]line ИТОГО: 197.00 [07:31:28]line НСП 1% : 1.74 [07:31:28]line НДС 12% : 20.91 [07:31:28]line Наличными: 197.00 [07:31:28]line Безнал.: 0.00 [07:31:28]line Место: АЗС № 47 "Партнер Нефть" [07:31:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:31:28]line СНО: Общий режим [07:31:28]line Чек 38 14.04.2024 07:31 [07:31:28]line Смена: 357 ФФД: 1.0 [07:31:28]line ЗНМ: 0300000138 [07:31:28]line РНМ: 0000000000094237 [07:31:28]line Версия ККМ: 001 [07:31:28]line ФМ: 0000000000875019 [07:31:28]line ФД: 112139 [07:31:28]line ФПД: 153328322418448 [07:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073129&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112139&fm=153328322418448&tin=02508201610067®Number=0000000000094237&sum=19700 [07:31:28]line 0 [07:31:28]OFD Sender: Processing packet 112139 [packets to send 71, broken 70] [07:31:28]ProducePacketName [07:31:28]name=ofd_packets/00112139 [07:31:28]OFD Sender: To server: pG, [07:31:28]CommunicateWithHost lk.salyk.kg:30040 [07:31:28]ConnectInit lk.salyk.kg [07:31:28]written 0, free lines is 4095 [07:31:28]Connected sock=10 [07:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 96 01 00 00 B9 6F 8E 01 BB 70 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 08 00 00 00 00 07 04 06 00 F4 4C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 51 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B6 01 00 35 04 06 00 8B 73 88 31 17 10 8B 42 F1 F5 58 B7 CC 99 [07:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BB 04 47 00 D8 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B6 01 00 F4 03 04 00 DD 2D 1B 66 B6 04 01 00 00 03 1C 7A F8 87 C7 20 55 [07:31:29]CommunicateWithHost err = 0 [07:31:29]CheckOFDResponse [07:31:29]1017 (14) - 77093643461234 [07:31:29]1041 (16) - 0000000000875019 [07:31:29]1040 (4) - 112139 [07:31:29]1012 (4) - 14.04.2024 01:14 [07:31:29]1206 (1) - 0 [07:31:29]OFD Sender: Remove packet 112139 [07:31:29]ProducePacketName [07:31:29]name=ofd_packets/00112139 [07:31:29]NVStorageDeleteData [07:31:29]Write to MH i2c: 01 00 00 92 0C 9E [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 07 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: 01 07 00 92 0C 00 00 00 00 00 A4 0C 55 [07:31:29]RasterBufferAndPrint [07:31:29]line [07:31:29]line [07:31:29]line [07:31:29]line [07:31:29]line [07:31:29]written 0, free lines is 3242 [07:31:29]MH_Cut [07:31:29]Write to MH i2c: D1 01 00 99 0C 01 77 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: D1 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: D1 01 00 [07:31:29]MH_I2C_Read... [07:31:29]Read from MH i2c: D1 01 00 99 0C 00 76 [07:31:29]Write to MH i2c: 01 00 00 9A 0C A6 [07:31:29]Write i2c OK [07:31:29]MH_I2C_Read... [07:31:29]OFD Sender: No OFD packet to send [07:31:29]*** Cut start [07:31:29]*** Partial cut [07:31:29]*** CUTSNS_PIN = 1 [07:31:30]*** CUTSNS_PIN = 0 [07:31:30]*** Brake cut motor [07:31:30]Read from MH i2c: 01 [07:31:30]MH_I2C_Read... [07:31:30]*** Stop cut motor [07:31:30]*** Cut end [07:31:30]Read from MH i2c: 01 07 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: 01 07 00 9A 0C 00 00 00 00 00 FF 0F BB [07:31:30]process_action close_receipt done [07:31:30]requested_data is exist [07:31:30]produce_requested_data [07:31:30]requested_item fm.sn is exist - process it [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 11 00 00 [07:31:30]Write to MH i2c: E2 08 00 9B 0C 80 11 00 00 00 00 00 00 21 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 17 00 9B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 72 [07:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:31:30]wFMCommunicate OK [07:31:30]requested_item fd.num is exist - process it [07:31:30]SAM_PROTO_GetFieldsCounters [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 13 00 00 [07:31:30]Write to MH i2c: E2 08 00 9C 0C 80 13 00 00 00 00 00 00 24 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 62 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 62 00 9C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [07:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:31:30]wFMCommunicate OK [07:31:30]SAM_PROTO_GetFieldsCounters done [07:31:30]requested_item shift.num is exist - process it [07:31:30]requested_item shift.opened is exist - process it [07:31:30]req_shift_opened [07:31:30]FM_GetShiftState [07:31:30]SAM_PROTO_GetShiftState [07:31:30]wFMCommunicate request_size=4 [07:31:30]MH_SAM_APDU [07:31:30]CAPDU: 80 13 01 00 [07:31:30]Write to MH i2c: E2 08 00 9D 0C 80 13 01 00 00 00 00 00 26 [07:31:30]Write i2c OK [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 [07:31:30]MH_I2C_Read... [07:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:31:30]Read from MH i2c: E2 0E 00 [07:31:30]MH_I2C_Read... [07:31:30]Read from MH i2c: E2 0E 00 9D 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BE [07:31:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:31:30]wFMCommunicate OK [07:31:30]SAM_PROTO_GetShiftState done [07:31:30]FM_GetShiftState done [07:31:30]req_shift_opened done [07:31:30]requested_item shift.open_date is exist - process it [07:31:30]req_shift_open_date [07:31:30]req_shift_open_date done [07:31:30]produce_requested_data done [07:31:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112139,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:31:30]process_action_free close_receipt [07:31:30]json_value_free [07:31:30]json_value_free done [07:31:30]process_json_proto returns [07:31:30]Send response to host [07:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112139,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:31:30]free response buf [07:31:30]execute_script done [07:31:30]execute_script returns [07:31:30]free content buf [07:31:30]Sock 9.Close socket [07:31:30]Sock 9.Thread stoped [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:08]accept exits with 8 [07:32:08]New connection [07:32:08]New thread 3067501924 created [07:32:08]Thread 3067358564 joined [07:32:08]Waiting for new connection... [07:32:08] Sock 8.Parse request [07:32:08]Sock 8.Check first char [07:32:08]Sock 8.First char is OK [07:32:08]request: POST /json_proto HTTP/1.0 [07:32:08]Method: POST [07:32:08]URL: /json_proto [07:32:08]Method is POST - this is cgi request [07:32:08]url: /json_proto [07:32:08]query_string will be loaded in cgi processing [07:32:08]execute_cgi json_proto POST (null) [07:32:08]execute_cgi path=json_proto method=POST [07:32:08]POST find Content-Length [07:32:08]Host: 172.17.96.197:8080 [07:32:08]Content-Length: 681 [07:32:08]Content-Type: application/json [07:32:08] [07:32:08]POST finish read [07:32:08]Found Content-Length = 681 [07:32:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 24.870, "sum" : 1803.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1803.00, "total" : 1803.00, "payments": [ { "type": 0, "sum" : 1803.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:08]execute_script... [07:32:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 24.870, "sum" : 1803.08, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1803.00, "total" : 1803.00, "payments": [ { "type": 0, "sum" : 1803.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:08]POST & json_proto [07:32:08]process_json_proto [07:32:08]json parsed OK: [07:32:08]protocol is kg_v1.0 [07:32:08]action value=close_receipt [07:32:08]process_action close_receipt [07:32:08]cmd_close_receipt [07:32:08]MH_GetDate [07:32:08]Write to MH i2c: F0 00 00 9E 0C 99 [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: F0 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: F0 09 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: F0 09 00 9E 0C 00 7A 86 1B 66 E0 85 7F 64 6B [07:32:08]GetLastDocTimeStamp 1713079889 [07:32:08]current date 1713079930 [07:32:08]FM_GetShiftState [07:32:08]SAM_PROTO_GetShiftState [07:32:08]wFMCommunicate request_size=4 [07:32:08]MH_SAM_APDU [07:32:08]CAPDU: 80 13 01 00 [07:32:08]Write to MH i2c: E2 08 00 9F 0C 80 13 01 00 00 00 00 00 28 [07:32:08]Write i2c OK [07:32:08]MH_I2C_Read... [07:32:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:08]Read from MH i2c: E2 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 0E 00 [07:32:08]MH_I2C_Read... [07:32:08]Read from MH i2c: E2 0E 00 9F 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C0 [07:32:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:32:08]wFMCommunicate OK [07:32:08]SAM_PROTO_GetShiftState done [07:32:08]FM_GetShiftState done [07:32:08]opened in 1713054696 [07:32:08]opened+sec_in_day 1713141096 [07:32:08]quantity*price = 180307 [07:32:08]sum+1 = 180309 [07:32:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.08 ИТОГО: 1803.00 Внесено: 1803.00 СДАЧА: 0.00 НСП 1% : 15.96 НДС 12% : 191.48 Наличными: 1803.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 39 14.04.2024 07:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112140 ФПД: 27369007162544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073210&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112140&fm=27369007162544&tin=02508201610067®Number=0000000000094237&sum=180300 [07:32:09]StoreToDocumentArchive [07:32:09]shift 357 fd 112140 [07:32:09]save to /storage/0357/doc_00112140 [07:32:09]save last doc name /storage/0357/doc_00112140 to /storage/kkm_last_doc_name [07:32:09]save OK [07:32:09]Clear old archive folders... [07:32:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:09]tlvbuf is 019A19A0 [07:32:09]SAM_PROTO_ClearQueue [07:32:09]wFMCommunicate request_size=4 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 09 00 00 [07:32:09]Write to MH i2c: E2 08 00 AC 0C 80 09 00 00 00 00 00 00 2A [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 AC 0C 00 90 00 2C [07:32:09]RAPDU: 90 00 [07:32:09]wFMCommunicate OK [07:32:09]SAM_PROTO_ClearQueue done [07:32:09]KKMCreateOFDPacket [07:32:09]OFDProtocolAddRootSTLVToBuf [07:32:09]FM_MakeSignedData [07:32:09]FM_MakeSignedData [07:32:09]SAM_PROTO_SignData [07:32:09]wFMCommunicate request_size=4 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 0D 01 02 [07:32:09]Write to MH i2c: E2 08 00 AD 0C 80 0D 01 02 00 00 00 00 32 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 AD 0C 00 90 00 2D [07:32:09]RAPDU: 90 00 [07:32:09]wFMCommunicate OK [07:32:09]wFMCommunicate request_size=255 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 54 C0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C C0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 4A 00 00 00 00 07 04 06 00 4C C0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 7A 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B6 01 00 35 04 06 00 18 [07:32:09]Write to MH i2c: E2 02 01 AE 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 61 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 54 C0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C C0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 4A 00 00 00 00 07 04 06 00 4C C0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 7A 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B6 01 00 35 04 06 00 18 00 00 A6 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]OFD Sender: No OFD packet to send [07:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 AE 0C 00 90 00 2E [07:32:09]RAPDU: 90 00 [07:32:09]wFMCommunicate OK [07:32:09]wFMCommunicate request_size=10 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 0D 02 02 05 E4 57 F3 24 B0 [07:32:09]Write to MH i2c: E2 0D 00 AF 0C 80 0D 02 02 05 00 E4 57 F3 24 B0 00 00 41 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:09]Read from MH i2c: E2 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 [07:32:09]MH_I2C_Read... [07:32:09]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [07:32:09]RAPDU: 90 00 [07:32:09]wFMCommunicate OK [07:32:09]wFMCommunicate request_size=4 [07:32:09]MH_SAM_APDU [07:32:09]CAPDU: 80 0D 03 02 [07:32:09]Write to MH i2c: E2 08 00 B0 0C 80 0D 03 02 00 00 00 00 37 [07:32:09]Write i2c OK [07:32:09]MH_I2C_Read... [07:32:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:10]Read from MH i2c: E2 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 0B 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 0B 00 B0 0C 00 8F B1 C8 F4 D1 3E 2C 5F 90 00 CE [07:32:10]RAPDU: 8F B1 C8 F4 D1 3E 2C 5F 90 00 [07:32:10]wFMCommunicate OK [07:32:10]SAM_PROTO_SignData done [07:32:10]FM_MakeSignedData done [07:32:10]CreateOFDProtocolMessage [07:32:10]wFMCommunicate request_size=4 [07:32:10]MH_SAM_APDU [07:32:10]CAPDU: 80 11 00 00 [07:32:10]Write to MH i2c: E2 08 00 B1 0C 80 11 00 00 00 00 00 00 37 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:10]Read from MH i2c: E2 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 17 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: E2 17 00 B1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 88 [07:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:32:10]wFMCommunicate OK [07:32:10]CreateOFDProtocolMessage done [07:32:10]OFDSenderStorePacket 112140 [07:32:10]StoreOFDPacket docnum=112140 [07:32:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D4 A2 07 01 26 C6 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 26 61 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 54 C0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C C0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 4A 00 00 00 00 07 04 06 00 4C C0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 7A 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B6 01 00 35 04 06 00 18 E4 57 F3 24 B0 8F B1 C8 F4 D1 3E 2C 5F [07:32:10]CheckFolder [07:32:10]dirname=/storage/ofd_packets [07:32:10]CheckFolder done [07:32:10]ProducePacketName [07:32:10]name=ofd_packets/00112140 [07:32:10]NVStorageSaveData ofd_packets/00112140 [07:32:10]File name is /storage/ofd_packets/00112140 [07:32:10]Write 301 bytes [07:32:10]NVStorageSaveData done [07:32:10]OFDSenderStorePacket done [07:32:10]KKMCreateOFDPacket done [07:32:10]NVStorageSaveData kkm_last_timestamp [07:32:10]File name is /storage/kkm_last_timestamp [07:32:10]Write 4 bytes [07:32:10]NVStorageSaveData done [07:32:10]ExternCall_PrintAddStr [07:32:10]wPrintStart [07:32:10]Write to MH i2c: 01 00 00 B2 0C BE [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 07 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 07 00 B2 0C 00 00 00 00 00 FF 0F D3 [07:32:10]RasterBufferAndPrint [07:32:10]line Счет N : (1)48462 [07:32:10]line ИНН: 02508201610067 [07:32:10]line Контрольно-Кассовый Чек [07:32:10]line ПРОДАЖА [07:32:10]line ТРК (МРК, ГНК) : 12 [07:32:10]line Товар: 2710124500 [07:32:10]line Аи-95-К-5 [07:32:10]line 24.870 * 72.50 [07:32:10]line = 1803.08 [07:32:10]line НДС 12% НСП 1% [07:32:10]line > о реализуемом товаре [07:32:10]line ОКРУГЛЕНИЕ: -0.08 [07:32:10]line ИТОГО: 1803.00 [07:32:10]line Внесено: 1803.00 [07:32:10]line СДАЧА: 0.00 [07:32:10]line НСП 1% : 15.96 [07:32:10]line НДС 12% : 191.48 [07:32:10]line Наличными: 1803.00 [07:32:10]line Безнал.: 0.00 [07:32:10]line Место: АЗС № 47 "Партнер Нефть" [07:32:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:32:10]line СНО: Общий режим [07:32:10]line Чек 39 14.04.2024 07:32 [07:32:10]line Смена: 357 ФФД: 1.0 [07:32:10]line ЗНМ: 0300000138 [07:32:10]line РНМ: 0000000000094237 [07:32:10]line Версия ККМ: 001 [07:32:10]line ФМ: 0000000000875019 [07:32:10]line ФД: 112140 [07:32:10]line ФПД: 27369007162544 [07:32:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073210&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112140&fm=27369007162544&tin=02508201610067®Number=0000000000094237&sum=180300 [07:32:10]written 0, free lines is 4095 [07:32:10]OFD Sender: Processing packet 112140 [packets to send 71, broken 70] [07:32:10]ProducePacketName [07:32:10]name=ofd_packets/00112140 [07:32:10]OFD Sender: To server: pG, [07:32:10]CommunicateWithHost lk.salyk.kg:30040 [07:32:10]ConnectInit lk.salyk.kg [07:32:10]Connected sock=11 [07:32:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D4 A2 07 01 26 C6 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 26 61 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 54 C0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C C0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3C 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 4A 00 00 00 00 07 04 06 00 4C C0 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 7A 86 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B6 01 00 35 04 06 00 18 E4 57 F3 24 B0 8F B1 C8 F4 D1 3E 2C 5F [07:32:10]Write to MH i2c: 01 00 00 DD 0C E9 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 07 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: 01 07 00 DD 0C 00 00 00 00 00 D7 0C D3 [07:32:10]RasterBufferAndPrint [07:32:10]line [07:32:10]line [07:32:10]line [07:32:10]line [07:32:10]line [07:32:10]written 0, free lines is 3290 [07:32:10]MH_Cut [07:32:10]Write to MH i2c: D1 01 00 E4 0C 01 C2 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: D1 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: D1 01 00 [07:32:10]MH_I2C_Read... [07:32:10]Read from MH i2c: D1 01 00 E4 0C 00 C1 [07:32:10]Write to MH i2c: 01 00 00 E5 0C F1 [07:32:10]Write i2c OK [07:32:10]MH_I2C_Read... [07:32:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F5 A4 47 00 97 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 38 37 35 30 31 39 10 04 04 00 0C B6 01 00 F4 03 04 00 06 2E 1B 66 B6 04 01 00 00 3A 20 1E 79 34 69 09 89 [07:32:10]CommunicateWithHost err = 0 [07:32:10]CheckOFDResponse [07:32:10]1017 (14) - 77093643461234 [07:32:10]1041 (16) - 0000000000875019 [07:32:10]1040 (4) - 112140 [07:32:10]1012 (4) - 14.04.2024 01:14 [07:32:10]1206 (1) - 0 [07:32:10]OFD Sender: Remove packet 112140 [07:32:10]ProducePacketName [07:32:10]name=ofd_packets/00112140 [07:32:10]NVStorageDeleteData [07:32:11]OFD Sender: No OFD packet to send [07:32:11]*** Cut start [07:32:11]*** Partial cut [07:32:11]*** CUTSNS_PIN = 1 [07:32:11]*** CUTSNS_PIN = 0 [07:32:11]*** Brake cut motor [07:32:11]Read from MH i2c: 01 [07:32:11]MH_I2C_Read... [07:32:11]*** Stop cut motor [07:32:11]*** Cut end [07:32:11]Read from MH i2c: 01 07 00 [07:32:11]MH_I2C_Read... [07:32:11]Read from MH i2c: 01 07 00 E5 0C 00 00 00 00 00 FF 0F 06 [07:32:11]process_action close_receipt done [07:32:11]requested_data is exist [07:32:11]produce_requested_data [07:32:11]requested_item fm.sn is exist - process it [07:32:11]wFMCommunicate request_size=4 [07:32:11]MH_SAM_APDU [07:32:11]CAPDU: 80 11 00 00 [07:32:11]Write to MH i2c: E2 08 00 E6 0C 80 11 00 00 00 00 00 00 6C [07:32:11]Write i2c OK [07:32:11]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 17 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 17 00 E6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BD [07:32:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:32:12]wFMCommunicate OK [07:32:12]requested_item fd.num is exist - process it [07:32:12]SAM_PROTO_GetFieldsCounters [07:32:12]wFMCommunicate request_size=4 [07:32:12]MH_SAM_APDU [07:32:12]CAPDU: 80 13 00 00 [07:32:12]Write to MH i2c: E2 08 00 E7 0C 80 13 00 00 00 00 00 00 6F [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 62 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 62 00 E7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [07:32:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:12]wFMCommunicate OK [07:32:12]SAM_PROTO_GetFieldsCounters done [07:32:12]requested_item shift.num is exist - process it [07:32:12]requested_item shift.opened is exist - process it [07:32:12]req_shift_opened [07:32:12]FM_GetShiftState [07:32:12]SAM_PROTO_GetShiftState [07:32:12]wFMCommunicate request_size=4 [07:32:12]MH_SAM_APDU [07:32:12]CAPDU: 80 13 01 00 [07:32:12]Write to MH i2c: E2 08 00 E8 0C 80 13 01 00 00 00 00 00 71 [07:32:12]Write i2c OK [07:32:12]MH_I2C_Read... [07:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:12]Read from MH i2c: E2 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 0E 00 [07:32:12]MH_I2C_Read... [07:32:12]Read from MH i2c: E2 0E 00 E8 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 09 [07:32:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:32:12]wFMCommunicate OK [07:32:12]SAM_PROTO_GetShiftState done [07:32:12]FM_GetShiftState done [07:32:12]req_shift_opened done [07:32:12]requested_item shift.open_date is exist - process it [07:32:12]req_shift_open_date [07:32:12]req_shift_open_date done [07:32:12]produce_requested_data done [07:32:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112140,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:32:12]process_action_free close_receipt [07:32:12]json_value_free [07:32:12]json_value_free done [07:32:12]process_json_proto returns [07:32:12]Send response to host [07:32:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112140,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:32:12]free response buf [07:32:12]execute_script done [07:32:12]execute_script returns [07:32:12]free content buf [07:32:12]Sock 8.Close socket [07:32:12]Sock 8.Thread stoped [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:16]OFD Sender: No OFD packet to send [07:35:21]OFD Sender: No OFD packet to send [07:35:26]OFD Sender: No OFD packet to send [07:35:31]OFD Sender: No OFD packet to send [07:35:36]OFD Sender: No OFD packet to send [07:35:41]OFD Sender: No OFD packet to send [07:35:46]OFD Sender: No OFD packet to send [07:35:51]OFD Sender: No OFD packet to send [07:35:56]OFD Sender: No OFD packet to send [07:35:57]accept exits with 9 [07:35:57]New connection [07:35:57]New thread 3067358564 created [07:35:57]Thread 3067501924 joined [07:35:57]Waiting for new connection... [07:35:57] Sock 9.Parse request [07:35:57]Sock 9.Check first char [07:35:57]Sock 9.First char is OK [07:35:57]request: POST /json_proto HTTP/1.0 [07:35:57]Method: POST [07:35:57]URL: /json_proto [07:35:57]Method is POST - this is cgi request [07:35:57]url: /json_proto [07:35:57]query_string will be loaded in cgi processing [07:35:57]execute_cgi json_proto POST (null) [07:35:57]execute_cgi path=json_proto method=POST [07:35:57]POST find Content-Length [07:35:57]Host: 172.17.96.197:8080 [07:35:57]Content-Length: 670 [07:35:57]Content-Type: application/json [07:35:57] [07:35:57]POST finish read [07:35:57]Found Content-Length = 670 [07:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48463", "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.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [07:35:57]execute_script... [07:35: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)48463", "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.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [07:35:57]POST & json_proto [07:35:57]process_json_proto [07:35:57]json parsed OK: [07:35:57]protocol is kg_v1.0 [07:35:57]action value=close_receipt [07:35:57]process_action close_receipt [07:35:57]cmd_close_receipt [07:35:57]MH_GetDate [07:35:57]Write to MH i2c: F0 00 00 E9 0C E4 [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: F0 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: F0 09 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: F0 09 00 E9 0C 00 60 87 1B 66 E0 85 7F 64 9D [07:35:57]GetLastDocTimeStamp 1713079930 [07:35:57]current date 1713080160 [07:35:57]FM_GetShiftState [07:35:57]SAM_PROTO_GetShiftState [07:35:57]wFMCommunicate request_size=4 [07:35:57]MH_SAM_APDU [07:35:57]CAPDU: 80 13 01 00 [07:35:57]Write to MH i2c: E2 08 00 EA 0C 80 13 01 00 00 00 00 00 73 [07:35:57]Write i2c OK [07:35:57]MH_I2C_Read... [07:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:57]Read from MH i2c: E2 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 0E 00 [07:35:57]MH_I2C_Read... [07:35:57]Read from MH i2c: E2 0E 00 EA 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0B [07:35:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:35:57]wFMCommunicate OK [07:35:57]SAM_PROTO_GetShiftState done [07:35:57]FM_GetShiftState done [07:35:57]opened in 1713054696 [07:35:57]opened+sec_in_day 1713141096 [07:35:57]quantity*price = 80057 [07:35:57]sum+1 = 80059 [07:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 40 14.04.2024 07:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112141 ФПД: 177606203462865 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073600&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112141&fm=177606203462865&tin=02508201610067®Number=0000000000094237&sum=80000 [07:35:58]StoreToDocumentArchive [07:35:58]shift 357 fd 112141 [07:35:58]save to /storage/0357/doc_00112141 [07:35:58]save last doc name /storage/0357/doc_00112141 to /storage/kkm_last_doc_name [07:35:58]save OK [07:35:58]Clear old archive folders... [07:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [07:35:58]tlvbuf is 01B2DAD0 [07:35:58]SAM_PROTO_ClearQueue [07:35:58]wFMCommunicate request_size=4 [07:35:58]MH_SAM_APDU [07:35:58]CAPDU: 80 09 00 00 [07:35:58]Write to MH i2c: E2 08 00 F7 0C 80 09 00 00 00 00 00 00 75 [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:58]Read from MH i2c: E2 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 03 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 03 00 F7 0C 00 90 00 77 [07:35:58]RAPDU: 90 00 [07:35:58]wFMCommunicate OK [07:35:58]SAM_PROTO_ClearQueue done [07:35:58]KKMCreateOFDPacket [07:35:58]OFDProtocolAddRootSTLVToBuf [07:35:58]FM_MakeSignedData [07:35:58]FM_MakeSignedData [07:35:58]SAM_PROTO_SignData [07:35:58]wFMCommunicate request_size=4 [07:35:58]MH_SAM_APDU [07:35:58]CAPDU: 80 0D 01 02 [07:35:58]Write to MH i2c: E2 08 00 F8 0C 80 0D 01 02 00 00 00 00 7D [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:58]Read from MH i2c: E2 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 03 00 [07:35:58]MH_I2C_Read... [07:35:58]Read from MH i2c: E2 03 00 F8 0C 00 90 00 78 [07:35:58]RAPDU: 90 00 [07:35:58]wFMCommunicate OK [07:35:58]wFMCommunicate request_size=255 [07:35:58]MH_SAM_APDU [07:35: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 28 00 00 00 F4 03 04 00 60 87 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B6 01 00 35 04 06 00 [07:35:58]Write to MH i2c: E2 02 01 F9 0C 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 28 00 00 00 F4 03 04 00 60 87 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B6 01 00 35 04 06 00 00 00 0C [07:35:58]Write i2c OK [07:35:58]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 03 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 03 00 F9 0C 00 90 00 79 [07:35:59]RAPDU: 90 00 [07:35:59]wFMCommunicate OK [07:35:59]wFMCommunicate request_size=11 [07:35:59]MH_SAM_APDU [07:35:59]CAPDU: 80 0D 02 02 06 A1 88 2A AA D4 D1 [07:35:59]Write to MH i2c: E2 0E 00 FA 0C 80 0D 02 02 06 00 A1 88 2A AA D4 D1 00 00 2E [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 03 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [07:35:59]RAPDU: 90 00 [07:35:59]wFMCommunicate OK [07:35:59]wFMCommunicate request_size=4 [07:35:59]MH_SAM_APDU [07:35:59]CAPDU: 80 0D 03 02 [07:35:59]Write to MH i2c: E2 08 00 FB 0C 80 0D 03 02 00 00 00 00 82 [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0B 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 0B 00 FB 0C 00 B5 82 6C 89 BA 59 1E AF 90 00 8F [07:35:59]RAPDU: B5 82 6C 89 BA 59 1E AF 90 00 [07:35:59]wFMCommunicate OK [07:35:59]SAM_PROTO_SignData done [07:35:59]FM_MakeSignedData done [07:35:59]CreateOFDProtocolMessage [07:35:59]wFMCommunicate request_size=4 [07:35:59]MH_SAM_APDU [07:35:59]CAPDU: 80 11 00 00 [07:35:59]Write to MH i2c: E2 08 00 FC 0C 80 11 00 00 00 00 00 00 82 [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:59]Read from MH i2c: E2 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 17 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: E2 17 00 FC 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D3 [07:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:35:59]wFMCommunicate OK [07:35:59]CreateOFDProtocolMessage done [07:35:59]OFDSenderStorePacket 112141 [07:35:59]StoreOFDPacket docnum=112141 [07:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 99 D4 08 01 B0 A9 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 28 00 00 00 F4 03 04 00 60 87 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B6 01 00 35 04 06 00 A1 88 2A AA D4 D1 B5 82 6C 89 BA 59 1E AF [07:35:59]CheckFolder [07:35:59]dirname=/storage/ofd_packets [07:35:59]CheckFolder done [07:35:59]ProducePacketName [07:35:59]name=ofd_packets/00112141 [07:35:59]NVStorageSaveData ofd_packets/00112141 [07:35:59]File name is /storage/ofd_packets/00112141 [07:35:59]Write 302 bytes [07:35:59]NVStorageSaveData done [07:35:59]OFDSenderStorePacket done [07:35:59]KKMCreateOFDPacket done [07:35:59]NVStorageSaveData kkm_last_timestamp [07:35:59]File name is /storage/kkm_last_timestamp [07:35:59]Write 4 bytes [07:35:59]NVStorageSaveData done [07:35:59]ExternCall_PrintAddStr [07:35:59]wPrintStart [07:35:59]Write to MH i2c: 01 00 00 FD 0C 09 [07:35:59]Write i2c OK [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: 01 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: 01 07 00 [07:35:59]MH_I2C_Read... [07:35:59]Read from MH i2c: 01 07 00 FD 0C 00 00 00 00 00 FF 0F 1E [07:35:59]RasterBufferAndPrint [07:35:59]line Счет N : (1)48463 [07:35:59]line ИНН: 02508201610067 [07:35:59]line Контрольно-Кассовый Чек [07:35:59]line ПРОДАЖА [07:35:59]line ТРК (МРК, ГНК) : 31 [07:35:59]line Товар: 2710124130 [07:35:59]line SUPER 92-К-5 [07:35:59]line 12.260 * 65.30 [07:35:59]line = 800.58 [07:35:59]line НДС 12% НСП 1% [07:35:59]line > о реализуемом товаре [07:35:59]line ОКРУГЛЕНИЕ: -0.58 [07:35:59]line ИТОГО: 800.00 [07:35:59]line Внесено: 800.00 [07:35:59]line СДАЧА: 0.00 [07:35:59]line НСП 1% : 7.08 [07:35:59]line НДС 12% : 85.02 [07:35:59]line Наличными: 800.00 [07:35:59]line Безнал.: 0.00 [07:35:59]line Место: АЗС № 47 "Партнер Нефть" [07:35:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:35:59]line СНО: Общий режим [07:35:59]line Чек 40 14.04.2024 07:36 [07:35:59]line Смена: 357 ФФД: 1.0 [07:35:59]line ЗНМ: 0300000138 [07:35:59]line РНМ: 0000000000094237 [07:35:59]line Версия ККМ: 001 [07:35:59]line ФМ: 0000000000875019 [07:35:59]line ФД: 112141 [07:35:59]line ФПД: 177606203462865 [07:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T073600&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112141&fm=177606203462865&tin=02508201610067®Number=0000000000094237&sum=80000 [07:35:59]OFD Sender: Processing packet 112141 [packets to send 71, broken 70] [07:35:59]ProducePacketName [07:35:59]name=ofd_packets/00112141 [07:35:59]OFD Sender: To server: pG, [07:35:59]CommunicateWithHost lk.salyk.kg:30040 [07:35:59]ConnectInit lk.salyk.kg [07:35:59]written 0, free lines is 4095 [07:35:59]Connected sock=8 [07:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 99 D4 08 01 B0 A9 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 28 00 00 00 F4 03 04 00 60 87 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B6 01 00 35 04 06 00 A1 88 2A AA D4 D1 B5 82 6C 89 BA 59 1E AF [07:36:00]Write to MH i2c: 01 00 00 28 0D 35 [07:36:00]Write i2c OK [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: 01 [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: 01 07 00 [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 D6 0C 1E [07:36:00]RasterBufferAndPrint [07:36:00]line [07:36:00]line [07:36:00]line [07:36:00]line [07:36:00]line [07:36:00]written 0, free lines is 3293 [07:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 03 5D 47 00 67 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B6 01 00 F4 03 04 00 EC 2E 1B 66 B6 04 01 00 00 BA F5 08 71 BC B6 72 8A [07:36:00]CommunicateWithHost err = 0 [07:36:00]CheckOFDResponse [07:36:00]1017 (14) - 77093643461234 [07:36:00]1041 (16) - 0000000000875019 [07:36:00]1040 (4) - 112141 [07:36:00]1012 (4) - 14.04.2024 01:18 [07:36:00]1206 (1) - 0 [07:36:00]OFD Sender: Remove packet 112141 [07:36:00]ProducePacketName [07:36:00]name=ofd_packets/00112141 [07:36:00]NVStorageDeleteData [07:36:00]MH_Cut [07:36:00]Write to MH i2c: D1 01 00 2F 0D 01 0E [07:36:00]Write i2c OK [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: D1 [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: D1 01 00 [07:36:00]MH_I2C_Read... [07:36:00]Read from MH i2c: D1 01 00 2F 0D 00 0D [07:36:00]Write to MH i2c: 01 00 00 30 0D 3D [07:36:00]Write i2c OK [07:36:00]MH_I2C_Read... [07:36:00]OFD Sender: No OFD packet to send [07:36:00]*** Cut start [07:36:00]*** Partial cut [07:36:00]*** CUTSNS_PIN = 1 [07:36:00]*** CUTSNS_PIN = 0 [07:36:01]*** Brake cut motor [07:36:01]Read from MH i2c: 01 [07:36:01]MH_I2C_Read... [07:36:01]*** Stop cut motor [07:36:01]*** Cut end [07:36:01]Read from MH i2c: 01 07 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 FF 0F 52 [07:36:01]process_action close_receipt done [07:36:01]requested_data is exist [07:36:01]produce_requested_data [07:36:01]requested_item fm.sn is exist - process it [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 11 00 00 [07:36:01]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 09 [07:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:36:01]wFMCommunicate OK [07:36:01]requested_item fd.num is exist - process it [07:36:01]SAM_PROTO_GetFieldsCounters [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 13 00 00 [07:36:01]Write to MH i2c: E2 08 00 32 0D 80 13 00 00 00 00 00 00 BB [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 62 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 62 00 32 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [07:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_GetFieldsCounters done [07:36:01]requested_item shift.num is exist - process it [07:36:01]requested_item shift.opened is exist - process it [07:36:01]req_shift_opened [07:36:01]FM_GetShiftState [07:36:01]SAM_PROTO_GetShiftState [07:36:01]wFMCommunicate request_size=4 [07:36:01]MH_SAM_APDU [07:36:01]CAPDU: 80 13 01 00 [07:36:01]Write to MH i2c: E2 08 00 33 0D 80 13 01 00 00 00 00 00 BD [07:36:01]Write i2c OK [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 [07:36:01]MH_I2C_Read... [07:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:36:01]Read from MH i2c: E2 0E 00 [07:36:01]MH_I2C_Read... [07:36:01]Read from MH i2c: E2 0E 00 33 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 55 [07:36:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:36:01]wFMCommunicate OK [07:36:01]SAM_PROTO_GetShiftState done [07:36:01]FM_GetShiftState done [07:36:01]req_shift_opened done [07:36:01]requested_item shift.open_date is exist - process it [07:36:01]req_shift_open_date [07:36:01]req_shift_open_date done [07:36:01]produce_requested_data done [07:36:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112141,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:36:01]process_action_free close_receipt [07:36:01]json_value_free [07:36:01]json_value_free done [07:36:01]process_json_proto returns [07:36:01]Send response to host [07:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112141,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:36:01]free response buf [07:36:01]execute_script done [07:36:01]execute_script returns [07:36:01]free content buf [07:36:01]Sock 9.Close socket [07:36:01]Sock 9.Thread stoped [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:27]accept exits with 10 [07:49:27]New connection [07:49:27]New thread 3067501924 created [07:49:27]Thread 3067358564 joined [07:49:27]Waiting for new connection... [07:49:27] Sock 10.Parse request [07:49:27]Sock 10.Check first char [07:49:27]Sock 10.First char is OK [07:49:27]request: POST /json_proto HTTP/1.0 [07:49:27]Method: POST [07:49:27]URL: /json_proto [07:49:27]Method is POST - this is cgi request [07:49:27]url: /json_proto [07:49:27]query_string will be loaded in cgi processing [07:49:27]execute_cgi json_proto POST (null) [07:49:27]execute_cgi path=json_proto method=POST [07:49:27]POST find Content-Length [07:49:27]Host: 172.17.96.197:8080 [07:49:27]Content-Length: 676 [07:49:27]Content-Type: application/json [07:49:27] [07:49:27]POST finish read [07:49:27]Found Content-Length = 676 [07:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48464", "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.30, "quantity" : 8.400, "sum" : 540.12, "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" ] } } [07:49:27]execute_script... [07:49:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48464", "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.30, "quantity" : 8.400, "sum" : 540.12, "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" ] } } [07:49:27]POST & json_proto [07:49:27]process_json_proto [07:49:27]json parsed OK: [07:49:27]protocol is kg_v1.0 [07:49:27]action value=close_receipt [07:49:27]process_action close_receipt [07:49:27]cmd_close_receipt [07:49:27]MH_GetDate [07:49:27]Write to MH i2c: F0 00 00 34 0D 30 [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: F0 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: F0 09 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: F0 09 00 34 0D 00 89 8A 1B 66 E0 85 7F 64 15 [07:49:27]GetLastDocTimeStamp 1713080160 [07:49:27]current date 1713080969 [07:49:27]FM_GetShiftState [07:49:27]SAM_PROTO_GetShiftState [07:49:27]wFMCommunicate request_size=4 [07:49:27]MH_SAM_APDU [07:49:27]CAPDU: 80 13 01 00 [07:49:27]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [07:49:27]Write i2c OK [07:49:27]MH_I2C_Read... [07:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:27]Read from MH i2c: E2 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 0E 00 [07:49:27]MH_I2C_Read... [07:49:27]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 57 [07:49:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:49:27]wFMCommunicate OK [07:49:27]SAM_PROTO_GetShiftState done [07:49:27]FM_GetShiftState done [07:49:27]opened in 1713054696 [07:49:27]opened+sec_in_day 1713141096 [07:49:27]quantity*price = 54012 [07:49:27]sum+1 = 54013 [07:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.36 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 41 14.04.2024 07:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112142 ФПД: 159470657977316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T074929&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112142&fm=159470657977316&tin=02508201610067®Number=0000000000094237&sum=54000 [07:49:28]StoreToDocumentArchive [07:49:28]shift 357 fd 112142 [07:49:28]save to /storage/0357/doc_00112142 [07:49:28]save last doc name /storage/0357/doc_00112142 to /storage/kkm_last_doc_name [07:49:28]save OK [07:49:28]Clear old archive folders... [07:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:28]tlvbuf is B6F47670 [07:49:28]SAM_PROTO_ClearQueue [07:49:28]wFMCommunicate request_size=4 [07:49:28]MH_SAM_APDU [07:49:28]CAPDU: 80 09 00 00 [07:49:28]Write to MH i2c: E2 08 00 42 0D 80 09 00 00 00 00 00 00 C1 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 42 0D 00 90 00 C3 [07:49:28]RAPDU: 90 00 [07:49:28]wFMCommunicate OK [07:49:28]SAM_PROTO_ClearQueue done [07:49:28]KKMCreateOFDPacket [07:49:28]OFDProtocolAddRootSTLVToBuf [07:49:28]FM_MakeSignedData [07:49:28]FM_MakeSignedData [07:49:28]SAM_PROTO_SignData [07:49:28]wFMCommunicate request_size=4 [07:49:28]MH_SAM_APDU [07:49:28]CAPDU: 80 0D 01 02 [07:49:28]Write to MH i2c: E2 08 00 43 0D 80 0D 01 02 00 00 00 00 C9 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 43 0D 00 90 00 C4 [07:49:28]RAPDU: 90 00 [07:49:28]wFMCommunicate OK [07:49:28]wFMCommunicate request_size=255 [07:49:28]MH_SAM_APDU [07:49:28]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 D0 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC D2 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 68 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 29 00 00 00 F4 03 04 00 89 8A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B6 01 00 35 04 06 00 91 [07:49:28]Write to MH i2c: E2 02 01 44 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 D0 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC D2 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 68 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 29 00 00 00 F4 03 04 00 89 8A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B6 01 00 35 04 06 00 91 00 00 20 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [07:49:28]RAPDU: 90 00 [07:49:28]wFMCommunicate OK [07:49:28]wFMCommunicate request_size=10 [07:49:28]MH_SAM_APDU [07:49:28]CAPDU: 80 0D 02 02 05 09 A7 EB BB E4 [07:49:28]Write to MH i2c: E2 0D 00 45 0D 80 0D 02 02 05 00 09 A7 EB BB E4 00 00 10 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [07:49:28]RAPDU: 90 00 [07:49:28]wFMCommunicate OK [07:49:28]wFMCommunicate request_size=4 [07:49:28]MH_SAM_APDU [07:49:28]CAPDU: 80 0D 03 02 [07:49:28]Write to MH i2c: E2 08 00 46 0D 80 0D 03 02 00 00 00 00 CE [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 0B 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 0B 00 46 0D 00 6A 5D C9 31 B3 D0 A6 00 90 00 B9 [07:49:28]RAPDU: 6A 5D C9 31 B3 D0 A6 00 90 00 [07:49:28]wFMCommunicate OK [07:49:28]SAM_PROTO_SignData done [07:49:28]FM_MakeSignedData done [07:49:28]CreateOFDProtocolMessage [07:49:28]wFMCommunicate request_size=4 [07:49:28]MH_SAM_APDU [07:49:28]CAPDU: 80 11 00 00 [07:49:28]Write to MH i2c: E2 08 00 47 0D 80 11 00 00 00 00 00 00 CE [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:28]Read from MH i2c: E2 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 17 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: E2 17 00 47 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1F [07:49:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:49:28]wFMCommunicate OK [07:49:28]CreateOFDProtocolMessage done [07:49:28]OFDSenderStorePacket 112142 [07:49:28]StoreOFDPacket docnum=112142 [07:49:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3E D2 07 01 10 18 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 D0 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC D2 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 68 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 29 00 00 00 F4 03 04 00 89 8A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B6 01 00 35 04 06 00 91 09 A7 EB BB E4 6A 5D C9 31 B3 D0 A6 00 [07:49:28]CheckFolder [07:49:28]dirname=/storage/ofd_packets [07:49:28]CheckFolder done [07:49:28]ProducePacketName [07:49:28]name=ofd_packets/00112142 [07:49:28]NVStorageSaveData ofd_packets/00112142 [07:49:28]File name is /storage/ofd_packets/00112142 [07:49:28]Write 301 bytes [07:49:28]NVStorageSaveData done [07:49:28]OFDSenderStorePacket done [07:49:28]KKMCreateOFDPacket done [07:49:28]NVStorageSaveData kkm_last_timestamp [07:49:28]File name is /storage/kkm_last_timestamp [07:49:28]Write 4 bytes [07:49:28]NVStorageSaveData done [07:49:28]ExternCall_PrintAddStr [07:49:28]wPrintStart [07:49:28]Write to MH i2c: 01 00 00 48 0D 55 [07:49:28]Write i2c OK [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 07 00 [07:49:28]MH_I2C_Read... [07:49:28]Read from MH i2c: 01 07 00 48 0D 00 00 00 00 00 FF 0F 6A [07:49:28]RasterBufferAndPrint [07:49:28]line Счет N : (1)48464 [07:49:28]line ИНН: 02508201610067 [07:49:28]line Контрольно-Кассовый Чек [07:49:28]line ПРОДАЖА [07:49:28]line ТРК (МРК, ГНК) : 32 [07:49:28]line Товар: 2710124130 [07:49:28]line Аи-92-К-5 [07:49:28]line 8.400 * 64.30 [07:49:28]line = 540.12 [07:49:28]line НДС 12% НСП 1% [07:49:28]line > о реализуемом товаре [07:49:28]line ОКРУГЛЕНИЕ: -0.12 [07:49:28]line ИТОГО: 540.00 [07:49:28]line Внесено: 540.00 [07:49:28]line СДАЧА: 0.00 [07:49:28]line НСП 1% : 4.78 [07:49:28]line НДС 12% : 57.36 [07:49:28]line Наличными: 540.00 [07:49:28]line Безнал.: 0.00 [07:49:28]line Место: АЗС № 47 "Партнер Нефть" [07:49:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:49:28]line СНО: Общий режим [07:49:28]line Чек 41 14.04.2024 07:49 [07:49:28]line Смена: 357 ФФД: 1.0 [07:49:28]line ЗНМ: 0300000138 [07:49:28]line РНМ: 0000000000094237 [07:49:28]line Версия ККМ: 001 [07:49:28]line ФМ: 0000000000875019 [07:49:28]line ФД: 112142 [07:49:28]line ФПД: 159470657977316 [07:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T074929&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112142&fm=159470657977316&tin=02508201610067®Number=0000000000094237&sum=54000 [07:49:29]OFD Sender: Processing packet 112142 [packets to send 71, broken 70] [07:49:29]ProducePacketName [07:49:29]name=ofd_packets/00112142 [07:49:29]OFD Sender: To server: pG, [07:49:29]CommunicateWithHost lk.salyk.kg:30040 [07:49:29]ConnectInit lk.salyk.kg [07:49:29]written 0, free lines is 4095 [07:49:29]Connected sock=9 [07:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3E D2 07 01 10 18 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 D0 20 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 FC D2 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 68 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 29 00 00 00 F4 03 04 00 89 8A 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B6 01 00 35 04 06 00 91 09 A7 EB BB E4 6A 5D C9 31 B3 D0 A6 00 [07:49:29]Write to MH i2c: 01 00 00 73 0D 80 [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: 01 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: 01 07 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 D4 0C 67 [07:49:29]RasterBufferAndPrint [07:49:29]line [07:49:29]line [07:49:29]line [07:49:29]line [07:49:29]line [07:49:29]written 0, free lines is 3292 [07:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 37 63 47 00 66 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B6 01 00 F4 03 04 00 15 32 1B 66 B6 04 01 00 00 E7 4B A1 96 56 9F 37 B5 [07:49:29]CommunicateWithHost err = 0 [07:49:29]CheckOFDResponse [07:49:29]1017 (14) - 77093643461234 [07:49:29]1041 (16) - 0000000000875019 [07:49:29]1040 (4) - 112142 [07:49:29]1012 (4) - 14.04.2024 01:32 [07:49:29]1206 (1) - 0 [07:49:29]OFD Sender: Remove packet 112142 [07:49:29]ProducePacketName [07:49:29]name=ofd_packets/00112142 [07:49:29]NVStorageDeleteData [07:49:29]MH_Cut [07:49:29]Write to MH i2c: D1 01 00 7A 0D 01 59 [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: D1 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: D1 01 00 [07:49:29]MH_I2C_Read... [07:49:29]Read from MH i2c: D1 01 00 7A 0D 00 58 [07:49:29]Write to MH i2c: 01 00 00 7B 0D 88 [07:49:29]Write i2c OK [07:49:29]MH_I2C_Read... [07:49:30]OFD Sender: No OFD packet to send [07:49:30]*** Cut start [07:49:30]*** Partial cut [07:49:30]*** CUTSNS_PIN = 1 [07:49:30]*** CUTSNS_PIN = 0 [07:49:30]*** Brake cut motor [07:49:30]Read from MH i2c: 01 [07:49:30]MH_I2C_Read... [07:49:30]*** Stop cut motor [07:49:30]Read from MH i2c: 01 07 00 [07:49:30]MH_I2C_Read... [07:49:30]*** Cut end [07:49:30]Read from MH i2c: 01 07 00 7B 0D 00 00 00 00 00 FF 0F 9D [07:49:30]process_action close_receipt done [07:49:30]requested_data is exist [07:49:30]produce_requested_data [07:49:30]requested_item fm.sn is exist - process it [07:49:30]wFMCommunicate request_size=4 [07:49:30]MH_SAM_APDU [07:49:30]CAPDU: 80 11 00 00 [07:49:30]Write to MH i2c: E2 08 00 7C 0D 80 11 00 00 00 00 00 00 03 [07:49:30]Write i2c OK [07:49:30]MH_I2C_Read... [07:49:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:30]Read from MH i2c: E2 [07:49:30]MH_I2C_Read... [07:49:30]Read from MH i2c: E2 17 00 [07:49:30]MH_I2C_Read... [07:49:30]Read from MH i2c: E2 17 00 7C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 54 [07:49:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:49:30]wFMCommunicate OK [07:49:30]requested_item fd.num is exist - process it [07:49:30]SAM_PROTO_GetFieldsCounters [07:49:30]wFMCommunicate request_size=4 [07:49:30]MH_SAM_APDU [07:49:30]CAPDU: 80 13 00 00 [07:49:30]Write to MH i2c: E2 08 00 7D 0D 80 13 00 00 00 00 00 00 06 [07:49:30]Write i2c OK [07:49:30]MH_I2C_Read... [07:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:31]Read from MH i2c: E2 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 62 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 62 00 7D 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [07:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:31]wFMCommunicate OK [07:49:31]SAM_PROTO_GetFieldsCounters done [07:49:31]requested_item shift.num is exist - process it [07:49:31]requested_item shift.opened is exist - process it [07:49:31]req_shift_opened [07:49:31]FM_GetShiftState [07:49:31]SAM_PROTO_GetShiftState [07:49:31]wFMCommunicate request_size=4 [07:49:31]MH_SAM_APDU [07:49:31]CAPDU: 80 13 01 00 [07:49:31]Write to MH i2c: E2 08 00 7E 0D 80 13 01 00 00 00 00 00 08 [07:49:31]Write i2c OK [07:49:31]MH_I2C_Read... [07:49:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:31]Read from MH i2c: E2 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 [07:49:31]MH_I2C_Read... [07:49:31]Read from MH i2c: E2 0E 00 7E 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A0 [07:49:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:49:31]wFMCommunicate OK [07:49:31]SAM_PROTO_GetShiftState done [07:49:31]FM_GetShiftState done [07:49:31]req_shift_opened done [07:49:31]requested_item shift.open_date is exist - process it [07:49:31]req_shift_open_date [07:49:31]req_shift_open_date done [07:49:31]produce_requested_data done [07:49:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112142,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:49:31]process_action_free close_receipt [07:49:31]json_value_free [07:49:31]json_value_free done [07:49:31]process_json_proto returns [07:49:31]Send response to host [07:49:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112142,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:49:31]free response buf [07:49:31]execute_script done [07:49:31]execute_script returns [07:49:31]free content buf [07:49:31]Sock 10.Close socket [07:49:31]Sock 10.Thread stoped [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:07]accept exits with 8 [07:54:07]New connection [07:54:07]New thread 3067358564 created [07:54:07]Thread 3067501924 joined [07:54:07]Waiting for new connection... [07:54:07] Sock 8.Parse request [07:54:07]Sock 8.Check first char [07:54:07]Sock 8.First char is OK [07:54:07]request: POST /json_proto HTTP/1.0 [07:54:07]Method: POST [07:54:07]URL: /json_proto [07:54:07]Method is POST - this is cgi request [07:54:07]url: /json_proto [07:54:07]query_string will be loaded in cgi processing [07:54:07]execute_cgi json_proto POST (null) [07:54:07]execute_cgi path=json_proto method=POST [07:54:07]POST find Content-Length [07:54:07]Host: 172.17.96.197:8080 [07:54:07]Content-Length: 815 [07:54:07]Content-Type: application/json [07:54:07] [07:54:07]POST finish read [07:54:07]Found Content-Length = 815 [07:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48465", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:07]execute_script... [07:54: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)48465", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:07]POST & json_proto [07:54:07]process_json_proto [07:54:07]json parsed OK: [07:54:07]protocol is kg_v1.0 [07:54:07]action value=close_receipt [07:54:07]process_action close_receipt [07:54:07]cmd_close_receipt [07:54:07]MH_GetDate [07:54:07]Write to MH i2c: F0 00 00 7F 0D 7B [07:54:07]Write i2c OK [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 09 00 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: F0 09 00 7F 0D 00 A2 8B 1B 66 E0 85 7F 64 7A [07:54:07]GetLastDocTimeStamp 1713080969 [07:54:07]current date 1713081250 [07:54:07]FM_GetShiftState [07:54:07]SAM_PROTO_GetShiftState [07:54:07]wFMCommunicate request_size=4 [07:54:07]MH_SAM_APDU [07:54:07]CAPDU: 80 13 01 00 [07:54:07]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [07:54:07]Write i2c OK [07:54:07]MH_I2C_Read... [07:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:07]Read from MH i2c: E2 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: E2 0E 00 [07:54:07]MH_I2C_Read... [07:54:07]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A2 [07:54:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:54:07]wFMCommunicate OK [07:54:07]SAM_PROTO_GetShiftState done [07:54:07]FM_GetShiftState done [07:54:07]opened in 1713054696 [07:54:07]opened+sec_in_day 1713141096 [07:54:07]quantity*price = 100056 [07:54:07]sum+1 = 100058 [07:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 42 14.04.2024 07:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112143 ФПД: 227849027266680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T075410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112143&fm=227849027266680&tin=02508201610067®Number=0000000000094237&sum=100057 [07:54:08]StoreToDocumentArchive [07:54:08]shift 357 fd 112143 [07:54:08]save to /storage/0357/doc_00112143 [07:54:08]save last doc name /storage/0357/doc_00112143 to /storage/kkm_last_doc_name [07:54:08]save OK [07:54:08]Clear old archive folders... [07:54:08]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:54:08]tlvbuf is 01B21FC0 [07:54:08]SAM_PROTO_ClearQueue [07:54:08]wFMCommunicate request_size=4 [07:54:08]MH_SAM_APDU [07:54:08]CAPDU: 80 09 00 00 [07:54:08]Write to MH i2c: E2 08 00 8D 0D 80 09 00 00 00 00 00 00 0C [07:54:08]Write i2c OK [07:54:08]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 8D 0D 00 90 00 0E [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]SAM_PROTO_ClearQueue done [07:54:09]KKMCreateOFDPacket [07:54:09]OFDProtocolAddRootSTLVToBuf [07:54:09]FM_MakeSignedData [07:54:09]FM_MakeSignedData [07:54:09]SAM_PROTO_SignData [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 01 02 [07:54:09]Write to MH i2c: E2 08 00 8E 0D 80 0D 01 02 00 00 00 00 14 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 8E 0D 00 90 00 0F [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=255 [07:54:09]MH_SAM_APDU [07:54:09]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A2 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B6 01 00 35 04 06 00 CF 3A 3C 55 [07:54:09]Write to MH i2c: E2 02 01 8F 0D 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A2 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B6 01 00 35 04 06 00 CF 3A 3C 55 00 00 E4 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=7 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 02 02 02 28 78 [07:54:09]Write to MH i2c: E2 0A 00 90 0D 80 0D 02 02 02 00 28 78 00 00 BB [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [07:54:09]RAPDU: 90 00 [07:54:09]wFMCommunicate OK [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 0D 03 02 [07:54:09]Write to MH i2c: E2 08 00 91 0D 80 0D 03 02 00 00 00 00 19 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 0B 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 0B 00 91 0D 00 F0 BF 7D 3E EC BC 31 24 90 00 81 [07:54:09]RAPDU: F0 BF 7D 3E EC BC 31 24 90 00 [07:54:09]wFMCommunicate OK [07:54:09]SAM_PROTO_SignData done [07:54:09]FM_MakeSignedData done [07:54:09]CreateOFDProtocolMessage [07:54:09]wFMCommunicate request_size=4 [07:54:09]MH_SAM_APDU [07:54:09]CAPDU: 80 11 00 00 [07:54:09]Write to MH i2c: E2 08 00 92 0D 80 11 00 00 00 00 00 00 19 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:09]Read from MH i2c: E2 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 17 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: E2 17 00 92 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6A [07:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:54:09]wFMCommunicate OK [07:54:09]CreateOFDProtocolMessage done [07:54:09]OFDSenderStorePacket 112143 [07:54:09]StoreOFDPacket docnum=112143 [07:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 66 D6 04 01 84 95 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A2 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B6 01 00 35 04 06 00 CF 3A 3C 55 28 78 F0 BF 7D 3E EC BC 31 24 [07:54:09]CheckFolder [07:54:09]dirname=/storage/ofd_packets [07:54:09]CheckFolder done [07:54:09]ProducePacketName [07:54:09]name=ofd_packets/00112143 [07:54:09]NVStorageSaveData ofd_packets/00112143 [07:54:09]File name is /storage/ofd_packets/00112143 [07:54:09]Write 298 bytes [07:54:09]NVStorageSaveData done [07:54:09]OFDSenderStorePacket done [07:54:09]KKMCreateOFDPacket done [07:54:09]NVStorageSaveData kkm_last_timestamp [07:54:09]File name is /storage/kkm_last_timestamp [07:54:09]Write 4 bytes [07:54:09]NVStorageSaveData done [07:54:09]OFD Sender: Processing packet 112143 [packets to send 71, broken 70] [07:54:09]ProducePacketName [07:54:09]name=ofd_packets/00112143 [07:54:09]OFD Sender: To server: pG, [07:54:09]CommunicateWithHost lk.salyk.kg:30040 [07:54:09]ConnectInit lk.salyk.kg [07:54:09]ExternCall_PrintAddStr [07:54:09]wPrintStart [07:54:09]Write to MH i2c: 01 00 00 93 0D A0 [07:54:09]Write i2c OK [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 07 00 [07:54:09]MH_I2C_Read... [07:54:09]Read from MH i2c: 01 07 00 93 0D 00 00 00 00 00 FF 0F B5 [07:54:09]RasterBufferAndPrint [07:54:09]line Счет N : (1)48465 [07:54:09]line ИНН: 02508201610067 [07:54:09]line Контрольно-Кассовый Чек [07:54:09]line ПРОДАЖА [07:54:09]line ТРК (МРК, ГНК) : 51 [07:54:09]line Товар: 2710194210 [07:54:09]line ДТ-К-5 [07:54:09]line 13.820 * 72.40 [07:54:09]line = 1000.57 [07:54:09]line НДС 12% НСП 1% [07:54:09]line > о реализуемом товаре [07:54:09]line ИТОГО: 1000.57 [07:54:09]line НСП 1% : 8.85 [07:54:09]line НДС 12% : 106.25 [07:54:09]line Наличными: 0.00 [07:54:09]line Безнал.: 1000.57 [07:54:09]line Место: АЗС № 47 "Партнер Нефть" [07:54:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:54:09]line СНО: Общий режим [07:54:09]line Чек 42 14.04.2024 07:54 [07:54:09]line Смена: 357 ФФД: 1.0 [07:54:09]line ЗНМ: 0300000138 [07:54:09]line РНМ: 0000000000094237 [07:54:09]line Версия ККМ: 001 [07:54:09]line Платежная система: Бакай Банк [07:54:09]line ФМ: 0000000000875019 [07:54:09]line ФД: 112143 [07:54:09]line ФПД: 227849027266680 [07:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T075410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112143&fm=227849027266680&tin=02508201610067®Number=0000000000094237&sum=100057 [07:54:09]Connected sock=11 [07:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 66 D6 04 01 84 95 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 A2 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B6 01 00 35 04 06 00 CF 3A 3C 55 28 78 F0 BF 7D 3E EC BC 31 24 [07:54:09]written 0, free lines is 4095 [07:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 93 94 47 00 6B 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 38 37 35 30 31 39 10 04 04 00 0F B6 01 00 F4 03 04 00 2E 33 1B 66 B6 04 01 00 00 B0 27 1A AF 2C 28 98 71 [07:54:10]CommunicateWithHost err = 0 [07:54:10]CheckOFDResponse [07:54:10]1017 (14) - 77093643461234 [07:54:10]1041 (16) - 0000000000875019 [07:54:10]1040 (4) - 112143 [07:54:10]1012 (4) - 14.04.2024 01:36 [07:54:10]1206 (1) - 0 [07:54:10]OFD Sender: Remove packet 112143 [07:54:10]ProducePacketName [07:54:10]name=ofd_packets/00112143 [07:54:10]NVStorageDeleteData [07:54:10]Write to MH i2c: 01 00 00 BD 0D CA [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: 01 07 00 BD 0D 00 00 00 00 00 DF 0C BC [07:54:10]RasterBufferAndPrint [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]line [07:54:10]written 0, free lines is 3301 [07:54:10]MH_Cut [07:54:10]Write to MH i2c: D1 01 00 C4 0D 01 A3 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 01 00 [07:54:10]MH_I2C_Read... [07:54:10]Read from MH i2c: D1 01 00 C4 0D 00 A2 [07:54:10]Write to MH i2c: 01 00 00 C5 0D D2 [07:54:10]Write i2c OK [07:54:10]MH_I2C_Read... [07:54:10]OFD Sender: No OFD packet to send [07:54:11]*** Cut start [07:54:11]*** Partial cut [07:54:11]*** CUTSNS_PIN = 1 [07:54:11]*** CUTSNS_PIN = 0 [07:54:11]*** Brake cut motor [07:54:11]Read from MH i2c: 01 [07:54:11]MH_I2C_Read... [07:54:11]*** Stop cut motor [07:54:11]*** Cut end [07:54:11]Read from MH i2c: 01 07 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: 01 07 00 C5 0D 00 00 00 00 00 FF 0F E7 [07:54:11]process_action close_receipt done [07:54:11]requested_data is exist [07:54:11]produce_requested_data [07:54:11]requested_item fm.sn is exist - process it [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 11 00 00 [07:54:11]Write to MH i2c: E2 08 00 C6 0D 80 11 00 00 00 00 00 00 4D [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 17 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 17 00 C6 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9E [07:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:54:11]wFMCommunicate OK [07:54:11]requested_item fd.num is exist - process it [07:54:11]SAM_PROTO_GetFieldsCounters [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 00 00 [07:54:11]Write to MH i2c: E2 08 00 C7 0D 80 13 00 00 00 00 00 00 50 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 62 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 62 00 C7 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [07:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetFieldsCounters done [07:54:11]requested_item shift.num is exist - process it [07:54:11]requested_item shift.opened is exist - process it [07:54:11]req_shift_opened [07:54:11]FM_GetShiftState [07:54:11]SAM_PROTO_GetShiftState [07:54:11]wFMCommunicate request_size=4 [07:54:11]MH_SAM_APDU [07:54:11]CAPDU: 80 13 01 00 [07:54:11]Write to MH i2c: E2 08 00 C8 0D 80 13 01 00 00 00 00 00 52 [07:54:11]Write i2c OK [07:54:11]MH_I2C_Read... [07:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:11]Read from MH i2c: E2 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 [07:54:11]MH_I2C_Read... [07:54:11]Read from MH i2c: E2 0E 00 C8 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EA [07:54:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:54:11]wFMCommunicate OK [07:54:11]SAM_PROTO_GetShiftState done [07:54:11]FM_GetShiftState done [07:54:11]req_shift_opened done [07:54:11]requested_item shift.open_date is exist - process it [07:54:11]req_shift_open_date [07:54:11]req_shift_open_date done [07:54:11]produce_requested_data done [07:54:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112143,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:54:11]process_action_free close_receipt [07:54:11]json_value_free [07:54:11]json_value_free done [07:54:11]process_json_proto returns [07:54:11]Send response to host [07:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112143,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:54:11]free response buf [07:54:11]execute_script done [07:54:11]execute_script returns [07:54:11]free content buf [07:54:11]Sock 8.Close socket [07:54:11]Sock 8.Thread stoped [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:55:00]OFD Sender: No OFD packet to send [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:15]OFD Sender: No OFD packet to send [07:55:20]OFD Sender: No OFD packet to send [07:55:25]OFD Sender: No OFD packet to send [07:55:30]OFD Sender: No OFD packet to send [07:55:34]accept exits with 10 [07:55:34]New connection [07:55:34]New thread 3067501924 created [07:55:34]Thread 3067358564 joined [07:55:34]Waiting for new connection... [07:55:34] Sock 10.Parse request [07:55:34]Sock 10.Check first char [07:55:34]Sock 10.First char is OK [07:55:34]request: POST /json_proto HTTP/1.0 [07:55:34]Method: POST [07:55:34]URL: /json_proto [07:55:34]Method is POST - this is cgi request [07:55:34]url: /json_proto [07:55:34]query_string will be loaded in cgi processing [07:55:34]execute_cgi json_proto POST (null) [07:55:34]execute_cgi path=json_proto method=POST [07:55:34]POST find Content-Length [07:55:34]Host: 172.17.96.197:8080 [07:55:34]Content-Length: 815 [07:55:34]Content-Type: application/json [07:55:34] [07:55:34]POST finish read [07:55:34]Found Content-Length = 815 [07:55:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48466", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:34]execute_script... [07:55: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)48466", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:34]POST & json_proto [07:55:34]process_json_proto [07:55:34]json parsed OK: [07:55:34]protocol is kg_v1.0 [07:55:34]action value=close_receipt [07:55:34]process_action close_receipt [07:55:34]cmd_close_receipt [07:55:34]MH_GetDate [07:55:34]Write to MH i2c: F0 00 00 C9 0D C5 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: F0 09 00 C9 0D 00 F8 8B 1B 66 E0 85 7F 64 1A [07:55:34]GetLastDocTimeStamp 1713081250 [07:55:34]current date 1713081336 [07:55:34]FM_GetShiftState [07:55:34]SAM_PROTO_GetShiftState [07:55:34]wFMCommunicate request_size=4 [07:55:34]MH_SAM_APDU [07:55:34]CAPDU: 80 13 01 00 [07:55:34]Write to MH i2c: E2 08 00 CA 0D 80 13 01 00 00 00 00 00 54 [07:55:34]Write i2c OK [07:55:34]MH_I2C_Read... [07:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:34]Read from MH i2c: E2 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 [07:55:34]MH_I2C_Read... [07:55:34]Read from MH i2c: E2 0E 00 CA 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EC [07:55:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:55:34]wFMCommunicate OK [07:55:34]SAM_PROTO_GetShiftState done [07:55:34]FM_GetShiftState done [07:55:34]opened in 1713054696 [07:55:34]opened+sec_in_day 1713141096 [07:55:34]quantity*price = 100056 [07:55:34]sum+1 = 100058 [07:55:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.57 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.57 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 43 14.04.2024 07:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112144 ФПД: 59412893090007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T075537&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112144&fm=59412893090007&tin=02508201610067®Number=0000000000094237&sum=100057 [07:55:35]StoreToDocumentArchive [07:55:35]shift 357 fd 112144 [07:55:35]save to /storage/0357/doc_00112144 [07:55:35]save last doc name /storage/0357/doc_00112144 to /storage/kkm_last_doc_name [07:55:35]save OK [07:55:35]Clear old archive folders... [07:55:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:55:35]tlvbuf is 019C7310 [07:55:35]SAM_PROTO_ClearQueue [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 09 00 00 [07:55:35]Write to MH i2c: E2 08 00 D7 0D 80 09 00 00 00 00 00 00 56 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 D7 0D 00 90 00 58 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]SAM_PROTO_ClearQueue done [07:55:35]KKMCreateOFDPacket [07:55:35]OFDProtocolAddRootSTLVToBuf [07:55:35]FM_MakeSignedData [07:55:35]FM_MakeSignedData [07:55:35]SAM_PROTO_SignData [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 01 02 [07:55:35]Write to MH i2c: E2 08 00 D8 0D 80 0D 01 02 00 00 00 00 5E [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 D8 0D 00 90 00 59 [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=255 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F9 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B6 01 00 35 04 06 00 36 09 24 63 [07:55:35]Write to MH i2c: E2 02 01 D9 0D 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F9 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B6 01 00 35 04 06 00 36 09 24 63 00 00 B3 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]OFD Sender: No OFD packet to send [07:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 D9 0D 00 90 00 5A [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=7 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 02 02 02 40 D7 [07:55:35]Write to MH i2c: E2 0A 00 DA 0D 80 0D 02 02 02 00 40 D7 00 00 7C [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [07:55:35]RAPDU: 90 00 [07:55:35]wFMCommunicate OK [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 0D 03 02 [07:55:35]Write to MH i2c: E2 08 00 DB 0D 80 0D 03 02 00 00 00 00 63 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 0B 00 DB 0D 00 E0 0E E2 13 69 52 0D 9C 90 00 AB [07:55:35]RAPDU: E0 0E E2 13 69 52 0D 9C 90 00 [07:55:35]wFMCommunicate OK [07:55:35]SAM_PROTO_SignData done [07:55:35]FM_MakeSignedData done [07:55:35]CreateOFDProtocolMessage [07:55:35]wFMCommunicate request_size=4 [07:55:35]MH_SAM_APDU [07:55:35]CAPDU: 80 11 00 00 [07:55:35]Write to MH i2c: E2 08 00 DC 0D 80 11 00 00 00 00 00 00 63 [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:35]Read from MH i2c: E2 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: E2 17 00 DC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B4 [07:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:55:35]wFMCommunicate OK [07:55:35]CreateOFDProtocolMessage done [07:55:35]OFDSenderStorePacket 112144 [07:55:35]StoreOFDPacket docnum=112144 [07:55:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 FD 39 04 01 94 57 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F9 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B6 01 00 35 04 06 00 36 09 24 63 40 D7 E0 0E E2 13 69 52 0D 9C [07:55:35]CheckFolder [07:55:35]dirname=/storage/ofd_packets [07:55:35]CheckFolder done [07:55:35]ProducePacketName [07:55:35]name=ofd_packets/00112144 [07:55:35]NVStorageSaveData ofd_packets/00112144 [07:55:35]File name is /storage/ofd_packets/00112144 [07:55:35]Write 298 bytes [07:55:35]NVStorageSaveData done [07:55:35]OFDSenderStorePacket done [07:55:35]KKMCreateOFDPacket done [07:55:35]NVStorageSaveData kkm_last_timestamp [07:55:35]File name is /storage/kkm_last_timestamp [07:55:35]Write 4 bytes [07:55:35]NVStorageSaveData done [07:55:35]ExternCall_PrintAddStr [07:55:35]wPrintStart [07:55:35]Write to MH i2c: 01 00 00 DD 0D EA [07:55:35]Write i2c OK [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 [07:55:35]MH_I2C_Read... [07:55:35]Read from MH i2c: 01 07 00 DD 0D 00 00 00 00 00 FF 0F FF [07:55:35]RasterBufferAndPrint [07:55:35]line Счет N : (1)48466 [07:55:35]line ИНН: 02508201610067 [07:55:35]line Контрольно-Кассовый Чек [07:55:35]line ПРОДАЖА [07:55:35]line ТРК (МРК, ГНК) : 61 [07:55:35]line Товар: 2710194210 [07:55:35]line ДТ-К-5 [07:55:35]line 13.820 * 72.40 [07:55:35]line = 1000.57 [07:55:35]line НДС 12% НСП 1% [07:55:35]line > о реализуемом товаре [07:55:35]line ИТОГО: 1000.57 [07:55:35]line НСП 1% : 8.85 [07:55:35]line НДС 12% : 106.25 [07:55:35]line Наличными: 0.00 [07:55:35]line Безнал.: 1000.57 [07:55:35]line Место: АЗС № 47 "Партнер Нефть" [07:55:35]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [07:55:35]line СНО: Общий режим [07:55:35]line Чек 43 14.04.2024 07:55 [07:55:35]line Смена: 357 ФФД: 1.0 [07:55:35]line ЗНМ: 0300000138 [07:55:35]line РНМ: 0000000000094237 [07:55:35]line Версия ККМ: 001 [07:55:35]line Платежная система: Бакай Банк [07:55:35]line ФМ: 0000000000875019 [07:55:35]line ФД: 112144 [07:55:35]line ФПД: 59412893090007 [07:55:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T075537&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112144&fm=59412893090007&tin=02508201610067®Number=0000000000094237&sum=100057 [07:55:36]OFD Sender: Processing packet 112144 [packets to send 71, broken 70] [07:55:36]ProducePacketName [07:55:36]name=ofd_packets/00112144 [07:55:36]OFD Sender: To server: pG, [07:55:36]CommunicateWithHost lk.salyk.kg:30040 [07:55:36]ConnectInit lk.salyk.kg [07:55:36]written 0, free lines is 4095 [07:55:36]Connected sock=8 [07:55:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 FD 39 04 01 94 57 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D9 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 D9 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 F9 8B 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B6 01 00 35 04 06 00 36 09 24 63 40 D7 E0 0E E2 13 69 52 0D 9C [07:55:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DE 04 47 00 89 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B6 01 00 F4 03 04 00 84 33 1B 66 B6 04 01 00 00 0C B1 BD 4E 43 57 8D 1A [07:55:36]CommunicateWithHost err = 0 [07:55:36]CheckOFDResponse [07:55:36]1017 (14) - 77093643461234 [07:55:36]1041 (16) - 0000000000875019 [07:55:36]1040 (4) - 112144 [07:55:36]1012 (4) - 14.04.2024 01:38 [07:55:36]1206 (1) - 0 [07:55:36]OFD Sender: Remove packet 112144 [07:55:36]ProducePacketName [07:55:36]name=ofd_packets/00112144 [07:55:36]NVStorageDeleteData [07:55:36]Write to MH i2c: 01 00 00 07 0E 15 [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: 01 07 00 07 0E 00 00 00 00 00 EA 0C 12 [07:55:36]RasterBufferAndPrint [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]line [07:55:36]written 0, free lines is 3312 [07:55:36]MH_Cut [07:55:36]Write to MH i2c: D1 01 00 0E 0E 01 EE [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 01 00 [07:55:36]MH_I2C_Read... [07:55:36]Read from MH i2c: D1 01 00 0E 0E 00 ED [07:55:36]Write to MH i2c: 01 00 00 0F 0E 1D [07:55:36]Write i2c OK [07:55:36]MH_I2C_Read... [07:55:37]OFD Sender: No OFD packet to send [07:55:37]*** Cut start [07:55:37]*** Partial cut [07:55:37]*** CUTSNS_PIN = 1 [07:55:37]*** CUTSNS_PIN = 0 [07:55:37]*** Brake cut motor [07:55:38]Read from MH i2c: 01 [07:55:38]MH_I2C_Read... [07:55:38]*** Stop cut motor [07:55:38]*** Cut end [07:55:38]Read from MH i2c: 01 07 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: 01 07 00 0F 0E 00 00 00 00 00 FF 0F 32 [07:55:38]process_action close_receipt done [07:55:38]requested_data is exist [07:55:38]produce_requested_data [07:55:38]requested_item fm.sn is exist - process it [07:55:38]wFMCommunicate request_size=4 [07:55:38]MH_SAM_APDU [07:55:38]CAPDU: 80 11 00 00 [07:55:38]Write to MH i2c: E2 08 00 10 0E 80 11 00 00 00 00 00 00 98 [07:55:38]Write i2c OK [07:55:38]MH_I2C_Read... [07:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:38]Read from MH i2c: E2 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 17 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 17 00 10 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E9 [07:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [07:55:38]wFMCommunicate OK [07:55:38]requested_item fd.num is exist - process it [07:55:38]SAM_PROTO_GetFieldsCounters [07:55:38]wFMCommunicate request_size=4 [07:55:38]MH_SAM_APDU [07:55:38]CAPDU: 80 13 00 00 [07:55:38]Write to MH i2c: E2 08 00 11 0E 80 13 00 00 00 00 00 00 9B [07:55:38]Write i2c OK [07:55:38]MH_I2C_Read... [07:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:38]Read from MH i2c: E2 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 62 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 62 00 11 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 10 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [07:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 10 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:55:38]wFMCommunicate OK [07:55:38]SAM_PROTO_GetFieldsCounters done [07:55:38]requested_item shift.num is exist - process it [07:55:38]requested_item shift.opened is exist - process it [07:55:38]req_shift_opened [07:55:38]FM_GetShiftState [07:55:38]SAM_PROTO_GetShiftState [07:55:38]wFMCommunicate request_size=4 [07:55:38]MH_SAM_APDU [07:55:38]CAPDU: 80 13 01 00 [07:55:38]Write to MH i2c: E2 08 00 12 0E 80 13 01 00 00 00 00 00 9D [07:55:38]Write i2c OK [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 [07:55:38]MH_I2C_Read... [07:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:38]Read from MH i2c: E2 0E 00 [07:55:38]MH_I2C_Read... [07:55:38]Read from MH i2c: E2 0E 00 12 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 35 [07:55:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [07:55:38]wFMCommunicate OK [07:55:38]SAM_PROTO_GetShiftState done [07:55:38]FM_GetShiftState done [07:55:38]req_shift_opened done [07:55:38]requested_item shift.open_date is exist - process it [07:55:38]req_shift_open_date [07:55:38]req_shift_open_date done [07:55:38]produce_requested_data done [07:55:38]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112144,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [07:55:38]process_action_free close_receipt [07:55:38]json_value_free [07:55:38]json_value_free done [07:55:38]process_json_proto returns [07:55:38]Send response to host [07:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112144,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [07:55:38]free response buf [07:55:38]execute_script done [07:55:38]execute_script returns [07:55:38]free content buf [07:55:38]Sock 10.Close socket [07:55:38]Sock 10.Thread stoped [07:55:42]OFD Sender: No OFD packet to send [07:55:47]OFD Sender: No OFD packet to send [07:55:52]OFD Sender: No OFD packet to send [07:55:57]OFD Sender: No OFD packet to send [07:56:02]OFD Sender: No OFD packet to send [07:56:07]OFD Sender: No OFD packet to send [07:56:12]OFD Sender: No OFD packet to send [07:56:17]OFD Sender: No OFD packet to send [07:56:22]OFD Sender: No OFD packet to send [07:56:27]OFD Sender: No OFD packet to send [07:56:32]OFD Sender: No OFD packet to send [07:56:37]OFD Sender: No OFD packet to send [07:56:42]OFD Sender: No OFD packet to send [07:56:47]OFD Sender: No OFD packet to send [07:56:52]OFD Sender: No OFD packet to send [07:56:57]OFD Sender: No OFD packet to send [07:57:02]OFD Sender: No OFD packet to send [07:57:07]OFD Sender: No OFD packet to send [07:57:12]OFD Sender: No OFD packet to send [07:57:17]OFD Sender: No OFD packet to send [07:57:22]OFD Sender: No OFD packet to send [07:57:27]OFD Sender: No OFD packet to send [07:57:32]OFD Sender: No OFD packet to send [07:57:37]OFD Sender: No OFD packet to send [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:17]OFD Sender: No OFD packet to send [07:58:22]OFD Sender: No OFD packet to send [07:58:27]OFD Sender: No OFD packet to send [07:58:32]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:26]accept exits with 9 [08:02:26]New connection [08:02:26]New thread 3067358564 created [08:02:26]Thread 3067501924 joined [08:02:26]Waiting for new connection... [08:02:26] Sock 9.Parse request [08:02:26]Sock 9.Check first char [08:02:26]Sock 9.First char is OK [08:02:26]request: POST /json_proto HTTP/1.0 [08:02:26]Method: POST [08:02:26]URL: /json_proto [08:02:26]Method is POST - this is cgi request [08:02:26]url: /json_proto [08:02:26]query_string will be loaded in cgi processing [08:02:26]execute_cgi json_proto POST (null) [08:02:26]execute_cgi path=json_proto method=POST [08:02:26]POST find Content-Length [08:02:26]Host: 172.17.96.197:8080 [08:02:26]Content-Length: 678 [08:02:26]Content-Type: application/json [08:02:26] [08:02:26]POST finish read [08:02:26]Found Content-Length = 678 [08:02:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48467", "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.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:26]execute_script... [08:02: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)48467", "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.40, "quantity" : 34.540, "sum" : 2500.70, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:26]POST & json_proto [08:02:26]process_json_proto [08:02:26]json parsed OK: [08:02:26]protocol is kg_v1.0 [08:02:26]action value=close_receipt [08:02:26]process_action close_receipt [08:02:26]cmd_close_receipt [08:02:26]MH_GetDate [08:02:26]Write to MH i2c: F0 00 00 13 0E 10 [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: F0 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: F0 09 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: F0 09 00 13 0E 00 94 8D 1B 66 E0 85 7F 64 03 [08:02:26]GetLastDocTimeStamp 1713081337 [08:02:26]current date 1713081748 [08:02:26]FM_GetShiftState [08:02:26]SAM_PROTO_GetShiftState [08:02:26]wFMCommunicate request_size=4 [08:02:26]MH_SAM_APDU [08:02:26]CAPDU: 80 13 01 00 [08:02:26]Write to MH i2c: E2 08 00 14 0E 80 13 01 00 00 00 00 00 9F [08:02:26]Write i2c OK [08:02:26]MH_I2C_Read... [08:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:26]Read from MH i2c: E2 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 0E 00 [08:02:26]MH_I2C_Read... [08:02:26]Read from MH i2c: E2 0E 00 14 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 37 [08:02:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:02:26]wFMCommunicate OK [08:02:26]SAM_PROTO_GetShiftState done [08:02:26]FM_GetShiftState done [08:02:26]opened in 1713054696 [08:02:26]opened+sec_in_day 1713141096 [08:02:26]quantity*price = 250069 [08:02:26]sum+1 = 250071 [08:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.56 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 44 14.04.2024 08:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112145 ФПД: 78566944487264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080228&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112145&fm=78566944487264&tin=02508201610067®Number=0000000000094237&sum=250000 [08:02:27]StoreToDocumentArchive [08:02:27]shift 357 fd 112145 [08:02:27]save to /storage/0357/doc_00112145 [08:02:27]save last doc name /storage/0357/doc_00112145 to /storage/kkm_last_doc_name [08:02:27]save OK [08:02:27]Clear old archive folders... [08:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:02:27]tlvbuf is 019C7160 [08:02:27]SAM_PROTO_ClearQueue [08:02:27]wFMCommunicate request_size=4 [08:02:27]MH_SAM_APDU [08:02:27]CAPDU: 80 09 00 00 [08:02:27]Write to MH i2c: E2 08 00 21 0E 80 09 00 00 00 00 00 00 A1 [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 21 0E 00 90 00 A3 [08:02:27]RAPDU: 90 00 [08:02:27]wFMCommunicate OK [08:02:27]SAM_PROTO_ClearQueue done [08:02:27]KKMCreateOFDPacket [08:02:27]OFDProtocolAddRootSTLVToBuf [08:02:27]FM_MakeSignedData [08:02:27]FM_MakeSignedData [08:02:27]SAM_PROTO_SignData [08:02:27]wFMCommunicate request_size=4 [08:02:27]MH_SAM_APDU [08:02:27]CAPDU: 80 0D 01 02 [08:02:27]Write to MH i2c: E2 08 00 22 0E 80 0D 01 02 00 00 00 00 A9 [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 22 0E 00 90 00 A4 [08:02:27]RAPDU: 90 00 [08:02:27]wFMCommunicate OK [08:02:27]wFMCommunicate request_size=255 [08:02:27]MH_SAM_APDU [08:02: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 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B6 01 00 35 04 06 00 47 74 CA D1 [08:02:27]Write to MH i2c: E2 02 01 23 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 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B6 01 00 35 04 06 00 47 74 CA D1 00 00 6B [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]OFD Sender: No OFD packet to send [08:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 23 0E 00 90 00 A5 [08:02:27]RAPDU: 90 00 [08:02:27]wFMCommunicate OK [08:02:27]wFMCommunicate request_size=7 [08:02:27]MH_SAM_APDU [08:02:27]CAPDU: 80 0D 02 02 02 37 60 [08:02:27]Write to MH i2c: E2 0A 00 24 0E 80 0D 02 02 02 00 37 60 00 00 47 [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [08:02:27]RAPDU: 90 00 [08:02:27]wFMCommunicate OK [08:02:27]wFMCommunicate request_size=4 [08:02:27]MH_SAM_APDU [08:02:27]CAPDU: 80 0D 03 02 [08:02:27]Write to MH i2c: E2 08 00 25 0E 80 0D 03 02 00 00 00 00 AE [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 0B 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 0B 00 25 0E 00 81 21 38 C1 40 D1 D2 5A 90 00 87 [08:02:27]RAPDU: 81 21 38 C1 40 D1 D2 5A 90 00 [08:02:27]wFMCommunicate OK [08:02:27]SAM_PROTO_SignData done [08:02:27]FM_MakeSignedData done [08:02:27]CreateOFDProtocolMessage [08:02:27]wFMCommunicate request_size=4 [08:02:27]MH_SAM_APDU [08:02:27]CAPDU: 80 11 00 00 [08:02:27]Write to MH i2c: E2 08 00 26 0E 80 11 00 00 00 00 00 00 AE [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:27]Read from MH i2c: E2 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 17 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: E2 17 00 26 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FF [08:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:02:27]wFMCommunicate OK [08:02:27]CreateOFDProtocolMessage done [08:02:27]OFDSenderStorePacket 112145 [08:02:27]StoreOFDPacket docnum=112145 [08:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5B 24 04 01 60 89 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 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B6 01 00 35 04 06 00 47 74 CA D1 37 60 81 21 38 C1 40 D1 D2 5A [08:02:27]CheckFolder [08:02:27]dirname=/storage/ofd_packets [08:02:27]CheckFolder done [08:02:27]ProducePacketName [08:02:27]name=ofd_packets/00112145 [08:02:27]NVStorageSaveData ofd_packets/00112145 [08:02:27]File name is /storage/ofd_packets/00112145 [08:02:27]Write 298 bytes [08:02:27]NVStorageSaveData done [08:02:27]OFDSenderStorePacket done [08:02:27]KKMCreateOFDPacket done [08:02:27]NVStorageSaveData kkm_last_timestamp [08:02:27]File name is /storage/kkm_last_timestamp [08:02:27]Write 4 bytes [08:02:27]NVStorageSaveData done [08:02:27]OFD Sender: Processing packet 112145 [packets to send 71, broken 70] [08:02:27]ProducePacketName [08:02:27]name=ofd_packets/00112145 [08:02:27]OFD Sender: To server: pG, [08:02:27]CommunicateWithHost lk.salyk.kg:30040 [08:02:27]ConnectInit lk.salyk.kg [08:02:27]ExternCall_PrintAddStr [08:02:27]wPrintStart [08:02:27]Write to MH i2c: 01 00 00 27 0E 35 [08:02:27]Write i2c OK [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 07 00 [08:02:27]MH_I2C_Read... [08:02:27]Read from MH i2c: 01 07 00 27 0E 00 00 00 00 00 FF 0F 4A [08:02:27]RasterBufferAndPrint [08:02:27]line Счет N : (1)48467 [08:02:27]line ИНН: 02508201610067 [08:02:27]line Контрольно-Кассовый Чек [08:02:27]line ПРОДАЖА [08:02:27]line ТРК (МРК, ГНК) : 51 [08:02:27]line Товар: 2710194210 [08:02:27]line ДТ-К-5 [08:02:27]line 34.540 * 72.40 [08:02:27]line = 2500.70 [08:02:27]line НДС 12% НСП 1% [08:02:27]line > о реализуемом товаре [08:02:27]line ОКРУГЛЕНИЕ: -0.70 [08:02:27]line ИТОГО: 2500.00 [08:02:27]line Внесено: 2500.00 [08:02:27]line СДАЧА: 0.00 [08:02:27]line НСП 1% : 22.13 [08:02:27]line НДС 12% : 265.56 [08:02:27]line Наличными: 2500.00 [08:02:27]line Безнал.: 0.00 [08:02:27]line Место: АЗС № 47 "Партнер Нефть" [08:02:27]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:02:27]line СНО: Общий режим [08:02:27]line Чек 44 14.04.2024 08:02 [08:02:27]line Смена: 357 ФФД: 1.0 [08:02:27]line ЗНМ: 0300000138 [08:02:27]line РНМ: 0000000000094237 [08:02:27]line Версия ККМ: 001 [08:02:27]line ФМ: 0000000000875019 [08:02:27]line ФД: 112145 [08:02:27]line ФПД: 78566944487264 [08:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080228&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112145&fm=78566944487264&tin=02508201610067®Number=0000000000094237&sum=250000 [08:02:28]Connected sock=11 [08:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5B 24 04 01 60 89 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 EC 86 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 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 BC 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 94 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B6 01 00 35 04 06 00 47 74 CA D1 37 60 81 21 38 C1 40 D1 D2 5A [08:02:28]written 0, free lines is 4095 [08:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9B 96 47 00 F1 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B6 01 00 F4 03 04 00 20 35 1B 66 B6 04 01 00 00 10 5B 70 61 DE 21 46 23 [08:02:28]CommunicateWithHost err = 0 [08:02:28]CheckOFDResponse [08:02:28]1017 (14) - 77093643461234 [08:02:28]1041 (16) - 0000000000875019 [08:02:28]1040 (4) - 112145 [08:02:28]1012 (4) - 14.04.2024 01:45 [08:02:28]1206 (1) - 0 [08:02:28]OFD Sender: Remove packet 112145 [08:02:28]ProducePacketName [08:02:28]name=ofd_packets/00112145 [08:02:28]NVStorageDeleteData [08:02:28]Write to MH i2c: 01 00 00 52 0E 60 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: 01 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: 01 07 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: 01 07 00 52 0E 00 00 00 00 00 D6 0C 49 [08:02:28]RasterBufferAndPrint [08:02:28]line [08:02:28]line [08:02:28]line [08:02:28]line [08:02:28]line [08:02:28]written 0, free lines is 3293 [08:02:28]MH_Cut [08:02:28]Write to MH i2c: D1 01 00 59 0E 01 39 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: D1 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: D1 01 00 [08:02:28]MH_I2C_Read... [08:02:28]Read from MH i2c: D1 01 00 59 0E 00 38 [08:02:28]Write to MH i2c: 01 00 00 5A 0E 68 [08:02:28]Write i2c OK [08:02:28]MH_I2C_Read... [08:02:28]OFD Sender: No OFD packet to send [08:02:29]*** Cut start [08:02:29]*** Partial cut [08:02:29]*** CUTSNS_PIN = 1 [08:02:29]*** CUTSNS_PIN = 0 [08:02:29]*** Brake cut motor [08:02:30]Read from MH i2c: 01 [08:02:30]MH_I2C_Read... [08:02:30]*** Stop cut motor [08:02:30]*** Cut end [08:02:30]Read from MH i2c: 01 07 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: 01 07 00 5A 0E 00 00 00 00 00 FF 0F 7D [08:02:30]process_action close_receipt done [08:02:30]requested_data is exist [08:02:30]produce_requested_data [08:02:30]requested_item fm.sn is exist - process it [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 11 00 00 [08:02:30]Write to MH i2c: E2 08 00 5B 0E 80 11 00 00 00 00 00 00 E3 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 17 00 5B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 34 [08:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:02:30]wFMCommunicate OK [08:02:30]requested_item fd.num is exist - process it [08:02:30]SAM_PROTO_GetFieldsCounters [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 13 00 00 [08:02:30]Write to MH i2c: E2 08 00 5C 0E 80 13 00 00 00 00 00 00 E6 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 62 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 62 00 5C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 11 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 B7 [08:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 11 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:30]wFMCommunicate OK [08:02:30]SAM_PROTO_GetFieldsCounters done [08:02:30]requested_item shift.num is exist - process it [08:02:30]requested_item shift.opened is exist - process it [08:02:30]req_shift_opened [08:02:30]FM_GetShiftState [08:02:30]SAM_PROTO_GetShiftState [08:02:30]wFMCommunicate request_size=4 [08:02:30]MH_SAM_APDU [08:02:30]CAPDU: 80 13 01 00 [08:02:30]Write to MH i2c: E2 08 00 5D 0E 80 13 01 00 00 00 00 00 E8 [08:02:30]Write i2c OK [08:02:30]MH_I2C_Read... [08:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:30]Read from MH i2c: E2 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0E 00 [08:02:30]MH_I2C_Read... [08:02:30]Read from MH i2c: E2 0E 00 5D 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 80 [08:02:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:02:30]wFMCommunicate OK [08:02:30]SAM_PROTO_GetShiftState done [08:02:30]FM_GetShiftState done [08:02:30]req_shift_opened done [08:02:30]requested_item shift.open_date is exist - process it [08:02:30]req_shift_open_date [08:02:30]req_shift_open_date done [08:02:30]produce_requested_data done [08:02:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112145,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:02:30]process_action_free close_receipt [08:02:30]json_value_free [08:02:30]json_value_free done [08:02:30]process_json_proto returns [08:02:30]Send response to host [08:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112145,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:02:30]free response buf [08:02:30]execute_script done [08:02:30]execute_script returns [08:02:30]free content buf [08:02:30]Sock 9.Close socket [08:02:30]Sock 9.Thread stoped [08:02:33]OFD Sender: No OFD packet to send [08:02:38]OFD Sender: No OFD packet to send [08:02:43]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:44]accept exits with 8 [08:03:44]New connection [08:03:44]New thread 3067501924 created [08:03:44]Thread 3067358564 joined [08:03:44]Waiting for new connection... [08:03:44] Sock 8.Parse request [08:03:44]Sock 8.Check first char [08:03:44]Sock 8.First char is OK [08:03:44]request: POST /json_proto HTTP/1.0 [08:03:44]Method: POST [08:03:44]URL: /json_proto [08:03:44]Method is POST - this is cgi request [08:03:44]url: /json_proto [08:03:44]query_string will be loaded in cgi processing [08:03:44]execute_cgi json_proto POST (null) [08:03:44]execute_cgi path=json_proto method=POST [08:03:44]POST find Content-Length [08:03:44]Host: 172.17.96.197:8080 [08:03:44]Content-Length: 676 [08:03:44]Content-Type: application/json [08:03:44] [08:03:44]POST finish read [08:03:44]Found Content-Length = 676 [08:03:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48468", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:03:44]execute_script... [08:03:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48468", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:03:44]POST & json_proto [08:03:44]process_json_proto [08:03:44]json parsed OK: [08:03:44]protocol is kg_v1.0 [08:03:44]action value=close_receipt [08:03:44]process_action close_receipt [08:03:44]cmd_close_receipt [08:03:44]MH_GetDate [08:03:44]Write to MH i2c: F0 00 00 5E 0E 5B [08:03:44]Write i2c OK [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: F0 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: F0 09 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: F0 09 00 5E 0E 00 E2 8D 1B 66 E0 85 7F 64 9C [08:03:44]GetLastDocTimeStamp 1713081748 [08:03:44]current date 1713081826 [08:03:44]FM_GetShiftState [08:03:44]SAM_PROTO_GetShiftState [08:03:44]wFMCommunicate request_size=4 [08:03:44]MH_SAM_APDU [08:03:44]CAPDU: 80 13 01 00 [08:03:44]Write to MH i2c: E2 08 00 5F 0E 80 13 01 00 00 00 00 00 EA [08:03:44]Write i2c OK [08:03:44]MH_I2C_Read... [08:03:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:44]Read from MH i2c: E2 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 0E 00 [08:03:44]MH_I2C_Read... [08:03:44]Read from MH i2c: E2 0E 00 5F 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 82 [08:03:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:03:44]wFMCommunicate OK [08:03:44]SAM_PROTO_GetShiftState done [08:03:44]FM_GetShiftState done [08:03:44]opened in 1713054696 [08:03:44]opened+sec_in_day 1713141096 [08:03:44]quantity*price = 50025 [08:03:44]sum+1 = 50026 [08:03:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 45 14.04.2024 08:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112146 ФПД: 52098578068538 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080346&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112146&fm=52098578068538&tin=02508201610067®Number=0000000000094237&sum=50000 [08:03:45]StoreToDocumentArchive [08:03:45]shift 357 fd 112146 [08:03:45]save to /storage/0357/doc_00112146 [08:03:45]save last doc name /storage/0357/doc_00112146 to /storage/kkm_last_doc_name [08:03:45]save OK [08:03:45]Clear old archive folders... [08:03:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:45]tlvbuf is 01B4A0B0 [08:03:45]SAM_PROTO_ClearQueue [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 09 00 00 [08:03:45]Write to MH i2c: E2 08 00 6C 0E 80 09 00 00 00 00 00 00 EC [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:45]Read from MH i2c: E2 03 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 6C 0E 00 90 00 EE [08:03:45]RAPDU: 90 00 [08:03:45]wFMCommunicate OK [08:03:45]SAM_PROTO_ClearQueue done [08:03:45]KKMCreateOFDPacket [08:03:45]OFDProtocolAddRootSTLVToBuf [08:03:45]FM_MakeSignedData [08:03:45]FM_MakeSignedData [08:03:45]SAM_PROTO_SignData [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 0D 01 02 [08:03:45]Write to MH i2c: E2 08 00 6D 0E 80 0D 01 02 00 00 00 00 F4 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 6D 0E 00 90 00 EF [08:03:45]RAPDU: 90 00 [08:03:45]wFMCommunicate OK [08:03:45]wFMCommunicate request_size=255 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2D 00 00 00 F4 03 04 00 E2 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B6 01 00 35 04 06 00 2F [08:03:45]Write to MH i2c: E2 02 01 6E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2D 00 00 00 F4 03 04 00 E2 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B6 01 00 35 04 06 00 2F 00 00 12 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 6E 0E 00 90 00 F0 [08:03:45]RAPDU: 90 00 [08:03:45]wFMCommunicate OK [08:03:45]wFMCommunicate request_size=10 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 0D 02 02 05 62 25 3D 34 3A [08:03:45]Write to MH i2c: E2 0D 00 6F 0E 80 0D 02 02 05 00 62 25 3D 34 3A 00 00 33 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [08:03:45]RAPDU: 90 00 [08:03:45]wFMCommunicate OK [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 0D 03 02 [08:03:45]Write to MH i2c: E2 08 00 70 0E 80 0D 03 02 00 00 00 00 F9 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 0B 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 0B 00 70 0E 00 8B 7E CE E4 3C 0A 0D 94 90 00 9C [08:03:45]RAPDU: 8B 7E CE E4 3C 0A 0D 94 90 00 [08:03:45]wFMCommunicate OK [08:03:45]SAM_PROTO_SignData done [08:03:45]FM_MakeSignedData done [08:03:45]CreateOFDProtocolMessage [08:03:45]wFMCommunicate request_size=4 [08:03:45]MH_SAM_APDU [08:03:45]CAPDU: 80 11 00 00 [08:03:45]Write to MH i2c: E2 08 00 71 0E 80 11 00 00 00 00 00 00 F9 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:45]Read from MH i2c: E2 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 17 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: E2 17 00 71 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4A [08:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:03:45]wFMCommunicate OK [08:03:45]CreateOFDProtocolMessage done [08:03:45]OFDSenderStorePacket 112146 [08:03:45]StoreOFDPacket docnum=112146 [08:03:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 51 C3 07 01 65 47 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2D 00 00 00 F4 03 04 00 E2 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B6 01 00 35 04 06 00 2F 62 25 3D 34 3A 8B 7E CE E4 3C 0A 0D 94 [08:03:45]CheckFolder [08:03:45]dirname=/storage/ofd_packets [08:03:45]CheckFolder done [08:03:45]ProducePacketName [08:03:45]name=ofd_packets/00112146 [08:03:45]NVStorageSaveData ofd_packets/00112146 [08:03:45]File name is /storage/ofd_packets/00112146 [08:03:45]Write 301 bytes [08:03:45]NVStorageSaveData done [08:03:45]OFDSenderStorePacket done [08:03:45]KKMCreateOFDPacket done [08:03:45]NVStorageSaveData kkm_last_timestamp [08:03:45]File name is /storage/kkm_last_timestamp [08:03:45]Write 4 bytes [08:03:45]NVStorageSaveData done [08:03:45]ExternCall_PrintAddStr [08:03:45]wPrintStart [08:03:45]Write to MH i2c: 01 00 00 72 0E 80 [08:03:45]Write i2c OK [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: 01 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: 01 07 00 [08:03:45]MH_I2C_Read... [08:03:45]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [08:03:45]RasterBufferAndPrint [08:03:45]line Счет N : (1)48468 [08:03:45]line ИНН: 02508201610067 [08:03:45]line Контрольно-Кассовый Чек [08:03:45]line ПРОДАЖА [08:03:45]line ТРК (МРК, ГНК) : 32 [08:03:45]line Товар: 2710124130 [08:03:45]line Аи-92-К-5 [08:03:45]line 7.780 * 64.30 [08:03:45]line = 500.25 [08:03:45]line НДС 12% НСП 1% [08:03:45]line > о реализуемом товаре [08:03:45]line ОКРУГЛЕНИЕ: -0.25 [08:03:45]line ИТОГО: 500.00 [08:03:45]line Внесено: 500.00 [08:03:45]line СДАЧА: 0.00 [08:03:45]line НСП 1% : 4.43 [08:03:45]line НДС 12% : 53.12 [08:03:45]line Наличными: 500.00 [08:03:45]line Безнал.: 0.00 [08:03:45]line Место: АЗС № 47 "Партнер Нефть" [08:03:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:03:45]line СНО: Общий режим [08:03:45]line Чек 45 14.04.2024 08:03 [08:03:45]line Смена: 357 ФФД: 1.0 [08:03:45]line ЗНМ: 0300000138 [08:03:45]line РНМ: 0000000000094237 [08:03:45]line Версия ККМ: 001 [08:03:45]line ФМ: 0000000000875019 [08:03:45]line ФД: 112146 [08:03:45]line ФПД: 52098578068538 [08:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080346&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112146&fm=52098578068538&tin=02508201610067®Number=0000000000094237&sum=50000 [08:03:46]OFD Sender: Processing packet 112146 [packets to send 71, broken 70] [08:03:46]ProducePacketName [08:03:46]name=ofd_packets/00112146 [08:03:46]OFD Sender: To server: pG, [08:03:46]CommunicateWithHost lk.salyk.kg:30040 [08:03:46]ConnectInit lk.salyk.kg [08:03:46]written 0, free lines is 4095 [08:03:46]Connected sock=11 [08:03:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 51 C3 07 01 65 47 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2D 00 00 00 F4 03 04 00 E2 8D 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B6 01 00 35 04 06 00 2F 62 25 3D 34 3A 8B 7E CE E4 3C 0A 0D 94 [08:03:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 63 64 47 00 D4 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B6 01 00 F4 03 04 00 6E 35 1B 66 B6 04 01 00 00 C6 5E 0E 26 56 1C 81 AC [08:03:46]CommunicateWithHost err = 0 [08:03:46]CheckOFDResponse [08:03:46]1017 (14) - 77093643461234 [08:03:46]1041 (16) - 0000000000875019 [08:03:46]1040 (4) - 112146 [08:03:46]1012 (4) - 14.04.2024 01:46 [08:03:46]1206 (1) - 0 [08:03:46]OFD Sender: Remove packet 112146 [08:03:46]ProducePacketName [08:03:46]name=ofd_packets/00112146 [08:03:46]NVStorageDeleteData [08:03:46]Write to MH i2c: 01 00 00 9D 0E AB [08:03:46]Write i2c OK [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: 01 [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: 01 07 00 [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: 01 07 00 9D 0E 00 00 00 00 00 D9 0C 97 [08:03:46]RasterBufferAndPrint [08:03:46]line [08:03:46]line [08:03:46]line [08:03:46]line [08:03:46]line [08:03:46]written 0, free lines is 3297 [08:03:46]MH_Cut [08:03:46]Write to MH i2c: D1 01 00 A4 0E 01 84 [08:03:46]Write i2c OK [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: D1 [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: D1 01 00 [08:03:46]MH_I2C_Read... [08:03:46]Read from MH i2c: D1 01 00 A4 0E 00 83 [08:03:46]Write to MH i2c: 01 00 00 A5 0E B3 [08:03:46]Write i2c OK [08:03:46]MH_I2C_Read... [08:03:47]OFD Sender: No OFD packet to send [08:03:47]*** Cut start [08:03:47]*** Partial cut [08:03:47]*** CUTSNS_PIN = 1 [08:03:47]*** CUTSNS_PIN = 0 [08:03:47]*** Brake cut motor [08:03:48]Read from MH i2c: 01 [08:03:48]MH_I2C_Read... [08:03:48]*** Stop cut motor [08:03:48]*** Cut end [08:03:48]Read from MH i2c: 01 07 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: 01 07 00 A5 0E 00 00 00 00 00 FF 0F C8 [08:03:48]process_action close_receipt done [08:03:48]requested_data is exist [08:03:48]produce_requested_data [08:03:48]requested_item fm.sn is exist - process it [08:03:48]wFMCommunicate request_size=4 [08:03:48]MH_SAM_APDU [08:03:48]CAPDU: 80 11 00 00 [08:03:48]Write to MH i2c: E2 08 00 A6 0E 80 11 00 00 00 00 00 00 2E [08:03:48]Write i2c OK [08:03:48]MH_I2C_Read... [08:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:48]Read from MH i2c: E2 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 17 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 17 00 A6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7F [08:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:03:48]wFMCommunicate OK [08:03:48]requested_item fd.num is exist - process it [08:03:48]SAM_PROTO_GetFieldsCounters [08:03:48]wFMCommunicate request_size=4 [08:03:48]MH_SAM_APDU [08:03:48]CAPDU: 80 13 00 00 [08:03:48]Write to MH i2c: E2 08 00 A7 0E 80 13 00 00 00 00 00 00 31 [08:03:48]Write i2c OK [08:03:48]MH_I2C_Read... [08:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:48]Read from MH i2c: E2 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 62 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 62 00 A7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 12 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [08:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 12 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:03:48]wFMCommunicate OK [08:03:48]SAM_PROTO_GetFieldsCounters done [08:03:48]requested_item shift.num is exist - process it [08:03:48]requested_item shift.opened is exist - process it [08:03:48]req_shift_opened [08:03:48]FM_GetShiftState [08:03:48]SAM_PROTO_GetShiftState [08:03:48]wFMCommunicate request_size=4 [08:03:48]MH_SAM_APDU [08:03:48]CAPDU: 80 13 01 00 [08:03:48]Write to MH i2c: E2 08 00 A8 0E 80 13 01 00 00 00 00 00 33 [08:03:48]Write i2c OK [08:03:48]MH_I2C_Read... [08:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:48]Read from MH i2c: E2 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 0E 00 [08:03:48]MH_I2C_Read... [08:03:48]Read from MH i2c: E2 0E 00 A8 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [08:03:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:03:48]wFMCommunicate OK [08:03:48]SAM_PROTO_GetShiftState done [08:03:48]FM_GetShiftState done [08:03:48]req_shift_opened done [08:03:48]requested_item shift.open_date is exist - process it [08:03:48]req_shift_open_date [08:03:48]req_shift_open_date done [08:03:48]produce_requested_data done [08:03:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112146,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:03:48]process_action_free close_receipt [08:03:48]json_value_free [08:03:48]json_value_free done [08:03:48]process_json_proto returns [08:03:48]Send response to host [08:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112146,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:03:48]free response buf [08:03:48]execute_script done [08:03:48]execute_script returns [08:03:48]free content buf [08:03:48]Sock 8.Close socket [08:03:48]Sock 8.Thread stoped [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:52]OFD Sender: No OFD packet to send [08:04:57]OFD Sender: No OFD packet to send [08:05:02]OFD Sender: No OFD packet to send [08:05:07]OFD Sender: No OFD packet to send [08:05:12]OFD Sender: No OFD packet to send [08:05:17]OFD Sender: No OFD packet to send [08:05:22]OFD Sender: No OFD packet to send [08:05:27]OFD Sender: No OFD packet to send [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:37]accept exits with 9 [08:05:37]New connection [08:05:37]New thread 3067358564 created [08:05:37]Thread 3067501924 joined [08:05:37]Waiting for new connection... [08:05:37] Sock 9.Parse request [08:05:37]Sock 9.Check first char [08:05:37]Sock 9.First char is OK [08:05:37]request: POST /json_proto HTTP/1.0 [08:05:37]Method: POST [08:05:37]URL: /json_proto [08:05:37]Method is POST - this is cgi request [08:05:37]url: /json_proto [08:05:37]query_string will be loaded in cgi processing [08:05:37]execute_cgi json_proto POST (null) [08:05:37]execute_cgi path=json_proto method=POST [08:05:37]POST find Content-Length [08:05:37]Host: 172.17.96.197:8080 [08:05:37]Content-Length: 645 [08:05:37]Content-Type: application/json [08:05:37] [08:05:37]POST finish read [08:05:37]Found Content-Length = 645 [08:05:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10405", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:37]execute_script... [08:05:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10405", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:37]POST & json_proto [08:05:37]process_json_proto [08:05:37]json parsed OK: [08:05:37]protocol is kg_v1.0 [08:05:37]action value=close_receipt [08:05:37]process_action close_receipt [08:05:37]cmd_close_receipt [08:05:37]MH_GetDate [08:05:37]Write to MH i2c: F0 00 00 A9 0E A6 [08:05:37]Write i2c OK [08:05:37]MH_I2C_Read... [08:05:37]Read from MH i2c: F0 [08:05:37]MH_I2C_Read... [08:05:37]Read from MH i2c: F0 09 00 [08:05:37]MH_I2C_Read... [08:05:37]Read from MH i2c: F0 09 00 A9 0E 00 54 8E 1B 66 E0 85 7F 64 5A [08:05:37]GetLastDocTimeStamp 1713081826 [08:05:37]current date 1713081940 [08:05:37]FM_GetShiftState [08:05:37]SAM_PROTO_GetShiftState [08:05:37]wFMCommunicate request_size=4 [08:05:37]MH_SAM_APDU [08:05:37]CAPDU: 80 13 01 00 [08:05:37]Write to MH i2c: E2 08 00 AA 0E 80 13 01 00 00 00 00 00 35 [08:05:37]Write i2c OK [08:05:37]MH_I2C_Read... [08:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:37]Read from MH i2c: E2 [08:05:37]MH_I2C_Read... [08:05:37]Read from MH i2c: E2 0E 00 [08:05:37]MH_I2C_Read... [08:05:37]Read from MH i2c: E2 0E 00 AA 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CD [08:05:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:05:37]wFMCommunicate OK [08:05:37]SAM_PROTO_GetShiftState done [08:05:37]FM_GetShiftState done [08:05:37]opened in 1713054696 [08:05:37]opened+sec_in_day 1713141096 [08:05:37]quantity*price = 13000 [08:05:37]sum+1 = 13001 [08:05:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 46 14.04.2024 08:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112147 ФПД: 85008665699646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080540&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112147&fm=85008665699646&tin=02508201610067®Number=0000000000094237&sum=13000 0 [08:05:38]StoreToDocumentArchive [08:05:38]shift 357 fd 112147 [08:05:38]save to /storage/0357/doc_00112147 [08:05:38]save last doc name /storage/0357/doc_00112147 to /storage/kkm_last_doc_name [08:05:38]save OK [08:05:38]Clear old archive folders... [08:05:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:05:38]tlvbuf is 01B21C50 [08:05:38]SAM_PROTO_ClearQueue [08:05:38]wFMCommunicate request_size=4 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 09 00 00 [08:05:38]Write to MH i2c: E2 08 00 B7 0E 80 09 00 00 00 00 00 00 37 [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:38]Read from MH i2c: E2 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 B7 0E 00 90 00 39 [08:05:38]RAPDU: 90 00 [08:05:38]wFMCommunicate OK [08:05:38]SAM_PROTO_ClearQueue done [08:05:38]KKMCreateOFDPacket [08:05:38]OFDProtocolAddRootSTLVToBuf [08:05:38]FM_MakeSignedData [08:05:38]FM_MakeSignedData [08:05:38]SAM_PROTO_SignData [08:05:38]wFMCommunicate request_size=4 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 0D 01 02 [08:05:38]Write to MH i2c: E2 08 00 B8 0E 80 0D 01 02 00 00 00 00 3F [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:38]Read from MH i2c: E2 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 B8 0E 00 90 00 3A [08:05:38]RAPDU: 90 00 [08:05:38]wFMCommunicate OK [08:05:38]wFMCommunicate request_size=255 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 54 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [08:05:38]Write to MH i2c: E2 02 01 B9 0E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 54 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 45 [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:38]Read from MH i2c: E2 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 B9 0E 00 90 00 3B [08:05:38]RAPDU: 90 00 [08:05:38]wFMCommunicate OK [08:05:38]wFMCommunicate request_size=41 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B6 01 00 35 04 06 00 4D 50 9F 52 65 3E [08:05:38]Write to MH i2c: E2 2C 00 BA 0E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B6 01 00 35 04 06 00 4D 50 9F 52 65 3E 00 00 0A [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:38]Read from MH i2c: E2 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [08:05:38]RAPDU: 90 00 [08:05:38]wFMCommunicate OK [08:05:38]wFMCommunicate request_size=4 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 0D 03 02 [08:05:38]Write to MH i2c: E2 08 00 BB 0E 80 0D 03 02 00 00 00 00 44 [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:38]Read from MH i2c: E2 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 0B 00 [08:05:38]MH_I2C_Read... [08:05:38]Read from MH i2c: E2 0B 00 BB 0E 00 42 9D AB 9B E1 25 29 85 90 00 1E [08:05:38]RAPDU: 42 9D AB 9B E1 25 29 85 90 00 [08:05:38]wFMCommunicate OK [08:05:38]SAM_PROTO_SignData done [08:05:38]FM_MakeSignedData done [08:05:38]CreateOFDProtocolMessage [08:05:38]wFMCommunicate request_size=4 [08:05:38]MH_SAM_APDU [08:05:38]CAPDU: 80 11 00 00 [08:05:38]Write to MH i2c: E2 08 00 BC 0E 80 11 00 00 00 00 00 00 44 [08:05:38]Write i2c OK [08:05:38]MH_I2C_Read... [08:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:39]Read from MH i2c: E2 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: E2 17 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: E2 17 00 BC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 95 [08:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:05:39]wFMCommunicate OK [08:05:39]CreateOFDProtocolMessage done [08:05:39]OFDSenderStorePacket 112147 [08:05:39]StoreOFDPacket docnum=112147 [08:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 28 FE 26 01 F0 7A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 54 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B6 01 00 35 04 06 00 4D 50 9F 52 65 3E 42 9D AB 9B E1 25 29 85 [08:05:39]CheckFolder [08:05:39]dirname=/storage/ofd_packets [08:05:39]CheckFolder done [08:05:39]ProducePacketName [08:05:39]name=ofd_packets/00112147 [08:05:39]NVStorageSaveData ofd_packets/00112147 [08:05:39]File name is /storage/ofd_packets/00112147 [08:05:39]Write 332 bytes [08:05:39]NVStorageSaveData done [08:05:39]OFDSenderStorePacket done [08:05:39]KKMCreateOFDPacket done [08:05:39]NVStorageSaveData kkm_last_timestamp [08:05:39]File name is /storage/kkm_last_timestamp [08:05:39]Write 4 bytes [08:05:39]NVStorageSaveData done [08:05:39]ExternCall_PrintAddStr [08:05:39]wPrintStart [08:05:39]Write to MH i2c: 01 00 00 BD 0E CB [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 07 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 07 00 BD 0E 00 00 00 00 00 FF 0F E0 [08:05:39]RasterBufferAndPrint [08:05:39]line Счет N : (3)10405 [08:05:39]line ИНН: 02508201610067 [08:05:39]line Контрольно-Кассовый Чек [08:05:39]line ПРОДАЖА [08:05:39]line Товар: 2000036220012 [08:05:39]line Кофе Капучино XL(GABB TRADE) [08:05:39]line 1.000 * 130.00 [08:05:39]line = 130.00 [08:05:39]line НДС 12% НСП 1% [08:05:39]line > о реализуемом товаре [08:05:39]line ИТОГО: 130.00 [08:05:39]line НСП 1% : 1.15 [08:05:39]line НДС 12% : 13.80 [08:05:39]line Наличными: 130.00 [08:05:39]line Безнал.: 0.00 [08:05:39]line Место: АЗС № 47 "Партнер Нефть" [08:05:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:05:39]line СНО: Общий режим [08:05:39]line Чек 46 14.04.2024 08:05 [08:05:39]line Смена: 357 ФФД: 1.0 [08:05:39]line ЗНМ: 0300000138 [08:05:39]line РНМ: 0000000000094237 [08:05:39]line Версия ККМ: 001 [08:05:39]line ФМ: 0000000000875019 [08:05:39]line ФД: 112147 [08:05:39]line ФПД: 85008665699646 [08:05:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080540&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112147&fm=85008665699646&tin=02508201610067®Number=0000000000094237&sum=13000 [08:05:39]line 0 [08:05:39]OFD Sender: Processing packet 112147 [packets to send 71, broken 70] [08:05:39]ProducePacketName [08:05:39]name=ofd_packets/00112147 [08:05:39]OFD Sender: To server: pG, [08:05:39]CommunicateWithHost lk.salyk.kg:30040 [08:05:39]ConnectInit lk.salyk.kg [08:05:39]written 0, free lines is 4095 [08:05:39]Connected sock=11 [08:05:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 28 FE 26 01 F0 7A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 54 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B6 01 00 35 04 06 00 4D 50 9F 52 65 3E 42 9D AB 9B E1 25 29 85 [08:05:39]Write to MH i2c: 01 00 00 E6 0E F4 [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 07 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: 01 07 00 E6 0E 00 00 00 00 00 DD 0C E4 [08:05:39]RasterBufferAndPrint [08:05:39]line [08:05:39]line [08:05:39]line [08:05:39]line [08:05:39]line [08:05:39]written 0, free lines is 3299 [08:05:39]MH_Cut [08:05:39]Write to MH i2c: D1 01 00 ED 0E 01 CD [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: D1 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: D1 01 00 [08:05:39]MH_I2C_Read... [08:05:39]Read from MH i2c: D1 01 00 ED 0E 00 CC [08:05:39]Write to MH i2c: 01 00 00 EE 0E FC [08:05:39]Write i2c OK [08:05:39]MH_I2C_Read... [08:05:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D0 6F 47 00 A7 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B6 01 00 F4 03 04 00 E0 35 1B 66 B6 04 01 00 00 77 32 33 19 DA 7F A5 EF [08:05:39]CommunicateWithHost err = 0 [08:05:39]CheckOFDResponse [08:05:39]1017 (14) - 77093643461234 [08:05:39]1041 (16) - 0000000000875019 [08:05:39]1040 (4) - 112147 [08:05:39]1012 (4) - 14.04.2024 01:48 [08:05:39]1206 (1) - 0 [08:05:39]OFD Sender: Remove packet 112147 [08:05:39]ProducePacketName [08:05:39]name=ofd_packets/00112147 [08:05:39]NVStorageDeleteData [08:05:40]OFD Sender: No OFD packet to send [08:05:40]*** Cut start [08:05:40]*** Partial cut [08:05:40]*** CUTSNS_PIN = 1 [08:05:40]*** CUTSNS_PIN = 0 [08:05:40]*** Brake cut motor [08:05:41]Read from MH i2c: 01 [08:05:41]MH_I2C_Read... [08:05:41]*** Stop cut motor [08:05:41]*** Cut end [08:05:41]Read from MH i2c: 01 07 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [08:05:41]process_action close_receipt done [08:05:41]requested_data is exist [08:05:41]produce_requested_data [08:05:41]requested_item fm.sn is exist - process it [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 11 00 00 [08:05:41]Write to MH i2c: E2 08 00 EF 0E 80 11 00 00 00 00 00 00 77 [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 17 00 EF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C8 [08:05:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:05:41]wFMCommunicate OK [08:05:41]requested_item fd.num is exist - process it [08:05:41]SAM_PROTO_GetFieldsCounters [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 13 00 00 [08:05:41]Write to MH i2c: E2 08 00 F0 0E 80 13 00 00 00 00 00 00 7A [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 62 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 62 00 F0 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 13 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [08:05:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 13 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:05:41]wFMCommunicate OK [08:05:41]SAM_PROTO_GetFieldsCounters done [08:05:41]requested_item shift.num is exist - process it [08:05:41]requested_item shift.opened is exist - process it [08:05:41]req_shift_opened [08:05:41]FM_GetShiftState [08:05:41]SAM_PROTO_GetShiftState [08:05:41]wFMCommunicate request_size=4 [08:05:41]MH_SAM_APDU [08:05:41]CAPDU: 80 13 01 00 [08:05:41]Write to MH i2c: E2 08 00 F1 0E 80 13 01 00 00 00 00 00 7C [08:05:41]Write i2c OK [08:05:41]MH_I2C_Read... [08:05:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:41]Read from MH i2c: E2 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 0E 00 [08:05:41]MH_I2C_Read... [08:05:41]Read from MH i2c: E2 0E 00 F1 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 14 [08:05:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:05:41]wFMCommunicate OK [08:05:41]SAM_PROTO_GetShiftState done [08:05:41]FM_GetShiftState done [08:05:41]req_shift_opened done [08:05:41]requested_item shift.open_date is exist - process it [08:05:41]req_shift_open_date [08:05:41]req_shift_open_date done [08:05:41]produce_requested_data done [08:05:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112147,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:05:41]process_action_free close_receipt [08:05:41]json_value_free [08:05:41]json_value_free done [08:05:41]process_json_proto returns [08:05:41]Send response to host [08:05:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112147,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:05:41]free response buf [08:05:41]execute_script done [08:05:41]execute_script returns [08:05:41]free content buf [08:05:41]Sock 9.Close socket [08:05:41]Sock 9.Thread stoped [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:06:58]accept exits with 8 [08:06:58]New connection [08:06:58]New thread 3067501924 created [08:06:58]Thread 3067358564 joined [08:06:58]Waiting for new connection... [08:06:58] Sock 8.Parse request [08:06:58]Sock 8.Check first char [08:06:58]Sock 8.First char is OK [08:06:58]request: POST /json_proto HTTP/1.0 [08:06:58]Method: POST [08:06:58]URL: /json_proto [08:06:58]Method is POST - this is cgi request [08:06:58]url: /json_proto [08:06:58]query_string will be loaded in cgi processing [08:06:58]execute_cgi json_proto POST (null) [08:06:58]execute_cgi path=json_proto method=POST [08:06:58]POST find Content-Length [08:06:58]Host: 172.17.96.197:8080 [08:06:58]Content-Length: 707 [08:06:58]Content-Type: application/json [08:06:58] [08:06:58]POST finish read [08:06:58]Found Content-Length = 707 [08:06:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 112147, "base_FM": "0000000000875019", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10405", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "112147" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:58]execute_script... [08:06:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale_refund", "base_FD": 112147, "base_FM": "0000000000875019", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10405", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "112147" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:58]POST & json_proto [08:06:58]process_json_proto [08:06:58]json parsed OK: [08:06:58]protocol is kg_v1.0 [08:06:58]action value=close_receipt [08:06:58]process_action close_receipt [08:06:58]cmd_close_receipt [08:06:58]MH_GetDate [08:06:58]Write to MH i2c: F0 00 00 F2 0E EF [08:06:58]Write i2c OK [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: F0 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: F0 09 00 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: F0 09 00 F2 0E 00 A4 8E 1B 66 E0 85 7F 64 F3 [08:06:58]GetLastDocTimeStamp 1713081940 [08:06:58]current date 1713082020 [08:06:58]FM_GetShiftState [08:06:58]SAM_PROTO_GetShiftState [08:06:58]wFMCommunicate request_size=4 [08:06:58]MH_SAM_APDU [08:06:58]CAPDU: 80 13 01 00 [08:06:58]Write to MH i2c: E2 08 00 F3 0E 80 13 01 00 00 00 00 00 7E [08:06:58]Write i2c OK [08:06:58]MH_I2C_Read... [08:06:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:58]Read from MH i2c: E2 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: E2 0E 00 [08:06:58]MH_I2C_Read... [08:06:58]Read from MH i2c: E2 0E 00 F3 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 16 [08:06:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:06:58]wFMCommunicate OK [08:06:58]SAM_PROTO_GetShiftState done [08:06:58]FM_GetShiftState done [08:06:58]opened in 1713054696 [08:06:58]opened+sec_in_day 1713141096 [08:06:58]quantity*price = 13000 [08:06:58]sum+1 = 13001 [08:06:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 47 14.04.2024 08:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФД осн.: 112147 ФМ осн.: 0000000000875019 ФМ: 0000000000875019 ФД: 112148 ФПД: 197831488379757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080700&type=2&operation_type=1&fn_number=0000000000875019&fd_number=112148&fm=197831488379757&tin=02508201610067®Number=0000000000094237&sum=13000 112147 [08:06:59]StoreToDocumentArchive [08:06:59]shift 357 fd 112148 [08:06:59]save to /storage/0357/doc_00112148 [08:06:59]save last doc name /storage/0357/doc_00112148 to /storage/kkm_last_doc_name [08:06:59]save OK [08:06:59]Clear old archive folders... [08:06:59]ProcessDocumentItem done err = 0, tmpTLVsize=310 [08:06:59]tlvbuf is 019A2770 [08:06:59]SAM_PROTO_ClearQueue [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 09 00 00 [08:06:59]Write to MH i2c: E2 08 00 02 0F 80 09 00 00 00 00 00 00 83 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 02 0F 00 90 00 85 [08:06:59]RAPDU: 90 00 [08:06:59]wFMCommunicate OK [08:06:59]SAM_PROTO_ClearQueue done [08:06:59]KKMCreateOFDPacket [08:06:59]OFDProtocolAddRootSTLVToBuf [08:06:59]FM_MakeSignedData [08:06:59]FM_MakeSignedData [08:06:59]SAM_PROTO_SignData [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 0D 01 02 [08:06:59]Write to MH i2c: E2 08 00 03 0F 80 0D 01 02 00 00 00 00 8B [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 03 0F 00 90 00 86 [08:06:59]RAPDU: 90 00 [08:06:59]wFMCommunicate OK [08:06:59]wFMCommunicate request_size=255 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A4 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 [08:06:59]Write to MH i2c: E2 02 01 04 0F 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A4 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 00 00 15 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 04 0F 00 90 00 87 [08:06:59]RAPDU: 90 00 [08:06:59]wFMCommunicate OK [08:06:59]wFMCommunicate request_size=69 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 0D 02 02 40 04 00 13 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B6 01 00 35 04 06 00 B3 ED 3B 97 1B 6D [08:06:59]Write to MH i2c: E2 48 00 05 0F 80 0D 02 02 40 00 04 00 13 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B6 01 00 35 04 06 00 B3 ED 3B 97 1B 6D 00 00 95 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:59]Read from MH i2c: E2 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 [08:06:59]MH_I2C_Read... [08:06:59]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [08:06:59]RAPDU: 90 00 [08:06:59]wFMCommunicate OK [08:06:59]wFMCommunicate request_size=4 [08:06:59]MH_SAM_APDU [08:06:59]CAPDU: 80 0D 03 02 [08:06:59]Write to MH i2c: E2 08 00 06 0F 80 0D 03 02 00 00 00 00 90 [08:06:59]Write i2c OK [08:06:59]MH_I2C_Read... [08:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:00]Read from MH i2c: E2 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 0B 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 0B 00 06 0F 00 6D D0 20 A0 09 39 FC C2 90 00 8E [08:07:00]RAPDU: 6D D0 20 A0 09 39 FC C2 90 00 [08:07:00]wFMCommunicate OK [08:07:00]SAM_PROTO_SignData done [08:07:00]FM_MakeSignedData done [08:07:00]CreateOFDProtocolMessage [08:07:00]wFMCommunicate request_size=4 [08:07:00]MH_SAM_APDU [08:07:00]CAPDU: 80 11 00 00 [08:07:00]Write to MH i2c: E2 08 00 07 0F 80 11 00 00 00 00 00 00 90 [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:00]Read from MH i2c: E2 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 17 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: E2 17 00 07 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E1 [08:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:07:00]wFMCommunicate OK [08:07:00]CreateOFDProtocolMessage done [08:07:00]OFDSenderStorePacket 112148 [08:07:00]StoreOFDPacket docnum=112148 [08:07:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4A 01 00 00 31 4C 42 01 35 25 5A 03 01 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A4 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 13 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B6 01 00 35 04 06 00 B3 ED 3B 97 1B 6D 6D D0 20 A0 09 39 FC C2 [08:07:00]CheckFolder [08:07:00]dirname=/storage/ofd_packets [08:07:00]CheckFolder done [08:07:00]ProducePacketName [08:07:00]name=ofd_packets/00112148 [08:07:00]NVStorageSaveData ofd_packets/00112148 [08:07:00]File name is /storage/ofd_packets/00112148 [08:07:00]Write 360 bytes [08:07:00]NVStorageSaveData done [08:07:00]OFDSenderStorePacket done [08:07:00]KKMCreateOFDPacket done [08:07:00]NVStorageSaveData kkm_last_timestamp [08:07:00]File name is /storage/kkm_last_timestamp [08:07:00]Write 4 bytes [08:07:00]NVStorageSaveData done [08:07:00]ExternCall_PrintAddStr [08:07:00]wPrintStart [08:07:00]Write to MH i2c: 01 00 00 08 0F 17 [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 07 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 07 00 08 0F 00 00 00 00 00 FF 0F 2C [08:07:00]RasterBufferAndPrint [08:07:00]line Счет N : (3)10405 [08:07:00]line ИНН: 02508201610067 [08:07:00]line Контрольно-Кассовый Чек [08:07:00]line ВОЗВРАТ ПРОДАЖИ [08:07:00]line Товар: 2000036220012 [08:07:00]line Кофе Капучино XL(GABB TRADE) [08:07:00]line 1.000 * 130.00 [08:07:00]line = 130.00 [08:07:00]line НДС 12% НСП 1% [08:07:00]line > о реализуемом товаре [08:07:00]line ИТОГО: 130.00 [08:07:00]line НСП 1% : 1.15 [08:07:00]line НДС 12% : 13.80 [08:07:00]line Наличными: 130.00 [08:07:00]line Безнал.: 0.00 [08:07:00]line Место: АЗС № 47 "Партнер Нефть" [08:07:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:07:00]line СНО: Общий режим [08:07:00]line Чек 47 14.04.2024 08:07 [08:07:00]line Смена: 357 ФФД: 1.0 [08:07:00]line ЗНМ: 0300000138 [08:07:00]line РНМ: 0000000000094237 [08:07:00]line Версия ККМ: 001 [08:07:00]line ФД осн.: 112147 [08:07:00]line ФМ осн.: 0000000000875019 [08:07:00]line ФМ: 0000000000875019 [08:07:00]line ФД: 112148 [08:07:00]line ФПД: 197831488379757 [08:07:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080700&type=2&operation_type=1&fn_number=0000000000875019&fd_number=112148&fm=197831488379757&tin=02508201610067®Number=0000000000094237&sum=13000 [08:07:00]line 112147 [08:07:00]OFD Sender: Processing packet 112148 [packets to send 71, broken 70] [08:07:00]ProducePacketName [08:07:00]name=ofd_packets/00112148 [08:07:00]OFD Sender: To server: pG, [08:07:00]CommunicateWithHost lk.salyk.kg:30040 [08:07:00]ConnectInit lk.salyk.kg [08:07:00]written 0, free lines is 4095 [08:07:00]Connected sock=11 [08:07:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4A 01 00 00 31 4C 42 01 35 25 5A 03 01 00 03 00 36 01 1E 04 01 00 02 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 A4 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 27 04 04 00 13 B6 01 00 28 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B6 01 00 35 04 06 00 B3 ED 3B 97 1B 6D 6D D0 20 A0 09 39 FC C2 [08:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5A F7 47 00 41 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B6 01 00 F4 03 04 00 31 36 1B 66 B6 04 01 00 00 95 C3 46 0E A8 61 1C DA [08:07:00]CommunicateWithHost err = 0 [08:07:00]CheckOFDResponse [08:07:00]1017 (14) - 77093643461234 [08:07:00]1041 (16) - 0000000000875019 [08:07:00]1040 (4) - 112148 [08:07:00]1012 (4) - 14.04.2024 01:49 [08:07:00]1206 (1) - 0 [08:07:00]OFD Sender: Remove packet 112148 [08:07:00]ProducePacketName [08:07:00]name=ofd_packets/00112148 [08:07:00]NVStorageDeleteData [08:07:00]Write to MH i2c: 01 00 00 33 0F 42 [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 07 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: 01 07 00 33 0F 00 00 00 00 00 D8 0C 2D [08:07:00]RasterBufferAndPrint [08:07:00]line [08:07:00]line [08:07:00]line [08:07:00]line [08:07:00]line [08:07:00]written 0, free lines is 3294 [08:07:00]MH_Cut [08:07:00]Write to MH i2c: D1 01 00 3A 0F 01 1B [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: D1 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: D1 01 00 [08:07:00]MH_I2C_Read... [08:07:00]Read from MH i2c: D1 01 00 3A 0F 00 1A [08:07:00]Write to MH i2c: 01 00 00 3B 0F 4A [08:07:00]Write i2c OK [08:07:00]MH_I2C_Read... [08:07:01]OFD Sender: No OFD packet to send [08:07:01]*** Cut start [08:07:01]*** Partial cut [08:07:01]*** CUTSNS_PIN = 1 [08:07:01]*** CUTSNS_PIN = 0 [08:07:01]*** Brake cut motor [08:07:02]Read from MH i2c: 01 [08:07:02]MH_I2C_Read... [08:07:02]*** Stop cut motor [08:07:02]*** Cut end [08:07:02]Read from MH i2c: 01 07 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 FF 0F 5F [08:07:02]process_action close_receipt done [08:07:02]requested_data is exist [08:07:02]produce_requested_data [08:07:02]requested_item fm.sn is exist - process it [08:07:02]wFMCommunicate request_size=4 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 11 00 00 [08:07:02]Write to MH i2c: E2 08 00 3C 0F 80 11 00 00 00 00 00 00 C5 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 17 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 17 00 3C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [08:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:07:02]wFMCommunicate OK [08:07:02]requested_item fd.num is exist - process it [08:07:02]SAM_PROTO_GetFieldsCounters [08:07:02]wFMCommunicate request_size=4 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 13 00 00 [08:07:02]Write to MH i2c: E2 08 00 3D 0F 80 13 00 00 00 00 00 00 C8 [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 62 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 62 00 3D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 14 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [08:07:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 14 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:02]wFMCommunicate OK [08:07:02]SAM_PROTO_GetFieldsCounters done [08:07:02]requested_item shift.num is exist - process it [08:07:02]requested_item shift.opened is exist - process it [08:07:02]req_shift_opened [08:07:02]FM_GetShiftState [08:07:02]SAM_PROTO_GetShiftState [08:07:02]wFMCommunicate request_size=4 [08:07:02]MH_SAM_APDU [08:07:02]CAPDU: 80 13 01 00 [08:07:02]Write to MH i2c: E2 08 00 3E 0F 80 13 01 00 00 00 00 00 CA [08:07:02]Write i2c OK [08:07:02]MH_I2C_Read... [08:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:02]Read from MH i2c: E2 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 0E 00 [08:07:02]MH_I2C_Read... [08:07:02]Read from MH i2c: E2 0E 00 3E 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 62 [08:07:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:07:02]wFMCommunicate OK [08:07:02]SAM_PROTO_GetShiftState done [08:07:02]FM_GetShiftState done [08:07:02]req_shift_opened done [08:07:02]requested_item shift.open_date is exist - process it [08:07:02]req_shift_open_date [08:07:02]req_shift_open_date done [08:07:02]produce_requested_data done [08:07:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112148,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:07:02]process_action_free close_receipt [08:07:02]json_value_free [08:07:02]json_value_free done [08:07:02]process_json_proto returns [08:07:02]Send response to host [08:07:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112148,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:07:02]free response buf [08:07:02]execute_script done [08:07:02]execute_script returns [08:07:02]free content buf [08:07:02]Sock 8.Close socket [08:07:02]Sock 8.Thread stoped [08:07:03]accept exits with 9 [08:07:03]New connection [08:07:03]New thread 3067358564 created [08:07:03]Thread 3067501924 joined [08:07:03]Waiting for new connection... [08:07:03] Sock 9.Parse request [08:07:03]Sock 9.Check first char [08:07:03]Sock 9.First char is OK [08:07:03]request: POST /json_proto HTTP/1.0 [08:07:03]Method: POST [08:07:03]URL: /json_proto [08:07:03]Method is POST - this is cgi request [08:07:03]url: /json_proto [08:07:03]query_string will be loaded in cgi processing [08:07:03]execute_cgi json_proto POST (null) [08:07:03]execute_cgi path=json_proto method=POST [08:07:03]POST find Content-Length [08:07:03]Host: 172.17.96.197:8080 [08:07:03]Content-Length: 822 [08:07:03]Content-Type: application/json [08:07:03] [08:07:03]POST finish read [08:07:03]Found Content-Length = 822 [08:07:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10406", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:03]execute_script... [08:07:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10406", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:03]POST & json_proto [08:07:03]process_json_proto [08:07:03]json parsed OK: [08:07:03]protocol is kg_v1.0 [08:07:03]action value=close_receipt [08:07:03]process_action close_receipt [08:07:03]cmd_close_receipt [08:07:03]MH_GetDate [08:07:03]Write to MH i2c: F0 00 00 3F 0F 3D [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: F0 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: F0 09 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: F0 09 00 3F 0F 00 A9 8E 1B 66 E0 85 7F 64 46 [08:07:03]GetLastDocTimeStamp 1713082020 [08:07:03]current date 1713082025 [08:07:03]FM_GetShiftState [08:07:03]SAM_PROTO_GetShiftState [08:07:03]wFMCommunicate request_size=4 [08:07:03]MH_SAM_APDU [08:07:03]CAPDU: 80 13 01 00 [08:07:03]Write to MH i2c: E2 08 00 40 0F 80 13 01 00 00 00 00 00 CC [08:07:03]Write i2c OK [08:07:03]MH_I2C_Read... [08:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:03]Read from MH i2c: E2 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 0E 00 [08:07:03]MH_I2C_Read... [08:07:03]Read from MH i2c: E2 0E 00 40 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 64 [08:07:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:07:03]wFMCommunicate OK [08:07:03]SAM_PROTO_GetShiftState done [08:07:03]FM_GetShiftState done [08:07:03]opened in 1713054696 [08:07:03]opened+sec_in_day 1713141096 [08:07:03]quantity*price = 13000 [08:07:03]sum+1 = 13001 [08:07:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 48 14.04.2024 08:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112149 ФПД: 239774380345499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080705&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112149&fm=239774380345499&tin=02508201610067®Number=0000000000094237&sum=13000 0 [08:07:04]StoreToDocumentArchive [08:07:04]shift 357 fd 112149 [08:07:04]save to /storage/0357/doc_00112149 [08:07:04]save last doc name /storage/0357/doc_00112149 to /storage/kkm_last_doc_name [08:07:04]save OK [08:07:04]Clear old archive folders... [08:07:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:07:04]tlvbuf is 019F5B50 [08:07:04]SAM_PROTO_ClearQueue [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 09 00 00 [08:07:04]Write to MH i2c: E2 08 00 4D 0F 80 09 00 00 00 00 00 00 CE [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 03 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 03 00 4D 0F 00 90 00 D0 [08:07:04]RAPDU: 90 00 [08:07:04]wFMCommunicate OK [08:07:04]SAM_PROTO_ClearQueue done [08:07:04]KKMCreateOFDPacket [08:07:04]OFDProtocolAddRootSTLVToBuf [08:07:04]FM_MakeSignedData [08:07:04]FM_MakeSignedData [08:07:04]SAM_PROTO_SignData [08:07:04]wFMCommunicate request_size=4 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 0D 01 02 [08:07:04]Write to MH i2c: E2 08 00 4E 0F 80 0D 01 02 00 00 00 00 D6 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:04]Read from MH i2c: E2 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 03 00 [08:07:04]MH_I2C_Read... [08:07:04]Read from MH i2c: E2 03 00 4E 0F 00 90 00 D1 [08:07:04]RAPDU: 90 00 [08:07:04]wFMCommunicate OK [08:07:04]wFMCommunicate request_size=255 [08:07:04]MH_SAM_APDU [08:07:04]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A9 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [08:07:04]Write to MH i2c: E2 02 01 4F 0F 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A9 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 33 [08:07:04]Write i2c OK [08:07:04]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 4F 0F 00 90 00 D2 [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]wFMCommunicate request_size=41 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B6 01 00 35 04 06 00 DA 12 D2 C4 48 9B [08:07:05]Write to MH i2c: E2 2C 00 50 0F 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B6 01 00 35 04 06 00 DA 12 D2 C4 48 9B 00 00 D7 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [08:07:05]RAPDU: 90 00 [08:07:05]wFMCommunicate OK [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 0D 03 02 [08:07:05]Write to MH i2c: E2 08 00 51 0F 80 0D 03 02 00 00 00 00 DB [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 0B 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 0B 00 51 0F 00 C1 81 90 06 E0 77 F4 43 90 00 42 [08:07:05]RAPDU: C1 81 90 06 E0 77 F4 43 90 00 [08:07:05]wFMCommunicate OK [08:07:05]SAM_PROTO_SignData done [08:07:05]FM_MakeSignedData done [08:07:05]CreateOFDProtocolMessage [08:07:05]wFMCommunicate request_size=4 [08:07:05]MH_SAM_APDU [08:07:05]CAPDU: 80 11 00 00 [08:07:05]Write to MH i2c: E2 08 00 52 0F 80 11 00 00 00 00 00 00 DB [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:05]Read from MH i2c: E2 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 17 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: E2 17 00 52 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2C [08:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:07:05]wFMCommunicate OK [08:07:05]CreateOFDProtocolMessage done [08:07:05]OFDSenderStorePacket 112149 [08:07:05]StoreOFDPacket docnum=112149 [08:07:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 98 99 26 01 9F E0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A9 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B6 01 00 35 04 06 00 DA 12 D2 C4 48 9B C1 81 90 06 E0 77 F4 43 [08:07:05]CheckFolder [08:07:05]dirname=/storage/ofd_packets [08:07:05]CheckFolder done [08:07:05]ProducePacketName [08:07:05]name=ofd_packets/00112149 [08:07:05]NVStorageSaveData ofd_packets/00112149 [08:07:05]File name is /storage/ofd_packets/00112149 [08:07:05]Write 332 bytes [08:07:05]NVStorageSaveData done [08:07:05]OFDSenderStorePacket done [08:07:05]KKMCreateOFDPacket done [08:07:05]NVStorageSaveData kkm_last_timestamp [08:07:05]File name is /storage/kkm_last_timestamp [08:07:05]Write 4 bytes [08:07:05]NVStorageSaveData done [08:07:05]ExternCall_PrintAddStr [08:07:05]wPrintStart [08:07:05]Write to MH i2c: 01 00 00 53 0F 62 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 07 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 07 00 53 0F 00 00 00 00 00 FF 0F 77 [08:07:05]RasterBufferAndPrint [08:07:05]line Счет N : (3)10406 [08:07:05]line ИНН: 02508201610067 [08:07:05]line Контрольно-Кассовый Чек [08:07:05]line ПРОДАЖА [08:07:05]line Товар: 2000036220012 [08:07:05]line Кофе Капучино XL(GABB TRADE) [08:07:05]line 1.000 * 130.00 [08:07:05]line = 130.00 [08:07:05]line НДС 12% НСП 1% [08:07:05]line > о реализуемом товаре [08:07:05]line ИТОГО: 130.00 [08:07:05]line НСП 1% : 1.15 [08:07:05]line НДС 12% : 13.80 [08:07:05]line Наличными: 0.00 [08:07:05]line Безнал.: 130.00 [08:07:05]line Место: АЗС № 47 "Партнер Нефть" [08:07:05]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:07:05]line СНО: Общий режим [08:07:05]line Чек 48 14.04.2024 08:07 [08:07:05]line Смена: 357 ФФД: 1.0 [08:07:05]line ЗНМ: 0300000138 [08:07:05]line РНМ: 0000000000094237 [08:07:05]line Версия ККМ: 001 [08:07:05]line Платежная система: Бакай Банк [08:07:05]line ФМ: 0000000000875019 [08:07:05]line ФД: 112149 [08:07:05]line ФПД: 239774380345499 [08:07:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T080705&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112149&fm=239774380345499&tin=02508201610067®Number=0000000000094237&sum=13000 [08:07:05]line 0 [08:07:05]written 0, free lines is 4095 [08:07:05]OFD Sender: Processing packet 112149 [packets to send 71, broken 70] [08:07:05]ProducePacketName [08:07:05]name=ofd_packets/00112149 [08:07:05]OFD Sender: To server: pG, [08:07:05]CommunicateWithHost lk.salyk.kg:30040 [08:07:05]ConnectInit lk.salyk.kg [08:07:05]Connected sock=10 [08:07:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 98 99 26 01 9F E0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 A9 8E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B6 01 00 35 04 06 00 DA 12 D2 C4 48 9B C1 81 90 06 E0 77 F4 43 [08:07:05]Write to MH i2c: 01 00 00 7E 0F 8D [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 07 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: 01 07 00 7E 0F 00 00 00 00 00 DB 0C 7B [08:07:05]RasterBufferAndPrint [08:07:05]line [08:07:05]line [08:07:05]line [08:07:05]line [08:07:05]line [08:07:05]written 0, free lines is 3300 [08:07:05]MH_Cut [08:07:05]Write to MH i2c: D1 01 00 85 0F 01 66 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: D1 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: D1 01 00 [08:07:05]MH_I2C_Read... [08:07:05]Read from MH i2c: D1 01 00 85 0F 00 65 [08:07:05]Write to MH i2c: 01 00 00 86 0F 95 [08:07:05]Write i2c OK [08:07:05]MH_I2C_Read... [08:07:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C0 0D 47 00 69 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 38 37 35 30 31 39 10 04 04 00 15 B6 01 00 F4 03 04 00 36 36 1B 66 B6 04 01 00 00 4D CE 23 22 2E 85 F6 78 [08:07:05]CommunicateWithHost err = 0 [08:07:05]CheckOFDResponse [08:07:05]1017 (14) - 77093643461234 [08:07:05]1041 (16) - 0000000000875019 [08:07:05]1040 (4) - 112149 [08:07:05]1012 (4) - 14.04.2024 01:49 [08:07:05]1206 (1) - 0 [08:07:05]OFD Sender: Remove packet 112149 [08:07:05]ProducePacketName [08:07:05]name=ofd_packets/00112149 [08:07:05]NVStorageDeleteData [08:07:06]OFD Sender: No OFD packet to send [08:07:06]*** Cut start [08:07:06]*** Partial cut [08:07:06]*** CUTSNS_PIN = 1 [08:07:06]*** CUTSNS_PIN = 0 [08:07:06]*** Brake cut motor [08:07:07]Read from MH i2c: 01 [08:07:07]MH_I2C_Read... [08:07:07]*** Stop cut motor [08:07:07]*** Cut end [08:07:07]Read from MH i2c: 01 07 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: 01 07 00 86 0F 00 00 00 00 00 FF 0F AA [08:07:07]process_action close_receipt done [08:07:07]requested_data is exist [08:07:07]produce_requested_data [08:07:07]requested_item fm.sn is exist - process it [08:07:07]wFMCommunicate request_size=4 [08:07:07]MH_SAM_APDU [08:07:07]CAPDU: 80 11 00 00 [08:07:07]Write to MH i2c: E2 08 00 87 0F 80 11 00 00 00 00 00 00 10 [08:07:07]Write i2c OK [08:07:07]MH_I2C_Read... [08:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:07]Read from MH i2c: E2 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 17 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 17 00 87 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 61 [08:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:07:07]wFMCommunicate OK [08:07:07]requested_item fd.num is exist - process it [08:07:07]SAM_PROTO_GetFieldsCounters [08:07:07]wFMCommunicate request_size=4 [08:07:07]MH_SAM_APDU [08:07:07]CAPDU: 80 13 00 00 [08:07:07]Write to MH i2c: E2 08 00 88 0F 80 13 00 00 00 00 00 00 13 [08:07:07]Write i2c OK [08:07:07]MH_I2C_Read... [08:07:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:07]Read from MH i2c: E2 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 62 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 62 00 88 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 15 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [08:07:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 15 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:07]wFMCommunicate OK [08:07:07]SAM_PROTO_GetFieldsCounters done [08:07:07]requested_item shift.num is exist - process it [08:07:07]requested_item shift.opened is exist - process it [08:07:07]req_shift_opened [08:07:07]FM_GetShiftState [08:07:07]SAM_PROTO_GetShiftState [08:07:07]wFMCommunicate request_size=4 [08:07:07]MH_SAM_APDU [08:07:07]CAPDU: 80 13 01 00 [08:07:07]Write to MH i2c: E2 08 00 89 0F 80 13 01 00 00 00 00 00 15 [08:07:07]Write i2c OK [08:07:07]MH_I2C_Read... [08:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:07]Read from MH i2c: E2 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 0E 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 0E 00 89 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AD [08:07:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:07:07]wFMCommunicate OK [08:07:07]SAM_PROTO_GetShiftState done [08:07:07]FM_GetShiftState done [08:07:07]req_shift_opened done [08:07:07]requested_item shift.open_date is exist - process it [08:07:07]req_shift_open_date [08:07:07]req_shift_open_date done [08:07:07]produce_requested_data done [08:07:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112149,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:07:07]process_action_free close_receipt [08:07:07]json_value_free [08:07:07]json_value_free done [08:07:07]process_json_proto returns [08:07:07]Send response to host [08:07:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112149,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:07:07]free response buf [08:07:07]execute_script done [08:07:07]execute_script returns [08:07:07]free content buf [08:07:07]Sock 9.Close socket [08:07:07]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:57]OFD Sender: No OFD packet to send [08:18:02]OFD Sender: No OFD packet to send [08:18:07]OFD Sender: No OFD packet to send [08:18:12]OFD Sender: No OFD packet to send [08:18:17]OFD Sender: No OFD packet to send [08:18:22]OFD Sender: No OFD packet to send [08:18:27]OFD Sender: No OFD packet to send [08:18:32]OFD Sender: No OFD packet to send [08:18:37]OFD Sender: No OFD packet to send [08:18:42]OFD Sender: No OFD packet to send [08:18:47]OFD Sender: No OFD packet to send [08:18:52]OFD Sender: No OFD packet to send [08:18:57]OFD Sender: No OFD packet to send [08:19:02]OFD Sender: No OFD packet to send [08:19:07]OFD Sender: No OFD packet to send [08:19:12]OFD Sender: No OFD packet to send [08:19:17]OFD Sender: No OFD packet to send [08:19:22]OFD Sender: No OFD packet to send [08:19:27]OFD Sender: No OFD packet to send [08:19:32]OFD Sender: No OFD packet to send [08:19:37]OFD Sender: No OFD packet to send [08:19:42]OFD Sender: No OFD packet to send [08:19:47]OFD Sender: No OFD packet to send [08:19:52]OFD Sender: No OFD packet to send [08:19:57]OFD Sender: No OFD packet to send [08:20:02]OFD Sender: No OFD packet to send [08:20:07]OFD Sender: No OFD packet to send [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:21:27]OFD Sender: No OFD packet to send [08:21:32]OFD Sender: No OFD packet to send [08:21:37]OFD Sender: No OFD packet to send [08:21:42]OFD Sender: No OFD packet to send [08:21:47]OFD Sender: No OFD packet to send [08:21:52]OFD Sender: No OFD packet to send [08:21:57]OFD Sender: No OFD packet to send [08:22:02]OFD Sender: No OFD packet to send [08:22:07]OFD Sender: No OFD packet to send [08:22:12]OFD Sender: No OFD packet to send [08:22:17]OFD Sender: No OFD packet to send [08:22:22]OFD Sender: No OFD packet to send [08:22:27]OFD Sender: No OFD packet to send [08:22:32]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:32]OFD Sender: No OFD packet to send [08:23:37]OFD Sender: No OFD packet to send [08:23:42]OFD Sender: No OFD packet to send [08:23:47]OFD Sender: No OFD packet to send [08:23:52]OFD Sender: No OFD packet to send [08:23:57]OFD Sender: No OFD packet to send [08:24:02]OFD Sender: No OFD packet to send [08:24:07]OFD Sender: No OFD packet to send [08:24:12]OFD Sender: No OFD packet to send [08:24:17]OFD Sender: No OFD packet to send [08:24:22]OFD Sender: No OFD packet to send [08:24:27]OFD Sender: No OFD packet to send [08:24:32]OFD Sender: No OFD packet to send [08:24:37]OFD Sender: No OFD packet to send [08:24:42]OFD Sender: No OFD packet to send [08:24:47]OFD Sender: No OFD packet to send [08:24:52]OFD Sender: No OFD packet to send [08:24:57]OFD Sender: No OFD packet to send [08:25:02]OFD Sender: No OFD packet to send [08:25:07]OFD Sender: No OFD packet to send [08:25:12]OFD Sender: No OFD packet to send [08:25:17]OFD Sender: No OFD packet to send [08:25:22]OFD Sender: No OFD packet to send [08:25:27]OFD Sender: No OFD packet to send [08:25:32]OFD Sender: No OFD packet to send [08:25:37]OFD Sender: No OFD packet to send [08:25:42]OFD Sender: No OFD packet to send [08:25:47]OFD Sender: No OFD packet to send [08:25:52]OFD Sender: No OFD packet to send [08:25:57]OFD Sender: No OFD packet to send [08:26:02]OFD Sender: No OFD packet to send [08:26:07]OFD Sender: No OFD packet to send [08:26:12]OFD Sender: No OFD packet to send [08:26:17]OFD Sender: No OFD packet to send [08:26:22]OFD Sender: No OFD packet to send [08:26:27]OFD Sender: No OFD packet to send [08:26:32]OFD Sender: No OFD packet to send [08:26:37]OFD Sender: No OFD packet to send [08:26:42]OFD Sender: No OFD packet to send [08:26:47]OFD Sender: No OFD packet to send [08:26:52]OFD Sender: No OFD packet to send [08:26:57]OFD Sender: No OFD packet to send [08:27:02]OFD Sender: No OFD packet to send [08:27:07]OFD Sender: No OFD packet to send [08:27:12]OFD Sender: No OFD packet to send [08:27:17]OFD Sender: No OFD packet to send [08:27:22]OFD Sender: No OFD packet to send [08:27:27]OFD Sender: No OFD packet to send [08:27:32]OFD Sender: No OFD packet to send [08:27:37]OFD Sender: No OFD packet to send [08:27:42]OFD Sender: No OFD packet to send [08:27:47]OFD Sender: No OFD packet to send [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:17]OFD Sender: No OFD packet to send [08:29:22]OFD Sender: No OFD packet to send [08:29:27]OFD Sender: No OFD packet to send [08:29:32]OFD Sender: No OFD packet to send [08:29:37]OFD Sender: No OFD packet to send [08:29:42]OFD Sender: No OFD packet to send [08:29:47]OFD Sender: No OFD packet to send [08:29:52]OFD Sender: No OFD packet to send [08:29:57]OFD Sender: No OFD packet to send [08:30:02]OFD Sender: No OFD packet to send [08:30:07]OFD Sender: No OFD packet to send [08:30:12]OFD Sender: No OFD packet to send [08:30:17]OFD Sender: No OFD packet to send [08:30:22]OFD Sender: No OFD packet to send [08:30:27]OFD Sender: No OFD packet to send [08:30:32]OFD Sender: No OFD packet to send [08:30:37]OFD Sender: No OFD packet to send [08:30:42]OFD Sender: No OFD packet to send [08:30:47]OFD Sender: No OFD packet to send [08:30:52]OFD Sender: No OFD packet to send [08:30:57]OFD Sender: No OFD packet to send [08:31:02]OFD Sender: No OFD packet to send [08:31:07]OFD Sender: No OFD packet to send [08:31:12]OFD Sender: No OFD packet to send [08:31:17]OFD Sender: No OFD packet to send [08:31:22]OFD Sender: No OFD packet to send [08:31:27]OFD Sender: No OFD packet to send [08:31:32]OFD Sender: No OFD packet to send [08:31:37]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:45]accept exits with 8 [08:33:45]New connection [08:33:45]New thread 3067501924 created [08:33:45]Thread 3067358564 joined [08:33:45]Waiting for new connection... [08:33:45] Sock 8.Parse request [08:33:45]Sock 8.Check first char [08:33:45]Sock 8.First char is OK [08:33:45]request: POST /json_proto HTTP/1.0 [08:33:45]Method: POST [08:33:45]URL: /json_proto [08:33:45]Method is POST - this is cgi request [08:33:45]url: /json_proto [08:33:45]query_string will be loaded in cgi processing [08:33:45]execute_cgi json_proto POST (null) [08:33:45]execute_cgi path=json_proto method=POST [08:33:45]POST find Content-Length [08:33:45]Host: 172.17.96.197:8080 [08:33:45]Content-Length: 643 [08:33:45]Content-Type: application/json [08:33:45] [08:33:45]POST finish read [08:33:45]Found Content-Length = 643 [08:33:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10407", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:45]execute_script... [08:33:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10407", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:45]POST & json_proto [08:33:45]process_json_proto [08:33:45]json parsed OK: [08:33:45]protocol is kg_v1.0 [08:33:45]action value=close_receipt [08:33:45]process_action close_receipt [08:33:45]cmd_close_receipt [08:33:45]MH_GetDate [08:33:45]Write to MH i2c: F0 00 00 8A 0F 88 [08:33:45]Write i2c OK [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: F0 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: F0 09 00 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: F0 09 00 8A 0F 00 EB 94 1B 66 E0 85 7F 64 D9 [08:33:45]GetLastDocTimeStamp 1713082025 [08:33:45]current date 1713083627 [08:33:45]FM_GetShiftState [08:33:45]SAM_PROTO_GetShiftState [08:33:45]wFMCommunicate request_size=4 [08:33:45]MH_SAM_APDU [08:33:45]CAPDU: 80 13 01 00 [08:33:45]Write to MH i2c: E2 08 00 8B 0F 80 13 01 00 00 00 00 00 17 [08:33:45]Write i2c OK [08:33:45]MH_I2C_Read... [08:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:45]Read from MH i2c: E2 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 0E 00 [08:33:45]MH_I2C_Read... [08:33:45]Read from MH i2c: E2 0E 00 8B 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AF [08:33:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:33:45]wFMCommunicate OK [08:33:45]SAM_PROTO_GetShiftState done [08:33:45]FM_GetShiftState done [08:33:45]opened in 1713054696 [08:33:45]opened+sec_in_day 1713141096 [08:33:45]quantity*price = 23000 [08:33:45]sum+1 = 23001 [08:33:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 49 14.04.2024 08:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112150 ФПД: 175171437825040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083347&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112150&fm=175171437825040&tin=02508201610067®Number=0000000000094237&sum=23000 0 [08:33:46]StoreToDocumentArchive [08:33:46]shift 357 fd 112150 [08:33:46]save to /storage/0357/doc_00112150 [08:33:46]save last doc name /storage/0357/doc_00112150 to /storage/kkm_last_doc_name [08:33:46]save OK [08:33:46]Clear old archive folders... [08:33:46]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:33:46]tlvbuf is 01B2E1D0 [08:33:46]SAM_PROTO_ClearQueue [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 09 00 00 [08:33:46]Write to MH i2c: E2 08 00 98 0F 80 09 00 00 00 00 00 00 19 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 98 0F 00 90 00 1B [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]SAM_PROTO_ClearQueue done [08:33:46]KKMCreateOFDPacket [08:33:46]OFDProtocolAddRootSTLVToBuf [08:33:46]FM_MakeSignedData [08:33:46]FM_MakeSignedData [08:33:46]SAM_PROTO_SignData [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 01 02 [08:33:46]Write to MH i2c: E2 08 00 99 0F 80 0D 01 02 00 00 00 00 21 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 99 0F 00 90 00 1C [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]wFMCommunicate request_size=255 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EB 94 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 [08:33:46]Write to MH i2c: E2 02 01 9A 0F 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EB 94 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 00 00 5E [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 9A 0F 00 90 00 1D [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]wFMCommunicate request_size=39 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B6 01 00 35 04 06 00 9F 51 47 53 8C 10 [08:33:46]Write to MH i2c: E2 2A 00 9B 0F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B6 01 00 35 04 06 00 9F 51 47 53 8C 10 00 00 D0 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [08:33:46]RAPDU: 90 00 [08:33:46]wFMCommunicate OK [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 0D 03 02 [08:33:46]Write to MH i2c: E2 08 00 9C 0F 80 0D 03 02 00 00 00 00 26 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0B 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 0B 00 9C 0F 00 6F E6 72 95 70 D7 F0 13 90 00 CD [08:33:46]RAPDU: 6F E6 72 95 70 D7 F0 13 90 00 [08:33:46]wFMCommunicate OK [08:33:46]SAM_PROTO_SignData done [08:33:46]FM_MakeSignedData done [08:33:46]CreateOFDProtocolMessage [08:33:46]wFMCommunicate request_size=4 [08:33:46]MH_SAM_APDU [08:33:46]CAPDU: 80 11 00 00 [08:33:46]Write to MH i2c: E2 08 00 9D 0F 80 11 00 00 00 00 00 00 26 [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:46]Read from MH i2c: E2 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 17 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: E2 17 00 9D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 77 [08:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:33:46]wFMCommunicate OK [08:33:46]CreateOFDProtocolMessage done [08:33:46]OFDSenderStorePacket 112150 [08:33:46]StoreOFDPacket docnum=112150 [08:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 5B 6E 24 01 8E BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EB 94 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B6 01 00 35 04 06 00 9F 51 47 53 8C 10 6F E6 72 95 70 D7 F0 13 [08:33:46]CheckFolder [08:33:46]dirname=/storage/ofd_packets [08:33:46]CheckFolder done [08:33:46]ProducePacketName [08:33:46]name=ofd_packets/00112150 [08:33:46]NVStorageSaveData ofd_packets/00112150 [08:33:46]File name is /storage/ofd_packets/00112150 [08:33:46]Write 330 bytes [08:33:46]NVStorageSaveData done [08:33:46]OFDSenderStorePacket done [08:33:46]KKMCreateOFDPacket done [08:33:46]NVStorageSaveData kkm_last_timestamp [08:33:46]File name is /storage/kkm_last_timestamp [08:33:46]Write 4 bytes [08:33:46]NVStorageSaveData done [08:33:46]ExternCall_PrintAddStr [08:33:46]wPrintStart [08:33:46]Write to MH i2c: 01 00 00 9E 0F AD [08:33:46]Write i2c OK [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 07 00 [08:33:46]MH_I2C_Read... [08:33:46]Read from MH i2c: 01 07 00 9E 0F 00 00 00 00 00 FF 0F C2 [08:33:46]RasterBufferAndPrint [08:33:46]line Счет N : (3)10407 [08:33:46]line ИНН: 02508201610067 [08:33:46]line Контрольно-Кассовый Чек [08:33:46]line ПРОДАЖА [08:33:46]line Товар: 2000036210013 [08:33:46]line Кофе Капучино (GABB TRADE) [08:33:46]line 2.000 * 115.00 [08:33:46]line = 230.00 [08:33:46]line НДС 12% НСП 1% [08:33:46]line > о реализуемом товаре [08:33:46]line ИТОГО: 230.00 [08:33:46]line НСП 1% : 2.03 [08:33:46]line НДС 12% : 24.42 [08:33:46]line Наличными: 230.00 [08:33:46]line Безнал.: 0.00 [08:33:46]line Место: АЗС № 47 "Партнер Нефть" [08:33:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:33:46]line СНО: Общий режим [08:33:46]line Чек 49 14.04.2024 08:33 [08:33:46]line Смена: 357 ФФД: 1.0 [08:33:46]line ЗНМ: 0300000138 [08:33:46]line РНМ: 0000000000094237 [08:33:46]line Версия ККМ: 001 [08:33:46]line ФМ: 0000000000875019 [08:33:46]line ФД: 112150 [08:33:46]line ФПД: 175171437825040 [08:33:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083347&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112150&fm=175171437825040&tin=02508201610067®Number=0000000000094237&sum=23000 [08:33:47]line 0 [08:33:47]OFD Sender: Processing packet 112150 [packets to send 71, broken 70] [08:33:47]ProducePacketName [08:33:47]name=ofd_packets/00112150 [08:33:47]OFD Sender: To server: pG, [08:33:47]CommunicateWithHost lk.salyk.kg:30040 [08:33:47]ConnectInit lk.salyk.kg [08:33:47]written 0, free lines is 4095 [08:33:47]Connected sock=10 [08:33:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 5B 6E 24 01 8E BE 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 EB 94 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B6 01 00 35 04 06 00 9F 51 47 53 8C 10 6F E6 72 95 70 D7 F0 13 [08:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5A 4A 47 00 20 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B6 01 00 F4 03 04 00 77 3C 1B 66 B6 04 01 00 00 85 5D 47 C4 09 6A 41 02 [08:33:47]CommunicateWithHost err = 0 [08:33:47]CheckOFDResponse [08:33:47]1017 (14) - 77093643461234 [08:33:47]1041 (16) - 0000000000875019 [08:33:47]1040 (4) - 112150 [08:33:47]1012 (4) - 14.04.2024 02:16 [08:33:47]1206 (1) - 0 [08:33:47]OFD Sender: Remove packet 112150 [08:33:47]ProducePacketName [08:33:47]name=ofd_packets/00112150 [08:33:47]NVStorageDeleteData [08:33:47]Write to MH i2c: 01 00 00 C6 0F D5 [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 03 0D EC [08:33:47]RasterBufferAndPrint [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]line [08:33:47]written 0, free lines is 3337 [08:33:47]MH_Cut [08:33:47]Write to MH i2c: D1 01 00 CD 0F 01 AE [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 01 00 [08:33:47]MH_I2C_Read... [08:33:47]Read from MH i2c: D1 01 00 CD 0F 00 AD [08:33:47]Write to MH i2c: 01 00 00 CE 0F DD [08:33:47]Write i2c OK [08:33:47]MH_I2C_Read... [08:33:48]OFD Sender: No OFD packet to send [08:33:48]*** Cut start [08:33:48]*** Partial cut [08:33:48]*** CUTSNS_PIN = 1 [08:33:48]*** CUTSNS_PIN = 0 [08:33:48]*** Brake cut motor [08:33:48]Read from MH i2c: 01 [08:33:48]MH_I2C_Read... [08:33:48]*** Stop cut motor [08:33:48]*** Cut end [08:33:48]Read from MH i2c: 01 07 00 [08:33:48]MH_I2C_Read... [08:33:48]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [08:33:48]process_action close_receipt done [08:33:48]requested_data is exist [08:33:48]produce_requested_data [08:33:48]requested_item fm.sn is exist - process it [08:33:48]wFMCommunicate request_size=4 [08:33:48]MH_SAM_APDU [08:33:48]CAPDU: 80 11 00 00 [08:33:48]Write to MH i2c: E2 08 00 CF 0F 80 11 00 00 00 00 00 00 58 [08:33:48]Write i2c OK [08:33:48]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 17 00 CF 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [08:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:33:49]wFMCommunicate OK [08:33:49]requested_item fd.num is exist - process it [08:33:49]SAM_PROTO_GetFieldsCounters [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 13 00 00 [08:33:49]Write to MH i2c: E2 08 00 D0 0F 80 13 00 00 00 00 00 00 5B [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 62 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 62 00 D0 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 16 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [08:33:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 16 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_GetFieldsCounters done [08:33:49]requested_item shift.num is exist - process it [08:33:49]requested_item shift.opened is exist - process it [08:33:49]req_shift_opened [08:33:49]FM_GetShiftState [08:33:49]SAM_PROTO_GetShiftState [08:33:49]wFMCommunicate request_size=4 [08:33:49]MH_SAM_APDU [08:33:49]CAPDU: 80 13 01 00 [08:33:49]Write to MH i2c: E2 08 00 D1 0F 80 13 01 00 00 00 00 00 5D [08:33:49]Write i2c OK [08:33:49]MH_I2C_Read... [08:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:49]Read from MH i2c: E2 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0E 00 [08:33:49]MH_I2C_Read... [08:33:49]Read from MH i2c: E2 0E 00 D1 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F5 [08:33:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:33:49]wFMCommunicate OK [08:33:49]SAM_PROTO_GetShiftState done [08:33:49]FM_GetShiftState done [08:33:49]req_shift_opened done [08:33:49]requested_item shift.open_date is exist - process it [08:33:49]req_shift_open_date [08:33:49]req_shift_open_date done [08:33:49]produce_requested_data done [08:33:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112150,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:33:49]process_action_free close_receipt [08:33:49]json_value_free [08:33:49]json_value_free done [08:33:49]process_json_proto returns [08:33:49]Send response to host [08:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112150,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:33:49]free response buf [08:33:49]execute_script done [08:33:49]execute_script returns [08:33:49]free content buf [08:33:49]Sock 8.Close socket [08:33:49]Sock 8.Thread stoped [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:25]accept exits with 9 [08:34:25]New connection [08:34:25]New thread 3067358564 created [08:34:25]Thread 3067501924 joined [08:34:25]Waiting for new connection... [08:34:25] Sock 9.Parse request [08:34:25]Sock 9.Check first char [08:34:25]Sock 9.First char is OK [08:34:25]request: POST /json_proto HTTP/1.0 [08:34:25]Method: POST [08:34:25]URL: /json_proto [08:34:25]Method is POST - this is cgi request [08:34:25]url: /json_proto [08:34:25]query_string will be loaded in cgi processing [08:34:25]execute_cgi json_proto POST (null) [08:34:25]execute_cgi path=json_proto method=POST [08:34:25]POST find Content-Length [08:34:25]Host: 172.17.96.197:8080 [08:34:25]Content-Length: 674 [08:34:25]Content-Type: application/json [08:34:25] [08:34:25]POST finish read [08:34:25]Found Content-Length = 674 [08:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48469", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:34:25]execute_script... [08:34:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48469", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:34:25]POST & json_proto [08:34:25]process_json_proto [08:34:25]json parsed OK: [08:34:25]protocol is kg_v1.0 [08:34:25]action value=close_receipt [08:34:25]process_action close_receipt [08:34:25]cmd_close_receipt [08:34:25]MH_GetDate [08:34:25]Write to MH i2c: F0 00 00 D2 0F D0 [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: F0 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: F0 09 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: F0 09 00 D2 0F 00 14 95 1B 66 E0 85 7F 64 4B [08:34:25]GetLastDocTimeStamp 1713083627 [08:34:25]current date 1713083668 [08:34:25]FM_GetShiftState [08:34:25]SAM_PROTO_GetShiftState [08:34:25]wFMCommunicate request_size=4 [08:34:25]MH_SAM_APDU [08:34:25]CAPDU: 80 13 01 00 [08:34:25]Write to MH i2c: E2 08 00 D3 0F 80 13 01 00 00 00 00 00 5F [08:34:25]Write i2c OK [08:34:25]MH_I2C_Read... [08:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:25]Read from MH i2c: E2 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0E 00 [08:34:25]MH_I2C_Read... [08:34:25]Read from MH i2c: E2 0E 00 D3 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F7 [08:34:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:34:25]wFMCommunicate OK [08:34:25]SAM_PROTO_GetShiftState done [08:34:25]FM_GetShiftState done [08:34:25]opened in 1713054696 [08:34:25]opened+sec_in_day 1713141096 [08:34:25]quantity*price = 100039 [08:34:25]sum+1 = 100041 [08:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 50 14.04.2024 08:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112151 ФПД: 136641324691626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083428&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112151&fm=136641324691626&tin=02508201610067®Number=0000000000094237&sum=100000 [08:34:26]StoreToDocumentArchive [08:34:26]shift 357 fd 112151 [08:34:26]save to /storage/0357/doc_00112151 [08:34:26]save last doc name /storage/0357/doc_00112151 to /storage/kkm_last_doc_name [08:34:26]save OK [08:34:26]Clear old archive folders... [08:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:34:26]tlvbuf is 01B2DF60 [08:34:26]SAM_PROTO_ClearQueue [08:34:26]wFMCommunicate request_size=4 [08:34:26]MH_SAM_APDU [08:34:26]CAPDU: 80 09 00 00 [08:34:26]Write to MH i2c: E2 08 00 E0 0F 80 09 00 00 00 00 00 00 61 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:26]Read from MH i2c: E2 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 03 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 03 00 E0 0F 00 90 00 63 [08:34:26]RAPDU: 90 00 [08:34:26]wFMCommunicate OK [08:34:26]SAM_PROTO_ClearQueue done [08:34:26]KKMCreateOFDPacket [08:34:26]OFDProtocolAddRootSTLVToBuf [08:34:26]FM_MakeSignedData [08:34:26]FM_MakeSignedData [08:34:26]SAM_PROTO_SignData [08:34:26]wFMCommunicate request_size=4 [08:34:26]MH_SAM_APDU [08:34:26]CAPDU: 80 0D 01 02 [08:34:26]Write to MH i2c: E2 08 00 E1 0F 80 0D 01 02 00 00 00 00 69 [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:26]Read from MH i2c: E2 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 03 00 [08:34:26]MH_I2C_Read... [08:34:26]Read from MH i2c: E2 03 00 E1 0F 00 90 00 64 [08:34:26]RAPDU: 90 00 [08:34:26]wFMCommunicate OK [08:34:26]wFMCommunicate request_size=255 [08:34:26]MH_SAM_APDU [08:34:26]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 32 00 00 00 F4 03 04 00 14 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B6 01 00 35 04 06 00 [08:34:26]Write to MH i2c: E2 02 01 E2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 32 00 00 00 F4 03 04 00 14 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B6 01 00 35 04 06 00 00 00 0A [08:34:26]Write i2c OK [08:34:26]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 E2 0F 00 90 00 65 [08:34:27]RAPDU: 90 00 [08:34:27]wFMCommunicate OK [08:34:27]wFMCommunicate request_size=11 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 0D 02 02 06 7C 46 49 9E B0 AA [08:34:27]Write to MH i2c: E2 0E 00 E3 0F 80 0D 02 02 06 00 7C 46 49 9E B0 AA 00 00 7B [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 03 00 E3 0F 00 90 00 66 [08:34:27]RAPDU: 90 00 [08:34:27]wFMCommunicate OK [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 0D 03 02 [08:34:27]Write to MH i2c: E2 08 00 E4 0F 80 0D 03 02 00 00 00 00 6E [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 0B 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 0B 00 E4 0F 00 02 D2 84 06 62 7A 6D 62 90 00 78 [08:34:27]RAPDU: 02 D2 84 06 62 7A 6D 62 90 00 [08:34:27]wFMCommunicate OK [08:34:27]SAM_PROTO_SignData done [08:34:27]FM_MakeSignedData done [08:34:27]CreateOFDProtocolMessage [08:34:27]wFMCommunicate request_size=4 [08:34:27]MH_SAM_APDU [08:34:27]CAPDU: 80 11 00 00 [08:34:27]Write to MH i2c: E2 08 00 E5 0F 80 11 00 00 00 00 00 00 6E [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:27]Read from MH i2c: E2 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 17 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: E2 17 00 E5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BF [08:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:34:27]wFMCommunicate OK [08:34:27]CreateOFDProtocolMessage done [08:34:27]OFDSenderStorePacket 112151 [08:34:27]StoreOFDPacket docnum=112151 [08:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 93 17 08 01 80 0A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 32 00 00 00 F4 03 04 00 14 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B6 01 00 35 04 06 00 7C 46 49 9E B0 AA 02 D2 84 06 62 7A 6D 62 [08:34:27]CheckFolder [08:34:27]dirname=/storage/ofd_packets [08:34:27]CheckFolder done [08:34:27]ProducePacketName [08:34:27]name=ofd_packets/00112151 [08:34:27]NVStorageSaveData ofd_packets/00112151 [08:34:27]File name is /storage/ofd_packets/00112151 [08:34:27]Write 302 bytes [08:34:27]NVStorageSaveData done [08:34:27]OFDSenderStorePacket done [08:34:27]KKMCreateOFDPacket done [08:34:27]NVStorageSaveData kkm_last_timestamp [08:34:27]File name is /storage/kkm_last_timestamp [08:34:27]Write 4 bytes [08:34:27]NVStorageSaveData done [08:34:27]OFD Sender: Processing packet 112151 [packets to send 71, broken 70] [08:34:27]ProducePacketName [08:34:27]name=ofd_packets/00112151 [08:34:27]OFD Sender: To server: pG, [08:34:27]CommunicateWithHost lk.salyk.kg:30040 [08:34:27]ConnectInit lk.salyk.kg [08:34:27]ExternCall_PrintAddStr [08:34:27]wPrintStart [08:34:27]Write to MH i2c: 01 00 00 E6 0F F5 [08:34:27]Write i2c OK [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: 01 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: 01 07 00 [08:34:27]MH_I2C_Read... [08:34:27]Read from MH i2c: 01 07 00 E6 0F 00 00 00 00 00 FF 0F 0A [08:34:27]RasterBufferAndPrint [08:34:27]line Счет N : (1)48469 [08:34:27]line ИНН: 02508201610067 [08:34:27]line Контрольно-Кассовый Чек [08:34:27]line ПРОДАЖА [08:34:27]line ТРК (МРК, ГНК) : 31 [08:34:27]line Товар: 2710124130 [08:34:27]line SUPER 92-К-5 [08:34:27]line 15.320 * 65.30 [08:34:27]line = 1000.40 [08:34:27]line НДС 12% НСП 1% [08:34:27]line > о реализуемом товаре [08:34:27]line ОКРУГЛЕНИЕ: -0.40 [08:34:27]line ИТОГО: 1000.00 [08:34:27]line Внесено: 1000.00 [08:34:27]line СДАЧА: 0.00 [08:34:27]line НСП 1% : 8.85 [08:34:27]line НДС 12% : 106.24 [08:34:27]line Наличными: 1000.00 [08:34:27]line Безнал.: 0.00 [08:34:27]line Место: АЗС № 47 "Партнер Нефть" [08:34:27]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:34:27]line СНО: Общий режим [08:34:27]line Чек 50 14.04.2024 08:34 [08:34:27]line Смена: 357 ФФД: 1.0 [08:34:27]line ЗНМ: 0300000138 [08:34:27]line РНМ: 0000000000094237 [08:34:27]line Версия ККМ: 001 [08:34:27]line ФМ: 0000000000875019 [08:34:27]line ФД: 112151 [08:34:27]line ФПД: 136641324691626 [08:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083428&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112151&fm=136641324691626&tin=02508201610067®Number=0000000000094237&sum=100000 [08:34:27]Connected sock=11 [08:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 93 17 08 01 80 0A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 32 00 00 00 F4 03 04 00 14 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B6 01 00 35 04 06 00 7C 46 49 9E B0 AA 02 D2 84 06 62 7A 6D 62 [08:34:27]written 0, free lines is 4095 [08:34:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EA F3 47 00 5A 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B6 01 00 F4 03 04 00 A0 3C 1B 66 B6 04 01 00 00 2D 24 DA 33 89 D1 88 E0 [08:34:27]CommunicateWithHost err = 0 [08:34:27]CheckOFDResponse [08:34:27]1017 (14) - 77093643461234 [08:34:27]1041 (16) - 0000000000875019 [08:34:27]1040 (4) - 112151 [08:34:27]1012 (4) - 14.04.2024 02:17 [08:34:27]1206 (1) - 0 [08:34:27]OFD Sender: Remove packet 112151 [08:34:27]ProducePacketName [08:34:27]name=ofd_packets/00112151 [08:34:27]NVStorageDeleteData [08:34:28]Write to MH i2c: 01 00 00 11 10 21 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: 01 [08:34:28]MH_I2C_Read... [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 11 10 00 00 00 00 00 D3 0C 07 [08:34:28]RasterBufferAndPrint [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]line [08:34:28]written 0, free lines is 3286 [08:34:28]MH_Cut [08:34:28]Write to MH i2c: D1 01 00 18 10 01 FA [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 01 00 [08:34:28]MH_I2C_Read... [08:34:28]Read from MH i2c: D1 01 00 18 10 00 F9 [08:34:28]Write to MH i2c: 01 00 00 19 10 29 [08:34:28]Write i2c OK [08:34:28]MH_I2C_Read... [08:34:28]OFD Sender: No OFD packet to send [08:34:28]*** Cut start [08:34:28]*** Partial cut [08:34:28]*** CUTSNS_PIN = 1 [08:34:28]*** CUTSNS_PIN = 0 [08:34:29]*** Brake cut motor [08:34:29]Read from MH i2c: 01 [08:34:29]MH_I2C_Read... [08:34:29]*** Stop cut motor [08:34:29]*** Cut end [08:34:29]Read from MH i2c: 01 07 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: 01 07 00 19 10 00 00 00 00 00 FF 0F 3E [08:34:29]process_action close_receipt done [08:34:29]requested_data is exist [08:34:29]produce_requested_data [08:34:29]requested_item fm.sn is exist - process it [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 11 00 00 [08:34:29]Write to MH i2c: E2 08 00 1A 10 80 11 00 00 00 00 00 00 A4 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 17 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 17 00 1A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F5 [08:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:34:29]wFMCommunicate OK [08:34:29]requested_item fd.num is exist - process it [08:34:29]SAM_PROTO_GetFieldsCounters [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 13 00 00 [08:34:29]Write to MH i2c: E2 08 00 1B 10 80 13 00 00 00 00 00 00 A7 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 62 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 62 00 1B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 17 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [08:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 17 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_GetFieldsCounters done [08:34:29]requested_item shift.num is exist - process it [08:34:29]requested_item shift.opened is exist - process it [08:34:29]req_shift_opened [08:34:29]FM_GetShiftState [08:34:29]SAM_PROTO_GetShiftState [08:34:29]wFMCommunicate request_size=4 [08:34:29]MH_SAM_APDU [08:34:29]CAPDU: 80 13 01 00 [08:34:29]Write to MH i2c: E2 08 00 1C 10 80 13 01 00 00 00 00 00 A9 [08:34:29]Write i2c OK [08:34:29]MH_I2C_Read... [08:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:29]Read from MH i2c: E2 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 [08:34:29]MH_I2C_Read... [08:34:29]Read from MH i2c: E2 0E 00 1C 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [08:34:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:34:29]wFMCommunicate OK [08:34:29]SAM_PROTO_GetShiftState done [08:34:29]FM_GetShiftState done [08:34:29]req_shift_opened done [08:34:29]requested_item shift.open_date is exist - process it [08:34:29]req_shift_open_date [08:34:29]req_shift_open_date done [08:34:29]produce_requested_data done [08:34:29]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112151,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:34:29]process_action_free close_receipt [08:34:29]json_value_free [08:34:29]json_value_free done [08:34:29]process_json_proto returns [08:34:29]Send response to host [08:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112151,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:34:29]free response buf [08:34:29]execute_script done [08:34:29]execute_script returns [08:34:29]free content buf [08:34:29]Sock 9.Close socket [08:34:29]Sock 9.Thread stoped [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:40]accept exits with 8 [08:34:40]New connection [08:34:40]New thread 3067501924 created [08:34:40]Thread 3067358564 joined [08:34:40]Waiting for new connection... [08:34:40] Sock 8.Parse request [08:34:40]Sock 8.Check first char [08:34:40]Sock 8.First char is OK [08:34:40]request: POST /json_proto HTTP/1.0 [08:34:40]Method: POST [08:34:40]URL: /json_proto [08:34:40]Method is POST - this is cgi request [08:34:40]url: /json_proto [08:34:40]query_string will be loaded in cgi processing [08:34:40]execute_cgi json_proto POST (null) [08:34:40]execute_cgi path=json_proto method=POST [08:34:40]POST find Content-Length [08:34:40]Host: 172.17.96.197:8080 [08:34:40]Content-Length: 681 [08:34:40]Content-Type: application/json [08:34:40] [08:34:40]POST finish read [08:34:40]Found Content-Length = 681 [08:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 20.690, "sum" : 1500.03, "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:34:40]execute_script... [08:34: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)48470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 20.690, "sum" : 1500.03, "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:34:40]POST & json_proto [08:34:40]process_json_proto [08:34:40]json parsed OK: [08:34:40]protocol is kg_v1.0 [08:34:40]action value=close_receipt [08:34:40]process_action close_receipt [08:34:40]cmd_close_receipt [08:34:40]MH_GetDate [08:34:40]Write to MH i2c: F0 00 00 1D 10 1C [08:34:40]Write i2c OK [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: F0 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: F0 09 00 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: F0 09 00 1D 10 00 22 95 1B 66 E0 85 7F 64 A5 [08:34:40]GetLastDocTimeStamp 1713083668 [08:34:40]current date 1713083682 [08:34:40]FM_GetShiftState [08:34:40]SAM_PROTO_GetShiftState [08:34:40]wFMCommunicate request_size=4 [08:34:40]MH_SAM_APDU [08:34:40]CAPDU: 80 13 01 00 [08:34:40]Write to MH i2c: E2 08 00 1E 10 80 13 01 00 00 00 00 00 AB [08:34:40]Write i2c OK [08:34:40]MH_I2C_Read... [08:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:40]Read from MH i2c: E2 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 0E 00 [08:34:40]MH_I2C_Read... [08:34:40]Read from MH i2c: E2 0E 00 1E 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 43 [08:34:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:34:40]wFMCommunicate OK [08:34:40]SAM_PROTO_GetShiftState done [08:34:40]FM_GetShiftState done [08:34:40]opened in 1713054696 [08:34:40]opened+sec_in_day 1713141096 [08:34:40]quantity*price = 150002 [08:34:40]sum+1 = 150004 [08:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.29 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 51 14.04.2024 08:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112152 ФПД: 129888974314307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112152&fm=129888974314307&tin=02508201610067®Number=0000000000094237&sum=150000 [08:34:41]StoreToDocumentArchive [08:34:41]shift 357 fd 112152 [08:34:41]save to /storage/0357/doc_00112152 [08:34:41]save last doc name /storage/0357/doc_00112152 to /storage/kkm_last_doc_name [08:34:41]save OK [08:34:41]Clear old archive folders... [08:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:34:41]tlvbuf is 01B47870 [08:34:41]SAM_PROTO_ClearQueue [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 09 00 00 [08:34:41]Write to MH i2c: E2 08 00 2B 10 80 09 00 00 00 00 00 00 AD [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 2B 10 00 90 00 AF [08:34:41]RAPDU: 90 00 [08:34:41]wFMCommunicate OK [08:34:41]SAM_PROTO_ClearQueue done [08:34:41]KKMCreateOFDPacket [08:34:41]OFDProtocolAddRootSTLVToBuf [08:34:41]FM_MakeSignedData [08:34:41]FM_MakeSignedData [08:34:41]SAM_PROTO_SignData [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 0D 01 02 [08:34:41]Write to MH i2c: E2 08 00 2C 10 80 0D 01 02 00 00 00 00 B5 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 2C 10 00 90 00 B0 [08:34:41]RAPDU: 90 00 [08:34:41]wFMCommunicate OK [08:34:41]wFMCommunicate request_size=255 [08:34:41]MH_SAM_APDU [08:34:41]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 D2 50 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F3 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 39 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 33 00 00 00 F4 03 04 00 22 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B6 01 00 35 04 06 00 76 [08:34:41]Write to MH i2c: E2 02 01 2D 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D2 50 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F3 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 39 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 33 00 00 00 F4 03 04 00 22 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B6 01 00 35 04 06 00 76 00 00 C6 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 2D 10 00 90 00 B1 [08:34:41]RAPDU: 90 00 [08:34:41]wFMCommunicate OK [08:34:41]wFMCommunicate request_size=10 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 0D 02 02 05 22 22 2C 9B 43 [08:34:41]Write to MH i2c: E2 0D 00 2E 10 80 0D 02 02 05 00 22 22 2C 9B 43 00 00 10 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 03 00 2E 10 00 90 00 B2 [08:34:41]RAPDU: 90 00 [08:34:41]wFMCommunicate OK [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 0D 03 02 [08:34:41]Write to MH i2c: E2 08 00 2F 10 80 0D 03 02 00 00 00 00 BA [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0B 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 0B 00 2F 10 00 FB 56 CB 69 9A BC 09 B0 90 00 4F [08:34:41]RAPDU: FB 56 CB 69 9A BC 09 B0 90 00 [08:34:41]wFMCommunicate OK [08:34:41]SAM_PROTO_SignData done [08:34:41]FM_MakeSignedData done [08:34:41]CreateOFDProtocolMessage [08:34:41]wFMCommunicate request_size=4 [08:34:41]MH_SAM_APDU [08:34:41]CAPDU: 80 11 00 00 [08:34:41]Write to MH i2c: E2 08 00 30 10 80 11 00 00 00 00 00 00 BA [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:41]Read from MH i2c: E2 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: E2 17 00 30 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0B [08:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:34:41]wFMCommunicate OK [08:34:41]CreateOFDProtocolMessage done [08:34:41]OFDSenderStorePacket 112152 [08:34:41]StoreOFDPacket docnum=112152 [08:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0A 75 07 01 2E BC 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 D2 50 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F3 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 39 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 33 00 00 00 F4 03 04 00 22 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B6 01 00 35 04 06 00 76 22 22 2C 9B 43 FB 56 CB 69 9A BC 09 B0 [08:34:41]CheckFolder [08:34:41]dirname=/storage/ofd_packets [08:34:41]CheckFolder done [08:34:41]ProducePacketName [08:34:41]name=ofd_packets/00112152 [08:34:41]NVStorageSaveData ofd_packets/00112152 [08:34:41]File name is /storage/ofd_packets/00112152 [08:34:41]Write 301 bytes [08:34:41]NVStorageSaveData done [08:34:41]OFDSenderStorePacket done [08:34:41]KKMCreateOFDPacket done [08:34:41]NVStorageSaveData kkm_last_timestamp [08:34:41]File name is /storage/kkm_last_timestamp [08:34:41]Write 4 bytes [08:34:41]NVStorageSaveData done [08:34:41]ExternCall_PrintAddStr [08:34:41]wPrintStart [08:34:41]Write to MH i2c: 01 00 00 31 10 41 [08:34:41]Write i2c OK [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 [08:34:41]MH_I2C_Read... [08:34:41]Read from MH i2c: 01 07 00 31 10 00 00 00 00 00 FF 0F 56 [08:34:41]RasterBufferAndPrint [08:34:41]line Счет N : (1)48470 [08:34:41]line ИНН: 02508201610067 [08:34:41]line Контрольно-Кассовый Чек [08:34:41]line ПРОДАЖА [08:34:41]line ТРК (МРК, ГНК) : 12 [08:34:41]line Товар: 2710124500 [08:34:41]line Аи-95-К-5 [08:34:41]line 20.690 * 72.50 [08:34:41]line = 1500.03 [08:34:41]line НДС 12% НСП 1% [08:34:41]line > о реализуемом товаре [08:34:41]line ОКРУГЛЕНИЕ: -0.03 [08:34:41]line ИТОГО: 1500.00 [08:34:41]line Внесено: 1500.00 [08:34:41]line СДАЧА: 0.00 [08:34:41]line НСП 1% : 13.27 [08:34:41]line НДС 12% : 159.29 [08:34:41]line Наличными: 1500.00 [08:34:41]line Безнал.: 0.00 [08:34:41]line Место: АЗС № 47 "Партнер Нефть" [08:34:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:34:41]line СНО: Общий режим [08:34:41]line Чек 51 14.04.2024 08:34 [08:34:41]line Смена: 357 ФФД: 1.0 [08:34:41]line ЗНМ: 0300000138 [08:34:41]line РНМ: 0000000000094237 [08:34:41]line Версия ККМ: 001 [08:34:41]line ФМ: 0000000000875019 [08:34:41]line ФД: 112152 [08:34:41]line ФПД: 129888974314307 [08:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112152&fm=129888974314307&tin=02508201610067®Number=0000000000094237&sum=150000 [08:34:42]OFD Sender: Processing packet 112152 [packets to send 71, broken 70] [08:34:42]ProducePacketName [08:34:42]name=ofd_packets/00112152 [08:34:42]OFD Sender: To server: pG, [08:34:42]CommunicateWithHost lk.salyk.kg:30040 [08:34:42]ConnectInit lk.salyk.kg [08:34:42]written 0, free lines is 4095 [08:34:42]Connected sock=10 [08:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0A 75 07 01 2E BC 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 D2 50 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F3 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 39 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 33 00 00 00 F4 03 04 00 22 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B6 01 00 35 04 06 00 76 22 22 2C 9B 43 FB 56 CB 69 9A BC 09 B0 [08:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E1 37 47 00 1F 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B6 01 00 F4 03 04 00 AE 3C 1B 66 B6 04 01 00 00 5A B0 25 E6 02 FE 36 77 [08:34:42]CommunicateWithHost err = 0 [08:34:42]CheckOFDResponse [08:34:42]1017 (14) - 77093643461234 [08:34:42]1041 (16) - 0000000000875019 [08:34:42]1040 (4) - 112152 [08:34:42]1012 (4) - 14.04.2024 02:17 [08:34:42]1206 (1) - 0 [08:34:42]OFD Sender: Remove packet 112152 [08:34:42]ProducePacketName [08:34:42]name=ofd_packets/00112152 [08:34:42]NVStorageDeleteData [08:34:42]Write to MH i2c: 01 00 00 5C 10 6C [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: 01 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: 01 07 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: 01 07 00 5C 10 00 00 00 00 00 D7 0C 56 [08:34:42]RasterBufferAndPrint [08:34:42]line [08:34:42]line [08:34:42]line [08:34:42]line [08:34:42]line [08:34:42]written 0, free lines is 3294 [08:34:42]MH_Cut [08:34:42]Write to MH i2c: D1 01 00 63 10 01 45 [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: D1 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: D1 01 00 [08:34:42]MH_I2C_Read... [08:34:42]Read from MH i2c: D1 01 00 63 10 00 44 [08:34:42]Write to MH i2c: 01 00 00 64 10 74 [08:34:42]Write i2c OK [08:34:42]MH_I2C_Read... [08:34:43]OFD Sender: No OFD packet to send [08:34:43]*** Cut start [08:34:43]*** Partial cut [08:34:43]*** CUTSNS_PIN = 1 [08:34:43]*** CUTSNS_PIN = 0 [08:34:43]*** Brake cut motor [08:34:44]Read from MH i2c: 01 [08:34:44]MH_I2C_Read... [08:34:44]*** Stop cut motor [08:34:44]*** Cut end [08:34:44]Read from MH i2c: 01 07 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 FF 0F 89 [08:34:44]process_action close_receipt done [08:34:44]requested_data is exist [08:34:44]produce_requested_data [08:34:44]requested_item fm.sn is exist - process it [08:34:44]wFMCommunicate request_size=4 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 11 00 00 [08:34:44]Write to MH i2c: E2 08 00 65 10 80 11 00 00 00 00 00 00 EF [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 17 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 17 00 65 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 40 [08:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:34:44]wFMCommunicate OK [08:34:44]requested_item fd.num is exist - process it [08:34:44]SAM_PROTO_GetFieldsCounters [08:34:44]wFMCommunicate request_size=4 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 13 00 00 [08:34:44]Write to MH i2c: E2 08 00 66 10 80 13 00 00 00 00 00 00 F2 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 62 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 62 00 66 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 18 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [08:34:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 18 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:34:44]wFMCommunicate OK [08:34:44]SAM_PROTO_GetFieldsCounters done [08:34:44]requested_item shift.num is exist - process it [08:34:44]requested_item shift.opened is exist - process it [08:34:44]req_shift_opened [08:34:44]FM_GetShiftState [08:34:44]SAM_PROTO_GetShiftState [08:34:44]wFMCommunicate request_size=4 [08:34:44]MH_SAM_APDU [08:34:44]CAPDU: 80 13 01 00 [08:34:44]Write to MH i2c: E2 08 00 67 10 80 13 01 00 00 00 00 00 F4 [08:34:44]Write i2c OK [08:34:44]MH_I2C_Read... [08:34:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:34:44]Read from MH i2c: E2 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 0E 00 [08:34:44]MH_I2C_Read... [08:34:44]Read from MH i2c: E2 0E 00 67 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8C [08:34:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:34:44]wFMCommunicate OK [08:34:44]SAM_PROTO_GetShiftState done [08:34:44]FM_GetShiftState done [08:34:44]req_shift_opened done [08:34:44]requested_item shift.open_date is exist - process it [08:34:44]req_shift_open_date [08:34:44]req_shift_open_date done [08:34:44]produce_requested_data done [08:34:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112152,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:34:44]process_action_free close_receipt [08:34:44]json_value_free [08:34:44]json_value_free done [08:34:44]process_json_proto returns [08:34:44]Send response to host [08:34:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112152,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:34:44]free response buf [08:34:44]execute_script done [08:34:44]execute_script returns [08:34:44]free content buf [08:34:44]Sock 8.Close socket [08:34:44]Sock 8.Thread stoped [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:29]accept exits with 9 [08:35:29]New connection [08:35:29]New thread 3067358564 created [08:35:29]Thread 3067501924 joined [08:35:29]Waiting for new connection... [08:35:29] Sock 9.Parse request [08:35:29]Sock 9.Check first char [08:35:29]Sock 9.First char is OK [08:35:29]request: POST /json_proto HTTP/1.0 [08:35:29]Method: POST [08:35:29]URL: /json_proto [08:35:29]Method is POST - this is cgi request [08:35:29]url: /json_proto [08:35:29]query_string will be loaded in cgi processing [08:35:29]execute_cgi json_proto POST (null) [08:35:29]execute_cgi path=json_proto method=POST [08:35:29]POST find Content-Length [08:35:29]Host: 172.17.96.197:8080 [08:35:29]Content-Length: 674 [08:35:29]Content-Type: application/json [08:35:29] [08:35:29]POST finish read [08:35:29]Found Content-Length = 674 [08:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48471", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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:35:29]execute_script... [08:35: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)48471", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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:35:29]POST & json_proto [08:35:29]process_json_proto [08:35:29]json parsed OK: [08:35:29]protocol is kg_v1.0 [08:35:29]action value=close_receipt [08:35:29]process_action close_receipt [08:35:29]cmd_close_receipt [08:35:29]MH_GetDate [08:35:29]Write to MH i2c: F0 00 00 68 10 67 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 09 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 09 00 68 10 00 53 95 1B 66 E0 85 7F 64 21 [08:35:29]GetLastDocTimeStamp 1713083682 [08:35:29]current date 1713083731 [08:35:29]FM_GetShiftState [08:35:29]SAM_PROTO_GetShiftState [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 13 01 00 [08:35:29]Write to MH i2c: E2 08 00 69 10 80 13 01 00 00 00 00 00 F6 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 69 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8E [08:35:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_GetShiftState done [08:35:29]FM_GetShiftState done [08:35:29]opened in 1713054696 [08:35:29]opened+sec_in_day 1713141096 [08:35:29]quantity*price = 150059 [08:35:29]sum+1 = 150060 [08:35:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 52 14.04.2024 08:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112153 ФПД: 218436892574723 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083531&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112153&fm=218436892574723&tin=02508201610067®Number=0000000000094237&sum=150000 [08:35:30]StoreToDocumentArchive [08:35:30]shift 357 fd 112153 [08:35:30]save to /storage/0357/doc_00112153 [08:35:30]save last doc name /storage/0357/doc_00112153 to /storage/kkm_last_doc_name [08:35:30]save OK [08:35:30]Clear old archive folders... [08:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [08:35:30]tlvbuf is 01B218A0 [08:35:30]SAM_PROTO_ClearQueue [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 09 00 00 [08:35:30]Write to MH i2c: E2 08 00 76 10 80 09 00 00 00 00 00 00 F8 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 76 10 00 90 00 FA [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]SAM_PROTO_ClearQueue done [08:35:30]KKMCreateOFDPacket [08:35:30]OFDProtocolAddRootSTLVToBuf [08:35:30]FM_MakeSignedData [08:35:30]FM_MakeSignedData [08:35:30]SAM_PROTO_SignData [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 0D 01 02 [08:35:30]Write to MH i2c: E2 08 00 77 10 80 0D 01 02 00 00 00 00 00 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 77 10 00 90 00 FB [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]wFMCommunicate request_size=255 [08:35:30]MH_SAM_APDU [08:35:30]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B6 01 00 35 04 06 00 [08:35:30]Write to MH i2c: E2 02 01 78 10 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B6 01 00 35 04 06 00 00 00 CF [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 78 10 00 90 00 FC [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]wFMCommunicate request_size=11 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 0D 02 02 06 C6 AA CD 63 44 03 [08:35:30]Write to MH i2c: E2 0E 00 79 10 80 0D 02 02 06 00 C6 AA CD 63 44 03 00 00 F6 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 79 10 00 90 00 FD [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 0D 03 02 [08:35:30]Write to MH i2c: E2 08 00 7A 10 80 0D 03 02 00 00 00 00 05 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 0B 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 0B 00 7A 10 00 2A D2 7B 89 52 22 59 51 90 00 24 [08:35:30]RAPDU: 2A D2 7B 89 52 22 59 51 90 00 [08:35:30]wFMCommunicate OK [08:35:30]SAM_PROTO_SignData done [08:35:30]FM_MakeSignedData done [08:35:30]CreateOFDProtocolMessage [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 11 00 00 [08:35:30]Write to MH i2c: E2 08 00 7B 10 80 11 00 00 00 00 00 00 05 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 17 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 17 00 7B 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 56 [08:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:35:30]wFMCommunicate OK [08:35:30]CreateOFDProtocolMessage done [08:35:30]OFDSenderStorePacket 112153 [08:35:30]StoreOFDPacket docnum=112153 [08:35:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 ED 08 01 F2 02 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B6 01 00 35 04 06 00 C6 AA CD 63 44 03 2A D2 7B 89 52 22 59 51 [08:35:30]CheckFolder [08:35:30]dirname=/storage/ofd_packets [08:35:30]CheckFolder done [08:35:30]ProducePacketName [08:35:30]name=ofd_packets/00112153 [08:35:30]NVStorageSaveData ofd_packets/00112153 [08:35:30]File name is /storage/ofd_packets/00112153 [08:35:30]Write 302 bytes [08:35:30]NVStorageSaveData done [08:35:30]OFDSenderStorePacket done [08:35:30]KKMCreateOFDPacket done [08:35:30]NVStorageSaveData kkm_last_timestamp [08:35:30]File name is /storage/kkm_last_timestamp [08:35:30]Write 4 bytes [08:35:30]NVStorageSaveData done [08:35:30]ExternCall_PrintAddStr [08:35:30]wPrintStart [08:35:30]Write to MH i2c: 01 00 00 7C 10 8C [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 07 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: 01 07 00 7C 10 00 00 00 00 00 FF 0F A1 [08:35:30]RasterBufferAndPrint [08:35:30]line Счет N : (1)48471 [08:35:30]line ИНН: 02508201610067 [08:35:30]line Контрольно-Кассовый Чек [08:35:30]line ПРОДАЖА [08:35:30]line ТРК (МРК, ГНК) : 41 [08:35:30]line Товар: 2710124130 [08:35:30]line SUPER 92-К-5 [08:35:30]line 22.980 * 65.30 [08:35:30]line = 1500.59 [08:35:30]line НДС 12% НСП 1% [08:35:30]line > о реализуемом товаре [08:35:30]line ОКРУГЛЕНИЕ: -0.59 [08:35:30]line ИТОГО: 1500.00 [08:35:30]line Внесено: 1500.00 [08:35:30]line СДАЧА: 0.00 [08:35:30]line НСП 1% : 13.28 [08:35:30]line НДС 12% : 159.35 [08:35:30]line Наличными: 1500.00 [08:35:30]line Безнал.: 0.00 [08:35:30]line Место: АЗС № 47 "Партнер Нефть" [08:35:30]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:35:30]line СНО: Общий режим [08:35:30]line Чек 52 14.04.2024 08:35 [08:35:30]line Смена: 357 ФФД: 1.0 [08:35:30]line ЗНМ: 0300000138 [08:35:30]line РНМ: 0000000000094237 [08:35:30]line Версия ККМ: 001 [08:35:30]line ФМ: 0000000000875019 [08:35:30]line ФД: 112153 [08:35:30]line ФПД: 218436892574723 [08:35:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083531&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112153&fm=218436892574723&tin=02508201610067®Number=0000000000094237&sum=150000 [08:35:31]OFD Sender: Processing packet 112153 [packets to send 71, broken 70] [08:35:31]ProducePacketName [08:35:31]name=ofd_packets/00112153 [08:35:31]OFD Sender: To server: pG, [08:35:31]CommunicateWithHost lk.salyk.kg:30040 [08:35:31]ConnectInit lk.salyk.kg [08:35:31]written 0, free lines is 4095 [08:35:31]Connected sock=10 [08:35:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 ED 08 01 F2 02 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 53 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B6 01 00 35 04 06 00 C6 AA CD 63 44 03 2A D2 7B 89 52 22 59 51 [08:35:31]Write to MH i2c: 01 00 00 A7 10 B7 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 07 00 [08:35:31]MH_I2C_Read... [08:35:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 66 62 47 00 D0 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B6 01 00 F4 03 04 00 DF 3C 1B 66 B6 04 01 00 00 45 18 59 99 E9 42 70 5E [08:35:31]CommunicateWithHost err = 0 [08:35:31]CheckOFDResponse [08:35:31]1017 (14) - 77093643461234 [08:35:31]1041 (16) - 0000000000875019 [08:35:31]1040 (4) - 112153 [08:35:31]1012 (4) - 14.04.2024 02:18 [08:35:31]1206 (1) - 0 [08:35:31]OFD Sender: Remove packet 112153 [08:35:31]ProducePacketName [08:35:31]name=ofd_packets/00112153 [08:35:31]NVStorageDeleteData [08:35:31]Read from MH i2c: 01 07 00 A7 10 00 00 00 00 00 E6 0C B0 [08:35:31]RasterBufferAndPrint [08:35:31]line [08:35:31]line [08:35:31]line [08:35:31]line [08:35:31]line [08:35:31]written 0, free lines is 3335 [08:35:31]MH_Cut [08:35:31]Write to MH i2c: D1 01 00 AE 10 01 90 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: D1 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: D1 01 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: D1 01 00 AE 10 00 8F [08:35:31]Write to MH i2c: 01 00 00 AF 10 BF [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:32]OFD Sender: No OFD packet to send [08:35:32]*** Cut start [08:35:32]*** Partial cut [08:35:32]*** CUTSNS_PIN = 1 [08:35:32]*** CUTSNS_PIN = 0 [08:35:32]*** Brake cut motor [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]*** Stop cut motor [08:35:32]*** Cut end [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [08:35:32]process_action close_receipt done [08:35:32]requested_data is exist [08:35:32]produce_requested_data [08:35:32]requested_item fm.sn is exist - process it [08:35:32]wFMCommunicate request_size=4 [08:35:32]MH_SAM_APDU [08:35:32]CAPDU: 80 11 00 00 [08:35:32]Write to MH i2c: E2 08 00 B0 10 80 11 00 00 00 00 00 00 3A [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:33]Read from MH i2c: E2 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 17 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 17 00 B0 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8B [08:35:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:35:33]wFMCommunicate OK [08:35:33]requested_item fd.num is exist - process it [08:35:33]SAM_PROTO_GetFieldsCounters [08:35:33]wFMCommunicate request_size=4 [08:35:33]MH_SAM_APDU [08:35:33]CAPDU: 80 13 00 00 [08:35:33]Write to MH i2c: E2 08 00 B1 10 80 13 00 00 00 00 00 00 3D [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:33]Read from MH i2c: E2 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 62 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 62 00 B1 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 19 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [08:35:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 19 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:33]wFMCommunicate OK [08:35:33]SAM_PROTO_GetFieldsCounters done [08:35:33]requested_item shift.num is exist - process it [08:35:33]requested_item shift.opened is exist - process it [08:35:33]req_shift_opened [08:35:33]FM_GetShiftState [08:35:33]SAM_PROTO_GetShiftState [08:35:33]wFMCommunicate request_size=4 [08:35:33]MH_SAM_APDU [08:35:33]CAPDU: 80 13 01 00 [08:35:33]Write to MH i2c: E2 08 00 B2 10 80 13 01 00 00 00 00 00 3F [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:33]Read from MH i2c: E2 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 0E 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: E2 0E 00 B2 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D7 [08:35:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:35:33]wFMCommunicate OK [08:35:33]SAM_PROTO_GetShiftState done [08:35:33]FM_GetShiftState done [08:35:33]req_shift_opened done [08:35:33]requested_item shift.open_date is exist - process it [08:35:33]req_shift_open_date [08:35:33]req_shift_open_date done [08:35:33]produce_requested_data done [08:35:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112153,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:35:33]process_action_free close_receipt [08:35:33]json_value_free [08:35:33]json_value_free done [08:35:33]process_json_proto returns [08:35:33]Send response to host [08:35:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112153,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:35:33]free response buf [08:35:33]execute_script done [08:35:33]execute_script returns [08:35:33]free content buf [08:35:33]Sock 9.Close socket [08:35:33]Sock 9.Thread stoped [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]accept exits with 8 [08:36:17]New connection [08:36:17]New thread 3067501924 created [08:36:17]Thread 3067358564 joined [08:36:17]Waiting for new connection... [08:36:17] Sock 8.Parse request [08:36:17]Sock 8.Check first char [08:36:17]Sock 8.First char is OK [08:36:17]request: POST /json_proto HTTP/1.0 [08:36:17]Method: POST [08:36:17]URL: /json_proto [08:36:17]Method is POST - this is cgi request [08:36:17]url: /json_proto [08:36:17]query_string will be loaded in cgi processing [08:36:17]execute_cgi json_proto POST (null) [08:36:17]execute_cgi path=json_proto method=POST [08:36:17]POST find Content-Length [08:36:17]Host: 172.17.96.197:8080 [08:36:17]Content-Length: 676 [08:36:17]Content-Type: application/json [08:36:17] [08:36:17]POST finish read [08:36:17]Found Content-Length = 676 [08:36:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48472", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:36:17]execute_script... [08:36: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)48472", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:36:17]POST & json_proto [08:36:17]process_json_proto [08:36:17]json parsed OK: [08:36:17]protocol is kg_v1.0 [08:36:17]action value=close_receipt [08:36:17]process_action close_receipt [08:36:17]cmd_close_receipt [08:36:17]MH_GetDate [08:36:17]Write to MH i2c: F0 00 00 B3 10 B2 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: F0 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: F0 09 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: F0 09 00 B3 10 00 83 95 1B 66 E0 85 7F 64 9C [08:36:17]GetLastDocTimeStamp 1713083731 [08:36:17]current date 1713083779 [08:36:17]FM_GetShiftState [08:36:17]SAM_PROTO_GetShiftState [08:36:17]wFMCommunicate request_size=4 [08:36:17]MH_SAM_APDU [08:36:17]CAPDU: 80 13 01 00 [08:36:17]Write to MH i2c: E2 08 00 B4 10 80 13 01 00 00 00 00 00 41 [08:36:17]Write i2c OK [08:36:17]MH_I2C_Read... [08:36:17]OFD Sender: No OFD packet to send [08:36:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:17]Read from MH i2c: E2 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 0E 00 [08:36:17]MH_I2C_Read... [08:36:17]Read from MH i2c: E2 0E 00 B4 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D9 [08:36:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:36:17]wFMCommunicate OK [08:36:17]SAM_PROTO_GetShiftState done [08:36:17]FM_GetShiftState done [08:36:17]opened in 1713054696 [08:36:17]opened+sec_in_day 1713141096 [08:36:17]quantity*price = 50025 [08:36:17]sum+1 = 50026 [08:36:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 53 14.04.2024 08:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112154 ФПД: 252972999916496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112154&fm=252972999916496&tin=02508201610067®Number=0000000000094237&sum=50000 [08:36:18]StoreToDocumentArchive [08:36:18]shift 357 fd 112154 [08:36:18]save to /storage/0357/doc_00112154 [08:36:18]save last doc name /storage/0357/doc_00112154 to /storage/kkm_last_doc_name [08:36:18]save OK [08:36:18]Clear old archive folders... [08:36:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:36:18]tlvbuf is 019C37A0 [08:36:18]SAM_PROTO_ClearQueue [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 09 00 00 [08:36:18]Write to MH i2c: E2 08 00 C1 10 80 09 00 00 00 00 00 00 43 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 C1 10 00 90 00 45 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_ClearQueue done [08:36:18]KKMCreateOFDPacket [08:36:18]OFDProtocolAddRootSTLVToBuf [08:36:18]FM_MakeSignedData [08:36:18]FM_MakeSignedData [08:36:18]SAM_PROTO_SignData [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 0D 01 02 [08:36:18]Write to MH i2c: E2 08 00 C2 10 80 0D 01 02 00 00 00 00 4B [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]wFMCommunicate request_size=255 [08:36:18]MH_SAM_APDU [08:36: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 35 00 00 00 F4 03 04 00 84 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B6 01 00 35 04 06 00 E6 [08:36:18]Write to MH i2c: E2 02 01 C3 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 35 00 00 00 F4 03 04 00 84 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B6 01 00 35 04 06 00 E6 00 00 DA [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]wFMCommunicate request_size=10 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 0D 02 02 05 13 DD CC 3B D0 [08:36:18]Write to MH i2c: E2 0D 00 C4 10 80 0D 02 02 05 00 13 DD CC 3B D0 00 00 1F [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [08:36:18]RAPDU: 90 00 [08:36:18]wFMCommunicate OK [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 0D 03 02 [08:36:18]Write to MH i2c: E2 08 00 C5 10 80 0D 03 02 00 00 00 00 50 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0B 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 0B 00 C5 10 00 41 9D 3E 7D 4B 82 FA 1F 90 00 D0 [08:36:18]RAPDU: 41 9D 3E 7D 4B 82 FA 1F 90 00 [08:36:18]wFMCommunicate OK [08:36:18]SAM_PROTO_SignData done [08:36:18]FM_MakeSignedData done [08:36:18]CreateOFDProtocolMessage [08:36:18]wFMCommunicate request_size=4 [08:36:18]MH_SAM_APDU [08:36:18]CAPDU: 80 11 00 00 [08:36:18]Write to MH i2c: E2 08 00 C6 10 80 11 00 00 00 00 00 00 50 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:18]Read from MH i2c: E2 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: E2 17 00 C6 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A1 [08:36:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:36:18]wFMCommunicate OK [08:36:18]CreateOFDProtocolMessage done [08:36:18]OFDSenderStorePacket 112154 [08:36:18]StoreOFDPacket docnum=112154 [08:36:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0E B1 07 01 00 18 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 35 00 00 00 F4 03 04 00 84 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B6 01 00 35 04 06 00 E6 13 DD CC 3B D0 41 9D 3E 7D 4B 82 FA 1F [08:36:18]CheckFolder [08:36:18]dirname=/storage/ofd_packets [08:36:18]CheckFolder done [08:36:18]ProducePacketName [08:36:18]name=ofd_packets/00112154 [08:36:18]NVStorageSaveData ofd_packets/00112154 [08:36:18]File name is /storage/ofd_packets/00112154 [08:36:18]Write 301 bytes [08:36:18]NVStorageSaveData done [08:36:18]OFDSenderStorePacket done [08:36:18]KKMCreateOFDPacket done [08:36:18]NVStorageSaveData kkm_last_timestamp [08:36:18]File name is /storage/kkm_last_timestamp [08:36:18]Write 4 bytes [08:36:18]NVStorageSaveData done [08:36:18]ExternCall_PrintAddStr [08:36:18]wPrintStart [08:36:18]Write to MH i2c: 01 00 00 C7 10 D7 [08:36:18]Write i2c OK [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 [08:36:18]MH_I2C_Read... [08:36:18]Read from MH i2c: 01 07 00 C7 10 00 00 00 00 00 FF 0F EC [08:36:18]RasterBufferAndPrint [08:36:18]line Счет N : (1)48472 [08:36:18]line ИНН: 02508201610067 [08:36:18]line Контрольно-Кассовый Чек [08:36:18]line ПРОДАЖА [08:36:18]line ТРК (МРК, ГНК) : 32 [08:36:18]line Товар: 2710124130 [08:36:18]line Аи-92-К-5 [08:36:18]line 7.780 * 64.30 [08:36:18]line = 500.25 [08:36:18]line НДС 12% НСП 1% [08:36:18]line > о реализуемом товаре [08:36:18]line ОКРУГЛЕНИЕ: -0.25 [08:36:18]line ИТОГО: 500.00 [08:36:18]line Внесено: 500.00 [08:36:18]line СДАЧА: 0.00 [08:36:18]line НСП 1% : 4.43 [08:36:18]line НДС 12% : 53.12 [08:36:18]line Наличными: 500.00 [08:36:18]line Безнал.: 0.00 [08:36:18]line Место: АЗС № 47 "Партнер Нефть" [08:36:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:36:18]line СНО: Общий режим [08:36:18]line Чек 53 14.04.2024 08:36 [08:36:18]line Смена: 357 ФФД: 1.0 [08:36:18]line ЗНМ: 0300000138 [08:36:18]line РНМ: 0000000000094237 [08:36:18]line Версия ККМ: 001 [08:36:18]line ФМ: 0000000000875019 [08:36:18]line ФД: 112154 [08:36:18]line ФПД: 252972999916496 [08:36:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T083620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112154&fm=252972999916496&tin=02508201610067®Number=0000000000094237&sum=50000 [08:36:19]OFD Sender: Processing packet 112154 [packets to send 71, broken 70] [08:36:19]ProducePacketName [08:36:19]name=ofd_packets/00112154 [08:36:19]OFD Sender: To server: pG, [08:36:19]CommunicateWithHost lk.salyk.kg:30040 [08:36:19]ConnectInit lk.salyk.kg [08:36:19]written 0, free lines is 4095 [08:36:19]Connected sock=10 [08:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0E B1 07 01 00 18 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 35 00 00 00 F4 03 04 00 84 95 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B6 01 00 35 04 06 00 E6 13 DD CC 3B D0 41 9D 3E 7D 4B 82 FA 1F [08:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 27 C8 47 00 59 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B6 01 00 F4 03 04 00 0F 3D 1B 66 B6 04 01 00 00 9B C4 E7 AE 66 5D 38 20 [08:36:19]CommunicateWithHost err = 0 [08:36:19]CheckOFDResponse [08:36:19]1017 (14) - 77093643461234 [08:36:19]1041 (16) - 0000000000875019 [08:36:19]1040 (4) - 112154 [08:36:19]1012 (4) - 14.04.2024 02:18 [08:36:19]1206 (1) - 0 [08:36:19]OFD Sender: Remove packet 112154 [08:36:19]ProducePacketName [08:36:19]name=ofd_packets/00112154 [08:36:19]NVStorageDeleteData [08:36:19]Write to MH i2c: 01 00 00 F2 10 02 [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: 01 07 00 F2 10 00 00 00 00 00 DF 0C F4 [08:36:19]RasterBufferAndPrint [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]line [08:36:19]written 0, free lines is 3302 [08:36:19]MH_Cut [08:36:19]Write to MH i2c: D1 01 00 F9 10 01 DB [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 01 00 [08:36:19]MH_I2C_Read... [08:36:19]Read from MH i2c: D1 01 00 F9 10 00 DA [08:36:19]Write to MH i2c: 01 00 00 FA 10 0A [08:36:19]Write i2c OK [08:36:19]MH_I2C_Read... [08:36:20]OFD Sender: No OFD packet to send [08:36:20]*** Cut start [08:36:20]*** Partial cut [08:36:20]*** CUTSNS_PIN = 1 [08:36:20]*** CUTSNS_PIN = 0 [08:36:20]*** Brake cut motor [08:36:21]Read from MH i2c: 01 [08:36:21]MH_I2C_Read... [08:36:21]*** Stop cut motor [08:36:21]*** Cut end [08:36:21]Read from MH i2c: 01 07 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: 01 07 00 FA 10 00 00 00 00 00 FF 0F 1F [08:36:21]process_action close_receipt done [08:36:21]requested_data is exist [08:36:21]produce_requested_data [08:36:21]requested_item fm.sn is exist - process it [08:36:21]wFMCommunicate request_size=4 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 11 00 00 [08:36:21]Write to MH i2c: E2 08 00 FB 10 80 11 00 00 00 00 00 00 85 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:21]Read from MH i2c: E2 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 17 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 17 00 FB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D6 [08:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:36:21]wFMCommunicate OK [08:36:21]requested_item fd.num is exist - process it [08:36:21]SAM_PROTO_GetFieldsCounters [08:36:21]wFMCommunicate request_size=4 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 13 00 00 [08:36:21]Write to MH i2c: E2 08 00 FC 10 80 13 00 00 00 00 00 00 88 [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:21]Read from MH i2c: E2 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 62 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 62 00 FC 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [08:36:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:21]wFMCommunicate OK [08:36:21]SAM_PROTO_GetFieldsCounters done [08:36:21]requested_item shift.num is exist - process it [08:36:21]requested_item shift.opened is exist - process it [08:36:21]req_shift_opened [08:36:21]FM_GetShiftState [08:36:21]SAM_PROTO_GetShiftState [08:36:21]wFMCommunicate request_size=4 [08:36:21]MH_SAM_APDU [08:36:21]CAPDU: 80 13 01 00 [08:36:21]Write to MH i2c: E2 08 00 FD 10 80 13 01 00 00 00 00 00 8A [08:36:21]Write i2c OK [08:36:21]MH_I2C_Read... [08:36:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:21]Read from MH i2c: E2 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 0E 00 [08:36:21]MH_I2C_Read... [08:36:21]Read from MH i2c: E2 0E 00 FD 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 22 [08:36:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:36:21]wFMCommunicate OK [08:36:21]SAM_PROTO_GetShiftState done [08:36:21]FM_GetShiftState done [08:36:21]req_shift_opened done [08:36:21]requested_item shift.open_date is exist - process it [08:36:21]req_shift_open_date [08:36:21]req_shift_open_date done [08:36:21]produce_requested_data done [08:36:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112154,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:36:21]process_action_free close_receipt [08:36:21]json_value_free [08:36:21]json_value_free done [08:36:21]process_json_proto returns [08:36:21]Send response to host [08:36:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112154,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:36:21]free response buf [08:36:21]execute_script done [08:36:21]execute_script returns [08:36:21]free content buf [08:36:21]Sock 8.Close socket [08:36:21]Sock 8.Thread stoped [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:37]accept exits with 9 [08:42:37]New connection [08:42:37]New thread 3067358564 created [08:42:37]Thread 3067501924 joined [08:42:37]Waiting for new connection... [08:42:37] Sock 9.Parse request [08:42:37]Sock 9.Check first char [08:42:37]Sock 9.First char is OK [08:42:37]request: POST /json_proto HTTP/1.0 [08:42:37]Method: POST [08:42:37]URL: /json_proto [08:42:37]Method is POST - this is cgi request [08:42:37]url: /json_proto [08:42:37]query_string will be loaded in cgi processing [08:42:37]execute_cgi json_proto POST (null) [08:42:37]execute_cgi path=json_proto method=POST [08:42:37]POST find Content-Length [08:42:37]Host: 172.17.96.197:8080 [08:42:37]Content-Length: 676 [08:42:37]Content-Type: application/json [08:42:37] [08:42:37]POST finish read [08:42:37]Found Content-Length = 676 [08:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48473", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:42:37]execute_script... [08:42: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)48473", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [08:42:37]POST & json_proto [08:42:37]process_json_proto [08:42:37]json parsed OK: [08:42:37]protocol is kg_v1.0 [08:42:37]action value=close_receipt [08:42:37]process_action close_receipt [08:42:37]cmd_close_receipt [08:42:37]MH_GetDate [08:42:37]Write to MH i2c: F0 00 00 FE 10 FD [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 09 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: F0 09 00 FE 10 00 00 97 1B 66 E0 85 7F 64 66 [08:42:37]GetLastDocTimeStamp 1713083780 [08:42:37]current date 1713084160 [08:42:37]FM_GetShiftState [08:42:37]SAM_PROTO_GetShiftState [08:42:37]wFMCommunicate request_size=4 [08:42:37]MH_SAM_APDU [08:42:37]CAPDU: 80 13 01 00 [08:42:37]Write to MH i2c: E2 08 00 FF 10 80 13 01 00 00 00 00 00 8C [08:42:37]Write i2c OK [08:42:37]MH_I2C_Read... [08:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:42:37]Read from MH i2c: E2 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0E 00 [08:42:37]MH_I2C_Read... [08:42:37]Read from MH i2c: E2 0E 00 FF 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 24 [08:42:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:42:37]wFMCommunicate OK [08:42:37]SAM_PROTO_GetShiftState done [08:42:37]FM_GetShiftState done [08:42:37]opened in 1713054696 [08:42:37]opened+sec_in_day 1713141096 [08:42:37]quantity*price = 50025 [08:42:37]sum+1 = 50026 [08:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре [08:47:08]line ОКРУГЛЕНИЕ: -0.25 [08:47:08]line ИТОГО: 500.00 [08:47:08]line Внесено: 500.00 [08:47:08]line СДАЧА: 0.00 [08:47:08]line НСП 1% : 4.43 [08:47:08]line НДС 12% : 53.12 [08:47:08]line Наличными: 500.00 [08:47:08]line Безнал.: 0.00 [08:47:08]line Место: АЗС № 47 "Партнер Нефть" [08:47:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:47:08]line СНО: Общий режим [08:47:08]line Чек 54 14.04.2024 08:42 [08:47:08]line Смена: 357 ФФД: 1.0 [08:47:08]line ЗНМ: 0300000138 [08:47:08]line РНМ: 0000000000094237 [08:47:08]line Версия ККМ: 001 [08:47:08]line ФМ: 0000000000875019 [08:47:08]line ФД: 112155 [08:47:08]line ФПД: 275439891458370 [08:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084240&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112155&fm=275439891458370&tin=02508201610067®Number=0000000000094237&sum=50000 [08:47:08]written 0, free lines is 4095 [08:47:09]Write to MH i2c: 01 00 00 48 00 48 [08:47:09]Write i2c OK [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: 01 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: 01 07 00 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E4 0C 3F [08:47:09]RasterBufferAndPrint [08:47:09]line [08:47:09]line [08:47:09]line [08:47:09]line [08:47:09]line [08:47:09]written 0, free lines is 3318 [08:47:09]MH_Cut [08:47:09]Write to MH i2c: D1 01 00 4F 00 01 21 [08:47:09]Write i2c OK [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: D1 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: D1 01 00 [08:47:09]MH_I2C_Read... [08:47:09]Read from MH i2c: D1 01 00 4F 00 00 20 [08:47:09]Write to MH i2c: 01 00 00 50 00 50 [08:47:09]Write i2c OK [08:47:09]MH_I2C_Read... [08:47:09]OFD Sender: No OFD packet to send [08:47:09]*** Cut start [08:47:09]*** Partial cut [08:47:09]*** CUTSNS_PIN = 1 [08:47:09]*** CUTSNS_PIN = 0 [08:47:10]*** Brake cut motor [08:47:10]Read from MH i2c: 01 [08:47:10]MH_I2C_Read... [08:47:10]*** Stop cut motor [08:47:10]*** Cut end [08:47:10]Read from MH i2c: 01 07 00 [08:47:10]MH_I2C_Read... [08:47:10]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [08:47:10]process_action print_doc done [08:47:10]requested_data is exist [08:47:10]produce_requested_data [08:47:10]produce_requested_data return (null) [08:47:10]process_action_free print_doc [08:47:10]json_value_free [08:47:10]json_value_free done [08:47:10]process_json_proto returns [08:47:10]Send response to host [08:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [08:47:10]free response buf [08:47:10]execute_script done [08:47:10]execute_script returns [08:47:10]free content buf [08:47:10]Sock 6.Close socket [08:47:10]Sock 6.Thread stoped [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:33]accept exits with 8 [08:47:33]New connection [08:47:33]New thread 3067100516 created [08:47:33]Thread 3067243876 joined [08:47:33]Waiting for new connection... [08:47:33] Sock 8.Parse request [08:47:33]Sock 8.Check first char [08:47:33]Sock 8.First char is OK [08:47:33]request: POST /json_proto HTTP/1.0 [08:47:33]Method: POST [08:47:33]URL: /json_proto [08:47:33]Method is POST - this is cgi request [08:47:33]url: /json_proto [08:47:33]query_string will be loaded in cgi processing [08:47:33]execute_cgi json_proto POST (null) [08:47:33]execute_cgi path=json_proto method=POST [08:47:33]POST find Content-Length [08:47:33]Host: 172.17.96.197:8080 [08:47:33]Content-Length: 645 [08:47:33]Content-Type: application/json [08:47:33] [08:47:33]POST finish read [08:47:33]Found Content-Length = 645 [08:47:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10408", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:33]execute_script... [08:47:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10408", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:33]POST & json_proto [08:47:33]process_json_proto [08:47:33]json parsed OK: [08:47:33]protocol is kg_v1.0 [08:47:33]action value=close_receipt [08:47:33]process_action close_receipt [08:47:33]cmd_close_receipt [08:47:33]MH_GetDate [08:47:33]Write to MH i2c: F0 00 00 51 00 40 [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 09 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: F0 09 00 51 00 00 25 98 1B 66 E0 85 7F 64 CF [08:47:33]GetLastDocTimeStamp 1713084160 [08:47:33]current date 1713084453 [08:47:33]FM_GetShiftState [08:47:33]SAM_PROTO_GetShiftState [08:47:33]wFMCommunicate request_size=4 [08:47:33]MH_SAM_APDU [08:47:33]CAPDU: 80 13 01 00 [08:47:33]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [08:47:33]Write i2c OK [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 [08:47:33]MH_I2C_Read... [08:47:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:33]Read from MH i2c: E2 0E 00 [08:47:33]MH_I2C_Read... [08:47:33]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [08:47:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:47:33]wFMCommunicate OK [08:47:33]SAM_PROTO_GetShiftState done [08:47:33]FM_GetShiftState done [08:47:33]opened in 1713054696 [08:47:33]opened+sec_in_day 1713141096 [08:47:33]quantity*price = 13000 [08:47:33]sum+1 = 13001 [08:47:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 55 14.04.2024 08:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112156 ФПД: 142136765016731 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084733&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112156&fm=142136765016731&tin=02508201610067®Number=0000000000094237&sum=13000 0 [08:47:34]StoreToDocumentArchive [08:47:34]shift 357 fd 112156 [08:47:34]save to /storage/0357/doc_00112156 [08:47:34]save last doc name /storage/0357/doc_00112156 to /storage/kkm_last_doc_name [08:47:34]save OK [08:47:34]Clear old archive folders... [08:47:34]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:47:34]tlvbuf is 01709DE0 [08:47:34]SAM_PROTO_ClearQueue [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 09 00 00 [08:47:34]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]SAM_PROTO_ClearQueue done [08:47:34]KKMCreateOFDPacket [08:47:34]OFDProtocolAddRootSTLVToBuf [08:47:34]FM_MakeSignedData [08:47:34]FM_MakeSignedData [08:47:34]SAM_PROTO_SignData [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 01 02 [08:47:34]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=255 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [08:47:34]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 C3 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=41 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B6 01 00 35 04 06 00 81 45 CB 63 6A 9B [08:47:34]Write to MH i2c: E2 2C 00 62 00 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B6 01 00 35 04 06 00 81 45 CB 63 6A 9B 00 00 75 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [08:47:34]RAPDU: 90 00 [08:47:34]wFMCommunicate OK [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 0D 03 02 [08:47:34]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 0B 00 63 00 00 E1 D8 E9 D5 4B 37 36 D6 90 00 E4 [08:47:34]RAPDU: E1 D8 E9 D5 4B 37 36 D6 90 00 [08:47:34]wFMCommunicate OK [08:47:34]SAM_PROTO_SignData done [08:47:34]FM_MakeSignedData done [08:47:34]CreateOFDProtocolMessage [08:47:34]wFMCommunicate request_size=4 [08:47:34]MH_SAM_APDU [08:47:34]CAPDU: 80 11 00 00 [08:47:34]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]OFD Sender: No OFD packet to send [08:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:34]Read from MH i2c: E2 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [08:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:47:34]wFMCommunicate OK [08:47:34]CreateOFDProtocolMessage done [08:47:34]OFDSenderStorePacket 112156 [08:47:34]StoreOFDPacket docnum=112156 [08:47:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 2B F7 26 01 D0 D9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B6 01 00 35 04 06 00 81 45 CB 63 6A 9B E1 D8 E9 D5 4B 37 36 D6 [08:47:34]CheckFolder [08:47:34]dirname=/storage/ofd_packets [08:47:34]CheckFolder done [08:47:34]ProducePacketName [08:47:34]name=ofd_packets/00112156 [08:47:34]NVStorageSaveData ofd_packets/00112156 [08:47:34]File name is /storage/ofd_packets/00112156 [08:47:34]Write 332 bytes [08:47:34]NVStorageSaveData done [08:47:34]OFDSenderStorePacket done [08:47:34]KKMCreateOFDPacket done [08:47:34]NVStorageSaveData kkm_last_timestamp [08:47:34]File name is /storage/kkm_last_timestamp [08:47:34]Write 4 bytes [08:47:34]NVStorageSaveData done [08:47:34]ExternCall_PrintAddStr [08:47:34]wPrintStart [08:47:34]Write to MH i2c: 01 00 00 65 00 65 [08:47:34]Write i2c OK [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 [08:47:34]MH_I2C_Read... [08:47:34]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [08:47:34]RasterBufferAndPrint [08:47:34]line Счет N : (3)10408 [08:47:34]line ИНН: 02508201610067 [08:47:34]line Контрольно-Кассовый Чек [08:47:34]line ПРОДАЖА [08:47:34]line Товар: 2000036220012 [08:47:34]line Кофе Капучино XL(GABB TRADE) [08:47:34]line 1.000 * 130.00 [08:47:34]line = 130.00 [08:47:34]line НДС 12% НСП 1% [08:47:34]line > о реализуемом товаре [08:47:34]line ИТОГО: 130.00 [08:47:34]line НСП 1% : 1.15 [08:47:34]line НДС 12% : 13.80 [08:47:34]line Наличными: 130.00 [08:47:34]line Безнал.: 0.00 [08:47:34]line Место: АЗС № 47 "Партнер Нефть" [08:47:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:47:34]line СНО: Общий режим [08:47:34]line Чек 55 14.04.2024 08:47 [08:47:34]line Смена: 357 ФФД: 1.0 [08:47:34]line ЗНМ: 0300000138 [08:47:34]line РНМ: 0000000000094237 [08:47:34]line Версия ККМ: 001 [08:47:34]line ФМ: 0000000000875019 [08:47:34]line ФД: 112156 [08:47:34]line ФПД: 142136765016731 [08:47:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084733&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112156&fm=142136765016731&tin=02508201610067®Number=0000000000094237&sum=13000 [08:47:35]line 0 [08:47:35]OFD Sender: Processing packet 112156 [packets to send 71, broken 70] [08:47:35]ProducePacketName [08:47:35]name=ofd_packets/00112156 [08:47:35]OFD Sender: To server: pG, [08:47:35]CommunicateWithHost lk.salyk.kg:30040 [08:47:35]ConnectInit lk.salyk.kg [08:47:35]written 0, free lines is 4095 [08:47:35]Connected sock=10 [08:47:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 2B F7 26 01 D0 D9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 25 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B6 01 00 35 04 06 00 81 45 CB 63 6A 9B E1 D8 E9 D5 4B 37 36 D6 [08:47:35]Write to MH i2c: 01 00 00 8E 00 8E [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 07 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 E2 0C 83 [08:47:35]RasterBufferAndPrint [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]line [08:47:35]written 0, free lines is 3304 [08:47:35]MH_Cut [08:47:35]Write to MH i2c: D1 01 00 95 00 01 67 [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 01 00 [08:47:35]MH_I2C_Read... [08:47:35]Read from MH i2c: D1 01 00 95 00 00 66 [08:47:35]Write to MH i2c: 01 00 00 96 00 96 [08:47:35]Write i2c OK [08:47:35]MH_I2C_Read... [08:47:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D1 61 47 00 5B 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 38 37 35 30 31 39 10 04 04 00 1C B6 01 00 F4 03 04 00 B1 3F 1B 66 B6 04 01 00 00 CB 9D E2 D8 E0 E2 E4 3C [08:47:35]CommunicateWithHost err = 0 [08:47:35]CheckOFDResponse [08:47:35]1017 (14) - 77093643461234 [08:47:35]1041 (16) - 0000000000875019 [08:47:35]1040 (4) - 112156 [08:47:35]1012 (4) - 14.04.2024 02:30 [08:47:35]1206 (1) - 0 [08:47:35]OFD Sender: Remove packet 112156 [08:47:35]ProducePacketName [08:47:35]name=ofd_packets/00112156 [08:47:35]NVStorageDeleteData [08:47:36]OFD Sender: No OFD packet to send [08:47:36]*** Cut start [08:47:36]*** Partial cut [08:47:36]*** CUTSNS_PIN = 1 [08:47:36]*** CUTSNS_PIN = 0 [08:47:36]*** Brake cut motor [08:47:36]Read from MH i2c: 01 [08:47:36]MH_I2C_Read... [08:47:36]*** Stop cut motor [08:47:36]*** Cut end [08:47:36]Read from MH i2c: 01 07 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [08:47:36]process_action close_receipt done [08:47:36]requested_data is exist [08:47:36]produce_requested_data [08:47:36]requested_item fm.sn is exist - process it [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 11 00 00 [08:47:36]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:36]Read from MH i2c: E2 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 [08:47:36]MH_I2C_Read... [08:47:36]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [08:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:47:36]wFMCommunicate OK [08:47:36]requested_item fd.num is exist - process it [08:47:36]SAM_PROTO_GetFieldsCounters [08:47:36]wFMCommunicate request_size=4 [08:47:36]MH_SAM_APDU [08:47:36]CAPDU: 80 13 00 00 [08:47:36]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [08:47:36]Write i2c OK [08:47:36]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 62 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [08:47:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_GetFieldsCounters done [08:47:37]requested_item shift.num is exist - process it [08:47:37]requested_item shift.opened is exist - process it [08:47:37]req_shift_opened [08:47:37]FM_GetShiftState [08:47:37]SAM_PROTO_GetShiftState [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 13 01 00 [08:47:37]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AE [08:47:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_GetShiftState done [08:47:37]FM_GetShiftState done [08:47:37]req_shift_opened done [08:47:37]requested_item shift.open_date is exist - process it [08:47:37]req_shift_open_date [08:47:37]req_shift_open_date done [08:47:37]produce_requested_data done [08:47:37]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112156,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:47:37]process_action_free close_receipt [08:47:37]json_value_free [08:47:37]json_value_free done [08:47:37]process_json_proto returns [08:47:37]Send response to host [08:47:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112156,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:47:37]free response buf [08:47:37]execute_script done [08:47:37]execute_script returns [08:47:37]free content buf [08:47:37]Sock 8.Close socket [08:47:37]Sock 8.Thread stoped [08:47:37]accept exits with 9 [08:47:37]New connection [08:47:37]New thread 3067243876 created [08:47:37]Thread 3067100516 joined [08:47:37]Waiting for new connection... [08:47:37] Sock 9.Parse request [08:47:37]Sock 9.Check first char [08:47:37]Sock 9.First char is OK [08:47:37]request: POST /json_proto HTTP/1.0 [08:47:37]Method: POST [08:47:37]URL: /json_proto [08:47:37]Method is POST - this is cgi request [08:47:37]url: /json_proto [08:47:37]query_string will be loaded in cgi processing [08:47:37]execute_cgi json_proto POST (null) [08:47:37]execute_cgi path=json_proto method=POST [08:47:37]POST find Content-Length [08:47:37]Host: 172.17.96.197:8080 [08:47:37]Content-Length: 673 [08:47:37]Content-Type: application/json [08:47:37] [08:47:37]POST finish read [08:47:37]Found Content-Length = 673 [08:47:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48475", "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.40, "quantity" : 9.670, "sum" : 700.11, "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:47:37]execute_script... [08:47: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)48475", "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.40, "quantity" : 9.670, "sum" : 700.11, "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:47:37]POST & json_proto [08:47:37]process_json_proto [08:47:37]json parsed OK: [08:47:37]protocol is kg_v1.0 [08:47:37]action value=close_receipt [08:47:37]process_action close_receipt [08:47:37]cmd_close_receipt [08:47:37]MH_GetDate [08:47:37]Write to MH i2c: F0 00 00 9A 00 89 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: F0 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: F0 09 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: F0 09 00 9A 00 00 2A 98 1B 66 E0 85 7F 64 1D [08:47:37]GetLastDocTimeStamp 1713084453 [08:47:37]current date 1713084458 [08:47:37]FM_GetShiftState [08:47:37]SAM_PROTO_GetShiftState [08:47:37]wFMCommunicate request_size=4 [08:47:37]MH_SAM_APDU [08:47:37]CAPDU: 80 13 01 00 [08:47:37]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [08:47:37]Write i2c OK [08:47:37]MH_I2C_Read... [08:47:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:37]Read from MH i2c: E2 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 [08:47:37]MH_I2C_Read... [08:47:37]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [08:47:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:47:37]wFMCommunicate OK [08:47:37]SAM_PROTO_GetShiftState done [08:47:37]FM_GetShiftState done [08:47:37]opened in 1713054696 [08:47:37]opened+sec_in_day 1713141096 [08:47:37]quantity*price = 70010 [08:47:37]sum+1 = 70012 [08:47:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 56 14.04.2024 08:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112157 ФПД: 241190102770910 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084738&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112157&fm=241190102770910&tin=02508201610067®Number=0000000000094237&sum=70000 [08:47:38]StoreToDocumentArchive [08:47:38]shift 357 fd 112157 [08:47:38]save to /storage/0357/doc_00112157 [08:47:38]save last doc name /storage/0357/doc_00112157 to /storage/kkm_last_doc_name [08:47:38]save OK [08:47:38]Clear old archive folders... [08:47:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:47:38]tlvbuf is 01709CE0 [08:47:38]SAM_PROTO_ClearQueue [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 09 00 00 [08:47:38]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 03 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [08:47:38]RAPDU: 90 00 [08:47:38]wFMCommunicate OK [08:47:38]SAM_PROTO_ClearQueue done [08:47:38]KKMCreateOFDPacket [08:47:38]OFDProtocolAddRootSTLVToBuf [08:47:38]FM_MakeSignedData [08:47:38]FM_MakeSignedData [08:47:38]SAM_PROTO_SignData [08:47:38]wFMCommunicate request_size=4 [08:47:38]MH_SAM_APDU [08:47:38]CAPDU: 80 0D 01 02 [08:47:38]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [08:47:38]Write i2c OK [08:47:38]MH_I2C_Read... [08:47:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:38]Read from MH i2c: E2 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 03 00 [08:47:38]MH_I2C_Read... [08:47:38]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [08:47:38]RAPDU: 90 00 [08:47:38]wFMCommunicate OK [08:47:38]wFMCommunicate request_size=255 [08:47:38]MH_SAM_APDU [08:47:38]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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 38 00 00 00 F4 03 04 00 2A 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B6 01 00 35 04 06 00 DB 5C 72 66 [08:47:39]Write to MH i2c: E2 02 01 AA 00 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 38 00 00 00 F4 03 04 00 2A 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B6 01 00 35 04 06 00 DB 5C 72 66 00 00 B7 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=7 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 02 02 02 24 DE [08:47:39]Write to MH i2c: E2 0A 00 AB 00 80 0D 02 02 02 00 24 DE 00 00 2B [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [08:47:39]RAPDU: 90 00 [08:47:39]wFMCommunicate OK [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 0D 03 02 [08:47:39]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0B 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 0B 00 AC 00 00 AE AC 2B D0 29 4C 7B 12 90 00 7F [08:47:39]RAPDU: AE AC 2B D0 29 4C 7B 12 90 00 [08:47:39]wFMCommunicate OK [08:47:39]SAM_PROTO_SignData done [08:47:39]FM_MakeSignedData done [08:47:39]CreateOFDProtocolMessage [08:47:39]wFMCommunicate request_size=4 [08:47:39]MH_SAM_APDU [08:47:39]CAPDU: 80 11 00 00 [08:47:39]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:39]Read from MH i2c: E2 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [08:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:47:39]wFMCommunicate OK [08:47:39]CreateOFDProtocolMessage done [08:47:39]OFDSenderStorePacket 112157 [08:47:39]StoreOFDPacket docnum=112157 [08:47:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B0 7D 04 01 F7 93 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 38 00 00 00 F4 03 04 00 2A 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B6 01 00 35 04 06 00 DB 5C 72 66 24 DE AE AC 2B D0 29 4C 7B 12 [08:47:39]CheckFolder [08:47:39]dirname=/storage/ofd_packets [08:47:39]CheckFolder done [08:47:39]ProducePacketName [08:47:39]name=ofd_packets/00112157 [08:47:39]NVStorageSaveData ofd_packets/00112157 [08:47:39]File name is /storage/ofd_packets/00112157 [08:47:39]Write 298 bytes [08:47:39]NVStorageSaveData done [08:47:39]OFDSenderStorePacket done [08:47:39]KKMCreateOFDPacket done [08:47:39]NVStorageSaveData kkm_last_timestamp [08:47:39]File name is /storage/kkm_last_timestamp [08:47:39]Write 4 bytes [08:47:39]NVStorageSaveData done [08:47:39]ExternCall_PrintAddStr [08:47:39]wPrintStart [08:47:39]Write to MH i2c: 01 00 00 AE 00 AE [08:47:39]Write i2c OK [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 07 00 [08:47:39]MH_I2C_Read... [08:47:39]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [08:47:39]RasterBufferAndPrint [08:47:39]line Счет N : (1)48475 [08:47:39]line ИНН: 02508201610067 [08:47:39]line Контрольно-Кассовый Чек [08:47:39]line ПРОДАЖА [08:47:39]line ТРК (МРК, ГНК) : 51 [08:47:39]line Товар: 2710194210 [08:47:39]line ДТ-К-5 [08:47:39]line 9.670 * 72.40 [08:47:39]line = 700.11 [08:47:39]line НДС 12% НСП 1% [08:47:39]line > о реализуемом товаре [08:47:39]line ОКРУГЛЕНИЕ: -0.11 [08:47:39]line ИТОГО: 700.00 [08:47:39]line Внесено: 700.00 [08:47:39]line СДАЧА: 0.00 [08:47:39]line НСП 1% : 6.20 [08:47:39]line НДС 12% : 74.35 [08:47:39]line Наличными: 700.00 [08:47:39]line Безнал.: 0.00 [08:47:39]line Место: АЗС № 47 "Партнер Нефть" [08:47:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:47:39]line СНО: Общий режим [08:47:39]line Чек 56 14.04.2024 08:47 [08:47:39]line Смена: 357 ФФД: 1.0 [08:47:39]line ЗНМ: 0300000138 [08:47:39]line РНМ: 0000000000094237 [08:47:39]line Версия ККМ: 001 [08:47:39]line ФМ: 0000000000875019 [08:47:39]line ФД: 112157 [08:47:39]line ФПД: 241190102770910 [08:47:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084738&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112157&fm=241190102770910&tin=02508201610067®Number=0000000000094237&sum=70000 [08:47:39]OFD Sender: Processing packet 112157 [packets to send 71, broken 70] [08:47:39]ProducePacketName [08:47:39]name=ofd_packets/00112157 [08:47:39]OFD Sender: To server: pG, [08:47:39]CommunicateWithHost lk.salyk.kg:30040 [08:47:39]ConnectInit lk.salyk.kg [08:47:39]written 0, free lines is 4095 [08:47:39]Connected sock=10 [08:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B0 7D 04 01 F7 93 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 38 00 00 00 F4 03 04 00 2A 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B6 01 00 35 04 06 00 DB 5C 72 66 24 DE AE AC 2B D0 29 4C 7B 12 [08:47:40]Write to MH i2c: 01 00 00 D9 00 D9 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: 01 07 00 D9 00 00 00 00 00 00 EA 0C D6 [08:47:40]RasterBufferAndPrint [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]line [08:47:40]written 0, free lines is 3315 [08:47:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 69 C2 47 00 E8 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B6 01 00 F4 03 04 00 B6 3F 1B 66 B6 04 01 00 00 4B 43 2C 10 C6 18 E7 00 [08:47:40]CommunicateWithHost err = 0 [08:47:40]CheckOFDResponse [08:47:40]1017 (14) - 77093643461234 [08:47:40]1041 (16) - 0000000000875019 [08:47:40]1040 (4) - 112157 [08:47:40]1012 (4) - 14.04.2024 02:30 [08:47:40]1206 (1) - 0 [08:47:40]OFD Sender: Remove packet 112157 [08:47:40]ProducePacketName [08:47:40]name=ofd_packets/00112157 [08:47:40]NVStorageDeleteData [08:47:40]MH_Cut [08:47:40]Write to MH i2c: D1 01 00 E0 00 01 B2 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 01 00 [08:47:40]MH_I2C_Read... [08:47:40]Read from MH i2c: D1 01 00 E0 00 00 B1 [08:47:40]Write to MH i2c: 01 00 00 E1 00 E1 [08:47:40]Write i2c OK [08:47:40]MH_I2C_Read... [08:47:40]OFD Sender: No OFD packet to send [08:47:40]*** Cut start [08:47:40]*** Partial cut [08:47:40]*** CUTSNS_PIN = 1 [08:47:41]*** CUTSNS_PIN = 0 [08:47:41]*** Brake cut motor [08:47:41]Read from MH i2c: 01 [08:47:41]*** Stop cut motor [08:47:41]MH_I2C_Read... [08:47:41]*** Cut end [08:47:41]Read from MH i2c: 01 07 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: 01 07 00 E1 00 00 00 00 00 00 FF 0F F6 [08:47:41]process_action close_receipt done [08:47:41]requested_data is exist [08:47:41]produce_requested_data [08:47:41]requested_item fm.sn is exist - process it [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 11 00 00 [08:47:41]Write to MH i2c: E2 08 00 E2 00 80 11 00 00 00 00 00 00 5C [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:41] [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 17 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 17 00 E2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AD [08:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:47:41]wFMCommunicate OK [08:47:41]requested_item fd.num is exist - process it [08:47:41]SAM_PROTO_GetFieldsCounters [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 13 00 00 [08:47:41]Write to MH i2c: E2 08 00 E3 00 80 13 00 00 00 00 00 00 5F [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 62 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 62 00 E3 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [08:47:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:41]wFMCommunicate OK [08:47:41]SAM_PROTO_GetFieldsCounters done [08:47:41]requested_item shift.num is exist - process it [08:47:41]requested_item shift.opened is exist - process it [08:47:41]req_shift_opened [08:47:41]FM_GetShiftState [08:47:41]SAM_PROTO_GetShiftState [08:47:41]wFMCommunicate request_size=4 [08:47:41]MH_SAM_APDU [08:47:41]CAPDU: 80 13 01 00 [08:47:41]Write to MH i2c: E2 08 00 E4 00 80 13 01 00 00 00 00 00 61 [08:47:41]Write i2c OK [08:47:41]MH_I2C_Read... [08:47:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:41]Read from MH i2c: E2 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 0E 00 [08:47:41]MH_I2C_Read... [08:47:41]Read from MH i2c: E2 0E 00 E4 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F9 [08:47:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:47:41]wFMCommunicate OK [08:47:41]SAM_PROTO_GetShiftState done [08:47:41]FM_GetShiftState done [08:47:41]req_shift_opened done [08:47:41]requested_item shift.open_date is exist - process it [08:47:41]req_shift_open_date [08:47:41]req_shift_open_date done [08:47:41]produce_requested_data done [08:47:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112157,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:47:41]process_action_free close_receipt [08:47:41]json_value_free [08:47:41]json_value_free done [08:47:41]process_json_proto returns [08:47:41]Send response to host [08:47:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112157,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:47:41]free response buf [08:47:41]execute_script done [08:47:41]execute_script returns [08:47:41]free content buf [08:47:41]Sock 9.Close socket [08:47:41]Sock 9.Thread stoped [08:47:45]OFD Sender: No OFD packet to send [08:47:50]OFD Sender: No OFD packet to send [08:47:55]OFD Sender: No OFD packet to send [08:48:00]OFD Sender: No OFD packet to send [08:48:05]OFD Sender: No OFD packet to send [08:48:08]accept exits with 8 [08:48:08]New connection [08:48:08]New thread 3067100516 created [08:48:08]Thread 3067243876 joined [08:48:08]Waiting for new connection... [08:48:08] Sock 8.Parse request [08:48:08]Sock 8.Check first char [08:48:08]Sock 8.First char is OK [08:48:08]request: POST /json_proto HTTP/1.0 [08:48:08]Method: POST [08:48:08]URL: /json_proto [08:48:08]Method is POST - this is cgi request [08:48:08]url: /json_proto [08:48:08]query_string will be loaded in cgi processing [08:48:08]execute_cgi json_proto POST (null) [08:48:08]execute_cgi path=json_proto method=POST [08:48:08]POST find Content-Length [08:48:08]Host: 172.17.96.197:8080 [08:48:08]Content-Length: 681 [08:48:08]Content-Type: application/json [08:48:08] [08:48:08]POST finish read [08:48:08]Found Content-Length = 681 [08:48:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48476", "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.30, "quantity" : 16.650, "sum" : 1070.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1070.00, "total" : 1070.00, "payments": [ { "type": 0, "sum" : 1070.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:08]execute_script... [08:48:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48476", "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.30, "quantity" : 16.650, "sum" : 1070.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1070.00, "total" : 1070.00, "payments": [ { "type": 0, "sum" : 1070.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:08]POST & json_proto [08:48:08]process_json_proto [08:48:08]json parsed OK: [08:48:08]protocol is kg_v1.0 [08:48:08]action value=close_receipt [08:48:08]process_action close_receipt [08:48:08]cmd_close_receipt [08:48:08]MH_GetDate [08:48:08]Write to MH i2c: F0 00 00 E5 00 D4 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: F0 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: F0 09 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: F0 09 00 E5 00 00 49 98 1B 66 E0 85 7F 64 87 [08:48:08]GetLastDocTimeStamp 1713084458 [08:48:08]current date 1713084489 [08:48:08]FM_GetShiftState [08:48:08]SAM_PROTO_GetShiftState [08:48:08]wFMCommunicate request_size=4 [08:48:08]MH_SAM_APDU [08:48:08]CAPDU: 80 13 01 00 [08:48:08]Write to MH i2c: E2 08 00 E6 00 80 13 01 00 00 00 00 00 63 [08:48:08]Write i2c OK [08:48:08]MH_I2C_Read... [08:48:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:08]Read from MH i2c: E2 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 [08:48:08]MH_I2C_Read... [08:48:08]Read from MH i2c: E2 0E 00 E6 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [08:48:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:48:08]wFMCommunicate OK [08:48:08]SAM_PROTO_GetShiftState done [08:48:08]FM_GetShiftState done [08:48:08]opened in 1713054696 [08:48:08]opened+sec_in_day 1713141096 [08:48:08]quantity*price = 107059 [08:48:08]sum+1 = 107061 [08:48:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1070.00 Внесено: 1070.00 СДАЧА: 0.00 НСП 1% : 9.47 НДС 12% : 113.69 Наличными: 1070.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 57 14.04.2024 08:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112158 ФПД: 110094928172028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084809&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112158&fm=110094928172028&tin=02508201610067®Number=0000000000094237&sum=107000 [08:48:09]StoreToDocumentArchive [08:48:09]shift 357 fd 112158 [08:48:09]save to /storage/0357/doc_00112158 [08:48:09]save last doc name /storage/0357/doc_00112158 to /storage/kkm_last_doc_name [08:48:09]save OK [08:48:09]Clear old archive folders... [08:48:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:09]tlvbuf is 0171DD80 [08:48:09]SAM_PROTO_ClearQueue [08:48:09]wFMCommunicate request_size=4 [08:48:09]MH_SAM_APDU [08:48:09]CAPDU: 80 09 00 00 [08:48:09]Write to MH i2c: E2 08 00 F3 00 80 09 00 00 00 00 00 00 65 [08:48:09]Write i2c OK [08:48:09]MH_I2C_Read... [08:48:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:09]Read from MH i2c: E2 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 03 00 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [08:48:09]RAPDU: 90 00 [08:48:09]wFMCommunicate OK [08:48:09]SAM_PROTO_ClearQueue done [08:48:09]KKMCreateOFDPacket [08:48:09]OFDProtocolAddRootSTLVToBuf [08:48:09]FM_MakeSignedData [08:48:09]FM_MakeSignedData [08:48:09]SAM_PROTO_SignData [08:48:09]wFMCommunicate request_size=4 [08:48:09]MH_SAM_APDU [08:48:09]CAPDU: 80 0D 01 02 [08:48:09]Write to MH i2c: E2 08 00 F4 00 80 0D 01 02 00 00 00 00 6D [08:48:09]Write i2c OK [08:48:09]MH_I2C_Read... [08:48:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:09]Read from MH i2c: E2 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 03 00 [08:48:09]MH_I2C_Read... [08:48:09]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [08:48:09]RAPDU: 90 00 [08:48:09]wFMCommunicate OK [08:48:09]wFMCommunicate request_size=255 [08:48:09]MH_SAM_APDU [08:48:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 41 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 34 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 2C 00 00 00 00 07 04 06 00 F8 A1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 49 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B6 01 00 35 04 06 00 64 [08:48:09]Write to MH i2c: E2 02 01 F5 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 0A 41 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 34 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 2C 00 00 00 00 07 04 06 00 F8 A1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 49 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B6 01 00 35 04 06 00 64 00 00 87 [08:48:09]Write i2c OK [08:48:09]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]wFMCommunicate request_size=10 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 0D 02 02 05 21 79 15 D3 FC [08:48:10]Write to MH i2c: E2 0D 00 F6 00 80 0D 02 02 05 00 21 79 15 D3 FC 00 00 F8 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [08:48:10]RAPDU: 90 00 [08:48:10]wFMCommunicate OK [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 0D 03 02 [08:48:10]Write to MH i2c: E2 08 00 F7 00 80 0D 03 02 00 00 00 00 72 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 0B 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 0B 00 F7 00 00 76 5D 33 92 EF 5C 67 F1 90 00 AE [08:48:10]RAPDU: 76 5D 33 92 EF 5C 67 F1 90 00 [08:48:10]wFMCommunicate OK [08:48:10]SAM_PROTO_SignData done [08:48:10]FM_MakeSignedData done [08:48:10]CreateOFDProtocolMessage [08:48:10]wFMCommunicate request_size=4 [08:48:10]MH_SAM_APDU [08:48:10]CAPDU: 80 11 00 00 [08:48:10]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:10]Read from MH i2c: E2 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 17 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [08:48:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:48:10]wFMCommunicate OK [08:48:10]CreateOFDProtocolMessage done [08:48:10]OFDSenderStorePacket 112158 [08:48:10]StoreOFDPacket docnum=112158 [08:48:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D5 8E 07 01 63 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 41 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 34 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 2C 00 00 00 00 07 04 06 00 F8 A1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 49 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B6 01 00 35 04 06 00 64 21 79 15 D3 FC 76 5D 33 92 EF 5C 67 F1 [08:48:10]CheckFolder [08:48:10]dirname=/storage/ofd_packets [08:48:10]CheckFolder done [08:48:10]ProducePacketName [08:48:10]name=ofd_packets/00112158 [08:48:10]NVStorageSaveData ofd_packets/00112158 [08:48:10]File name is /storage/ofd_packets/00112158 [08:48:10]Write 301 bytes [08:48:10]NVStorageSaveData done [08:48:10]OFDSenderStorePacket done [08:48:10]KKMCreateOFDPacket done [08:48:10]NVStorageSaveData kkm_last_timestamp [08:48:10]File name is /storage/kkm_last_timestamp [08:48:10]Write 4 bytes [08:48:10]NVStorageSaveData done [08:48:10]ExternCall_PrintAddStr [08:48:10]wPrintStart [08:48:10]Write to MH i2c: 01 00 00 F9 00 F9 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 F9 00 00 00 00 00 00 FF 0F 0E [08:48:10]RasterBufferAndPrint [08:48:10]line Счет N : (1)48476 [08:48:10]line ИНН: 02508201610067 [08:48:10]line Контрольно-Кассовый Чек [08:48:10]line ПРОДАЖА [08:48:10]line ТРК (МРК, ГНК) : 42 [08:48:10]line Товар: 2710124130 [08:48:10]line Аи-92-К-5 [08:48:10]line 16.650 * 64.30 [08:48:10]line = 1070.60 [08:48:10]line НДС 12% НСП 1% [08:48:10]line > о реализуемом товаре [08:48:10]line ОКРУГЛЕНИЕ: -0.60 [08:48:10]line ИТОГО: 1070.00 [08:48:10]line Внесено: 1070.00 [08:48:10]line СДАЧА: 0.00 [08:48:10]line НСП 1% : 9.47 [08:48:10]line НДС 12% : 113.69 [08:48:10]line Наличными: 1070.00 [08:48:10]line Безнал.: 0.00 [08:48:10]line Место: АЗС № 47 "Партнер Нефть" [08:48:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:48:10]line СНО: Общий режим [08:48:10]line Чек 57 14.04.2024 08:48 [08:48:10]line Смена: 357 ФФД: 1.0 [08:48:10]line ЗНМ: 0300000138 [08:48:10]line РНМ: 0000000000094237 [08:48:10]line Версия ККМ: 001 [08:48:10]line ФМ: 0000000000875019 [08:48:10]line ФД: 112158 [08:48:10]line ФПД: 110094928172028 [08:48:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084809&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112158&fm=110094928172028&tin=02508201610067®Number=0000000000094237&sum=107000 [08:48:10]OFD Sender: Processing packet 112158 [packets to send 71, broken 70] [08:48:10]ProducePacketName [08:48:10]name=ofd_packets/00112158 [08:48:10]OFD Sender: To server: pG, [08:48:10]CommunicateWithHost lk.salyk.kg:30040 [08:48:10]ConnectInit lk.salyk.kg [08:48:10]written 0, free lines is 4095 [08:48:10]Connected sock=10 [08:48:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D5 8E 07 01 63 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 41 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 34 A2 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 A1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 2C 00 00 00 00 07 04 06 00 F8 A1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 49 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B6 01 00 35 04 06 00 64 21 79 15 D3 FC 76 5D 33 92 EF 5C 67 F1 [08:48:10]Write to MH i2c: 01 00 00 24 01 25 [08:48:10]Write i2c OK [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 [08:48:10]MH_I2C_Read... [08:48:10]Read from MH i2c: 01 07 00 24 01 00 00 00 00 00 DE 0C 16 [08:48:10]RasterBufferAndPrint [08:48:10]line [08:48:10]line [08:48:10]line [08:48:10]line [08:48:10]line [08:48:10]written 0, free lines is 3300 [08:48:10]MH_Cut [08:48:10]Write to MH i2c: D1 01 00 2B 01 01 FE [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 01 00 [08:48:11]MH_I2C_Read... [08:48:11]Read from MH i2c: D1 01 00 2B 01 00 FD [08:48:11]Write to MH i2c: 01 00 00 2C 01 2D [08:48:11]Write i2c OK [08:48:11]MH_I2C_Read... [08:48:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 CE E8 47 00 F8 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B6 01 00 F4 03 04 00 D5 3F 1B 66 B6 04 01 00 00 A8 E6 14 A6 7D 4D 9A 80 [08:48:11]CommunicateWithHost err = 0 [08:48:11]CheckOFDResponse [08:48:11]1017 (14) - 77093643461234 [08:48:11]1041 (16) - 0000000000875019 [08:48:11]1040 (4) - 112158 [08:48:11]1012 (4) - 14.04.2024 02:30 [08:48:11]1206 (1) - 0 [08:48:11]OFD Sender: Remove packet 112158 [08:48:11]ProducePacketName [08:48:11]name=ofd_packets/00112158 [08:48:11]NVStorageDeleteData [08:48:11]OFD Sender: No OFD packet to send [08:48:11]*** Cut start [08:48:11]*** Partial cut [08:48:11]*** CUTSNS_PIN = 1 [08:48:11]*** CUTSNS_PIN = 0 [08:48:12]*** Brake cut motor [08:48:12]Read from MH i2c: 01 [08:48:12]MH_I2C_Read... [08:48:12]*** Stop cut motor [08:48:12]*** Cut end [08:48:12]Read from MH i2c: 01 07 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: 01 07 00 2C 01 00 00 00 00 00 FF 0F 42 [08:48:12]process_action close_receipt done [08:48:12]requested_data is exist [08:48:12]produce_requested_data [08:48:12]requested_item fm.sn is exist - process it [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 11 00 00 [08:48:12]Write to MH i2c: E2 08 00 2D 01 80 11 00 00 00 00 00 00 A8 [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 17 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 17 00 2D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F9 [08:48:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:48:12]wFMCommunicate OK [08:48:12]requested_item fd.num is exist - process it [08:48:12]SAM_PROTO_GetFieldsCounters [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 13 00 00 [08:48:12]Write to MH i2c: E2 08 00 2E 01 80 13 00 00 00 00 00 00 AB [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 62 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 62 00 2E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [08:48:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:12]wFMCommunicate OK [08:48:12]SAM_PROTO_GetFieldsCounters done [08:48:12]requested_item shift.num is exist - process it [08:48:12]requested_item shift.opened is exist - process it [08:48:12]req_shift_opened [08:48:12]FM_GetShiftState [08:48:12]SAM_PROTO_GetShiftState [08:48:12]wFMCommunicate request_size=4 [08:48:12]MH_SAM_APDU [08:48:12]CAPDU: 80 13 01 00 [08:48:12]Write to MH i2c: E2 08 00 2F 01 80 13 01 00 00 00 00 00 AD [08:48:12]Write i2c OK [08:48:12]MH_I2C_Read... [08:48:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:12]Read from MH i2c: E2 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0E 00 [08:48:12]MH_I2C_Read... [08:48:12]Read from MH i2c: E2 0E 00 2F 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 45 [08:48:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:48:12]wFMCommunicate OK [08:48:12]SAM_PROTO_GetShiftState done [08:48:12]FM_GetShiftState done [08:48:12]req_shift_opened done [08:48:12]requested_item shift.open_date is exist - process it [08:48:12]req_shift_open_date [08:48:12]req_shift_open_date done [08:48:12]produce_requested_data done [08:48:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112158,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:48:12]process_action_free close_receipt [08:48:12]json_value_free [08:48:12]json_value_free done [08:48:12]process_json_proto returns [08:48:12]Send response to host [08:48:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112158,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:48:12]free response buf [08:48:12]execute_script done [08:48:12]execute_script returns [08:48:12]free content buf [08:48:12]Sock 8.Close socket [08:48:12]Sock 8.Thread stoped [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:38]recv_with_timeout no data received [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]accept exits with 9 [08:49:16]New connection [08:49:16]New thread 3067243876 created [08:49:16]Thread 3067100516 joined [08:49:16]Waiting for new connection... [08:49:16] Sock 9.Parse request [08:49:16]Sock 9.Check first char [08:49:16]Sock 9.First char is OK [08:49:16]request: POST /json_proto HTTP/1.0 [08:49:16]Method: POST [08:49:16]URL: /json_proto [08:49:16]Method is POST - this is cgi request [08:49:16]url: /json_proto [08:49:16]query_string will be loaded in cgi processing [08:49:16]execute_cgi json_proto POST (null) [08:49:16]execute_cgi path=json_proto method=POST [08:49:16]POST find Content-Length [08:49:16]Host: 172.17.96.197:8080 [08:49:16]Content-Length: 835 [08:49:16]Content-Type: application/json [08:49:16] [08:49:16]POST finish read [08:49:16]Found Content-Length = 835 [08:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10409", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:16]execute_script... [08:49:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10409", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:49:16]POST & json_proto [08:49:16]process_json_proto [08:49:16]json parsed OK: [08:49:16]protocol is kg_v1.0 [08:49:16]action value=close_receipt [08:49:16]process_action close_receipt [08:49:16]cmd_close_receipt [08:49:16]MH_GetDate [08:49:16]Write to MH i2c: F0 00 00 30 01 20 [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: F0 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: F0 09 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: F0 09 00 30 01 00 8D 98 1B 66 E0 85 7F 64 17 [08:49:16]GetLastDocTimeStamp 1713084489 [08:49:16]current date 1713084557 [08:49:16]FM_GetShiftState [08:49:16]SAM_PROTO_GetShiftState [08:49:16]wFMCommunicate request_size=4 [08:49:16]MH_SAM_APDU [08:49:16]CAPDU: 80 13 01 00 [08:49:16]Write to MH i2c: E2 08 00 31 01 80 13 01 00 00 00 00 00 AF [08:49:16]Write i2c OK [08:49:16]MH_I2C_Read... [08:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:16]Read from MH i2c: E2 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 0E 00 [08:49:16]MH_I2C_Read... [08:49:16]Read from MH i2c: E2 0E 00 31 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 47 [08:49:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:49:16]wFMCommunicate OK [08:49:16]SAM_PROTO_GetShiftState done [08:49:16]FM_GetShiftState done [08:49:16]opened in 1713054696 [08:49:16]opened+sec_in_day 1713141096 [08:49:16]quantity*price = 11000 [08:49:16]sum+1 = 11001 [08:49:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 58 14.04.2024 08:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112159 ФПД: 225379699314675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084917&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112159&fm=225379699314675&tin=02508201610067®Number=0000000000094237&sum=22000 0 [08:49:17]StoreToDocumentArchive [08:49:17]shift 357 fd 112159 [08:49:17]save to /storage/0357/doc_00112159 [08:49:17]save last doc name /storage/0357/doc_00112159 to /storage/kkm_last_doc_name [08:49:17]save OK [08:49:17]Clear old archive folders... [08:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=371 [08:49:17]tlvbuf is 0170F1C0 [08:49:17]SAM_PROTO_ClearQueue [08:49:17]wFMCommunicate request_size=4 [08:49:17]MH_SAM_APDU [08:49:17]CAPDU: 80 09 00 00 [08:49:17]Write to MH i2c: E2 08 00 3E 01 80 09 00 00 00 00 00 00 B1 [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:49:17]Read from MH i2c: E2 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [08:49:17]RAPDU: 90 00 [08:49:17]wFMCommunicate OK [08:49:17]SAM_PROTO_ClearQueue done [08:49:17]KKMCreateOFDPacket [08:49:17]OFDProtocolAddRootSTLVToBuf [08:49:17]FM_MakeSignedData [08:49:17]FM_MakeSignedData [08:49:17]SAM_PROTO_SignData [08:49:17]wFMCommunicate request_size=4 [08:49:17]MH_SAM_APDU [08:49:17]CAPDU: 80 0D 01 02 [08:49:17]Write to MH i2c: E2 08 00 3F 01 80 0D 01 02 00 00 00 00 B9 [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:49:17]Read from MH i2c: E2 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [08:49:17]RAPDU: 90 00 [08:49:17]wFMCommunicate OK [08:49:17]wFMCommunicate request_size=255 [08:49:17]MH_SAM_APDU [08:49:17]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 [08:49:17]Write to MH i2c: E2 02 01 40 01 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 3C [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:17]Read from MH i2c: E2 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 [08:49:17]MH_I2C_Read... [08:49:17]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [08:49:17]RAPDU: 90 00 [08:49:17]wFMCommunicate OK [08:49:17]wFMCommunicate request_size=130 [08:49:17]MH_SAM_APDU [08:49:17]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8D 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B6 01 00 35 04 06 00 CC FB 4C EA CF F3 [08:49:17]Write to MH i2c: E2 85 00 41 01 80 0D 02 02 7D 00 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8D 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B6 01 00 35 04 06 00 CC FB 4C EA CF F3 00 00 34 [08:49:17]Write i2c OK [08:49:17]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 03 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [08:49:18]RAPDU: 90 00 [08:49:18]wFMCommunicate OK [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 0D 03 02 [08:49:18]Write to MH i2c: E2 08 00 42 01 80 0D 03 02 00 00 00 00 BE [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0B 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 0B 00 42 01 00 0E E8 46 8C 34 A3 23 DB 90 00 5C [08:49:18]RAPDU: 0E E8 46 8C 34 A3 23 DB 90 00 [08:49:18]wFMCommunicate OK [08:49:18]SAM_PROTO_SignData done [08:49:18]FM_MakeSignedData done [08:49:18]CreateOFDProtocolMessage [08:49:18]wFMCommunicate request_size=4 [08:49:18]MH_SAM_APDU [08:49:18]CAPDU: 80 11 00 00 [08:49:18]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:18]Read from MH i2c: E2 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [08:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:49:18]wFMCommunicate OK [08:49:18]CreateOFDProtocolMessage done [08:49:18]OFDSenderStorePacket 112159 [08:49:18]StoreOFDPacket docnum=112159 [08:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 87 01 00 00 7F 00 7F 01 F5 55 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8D 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B6 01 00 35 04 06 00 CC FB 4C EA CF F3 0E E8 46 8C 34 A3 23 DB [08:49:18]CheckFolder [08:49:18]dirname=/storage/ofd_packets [08:49:18]CheckFolder done [08:49:18]ProducePacketName [08:49:18]name=ofd_packets/00112159 [08:49:18]NVStorageSaveData ofd_packets/00112159 [08:49:18]File name is /storage/ofd_packets/00112159 [08:49:18]Write 421 bytes [08:49:18]NVStorageSaveData done [08:49:18]OFDSenderStorePacket done [08:49:18]KKMCreateOFDPacket done [08:49:18]NVStorageSaveData kkm_last_timestamp [08:49:18]File name is /storage/kkm_last_timestamp [08:49:18]Write 4 bytes [08:49:18]NVStorageSaveData done [08:49:18]ExternCall_PrintAddStr [08:49:18]wPrintStart [08:49:18]Write to MH i2c: 01 00 00 44 01 45 [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [08:49:18]RasterBufferAndPrint [08:49:18]line Счет N : (3)10409 [08:49:18]line ИНН: 02508201610067 [08:49:18]line Контрольно-Кассовый Чек [08:49:18]line ПРОДАЖА [08:49:18]line Товар: 4870112003925 [08:49:18]line Конд ULKER-Albeni 40gr (6*24) [08:49:18]line 2.000 * 55.00 [08:49:18]line = 110.00 [08:49:18]line НДС 12% НСП 1% [08:49:18]line > о реализуемом товаре [08:49:18]line Товар: 4870001570071 [08:49:18]line Напиток Pepsi 1л [08:49:18]line 1.000 * 110.00 [08:49:18]line = 110.00 [08:49:18]line НДС 12% НСП 1% [08:49:18]line > о реализуемом товаре [08:49:18]line ИТОГО: 220.00 [08:49:18]line НСП 1% : 1.94 [08:49:18]line НДС 12% : 23.36 [08:49:18]line Наличными: 220.00 [08:49:18]line Безнал.: 0.00 [08:49:18]line Место: АЗС № 47 "Партнер Нефть" [08:49:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:49:18]line СНО: Общий режим [08:49:18]line Чек 58 14.04.2024 08:49 [08:49:18]line Смена: 357 ФФД: 1.0 [08:49:18]line ЗНМ: 0300000138 [08:49:18]line РНМ: 0000000000094237 [08:49:18]line Версия ККМ: 001 [08:49:18]line ФМ: 0000000000875019 [08:49:18]line ФД: 112159 [08:49:18]line ФПД: 225379699314675 [08:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T084917&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112159&fm=225379699314675&tin=02508201610067®Number=0000000000094237&sum=22000 [08:49:18]OFD Sender: Processing packet 112159 [packets to send 71, broken 70] [08:49:18]ProducePacketName [08:49:18]name=ofd_packets/00112159 [08:49:18]OFD Sender: To server: pG, [08:49:18]CommunicateWithHost lk.salyk.kg:30040 [08:49:18]ConnectInit lk.salyk.kg [08:49:18]line 0 [08:49:18]written 0, free lines is 4095 [08:49:18]Connected sock=10 [08:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 87 01 00 00 7F 00 7F 01 F5 55 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 8D 98 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B6 01 00 35 04 06 00 CC FB 4C EA CF F3 0E E8 46 8C 34 A3 23 DB [08:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7D 79 47 00 3A C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B6 01 00 F4 03 04 00 19 40 1B 66 B6 04 01 00 00 E3 C7 C8 3D 72 39 C4 5F [08:49:18]CommunicateWithHost err = 0 [08:49:18]CheckOFDResponse [08:49:18]1017 (14) - 77093643461234 [08:49:18]1041 (16) - 0000000000875019 [08:49:18]1040 (4) - 112159 [08:49:18]1012 (4) - 14.04.2024 02:31 [08:49:18]1206 (1) - 0 [08:49:18]OFD Sender: Remove packet 112159 [08:49:18]ProducePacketName [08:49:18]name=ofd_packets/00112159 [08:49:18]NVStorageDeleteData [08:49:18]Write to MH i2c: 01 00 00 72 01 73 [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: 01 07 00 72 01 00 00 00 00 00 A6 0C 2C [08:49:18]RasterBufferAndPrint [08:49:18]line [08:49:18]line [08:49:18]line [08:49:18]line [08:49:18]line [08:49:18]written 0, free lines is 3244 [08:49:18]MH_Cut [08:49:18]Write to MH i2c: D1 01 00 79 01 01 4C [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: D1 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: D1 01 00 [08:49:18]MH_I2C_Read... [08:49:18]Read from MH i2c: D1 01 00 79 01 00 4B [08:49:18]Write to MH i2c: 01 00 00 7A 01 7B [08:49:18]Write i2c OK [08:49:18]MH_I2C_Read... [08:49:19]OFD Sender: No OFD packet to send [08:49:19]*** Cut start [08:49:19]*** Partial cut [08:49:19]*** CUTSNS_PIN = 1 [08:49:19]*** CUTSNS_PIN = 0 [08:49:20]*** Brake cut motor [08:49:20]Read from MH i2c: 01 [08:49:20]MH_I2C_Read... [08:49:20]*** Stop cut motor [08:49:20]*** Cut end [08:49:20]Read from MH i2c: 01 07 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: 01 07 00 7A 01 00 00 00 00 00 FF 0F 90 [08:49:20]process_action close_receipt done [08:49:20]requested_data is exist [08:49:20]produce_requested_data [08:49:20]requested_item fm.sn is exist - process it [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 11 00 00 [08:49:20]Write to MH i2c: E2 08 00 7B 01 80 11 00 00 00 00 00 00 F6 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 17 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 17 00 7B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 47 [08:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:49:20]wFMCommunicate OK [08:49:20]requested_item fd.num is exist - process it [08:49:20]SAM_PROTO_GetFieldsCounters [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 13 00 00 [08:49:20]Write to MH i2c: E2 08 00 7C 01 80 13 00 00 00 00 00 00 F9 [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 62 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 62 00 7C 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:49:20]wFMCommunicate OK [08:49:20]SAM_PROTO_GetFieldsCounters done [08:49:20]requested_item shift.num is exist - process it [08:49:20]requested_item shift.opened is exist - process it [08:49:20]req_shift_opened [08:49:20]FM_GetShiftState [08:49:20]SAM_PROTO_GetShiftState [08:49:20]wFMCommunicate request_size=4 [08:49:20]MH_SAM_APDU [08:49:20]CAPDU: 80 13 01 00 [08:49:20]Write to MH i2c: E2 08 00 7D 01 80 13 01 00 00 00 00 00 FB [08:49:20]Write i2c OK [08:49:20]MH_I2C_Read... [08:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:49:20]Read from MH i2c: E2 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0E 00 [08:49:20]MH_I2C_Read... [08:49:20]Read from MH i2c: E2 0E 00 7D 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 93 [08:49:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:49:20]wFMCommunicate OK [08:49:20]SAM_PROTO_GetShiftState done [08:49:20]FM_GetShiftState done [08:49:20]req_shift_opened done [08:49:20]requested_item shift.open_date is exist - process it [08:49:20]req_shift_open_date [08:49:20]req_shift_open_date done [08:49:20]produce_requested_data done [08:49:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112159,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:49:20]process_action_free close_receipt [08:49:20]json_value_free [08:49:20]json_value_free done [08:49:20]process_json_proto returns [08:49:20]Send response to host [08:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112159,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:49:20]free response buf [08:49:20]execute_script done [08:49:20]execute_script returns [08:49:20]free content buf [08:49:20]Sock 9.Close socket [08:49:20]Sock 9.Thread stoped [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:58]accept exits with 8 [08:54:58]New connection [08:54:58]New thread 3067100516 created [08:54:58]Thread 3067243876 joined [08:54:58]Waiting for new connection... [08:54:58] Sock 8.Parse request [08:54:58]Sock 8.Check first char [08:54:58]Sock 8.First char is OK [08:54:58]request: POST /json_proto HTTP/1.0 [08:54:58]Method: POST [08:54:58]URL: /json_proto [08:54:58]Method is POST - this is cgi request [08:54:58]url: /json_proto [08:54:58]query_string will be loaded in cgi processing [08:54:58]execute_cgi json_proto POST (null) [08:54:58]execute_cgi path=json_proto method=POST [08:54:58]POST find Content-Length [08:54:58]Host: 172.17.96.197:8080 [08:54:58]Content-Length: 677 [08:54:58]Content-Type: application/json [08:54:58] [08:54:58]POST finish read [08:54:58]Found Content-Length = 677 [08:54:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.080, "sum" : 905.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:58]execute_script... [08:54:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.080, "sum" : 905.34, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 905.00, "total" : 905.00, "payments": [ { "type": 0, "sum" : 905.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:58]POST & json_proto [08:54:58]process_json_proto [08:54:58]json parsed OK: [08:54:58]protocol is kg_v1.0 [08:54:58]action value=close_receipt [08:54:58]process_action close_receipt [08:54:58]cmd_close_receipt [08:54:58]MH_GetDate [08:54:58]Write to MH i2c: F0 00 00 7E 01 6E [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: F0 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: F0 09 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: F0 09 00 7E 01 00 E3 99 1B 66 E0 85 7F 64 BC [08:54:58]GetLastDocTimeStamp 1713084557 [08:54:58]current date 1713084899 [08:54:58]FM_GetShiftState [08:54:58]SAM_PROTO_GetShiftState [08:54:58]wFMCommunicate request_size=4 [08:54:58]MH_SAM_APDU [08:54:58]CAPDU: 80 13 01 00 [08:54:58]Write to MH i2c: E2 08 00 7F 01 80 13 01 00 00 00 00 00 FD [08:54:58]Write i2c OK [08:54:58]MH_I2C_Read... [08:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:58]Read from MH i2c: E2 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 0E 00 [08:54:58]MH_I2C_Read... [08:54:58]Read from MH i2c: E2 0E 00 7F 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 95 [08:54:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:54:58]wFMCommunicate OK [08:54:58]SAM_PROTO_GetShiftState done [08:54:58]FM_GetShiftState done [08:54:58]opened in 1713054696 [08:54:58]opened+sec_in_day 1713141096 [08:54:58]quantity*price = 90534 [08:54:58]sum+1 = 90535 [08:54:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.34 ИТОГО: 905.00 Внесено: 905.00 СДАЧА: 0.00 НСП 1% : 8.01 НДС 12% : 96.14 Наличными: 905.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 59 14.04.2024 08:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112160 ФПД: 81612662189313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T085459&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112160&fm=81612662189313&tin=02508201610067®Number=0000000000094237&sum=90500 [08:54:59]StoreToDocumentArchive [08:54:59]shift 357 fd 112160 [08:54:59]save to /storage/0357/doc_00112160 [08:54:59]save last doc name /storage/0357/doc_00112160 to /storage/kkm_last_doc_name [08:54:59]save OK [08:54:59]Clear old archive folders... [08:54:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:54:59]tlvbuf is 0170EF70 [08:54:59]SAM_PROTO_ClearQueue [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 09 00 00 [08:54:59]Write to MH i2c: E2 08 00 8C 01 80 09 00 00 00 00 00 00 FF [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:59]Read from MH i2c: E2 03 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 03 00 8C 01 00 90 00 01 [08:54:59]RAPDU: 90 00 [08:54:59]wFMCommunicate OK [08:54:59]SAM_PROTO_ClearQueue done [08:54:59]KKMCreateOFDPacket [08:54:59]OFDProtocolAddRootSTLVToBuf [08:54:59]FM_MakeSignedData [08:54:59]FM_MakeSignedData [08:54:59]SAM_PROTO_SignData [08:54:59]wFMCommunicate request_size=4 [08:54:59]MH_SAM_APDU [08:54:59]CAPDU: 80 0D 01 02 [08:54:59]Write to MH i2c: E2 08 00 8D 01 80 0D 01 02 00 00 00 00 07 [08:54:59]OFD Sender: No OFD packet to send [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 [08:54:59]MH_I2C_Read... [08:54:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:59]Read from MH i2c: E2 03 00 [08:54:59]MH_I2C_Read... [08:54:59]Read from MH i2c: E2 03 00 8D 01 00 90 00 02 [08:54:59]RAPDU: 90 00 [08:54:59]wFMCommunicate OK [08:54:59]wFMCommunicate request_size=255 [08:54:59]MH_SAM_APDU [08:54:59]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 00 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A6 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 25 00 00 00 00 07 04 06 00 84 61 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 E3 99 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B6 01 00 35 04 06 00 4A [08:54:59]Write to MH i2c: E2 02 01 8E 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 00 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A6 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 25 00 00 00 00 07 04 06 00 84 61 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 E3 99 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B6 01 00 35 04 06 00 4A 00 00 E7 [08:54:59]Write i2c OK [08:54:59]MH_I2C_Read... [08:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:00]Read from MH i2c: E2 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 03 00 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 03 00 8E 01 00 90 00 03 [08:55:00]RAPDU: 90 00 [08:55:00]wFMCommunicate OK [08:55:00]wFMCommunicate request_size=10 [08:55:00]MH_SAM_APDU [08:55:00]CAPDU: 80 0D 02 02 05 39 ED BD 2D 01 [08:55:00]Write to MH i2c: E2 0D 00 8F 01 80 0D 02 02 05 00 39 ED BD 2D 01 00 00 25 [08:55:00]Write i2c OK [08:55:00]MH_I2C_Read... [08:55:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:00]Read from MH i2c: E2 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 03 00 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 03 00 8F 01 00 90 00 04 [08:55:00]RAPDU: 90 00 [08:55:00]wFMCommunicate OK [08:55:00]wFMCommunicate request_size=4 [08:55:00]MH_SAM_APDU [08:55:00]CAPDU: 80 0D 03 02 [08:55:00]Write to MH i2c: E2 08 00 90 01 80 0D 03 02 00 00 00 00 0C [08:55:00]Write i2c OK [08:55:00]MH_I2C_Read... [08:55:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:00]Read from MH i2c: E2 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 0B 00 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 0B 00 90 01 00 68 05 26 9F 37 D7 B0 56 90 00 53 [08:55:00]RAPDU: 68 05 26 9F 37 D7 B0 56 90 00 [08:55:00]wFMCommunicate OK [08:55:00]SAM_PROTO_SignData done [08:55:00]FM_MakeSignedData done [08:55:00]CreateOFDProtocolMessage [08:55:00]wFMCommunicate request_size=4 [08:55:00]MH_SAM_APDU [08:55:00]CAPDU: 80 11 00 00 [08:55:00]Write to MH i2c: E2 08 00 91 01 80 11 00 00 00 00 00 00 0C [08:55:00]Write i2c OK [08:55:00]MH_I2C_Read... [08:55:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:00]Read from MH i2c: E2 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 17 00 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: E2 17 00 91 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5D [08:55:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:55:00]wFMCommunicate OK [08:55:00]CreateOFDProtocolMessage done [08:55:00]OFDSenderStorePacket 112160 [08:55:00]StoreOFDPacket docnum=112160 [08:55:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5F 91 07 01 FE AC 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 00 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A6 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 25 00 00 00 00 07 04 06 00 84 61 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 E3 99 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B6 01 00 35 04 06 00 4A 39 ED BD 2D 01 68 05 26 9F 37 D7 B0 56 [08:55:00]CheckFolder [08:55:00]dirname=/storage/ofd_packets [08:55:00]CheckFolder done [08:55:00]ProducePacketName [08:55:00]name=ofd_packets/00112160 [08:55:00]NVStorageSaveData ofd_packets/00112160 [08:55:00]File name is /storage/ofd_packets/00112160 [08:55:00]Write 301 bytes [08:55:00]NVStorageSaveData done [08:55:00]OFDSenderStorePacket done [08:55:00]KKMCreateOFDPacket done [08:55:00]NVStorageSaveData kkm_last_timestamp [08:55:00]File name is /storage/kkm_last_timestamp [08:55:00]Write 4 bytes [08:55:00]NVStorageSaveData done [08:55:00]ExternCall_PrintAddStr [08:55:00]wPrintStart [08:55:00]Write to MH i2c: 01 00 00 92 01 93 [08:55:00]Write i2c OK [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: 01 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: 01 07 00 [08:55:00]MH_I2C_Read... [08:55:00]Read from MH i2c: 01 07 00 92 01 00 00 00 00 00 FF 0F A8 [08:55:00]RasterBufferAndPrint [08:55:00]line Счет N : (1)48477 [08:55:00]line ИНН: 02508201610067 [08:55:00]line Контрольно-Кассовый Чек [08:55:00]line ПРОДАЖА [08:55:00]line ТРК (МРК, ГНК) : 21 [08:55:00]line Товар: 2710124130 [08:55:00]line Аи-92-К-5 [08:55:00]line 14.080 * 64.30 [08:55:00]line = 905.34 [08:55:00]line НДС 12% НСП 1% [08:55:00]line > о реализуемом товаре [08:55:00]line ОКРУГЛЕНИЕ: -0.34 [08:55:00]line ИТОГО: 905.00 [08:55:00]line Внесено: 905.00 [08:55:00]line СДАЧА: 0.00 [08:55:00]line НСП 1% : 8.01 [08:55:00]line НДС 12% : 96.14 [08:55:00]line Наличными: 905.00 [08:55:00]line Безнал.: 0.00 [08:55:00]line Место: АЗС № 47 "Партнер Нефть" [08:55:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [08:55:00]line СНО: Общий режим [08:55:00]line Чек 59 14.04.2024 08:54 [08:55:00]line Смена: 357 ФФД: 1.0 [08:55:00]line ЗНМ: 0300000138 [08:55:00]line РНМ: 0000000000094237 [08:55:00]line Версия ККМ: 001 [08:55:00]line ФМ: 0000000000875019 [08:55:00]line ФД: 112160 [08:55:00]line ФПД: 81612662189313 [08:55:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T085459&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112160&fm=81612662189313&tin=02508201610067®Number=0000000000094237&sum=90500 [08:55:00]OFD Sender: Processing packet 112160 [packets to send 71, broken 70] [08:55:00]ProducePacketName [08:55:00]name=ofd_packets/00112160 [08:55:00]OFD Sender: To server: pG, [08:55:00]CommunicateWithHost lk.salyk.kg:30040 [08:55:00]ConnectInit lk.salyk.kg [08:55:00]written 0, free lines is 4095 [08:55:00]Connected sock=10 [08:55:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5F 91 07 01 FE AC 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 00 37 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A6 61 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 61 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 21 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 25 00 00 00 00 07 04 06 00 84 61 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 E3 99 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B6 01 00 35 04 06 00 4A 39 ED BD 2D 01 68 05 26 9F 37 D7 B0 56 [08:55:01]Write to MH i2c: 01 00 00 BD 01 BE [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: 01 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: 01 07 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: 01 07 00 BD 01 00 00 00 00 00 D2 0C A3 [08:55:01]RasterBufferAndPrint [08:55:01]line [08:55:01]line [08:55:01]line [08:55:01]line [08:55:01]line [08:55:01]written 0, free lines is 3290 [08:55:01]MH_Cut [08:55:01]Write to MH i2c: D1 01 00 C4 01 01 97 [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: D1 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: D1 01 00 [08:55:01]MH_I2C_Read... [08:55:01]Read from MH i2c: D1 01 00 C4 01 00 96 [08:55:01]Write to MH i2c: 01 00 00 C5 01 C6 [08:55:01]Write i2c OK [08:55:01]MH_I2C_Read... [08:55:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 29 69 47 00 51 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B6 01 00 F4 03 04 00 6F 41 1B 66 B6 04 01 00 00 39 36 5D 70 9D 2E 92 26 [08:55:01]CommunicateWithHost err = 0 [08:55:01]CheckOFDResponse [08:55:01]1017 (14) - 77093643461234 [08:55:01]1041 (16) - 0000000000875019 [08:55:01]1040 (4) - 112160 [08:55:01]1012 (4) - 14.04.2024 02:37 [08:55:01]1206 (1) - 0 [08:55:01]OFD Sender: Remove packet 112160 [08:55:01]ProducePacketName [08:55:01]name=ofd_packets/00112160 [08:55:01]NVStorageDeleteData [08:55:01]OFD Sender: No OFD packet to send [08:55:01]*** Cut start [08:55:01]*** Partial cut [08:55:01]*** CUTSNS_PIN = 1 [08:55:01]*** CUTSNS_PIN = 0 [08:55:02]*** Brake cut motor [08:55:02]Read from MH i2c: 01 [08:55:02]MH_I2C_Read... [08:55:02]*** Stop cut motor [08:55:02]*** Cut end [08:55:02]Read from MH i2c: 01 07 00 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: 01 07 00 C5 01 00 00 00 00 00 FF 0F DB [08:55:02]process_action close_receipt done [08:55:02]requested_data is exist [08:55:02]produce_requested_data [08:55:02]requested_item fm.sn is exist - process it [08:55:02]wFMCommunicate request_size=4 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 11 00 00 [08:55:02]Write to MH i2c: E2 08 00 C6 01 80 11 00 00 00 00 00 00 41 [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:02]Read from MH i2c: E2 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 17 00 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 17 00 C6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 92 [08:55:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [08:55:02]wFMCommunicate OK [08:55:02]requested_item fd.num is exist - process it [08:55:02]SAM_PROTO_GetFieldsCounters [08:55:02]wFMCommunicate request_size=4 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 13 00 00 [08:55:02]Write to MH i2c: E2 08 00 C7 01 80 13 00 00 00 00 00 00 44 [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:02]Read from MH i2c: E2 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 62 00 [08:55:02]MH_I2C_Read... [08:55:02]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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 20 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [08:55:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 20 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:02]wFMCommunicate OK [08:55:02]SAM_PROTO_GetFieldsCounters done [08:55:02]requested_item shift.num is exist - process it [08:55:02]requested_item shift.opened is exist - process it [08:55:02]req_shift_opened [08:55:02]FM_GetShiftState [08:55:02]SAM_PROTO_GetShiftState [08:55:02]wFMCommunicate request_size=4 [08:55:02]MH_SAM_APDU [08:55:02]CAPDU: 80 13 01 00 [08:55:02]Write to MH i2c: E2 08 00 C8 01 80 13 01 00 00 00 00 00 46 [08:55:02]Write i2c OK [08:55:02]MH_I2C_Read... [08:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:02]Read from MH i2c: E2 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 0E 00 [08:55:02]MH_I2C_Read... [08:55:02]Read from MH i2c: E2 0E 00 C8 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DE [08:55:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [08:55:02]wFMCommunicate OK [08:55:02]SAM_PROTO_GetShiftState done [08:55:02]FM_GetShiftState done [08:55:02]req_shift_opened done [08:55:02]requested_item shift.open_date is exist - process it [08:55:02]req_shift_open_date [08:55:02]req_shift_open_date done [08:55:02]produce_requested_data done [08:55:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112160,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [08:55:02]process_action_free close_receipt [08:55:02]json_value_free [08:55:02]json_value_free done [08:55:02]process_json_proto returns [08:55:02]Send response to host [08:55:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112160,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [08:55:02]free response buf [08:55:02]execute_script done [08:55:02]execute_script returns [08:55:02]free content buf [08:55:02]Sock 8.Close socket [08:55:02]Sock 8.Thread stoped [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:46]OFD Sender: No OFD packet to send [08:57:51]OFD Sender: No OFD packet to send [08:57:56]OFD Sender: No OFD packet to send [08:58:01]OFD Sender: No OFD packet to send [08:58:06]OFD Sender: No OFD packet to send [08:58:11]OFD Sender: No OFD packet to send [08:58:16]OFD Sender: No OFD packet to send [08:58:21]OFD Sender: No OFD packet to send [08:58:26]OFD Sender: No OFD packet to send [08:58:31]OFD Sender: No OFD packet to send [08:58:36]OFD Sender: No OFD packet to send [08:58:41]OFD Sender: No OFD packet to send [08:58:46]OFD Sender: No OFD packet to send [08:58:51]OFD Sender: No OFD packet to send [08:58:56]OFD Sender: No OFD packet to send [08:59:01]OFD Sender: No OFD packet to send [08:59:06]OFD Sender: No OFD packet to send [08:59:11]OFD Sender: No OFD packet to send [08:59:16]OFD Sender: No OFD packet to send [08:59:21]OFD Sender: No OFD packet to send [08:59:26]OFD Sender: No OFD packet to send [08:59:31]OFD Sender: No OFD packet to send [08:59:36]OFD Sender: No OFD packet to send [08:59:41]OFD Sender: No OFD packet to send [08:59:46]OFD Sender: No OFD packet to send [08:59:51]OFD Sender: No OFD packet to send [08:59:56]OFD Sender: No OFD packet to send [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:51]OFD Sender: No OFD packet to send [09:00:56]OFD Sender: No OFD packet to send [09:01:01]OFD Sender: No OFD packet to send [09:01:06]OFD Sender: No OFD packet to send [09:01:11]OFD Sender: No OFD packet to send [09:01:16]OFD Sender: No OFD packet to send [09:01:21]OFD Sender: No OFD packet to send [09:01:26]OFD Sender: No OFD packet to send [09:01:31]OFD Sender: No OFD packet to send [09:01:36]OFD Sender: No OFD packet to send [09:01:41]OFD Sender: No OFD packet to send [09:01:46]OFD Sender: No OFD packet to send [09:01:51]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03:57]OFD Sender: No OFD packet to send [09:04:02]OFD Sender: No OFD packet to send [09:04:07]OFD Sender: No OFD packet to send [09:04:12]OFD Sender: No OFD packet to send [09:04:17]OFD Sender: No OFD packet to send [09:04:22]OFD Sender: No OFD packet to send [09:04:27]OFD Sender: No OFD packet to send [09:04:32]OFD Sender: No OFD packet to send [09:04:37]OFD Sender: No OFD packet to send [09:04:42]OFD Sender: No OFD packet to send [09:04:47]OFD Sender: No OFD packet to send [09:04:52]OFD Sender: No OFD packet to send [09:04:57]OFD Sender: No OFD packet to send [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [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:33]accept exits with 9 [09:06:33]New connection [09:06:33]New thread 3067243876 created [09:06:33]Thread 3067100516 joined [09:06:33]Waiting for new connection... [09:06:33] Sock 9.Parse request [09:06:33]Sock 9.Check first char [09:06:33]Sock 9.First char is OK [09:06:33]request: POST /json_proto HTTP/1.0 [09:06:33]Method: POST [09:06:33]URL: /json_proto [09:06:33]Method is POST - this is cgi request [09:06:33]url: /json_proto [09:06:33]query_string will be loaded in cgi processing [09:06:33]execute_cgi json_proto POST (null) [09:06:33]execute_cgi path=json_proto method=POST [09:06:33]POST find Content-Length [09:06:33]Host: 172.17.96.197:8080 [09:06:33]Content-Length: 674 [09:06:33]Content-Type: application/json [09:06:33] [09:06:33]POST finish read [09:06:33]Found Content-Length = 674 [09:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48478", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:06:33]execute_script... [09:06: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)48478", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:06:33]POST & json_proto [09:06:33]process_json_proto [09:06:33]json parsed OK: [09:06:33]protocol is kg_v1.0 [09:06:33]action value=close_receipt [09:06:33]process_action close_receipt [09:06:33]cmd_close_receipt [09:06:33]MH_GetDate [09:06:33]Write to MH i2c: F0 00 00 C9 01 B9 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: F0 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: F0 09 00 [09:06:33]MH_I2C_Read... [09:06:33]Read from MH i2c: F0 09 00 C9 01 00 9A 9C 1B 66 E0 85 7F 64 C1 [09:06:33]GetLastDocTimeStamp 1713084899 [09:06:33]current date 1713085594 [09:06:33]FM_GetShiftState [09:06:33]SAM_PROTO_GetShiftState [09:06:33]wFMCommunicate request_size=4 [09:06:33]MH_SAM_APDU [09:06:33]CAPDU: 80 13 01 00 [09:06:33]Write to MH i2c: E2 08 00 CA 01 80 13 01 00 00 00 00 00 48 [09:06:33]Write i2c OK [09:06:33]MH_I2C_Read... [09:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:34]Read from MH i2c: E2 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 0E 00 [09:06:34]MH_I2C_Read... [09:06:34]Read from MH i2c: E2 0E 00 CA 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E0 [09:06:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:06:34]wFMCommunicate OK [09:06:34]SAM_PROTO_GetShiftState done [09:06:34]FM_GetShiftState done [09:06:34]opened in 1713054696 [09:06:34]opened+sec_in_day 1713141096 [09:06:34]quantity*price = 100039 [09:06:34]sum+1 = 100041 [09:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 60 14.04.2024 09:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112161 ФПД: 176356306502740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T090634&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112161&fm=176356306502740&tin=02508201610067®Number=0000000000094237&sum=100000 [09:06:35]StoreToDocumentArchive [09:06:35]shift 357 fd 112161 [09:06:35]save to /storage/0357/doc_00112161 [09:06:35]save last doc name /storage/0357/doc_00112161 to /storage/kkm_last_doc_name [09:06:35]save OK [09:06:35]Clear old archive folders... [09:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:06:35]tlvbuf is B6DEF7D0 [09:06:35]SAM_PROTO_ClearQueue [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 09 00 00 [09:06:35]Write to MH i2c: E2 08 00 D7 01 80 09 00 00 00 00 00 00 4A [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 D7 01 00 90 00 4C [09:06:35]RAPDU: 90 00 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_ClearQueue done [09:06:35]KKMCreateOFDPacket [09:06:35]OFDProtocolAddRootSTLVToBuf [09:06:35]FM_MakeSignedData [09:06:35]FM_MakeSignedData [09:06:35]SAM_PROTO_SignData [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 0D 01 02 [09:06:35]Write to MH i2c: E2 08 00 D8 01 80 0D 01 02 00 00 00 00 52 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:06:35]Read from MH i2c: E2 03 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 D8 01 00 90 00 4D [09:06:35]RAPDU: 90 00 [09:06:35]wFMCommunicate OK [09:06:35]wFMCommunicate request_size=255 [09:06:35]MH_SAM_APDU [09:06: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A 9C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B6 01 00 35 04 06 00 [09:06:35]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A 9C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B6 01 00 35 04 06 00 00 00 94 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 D9 01 00 90 00 4E [09:06:35]RAPDU: 90 00 [09:06:35]wFMCommunicate OK [09:06:35]wFMCommunicate request_size=11 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 0D 02 02 06 A0 65 27 00 C4 54 [09:06:35]Write to MH i2c: E2 0E 00 DA 01 80 0D 02 02 06 00 A0 65 27 00 C4 54 00 00 A5 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 03 00 DA 01 00 90 00 4F [09:06:35]RAPDU: 90 00 [09:06:35]wFMCommunicate OK [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 0D 03 02 [09:06:35]Write to MH i2c: E2 08 00 DB 01 80 0D 03 02 00 00 00 00 57 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0B 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 0B 00 DB 01 00 3D AA 2D A4 28 21 ED 48 90 00 8E [09:06:35]RAPDU: 3D AA 2D A4 28 21 ED 48 90 00 [09:06:35]wFMCommunicate OK [09:06:35]SAM_PROTO_SignData done [09:06:35]FM_MakeSignedData done [09:06:35]CreateOFDProtocolMessage [09:06:35]wFMCommunicate request_size=4 [09:06:35]MH_SAM_APDU [09:06:35]CAPDU: 80 11 00 00 [09:06:35]Write to MH i2c: E2 08 00 DC 01 80 11 00 00 00 00 00 00 57 [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:35]Read from MH i2c: E2 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: E2 17 00 DC 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A8 [09:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:06:35]wFMCommunicate OK [09:06:35]CreateOFDProtocolMessage done [09:06:35]OFDSenderStorePacket 112161 [09:06:35]StoreOFDPacket docnum=112161 [09:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 A8 DA 08 01 D8 93 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A 9C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B6 01 00 35 04 06 00 A0 65 27 00 C4 54 3D AA 2D A4 28 21 ED 48 [09:06:35]CheckFolder [09:06:35]dirname=/storage/ofd_packets [09:06:35]CheckFolder done [09:06:35]ProducePacketName [09:06:35]name=ofd_packets/00112161 [09:06:35]NVStorageSaveData ofd_packets/00112161 [09:06:35]File name is /storage/ofd_packets/00112161 [09:06:35]Write 302 bytes [09:06:35]NVStorageSaveData done [09:06:35]OFDSenderStorePacket done [09:06:35]KKMCreateOFDPacket done [09:06:35]NVStorageSaveData kkm_last_timestamp [09:06:35]File name is /storage/kkm_last_timestamp [09:06:35]Write 4 bytes [09:06:35]NVStorageSaveData done [09:06:35]ExternCall_PrintAddStr [09:06:35]wPrintStart [09:06:35]Write to MH i2c: 01 00 00 DD 01 DE [09:06:35]Write i2c OK [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 [09:06:35]MH_I2C_Read... [09:06:35]Read from MH i2c: 01 07 00 DD 01 00 00 00 00 00 FF 0F F3 [09:06:35]RasterBufferAndPrint [09:06:35]line Счет N : (1)48478 [09:06:35]line ИНН: 02508201610067 [09:06:35]line Контрольно-Кассовый Чек [09:06:35]line ПРОДАЖА [09:06:35]line ТРК (МРК, ГНК) : 31 [09:06:35]line Товар: 2710124130 [09:06:35]line SUPER 92-К-5 [09:06:35]line 15.320 * 65.30 [09:06:35]line = 1000.40 [09:06:35]line НДС 12% НСП 1% [09:06:35]line > о реализуемом товаре [09:06:35]line ОКРУГЛЕНИЕ: -0.40 [09:06:35]line ИТОГО: 1000.00 [09:06:35]line Внесено: 1000.00 [09:06:35]line СДАЧА: 0.00 [09:06:35]line НСП 1% : 8.85 [09:06:35]line НДС 12% : 106.24 [09:06:35]line Наличными: 1000.00 [09:06:35]line Безнал.: 0.00 [09:06:35]line Место: АЗС № 47 "Партнер Нефть" [09:06:35]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:06:35]line СНО: Общий режим [09:06:35]line Чек 60 14.04.2024 09:06 [09:06:35]line Смена: 357 ФФД: 1.0 [09:06:35]line ЗНМ: 0300000138 [09:06:35]line РНМ: 0000000000094237 [09:06:35]line Версия ККМ: 001 [09:06:35]line ФМ: 0000000000875019 [09:06:35]line ФД: 112161 [09:06:35]line ФПД: 176356306502740 [09:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T090634&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112161&fm=176356306502740&tin=02508201610067®Number=0000000000094237&sum=100000 [09:06:35]OFD Sender: Processing packet 112161 [packets to send 71, broken 70] [09:06:35]ProducePacketName [09:06:35]name=ofd_packets/00112161 [09:06:35]OFD Sender: To server: pG, [09:06:35]CommunicateWithHost lk.salyk.kg:30040 [09:06:35]ConnectInit lk.salyk.kg [09:06:35]written 0, free lines is 4095 [09:06:36]Connected sock=10 [09:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 A8 DA 08 01 D8 93 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9A 9C 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B6 01 00 35 04 06 00 A0 65 27 00 C4 54 3D AA 2D A4 28 21 ED 48 [09:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 22 40 47 00 87 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B6 01 00 F4 03 04 00 26 44 1B 66 B6 04 01 00 00 B9 50 61 18 48 27 78 4C [09:06:36]CommunicateWithHost err = 0 [09:06:36]CheckOFDResponse [09:06:36]1017 (14) - 77093643461234 [09:06:36]1041 (16) - 0000000000875019 [09:06:36]1040 (4) - 112161 [09:06:36]1012 (4) - 14.04.2024 02:49 [09:06:36]1206 (1) - 0 [09:06:36]OFD Sender: Remove packet 112161 [09:06:36]ProducePacketName [09:06:36]name=ofd_packets/00112161 [09:06:36]NVStorageDeleteData [09:06:36]Write to MH i2c: 01 00 00 08 02 0A [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: 01 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: 01 07 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: 01 07 00 08 02 00 00 00 00 00 D6 0C F3 [09:06:36]RasterBufferAndPrint [09:06:36]line [09:06:36]line [09:06:36]line [09:06:36]line [09:06:36]line [09:06:36]written 0, free lines is 3293 [09:06:36]MH_Cut [09:06:36]Write to MH i2c: D1 01 00 0F 02 01 E3 [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: D1 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: D1 01 00 [09:06:36]MH_I2C_Read... [09:06:36]Read from MH i2c: D1 01 00 0F 02 00 E2 [09:06:36]Write to MH i2c: 01 00 00 10 02 12 [09:06:36]Write i2c OK [09:06:36]MH_I2C_Read... [09:06:36]OFD Sender: No OFD packet to send [09:06:37]*** Cut start [09:06:37]*** Partial cut [09:06:37]*** CUTSNS_PIN = 1 [09:06:37]*** CUTSNS_PIN = 0 [09:06:37]*** Brake cut motor [09:06:37]Read from MH i2c: 01 [09:06:37]MH_I2C_Read... [09:06:37]*** Stop cut motor [09:06:37]*** Cut end [09:06:37]Read from MH i2c: 01 07 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: 01 07 00 10 02 00 00 00 00 00 FF 0F 27 [09:06:37]process_action close_receipt done [09:06:37]requested_data is exist [09:06:37]produce_requested_data [09:06:37]requested_item fm.sn is exist - process it [09:06:37]wFMCommunicate request_size=4 [09:06:37]MH_SAM_APDU [09:06:37]CAPDU: 80 11 00 00 [09:06:37]Write to MH i2c: E2 08 00 11 02 80 11 00 00 00 00 00 00 8D [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:06:37]Read from MH i2c: E2 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 17 00 [09:06:37]MH_I2C_Read... [09:06:37]Read from MH i2c: E2 17 00 11 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DE [09:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:06:37]wFMCommunicate OK [09:06:37]requested_item fd.num is exist - process it [09:06:37]SAM_PROTO_GetFieldsCounters [09:06:37]wFMCommunicate request_size=4 [09:06:37]MH_SAM_APDU [09:06:37]CAPDU: 80 13 00 00 [09:06:37]Write to MH i2c: E2 08 00 12 02 80 13 00 00 00 00 00 00 90 [09:06:37]Write i2c OK [09:06:37]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 62 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 62 00 12 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 21 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [09:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 21 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_GetFieldsCounters done [09:06:38]requested_item shift.num is exist - process it [09:06:38]requested_item shift.opened is exist - process it [09:06:38]req_shift_opened [09:06:38]FM_GetShiftState [09:06:38]SAM_PROTO_GetShiftState [09:06:38]wFMCommunicate request_size=4 [09:06:38]MH_SAM_APDU [09:06:38]CAPDU: 80 13 01 00 [09:06:38]Write to MH i2c: E2 08 00 13 02 80 13 01 00 00 00 00 00 92 [09:06:38]Write i2c OK [09:06:38]MH_I2C_Read... [09:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:06:38]Read from MH i2c: E2 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0E 00 [09:06:38]MH_I2C_Read... [09:06:38]Read from MH i2c: E2 0E 00 13 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2A [09:06:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:06:38]wFMCommunicate OK [09:06:38]SAM_PROTO_GetShiftState done [09:06:38]FM_GetShiftState done [09:06:38]req_shift_opened done [09:06:38]requested_item shift.open_date is exist - process it [09:06:38]req_shift_open_date [09:06:38]req_shift_open_date done [09:06:38]produce_requested_data done [09:06:38]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112161,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:06:38]process_action_free close_receipt [09:06:38]json_value_free [09:06:38]json_value_free done [09:06:38]process_json_proto returns [09:06:38]Send response to host [09:06:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112161,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:06:38]free response buf [09:06:38]execute_script done [09:06:38]execute_script returns [09:06:38]free content buf [09:06:38]Sock 9.Close socket [09:06:38]Sock 9.Thread stoped [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:46]OFD Sender: No OFD packet to send [09:07: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:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:32]OFD Sender: No OFD packet to send [09:14:37]OFD Sender: No OFD packet to send [09:14:42]OFD Sender: No OFD packet to send [09:14:47]OFD Sender: No OFD packet to send [09:14:52]OFD Sender: No OFD packet to send [09:14:57]OFD Sender: No OFD packet to send [09:15:02]OFD Sender: No OFD packet to send [09:15:07]OFD Sender: No OFD packet to send [09:15:09]accept exits with 8 [09:15:09]New connection [09:15:09]New thread 3067100516 created [09:15:09]Thread 3067243876 joined [09:15:09]Waiting for new connection... [09:15:09] Sock 8.Parse request [09:15:09]Sock 8.Check first char [09:15:09]Sock 8.First char is OK [09:15:09]request: POST /json_proto HTTP/1.0 [09:15:09]Method: POST [09:15:09]URL: /json_proto [09:15:09]Method is POST - this is cgi request [09:15:09]url: /json_proto [09:15:09]query_string will be loaded in cgi processing [09:15:09]execute_cgi json_proto POST (null) [09:15:09]execute_cgi path=json_proto method=POST [09:15:09]POST find Content-Length [09:15:09]Host: 172.17.96.197:8080 [09:15:09]Content-Length: 819 [09:15:09]Content-Type: application/json [09:15:09] [09:15:09]POST finish read [09:15:09]Found Content-Length = 819 [09:15:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 13.770, "sum" : 450.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:09]execute_script... [09:15: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)48479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 13.770, "sum" : 450.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 450.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:09]POST & json_proto [09:15:09]process_json_proto [09:15:09]json parsed OK: [09:15:09]protocol is kg_v1.0 [09:15:09]action value=close_receipt [09:15:09]process_action close_receipt [09:15:09]cmd_close_receipt [09:15:09]MH_GetDate [09:15:09]Write to MH i2c: F0 00 00 14 02 05 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 09 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: F0 09 00 14 02 00 9E 9E 1B 66 E0 85 7F 64 13 [09:15:09]GetLastDocTimeStamp 1713085594 [09:15:09]current date 1713086110 [09:15:09]FM_GetShiftState [09:15:09]SAM_PROTO_GetShiftState [09:15:09]wFMCommunicate request_size=4 [09:15:09]MH_SAM_APDU [09:15:09]CAPDU: 80 13 01 00 [09:15:09]Write to MH i2c: E2 08 00 15 02 80 13 01 00 00 00 00 00 94 [09:15:09]Write i2c OK [09:15:09]MH_I2C_Read... [09:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:09]Read from MH i2c: E2 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 [09:15:09]MH_I2C_Read... [09:15:09]Read from MH i2c: E2 0E 00 15 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2C [09:15:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:15:09]wFMCommunicate OK [09:15:09]SAM_PROTO_GetShiftState done [09:15:09]FM_GetShiftState done [09:15:09]opened in 1713054696 [09:15:09]opened+sec_in_day 1713141096 [09:15:09]quantity*price = 45027 [09:15:09]sum+1 = 45029 [09:15:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.28 НСП 1% : 3.98 НДС 12% : 47.82 Наличными: 0.00 Безнал.: 450.28 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 61 14.04.2024 09:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112162 ФПД: 77814617643598 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091510&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112162&fm=77814617643598&tin=02508201610067®Number=0000000000094237&sum=45028 [09:15:10]StoreToDocumentArchive [09:15:10]shift 357 fd 112162 [09:15:10]save to /storage/0357/doc_00112162 [09:15:10]save last doc name /storage/0357/doc_00112162 to /storage/kkm_last_doc_name [09:15:10]save OK [09:15:10]Clear old archive folders... [09:15:10]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:15:10]tlvbuf is 0170D0F0 [09:15:10]SAM_PROTO_ClearQueue [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 09 00 00 [09:15:10]Write to MH i2c: E2 08 00 22 02 80 09 00 00 00 00 00 00 96 [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 22 02 00 90 00 98 [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]SAM_PROTO_ClearQueue done [09:15:10]KKMCreateOFDPacket [09:15:10]OFDProtocolAddRootSTLVToBuf [09:15:10]FM_MakeSignedData [09:15:10]FM_MakeSignedData [09:15:10]SAM_PROTO_SignData [09:15:10]wFMCommunicate request_size=4 [09:15:10]MH_SAM_APDU [09:15:10]CAPDU: 80 0D 01 02 [09:15:10]Write to MH i2c: E2 08 00 23 02 80 0D 01 02 00 00 00 00 9E [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:10]Read from MH i2c: E2 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 [09:15:10]MH_I2C_Read... [09:15:10]Read from MH i2c: E2 03 00 23 02 00 90 00 99 [09:15:10]RAPDU: 90 00 [09:15:10]wFMCommunicate OK [09:15:10]wFMCommunicate request_size=255 [09:15:10]MH_SAM_APDU [09:15: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 E4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B6 01 00 35 04 06 00 46 C5 [09:15:10]Write to MH i2c: E2 02 01 24 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 E4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B6 01 00 35 04 06 00 46 C5 00 00 6A [09:15:10]Write i2c OK [09:15:10]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 24 02 00 90 00 9A [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]wFMCommunicate request_size=9 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 02 02 04 A0 A4 9A 4E [09:15:11]Write to MH i2c: E2 0C 00 25 02 80 0D 02 02 04 00 A0 A4 9A 4E 00 00 D5 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 03 00 25 02 00 90 00 9B [09:15:11]RAPDU: 90 00 [09:15:11]wFMCommunicate OK [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 0D 03 02 [09:15:11]Write to MH i2c: E2 08 00 26 02 80 0D 03 02 00 00 00 00 A3 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0B 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 0B 00 26 02 00 BE 03 55 E1 00 EE FC 87 90 00 0C [09:15:11]RAPDU: BE 03 55 E1 00 EE FC 87 90 00 [09:15:11]wFMCommunicate OK [09:15:11]SAM_PROTO_SignData done [09:15:11]FM_MakeSignedData done [09:15:11]CreateOFDProtocolMessage [09:15:11]wFMCommunicate request_size=4 [09:15:11]MH_SAM_APDU [09:15:11]CAPDU: 80 11 00 00 [09:15:11]Write to MH i2c: E2 08 00 27 02 80 11 00 00 00 00 00 00 A3 [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:11]Read from MH i2c: E2 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 17 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: E2 17 00 27 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F4 [09:15:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:15:11]wFMCommunicate OK [09:15:11]CreateOFDProtocolMessage done [09:15:11]OFDSenderStorePacket 112162 [09:15:11]StoreOFDPacket docnum=112162 [09:15:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 DD C9 06 01 88 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 E4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B6 01 00 35 04 06 00 46 C5 A0 A4 9A 4E BE 03 55 E1 00 EE FC 87 [09:15:11]CheckFolder [09:15:11]dirname=/storage/ofd_packets [09:15:11]CheckFolder done [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00112162 [09:15:11]NVStorageSaveData ofd_packets/00112162 [09:15:11]File name is /storage/ofd_packets/00112162 [09:15:11]Write 300 bytes [09:15:11]NVStorageSaveData done [09:15:11]OFDSenderStorePacket done [09:15:11]KKMCreateOFDPacket done [09:15:11]NVStorageSaveData kkm_last_timestamp [09:15:11]File name is /storage/kkm_last_timestamp [09:15:11]Write 4 bytes [09:15:11]NVStorageSaveData done [09:15:11]ExternCall_PrintAddStr [09:15:11]wPrintStart [09:15:11]Write to MH i2c: 01 00 00 28 02 2A [09:15:11]Write i2c OK [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 [09:15:11]MH_I2C_Read... [09:15:11]Read from MH i2c: 01 07 00 28 02 00 00 00 00 00 FF 0F 3F [09:15:11]RasterBufferAndPrint [09:15:11]line Счет N : (1)48479 [09:15:11]line ИНН: 02508201610067 [09:15:11]line Контрольно-Кассовый Чек [09:15:11]line ПРОДАЖА [09:15:11]line ТРК (МРК, ГНК) : 72 [09:15:11]line Товар: 2711190000 [09:15:11]line ГАЗ-К-5 [09:15:11]line 13.770 * 32.70 [09:15:11]line = 450.28 [09:15:11]line НДС 12% НСП 1% [09:15:11]line > о реализуемом товаре [09:15:11]line ИТОГО: 450.28 [09:15:11]line НСП 1% : 3.98 [09:15:11]line НДС 12% : 47.82 [09:15:11]line Наличными: 0.00 [09:15:11]line Безнал.: 450.28 [09:15:11]line Место: АЗС № 47 "Партнер Нефть" [09:15:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:15:11]line СНО: Общий режим [09:15:11]line Чек 61 14.04.2024 09:15 [09:15:11]line Смена: 357 ФФД: 1.0 [09:15:11]line ЗНМ: 0300000138 [09:15:11]line РНМ: 0000000000094237 [09:15:11]line Версия ККМ: 001 [09:15:11]line Платежная система: Бакай Банк [09:15:11]line ФМ: 0000000000875019 [09:15:11]line ФД: 112162 [09:15:11]line ФПД: 77814617643598 [09:15:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091510&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112162&fm=77814617643598&tin=02508201610067®Number=0000000000094237&sum=45028 [09:15:11]OFD Sender: Processing packet 112162 [packets to send 71, broken 70] [09:15:11]ProducePacketName [09:15:11]name=ofd_packets/00112162 [09:15:11]OFD Sender: To server: pG, [09:15:11]CommunicateWithHost lk.salyk.kg:30040 [09:15:11]ConnectInit lk.salyk.kg [09:15:11]written 0, free lines is 4095 [09:15:11]Connected sock=10 [09:15:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 DD C9 06 01 88 92 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 CA 35 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 E4 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 AE 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 9E 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B6 01 00 35 04 06 00 46 C5 A0 A4 9A 4E BE 03 55 E1 00 EE FC 87 [09:15:12]Write to MH i2c: 01 00 00 52 02 54 [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 07 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: 01 07 00 52 02 00 00 00 00 00 E8 0C 4F [09:15:12]RasterBufferAndPrint [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]line [09:15:12]written 0, free lines is 3310 [09:15:12]MH_Cut [09:15:12]Write to MH i2c: D1 01 00 59 02 01 2D [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 01 00 [09:15:12]MH_I2C_Read... [09:15:12]Read from MH i2c: D1 01 00 59 02 00 2C [09:15:12]Write to MH i2c: 01 00 00 5A 02 5C [09:15:12]Write i2c OK [09:15:12]MH_I2C_Read... [09:15:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E1 D5 47 00 06 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B6 01 00 F4 03 04 00 2A 46 1B 66 B6 04 01 00 00 8A 37 04 D1 C3 44 96 87 [09:15:12]CommunicateWithHost err = 0 [09:15:12]CheckOFDResponse [09:15:12]1017 (14) - 77093643461234 [09:15:12]1041 (16) - 0000000000875019 [09:15:12]1040 (4) - 112162 [09:15:12]1012 (4) - 14.04.2024 02:57 [09:15:12]1206 (1) - 0 [09:15:12]OFD Sender: Remove packet 112162 [09:15:12]ProducePacketName [09:15:12]name=ofd_packets/00112162 [09:15:12]NVStorageDeleteData [09:15:12]OFD Sender: No OFD packet to send [09:15:12]*** Cut start [09:15:12]*** Partial cut [09:15:12]*** CUTSNS_PIN = 1 [09:15:12]*** CUTSNS_PIN = 0 [09:15:13]*** Brake cut motor [09:15:13]Read from MH i2c: 01 [09:15:13]MH_I2C_Read... [09:15:13]*** Stop cut motor [09:15:13]*** Cut end [09:15:13]Read from MH i2c: 01 07 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: 01 07 00 5A 02 00 00 00 00 00 FF 0F 71 [09:15:13]process_action close_receipt done [09:15:13]requested_data is exist [09:15:13]produce_requested_data [09:15:13]requested_item fm.sn is exist - process it [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 11 00 00 [09:15:13]Write to MH i2c: E2 08 00 5B 02 80 11 00 00 00 00 00 00 D7 [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 17 00 5B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [09:15:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:15:13]wFMCommunicate OK [09:15:13]requested_item fd.num is exist - process it [09:15:13]SAM_PROTO_GetFieldsCounters [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 00 00 [09:15:13]Write to MH i2c: E2 08 00 5C 02 80 13 00 00 00 00 00 00 DA [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 62 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 62 00 5C 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 22 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [09:15:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 22 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetFieldsCounters done [09:15:13]requested_item shift.num is exist - process it [09:15:13]requested_item shift.opened is exist - process it [09:15:13]req_shift_opened [09:15:13]FM_GetShiftState [09:15:13]SAM_PROTO_GetShiftState [09:15:13]wFMCommunicate request_size=4 [09:15:13]MH_SAM_APDU [09:15:13]CAPDU: 80 13 01 00 [09:15:13]Write to MH i2c: E2 08 00 5D 02 80 13 01 00 00 00 00 00 DC [09:15:13]Write i2c OK [09:15:13]MH_I2C_Read... [09:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:13]Read from MH i2c: E2 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 [09:15:13]MH_I2C_Read... [09:15:13]Read from MH i2c: E2 0E 00 5D 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [09:15:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:15:13]wFMCommunicate OK [09:15:13]SAM_PROTO_GetShiftState done [09:15:13]FM_GetShiftState done [09:15:13]req_shift_opened done [09:15:13]requested_item shift.open_date is exist - process it [09:15:13]req_shift_open_date [09:15:13]req_shift_open_date done [09:15:13]produce_requested_data done [09:15:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112162,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:15:13]process_action_free close_receipt [09:15:13]json_value_free [09:15:13]json_value_free done [09:15:13]process_json_proto returns [09:15:13]Send response to host [09:15:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112162,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:15:13]free response buf [09:15:13]execute_script done [09:15:13]execute_script returns [09:15:13]free content buf [09:15:13]Sock 8.Close socket [09:15:13]Sock 8.Thread stoped [09:15:17]OFD Sender: No OFD packet to send [09:15:22]OFD Sender: No OFD packet to send [09:15:27]OFD Sender: No OFD packet to send [09:15:32]OFD Sender: No OFD packet to send [09:15:37]OFD Sender: No OFD packet to send [09:15:42]OFD Sender: No OFD packet to send [09:15:47]OFD Sender: No OFD packet to send [09:15:52]OFD Sender: No OFD packet to send [09:15:57]OFD Sender: No OFD packet to send [09:16:02]OFD Sender: No OFD packet to send [09:16:04]accept exits with 9 [09:16:04]New connection [09:16:04]New thread 3067243876 created [09:16:04]Thread 3067100516 joined [09:16:04]Waiting for new connection... [09:16:04] Sock 9.Parse request [09:16:04]Sock 9.Check first char [09:16:04]Sock 9.First char is OK [09:16:04]request: POST /json_proto HTTP/1.0 [09:16:04]Method: POST [09:16:04]URL: /json_proto [09:16:04]Method is POST - this is cgi request [09:16:04]url: /json_proto [09:16:04]query_string will be loaded in cgi processing [09:16:04]execute_cgi json_proto POST (null) [09:16:04]execute_cgi path=json_proto method=POST [09:16:04]POST find Content-Length [09:16:04]Host: 172.17.96.197:8080 [09:16:04]Content-Length: 676 [09:16:04]Content-Type: application/json [09:16:04] [09:16:04]POST finish read [09:16:04]Found Content-Length = 676 [09:16:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48480", "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.30, "quantity" : 4.980, "sum" : 320.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]execute_script... [09:16: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)48480", "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.30, "quantity" : 4.980, "sum" : 320.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:04]POST & json_proto [09:16:04]process_json_proto [09:16:04]json parsed OK: [09:16:04]protocol is kg_v1.0 [09:16:04]action value=close_receipt [09:16:04]process_action close_receipt [09:16:04]cmd_close_receipt [09:16:04]MH_GetDate [09:16:04]Write to MH i2c: F0 00 00 5E 02 4F [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: F0 09 00 5E 02 00 D5 9E 1B 66 E0 85 7F 64 94 [09:16:04]GetLastDocTimeStamp 1713086110 [09:16:04]current date 1713086165 [09:16:04]FM_GetShiftState [09:16:04]SAM_PROTO_GetShiftState [09:16:04]wFMCommunicate request_size=4 [09:16:04]MH_SAM_APDU [09:16:04]CAPDU: 80 13 01 00 [09:16:04]Write to MH i2c: E2 08 00 5F 02 80 13 01 00 00 00 00 00 DE [09:16:04]Write i2c OK [09:16:04]MH_I2C_Read... [09:16:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:04]Read from MH i2c: E2 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: E2 0E 00 [09:16:04]MH_I2C_Read... [09:16:04]Read from MH i2c: E2 0E 00 5F 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [09:16:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:16:04]wFMCommunicate OK [09:16:04]SAM_PROTO_GetShiftState done [09:16:04]FM_GetShiftState done [09:16:04]opened in 1713054696 [09:16:04]opened+sec_in_day 1713141096 [09:16:04]quantity*price = 32021 [09:16:04]sum+1 = 32022 [09:16:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.83 НДС 12% : 34.00 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 62 14.04.2024 09:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112163 ФПД: 26768163327819 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091605&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112163&fm=26768163327819&tin=02508201610067®Number=0000000000094237&sum=32000 [09:16:06]StoreToDocumentArchive [09:16:06]shift 357 fd 112163 [09:16:06]save to /storage/0357/doc_00112163 [09:16:06]save last doc name /storage/0357/doc_00112163 to /storage/kkm_last_doc_name [09:16:06]save OK [09:16:06]Clear old archive folders... [09:16:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:06]tlvbuf is 01787D40 [09:16:06]SAM_PROTO_ClearQueue [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 09 00 00 [09:16:06]Write to MH i2c: E2 08 00 6C 02 80 09 00 00 00 00 00 00 E0 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_ClearQueue done [09:16:06]KKMCreateOFDPacket [09:16:06]OFDProtocolAddRootSTLVToBuf [09:16:06]FM_MakeSignedData [09:16:06]FM_MakeSignedData [09:16:06]SAM_PROTO_SignData [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 01 02 [09:16:06]Write to MH i2c: E2 08 00 6D 02 80 0D 01 02 00 00 00 00 E8 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 6D 02 00 90 00 E3 [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=255 [09:16:06]MH_SAM_APDU [09:16: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 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 D5 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B6 01 00 35 04 06 00 18 [09:16:06]Write to MH i2c: E2 02 01 6E 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 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 D5 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B6 01 00 35 04 06 00 18 00 00 35 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 6E 02 00 90 00 E4 [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=10 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 02 02 05 58 72 DD CF 4B [09:16:06]Write to MH i2c: E2 0D 00 6F 02 80 0D 02 02 05 00 58 72 DD CF 4B 00 00 B6 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 03 00 6F 02 00 90 00 E5 [09:16:06]RAPDU: 90 00 [09:16:06]wFMCommunicate OK [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 0D 03 02 [09:16:06]Write to MH i2c: E2 08 00 70 02 80 0D 03 02 00 00 00 00 ED [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 0B 00 70 02 00 2A 68 B0 5C DD E5 8B AE 90 00 87 [09:16:06]RAPDU: 2A 68 B0 5C DD E5 8B AE 90 00 [09:16:06]wFMCommunicate OK [09:16:06]SAM_PROTO_SignData done [09:16:06]FM_MakeSignedData done [09:16:06]CreateOFDProtocolMessage [09:16:06]wFMCommunicate request_size=4 [09:16:06]MH_SAM_APDU [09:16:06]CAPDU: 80 11 00 00 [09:16:06]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:06]Read from MH i2c: E2 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [09:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:16:06]wFMCommunicate OK [09:16:06]CreateOFDProtocolMessage done [09:16:06]OFDSenderStorePacket 112163 [09:16:06]StoreOFDPacket docnum=112163 [09:16:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 10 78 07 01 CE 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 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 D5 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B6 01 00 35 04 06 00 18 58 72 DD CF 4B 2A 68 B0 5C DD E5 8B AE [09:16:06]CheckFolder [09:16:06]dirname=/storage/ofd_packets [09:16:06]CheckFolder done [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00112163 [09:16:06]NVStorageSaveData ofd_packets/00112163 [09:16:06]File name is /storage/ofd_packets/00112163 [09:16:06]Write 301 bytes [09:16:06]NVStorageSaveData done [09:16:06]OFDSenderStorePacket done [09:16:06]KKMCreateOFDPacket done [09:16:06]NVStorageSaveData kkm_last_timestamp [09:16:06]File name is /storage/kkm_last_timestamp [09:16:06]Write 4 bytes [09:16:06]NVStorageSaveData done [09:16:06]ExternCall_PrintAddStr [09:16:06]wPrintStart [09:16:06]Write to MH i2c: 01 00 00 72 02 74 [09:16:06]Write i2c OK [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 [09:16:06]MH_I2C_Read... [09:16:06]Read from MH i2c: 01 07 00 72 02 00 00 00 00 00 FF 0F 89 [09:16:06]RasterBufferAndPrint [09:16:06]line Счет N : (1)48480 [09:16:06]line ИНН: 02508201610067 [09:16:06]line Контрольно-Кассовый Чек [09:16:06]line ПРОДАЖА [09:16:06]line ТРК (МРК, ГНК) : 32 [09:16:06]line Товар: 2710124130 [09:16:06]line Аи-92-К-5 [09:16:06]line 4.980 * 64.30 [09:16:06]line = 320.21 [09:16:06]line НДС 12% НСП 1% [09:16:06]line > о реализуемом товаре [09:16:06]line ОКРУГЛЕНИЕ: -0.21 [09:16:06]line ИТОГО: 320.00 [09:16:06]line Внесено: 320.00 [09:16:06]line СДАЧА: 0.00 [09:16:06]line НСП 1% : 2.83 [09:16:06]line НДС 12% : 34.00 [09:16:06]line Наличными: 320.00 [09:16:06]line Безнал.: 0.00 [09:16:06]line Место: АЗС № 47 "Партнер Нефть" [09:16:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:16:06]line СНО: Общий режим [09:16:06]line Чек 62 14.04.2024 09:16 [09:16:06]line Смена: 357 ФФД: 1.0 [09:16:06]line ЗНМ: 0300000138 [09:16:06]line РНМ: 0000000000094237 [09:16:06]line Версия ККМ: 001 [09:16:06]line ФМ: 0000000000875019 [09:16:06]line ФД: 112163 [09:16:06]line ФПД: 26768163327819 [09:16:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091605&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112163&fm=26768163327819&tin=02508201610067®Number=0000000000094237&sum=32000 [09:16:06]OFD Sender: Processing packet 112163 [packets to send 71, broken 70] [09:16:06]ProducePacketName [09:16:06]name=ofd_packets/00112163 [09:16:06]OFD Sender: To server: pG, [09:16:06]CommunicateWithHost lk.salyk.kg:30040 [09:16:06]ConnectInit lk.salyk.kg [09:16:06]written 0, free lines is 4095 [09:16:07]Connected sock=10 [09:16:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 10 78 07 01 CE 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 74 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 15 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 0D 00 00 00 00 07 04 06 00 00 7D 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 D5 9E 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B6 01 00 35 04 06 00 18 58 72 DD CF 4B 2A 68 B0 5C DD E5 8B AE [09:16:07]Write to MH i2c: 01 00 00 9D 02 9F [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: 01 07 00 9D 02 00 00 00 00 00 EF 0C A1 [09:16:07]RasterBufferAndPrint [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]line [09:16:07]written 0, free lines is 3317 [09:16:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1D 34 47 00 19 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B6 01 00 F4 03 04 00 61 46 1B 66 B6 04 01 00 00 07 7F D7 13 CB 04 36 85 [09:16:07]CommunicateWithHost err = 0 [09:16:07]CheckOFDResponse [09:16:07]1017 (14) - 77093643461234 [09:16:07]1041 (16) - 0000000000875019 [09:16:07]1040 (4) - 112163 [09:16:07]1012 (4) - 14.04.2024 02:58 [09:16:07]1206 (1) - 0 [09:16:07]OFD Sender: Remove packet 112163 [09:16:07]ProducePacketName [09:16:07]name=ofd_packets/00112163 [09:16:07]NVStorageDeleteData [09:16:07]MH_Cut [09:16:07]Write to MH i2c: D1 01 00 A4 02 01 78 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 [09:16:07]MH_I2C_Read... [09:16:07]Read from MH i2c: D1 01 00 A4 02 00 77 [09:16:07]Write to MH i2c: 01 00 00 A5 02 A7 [09:16:07]Write i2c OK [09:16:07]MH_I2C_Read... [09:16:07]OFD Sender: No OFD packet to send [09:16:08]*** Cut start [09:16:08]*** Partial cut [09:16:08]*** CUTSNS_PIN = 1 [09:16:08]*** CUTSNS_PIN = 0 [09:16:08]*** Brake cut motor [09:16:08]Read from MH i2c: 01 [09:16:08]*** Stop cut motor [09:16:08]*** Cut end [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: 01 07 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: 01 07 00 A5 02 00 00 00 00 00 FF 0F BC [09:16:08]process_action close_receipt done [09:16:08]requested_data is exist [09:16:08]produce_requested_data [09:16:08]requested_item fm.sn is exist - process it [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 11 00 00 [09:16:08]Write to MH i2c: E2 08 00 A6 02 80 11 00 00 00 00 00 00 22 [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:08]Read from MH i2c: E2 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 17 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 17 00 A6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 73 [09:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:16:08]wFMCommunicate OK [09:16:08]requested_item fd.num is exist - process it [09:16:08]SAM_PROTO_GetFieldsCounters [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 13 00 00 [09:16:08]Write to MH i2c: E2 08 00 A7 02 80 13 00 00 00 00 00 00 25 [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:08]Read from MH i2c: E2 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 62 00 [09:16:08]MH_I2C_Read... [09:16:08]Read from MH i2c: E2 62 00 A7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 23 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [09:16:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 23 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:08]wFMCommunicate OK [09:16:08]SAM_PROTO_GetFieldsCounters done [09:16:08]requested_item shift.num is exist - process it [09:16:08]requested_item shift.opened is exist - process it [09:16:08]req_shift_opened [09:16:08]FM_GetShiftState [09:16:08]SAM_PROTO_GetShiftState [09:16:08]wFMCommunicate request_size=4 [09:16:08]MH_SAM_APDU [09:16:08]CAPDU: 80 13 01 00 [09:16:08]Write to MH i2c: E2 08 00 A8 02 80 13 01 00 00 00 00 00 27 [09:16:08]Write i2c OK [09:16:08]MH_I2C_Read... [09:16:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:09]Read from MH i2c: E2 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 [09:16:09]MH_I2C_Read... [09:16:09]Read from MH i2c: E2 0E 00 A8 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BF [09:16:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:16:09]wFMCommunicate OK [09:16:09]SAM_PROTO_GetShiftState done [09:16:09]FM_GetShiftState done [09:16:09]req_shift_opened done [09:16:09]requested_item shift.open_date is exist - process it [09:16:09]req_shift_open_date [09:16:09]req_shift_open_date done [09:16:09]produce_requested_data done [09:16:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112163,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:16:09]process_action_free close_receipt [09:16:09]json_value_free [09:16:09]json_value_free done [09:16:09]process_json_proto returns [09:16:09]Send response to host [09:16:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112163,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:16:09]free response buf [09:16:09]execute_script done [09:16:09]execute_script returns [09:16:09]free content buf [09:16:09]Sock 9.Close socket [09:16:09]Sock 9.Thread stoped [09:16:12]OFD Sender: No OFD packet to send [09:16:17]OFD Sender: No OFD packet to send [09:16:22]OFD Sender: No OFD packet to send [09:16:27]OFD Sender: No OFD packet to send [09:16:32]OFD Sender: No OFD packet to send [09:16:37]OFD Sender: No OFD packet to send [09:16:42]OFD Sender: No OFD packet to send [09:16:47]OFD Sender: No OFD packet to send [09:16:52]OFD Sender: No OFD packet to send [09:16:57]OFD Sender: No OFD packet to send [09:17:02]OFD Sender: No OFD packet to send [09:17:07]OFD Sender: No OFD packet to send [09:17:12]OFD Sender: No OFD packet to send [09:17:16]accept exits with 8 [09:17:16]New connection [09:17:16]New thread 3067100516 created [09:17:16]Thread 3067243876 joined [09:17:16]Waiting for new connection... [09:17:16] Sock 8.Parse request [09:17:16]Sock 8.Check first char [09:17:16]Sock 8.First char is OK [09:17:16]request: POST /json_proto HTTP/1.0 [09:17:16]Method: POST [09:17:16]URL: /json_proto [09:17:16]Method is POST - this is cgi request [09:17:16]url: /json_proto [09:17:16]query_string will be loaded in cgi processing [09:17:16]execute_cgi json_proto POST (null) [09:17:16]execute_cgi path=json_proto method=POST [09:17:16]POST find Content-Length [09:17:16]Host: 172.17.96.197:8080 [09:17:16]Content-Length: 676 [09:17:16]Content-Type: application/json [09:17:16] [09:17:16]POST finish read [09:17:16]Found Content-Length = 676 [09:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:17:16]execute_script... [09:17: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)48481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:17:16]POST & json_proto [09:17:16]process_json_proto [09:17:16]json parsed OK: [09:17:16]protocol is kg_v1.0 [09:17:16]action value=close_receipt [09:17:16]process_action close_receipt [09:17:16]cmd_close_receipt [09:17:16]MH_GetDate [09:17:16]Write to MH i2c: F0 00 00 A9 02 9A [09:17:16]Write i2c OK [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: F0 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: F0 09 00 [09:17:16]MH_I2C_Read... [09:17:16]Read from MH i2c: F0 09 00 A9 02 00 1D 9F 1B 66 E0 85 7F 64 28 [09:17:16]GetLastDocTimeStamp 1713086165 [09:17:16]current date 1713086237 [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 AA 02 80 13 01 00 00 00 00 00 29 [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 AA 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C1 [09:17:16]RAPDU: 09 00 01 E8 23 1B 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]opened in 1713054696 [09:17:16]opened+sec_in_day 1713141096 [09:17:16]quantity*price = 50025 [09:17:16]sum+1 = 50026 [09:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 63 14.04.2024 09:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112164 ФПД: 209372421621401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091717&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112164&fm=209372421621401&tin=02508201610067®Number=0000000000094237&sum=50000 [09:17:17]StoreToDocumentArchive [09:17:17]shift 357 fd 112164 [09:17:17]save to /storage/0357/doc_00112164 [09:17:17]save last doc name /storage/0357/doc_00112164 to /storage/kkm_last_doc_name [09:17:17]save OK [09:17:17]Clear old archive folders... [09:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:17]tlvbuf is 01789660 [09:17:17]SAM_PROTO_ClearQueue [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 09 00 00 [09:17:17]Write to MH i2c: E2 08 00 B7 02 80 09 00 00 00 00 00 00 2B [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 B7 02 00 90 00 2D [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]SAM_PROTO_ClearQueue done [09:17:17]KKMCreateOFDPacket [09:17:17]OFDProtocolAddRootSTLVToBuf [09:17:17]FM_MakeSignedData [09:17:17]FM_MakeSignedData [09:17:17]SAM_PROTO_SignData [09:17:17]wFMCommunicate request_size=4 [09:17:17]MH_SAM_APDU [09:17:17]CAPDU: 80 0D 01 02 [09:17:17]Write to MH i2c: E2 08 00 B8 02 80 0D 01 02 00 00 00 00 33 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:17]Read from MH i2c: E2 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 [09:17:17]MH_I2C_Read... [09:17:17]Read from MH i2c: E2 03 00 B8 02 00 90 00 2E [09:17:17]RAPDU: 90 00 [09:17:17]wFMCommunicate OK [09:17:17]wFMCommunicate request_size=255 [09:17:17]MH_SAM_APDU [09:17:17]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 3F 00 00 00 F4 03 04 00 1D 9F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B6 01 00 35 04 06 00 BE [09:17:17]Write to MH i2c: E2 02 01 B9 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 3F 00 00 00 F4 03 04 00 1D 9F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B6 01 00 35 04 06 00 BE 00 00 51 [09:17:17]Write i2c OK [09:17:17]MH_I2C_Read... [09:17:18]OFD Sender: No OFD packet to send [09:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 B9 02 00 90 00 2F [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]wFMCommunicate request_size=10 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 02 02 05 6C 50 D1 06 99 [09:17:18]Write to MH i2c: E2 0D 00 BA 02 80 0D 02 02 05 00 6C 50 D1 06 99 00 00 6C [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 03 00 BA 02 00 90 00 30 [09:17:18]RAPDU: 90 00 [09:17:18]wFMCommunicate OK [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 0D 03 02 [09:17:18]Write to MH i2c: E2 08 00 BB 02 80 0D 03 02 00 00 00 00 38 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0B 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 0B 00 BB 02 00 6E 5B 38 76 90 99 9A 3D 90 00 B0 [09:17:18]RAPDU: 6E 5B 38 76 90 99 9A 3D 90 00 [09:17:18]wFMCommunicate OK [09:17:18]SAM_PROTO_SignData done [09:17:18]FM_MakeSignedData done [09:17:18]CreateOFDProtocolMessage [09:17:18]wFMCommunicate request_size=4 [09:17:18]MH_SAM_APDU [09:17:18]CAPDU: 80 11 00 00 [09:17:18]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:18]Read from MH i2c: E2 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [09:17:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:17:18]wFMCommunicate OK [09:17:18]CreateOFDProtocolMessage done [09:17:18]OFDSenderStorePacket 112164 [09:17:18]StoreOFDPacket docnum=112164 [09:17:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 7B 07 01 6D 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 3F 00 00 00 F4 03 04 00 1D 9F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B6 01 00 35 04 06 00 BE 6C 50 D1 06 99 6E 5B 38 76 90 99 9A 3D [09:17:18]CheckFolder [09:17:18]dirname=/storage/ofd_packets [09:17:18]CheckFolder done [09:17:18]ProducePacketName [09:17:18]name=ofd_packets/00112164 [09:17:18]NVStorageSaveData ofd_packets/00112164 [09:17:18]File name is /storage/ofd_packets/00112164 [09:17:18]Write 301 bytes [09:17:18]NVStorageSaveData done [09:17:18]OFDSenderStorePacket done [09:17:18]KKMCreateOFDPacket done [09:17:18]NVStorageSaveData kkm_last_timestamp [09:17:18]File name is /storage/kkm_last_timestamp [09:17:18]Write 4 bytes [09:17:18]NVStorageSaveData done [09:17:18]ExternCall_PrintAddStr [09:17:18]wPrintStart [09:17:18]Write to MH i2c: 01 00 00 BD 02 BF [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 BD 02 00 00 00 00 00 FF 0F D4 [09:17:18]RasterBufferAndPrint [09:17:18]line Счет N : (1)48481 [09:17:18]line ИНН: 02508201610067 [09:17:18]line Контрольно-Кассовый Чек [09:17:18]line ПРОДАЖА [09:17:18]line ТРК (МРК, ГНК) : 21 [09:17:18]line Товар: 2710124130 [09:17:18]line Аи-92-К-5 [09:17:18]line 7.780 * 64.30 [09:17:18]line = 500.25 [09:17:18]line НДС 12% НСП 1% [09:17:18]line > о реализуемом товаре [09:17:18]line ОКРУГЛЕНИЕ: -0.25 [09:17:18]line ИТОГО: 500.00 [09:17:18]line Внесено: 500.00 [09:17:18]line СДАЧА: 0.00 [09:17:18]line НСП 1% : 4.43 [09:17:18]line НДС 12% : 53.12 [09:17:18]line Наличными: 500.00 [09:17:18]line Безнал.: 0.00 [09:17:18]line Место: АЗС № 47 "Партнер Нефть" [09:17:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:17:18]line СНО: Общий режим [09:17:18]line Чек 63 14.04.2024 09:17 [09:17:18]line Смена: 357 ФФД: 1.0 [09:17:18]line ЗНМ: 0300000138 [09:17:18]line РНМ: 0000000000094237 [09:17:18]line Версия ККМ: 001 [09:17:18]line ФМ: 0000000000875019 [09:17:18]line ФД: 112164 [09:17:18]line ФПД: 209372421621401 [09:17:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T091717&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112164&fm=209372421621401&tin=02508201610067®Number=0000000000094237&sum=50000 [09:17:18]OFD Sender: Processing packet 112164 [packets to send 71, broken 70] [09:17:18]ProducePacketName [09:17:18]name=ofd_packets/00112164 [09:17:18]OFD Sender: To server: pG, [09:17:18]CommunicateWithHost lk.salyk.kg:30040 [09:17:18]ConnectInit lk.salyk.kg [09:17:18]written 0, free lines is 4095 [09:17:18]Connected sock=11 [09:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 7B 07 01 6D 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 3F 00 00 00 F4 03 04 00 1D 9F 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B6 01 00 35 04 06 00 BE 6C 50 D1 06 99 6E 5B 38 76 90 99 9A 3D [09:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 34 24 47 00 8C A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B6 01 00 F4 03 04 00 A9 46 1B 66 B6 04 01 00 00 73 B3 0B DC 67 68 70 26 [09:17:18]CommunicateWithHost err = 0 [09:17:18]CheckOFDResponse [09:17:18]1017 (14) - 77093643461234 [09:17:18]1041 (16) - 0000000000875019 [09:17:18]1040 (4) - 112164 [09:17:18]1012 (4) - 14.04.2024 02:59 [09:17:18]1206 (1) - 0 [09:17:18]OFD Sender: Remove packet 112164 [09:17:18]ProducePacketName [09:17:18]name=ofd_packets/00112164 [09:17:18]NVStorageDeleteData [09:17:18]Write to MH i2c: 01 00 00 E8 02 EA [09:17:18]Write i2c OK [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 [09:17:18]MH_I2C_Read... [09:17:18]Read from MH i2c: 01 07 00 E8 02 00 00 00 00 00 E7 0C E4 [09:17:18]RasterBufferAndPrint [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]line [09:17:18]written 0, free lines is 3310 [09:17:19]MH_Cut [09:17:19]Write to MH i2c: D1 01 00 EF 02 01 C3 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 01 00 [09:17:19]MH_I2C_Read... [09:17:19]Read from MH i2c: D1 01 00 EF 02 00 C2 [09:17:19]Write to MH i2c: 01 00 00 F0 02 F2 [09:17:19]Write i2c OK [09:17:19]MH_I2C_Read... [09:17:19]OFD Sender: No OFD packet to send [09:17:19]*** Cut start [09:17:19]*** Partial cut [09:17:19]*** CUTSNS_PIN = 1 [09:17:19]*** CUTSNS_PIN = 0 [09:17:20]*** Brake cut motor [09:17:20]Read from MH i2c: 01 [09:17:20]MH_I2C_Read... [09:17:20]*** Stop cut motor [09:17:20]*** Cut end [09:17:20]Read from MH i2c: 01 07 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: 01 07 00 F0 02 00 00 00 00 00 FF 0F 07 [09:17:20]process_action close_receipt done [09:17:20]requested_data is exist [09:17:20]produce_requested_data [09:17:20]requested_item fm.sn is exist - process it [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 11 00 00 [09:17:20]Write to MH i2c: E2 08 00 F1 02 80 11 00 00 00 00 00 00 6D [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 17 00 F1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BE [09:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:17:20]wFMCommunicate OK [09:17:20]requested_item fd.num is exist - process it [09:17:20]SAM_PROTO_GetFieldsCounters [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 00 00 [09:17:20]Write to MH i2c: E2 08 00 F2 02 80 13 00 00 00 00 00 00 70 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 62 00 F2 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 24 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [09:17:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 24 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_GetFieldsCounters done [09:17:20]requested_item shift.num is exist - process it [09:17:20]requested_item shift.opened is exist - process it [09:17:20]req_shift_opened [09:17:20]FM_GetShiftState [09:17:20]SAM_PROTO_GetShiftState [09:17:20]wFMCommunicate request_size=4 [09:17:20]MH_SAM_APDU [09:17:20]CAPDU: 80 13 01 00 [09:17:20]Write to MH i2c: E2 08 00 F3 02 80 13 01 00 00 00 00 00 72 [09:17:20]Write i2c OK [09:17:20]MH_I2C_Read... [09:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:20]Read from MH i2c: E2 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 0E 00 [09:17:20]MH_I2C_Read... [09:17:20]Read from MH i2c: E2 0E 00 F3 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0A [09:17:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:17:20]wFMCommunicate OK [09:17:20]SAM_PROTO_GetShiftState done [09:17:20]FM_GetShiftState done [09:17:20]req_shift_opened done [09:17:20]requested_item shift.open_date is exist - process it [09:17:20]req_shift_open_date [09:17:20]req_shift_open_date done [09:17:20]produce_requested_data done [09:17:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112164,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:17:20]process_action_free close_receipt [09:17:20]json_value_free [09:17:20]json_value_free done [09:17:20]process_json_proto returns [09:17:20]Send response to host [09:17:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112164,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:17:20]free response buf [09:17:20]execute_script done [09:17:20]execute_script returns [09:17:20]free content buf [09:17:20]Sock 8.Close socket [09:17:20]Sock 8.Thread stoped [09:17:24]OFD Sender: No OFD packet to send [09:17:29]OFD Sender: No OFD packet to send [09:17:34]OFD Sender: No OFD packet to send [09:17:39]OFD Sender: No OFD packet to send [09:17:44]OFD Sender: No OFD packet to send [09:17:49]OFD Sender: No OFD packet to send [09:17:54]OFD Sender: No OFD packet to send [09:17:59]OFD Sender: No OFD packet to send [09:18:04]OFD Sender: No OFD packet to send [09:18:09]OFD Sender: No OFD packet to send [09:18:14]OFD Sender: No OFD packet to send [09:18:19]OFD Sender: No OFD packet to send [09:18:24]OFD Sender: No OFD packet to send [09:18:29]OFD Sender: No OFD packet to send [09:18:34]OFD Sender: No OFD packet to send [09:18:39]OFD Sender: No OFD packet to send [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:05]accept exits with 9 [09:22:05]New connection [09:22:05]New thread 3067243876 created [09:22:05]Thread 3067100516 joined [09:22:05]Waiting for new connection... [09:22:05] Sock 9.Parse request [09:22:05]Sock 9.Check first char [09:22:05]Sock 9.First char is OK [09:22:05]request: POST /json_proto HTTP/1.0 [09:22:05]Method: POST [09:22:05]URL: /json_proto [09:22:05]Method is POST - this is cgi request [09:22:05]url: /json_proto [09:22:05]query_string will be loaded in cgi processing [09:22:05]execute_cgi json_proto POST (null) [09:22:05]execute_cgi path=json_proto method=POST [09:22:05]POST find Content-Length [09:22:05]Host: 172.17.96.197:8080 [09:22:05]Content-Length: 680 [09:22:05]Content-Type: application/json [09:22:05] [09:22:05]POST finish read [09:22:05]Found Content-Length = 680 [09:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:22:05]execute_script... [09:22: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)48482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:22:05]POST & json_proto [09:22:05]process_json_proto [09:22:05]json parsed OK: [09:22:05]protocol is kg_v1.0 [09:22:05]action value=close_receipt [09:22:05]process_action close_receipt [09:22:05]cmd_close_receipt [09:22:05]MH_GetDate [09:22:05]Write to MH i2c: F0 00 00 F4 02 E5 [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: F0 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: F0 09 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: F0 09 00 F4 02 00 3E A0 1B 66 E0 85 7F 64 95 [09:22:05]GetLastDocTimeStamp 1713086237 [09:22:05]current date 1713086526 [09:22:05]FM_GetShiftState [09:22:05]SAM_PROTO_GetShiftState [09:22:05]wFMCommunicate request_size=4 [09:22:05]MH_SAM_APDU [09:22:05]CAPDU: 80 13 01 00 [09:22:05]Write to MH i2c: E2 08 00 F5 02 80 13 01 00 00 00 00 00 74 [09:22:05]Write i2c OK [09:22:05]MH_I2C_Read... [09:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:05]Read from MH i2c: E2 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 0E 00 [09:22:05]MH_I2C_Read... [09:22:05]Read from MH i2c: E2 0E 00 F5 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0C [09:22:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:22:05]wFMCommunicate OK [09:22:05]SAM_PROTO_GetShiftState done [09:22:05]FM_GetShiftState done [09:22:05]opened in 1713054696 [09:22:05]opened+sec_in_day 1713141096 [09:22:05]quantity*price = 50031 [09:22:05]sum+1 = 50032 [09:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 64 14.04.2024 09:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112165 ФПД: 231626070205437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092206&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112165&fm=231626070205437&tin=02508201610067®Number=0000000000094237&sum=50000 [09:22:06]StoreToDocumentArchive [09:22:06]shift 357 fd 112165 [09:22:06]save to /storage/0357/doc_00112165 [09:22:06]save last doc name /storage/0357/doc_00112165 to /storage/kkm_last_doc_name [09:22:06]save OK [09:22:06]Clear old archive folders... [09:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:22:06]tlvbuf is 017123C0 [09:22:06]SAM_PROTO_ClearQueue [09:22:06]wFMCommunicate request_size=4 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 09 00 00 [09:22:06]Write to MH i2c: E2 08 00 02 03 80 09 00 00 00 00 00 00 77 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:06]Read from MH i2c: E2 03 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 02 03 00 90 00 79 [09:22:06]RAPDU: 90 00 [09:22:06]wFMCommunicate OK [09:22:06]SAM_PROTO_ClearQueue done [09:22:06]KKMCreateOFDPacket [09:22:06]OFDProtocolAddRootSTLVToBuf [09:22:06]FM_MakeSignedData [09:22:06]FM_MakeSignedData [09:22:06]SAM_PROTO_SignData [09:22:06]wFMCommunicate request_size=4 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 0D 01 02 [09:22:06]Write to MH i2c: E2 08 00 03 03 80 0D 01 02 00 00 00 00 7F [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 03 03 00 90 00 7A [09:22:06]RAPDU: 90 00 [09:22:06]wFMCommunicate OK [09:22:06]wFMCommunicate request_size=255 [09:22:06]MH_SAM_APDU [09:22: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E A0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B6 01 00 35 04 06 00 D2 A9 [09:22:06]Write to MH i2c: E2 02 01 04 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E A0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B6 01 00 35 04 06 00 D2 A9 00 00 44 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:06]Read from MH i2c: E2 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 [09:22:06]MH_I2C_Read... [09:22:06]Read from MH i2c: E2 03 00 04 03 00 90 00 7B [09:22:06]RAPDU: 90 00 [09:22:06]wFMCommunicate OK [09:22:06]wFMCommunicate request_size=9 [09:22:06]MH_SAM_APDU [09:22:06]CAPDU: 80 0D 02 02 04 A5 A2 A3 FD [09:22:06]Write to MH i2c: E2 0C 00 05 03 80 0D 02 02 04 00 A5 A2 A3 FD 00 00 71 [09:22:06]Write i2c OK [09:22:06]MH_I2C_Read... [09:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:07]Read from MH i2c: E2 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 03 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 03 00 05 03 00 90 00 7C [09:22:07]RAPDU: 90 00 [09:22:07]wFMCommunicate OK [09:22:07]wFMCommunicate request_size=4 [09:22:07]MH_SAM_APDU [09:22:07]CAPDU: 80 0D 03 02 [09:22:07]Write to MH i2c: E2 08 00 06 03 80 0D 03 02 00 00 00 00 84 [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:07]Read from MH i2c: E2 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 0B 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 0B 00 06 03 00 4C 9D D7 67 EF D5 75 86 90 00 6B [09:22:07]RAPDU: 4C 9D D7 67 EF D5 75 86 90 00 [09:22:07]wFMCommunicate OK [09:22:07]SAM_PROTO_SignData done [09:22:07]FM_MakeSignedData done [09:22:07]CreateOFDProtocolMessage [09:22:07]wFMCommunicate request_size=4 [09:22:07]MH_SAM_APDU [09:22:07]CAPDU: 80 11 00 00 [09:22:07]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:07]Read from MH i2c: E2 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 17 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [09:22:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:22:07]wFMCommunicate OK [09:22:07]CreateOFDProtocolMessage done [09:22:07]OFDSenderStorePacket 112165 [09:22:07]StoreOFDPacket docnum=112165 [09:22:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 59 ED 06 01 CE 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E A0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B6 01 00 35 04 06 00 D2 A9 A5 A2 A3 FD 4C 9D D7 67 EF D5 75 86 [09:22:07]CheckFolder [09:22:07]dirname=/storage/ofd_packets [09:22:07]CheckFolder done [09:22:07]ProducePacketName [09:22:07]name=ofd_packets/00112165 [09:22:07]NVStorageSaveData ofd_packets/00112165 [09:22:07]File name is /storage/ofd_packets/00112165 [09:22:07]Write 300 bytes [09:22:07]NVStorageSaveData done [09:22:07]OFDSenderStorePacket done [09:22:07]KKMCreateOFDPacket done [09:22:07]NVStorageSaveData kkm_last_timestamp [09:22:07]File name is /storage/kkm_last_timestamp [09:22:07]Write 4 bytes [09:22:07]NVStorageSaveData done [09:22:07]ExternCall_PrintAddStr [09:22:07]wPrintStart [09:22:07]Write to MH i2c: 01 00 00 08 03 0B [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 07 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 07 00 08 03 00 00 00 00 00 FF 0F 20 [09:22:07]RasterBufferAndPrint [09:22:07]line Счет N : (1)48482 [09:22:07]line ИНН: 02508201610067 [09:22:07]line Контрольно-Кассовый Чек [09:22:07]line ПРОДАЖА [09:22:07]line ТРК (МРК, ГНК) : 71 [09:22:07]line Товар: 2711190000 [09:22:07]line ГАЗ-К-5 [09:22:07]line 15.300 * 32.70 [09:22:07]line = 500.31 [09:22:07]line НДС 12% НСП 1% [09:22:07]line > о реализуемом товаре [09:22:07]line ОКРУГЛЕНИЕ: -0.31 [09:22:07]line ИТОГО: 500.00 [09:22:07]line Внесено: 500.00 [09:22:07]line СДАЧА: 0.00 [09:22:07]line НСП 1% : 4.43 [09:22:07]line НДС 12% : 53.13 [09:22:07]line Наличными: 500.00 [09:22:07]line Безнал.: 0.00 [09:22:07]line Место: АЗС № 47 "Партнер Нефть" [09:22:07]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:22:07]line СНО: Общий режим [09:22:07]line Чек 64 14.04.2024 09:22 [09:22:07]line Смена: 357 ФФД: 1.0 [09:22:07]line ЗНМ: 0300000138 [09:22:07]line РНМ: 0000000000094237 [09:22:07]line Версия ККМ: 001 [09:22:07]line ФМ: 0000000000875019 [09:22:07]line ФД: 112165 [09:22:07]line ФПД: 231626070205437 [09:22:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092206&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112165&fm=231626070205437&tin=02508201610067®Number=0000000000094237&sum=50000 [09:22:07]written 0, free lines is 4095 [09:22:07]OFD Sender: Processing packet 112165 [packets to send 71, broken 70] [09:22:07]ProducePacketName [09:22:07]name=ofd_packets/00112165 [09:22:07]OFD Sender: To server: pG, [09:22:07]CommunicateWithHost lk.salyk.kg:30040 [09:22:07]ConnectInit lk.salyk.kg [09:22:07]Connected sock=10 [09:22:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 59 ED 06 01 CE 5B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 3E A0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B6 01 00 35 04 06 00 D2 A9 A5 A2 A3 FD 4C 9D D7 67 EF D5 75 86 [09:22:07]Write to MH i2c: 01 00 00 33 03 36 [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 07 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: 01 07 00 33 03 00 00 00 00 00 D0 0C 19 [09:22:07]RasterBufferAndPrint [09:22:07]line [09:22:07]line [09:22:07]line [09:22:07]line [09:22:07]line [09:22:07]written 0, free lines is 3287 [09:22:07]MH_Cut [09:22:07]Write to MH i2c: D1 01 00 3A 03 01 0F [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: D1 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: D1 01 00 [09:22:07]MH_I2C_Read... [09:22:07]Read from MH i2c: D1 01 00 3A 03 00 0E [09:22:07]Write to MH i2c: 01 00 00 3B 03 3E [09:22:07]Write i2c OK [09:22:07]MH_I2C_Read... [09:22:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DC CC 47 00 89 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B6 01 00 F4 03 04 00 CA 47 1B 66 B6 04 01 00 00 EE 21 BA CB EC 0B 89 24 [09:22:07]CommunicateWithHost err = 0 [09:22:07]CheckOFDResponse [09:22:07]1017 (14) - 77093643461234 [09:22:07]1041 (16) - 0000000000875019 [09:22:07]1040 (4) - 112165 [09:22:07]1012 (4) - 14.04.2024 03:04 [09:22:07]1206 (1) - 0 [09:22:07]OFD Sender: Remove packet 112165 [09:22:07]ProducePacketName [09:22:07]name=ofd_packets/00112165 [09:22:07]NVStorageDeleteData [09:22:08]OFD Sender: No OFD packet to send [09:22:08]*** Cut start [09:22:08]*** Partial cut [09:22:08]*** CUTSNS_PIN = 1 [09:22:08]*** CUTSNS_PIN = 0 [09:22:08]*** Brake cut motor [09:22:09]Read from MH i2c: 01 [09:22:09]MH_I2C_Read... [09:22:09]*** Stop cut motor [09:22:09]*** Cut end [09:22:09]Read from MH i2c: 01 07 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: 01 07 00 3B 03 00 00 00 00 00 FF 0F 53 [09:22:09]process_action close_receipt done [09:22:09]requested_data is exist [09:22:09]produce_requested_data [09:22:09]requested_item fm.sn is exist - process it [09:22:09]wFMCommunicate request_size=4 [09:22:09]MH_SAM_APDU [09:22:09]CAPDU: 80 11 00 00 [09:22:09]Write to MH i2c: E2 08 00 3C 03 80 11 00 00 00 00 00 00 B9 [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:09]Read from MH i2c: E2 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 17 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 17 00 3C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0A [09:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:22:09]wFMCommunicate OK [09:22:09]requested_item fd.num is exist - process it [09:22:09]SAM_PROTO_GetFieldsCounters [09:22:09]wFMCommunicate request_size=4 [09:22:09]MH_SAM_APDU [09:22:09]CAPDU: 80 13 00 00 [09:22:09]Write to MH i2c: E2 08 00 3D 03 80 13 00 00 00 00 00 00 BC [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:09]Read from MH i2c: E2 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 62 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 62 00 3D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 25 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [09:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 25 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:09]wFMCommunicate OK [09:22:09]SAM_PROTO_GetFieldsCounters done [09:22:09]requested_item shift.num is exist - process it [09:22:09]requested_item shift.opened is exist - process it [09:22:09]req_shift_opened [09:22:09]FM_GetShiftState [09:22:09]SAM_PROTO_GetShiftState [09:22:09]wFMCommunicate request_size=4 [09:22:09]MH_SAM_APDU [09:22:09]CAPDU: 80 13 01 00 [09:22:09]Write to MH i2c: E2 08 00 3E 03 80 13 01 00 00 00 00 00 BE [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:09]Read from MH i2c: E2 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 0E 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 0E 00 3E 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 56 [09:22:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:22:09]wFMCommunicate OK [09:22:09]SAM_PROTO_GetShiftState done [09:22:09]FM_GetShiftState done [09:22:09]req_shift_opened done [09:22:09]requested_item shift.open_date is exist - process it [09:22:09]req_shift_open_date [09:22:09]req_shift_open_date done [09:22:09]produce_requested_data done [09:22:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112165,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:22:09]process_action_free close_receipt [09:22:09]json_value_free [09:22:09]json_value_free done [09:22:09]process_json_proto returns [09:22:09]Send response to host [09:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112165,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:22:09]free response buf [09:22:09]execute_script done [09:22:09]execute_script returns [09:22:09]free content buf [09:22:09]Sock 9.Close socket [09:22:09]Sock 9.Thread stoped [09:22:13]OFD Sender: No OFD packet to send [09:22:18]OFD Sender: No OFD packet to send [09:22:23]OFD Sender: No OFD packet to send [09:22:28]OFD Sender: No OFD packet to send [09:22:33]OFD Sender: No OFD packet to send [09:22:38]OFD Sender: No OFD packet to send [09:22:43]OFD Sender: No OFD packet to send [09:22:48]OFD Sender: No OFD packet to send [09:22:53]OFD Sender: No OFD packet to send [09:22:58]OFD Sender: No OFD packet to send [09:23:03]OFD Sender: No OFD packet to send [09:23:08]OFD Sender: No OFD packet to send [09:23:13]OFD Sender: No OFD packet to send [09:23:18]OFD Sender: No OFD packet to send [09:23:23]OFD Sender: No OFD packet to send [09:23:28]OFD Sender: No OFD packet to send [09:23:33]OFD Sender: No OFD packet to send [09:23:38]OFD Sender: No OFD packet to send [09:23:43]OFD Sender: No OFD packet to send [09:23:48]OFD Sender: No OFD packet to send [09:23:53]OFD Sender: No OFD packet to send [09:23:58]OFD Sender: No OFD packet to send [09:24:03]OFD Sender: No OFD packet to send [09:24:08]OFD Sender: No OFD packet to send [09:24:13]OFD Sender: No OFD packet to send [09:24:18]OFD Sender: No OFD packet to send [09:24:23]OFD Sender: No OFD packet to send [09:24:28]OFD Sender: No OFD packet to send [09:24:33]OFD Sender: No OFD packet to send [09:24:38]OFD Sender: No OFD packet to send [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:33]OFD Sender: No OFD packet to send [09:25:38]OFD Sender: No OFD packet to send [09:25:43]OFD Sender: No OFD packet to send [09:25:48]OFD Sender: No OFD packet to send [09:25:53]OFD Sender: No OFD packet to send [09:25:58]OFD Sender: No OFD packet to send [09:26:03]OFD Sender: No OFD packet to send [09:26:08]OFD Sender: No OFD packet to send [09:26:13]OFD Sender: No OFD packet to send [09:26:18]OFD Sender: No OFD packet to send [09:26:20]accept exits with 8 [09:26:20]New connection [09:26:20]New thread 3067100516 created [09:26:20]Thread 3067243876 joined [09:26:20]Waiting for new connection... [09:26:20] Sock 8.Parse request [09:26:20]Sock 8.Check first char [09:26:20]Sock 8.First char is OK [09:26:20]request: POST /json_proto HTTP/1.0 [09:26:20]Method: POST [09:26:20]URL: /json_proto [09:26:20]Method is POST - this is cgi request [09:26:20]url: /json_proto [09:26:20]query_string will be loaded in cgi processing [09:26:20]execute_cgi json_proto POST (null) [09:26:20]execute_cgi path=json_proto method=POST [09:26:20]POST find Content-Length [09:26:20]Host: 172.17.96.197:8080 [09:26:20]Content-Length: 674 [09:26:20]Content-Type: application/json [09:26:20] [09:26:20]POST finish read [09:26:20]Found Content-Length = 674 [09:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48483", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [09:26:20]execute_script... [09:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48483", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [09:26:20]POST & json_proto [09:26:20]process_json_proto [09:26:20]json parsed OK: [09:26:20]protocol is kg_v1.0 [09:26:20]action value=close_receipt [09:26:20]process_action close_receipt [09:26:20]cmd_close_receipt [09:26:20]MH_GetDate [09:26:20]Write to MH i2c: F0 00 00 3F 03 31 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 09 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: F0 09 00 3F 03 00 3D A1 1B 66 E0 85 7F 64 E1 [09:26:20]GetLastDocTimeStamp 1713086526 [09:26:20]current date 1713086781 [09:26:20]FM_GetShiftState [09:26:20]SAM_PROTO_GetShiftState [09:26:20]wFMCommunicate request_size=4 [09:26:20]MH_SAM_APDU [09:26:20]CAPDU: 80 13 01 00 [09:26:20]Write to MH i2c: E2 08 00 40 03 80 13 01 00 00 00 00 00 C0 [09:26:20]Write i2c OK [09:26:20]MH_I2C_Read... [09:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:20]Read from MH i2c: E2 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 [09:26:20]MH_I2C_Read... [09:26:20]Read from MH i2c: E2 0E 00 40 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [09:26:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:26:20]wFMCommunicate OK [09:26:20]SAM_PROTO_GetShiftState done [09:26:20]FM_GetShiftState done [09:26:20]opened in 1713054696 [09:26:20]opened+sec_in_day 1713141096 [09:26:20]quantity*price = 200013 [09:26:20]sum+1 = 200015 [09:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 65 14.04.2024 09:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112166 ФПД: 130504747431257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092621&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112166&fm=130504747431257&tin=02508201610067®Number=0000000000094237&sum=200000 [09:26:21]StoreToDocumentArchive [09:26:21]shift 357 fd 112166 [09:26:21]save to /storage/0357/doc_00112166 [09:26:21]save last doc name /storage/0357/doc_00112166 to /storage/kkm_last_doc_name [09:26:21]save OK [09:26:21]Clear old archive folders... [09:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:26:21]tlvbuf is 0171D1B0 [09:26:21]SAM_PROTO_ClearQueue [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 09 00 00 [09:26:21]Write to MH i2c: E2 08 00 4D 03 80 09 00 00 00 00 00 00 C2 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 4D 03 00 90 00 C4 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_ClearQueue done [09:26:21]KKMCreateOFDPacket [09:26:21]OFDProtocolAddRootSTLVToBuf [09:26:21]FM_MakeSignedData [09:26:21]FM_MakeSignedData [09:26:21]SAM_PROTO_SignData [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 01 02 [09:26:21]Write to MH i2c: E2 08 00 4E 03 80 0D 01 02 00 00 00 00 CA [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 4E 03 00 90 00 C5 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=255 [09:26:21]MH_SAM_APDU [09:26:21]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3D A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B6 01 00 35 04 06 00 [09:26:21]Write to MH i2c: E2 02 01 4F 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3D A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B6 01 00 35 04 06 00 00 00 42 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 4F 03 00 90 00 C6 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=11 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 02 02 06 76 B1 81 1C B5 59 [09:26:21]Write to MH i2c: E2 0E 00 50 03 80 0D 02 02 06 00 76 B1 81 1C B5 59 00 00 AB [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 03 00 50 03 00 90 00 C7 [09:26:21]RAPDU: 90 00 [09:26:21]wFMCommunicate OK [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 0D 03 02 [09:26:21]Write to MH i2c: E2 08 00 51 03 80 0D 03 02 00 00 00 00 CF [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 0B 00 51 03 00 00 E9 D6 44 C8 95 BB 7E 90 00 69 [09:26:21]RAPDU: 00 E9 D6 44 C8 95 BB 7E 90 00 [09:26:21]wFMCommunicate OK [09:26:21]SAM_PROTO_SignData done [09:26:21]FM_MakeSignedData done [09:26:21]CreateOFDProtocolMessage [09:26:21]wFMCommunicate request_size=4 [09:26:21]MH_SAM_APDU [09:26:21]CAPDU: 80 11 00 00 [09:26:21]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:21]Read from MH i2c: E2 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 20 [09:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:26:21]wFMCommunicate OK [09:26:21]CreateOFDProtocolMessage done [09:26:21]OFDSenderStorePacket 112166 [09:26:21]StoreOFDPacket docnum=112166 [09:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 29 3B 08 01 6D 15 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3D A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B6 01 00 35 04 06 00 76 B1 81 1C B5 59 00 E9 D6 44 C8 95 BB 7E [09:26:21]CheckFolder [09:26:21]dirname=/storage/ofd_packets [09:26:21]CheckFolder done [09:26:21]ProducePacketName [09:26:21]name=ofd_packets/00112166 [09:26:21]NVStorageSaveData ofd_packets/00112166 [09:26:21]File name is /storage/ofd_packets/00112166 [09:26:21]Write 302 bytes [09:26:21]NVStorageSaveData done [09:26:21]OFDSenderStorePacket done [09:26:21]KKMCreateOFDPacket done [09:26:21]NVStorageSaveData kkm_last_timestamp [09:26:21]File name is /storage/kkm_last_timestamp [09:26:21]Write 4 bytes [09:26:21]NVStorageSaveData done [09:26:21]ExternCall_PrintAddStr [09:26:21]wPrintStart [09:26:21]Write to MH i2c: 01 00 00 53 03 56 [09:26:21]Write i2c OK [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 [09:26:21]MH_I2C_Read... [09:26:21]Read from MH i2c: 01 07 00 53 03 00 00 00 00 00 FF 0F 6B [09:26:21]RasterBufferAndPrint [09:26:21]line Счет N : (1)48483 [09:26:21]line ИНН: 02508201610067 [09:26:21]line Контрольно-Кассовый Чек [09:26:21]line ПРОДАЖА [09:26:21]line ТРК (МРК, ГНК) : 31 [09:26:21]line Товар: 2710124130 [09:26:21]line SUPER 92-К-5 [09:26:21]line 30.630 * 65.30 [09:26:21]line = 2000.14 [09:26:21]line НДС 12% НСП 1% [09:26:21]line > о реализуемом товаре [09:26:21]line ОКРУГЛЕНИЕ: -0.14 [09:26:21]line ИТОГО: 2000.00 [09:26:21]line Внесено: 2000.00 [09:26:21]line СДАЧА: 0.00 [09:26:21]line НСП 1% : 17.70 [09:26:21]line НДС 12% : 212.40 [09:26:21]line Наличными: 2000.00 [09:26:21]line Безнал.: 0.00 [09:26:21]line Место: АЗС № 47 "Партнер Нефть" [09:26:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:26:21]line СНО: Общий режим [09:26:21]line Чек 65 14.04.2024 09:26 [09:26:21]line Смена: 357 ФФД: 1.0 [09:26:21]line ЗНМ: 0300000138 [09:26:21]line РНМ: 0000000000094237 [09:26:21]line Версия ККМ: 001 [09:26:21]line ФМ: 0000000000875019 [09:26:21]line ФД: 112166 [09:26:21]line ФПД: 130504747431257 [09:26:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092621&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112166&fm=130504747431257&tin=02508201610067®Number=0000000000094237&sum=200000 [09:26:22]OFD Sender: Processing packet 112166 [packets to send 71, broken 70] [09:26:22]ProducePacketName [09:26:22]name=ofd_packets/00112166 [09:26:22]OFD Sender: To server: pG, [09:26:22]CommunicateWithHost lk.salyk.kg:30040 [09:26:22]ConnectInit lk.salyk.kg [09:26:22]written 0, free lines is 4095 [09:26:22]Connected sock=10 [09:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 29 3B 08 01 6D 15 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 3D A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B6 01 00 35 04 06 00 76 B1 81 1C B5 59 00 E9 D6 44 C8 95 BB 7E [09:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F2 A0 47 00 D0 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B6 01 00 F4 03 04 00 C8 48 1B 66 B6 04 01 00 00 58 58 5F B5 C2 F1 F0 34 [09:26:22]CommunicateWithHost err = 0 [09:26:22]CheckOFDResponse [09:26:22]1017 (14) - 77093643461234 [09:26:22]1041 (16) - 0000000000875019 [09:26:22]1040 (4) - 112166 [09:26:22]1012 (4) - 14.04.2024 03:08 [09:26:22]1206 (1) - 0 [09:26:22]OFD Sender: Remove packet 112166 [09:26:22]ProducePacketName [09:26:22]name=ofd_packets/00112166 [09:26:22]NVStorageDeleteData [09:26:22]Write to MH i2c: 01 00 00 7E 03 81 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: 01 07 00 7E 03 00 00 00 00 00 ED 0C 81 [09:26:22]RasterBufferAndPrint [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]line [09:26:22]written 0, free lines is 3315 [09:26:22]MH_Cut [09:26:22]Write to MH i2c: D1 01 00 85 03 01 5A [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 [09:26:22]MH_I2C_Read... [09:26:22]Read from MH i2c: D1 01 00 85 03 00 59 [09:26:22]Write to MH i2c: 01 00 00 86 03 89 [09:26:22]Write i2c OK [09:26:22]MH_I2C_Read... [09:26:23]OFD Sender: No OFD packet to send [09:26:23]*** Cut start [09:26:23]*** Partial cut [09:26:23]*** CUTSNS_PIN = 1 [09:26:23]*** CUTSNS_PIN = 0 [09:26:23]*** Brake cut motor [09:26:23]Read from MH i2c: 01 [09:26:23]MH_I2C_Read... [09:26:23]*** Stop cut motor [09:26:23]*** Cut end [09:26:23]Read from MH i2c: 01 07 00 [09:26:23]MH_I2C_Read... [09:26:23]Read from MH i2c: 01 07 00 86 03 00 00 00 00 00 FF 0F 9E [09:26:23]process_action close_receipt done [09:26:23]requested_data is exist [09:26:23]produce_requested_data [09:26:23]requested_item fm.sn is exist - process it [09:26:23]wFMCommunicate request_size=4 [09:26:23]MH_SAM_APDU [09:26:23]CAPDU: 80 11 00 00 [09:26:23]Write to MH i2c: E2 08 00 87 03 80 11 00 00 00 00 00 00 04 [09:26:23]Write i2c OK [09:26:23]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 17 00 87 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [09:26:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:26:24]wFMCommunicate OK [09:26:24]requested_item fd.num is exist - process it [09:26:24]SAM_PROTO_GetFieldsCounters [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 13 00 00 [09:26:24]Write to MH i2c: E2 08 00 88 03 80 13 00 00 00 00 00 00 07 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 62 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 62 00 88 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 26 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 26 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_GetFieldsCounters done [09:26:24]requested_item shift.num is exist - process it [09:26:24]requested_item shift.opened is exist - process it [09:26:24]req_shift_opened [09:26:24]FM_GetShiftState [09:26:24]SAM_PROTO_GetShiftState [09:26:24]wFMCommunicate request_size=4 [09:26:24]MH_SAM_APDU [09:26:24]CAPDU: 80 13 01 00 [09:26:24]Write to MH i2c: E2 08 00 89 03 80 13 01 00 00 00 00 00 09 [09:26:24]Write i2c OK [09:26:24]MH_I2C_Read... [09:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:24]Read from MH i2c: E2 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 [09:26:24]MH_I2C_Read... [09:26:24]Read from MH i2c: E2 0E 00 89 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A1 [09:26:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:26:24]wFMCommunicate OK [09:26:24]SAM_PROTO_GetShiftState done [09:26:24]FM_GetShiftState done [09:26:24]req_shift_opened done [09:26:24]requested_item shift.open_date is exist - process it [09:26:24]req_shift_open_date [09:26:24]req_shift_open_date done [09:26:24]produce_requested_data done [09:26:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112166,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:26:24]process_action_free close_receipt [09:26:24]json_value_free [09:26:24]json_value_free done [09:26:24]process_json_proto returns [09:26:24]Send response to host [09:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112166,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:26:24]free response buf [09:26:24]execute_script done [09:26:24]execute_script returns [09:26:24]free content buf [09:26:24]Sock 8.Close socket [09:26:24]Sock 8.Thread stoped [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:28]OFD Sender: No OFD packet to send [09:28:33]OFD Sender: No OFD packet to send [09:28:38]OFD Sender: No OFD packet to send [09:28:43]OFD Sender: No OFD packet to send [09:28:48]OFD Sender: No OFD packet to send [09:28:53]OFD Sender: No OFD packet to send [09:28:58]OFD Sender: No OFD packet to send [09:29:03]OFD Sender: No OFD packet to send [09:29:06]accept exits with 9 [09:29:06]New connection [09:29:06]New thread 3067243876 created [09:29:06]Thread 3067100516 joined [09:29:06]Waiting for new connection... [09:29:06] Sock 9.Parse request [09:29:06]Sock 9.Check first char [09:29:06]Sock 9.First char is OK [09:29:06]request: POST /json_proto HTTP/1.0 [09:29:06]Method: POST [09:29:06]URL: /json_proto [09:29:06]Method is POST - this is cgi request [09:29:06]url: /json_proto [09:29:06]query_string will be loaded in cgi processing [09:29:06]execute_cgi json_proto POST (null) [09:29:06]execute_cgi path=json_proto method=POST [09:29:06]POST find Content-Length [09:29:06]Host: 172.17.96.197:8080 [09:29:06]Content-Length: 676 [09:29:06]Content-Type: application/json [09:29:06] [09:29:06]POST finish read [09:29:06]Found Content-Length = 676 [09:29:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [09:29:06]execute_script... [09: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)48484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [09:29:06]POST & json_proto [09:29:06]process_json_proto [09:29:06]json parsed OK: [09:29:06]protocol is kg_v1.0 [09:29:06]action value=close_receipt [09:29:06]process_action close_receipt [09:29:06]cmd_close_receipt [09:29:06]MH_GetDate [09:29:06]Write to MH i2c: F0 00 00 8A 03 7C [09:29:06]Write i2c OK [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: F0 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: F0 09 00 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: F0 09 00 8A 03 00 E3 A1 1B 66 E0 85 7F 64 D2 [09:29:06]GetLastDocTimeStamp 1713086781 [09:29:06]current date 1713086947 [09:29:06]FM_GetShiftState [09:29:06]SAM_PROTO_GetShiftState [09:29:06]wFMCommunicate request_size=4 [09:29:06]MH_SAM_APDU [09:29:06]CAPDU: 80 13 01 00 [09:29:06]Write to MH i2c: E2 08 00 8B 03 80 13 01 00 00 00 00 00 0B [09:29:06]Write i2c OK [09:29:06]MH_I2C_Read... [09:29:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:06]Read from MH i2c: E2 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 0E 00 [09:29:06]MH_I2C_Read... [09:29:06]Read from MH i2c: E2 0E 00 8B 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [09:29:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:29:06]wFMCommunicate OK [09:29:06]SAM_PROTO_GetShiftState done [09:29:06]FM_GetShiftState done [09:29:06]opened in 1713054696 [09:29:06]opened+sec_in_day 1713141096 [09:29:06]quantity*price = 30028 [09:29:06]sum+1 = 30029 [09:29:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 66 14.04.2024 09:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112167 ФПД: 77966685106354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112167&fm=77966685106354&tin=02508201610067®Number=0000000000094237&sum=30000 [09:29:07]StoreToDocumentArchive [09:29:07]shift 357 fd 112167 [09:29:07]save to /storage/0357/doc_00112167 [09:29:07]save last doc name /storage/0357/doc_00112167 to /storage/kkm_last_doc_name [09:29:07]save OK [09:29:07]Clear old archive folders... [09:29:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:29:07]tlvbuf is 0171E370 [09:29:07]SAM_PROTO_ClearQueue [09:29:07]wFMCommunicate request_size=4 [09:29:07]MH_SAM_APDU [09:29:07]CAPDU: 80 09 00 00 [09:29:07]Write to MH i2c: E2 08 00 98 03 80 09 00 00 00 00 00 00 0D [09:29:07]Write i2c OK [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: E2 [09:29:07]MH_I2C_Read... [09:29:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:07]Read from MH i2c: E2 03 00 [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: E2 03 00 98 03 00 90 00 0F [09:29:07]RAPDU: 90 00 [09:29:07]wFMCommunicate OK [09:29:07]SAM_PROTO_ClearQueue done [09:29:07]KKMCreateOFDPacket [09:29:07]OFDProtocolAddRootSTLVToBuf [09:29:07]FM_MakeSignedData [09:29:07]FM_MakeSignedData [09:29:07]SAM_PROTO_SignData [09:29:07]wFMCommunicate request_size=4 [09:29:07]MH_SAM_APDU [09:29:07]CAPDU: 80 0D 01 02 [09:29:07]Write to MH i2c: E2 08 00 99 03 80 0D 01 02 00 00 00 00 15 [09:29:07]Write i2c OK [09:29:07]MH_I2C_Read... [09:29:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:07]Read from MH i2c: E2 [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: E2 03 00 [09:29:07]MH_I2C_Read... [09:29:07]Read from MH i2c: E2 03 00 99 03 00 90 00 10 [09:29:07]RAPDU: 90 00 [09:29:07]wFMCommunicate OK [09:29:07]wFMCommunicate request_size=255 [09:29:07]MH_SAM_APDU [09: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 42 00 00 00 F4 03 04 00 E3 A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B6 01 00 35 04 06 00 46 [09:29:07]Write to MH i2c: E2 02 01 9A 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 42 00 00 00 F4 03 04 00 E3 A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B6 01 00 35 04 06 00 46 00 00 0C [09:29:07]Write i2c OK [09:29:07]MH_I2C_Read... [09:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:08]Read from MH i2c: E2 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 03 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 03 00 9A 03 00 90 00 11 [09:29:08]RAPDU: 90 00 [09:29:08]wFMCommunicate OK [09:29:08]wFMCommunicate request_size=10 [09:29:08]MH_SAM_APDU [09:29:08]CAPDU: 80 0D 02 02 05 E9 08 91 F0 B2 [09:29:08]Write to MH i2c: E2 0D 00 9B 03 80 0D 02 02 05 00 E9 08 91 F0 B2 00 00 46 [09:29:08]Write i2c OK [09:29:08]MH_I2C_Read... [09:29:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:08]Read from MH i2c: E2 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 03 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 03 00 9B 03 00 90 00 12 [09:29:08]RAPDU: 90 00 [09:29:08]wFMCommunicate OK [09:29:08]wFMCommunicate request_size=4 [09:29:08]MH_SAM_APDU [09:29:08]CAPDU: 80 0D 03 02 [09:29:08]Write to MH i2c: E2 08 00 9C 03 80 0D 03 02 00 00 00 00 1A [09:29:08]Write i2c OK [09:29:08]MH_I2C_Read... [09:29:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:08]Read from MH i2c: E2 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 0B 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 0B 00 9C 03 00 14 74 45 6E B5 81 81 60 90 00 6D [09:29:08]RAPDU: 14 74 45 6E B5 81 81 60 90 00 [09:29:08]wFMCommunicate OK [09:29:08]SAM_PROTO_SignData done [09:29:08]FM_MakeSignedData done [09:29:08]CreateOFDProtocolMessage [09:29:08]wFMCommunicate request_size=4 [09:29:08]MH_SAM_APDU [09:29:08]CAPDU: 80 11 00 00 [09:29:08]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [09:29:08]Write i2c OK [09:29:08]MH_I2C_Read... [09:29:08]OFD Sender: No OFD packet to send [09:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:08]Read from MH i2c: E2 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 17 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6B [09:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:29:08]wFMCommunicate OK [09:29:08]CreateOFDProtocolMessage done [09:29:08]OFDSenderStorePacket 112167 [09:29:08]StoreOFDPacket docnum=112167 [09:29:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 00 1A 07 01 AA 12 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 42 00 00 00 F4 03 04 00 E3 A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B6 01 00 35 04 06 00 46 E9 08 91 F0 B2 14 74 45 6E B5 81 81 60 [09:29:08]CheckFolder [09:29:08]dirname=/storage/ofd_packets [09:29:08]CheckFolder done [09:29:08]ProducePacketName [09:29:08]name=ofd_packets/00112167 [09:29:08]NVStorageSaveData ofd_packets/00112167 [09:29:08]File name is /storage/ofd_packets/00112167 [09:29:08]Write 301 bytes [09:29:08]NVStorageSaveData done [09:29:08]OFDSenderStorePacket done [09:29:08]KKMCreateOFDPacket done [09:29:08]NVStorageSaveData kkm_last_timestamp [09:29:08]File name is /storage/kkm_last_timestamp [09:29:08]Write 4 bytes [09:29:08]NVStorageSaveData done [09:29:08]ExternCall_PrintAddStr [09:29:08]wPrintStart [09:29:08]Write to MH i2c: 01 00 00 9E 03 A1 [09:29:08]Write i2c OK [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: 01 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: 01 07 00 [09:29:08]MH_I2C_Read... [09:29:08]Read from MH i2c: 01 07 00 9E 03 00 00 00 00 00 FF 0F B6 [09:29:08]RasterBufferAndPrint [09:29:08]line Счет N : (1)48484 [09:29:08]line ИНН: 02508201610067 [09:29:08]line Контрольно-Кассовый Чек [09:29:08]line ПРОДАЖА [09:29:08]line ТРК (МРК, ГНК) : 11 [09:29:08]line Товар: 2710124130 [09:29:08]line Аи-92-К-5 [09:29:08]line 4.670 * 64.30 [09:29:08]line = 300.28 [09:29:08]line НДС 12% НСП 1% [09:29:08]line > о реализуемом товаре [09:29:08]line ОКРУГЛЕНИЕ: -0.28 [09:29:08]line ИТОГО: 300.00 [09:29:08]line Внесено: 300.00 [09:29:08]line СДАЧА: 0.00 [09:29:08]line НСП 1% : 2.66 [09:29:08]line НДС 12% : 31.89 [09:29:08]line Наличными: 300.00 [09:29:08]line Безнал.: 0.00 [09:29:08]line Место: АЗС № 47 "Партнер Нефть" [09:29:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:29:08]line СНО: Общий режим [09:29:08]line Чек 66 14.04.2024 09:29 [09:29:08]line Смена: 357 ФФД: 1.0 [09:29:08]line ЗНМ: 0300000138 [09:29:08]line РНМ: 0000000000094237 [09:29:08]line Версия ККМ: 001 [09:29:08]line ФМ: 0000000000875019 [09:29:08]line ФД: 112167 [09:29:08]line ФПД: 77966685106354 [09:29:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T092907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112167&fm=77966685106354&tin=02508201610067®Number=0000000000094237&sum=30000 [09:29:08]OFD Sender: Processing packet 112167 [packets to send 71, broken 70] [09:29:08]ProducePacketName [09:29:08]name=ofd_packets/00112167 [09:29:08]OFD Sender: To server: pG, [09:29:08]CommunicateWithHost lk.salyk.kg:30040 [09:29:08]ConnectInit lk.salyk.kg [09:29:08]written 0, free lines is 4095 [09:29:08]Connected sock=10 [09:29:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 00 1A 07 01 AA 12 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 42 00 00 00 F4 03 04 00 E3 A1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B6 01 00 35 04 06 00 46 E9 08 91 F0 B2 14 74 45 6E B5 81 81 60 [09:29:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 55 57 47 00 79 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B6 01 00 F4 03 04 00 6F 49 1B 66 B6 04 01 00 00 15 24 3B BD EF 21 7A 87 [09:29:09]CommunicateWithHost err = 0 [09:29:09]CheckOFDResponse [09:29:09]1017 (14) - 77093643461234 [09:29:09]1041 (16) - 0000000000875019 [09:29:09]1040 (4) - 112167 [09:29:09]1012 (4) - 14.04.2024 03:11 [09:29:09]1206 (1) - 0 [09:29:09]OFD Sender: Remove packet 112167 [09:29:09]ProducePacketName [09:29:09]name=ofd_packets/00112167 [09:29:09]NVStorageDeleteData [09:29:09]Write to MH i2c: 01 00 00 C9 03 CC [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 07 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: 01 07 00 C9 03 00 00 00 00 00 FC 0C DB [09:29:09]RasterBufferAndPrint [09:29:09]line [09:29:09]line [09:29:09]line [09:29:09]line [09:29:09]line [09:29:09]written 0, free lines is 3330 [09:29:09]MH_Cut [09:29:09]Write to MH i2c: D1 01 00 D0 03 01 A5 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: D1 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: D1 01 00 [09:29:09]MH_I2C_Read... [09:29:09]Read from MH i2c: D1 01 00 D0 03 00 A4 [09:29:09]Write to MH i2c: 01 00 00 D1 03 D4 [09:29:09]Write i2c OK [09:29:09]MH_I2C_Read... [09:29:09]OFD Sender: No OFD packet to send [09:29:09]*** Cut start [09:29:09]*** Partial cut [09:29:09]*** CUTSNS_PIN = 1 [09:29:09]*** CUTSNS_PIN = 0 [09:29:10]*** Brake cut motor [09:29:10]Read from MH i2c: 01 [09:29:10]MH_I2C_Read... [09:29:10]*** Stop cut motor [09:29:10]*** Cut end [09:29:10]Read from MH i2c: 01 07 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 FF 0F E9 [09:29:10]process_action close_receipt done [09:29:10]requested_data is exist [09:29:10]produce_requested_data [09:29:10]requested_item fm.sn is exist - process it [09:29:10]wFMCommunicate request_size=4 [09:29:10]MH_SAM_APDU [09:29:10]CAPDU: 80 11 00 00 [09:29:10]Write to MH i2c: E2 08 00 D2 03 80 11 00 00 00 00 00 00 4F [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:10]Read from MH i2c: E2 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 17 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 17 00 D2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A0 [09:29:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:29:10]wFMCommunicate OK [09:29:10]requested_item fd.num is exist - process it [09:29:10]SAM_PROTO_GetFieldsCounters [09:29:10]wFMCommunicate request_size=4 [09:29:10]MH_SAM_APDU [09:29:10]CAPDU: 80 13 00 00 [09:29:10]Write to MH i2c: E2 08 00 D3 03 80 13 00 00 00 00 00 00 52 [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:10]Read from MH i2c: E2 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 62 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 62 00 D3 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 27 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [09:29:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 27 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:10]wFMCommunicate OK [09:29:10]SAM_PROTO_GetFieldsCounters done [09:29:10]requested_item shift.num is exist - process it [09:29:10]requested_item shift.opened is exist - process it [09:29:10]req_shift_opened [09:29:10]FM_GetShiftState [09:29:10]SAM_PROTO_GetShiftState [09:29:10]wFMCommunicate request_size=4 [09:29:10]MH_SAM_APDU [09:29:10]CAPDU: 80 13 01 00 [09:29:10]Write to MH i2c: E2 08 00 D4 03 80 13 01 00 00 00 00 00 54 [09:29:10]Write i2c OK [09:29:10]MH_I2C_Read... [09:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:10]Read from MH i2c: E2 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 0E 00 [09:29:10]MH_I2C_Read... [09:29:10]Read from MH i2c: E2 0E 00 D4 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EC [09:29:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:29:10]wFMCommunicate OK [09:29:10]SAM_PROTO_GetShiftState done [09:29:10]FM_GetShiftState done [09:29:10]req_shift_opened done [09:29:10]requested_item shift.open_date is exist - process it [09:29:10]req_shift_open_date [09:29:10]req_shift_open_date done [09:29:10]produce_requested_data done [09:29:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112167,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:29:10]process_action_free close_receipt [09:29:10]json_value_free [09:29:10]json_value_free done [09:29:10]process_json_proto returns [09:29:10]Send response to host [09:29:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112167,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:29:10]free response buf [09:29:10]execute_script done [09:29:10]execute_script returns [09:29:10]free content buf [09:29:10]Sock 9.Close socket [09:29:10]Sock 9.Thread stoped [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:34]OFD Sender: No OFD packet to send [09:29:39]OFD Sender: No OFD packet to send [09:29:44]OFD Sender: No OFD packet to send [09:29:49]OFD Sender: No OFD packet to send [09:29:54]OFD Sender: No OFD packet to send [09:29:59]OFD Sender: No OFD packet to send [09:30:04]OFD Sender: No OFD packet to send [09:30:09]OFD Sender: No OFD packet to send [09:30:14]OFD Sender: No OFD packet to send [09:30:19]OFD Sender: No OFD packet to send [09:30:24]OFD Sender: No OFD packet to send [09:30:29]OFD Sender: No OFD packet to send [09:30:34]OFD Sender: No OFD packet to send [09:30:39]OFD Sender: No OFD packet to send [09:30:43]accept exits with 8 [09:30:43]New connection [09:30:43]New thread 3067100516 created [09:30:43]Thread 3067243876 joined [09:30:43]Waiting for new connection... [09:30:43] Sock 8.Parse request [09:30:43]Sock 8.Check first char [09:30:43]Sock 8.First char is OK [09:30:43]request: POST /json_proto HTTP/1.0 [09:30:43]Method: POST [09:30:43]URL: /json_proto [09:30:43]Method is POST - this is cgi request [09:30:43]url: /json_proto [09:30:43]query_string will be loaded in cgi processing [09:30:43]execute_cgi json_proto POST (null) [09:30:43]execute_cgi path=json_proto method=POST [09:30:43]POST find Content-Length [09:30:43]Host: 172.17.96.197:8080 [09:30:43]Content-Length: 676 [09:30:43]Content-Type: application/json [09:30:43] [09:30:43]POST finish read [09:30:43]Found Content-Length = 676 [09:30:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48485", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:30:43]execute_script... [09:30:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48485", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:30:43]POST & json_proto [09:30:43]process_json_proto [09:30:43]json parsed OK: [09:30:43]protocol is kg_v1.0 [09:30:43]action value=close_receipt [09:30:43]process_action close_receipt [09:30:43]cmd_close_receipt [09:30:43]MH_GetDate [09:30:43]Write to MH i2c: F0 00 00 D5 03 C7 [09:30:43]Write i2c OK [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: F0 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: F0 09 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: F0 09 00 D5 03 00 44 A2 1B 66 E0 85 7F 64 7F [09:30:43]GetLastDocTimeStamp 1713086947 [09:30:43]current date 1713087044 [09:30:43]FM_GetShiftState [09:30:43]SAM_PROTO_GetShiftState [09:30:43]wFMCommunicate request_size=4 [09:30:43]MH_SAM_APDU [09:30:43]CAPDU: 80 13 01 00 [09:30:43]Write to MH i2c: E2 08 00 D6 03 80 13 01 00 00 00 00 00 56 [09:30:43]Write i2c OK [09:30:43]MH_I2C_Read... [09:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:43]Read from MH i2c: E2 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 0E 00 [09:30:43]MH_I2C_Read... [09:30:43]Read from MH i2c: E2 0E 00 D6 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [09:30:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:30:43]wFMCommunicate OK [09:30:43]SAM_PROTO_GetShiftState done [09:30:43]FM_GetShiftState done [09:30:43]opened in 1713054696 [09:30:43]opened+sec_in_day 1713141096 [09:30:43]quantity*price = 50025 [09:30:43]sum+1 = 50026 [09:30:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 67 14.04.2024 09:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112168 ФПД: 2521774413662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112168&fm=2521774413662&tin=02508201610067®Number=0000000000094237&sum=50000 [09:30:44]StoreToDocumentArchive [09:30:44]shift 357 fd 112168 [09:30:44]save to /storage/0357/doc_00112168 [09:30:44]save last doc name /storage/0357/doc_00112168 to /storage/kkm_last_doc_name [09:30:44]save OK [09:30:44]Clear old archive folders... [09:30:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:44]tlvbuf is 0171C960 [09:30:44]SAM_PROTO_ClearQueue [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 09 00 00 [09:30:44]Write to MH i2c: E2 08 00 E3 03 80 09 00 00 00 00 00 00 58 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 E3 03 00 90 00 5A [09:30:44]RAPDU: 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_ClearQueue done [09:30:44]KKMCreateOFDPacket [09:30:44]OFDProtocolAddRootSTLVToBuf [09:30:44]FM_MakeSignedData [09:30:44]FM_MakeSignedData [09:30:44]SAM_PROTO_SignData [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 0D 01 02 [09:30:44]Write to MH i2c: E2 08 00 E4 03 80 0D 01 02 00 00 00 00 60 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 E4 03 00 90 00 5B [09:30:44]RAPDU: 90 00 [09:30:44]wFMCommunicate OK [09:30:44]wFMCommunicate request_size=255 [09:30:44]MH_SAM_APDU [09:30: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 43 00 00 00 F4 03 04 00 44 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B6 01 00 35 04 06 00 02 [09:30:44]Write to MH i2c: E2 02 01 E5 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 43 00 00 00 F4 03 04 00 44 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B6 01 00 35 04 06 00 02 00 00 F4 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 E5 03 00 90 00 5C [09:30:44]RAPDU: 90 00 [09:30:44]wFMCommunicate OK [09:30:44]wFMCommunicate request_size=10 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 0D 02 02 05 4B 25 77 D7 5E [09:30:44]Write to MH i2c: E2 0D 00 E6 03 80 0D 02 02 05 00 4B 25 77 D7 5E 00 00 89 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]OFD Sender: No OFD packet to send [09:30:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 03 00 E6 03 00 90 00 5D [09:30:44]RAPDU: 90 00 [09:30:44]wFMCommunicate OK [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 0D 03 02 [09:30:44]Write to MH i2c: E2 08 00 E7 03 80 0D 03 02 00 00 00 00 65 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0B 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0B 00 E7 03 00 21 74 87 30 34 7F 77 42 90 00 1E [09:30:44]RAPDU: 21 74 87 30 34 7F 77 42 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_SignData done [09:30:44]FM_MakeSignedData done [09:30:44]CreateOFDProtocolMessage [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 11 00 00 [09:30:44]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 17 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B6 [09:30:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:30:44]wFMCommunicate OK [09:30:44]CreateOFDProtocolMessage done [09:30:44]OFDSenderStorePacket 112168 [09:30:44]StoreOFDPacket docnum=112168 [09:30:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D4 1A 07 01 F4 00 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 43 00 00 00 F4 03 04 00 44 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B6 01 00 35 04 06 00 02 4B 25 77 D7 5E 21 74 87 30 34 7F 77 42 [09:30:44]CheckFolder [09:30:44]dirname=/storage/ofd_packets [09:30:44]CheckFolder done [09:30:44]ProducePacketName [09:30:44]name=ofd_packets/00112168 [09:30:44]NVStorageSaveData ofd_packets/00112168 [09:30:44]File name is /storage/ofd_packets/00112168 [09:30:44]Write 301 bytes [09:30:44]NVStorageSaveData done [09:30:44]OFDSenderStorePacket done [09:30:44]KKMCreateOFDPacket done [09:30:44]NVStorageSaveData kkm_last_timestamp [09:30:44]File name is /storage/kkm_last_timestamp [09:30:44]Write 4 bytes [09:30:44]NVStorageSaveData done [09:30:44]ExternCall_PrintAddStr [09:30:44]wPrintStart [09:30:44]Write to MH i2c: 01 00 00 E9 03 EC [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: 01 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: 01 07 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: 01 07 00 E9 03 00 00 00 00 00 FF 0F 01 [09:30:44]RasterBufferAndPrint [09:30:44]line Счет N : (1)48485 [09:30:44]line ИНН: 02508201610067 [09:30:44]line Контрольно-Кассовый Чек [09:30:44]line ПРОДАЖА [09:30:44]line ТРК (МРК, ГНК) : 32 [09:30:44]line Товар: 2710124130 [09:30:44]line Аи-92-К-5 [09:30:44]line 7.780 * 64.30 [09:30:44]line = 500.25 [09:30:44]line НДС 12% НСП 1% [09:30:44]line > о реализуемом товаре [09:30:44]line ОКРУГЛЕНИЕ: -0.25 [09:30:44]line ИТОГО: 500.00 [09:30:44]line Внесено: 500.00 [09:30:44]line СДАЧА: 0.00 [09:30:44]line НСП 1% : 4.43 [09:30:44]line НДС 12% : 53.12 [09:30:44]line Наличными: 500.00 [09:30:44]line Безнал.: 0.00 [09:30:44]line Место: АЗС № 47 "Партнер Нефть" [09:30:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:30:44]line СНО: Общий режим [09:30:44]line Чек 67 14.04.2024 09:30 [09:30:45]line Смена: 357 ФФД: 1.0 [09:30:45]line ЗНМ: 0300000138 [09:30:45]line РНМ: 0000000000094237 [09:30:45]line Версия ККМ: 001 [09:30:45]line ФМ: 0000000000875019 [09:30:45]line ФД: 112168 [09:30:45]line ФПД: 2521774413662 [09:30:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112168&fm=2521774413662&tin=02508201610067®Number=0000000000094237&sum=50000 [09:30:45]OFD Sender: Processing packet 112168 [packets to send 71, broken 70] [09:30:45]ProducePacketName [09:30:45]name=ofd_packets/00112168 [09:30:45]OFD Sender: To server: pG, [09:30:45]CommunicateWithHost lk.salyk.kg:30040 [09:30:45]ConnectInit lk.salyk.kg [09:30:45]written 0, free lines is 4095 [09:30:45]Connected sock=10 [09:30:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D4 1A 07 01 F4 00 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 43 00 00 00 F4 03 04 00 44 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B6 01 00 35 04 06 00 02 4B 25 77 D7 5E 21 74 87 30 34 7F 77 42 [09:30:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 9A 47 00 A0 D1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B6 01 00 F4 03 04 00 D0 49 1B 66 B6 04 01 00 00 BE 77 D7 69 3F EC C7 D9 [09:30:45]CommunicateWithHost err = 0 [09:30:45]CheckOFDResponse [09:30:45]1017 (14) - 77093643461234 [09:30:45]1041 (16) - 0000000000875019 [09:30:45]1040 (4) - 112168 [09:30:45]1012 (4) - 14.04.2024 03:13 [09:30:45]1206 (1) - 0 [09:30:45]OFD Sender: Remove packet 112168 [09:30:45]ProducePacketName [09:30:45]name=ofd_packets/00112168 [09:30:45]NVStorageDeleteData [09:30:45]Write to MH i2c: 01 00 00 14 04 18 [09:30:45]Write i2c OK [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: 01 [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: 01 07 00 [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: 01 07 00 14 04 00 00 00 00 00 EF 0C 1A [09:30:45]RasterBufferAndPrint [09:30:45]line [09:30:45]line [09:30:45]line [09:30:45]line [09:30:45]line [09:30:45]written 0, free lines is 3317 [09:30:45]MH_Cut [09:30:45]Write to MH i2c: D1 01 00 1B 04 01 F1 [09:30:45]Write i2c OK [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: D1 [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: D1 01 00 [09:30:45]MH_I2C_Read... [09:30:45]Read from MH i2c: D1 01 00 1B 04 00 F0 [09:30:45]Write to MH i2c: 01 00 00 1C 04 20 [09:30:45]Write i2c OK [09:30:45]MH_I2C_Read... [09:30:46]OFD Sender: No OFD packet to send [09:30:46]*** Cut start [09:30:46]*** Partial cut [09:30:46]*** CUTSNS_PIN = 1 [09:30:46]*** CUTSNS_PIN = 0 [09:30:46]*** Brake cut motor [09:30:47]Read from MH i2c: 01 [09:30:47]MH_I2C_Read... [09:30:47]*** Stop cut motor [09:30:47]*** Cut end [09:30:47]Read from MH i2c: 01 07 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 07 00 1C 04 00 00 00 00 00 FF 0F 35 [09:30:47]process_action close_receipt done [09:30:47]requested_data is exist [09:30:47]produce_requested_data [09:30:47]requested_item fm.sn is exist - process it [09:30:47]wFMCommunicate request_size=4 [09:30:47]MH_SAM_APDU [09:30:47]CAPDU: 80 11 00 00 [09:30:47]Write to MH i2c: E2 08 00 1D 04 80 11 00 00 00 00 00 00 9B [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:47]Read from MH i2c: E2 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 17 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 17 00 1D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EC [09:30:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:30:47]wFMCommunicate OK [09:30:47]requested_item fd.num is exist - process it [09:30:47]SAM_PROTO_GetFieldsCounters [09:30:47]wFMCommunicate request_size=4 [09:30:47]MH_SAM_APDU [09:30:47]CAPDU: 80 13 00 00 [09:30:47]Write to MH i2c: E2 08 00 1E 04 80 13 00 00 00 00 00 00 9E [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:47]Read from MH i2c: E2 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 62 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 62 00 1E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 28 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [09:30:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 28 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:47]wFMCommunicate OK [09:30:47]SAM_PROTO_GetFieldsCounters done [09:30:47]requested_item shift.num is exist - process it [09:30:47]requested_item shift.opened is exist - process it [09:30:47]req_shift_opened [09:30:47]FM_GetShiftState [09:30:47]SAM_PROTO_GetShiftState [09:30:47]wFMCommunicate request_size=4 [09:30:47]MH_SAM_APDU [09:30:47]CAPDU: 80 13 01 00 [09:30:47]Write to MH i2c: E2 08 00 1F 04 80 13 01 00 00 00 00 00 A0 [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:47]Read from MH i2c: E2 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 0E 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: E2 0E 00 1F 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 38 [09:30:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:30:47]wFMCommunicate OK [09:30:47]SAM_PROTO_GetShiftState done [09:30:47]FM_GetShiftState done [09:30:47]req_shift_opened done [09:30:47]requested_item shift.open_date is exist - process it [09:30:47]req_shift_open_date [09:30:47]req_shift_open_date done [09:30:47]produce_requested_data done [09:30:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112168,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:30:47]process_action_free close_receipt [09:30:47]json_value_free [09:30:47]json_value_free done [09:30:47]process_json_proto returns [09:30:47]Send response to host [09:30:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112168,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:30:47]free response buf [09:30:47]execute_script done [09:30:47]execute_script returns [09:30:47]free content buf [09:30:47]Sock 8.Close socket [09:30:47]Sock 8.Thread stoped [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:02]accept exits with 9 [09:31:02]New connection [09:31:02]New thread 3067243876 created [09:31:02]Thread 3067100516 joined [09:31:02]Waiting for new connection... [09:31:02] Sock 9.Parse request [09:31:02]Sock 9.Check first char [09:31:02]Sock 9.First char is OK [09:31:02]request: POST /json_proto HTTP/1.0 [09:31:02]Method: POST [09:31:02]URL: /json_proto [09:31:02]Method is POST - this is cgi request [09:31:02]url: /json_proto [09:31:02]query_string will be loaded in cgi processing [09:31:02]execute_cgi json_proto POST (null) [09:31:02]execute_cgi path=json_proto method=POST [09:31:02]POST find Content-Length [09:31:02]Host: 172.17.96.197:8080 [09:31:02]Content-Length: 676 [09:31:02]Content-Type: application/json [09:31:02] [09:31:02]POST finish read [09:31:02]Found Content-Length = 676 [09:31:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "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" ] } } [09:31:02]execute_script... [09:31: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)48486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.450, "sum" : 350.44, "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" ] } } [09:31:02]POST & json_proto [09:31:02]process_json_proto [09:31:02]json parsed OK: [09:31:02]protocol is kg_v1.0 [09:31:02]action value=close_receipt [09:31:02]process_action close_receipt [09:31:02]cmd_close_receipt [09:31:02]MH_GetDate [09:31:02]Write to MH i2c: F0 00 00 20 04 13 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: F0 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: F0 09 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: F0 09 00 20 04 00 57 A2 1B 66 E0 85 7F 64 DE [09:31:02]GetLastDocTimeStamp 1713087044 [09:31:02]current date 1713087063 [09:31:02]FM_GetShiftState [09:31:02]SAM_PROTO_GetShiftState [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 01 00 [09:31:02]Write to MH i2c: E2 08 00 21 04 80 13 01 00 00 00 00 00 A2 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 21 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3A [09:31:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetShiftState done [09:31:02]FM_GetShiftState done [09:31:02]opened in 1713054696 [09:31:02]opened+sec_in_day 1713141096 [09:31:02]quantity*price = 35043 [09:31:02]sum+1 = 35045 [09:31:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 68 14.04.2024 09:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112169 ФПД: 143783183226697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093103&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112169&fm=143783183226697&tin=02508201610067®Number=0000000000094237&sum=35000 [09:31:03]StoreToDocumentArchive [09:31:03]shift 357 fd 112169 [09:31:03]save to /storage/0357/doc_00112169 [09:31:03]save last doc name /storage/0357/doc_00112169 to /storage/kkm_last_doc_name [09:31:03]save OK [09:31:03]Clear old archive folders... [09:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:03]tlvbuf is 0170DF30 [09:31:03]SAM_PROTO_ClearQueue [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 09 00 00 [09:31:03]Write to MH i2c: E2 08 00 2E 04 80 09 00 00 00 00 00 00 A4 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:03]Read from MH i2c: E2 03 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 2E 04 00 90 00 A6 [09:31:03]RAPDU: 90 00 [09:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_ClearQueue done [09:31:03]KKMCreateOFDPacket [09:31:03]OFDProtocolAddRootSTLVToBuf [09:31:03]FM_MakeSignedData [09:31:03]FM_MakeSignedData [09:31:03]SAM_PROTO_SignData [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 0D 01 02 [09:31:03]Write to MH i2c: E2 08 00 2F 04 80 0D 01 02 00 00 00 00 AC [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 2F 04 00 90 00 A7 [09:31:03]RAPDU: 90 00 [09:31:03]wFMCommunicate OK [09:31:03]wFMCommunicate request_size=255 [09:31:03]MH_SAM_APDU [09:31: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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 44 00 00 00 F4 03 04 00 57 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B6 01 00 35 04 06 00 82 [09:31:03]Write to MH i2c: E2 02 01 30 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 44 00 00 00 F4 03 04 00 57 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B6 01 00 35 04 06 00 82 00 00 8A [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 30 04 00 90 00 A8 [09:31:03]RAPDU: 90 00 [09:31:03]wFMCommunicate OK [09:31:03]wFMCommunicate request_size=10 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 0D 02 02 05 C5 21 8F 97 49 [09:31:03]Write to MH i2c: E2 0D 00 31 04 80 0D 02 02 05 00 C5 21 8F 97 49 00 00 0E [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 03 00 31 04 00 90 00 A9 [09:31:03]RAPDU: 90 00 [09:31:03]wFMCommunicate OK [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 0D 03 02 [09:31:03]Write to MH i2c: E2 08 00 32 04 80 0D 03 02 00 00 00 00 B1 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0B 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 0B 00 32 04 00 C6 11 7D 91 0B 1A CA D1 90 00 57 [09:31:03]RAPDU: C6 11 7D 91 0B 1A CA D1 90 00 [09:31:03]wFMCommunicate OK [09:31:03]SAM_PROTO_SignData done [09:31:03]FM_MakeSignedData done [09:31:03]CreateOFDProtocolMessage [09:31:03]wFMCommunicate request_size=4 [09:31:03]MH_SAM_APDU [09:31:03]CAPDU: 80 11 00 00 [09:31:03]Write to MH i2c: E2 08 00 33 04 80 11 00 00 00 00 00 00 B1 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:03]Read from MH i2c: E2 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: E2 17 00 33 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 02 [09:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:31:03]wFMCommunicate OK [09:31:03]CreateOFDProtocolMessage done [09:31:03]OFDSenderStorePacket 112169 [09:31:03]StoreOFDPacket docnum=112169 [09:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 99 97 07 01 EF B0 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 44 00 00 00 F4 03 04 00 57 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B6 01 00 35 04 06 00 82 C5 21 8F 97 49 C6 11 7D 91 0B 1A CA D1 [09:31:03]CheckFolder [09:31:03]dirname=/storage/ofd_packets [09:31:03]CheckFolder done [09:31:03]ProducePacketName [09:31:03]name=ofd_packets/00112169 [09:31:03]NVStorageSaveData ofd_packets/00112169 [09:31:03]File name is /storage/ofd_packets/00112169 [09:31:03]Write 301 bytes [09:31:03]NVStorageSaveData done [09:31:03]OFDSenderStorePacket done [09:31:03]KKMCreateOFDPacket done [09:31:03]NVStorageSaveData kkm_last_timestamp [09:31:03]File name is /storage/kkm_last_timestamp [09:31:03]Write 4 bytes [09:31:03]NVStorageSaveData done [09:31:03]ExternCall_PrintAddStr [09:31:03]wPrintStart [09:31:03]Write to MH i2c: 01 00 00 34 04 38 [09:31:03]Write i2c OK [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 [09:31:03]MH_I2C_Read... [09:31:03]Read from MH i2c: 01 07 00 34 04 00 00 00 00 00 FF 0F 4D [09:31:03]RasterBufferAndPrint [09:31:03]line Счет N : (1)48486 [09:31:03]line ИНН: 02508201610067 [09:31:03]line Контрольно-Кассовый Чек [09:31:03]line ПРОДАЖА [09:31:03]line ТРК (МРК, ГНК) : 21 [09:31:03]line Товар: 2710124130 [09:31:03]line Аи-92-К-5 [09:31:03]line 5.450 * 64.30 [09:31:03]line = 350.44 [09:31:03]line НДС 12% НСП 1% [09:31:03]line > о реализуемом товаре [09:31:03]line ОКРУГЛЕНИЕ: -0.44 [09:31:03]line ИТОГО: 350.00 [09:31:03]line Внесено: 350.00 [09:31:03]line СДАЧА: 0.00 [09:31:03]line НСП 1% : 3.10 [09:31:03]line НДС 12% : 37.21 [09:31:03]line Наличными: 350.00 [09:31:03]line Безнал.: 0.00 [09:31:03]line Место: АЗС № 47 "Партнер Нефть" [09:31:03]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:31:03]line СНО: Общий режим [09:31:03]line Чек 68 14.04.2024 09:31 [09:31:03]line Смена: 357 ФФД: 1.0 [09:31:03]line ЗНМ: 0300000138 [09:31:03]line РНМ: 0000000000094237 [09:31:03]line Версия ККМ: 001 [09:31:03]line ФМ: 0000000000875019 [09:31:03]line ФД: 112169 [09:31:03]line ФПД: 143783183226697 [09:31:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093103&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112169&fm=143783183226697&tin=02508201610067®Number=0000000000094237&sum=35000 [09:31:04]written 0, free lines is 4095 [09:31:04]OFD Sender: Processing packet 112169 [packets to send 71, broken 70] [09:31:04]ProducePacketName [09:31:04]name=ofd_packets/00112169 [09:31:04]OFD Sender: To server: pG, [09:31:04]CommunicateWithHost lk.salyk.kg:30040 [09:31:04]ConnectInit lk.salyk.kg [09:31:04]Connected sock=10 [09:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 99 97 07 01 EF B0 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 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 89 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 44 00 00 00 F4 03 04 00 57 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B6 01 00 35 04 06 00 82 C5 21 8F 97 49 C6 11 7D 91 0B 1A CA D1 [09:31:04]Write to MH i2c: 01 00 00 5F 04 63 [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: 01 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: 01 07 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: 01 07 00 5F 04 00 00 00 00 00 E0 0C 56 [09:31:04]RasterBufferAndPrint [09:31:04]line [09:31:04]line [09:31:04]line [09:31:04]line [09:31:04]line [09:31:04]written 0, free lines is 3302 [09:31:04]MH_Cut [09:31:04]Write to MH i2c: D1 01 00 66 04 01 3C [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: D1 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: D1 01 00 [09:31:04]MH_I2C_Read... [09:31:04]Read from MH i2c: D1 01 00 66 04 00 3B [09:31:04]Write to MH i2c: 01 00 00 67 04 6B [09:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 12 32 47 00 A1 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B6 01 00 F4 03 04 00 E3 49 1B 66 B6 04 01 00 00 6A 70 DE 1A AF EB 06 51 [09:31:04]CommunicateWithHost err = 0 [09:31:04]CheckOFDResponse [09:31:04]1017 (14) - 77093643461234 [09:31:04]1041 (16) - 0000000000875019 [09:31:04]1040 (4) - 112169 [09:31:04]1012 (4) - 14.04.2024 03:13 [09:31:04]1206 (1) - 0 [09:31:04]OFD Sender: Remove packet 112169 [09:31:04]ProducePacketName [09:31:04]name=ofd_packets/00112169 [09:31:04]NVStorageDeleteData [09:31:04]Write i2c OK [09:31:04]MH_I2C_Read... [09:31:05]OFD Sender: No OFD packet to send [09:31:05]*** Cut start [09:31:05]*** Partial cut [09:31:05]*** CUTSNS_PIN = 1 [09:31:05]*** CUTSNS_PIN = 0 [09:31:05]*** Brake cut motor [09:31:05]Read from MH i2c: 01 [09:31:05]MH_I2C_Read... [09:31:05]*** Stop cut motor [09:31:05]*** Cut end [09:31:05]Read from MH i2c: 01 07 00 [09:31:05]MH_I2C_Read... [09:31:05]Read from MH i2c: 01 07 00 67 04 00 00 00 00 00 FF 0F 80 [09:31:05]process_action close_receipt done [09:31:05]requested_data is exist [09:31:05]produce_requested_data [09:31:05]requested_item fm.sn is exist - process it [09:31:05]wFMCommunicate request_size=4 [09:31:05]MH_SAM_APDU [09:31:05]CAPDU: 80 11 00 00 [09:31:05]Write to MH i2c: E2 08 00 68 04 80 11 00 00 00 00 00 00 E6 [09:31:05]Write i2c OK [09:31:05]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 17 00 68 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 37 [09:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:31:06]wFMCommunicate OK [09:31:06]requested_item fd.num is exist - process it [09:31:06]SAM_PROTO_GetFieldsCounters [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 13 00 00 [09:31:06]Write to MH i2c: E2 08 00 69 04 80 13 00 00 00 00 00 00 E9 [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 62 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 62 00 69 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 29 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [09:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 29 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:06]wFMCommunicate OK [09:31:06]SAM_PROTO_GetFieldsCounters done [09:31:06]requested_item shift.num is exist - process it [09:31:06]requested_item shift.opened is exist - process it [09:31:06]req_shift_opened [09:31:06]FM_GetShiftState [09:31:06]SAM_PROTO_GetShiftState [09:31:06]wFMCommunicate request_size=4 [09:31:06]MH_SAM_APDU [09:31:06]CAPDU: 80 13 01 00 [09:31:06]Write to MH i2c: E2 08 00 6A 04 80 13 01 00 00 00 00 00 EB [09:31:06]Write i2c OK [09:31:06]MH_I2C_Read... [09:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:06]Read from MH i2c: E2 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0E 00 [09:31:06]MH_I2C_Read... [09:31:06]Read from MH i2c: E2 0E 00 6A 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 83 [09:31:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:31:06]wFMCommunicate OK [09:31:06]SAM_PROTO_GetShiftState done [09:31:06]FM_GetShiftState done [09:31:06]req_shift_opened done [09:31:06]requested_item shift.open_date is exist - process it [09:31:06]req_shift_open_date [09:31:06]req_shift_open_date done [09:31:06]produce_requested_data done [09:31:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112169,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:31:06]process_action_free close_receipt [09:31:06]json_value_free [09:31:06]json_value_free done [09:31:06]process_json_proto returns [09:31:06]Send response to host [09:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112169,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:31:06]free response buf [09:31:06]execute_script done [09:31:06]execute_script returns [09:31:06]free content buf [09:31:06]Sock 9.Close socket [09:31:06]Sock 9.Thread stoped [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:49]accept exits with 8 [09:31:49]New connection [09:31:49]New thread 3067100516 created [09:31:49]Thread 3067243876 joined [09:31:49]Waiting for new connection... [09:31:49] Sock 8.Parse request [09:31:49]Sock 8.Check first char [09:31:49]Sock 8.First char is OK [09:31:49]request: POST /json_proto HTTP/1.0 [09:31:49]Method: POST [09:31:49]URL: /json_proto [09:31:49]Method is POST - this is cgi request [09:31:49]url: /json_proto [09:31:49]query_string will be loaded in cgi processing [09:31:49]execute_cgi json_proto POST (null) [09:31:49]execute_cgi path=json_proto method=POST [09:31:49]POST find Content-Length [09:31:49]Host: 172.17.96.197:8080 [09:31:49]Content-Length: 681 [09:31:49]Content-Type: application/json [09:31:49] [09:31:49]POST finish read [09:31:49]Found Content-Length = 681 [09:31:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:31:49]execute_script... [09:31:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:31:49]POST & json_proto [09:31:49]process_json_proto [09:31:49]json parsed OK: [09:31:49]protocol is kg_v1.0 [09:31:49]action value=close_receipt [09:31:49]process_action close_receipt [09:31:49]cmd_close_receipt [09:31:49]MH_GetDate [09:31:49]Write to MH i2c: F0 00 00 6B 04 5E [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 09 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: F0 09 00 6B 04 00 86 A2 1B 66 E0 85 7F 64 58 [09:31:49]GetLastDocTimeStamp 1713087063 [09:31:49]current date 1713087110 [09:31:49]FM_GetShiftState [09:31:49]SAM_PROTO_GetShiftState [09:31:49]wFMCommunicate request_size=4 [09:31:49]MH_SAM_APDU [09:31:49]CAPDU: 80 13 01 00 [09:31:49]Write to MH i2c: E2 08 00 6C 04 80 13 01 00 00 00 00 00 ED [09:31:49]Write i2c OK [09:31:49]MH_I2C_Read... [09:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:49]Read from MH i2c: E2 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 [09:31:49]MH_I2C_Read... [09:31:49]Read from MH i2c: E2 0E 00 6C 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 85 [09:31:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:31:49]wFMCommunicate OK [09:31:49]SAM_PROTO_GetShiftState done [09:31:49]FM_GetShiftState done [09:31:49]opened in 1713054696 [09:31:49]opened+sec_in_day 1713141096 [09:31:49]quantity*price = 100050 [09:31:49]sum+1 = 100052 [09:31:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 69 14.04.2024 09:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112170 ФПД: 47218722325879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112170&fm=47218722325879&tin=02508201610067®Number=0000000000094237&sum=100000 [09:31:50]StoreToDocumentArchive [09:31:50]shift 357 fd 112170 [09:31:50]save to /storage/0357/doc_00112170 [09:31:50]save last doc name /storage/0357/doc_00112170 to /storage/kkm_last_doc_name [09:31:50]save OK [09:31:50]Clear old archive folders... [09:31:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:31:50]tlvbuf is 0170A990 [09:31:50]SAM_PROTO_ClearQueue [09:31:50]wFMCommunicate request_size=4 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 09 00 00 [09:31:50]Write to MH i2c: E2 08 00 79 04 80 09 00 00 00 00 00 00 EF [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 79 04 00 90 00 F1 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]SAM_PROTO_ClearQueue done [09:31:50]KKMCreateOFDPacket [09:31:50]OFDProtocolAddRootSTLVToBuf [09:31:50]FM_MakeSignedData [09:31:50]FM_MakeSignedData [09:31:50]SAM_PROTO_SignData [09:31:50]wFMCommunicate request_size=4 [09:31:50]MH_SAM_APDU [09:31:50]CAPDU: 80 0D 01 02 [09:31:50]Write to MH i2c: E2 08 00 7A 04 80 0D 01 02 00 00 00 00 F7 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:50]Read from MH i2c: E2 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 [09:31:50]MH_I2C_Read... [09:31:50]Read from MH i2c: E2 03 00 7A 04 00 90 00 F2 [09:31:50]RAPDU: 90 00 [09:31:50]wFMCommunicate OK [09:31:50]wFMCommunicate request_size=255 [09:31:50]MH_SAM_APDU [09: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 45 00 00 00 F4 03 04 00 86 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B6 01 00 35 04 06 00 2A [09:31:50]Write to MH i2c: E2 02 01 7B 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 45 00 00 00 F4 03 04 00 86 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B6 01 00 35 04 06 00 2A 00 00 63 [09:31:50]Write i2c OK [09:31:50]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 03 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 03 00 7B 04 00 90 00 F3 [09:31:51]RAPDU: 90 00 [09:31:51]wFMCommunicate OK [09:31:51]wFMCommunicate request_size=10 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 0D 02 02 05 F1 F7 2B C5 77 [09:31:51]Write to MH i2c: E2 0D 00 7C 04 80 0D 02 02 05 00 F1 F7 2B C5 77 00 00 53 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 03 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 03 00 7C 04 00 90 00 F4 [09:31:51]RAPDU: 90 00 [09:31:51]wFMCommunicate OK [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 0D 03 02 [09:31:51]Write to MH i2c: E2 08 00 7D 04 80 0D 03 02 00 00 00 00 FC [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0B 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 0B 00 7D 04 00 52 65 F0 AE CF 1B 54 6D 90 00 FD [09:31:51]RAPDU: 52 65 F0 AE CF 1B 54 6D 90 00 [09:31:51]wFMCommunicate OK [09:31:51]SAM_PROTO_SignData done [09:31:51]FM_MakeSignedData done [09:31:51]CreateOFDProtocolMessage [09:31:51]wFMCommunicate request_size=4 [09:31:51]MH_SAM_APDU [09:31:51]CAPDU: 80 11 00 00 [09:31:51]Write to MH i2c: E2 08 00 7E 04 80 11 00 00 00 00 00 00 FC [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:51]Read from MH i2c: E2 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: E2 17 00 7E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4D [09:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:31:51]wFMCommunicate OK [09:31:51]CreateOFDProtocolMessage done [09:31:51]OFDSenderStorePacket 112170 [09:31:51]StoreOFDPacket docnum=112170 [09:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 99 04 07 01 7E 37 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 3C 00 00 00 00 00 37 04 06 00 1E 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 45 00 00 00 F4 03 04 00 86 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B6 01 00 35 04 06 00 2A F1 F7 2B C5 77 52 65 F0 AE CF 1B 54 6D [09:31:51]CheckFolder [09:31:51]dirname=/storage/ofd_packets [09:31:51]CheckFolder done [09:31:51]ProducePacketName [09:31:51]name=ofd_packets/00112170 [09:31:51]NVStorageSaveData ofd_packets/00112170 [09:31:51]File name is /storage/ofd_packets/00112170 [09:31:51]Write 301 bytes [09:31:51]NVStorageSaveData done [09:31:51]OFDSenderStorePacket done [09:31:51]KKMCreateOFDPacket done [09:31:51]NVStorageSaveData kkm_last_timestamp [09:31:51]File name is /storage/kkm_last_timestamp [09:31:51]Write 4 bytes [09:31:51]NVStorageSaveData done [09:31:51]ExternCall_PrintAddStr [09:31:51]wPrintStart [09:31:51]Write to MH i2c: 01 00 00 7F 04 83 [09:31:51]Write i2c OK [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 [09:31:51]MH_I2C_Read... [09:31:51]Read from MH i2c: 01 07 00 7F 04 00 00 00 00 00 FF 0F 98 [09:31:51]RasterBufferAndPrint [09:31:51]line Счет N : (1)48487 [09:31:51]line ИНН: 02508201610067 [09:31:51]line Контрольно-Кассовый Чек [09:31:51]line ПРОДАЖА [09:31:51]line ТРК (МРК, ГНК) : 11 [09:31:51]line Товар: 2710124130 [09:31:51]line Аи-92-К-5 [09:31:51]line 15.560 * 64.30 [09:31:51]line = 1000.51 [09:31:51]line НДС 12% НСП 1% [09:31:51]line > о реализуемом товаре [09:31:51]line ОКРУГЛЕНИЕ: -0.51 [09:31:51]line ИТОГО: 1000.00 [09:31:51]line Внесено: 1000.00 [09:31:51]line СДАЧА: 0.00 [09:31:51]line НСП 1% : 8.85 [09:31:51]line НДС 12% : 106.25 [09:31:51]line Наличными: 1000.00 [09:31:51]line Безнал.: 0.00 [09:31:51]line Место: АЗС № 47 "Партнер Нефть" [09:31:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:31:51]line СНО: Общий режим [09:31:51]line Чек 69 14.04.2024 09:31 [09:31:51]line Смена: 357 ФФД: 1.0 [09:31:51]line ЗНМ: 0300000138 [09:31:51]line РНМ: 0000000000094237 [09:31:51]line Версия ККМ: 001 [09:31:51]line ФМ: 0000000000875019 [09:31:51]line ФД: 112170 [09:31:51]line ФПД: 47218722325879 [09:31:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T093150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112170&fm=47218722325879&tin=02508201610067®Number=0000000000094237&sum=100000 [09:31:51]written 0, free lines is 4095 [09:31:51]OFD Sender: Processing packet 112170 [packets to send 71, broken 70] [09:31:51]ProducePacketName [09:31:51]name=ofd_packets/00112170 [09:31:51]OFD Sender: To server: pG, [09:31:51]CommunicateWithHost lk.salyk.kg:30040 [09:31:51]ConnectInit lk.salyk.kg [09:31:51]Connected sock=10 [09:31:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 99 04 07 01 7E 37 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 3C 00 00 00 00 00 37 04 06 00 1E 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 45 00 00 00 F4 03 04 00 86 A2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B6 01 00 35 04 06 00 2A F1 F7 2B C5 77 52 65 F0 AE CF 1B 54 6D [09:31:52]Write to MH i2c: 01 00 00 AA 04 AE [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: 01 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: 01 07 00 [09:31:52]MH_I2C_Read... [09:31:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F3 B9 47 00 D6 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B6 01 00 F4 03 04 00 12 4A 1B 66 B6 04 01 00 00 0B B2 13 02 5D 6B 05 28 [09:31:52]CommunicateWithHost err = 0 [09:31:52]CheckOFDResponse [09:31:52]1017 (14) - 77093643461234 [09:31:52]1041 (16) - 0000000000875019 [09:31:52]1040 (4) - 112170 [09:31:52]1012 (4) - 14.04.2024 03:14 [09:31:52]1206 (1) - 0 [09:31:52]OFD Sender: Remove packet 112170 [09:31:52]ProducePacketName [09:31:52]name=ofd_packets/00112170 [09:31:52]NVStorageDeleteData [09:31:52]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 E4 0C A5 [09:31:52]RasterBufferAndPrint [09:31:52]line [09:31:52]line [09:31:52]line [09:31:52]line [09:31:52]line [09:31:52]written 0, free lines is 3346 [09:31:52]MH_Cut [09:31:52]Write to MH i2c: D1 01 00 B1 04 01 87 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: D1 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: D1 01 00 [09:31:52]MH_I2C_Read... [09:31:52]Read from MH i2c: D1 01 00 B1 04 00 86 [09:31:52]Write to MH i2c: 01 00 00 B2 04 B6 [09:31:52]Write i2c OK [09:31:52]MH_I2C_Read... [09:31:52]OFD Sender: No OFD packet to send [09:31:52]*** Cut start [09:31:52]*** Partial cut [09:31:52]*** CUTSNS_PIN = 1 [09:31:52]*** CUTSNS_PIN = 0 [09:31:53]*** Brake cut motor [09:31:53]Read from MH i2c: 01 [09:31:53]MH_I2C_Read... [09:31:53]*** Stop cut motor [09:31:53]*** Cut end [09:31:53]Read from MH i2c: 01 07 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: 01 07 00 B2 04 00 00 00 00 00 FF 0F CB [09:31:53]process_action close_receipt done [09:31:53]requested_data is exist [09:31:53]produce_requested_data [09:31:53]requested_item fm.sn is exist - process it [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 11 00 00 [09:31:53]Write to MH i2c: E2 08 00 B3 04 80 11 00 00 00 00 00 00 31 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 17 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 17 00 B3 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 82 [09:31:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:31:53]wFMCommunicate OK [09:31:53]requested_item fd.num is exist - process it [09:31:53]SAM_PROTO_GetFieldsCounters [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 13 00 00 [09:31:53]Write to MH i2c: E2 08 00 B4 04 80 13 00 00 00 00 00 00 34 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 62 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 62 00 B4 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [09:31:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:53]wFMCommunicate OK [09:31:53]SAM_PROTO_GetFieldsCounters done [09:31:53]requested_item shift.num is exist - process it [09:31:53]requested_item shift.opened is exist - process it [09:31:53]req_shift_opened [09:31:53]FM_GetShiftState [09:31:53]SAM_PROTO_GetShiftState [09:31:53]wFMCommunicate request_size=4 [09:31:53]MH_SAM_APDU [09:31:53]CAPDU: 80 13 01 00 [09:31:53]Write to MH i2c: E2 08 00 B5 04 80 13 01 00 00 00 00 00 36 [09:31:53]Write i2c OK [09:31:53]MH_I2C_Read... [09:31:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:53]Read from MH i2c: E2 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0E 00 [09:31:53]MH_I2C_Read... [09:31:53]Read from MH i2c: E2 0E 00 B5 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CE [09:31:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:31:53]wFMCommunicate OK [09:31:53]SAM_PROTO_GetShiftState done [09:31:53]FM_GetShiftState done [09:31:53]req_shift_opened done [09:31:53]requested_item shift.open_date is exist - process it [09:31:53]req_shift_open_date [09:31:53]req_shift_open_date done [09:31:53]produce_requested_data done [09:31:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112170,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:31:53]process_action_free close_receipt [09:31:53]json_value_free [09:31:53]json_value_free done [09:31:53]process_json_proto returns [09:31:53]Send response to host [09:31:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112170,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:31:53]free response buf [09:31:53]execute_script done [09:31:53]execute_script returns [09:31:53]free content buf [09:31:53]Sock 8.Close socket [09:31:53]Sock 8.Thread stoped [09:31:57]OFD Sender: No OFD packet to send [09:32:02]OFD Sender: No OFD packet to send [09:32:07]OFD Sender: No OFD packet to send [09:32:12]OFD Sender: No OFD packet to send [09:32:17]OFD Sender: No OFD packet to send [09:32:22]OFD Sender: No OFD packet to send [09:32:27]OFD Sender: No OFD packet to send [09:32:32]OFD Sender: No OFD packet to send [09:32:37]OFD Sender: No OFD packet to send [09:32:42]OFD Sender: No OFD packet to send [09:32:47]OFD Sender: No OFD packet to send [09:32:52]OFD Sender: No OFD packet to send [09:32:57]OFD Sender: No OFD packet to send [09:33:02]OFD Sender: No OFD packet to send [09:33:07]OFD Sender: No OFD packet to send [09:33:12]OFD Sender: No OFD packet to send [09:33:17]OFD Sender: No OFD packet to send [09:33:22]OFD Sender: No OFD packet to send [09:33:27]OFD Sender: No OFD packet to send [09:33:32]OFD Sender: No OFD packet to send [09:33:37]OFD Sender: No OFD packet to send [09:33:42]OFD Sender: No OFD packet to send [09:33:47]OFD Sender: No OFD packet to send [09:33:52]OFD Sender: No OFD packet to send [09:33:57]OFD Sender: No OFD packet to send [09:34:02]OFD Sender: No OFD packet to send [09:34:07]OFD Sender: No OFD packet to send [09:34:12]OFD Sender: No OFD packet to send [09:34:17]OFD Sender: No OFD packet to send [09:34:22]OFD Sender: No OFD packet to send [09:34:27]OFD Sender: No OFD packet to send [09:34:32]OFD Sender: No OFD packet to send [09:34:37]OFD Sender: No OFD packet to send [09:34:42]OFD Sender: No OFD packet to send [09:34:47]OFD Sender: No OFD packet to send [09:34:52]OFD Sender: No OFD packet to send [09:34:57]OFD Sender: No OFD packet to send [09:35:02]OFD Sender: No OFD packet to send [09:35:07]OFD Sender: No OFD packet to send [09:35:12]OFD Sender: No OFD packet to send [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:53]OFD Sender: No OFD packet to send [09:38:58]OFD Sender: No OFD packet to send [09:39:03]OFD Sender: No OFD packet to send [09:39:08]OFD Sender: No OFD packet to send [09:39:13]OFD Sender: No OFD packet to send [09:39:18]OFD Sender: No OFD packet to send [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:08]OFD Sender: No OFD packet to send [09:41:13]OFD Sender: No OFD packet to send [09:41:18]OFD Sender: No OFD packet to send [09:41:23]OFD Sender: No OFD packet to send [09:41:28]OFD Sender: No OFD packet to send [09:41:33]OFD Sender: No OFD packet to send [09:41:38]OFD Sender: No OFD packet to send [09:41:43]OFD Sender: No OFD packet to send [09:41:48]OFD Sender: No OFD packet to send [09:41:53]OFD Sender: No OFD packet to send [09:41:58]OFD Sender: No OFD packet to send [09:42:03]OFD Sender: No OFD packet to send [09:42:08]OFD Sender: No OFD packet to send [09:42:13]OFD Sender: No OFD packet to send [09:42:18]OFD Sender: No OFD packet to send [09:42:23]OFD Sender: No OFD packet to send [09:42:28]OFD Sender: No OFD packet to send [09:42:33]OFD Sender: No OFD packet to send [09:42:38]OFD Sender: No OFD packet to send [09:42:43]OFD Sender: No OFD packet to send [09:42:48]OFD Sender: No OFD packet to send [09:42:50]accept exits with 9 [09:42:50]New connection [09:42:50]New thread 3067243876 created [09:42:50]Thread 3067100516 joined [09:42:50]Waiting for new connection... [09:42:50] Sock 9.Parse request [09:42:50]Sock 9.Check first char [09:42:50]Sock 9.First char is OK [09:42:50]request: POST /json_proto HTTP/1.0 [09:42:50]Method: POST [09:42:50]URL: /json_proto [09:42:50]Method is POST - this is cgi request [09:42:50]url: /json_proto [09:42:50]query_string will be loaded in cgi processing [09:42:50]execute_cgi json_proto POST (null) [09:42:50]execute_cgi path=json_proto method=POST [09:42:50]POST find Content-Length [09:42:50]Host: 172.17.96.197:8080 [09:42:50]Content-Length: 681 [09:42:50]Content-Type: application/json [09:42:50] [09:42:50]POST finish read [09:42:50]Found Content-Length = 681 [09:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10410", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]execute_script... [09:42:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10410", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]POST & json_proto [09:42:50]process_json_proto [09:42:50]json parsed OK: [09:42:50]protocol is kg_v1.0 [09:42:50]action value=close_receipt [09:42:50]process_action close_receipt [09:42:50]cmd_close_receipt [09:42:50]MH_GetDate [09:42:50]Write to MH i2c: F0 00 00 B6 04 A9 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 B6 04 00 1B A5 1B 66 E0 85 7F 64 3B [09:42:50]GetLastDocTimeStamp 1713087110 [09:42:50]current date 1713087771 [09:42:50]FM_GetShiftState [09:42:50]SAM_PROTO_GetShiftState [09:42:50]wFMCommunicate request_size=4 [09:42:50]MH_SAM_APDU [09:42:50]CAPDU: 80 13 01 00 [09:42:50]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D0 [09:42:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:42:50]wFMCommunicate OK [09:42:50]SAM_PROTO_GetShiftState done [09:42:50]FM_GetShiftState done [09:42:50]opened in 1713054696 [09:42:50]opened+sec_in_day 1713141096 [09:42:50]quantity*price = 7000 [09:42:50]sum+1 = 7001 [09:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 70 14.04.2024 09:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112171 ФПД: 169399040489341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094251&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112171&fm=169399040489341&tin=02508201610067®Number=0000000000094237&sum=7000 0 [09:42:51]StoreToDocumentArchive [09:42:51]shift 357 fd 112171 [09:42:51]save to /storage/0357/doc_00112171 [09:42:51]save last doc name /storage/0357/doc_00112171 to /storage/kkm_last_doc_name [09:42:51]save OK [09:42:51]Clear old archive folders... [09:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:42:51]tlvbuf is 0170DAC0 [09:42:51]SAM_PROTO_ClearQueue [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 09 00 00 [09:42:51]Write to MH i2c: E2 08 00 C4 04 80 09 00 00 00 00 00 00 3A [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:51]Read from MH i2c: E2 03 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 C4 04 00 90 00 3C [09:42:51]RAPDU: 90 00 [09:42:51]wFMCommunicate OK [09:42:51]SAM_PROTO_ClearQueue done [09:42:51]KKMCreateOFDPacket [09:42:51]OFDProtocolAddRootSTLVToBuf [09:42:51]FM_MakeSignedData [09:42:51]FM_MakeSignedData [09:42:51]SAM_PROTO_SignData [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 0D 01 02 [09:42:51]Write to MH i2c: E2 08 00 C5 04 80 0D 01 02 00 00 00 00 42 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 C5 04 00 90 00 3D [09:42:52]RAPDU: 90 00 [09:42:52]wFMCommunicate OK [09:42:52]wFMCommunicate request_size=255 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 1B A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:42:52]Write to MH i2c: E2 02 01 C6 04 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 1B A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 A1 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [09:42:52]RAPDU: 90 00 [09:42:52]wFMCommunicate OK [09:42:52]wFMCommunicate request_size=52 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B6 01 00 35 04 06 00 9A 11 49 A2 37 7D [09:42:52]Write to MH i2c: E2 37 00 C7 04 80 0D 02 02 2F 00 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B6 01 00 35 04 06 00 9A 11 49 A2 37 7D 00 00 32 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [09:42:52]RAPDU: 90 00 [09:42:52]wFMCommunicate OK [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 0D 03 02 [09:42:52]Write to MH i2c: E2 08 00 C8 04 80 0D 03 02 00 00 00 00 47 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0B 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0B 00 C8 04 00 1C B6 94 E1 33 50 F3 4D 90 00 52 [09:42:52]RAPDU: 1C B6 94 E1 33 50 F3 4D 90 00 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_SignData done [09:42:52]FM_MakeSignedData done [09:42:52]CreateOFDProtocolMessage [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 11 00 00 [09:42:52]Write to MH i2c: E2 08 00 C9 04 80 11 00 00 00 00 00 00 47 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 C9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 98 [09:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:42:52]wFMCommunicate OK [09:42:52]CreateOFDProtocolMessage done [09:42:52]OFDSenderStorePacket 112171 [09:42:52]StoreOFDPacket docnum=112171 [09:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 39 01 00 00 11 5D 31 01 32 B9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 1B A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B6 01 00 35 04 06 00 9A 11 49 A2 37 7D 1C B6 94 E1 33 50 F3 4D [09:42:52]CheckFolder [09:42:52]dirname=/storage/ofd_packets [09:42:52]CheckFolder done [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00112171 [09:42:52]NVStorageSaveData ofd_packets/00112171 [09:42:52]File name is /storage/ofd_packets/00112171 [09:42:52]Write 343 bytes [09:42:52]NVStorageSaveData done [09:42:52]OFDSenderStorePacket done [09:42:52]KKMCreateOFDPacket done [09:42:52]NVStorageSaveData kkm_last_timestamp [09:42:52]File name is /storage/kkm_last_timestamp [09:42:52]Write 4 bytes [09:42:52]NVStorageSaveData done [09:42:52]OFD Sender: Processing packet 112171 [packets to send 71, broken 70] [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00112171 [09:42:52]OFD Sender: To server: pG, [09:42:52]CommunicateWithHost lk.salyk.kg:30040 [09:42:52]ConnectInit lk.salyk.kg [09:42:52]ExternCall_PrintAddStr [09:42:52]wPrintStart [09:42:52]Write to MH i2c: 01 00 00 CA 04 CE [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 CA 04 00 00 00 00 00 FF 0F E3 [09:42:52]RasterBufferAndPrint [09:42:52]line Счет N : (3)10410 [09:42:52]line ИНН: 02508201610067 [09:42:52]line Контрольно-Кассовый Чек [09:42:52]line ПРОДАЖА [09:42:52]line Товар: 4870202521148 [09:42:52]line Напиток MAXI чай зел лимон 0.45л [09:42:52]line 1.000 * 70.00 [09:42:52]line = 70.00 [09:42:52]line НДС 12% НСП 1% [09:42:52]line > о реализуемом товаре [09:42:52]line ИТОГО: 70.00 [09:42:52]line НСП 1% : 0.62 [09:42:52]line НДС 12% : 7.43 [09:42:52]line Наличными: 70.00 [09:42:52]line Безнал.: 0.00 [09:42:52]line Место: АЗС № 47 "Партнер Нефть" [09:42:52]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:42:52]line СНО: Общий режим [09:42:52]line Чек 70 14.04.2024 09:42 [09:42:52]line Смена: 357 ФФД: 1.0 [09:42:52]line ЗНМ: 0300000138 [09:42:52]line РНМ: 0000000000094237 [09:42:52]line Версия ККМ: 001 [09:42:52]line ФМ: 0000000000875019 [09:42:52]line ФД: 112171 [09:42:52]line ФПД: 169399040489341 [09:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094251&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112171&fm=169399040489341&tin=02508201610067®Number=0000000000094237&sum=7000 [09:42:52]line 0 [09:42:52]Connected sock=11 [09:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 written 0, free lines is 4095 [09:42:52]38 37 35 30 31 39 39 01 00 00 11 5D 31 01 32 B9 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 1B A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B6 01 00 35 04 06 00 9A 11 49 A2 37 7D 1C B6 94 E1 33 50 F3 4D [09:42:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 31 DB 47 00 36 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B6 01 00 F4 03 04 00 A7 4C 1B 66 B6 04 01 00 00 EA 79 B9 46 B6 64 B7 B0 [09:42:53]CommunicateWithHost err = 0 [09:42:53]CheckOFDResponse [09:42:53]1017 (14) - 77093643461234 [09:42:53]1041 (16) - 0000000000875019 [09:42:53]1040 (4) - 112171 [09:42:53]1012 (4) - 14.04.2024 03:25 [09:42:53]1206 (1) - 0 [09:42:53]OFD Sender: Remove packet 112171 [09:42:53]ProducePacketName [09:42:53]name=ofd_packets/00112171 [09:42:53]NVStorageDeleteData [09:42:53]Write to MH i2c: 01 00 00 F3 04 F7 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 E3 0C ED [09:42:53]RasterBufferAndPrint [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]line [09:42:53]written 0, free lines is 3305 [09:42:53]MH_Cut [09:42:53]Write to MH i2c: D1 01 00 FA 04 01 D0 [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 01 00 [09:42:53]MH_I2C_Read... [09:42:53]Read from MH i2c: D1 01 00 FA 04 00 CF [09:42:53]Write to MH i2c: 01 00 00 FB 04 FF [09:42:53]Write i2c OK [09:42:53]MH_I2C_Read... [09:42:53]OFD Sender: No OFD packet to send [09:42:53]*** Cut start [09:42:53]*** Partial cut [09:42:53]*** CUTSNS_PIN = 1 [09:42:54]*** CUTSNS_PIN = 0 [09:42:54]*** Brake cut motor [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]*** Stop cut motor [09:42:54]*** Cut end [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 FB 04 00 00 00 00 00 FF 0F 14 [09:42:54]process_action close_receipt done [09:42:54]requested_data is exist [09:42:54]produce_requested_data [09:42:54]requested_item fm.sn is exist - process it [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 11 00 00 [09:42:54]Write to MH i2c: E2 08 00 FC 04 80 11 00 00 00 00 00 00 7A [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 FC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CB [09:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:42:54]wFMCommunicate OK [09:42:54]requested_item fd.num is exist - process it [09:42:54]SAM_PROTO_GetFieldsCounters [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 00 00 [09:42:54]Write to MH i2c: E2 08 00 FD 04 80 13 00 00 00 00 00 00 7D [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 62 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 62 00 FD 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [09:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetFieldsCounters done [09:42:54]requested_item shift.num is exist - process it [09:42:54]requested_item shift.opened is exist - process it [09:42:54]req_shift_opened [09:42:54]FM_GetShiftState [09:42:54]SAM_PROTO_GetShiftState [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 01 00 [09:42:54]Write to MH i2c: E2 08 00 FE 04 80 13 01 00 00 00 00 00 7F [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 FE 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 17 [09:42:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetShiftState done [09:42:54]FM_GetShiftState done [09:42:54]req_shift_opened done [09:42:54]requested_item shift.open_date is exist - process it [09:42:54]req_shift_open_date [09:42:54]req_shift_open_date done [09:42:54]produce_requested_data done [09:42:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112171,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:42:54]process_action_free close_receipt [09:42:54]json_value_free [09:42:54]json_value_free done [09:42:54]process_json_proto returns [09:42:54]Send response to host [09:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112171,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:42:54]free response buf [09:42:54]execute_script done [09:42:54]execute_script returns [09:42:54]free content buf [09:42:54]Sock 9.Close socket [09:42:54]Sock 9.Thread stoped [09:42:58]OFD Sender: No OFD packet to send [09:43:02]accept exits with 8 [09:43:02]New connection [09:43:02]New thread 3067100516 created [09:43:02]Thread 3067243876 joined [09:43:02]Waiting for new connection... [09:43:02] Sock 8.Parse request [09:43:02]Sock 8.Check first char [09:43:02]Sock 8.First char is OK [09:43:02]request: POST /json_proto HTTP/1.0 [09:43:02]Method: POST [09:43:02]URL: /json_proto [09:43:02]Method is POST - this is cgi request [09:43:02]url: /json_proto [09:43:02]query_string will be loaded in cgi processing [09:43:02]execute_cgi json_proto POST (null) [09:43:02]execute_cgi path=json_proto method=POST [09:43:02]POST find Content-Length [09:43:02]Host: 172.17.96.197:8080 [09:43:02]Content-Length: 678 [09:43:02]Content-Type: application/json [09:43:02] [09:43:02]POST finish read [09:43:02]Found Content-Length = 678 [09:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48488", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [09:43:02]execute_script... [09:43: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)48488", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [09:43:02]POST & json_proto [09:43:02]process_json_proto [09:43:02]json parsed OK: [09:43:02]protocol is kg_v1.0 [09:43:02]action value=close_receipt [09:43:02]process_action close_receipt [09:43:02]cmd_close_receipt [09:43:02]MH_GetDate [09:43:02]Write to MH i2c: F0 00 00 FF 04 F2 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 09 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 09 00 FF 04 00 27 A5 1B 66 E0 85 7F 64 90 [09:43:02]GetLastDocTimeStamp 1713087771 [09:43:02]current date 1713087783 [09:43:02]FM_GetShiftState [09:43:02]SAM_PROTO_GetShiftState [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 13 01 00 [09:43:02]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0E 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1A [09:43:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:43:02]wFMCommunicate OK [09:43:02]SAM_PROTO_GetShiftState done [09:43:02]FM_GetShiftState done [09:43:02]opened in 1713054696 [09:43:02]opened+sec_in_day 1713141096 [09:43:02]quantity*price = 200041 [09:43:02]sum+1 = 200042 [09:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 71 14.04.2024 09:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112172 ФПД: 269768182293279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094303&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112172&fm=269768182293279&tin=02508201610067®Number=0000000000094237&sum=200000 [09:43:03]StoreToDocumentArchive [09:43:03]shift 357 fd 112172 [09:43:03]save to /storage/0357/doc_00112172 [09:43:03]save last doc name /storage/0357/doc_00112172 to /storage/kkm_last_doc_name [09:43:03]save OK [09:43:03]Clear old archive folders... [09:43:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:03]tlvbuf is 0175F720 [09:43:03]SAM_PROTO_ClearQueue [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 09 00 00 [09:43:03]Write to MH i2c: E2 08 00 0D 05 80 09 00 00 00 00 00 00 84 [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 0D 05 00 90 00 86 [09:43:03]RAPDU: 90 00 [09:43:03]wFMCommunicate OK [09:43:03]SAM_PROTO_ClearQueue done [09:43:03]KKMCreateOFDPacket [09:43:03]OFDProtocolAddRootSTLVToBuf [09:43:03]FM_MakeSignedData [09:43:03]FM_MakeSignedData [09:43:03]SAM_PROTO_SignData [09:43:03]wFMCommunicate request_size=4 [09:43:03]MH_SAM_APDU [09:43:03]CAPDU: 80 0D 01 02 [09:43:03]Write to MH i2c: E2 08 00 0E 05 80 0D 01 02 00 00 00 00 8C [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:03]Read from MH i2c: E2 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 [09:43:03]MH_I2C_Read... [09:43:03]Read from MH i2c: E2 03 00 0E 05 00 90 00 87 [09:43:03]RAPDU: 90 00 [09:43:03]wFMCommunicate OK [09:43:03]wFMCommunicate request_size=255 [09:43:03]MH_SAM_APDU [09:43:03]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 47 00 00 00 F4 03 04 00 27 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B6 01 00 35 04 06 00 F5 5A 4C AD [09:43:03]Write to MH i2c: E2 02 01 0F 05 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 47 00 00 00 F4 03 04 00 27 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B6 01 00 35 04 06 00 F5 5A 4C AD 00 00 1F [09:43:03]Write i2c OK [09:43:03]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]wFMCommunicate request_size=7 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 02 02 02 63 1F [09:43:04]Write to MH i2c: E2 0A 00 10 05 80 0D 02 02 02 00 63 1F 00 00 15 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 03 02 [09:43:04]Write to MH i2c: E2 08 00 11 05 80 0D 03 02 00 00 00 00 91 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0B 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0B 00 11 05 00 E5 F5 61 CD B7 C0 EB 21 90 00 1D [09:43:04]RAPDU: E5 F5 61 CD B7 C0 EB 21 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_SignData done [09:43:04]FM_MakeSignedData done [09:43:04]CreateOFDProtocolMessage [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 11 00 00 [09:43:04]Write to MH i2c: E2 08 00 12 05 80 11 00 00 00 00 00 00 91 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 12 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E2 [09:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:43:04]wFMCommunicate OK [09:43:04]CreateOFDProtocolMessage done [09:43:04]OFDSenderStorePacket 112172 [09:43:04]StoreOFDPacket docnum=112172 [09:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 84 07 04 01 67 91 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 47 00 00 00 F4 03 04 00 27 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B6 01 00 35 04 06 00 F5 5A 4C AD 63 1F E5 F5 61 CD B7 C0 EB 21 [09:43:04]CheckFolder [09:43:04]dirname=/storage/ofd_packets [09:43:04]CheckFolder done [09:43:04]ProducePacketName [09:43:04]name=ofd_packets/00112172 [09:43:04]NVStorageSaveData ofd_packets/00112172 [09:43:04]File name is /storage/ofd_packets/00112172 [09:43:04]Write 298 bytes [09:43:04]NVStorageSaveData done [09:43:04]OFDSenderStorePacket done [09:43:04]KKMCreateOFDPacket done [09:43:04]NVStorageSaveData kkm_last_timestamp [09:43:04]File name is /storage/kkm_last_timestamp [09:43:04]Write 4 bytes [09:43:04]NVStorageSaveData done [09:43:04]ExternCall_PrintAddStr [09:43:04]wPrintStart [09:43:04]Write to MH i2c: 01 00 00 13 05 18 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 FF 0F 2D [09:43:04]RasterBufferAndPrint [09:43:04]line Счет N : (1)48488 [09:43:04]line ИНН: 02508201610067 [09:43:04]line Контрольно-Кассовый Чек [09:43:04]line ПРОДАЖА [09:43:04]line ТРК (МРК, ГНК) : 51 [09:43:04]line Товар: 2710194210 [09:43:04]line ДТ-К-5 [09:43:04]line 27.630 * 72.40 [09:43:04]line = 2000.41 [09:43:04]line НДС 12% НСП 1% [09:43:04]line > о реализуемом товаре [09:43:04]line ОКРУГЛЕНИЕ: -0.41 [09:43:04]line ИТОГО: 2000.00 [09:43:04]line Внесено: 2000.00 [09:43:04]line СДАЧА: 0.00 [09:43:04]line НСП 1% : 17.70 [09:43:04]line НДС 12% : 212.43 [09:43:04]line Наличными: 2000.00 [09:43:04]line Безнал.: 0.00 [09:43:04]line Место: АЗС № 47 "Партнер Нефть" [09:43:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:43:04]line СНО: Общий режим [09:43:04]line Чек 71 14.04.2024 09:43 [09:43:04]line Смена: 357 ФФД: 1.0 [09:43:04]line ЗНМ: 0300000138 [09:43:04]line РНМ: 0000000000094237 [09:43:04]line Версия ККМ: 001 [09:43:04]line ФМ: 0000000000875019 [09:43:04]line ФД: 112172 [09:43:04]line ФПД: 269768182293279 [09:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094303&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112172&fm=269768182293279&tin=02508201610067®Number=0000000000094237&sum=200000 [09:43:04]OFD Sender: Processing packet 112172 [packets to send 71, broken 70] [09:43:04]ProducePacketName [09:43:04]name=ofd_packets/00112172 [09:43:04]OFD Sender: To server: pG, [09:43:04]CommunicateWithHost lk.salyk.kg:30040 [09:43:04]ConnectInit lk.salyk.kg [09:43:04]written 0, free lines is 4095 [09:43:04]Connected sock=11 [09:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 84 07 04 01 67 91 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 47 00 00 00 F4 03 04 00 27 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B6 01 00 35 04 06 00 F5 5A 4C AD 63 1F E5 F5 61 CD B7 C0 EB 21 [09:43:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 24 80 47 00 39 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 38 37 35 30 31 39 10 04 04 00 2C B6 01 00 F4 03 04 00 B3 4C 1B 66 B6 04 01 00 00 C4 61 95 40 79 3A BC 0E [09:43:04]CommunicateWithHost err = 0 [09:43:04]CheckOFDResponse [09:43:04]1017 (14) - 77093643461234 [09:43:04]1041 (16) - 0000000000875019 [09:43:04]1040 (4) - 112172 [09:43:04]1012 (4) - 14.04.2024 03:25 [09:43:04]1206 (1) - 0 [09:43:04]OFD Sender: Remove packet 112172 [09:43:04]ProducePacketName [09:43:04]name=ofd_packets/00112172 [09:43:04]NVStorageDeleteData [09:43:04]Write to MH i2c: 01 00 00 3E 05 43 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 07 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 F4 0C 4A [09:43:05]RasterBufferAndPrint [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]written 0, free lines is 3322 [09:43:05]MH_Cut [09:43:05]Write to MH i2c: D1 01 00 45 05 01 1C [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 01 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 01 00 45 05 00 1B [09:43:05]Write to MH i2c: 01 00 00 46 05 4B [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]OFD Sender: No OFD packet to send [09:43:05]*** Cut start [09:43:05]*** Partial cut [09:43:05]*** CUTSNS_PIN = 1 [09:43:05]*** CUTSNS_PIN = 0 [09:43:06]*** Brake cut motor [09:43:06]Read from MH i2c: 01 [09:43:06]MH_I2C_Read... [09:43:06]*** Stop cut motor [09:43:06]*** Cut end [09:43:06]Read from MH i2c: 01 07 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: 01 07 00 46 05 00 00 00 00 00 FF 0F 60 [09:43:06]process_action close_receipt done [09:43:06]requested_data is exist [09:43:06]produce_requested_data [09:43:06]requested_item fm.sn is exist - process it [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 11 00 00 [09:43:06]Write to MH i2c: E2 08 00 47 05 80 11 00 00 00 00 00 00 C6 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 17 00 47 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 17 [09:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:43:06]wFMCommunicate OK [09:43:06]requested_item fd.num is exist - process it [09:43:06]SAM_PROTO_GetFieldsCounters [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 13 00 00 [09:43:06]Write to MH i2c: E2 08 00 48 05 80 13 00 00 00 00 00 00 C9 [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 62 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 62 00 48 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [09:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_GetFieldsCounters done [09:43:06]requested_item shift.num is exist - process it [09:43:06]requested_item shift.opened is exist - process it [09:43:06]req_shift_opened [09:43:06]FM_GetShiftState [09:43:06]SAM_PROTO_GetShiftState [09:43:06]wFMCommunicate request_size=4 [09:43:06]MH_SAM_APDU [09:43:06]CAPDU: 80 13 01 00 [09:43:06]Write to MH i2c: E2 08 00 49 05 80 13 01 00 00 00 00 00 CB [09:43:06]Write i2c OK [09:43:06]MH_I2C_Read... [09:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:06]Read from MH i2c: E2 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0E 00 [09:43:06]MH_I2C_Read... [09:43:06]Read from MH i2c: E2 0E 00 49 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 63 [09:43:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:43:06]wFMCommunicate OK [09:43:06]SAM_PROTO_GetShiftState done [09:43:06]FM_GetShiftState done [09:43:06]req_shift_opened done [09:43:06]requested_item shift.open_date is exist - process it [09:43:06]req_shift_open_date [09:43:06]req_shift_open_date done [09:43:06]produce_requested_data done [09:43:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112172,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:43:06]process_action_free close_receipt [09:43:06]json_value_free [09:43:06]json_value_free done [09:43:06]process_json_proto returns [09:43:06]Send response to host [09:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112172,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:43:06]free response buf [09:43:06]execute_script done [09:43:06]execute_script returns [09:43:06]free content buf [09:43:06]Sock 8.Close socket [09:43:06]Sock 8.Thread stoped [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]OFD Sender: No OFD packet to send [09:43:50]OFD Sender: No OFD packet to send [09:43:55]OFD Sender: No OFD packet to send [09:44:00]OFD Sender: No OFD packet to send [09:44:05]OFD Sender: No OFD packet to send [09:44:10]OFD Sender: No OFD packet to send [09:44:15]OFD Sender: No OFD packet to send [09:44:15]accept exits with 9 [09:44:15]New connection [09:44:15]New thread 3067243876 created [09:44:15]Thread 3067100516 joined [09:44:15]Waiting for new connection... [09:44:15] Sock 9.Parse request [09:44:15]Sock 9.Check first char [09:44:15]Sock 9.First char is OK [09:44:15]request: POST /json_proto HTTP/1.0 [09:44:15]Method: POST [09:44:15]URL: /json_proto [09:44:15]Method is POST - this is cgi request [09:44:15]url: /json_proto [09:44:15]query_string will be loaded in cgi processing [09:44:15]execute_cgi json_proto POST (null) [09:44:15]execute_cgi path=json_proto method=POST [09:44:15]POST find Content-Length [09:44:15]Host: 172.17.96.197:8080 [09:44:15]Content-Length: 676 [09:44:15]Content-Type: application/json [09:44:15] [09:44:15]POST finish read [09:44:15]Found Content-Length = 676 [09:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [09:44:15]execute_script... [09:44: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)48490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [09:44:15]POST & json_proto [09:44:15]process_json_proto [09:44:15]json parsed OK: [09:44:15]protocol is kg_v1.0 [09:44:15]action value=close_receipt [09:44:15]process_action close_receipt [09:44:15]cmd_close_receipt [09:44:15]MH_GetDate [09:44:15]Write to MH i2c: F0 00 00 4A 05 3E [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 09 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: F0 09 00 4A 05 00 70 A5 1B 66 E0 85 7F 64 25 [09:44:15]GetLastDocTimeStamp 1713087783 [09:44:15]current date 1713087856 [09:44:15]FM_GetShiftState [09:44:15]SAM_PROTO_GetShiftState [09:44:15]wFMCommunicate request_size=4 [09:44:15]MH_SAM_APDU [09:44:15]CAPDU: 80 13 01 00 [09:44:15]Write to MH i2c: E2 08 00 4B 05 80 13 01 00 00 00 00 00 CD [09:44:15]Write i2c OK [09:44:15]MH_I2C_Read... [09:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:15]Read from MH i2c: E2 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 [09:44:15]MH_I2C_Read... [09:44:15]Read from MH i2c: E2 0E 00 4B 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 65 [09:44:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:44:15]wFMCommunicate OK [09:44:15]SAM_PROTO_GetShiftState done [09:44:15]FM_GetShiftState done [09:44:15]opened in 1713054696 [09:44:15]opened+sec_in_day 1713141096 [09:44:15]quantity*price = 60056 [09:44:15]sum+1 = 60057 [09:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 72 14.04.2024 09:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112173 ФПД: 139414609331460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094416&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112173&fm=139414609331460&tin=02508201610067®Number=0000000000094237&sum=60000 [09:44:16]StoreToDocumentArchive [09:44:16]shift 357 fd 112173 [09:44:16]save to /storage/0357/doc_00112173 [09:44:16]save last doc name /storage/0357/doc_00112173 to /storage/kkm_last_doc_name [09:44:16]save OK [09:44:16]Clear old archive folders... [09:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:16]tlvbuf is 0170FA00 [09:44:16]SAM_PROTO_ClearQueue [09:44:16]wFMCommunicate request_size=4 [09:44:16]MH_SAM_APDU [09:44:16]CAPDU: 80 09 00 00 [09:44:16]Write to MH i2c: E2 08 00 58 05 80 09 00 00 00 00 00 00 CF [09:44:16]Write i2c OK [09:44:16]MH_I2C_Read... [09:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 58 05 00 90 00 D1 [09:44:17]RAPDU: 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_ClearQueue done [09:44:17]KKMCreateOFDPacket [09:44:17]OFDProtocolAddRootSTLVToBuf [09:44:17]FM_MakeSignedData [09:44:17]FM_MakeSignedData [09:44:17]SAM_PROTO_SignData [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 0D 01 02 [09:44:17]Write to MH i2c: E2 08 00 59 05 80 0D 01 02 00 00 00 00 D7 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [09:44:17]RAPDU: 90 00 [09:44:17]wFMCommunicate OK [09:44:17]wFMCommunicate request_size=255 [09:44:17]MH_SAM_APDU [09:44:17]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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 48 00 00 00 F4 03 04 00 70 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B6 01 00 35 04 06 00 7E [09:44:17]Write to MH i2c: E2 02 01 5A 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 48 00 00 00 F4 03 04 00 70 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B6 01 00 35 04 06 00 7E 00 00 89 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [09:44:17]RAPDU: 90 00 [09:44:17]wFMCommunicate OK [09:44:17]wFMCommunicate request_size=10 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 0D 02 02 05 CB FE 44 05 04 [09:44:17]Write to MH i2c: E2 0D 00 5B 05 80 0D 02 02 05 00 CB FE 44 05 04 00 00 FA [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [09:44:17]RAPDU: 90 00 [09:44:17]wFMCommunicate OK [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 0D 03 02 [09:44:17]Write to MH i2c: E2 08 00 5C 05 80 0D 03 02 00 00 00 00 DC [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0B 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 0B 00 5C 05 00 28 28 04 C2 54 51 64 D4 90 00 D0 [09:44:17]RAPDU: 28 28 04 C2 54 51 64 D4 90 00 [09:44:17]wFMCommunicate OK [09:44:17]SAM_PROTO_SignData done [09:44:17]FM_MakeSignedData done [09:44:17]CreateOFDProtocolMessage [09:44:17]wFMCommunicate request_size=4 [09:44:17]MH_SAM_APDU [09:44:17]CAPDU: 80 11 00 00 [09:44:17]Write to MH i2c: E2 08 00 5D 05 80 11 00 00 00 00 00 00 DC [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:17]Read from MH i2c: E2 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: E2 17 00 5D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2D [09:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:44:17]wFMCommunicate OK [09:44:17]CreateOFDProtocolMessage done [09:44:17]OFDSenderStorePacket 112173 [09:44:17]StoreOFDPacket docnum=112173 [09:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DF 14 07 01 05 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 48 00 00 00 F4 03 04 00 70 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B6 01 00 35 04 06 00 7E CB FE 44 05 04 28 28 04 C2 54 51 64 D4 [09:44:17]CheckFolder [09:44:17]dirname=/storage/ofd_packets [09:44:17]CheckFolder done [09:44:17]ProducePacketName [09:44:17]name=ofd_packets/00112173 [09:44:17]NVStorageSaveData ofd_packets/00112173 [09:44:17]File name is /storage/ofd_packets/00112173 [09:44:17]Write 301 bytes [09:44:17]NVStorageSaveData done [09:44:17]OFDSenderStorePacket done [09:44:17]KKMCreateOFDPacket done [09:44:17]NVStorageSaveData kkm_last_timestamp [09:44:17]File name is /storage/kkm_last_timestamp [09:44:17]Write 4 bytes [09:44:17]NVStorageSaveData done [09:44:17]ExternCall_PrintAddStr [09:44:17]wPrintStart [09:44:17]Write to MH i2c: 01 00 00 5E 05 63 [09:44:17]Write i2c OK [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 [09:44:17]MH_I2C_Read... [09:44:17]Read from MH i2c: 01 07 00 5E 05 00 00 00 00 00 FF 0F 78 [09:44:17]RasterBufferAndPrint [09:44:17]line Счет N : (1)48490 [09:44:17]line ИНН: 02508201610067 [09:44:17]line Контрольно-Кассовый Чек [09:44:17]line ПРОДАЖА [09:44:17]line ТРК (МРК, ГНК) : 11 [09:44:17]line Товар: 2710124130 [09:44:17]line Аи-92-К-5 [09:44:17]line 9.340 * 64.30 [09:44:17]line = 600.56 [09:44:17]line НДС 12% НСП 1% [09:44:17]line > о реализуемом товаре [09:44:17]line ОКРУГЛЕНИЕ: -0.56 [09:44:17]line ИТОГО: 600.00 [09:44:17]line Внесено: 600.00 [09:44:17]line СДАЧА: 0.00 [09:44:17]line НСП 1% : 5.31 [09:44:17]line НДС 12% : 63.78 [09:44:17]line Наличными: 600.00 [09:44:17]line Безнал.: 0.00 [09:44:17]line Место: АЗС № 47 "Партнер Нефть" [09:44:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:44:17]line СНО: Общий режим [09:44:17]line Чек 72 14.04.2024 09:44 [09:44:17]line Смена: 357 ФФД: 1.0 [09:44:17]line ЗНМ: 0300000138 [09:44:17]line РНМ: 0000000000094237 [09:44:17]line Версия ККМ: 001 [09:44:17]line ФМ: 0000000000875019 [09:44:17]line ФД: 112173 [09:44:17]line ФПД: 139414609331460 [09:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094416&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112173&fm=139414609331460&tin=02508201610067®Number=0000000000094237&sum=60000 [09:44:17]written 0, free lines is 4095 [09:44:17]OFD Sender: Processing packet 112173 [packets to send 71, broken 70] [09:44:17]ProducePacketName [09:44:17]name=ofd_packets/00112173 [09:44:17]OFD Sender: To server: pG, [09:44:17]CommunicateWithHost lk.salyk.kg:30040 [09:44:17]ConnectInit lk.salyk.kg [09:44:18]Connected sock=10 [09:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DF 14 07 01 05 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 48 00 00 00 F4 03 04 00 70 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B6 01 00 35 04 06 00 7E CB FE 44 05 04 28 28 04 C2 54 51 64 D4 [09:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 53 C4 47 00 E2 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 38 37 35 30 31 39 10 04 04 00 2D B6 01 00 F4 03 04 00 FC 4C 1B 66 B6 04 01 00 00 76 B5 2B A1 08 76 04 DE [09:44:18]CommunicateWithHost err = 0 [09:44:18]CheckOFDResponse [09:44:18]1017 (14) - 77093643461234 [09:44:18]1041 (16) - 0000000000875019 [09:44:18]1040 (4) - 112173 [09:44:18]1012 (4) - 14.04.2024 03:26 [09:44:18]1206 (1) - 0 [09:44:18]OFD Sender: Remove packet 112173 [09:44:18]ProducePacketName [09:44:18]name=ofd_packets/00112173 [09:44:18]NVStorageDeleteData [09:44:18]Write to MH i2c: 01 00 00 89 05 8E [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: 01 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: 01 07 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 F7 0C 98 [09:44:18]RasterBufferAndPrint [09:44:18]line [09:44:18]line [09:44:18]line [09:44:18]line [09:44:18]line [09:44:18]written 0, free lines is 3326 [09:44:18]MH_Cut [09:44:18]Write to MH i2c: D1 01 00 90 05 01 67 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: D1 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: D1 01 00 [09:44:18]MH_I2C_Read... [09:44:18]Read from MH i2c: D1 01 00 90 05 00 66 [09:44:18]Write to MH i2c: 01 00 00 91 05 96 [09:44:18]Write i2c OK [09:44:18]MH_I2C_Read... [09:44:18]OFD Sender: No OFD packet to send [09:44:19]*** Cut start [09:44:19]*** Partial cut [09:44:19]*** CUTSNS_PIN = 1 [09:44:19]*** CUTSNS_PIN = 0 [09:44:19]*** Brake cut motor [09:44:19]Read from MH i2c: 01 [09:44:19]MH_I2C_Read... [09:44:19]*** Stop cut motor [09:44:19]*** Cut end [09:44:19]Read from MH i2c: 01 07 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: 01 07 00 91 05 00 00 00 00 00 FF 0F AB [09:44:19]process_action close_receipt done [09:44:19]requested_data is exist [09:44:19]produce_requested_data [09:44:19]requested_item fm.sn is exist - process it [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 11 00 00 [09:44:19]Write to MH i2c: E2 08 00 92 05 80 11 00 00 00 00 00 00 11 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 17 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 17 00 92 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [09:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:44:19]wFMCommunicate OK [09:44:19]requested_item fd.num is exist - process it [09:44:19]SAM_PROTO_GetFieldsCounters [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 13 00 00 [09:44:19]Write to MH i2c: E2 08 00 93 05 80 13 00 00 00 00 00 00 14 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 62 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 62 00 93 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [09:44:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_GetFieldsCounters done [09:44:19]requested_item shift.num is exist - process it [09:44:19]requested_item shift.opened is exist - process it [09:44:19]req_shift_opened [09:44:19]FM_GetShiftState [09:44:19]SAM_PROTO_GetShiftState [09:44:19]wFMCommunicate request_size=4 [09:44:19]MH_SAM_APDU [09:44:19]CAPDU: 80 13 01 00 [09:44:19]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [09:44:19]Write i2c OK [09:44:19]MH_I2C_Read... [09:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:19]Read from MH i2c: E2 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0E 00 [09:44:19]MH_I2C_Read... [09:44:19]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AE [09:44:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:44:19]wFMCommunicate OK [09:44:19]SAM_PROTO_GetShiftState done [09:44:19]FM_GetShiftState done [09:44:19]req_shift_opened done [09:44:19]requested_item shift.open_date is exist - process it [09:44:19]req_shift_open_date [09:44:19]req_shift_open_date done [09:44:19]produce_requested_data done [09:44:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112173,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:44:19]process_action_free close_receipt [09:44:19]json_value_free [09:44:19]json_value_free done [09:44:19]process_json_proto returns [09:44:19]Send response to host [09:44:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112173,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:44:19]free response buf [09:44:19]execute_script done [09:44:19]execute_script returns [09:44:19]free content buf [09:44:19]Sock 9.Close socket [09:44:19]Sock 9.Thread stoped [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:44]accept exits with 8 [09:44:44]New connection [09:44:44]New thread 3067100516 created [09:44:44]Thread 3067243876 joined [09:44:44]Waiting for new connection... [09:44:44] Sock 8.Parse request [09:44:44]Sock 8.Check first char [09:44:44]Sock 8.First char is OK [09:44:44]request: POST /json_proto HTTP/1.0 [09:44:44]Method: POST [09:44:44]URL: /json_proto [09:44:44]Method is POST - this is cgi request [09:44:44]url: /json_proto [09:44:44]query_string will be loaded in cgi processing [09:44:44]execute_cgi json_proto POST (null) [09:44:44]execute_cgi path=json_proto method=POST [09:44:44]POST find Content-Length [09:44:44]Host: 172.17.96.197:8080 [09:44:44]Content-Length: 676 [09:44:44]Content-Type: application/json [09:44:44] [09:44:44]POST finish read [09:44:44]Found Content-Length = 676 [09:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48492", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:44:44]execute_script... [09:44:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48492", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:44:44]POST & json_proto [09:44:44]process_json_proto [09:44:44]json parsed OK: [09:44:44]protocol is kg_v1.0 [09:44:44]action value=close_receipt [09:44:44]process_action close_receipt [09:44:44]cmd_close_receipt [09:44:44]MH_GetDate [09:44:44]Write to MH i2c: F0 00 00 95 05 89 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 09 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: F0 09 00 95 05 00 8D A5 1B 66 E0 85 7F 64 8D [09:44:44]GetLastDocTimeStamp 1713087856 [09:44:44]current date 1713087885 [09:44:44]FM_GetShiftState [09:44:44]SAM_PROTO_GetShiftState [09:44:44]wFMCommunicate request_size=4 [09:44:44]MH_SAM_APDU [09:44:44]CAPDU: 80 13 01 00 [09:44:44]Write to MH i2c: E2 08 00 96 05 80 13 01 00 00 00 00 00 18 [09:44:44]Write i2c OK [09:44:44]MH_I2C_Read... [09:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:44]Read from MH i2c: E2 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 0E 00 [09:44:44]MH_I2C_Read... [09:44:44]Read from MH i2c: E2 0E 00 96 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [09:44:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:44:44]wFMCommunicate OK [09:44:44]SAM_PROTO_GetShiftState done [09:44:44]FM_GetShiftState done [09:44:44]opened in 1713054696 [09:44:44]opened+sec_in_day 1713141096 [09:44:44]quantity*price = 50025 [09:44:44]sum+1 = 50026 [09:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 73 14.04.2024 09:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112174 ФПД: 227498085841550 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094445&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112174&fm=227498085841550&tin=02508201610067®Number=0000000000094237&sum=50000 [09:44:45]StoreToDocumentArchive [09:44:45]shift 357 fd 112174 [09:44:45]save to /storage/0357/doc_00112174 [09:44:45]save last doc name /storage/0357/doc_00112174 to /storage/kkm_last_doc_name [09:44:45]save OK [09:44:45]Clear old archive folders... [09:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:45]tlvbuf is 0170ED30 [09:44:45]SAM_PROTO_ClearQueue [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 09 00 00 [09:44:45]Write to MH i2c: E2 08 00 A3 05 80 09 00 00 00 00 00 00 1A [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]SAM_PROTO_ClearQueue done [09:44:45]KKMCreateOFDPacket [09:44:45]OFDProtocolAddRootSTLVToBuf [09:44:45]FM_MakeSignedData [09:44:45]FM_MakeSignedData [09:44:45]SAM_PROTO_SignData [09:44:45]wFMCommunicate request_size=4 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 0D 01 02 [09:44:45]Write to MH i2c: E2 08 00 A4 05 80 0D 01 02 00 00 00 00 22 [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:45]Read from MH i2c: E2 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 [09:44:45]MH_I2C_Read... [09:44:45]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [09:44:45]RAPDU: 90 00 [09:44:45]wFMCommunicate OK [09:44:45]wFMCommunicate request_size=255 [09:44:45]MH_SAM_APDU [09:44:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8D A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B6 01 00 35 04 06 00 CE [09:44:45]Write to MH i2c: E2 02 01 A5 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8D A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B6 01 00 35 04 06 00 CE 00 00 DA [09:44:45]Write i2c OK [09:44:45]MH_I2C_Read... [09:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:46]Read from MH i2c: E2 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 03 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 03 00 A5 05 00 90 00 1E [09:44:46]RAPDU: 90 00 [09:44:46]wFMCommunicate OK [09:44:46]wFMCommunicate request_size=10 [09:44:46]MH_SAM_APDU [09:44:46]CAPDU: 80 0D 02 02 05 E8 86 97 FA 8E [09:44:46]Write to MH i2c: E2 0D 00 A6 05 80 0D 02 02 05 00 E8 86 97 FA 8E 00 00 BC [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:46]Read from MH i2c: E2 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 03 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 03 00 A6 05 00 90 00 1F [09:44:46]RAPDU: 90 00 [09:44:46]wFMCommunicate OK [09:44:46]wFMCommunicate request_size=4 [09:44:46]MH_SAM_APDU [09:44:46]CAPDU: 80 0D 03 02 [09:44:46]Write to MH i2c: E2 08 00 A7 05 80 0D 03 02 00 00 00 00 27 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:46]Read from MH i2c: E2 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 0B 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 0B 00 A7 05 00 8E E6 10 DA 3E 89 2D 24 90 00 9E [09:44:46]RAPDU: 8E E6 10 DA 3E 89 2D 24 90 00 [09:44:46]wFMCommunicate OK [09:44:46]SAM_PROTO_SignData done [09:44:46]FM_MakeSignedData done [09:44:46]CreateOFDProtocolMessage [09:44:46]wFMCommunicate request_size=4 [09:44:46]MH_SAM_APDU [09:44:46]CAPDU: 80 11 00 00 [09:44:46]Write to MH i2c: E2 08 00 A8 05 80 11 00 00 00 00 00 00 27 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:46]Read from MH i2c: E2 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 17 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: E2 17 00 A8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [09:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:44:46]wFMCommunicate OK [09:44:46]CreateOFDProtocolMessage done [09:44:46]OFDSenderStorePacket 112174 [09:44:46]StoreOFDPacket docnum=112174 [09:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 80 07 01 4A 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8D A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B6 01 00 35 04 06 00 CE E8 86 97 FA 8E 8E E6 10 DA 3E 89 2D 24 [09:44:46]CheckFolder [09:44:46]dirname=/storage/ofd_packets [09:44:46]CheckFolder done [09:44:46]ProducePacketName [09:44:46]name=ofd_packets/00112174 [09:44:46]NVStorageSaveData ofd_packets/00112174 [09:44:46]File name is /storage/ofd_packets/00112174 [09:44:46]Write 301 bytes [09:44:46]NVStorageSaveData done [09:44:46]OFDSenderStorePacket done [09:44:46]KKMCreateOFDPacket done [09:44:46]NVStorageSaveData kkm_last_timestamp [09:44:46]File name is /storage/kkm_last_timestamp [09:44:46]Write 4 bytes [09:44:46]NVStorageSaveData done [09:44:46]ExternCall_PrintAddStr [09:44:46]wPrintStart [09:44:46]Write to MH i2c: 01 00 00 A9 05 AE [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 A9 05 00 00 00 00 00 FF 0F C3 [09:44:46]RasterBufferAndPrint [09:44:46]line Счет N : (1)48492 [09:44:46]line ИНН: 02508201610067 [09:44:46]line Контрольно-Кассовый Чек [09:44:46]line ПРОДАЖА [09:44:46]line ТРК (МРК, ГНК) : 42 [09:44:46]line Товар: 2710124130 [09:44:46]line Аи-92-К-5 [09:44:46]line 7.780 * 64.30 [09:44:46]line = 500.25 [09:44:46]line НДС 12% НСП 1% [09:44:46]line > о реализуемом товаре [09:44:46]line ОКРУГЛЕНИЕ: -0.25 [09:44:46]line ИТОГО: 500.00 [09:44:46]line Внесено: 500.00 [09:44:46]line СДАЧА: 0.00 [09:44:46]line НСП 1% : 4.43 [09:44:46]line НДС 12% : 53.12 [09:44:46]line Наличными: 500.00 [09:44:46]line Безнал.: 0.00 [09:44:46]line Место: АЗС № 47 "Партнер Нефть" [09:44:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:44:46]line СНО: Общий режим [09:44:46]line Чек 73 14.04.2024 09:44 [09:44:46]line Смена: 357 ФФД: 1.0 [09:44:46]line ЗНМ: 0300000138 [09:44:46]line РНМ: 0000000000094237 [09:44:46]line Версия ККМ: 001 [09:44:46]line ФМ: 0000000000875019 [09:44:46]line ФД: 112174 [09:44:46]line ФПД: 227498085841550 [09:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094445&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112174&fm=227498085841550&tin=02508201610067®Number=0000000000094237&sum=50000 [09:44:46]OFD Sender: Processing packet 112174 [packets to send 71, broken 70] [09:44:46]ProducePacketName [09:44:46]name=ofd_packets/00112174 [09:44:46]OFD Sender: To server: pG, [09:44:46]CommunicateWithHost lk.salyk.kg:30040 [09:44:46]ConnectInit lk.salyk.kg [09:44:46]written 0, free lines is 4095 [09:44:46]Connected sock=10 [09:44:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 80 07 01 4A 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8D A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B6 01 00 35 04 06 00 CE E8 86 97 FA 8E 8E E6 10 DA 3E 89 2D 24 [09:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D1 7A 47 00 99 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B6 01 00 F4 03 04 00 19 4D 1B 66 B6 04 01 00 00 2A 91 BC 3F AE 8C B9 F2 [09:44:46]CommunicateWithHost err = 0 [09:44:46]CheckOFDResponse [09:44:46]1017 (14) - 77093643461234 [09:44:46]1041 (16) - 0000000000875019 [09:44:46]1040 (4) - 112174 [09:44:46]1012 (4) - 14.04.2024 03:27 [09:44:46]1206 (1) - 0 [09:44:46]OFD Sender: Remove packet 112174 [09:44:46]ProducePacketName [09:44:46]name=ofd_packets/00112174 [09:44:46]NVStorageDeleteData [09:44:46]Write to MH i2c: 01 00 00 D4 05 D9 [09:44:46]Write i2c OK [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 [09:44:46]MH_I2C_Read... [09:44:46]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 DF 0C CB [09:44:46]RasterBufferAndPrint [09:44:46]line [09:44:46]line [09:44:46]line [09:44:46]line [09:44:46]line [09:44:47]written 0, free lines is 3301 [09:44:47]MH_Cut [09:44:47]Write to MH i2c: D1 01 00 DB 05 01 B2 [09:44:47]Write i2c OK [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: D1 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: D1 01 00 [09:44:47]MH_I2C_Read... [09:44:47]Read from MH i2c: D1 01 00 DB 05 00 B1 [09:44:47]Write to MH i2c: 01 00 00 DC 05 E1 [09:44:47]Write i2c OK [09:44:47]MH_I2C_Read... [09:44:47]OFD Sender: No OFD packet to send [09:44:47]*** Cut start [09:44:47]*** Partial cut [09:44:47]*** CUTSNS_PIN = 1 [09:44:47]*** CUTSNS_PIN = 0 [09:44:48]*** Brake cut motor [09:44:48]Read from MH i2c: 01 [09:44:48]MH_I2C_Read... [09:44:48]*** Stop cut motor [09:44:48]*** Cut end [09:44:48]Read from MH i2c: 01 07 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: 01 07 00 DC 05 00 00 00 00 00 FF 0F F6 [09:44:48]process_action close_receipt done [09:44:48]requested_data is exist [09:44:48]produce_requested_data [09:44:48]requested_item fm.sn is exist - process it [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 11 00 00 [09:44:48]Write to MH i2c: E2 08 00 DD 05 80 11 00 00 00 00 00 00 5C [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 17 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 17 00 DD 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AD [09:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:44:48]wFMCommunicate OK [09:44:48]requested_item fd.num is exist - process it [09:44:48]SAM_PROTO_GetFieldsCounters [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 13 00 00 [09:44:48]Write to MH i2c: E2 08 00 DE 05 80 13 00 00 00 00 00 00 5F [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 62 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 62 00 DE 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [09:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:48]wFMCommunicate OK [09:44:48]SAM_PROTO_GetFieldsCounters done [09:44:48]requested_item shift.num is exist - process it [09:44:48]requested_item shift.opened is exist - process it [09:44:48]req_shift_opened [09:44:48]FM_GetShiftState [09:44:48]SAM_PROTO_GetShiftState [09:44:48]wFMCommunicate request_size=4 [09:44:48]MH_SAM_APDU [09:44:48]CAPDU: 80 13 01 00 [09:44:48]Write to MH i2c: E2 08 00 DF 05 80 13 01 00 00 00 00 00 61 [09:44:48]Write i2c OK [09:44:48]MH_I2C_Read... [09:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:48]Read from MH i2c: E2 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 [09:44:48]MH_I2C_Read... [09:44:48]Read from MH i2c: E2 0E 00 DF 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F9 [09:44:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:44:48]wFMCommunicate OK [09:44:48]SAM_PROTO_GetShiftState done [09:44:48]FM_GetShiftState done [09:44:48]req_shift_opened done [09:44:48]requested_item shift.open_date is exist - process it [09:44:48]req_shift_open_date [09:44:48]req_shift_open_date done [09:44:48]produce_requested_data done [09:44:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112174,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:44:48]process_action_free close_receipt [09:44:48]json_value_free [09:44:48]json_value_free done [09:44:48]process_json_proto returns [09:44:48]Send response to host [09:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112174,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:44:48]free response buf [09:44:48]execute_script done [09:44:48]execute_script returns [09:44:48]free content buf [09:44:48]Sock 8.Close socket [09:44:48]Sock 8.Thread stoped [09:44:52]OFD Sender: No OFD packet to send [09:44:57]OFD Sender: No OFD packet to send [09:45:02]OFD Sender: No OFD packet to send [09:45:07]OFD Sender: No OFD packet to send [09:45:12]OFD Sender: No OFD packet to send [09:45:17]OFD Sender: No OFD packet to send [09:45:22]OFD Sender: No OFD packet to send [09:45:27]OFD Sender: No OFD packet to send [09:45:32]OFD Sender: No OFD packet to send [09:45:37]OFD Sender: No OFD packet to send [09:45:42]OFD Sender: No OFD packet to send [09:45:47]OFD Sender: No OFD packet to send [09:45:52]OFD Sender: No OFD packet to send [09:45:57]OFD Sender: No OFD packet to send [09:46:02]OFD Sender: No OFD packet to send [09:46:07]OFD Sender: No OFD packet to send [09:46:11]accept exits with 9 [09:46:11]New connection [09:46:11]New thread 3067243876 created [09:46:11]Thread 3067100516 joined [09:46:11]Waiting for new connection... [09:46:11] Sock 9.Parse request [09:46:11]Sock 9.Check first char [09:46:11]Sock 9.First char is OK [09:46:11]request: POST /json_proto HTTP/1.0 [09:46:11]Method: POST [09:46:11]URL: /json_proto [09:46:11]Method is POST - this is cgi request [09:46:11]url: /json_proto [09:46:11]query_string will be loaded in cgi processing [09:46:11]execute_cgi json_proto POST (null) [09:46:11]execute_cgi path=json_proto method=POST [09:46:11]POST find Content-Length [09:46:11]Host: 172.17.96.197:8080 [09:46:11]Content-Length: 684 [09:46:11]Content-Type: application/json [09:46:11] [09:46:11]POST finish read [09:46:11]Found Content-Length = 684 [09:46:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:46:11]execute_script... [09:46: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)48489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:46:11]POST & json_proto [09:46:11]process_json_proto [09:46:11]json parsed OK: [09:46:11]protocol is kg_v1.0 [09:46:11]action value=close_receipt [09:46:11]process_action close_receipt [09:46:11]cmd_close_receipt [09:46:11]MH_GetDate [09:46:11]Write to MH i2c: F0 00 00 E0 05 D4 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 09 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: F0 09 00 E0 05 00 E4 A5 1B 66 E0 85 7F 64 2F [09:46:11]GetLastDocTimeStamp 1713087885 [09:46:11]current date 1713087972 [09:46:11]FM_GetShiftState [09:46:11]SAM_PROTO_GetShiftState [09:46:11]wFMCommunicate request_size=4 [09:46:11]MH_SAM_APDU [09:46:11]CAPDU: 80 13 01 00 [09:46:11]Write to MH i2c: E2 08 00 E1 05 80 13 01 00 00 00 00 00 63 [09:46:11]Write i2c OK [09:46:11]MH_I2C_Read... [09:46:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:11]Read from MH i2c: E2 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 [09:46:11]MH_I2C_Read... [09:46:11]Read from MH i2c: E2 0E 00 E1 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [09:46:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:11]wFMCommunicate OK [09:46:11]SAM_PROTO_GetShiftState done [09:46:11]FM_GetShiftState done [09:46:11]opened in 1713054696 [09:46:11]opened+sec_in_day 1713141096 [09:46:11]quantity*price = 100029 [09:46:11]sum+1 = 100030 [09:46:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 74 14.04.2024 09:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112175 ФПД: 193307702357733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112175&fm=193307702357733&tin=02508201610067®Number=0000000000094237&sum=100000 [09:46:12]StoreToDocumentArchive [09:46:12]shift 357 fd 112175 [09:46:12]save to /storage/0357/doc_00112175 [09:46:12]save last doc name /storage/0357/doc_00112175 to /storage/kkm_last_doc_name [09:46:12]save OK [09:46:12]Clear old archive folders... [09:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:46:12]tlvbuf is 01713620 [09:46:12]SAM_PROTO_ClearQueue [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 09 00 00 [09:46:12]Write to MH i2c: E2 08 00 EE 05 80 09 00 00 00 00 00 00 65 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 EE 05 00 90 00 67 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]SAM_PROTO_ClearQueue done [09:46:12]KKMCreateOFDPacket [09:46:12]OFDProtocolAddRootSTLVToBuf [09:46:12]FM_MakeSignedData [09:46:12]FM_MakeSignedData [09:46:12]SAM_PROTO_SignData [09:46:12]wFMCommunicate request_size=4 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 01 02 [09:46:12]Write to MH i2c: E2 08 00 EF 05 80 0D 01 02 00 00 00 00 6D [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:12]Read from MH i2c: E2 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 [09:46:12]MH_I2C_Read... [09:46:12]Read from MH i2c: E2 03 00 EF 05 00 90 00 68 [09:46:12]RAPDU: 90 00 [09:46:12]wFMCommunicate OK [09:46:12]wFMCommunicate request_size=255 [09:46:12]MH_SAM_APDU [09:46:12]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E4 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B6 01 00 35 04 06 00 AF CF [09:46:12]Write to MH i2c: E2 02 01 F0 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E4 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B6 01 00 35 04 06 00 AF CF 00 00 B2 [09:46:12]Write i2c OK [09:46:12]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 F0 05 00 90 00 69 [09:46:13]RAPDU: 90 00 [09:46:13]wFMCommunicate OK [09:46:13]wFMCommunicate request_size=9 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 0D 02 02 04 F4 EE 6E E5 [09:46:13]Write to MH i2c: E2 0C 00 F1 05 80 0D 02 02 04 00 F4 EE 6E E5 00 00 AD [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [09:46:13]RAPDU: 90 00 [09:46:13]wFMCommunicate OK [09:46:13]wFMCommunicate request_size=4 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 0D 03 02 [09:46:13]Write to MH i2c: E2 08 00 F2 05 80 0D 03 02 00 00 00 00 72 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 0B 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 0B 00 F2 05 00 2E 03 7D DF B7 60 4C 4A 90 00 AD [09:46:13]RAPDU: 2E 03 7D DF B7 60 4C 4A 90 00 [09:46:13]wFMCommunicate OK [09:46:13]SAM_PROTO_SignData done [09:46:13]FM_MakeSignedData done [09:46:13]CreateOFDProtocolMessage [09:46:13]wFMCommunicate request_size=4 [09:46:13]MH_SAM_APDU [09:46:13]CAPDU: 80 11 00 00 [09:46:13]Write to MH i2c: E2 08 00 F3 05 80 11 00 00 00 00 00 00 72 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:13]Read from MH i2c: E2 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 17 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: E2 17 00 F3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [09:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:13]wFMCommunicate OK [09:46:13]CreateOFDProtocolMessage done [09:46:13]OFDSenderStorePacket 112175 [09:46:13]StoreOFDPacket docnum=112175 [09:46:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 13 92 06 01 51 54 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E4 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B6 01 00 35 04 06 00 AF CF F4 EE 6E E5 2E 03 7D DF B7 60 4C 4A [09:46:13]CheckFolder [09:46:13]dirname=/storage/ofd_packets [09:46:13]CheckFolder done [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00112175 [09:46:13]NVStorageSaveData ofd_packets/00112175 [09:46:13]File name is /storage/ofd_packets/00112175 [09:46:13]Write 300 bytes [09:46:13]NVStorageSaveData done [09:46:13]OFDSenderStorePacket done [09:46:13]KKMCreateOFDPacket done [09:46:13]NVStorageSaveData kkm_last_timestamp [09:46:13]File name is /storage/kkm_last_timestamp [09:46:13]Write 4 bytes [09:46:13]NVStorageSaveData done [09:46:13]ExternCall_PrintAddStr [09:46:13]wPrintStart [09:46:13]Write to MH i2c: 01 00 00 F4 05 F9 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 F4 05 00 00 00 00 00 FF 0F 0E [09:46:13]RasterBufferAndPrint [09:46:13]line Счет N : (1)48489 [09:46:13]line ИНН: 02508201610067 [09:46:13]line Контрольно-Кассовый Чек [09:46:13]line ПРОДАЖА [09:46:13]line ТРК (МРК, ГНК) : 71 [09:46:13]line Товар: 2711190000 [09:46:13]line ГАЗ-К-5 [09:46:13]line 30.590 * 32.70 [09:46:13]line = 1000.29 [09:46:13]line НДС 12% НСП 1% [09:46:13]line > о реализуемом товаре [09:46:13]line ОКРУГЛЕНИЕ: -0.29 [09:46:13]line ИТОГО: 1000.00 [09:46:13]line Внесено: 1000.00 [09:46:13]line СДАЧА: 0.00 [09:46:13]line НСП 1% : 8.85 [09:46:13]line НДС 12% : 106.22 [09:46:13]line Наличными: 1000.00 [09:46:13]line Безнал.: 0.00 [09:46:13]line Место: АЗС № 47 "Партнер Нефть" [09:46:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:46:13]line СНО: Общий режим [09:46:13]line Чек 74 14.04.2024 09:46 [09:46:13]line Смена: 357 ФФД: 1.0 [09:46:13]line ЗНМ: 0300000138 [09:46:13]line РНМ: 0000000000094237 [09:46:13]line Версия ККМ: 001 [09:46:13]line ФМ: 0000000000875019 [09:46:13]line ФД: 112175 [09:46:13]line ФПД: 193307702357733 [09:46:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112175&fm=193307702357733&tin=02508201610067®Number=0000000000094237&sum=100000 [09:46:13]OFD Sender: Processing packet 112175 [packets to send 71, broken 70] [09:46:13]ProducePacketName [09:46:13]name=ofd_packets/00112175 [09:46:13]OFD Sender: To server: pG, [09:46:13]CommunicateWithHost lk.salyk.kg:30040 [09:46:13]ConnectInit lk.salyk.kg [09:46:13]written 0, free lines is 4095 [09:46:13]Connected sock=8 [09:46:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 13 92 06 01 51 54 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 E4 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B6 01 00 35 04 06 00 AF CF F4 EE 6E E5 2E 03 7D DF B7 60 4C 4A [09:46:13]Write to MH i2c: 01 00 00 1F 06 25 [09:46:13]Write i2c OK [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 [09:46:13]MH_I2C_Read... [09:46:13]Read from MH i2c: 01 07 00 1F 06 00 00 00 00 00 EC 0C 24 [09:46:13]RasterBufferAndPrint [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]line [09:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 55 6B 47 00 0E 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B6 01 00 F4 03 04 00 70 4D 1B 66 B6 04 01 00 00 2A 40 9E DC CF 77 47 19 [09:46:14]CommunicateWithHost err = 0 [09:46:14]CheckOFDResponse [09:46:14]1017 (14) - 77093643461234 [09:46:14]1041 (16) - 0000000000875019 [09:46:14]1040 (4) - 112175 [09:46:14]1012 (4) - 14.04.2024 03:28 [09:46:14]1206 (1) - 0 [09:46:14]OFD Sender: Remove packet 112175 [09:46:14]ProducePacketName [09:46:14]name=ofd_packets/00112175 [09:46:14]NVStorageDeleteData [09:46:14]written 0, free lines is 3333 [09:46:14]MH_Cut [09:46:14]Write to MH i2c: D1 01 00 26 06 01 FE [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 01 00 [09:46:14]MH_I2C_Read... [09:46:14]Read from MH i2c: D1 01 00 26 06 00 FD [09:46:14]Write to MH i2c: 01 00 00 27 06 2D [09:46:14]Write i2c OK [09:46:14]MH_I2C_Read... [09:46:14]OFD Sender: No OFD packet to send [09:46:14]*** Cut start [09:46:14]*** Partial cut [09:46:14]*** CUTSNS_PIN = 1 [09:46:14]*** CUTSNS_PIN = 0 [09:46:15]*** Brake cut motor [09:46:15]Read from MH i2c: 01 [09:46:15]MH_I2C_Read... [09:46:15]*** Stop cut motor [09:46:15]*** Cut end [09:46:15]Read from MH i2c: 01 07 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 FF 0F 42 [09:46:15]process_action close_receipt done [09:46:15]requested_data is exist [09:46:15]produce_requested_data [09:46:15]requested_item fm.sn is exist - process it [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 11 00 00 [09:46:15]Write to MH i2c: E2 08 00 28 06 80 11 00 00 00 00 00 00 A8 [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 17 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 17 00 28 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F9 [09:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:15]wFMCommunicate OK [09:46:15]requested_item fd.num is exist - process it [09:46:15]SAM_PROTO_GetFieldsCounters [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 00 00 [09:46:15]Write to MH i2c: E2 08 00 29 06 80 13 00 00 00 00 00 00 AB [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 62 00 29 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [09:46:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetFieldsCounters done [09:46:15]requested_item shift.num is exist - process it [09:46:15]requested_item shift.opened is exist - process it [09:46:15]req_shift_opened [09:46:15]FM_GetShiftState [09:46:15]SAM_PROTO_GetShiftState [09:46:15]wFMCommunicate request_size=4 [09:46:15]MH_SAM_APDU [09:46:15]CAPDU: 80 13 01 00 [09:46:15]Write to MH i2c: E2 08 00 2A 06 80 13 01 00 00 00 00 00 AD [09:46:15]Write i2c OK [09:46:15]MH_I2C_Read... [09:46:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:15]Read from MH i2c: E2 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 [09:46:15]MH_I2C_Read... [09:46:15]Read from MH i2c: E2 0E 00 2A 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 45 [09:46:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:15]wFMCommunicate OK [09:46:15]SAM_PROTO_GetShiftState done [09:46:15]FM_GetShiftState done [09:46:15]req_shift_opened done [09:46:15]requested_item shift.open_date is exist - process it [09:46:15]req_shift_open_date [09:46:15]req_shift_open_date done [09:46:15]produce_requested_data done [09:46:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112175,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:46:15]process_action_free close_receipt [09:46:15]json_value_free [09:46:15]json_value_free done [09:46:15]process_json_proto returns [09:46:15]Send response to host [09:46:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112175,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:46:15]free response buf [09:46:15]execute_script done [09:46:15]execute_script returns [09:46:15]free content buf [09:46:15]Sock 9.Close socket [09:46:15]Sock 9.Thread stoped [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:26]accept exits with 10 [09:46:26]New connection [09:46:26]New thread 3067100516 created [09:46:26]Thread 3067243876 joined [09:46:26]Waiting for new connection... [09:46:26] Sock 10.Parse request [09:46:26]Sock 10.Check first char [09:46:26]Sock 10.First char is OK [09:46:26]request: POST /json_proto HTTP/1.0 [09:46:26]Method: POST [09:46:26]URL: /json_proto [09:46:26]Method is POST - this is cgi request [09:46:26]url: /json_proto [09:46:26]query_string will be loaded in cgi processing [09:46:26]execute_cgi json_proto POST (null) [09:46:26]execute_cgi path=json_proto method=POST [09:46:26]POST find Content-Length [09:46:26]Host: 172.17.96.197:8080 [09:46:26]Content-Length: 813 [09:46:26]Content-Type: application/json [09:46:26] [09:46:26]POST finish read [09:46:26]Found Content-Length = 813 [09:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48493", "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.40, "quantity" : 10.000, "sum" : 724.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" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:26]execute_script... [09:46: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)48493", "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.40, "quantity" : 10.000, "sum" : 724.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" : 724.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:26]POST & json_proto [09:46:26]process_json_proto [09:46:26]json parsed OK: [09:46:26]protocol is kg_v1.0 [09:46:26]action value=close_receipt [09:46:26]process_action close_receipt [09:46:26]cmd_close_receipt [09:46:26]MH_GetDate [09:46:26]Write to MH i2c: F0 00 00 2B 06 20 [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: F0 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: F0 09 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: F0 09 00 2B 06 00 F3 A5 1B 66 E0 85 7F 64 8A [09:46:26]GetLastDocTimeStamp 1713087972 [09:46:26]current date 1713087987 [09:46:26]FM_GetShiftState [09:46:26]SAM_PROTO_GetShiftState [09:46:26]wFMCommunicate request_size=4 [09:46:26]MH_SAM_APDU [09:46:26]CAPDU: 80 13 01 00 [09:46:26]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [09:46:26]Write i2c OK [09:46:26]MH_I2C_Read... [09:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:26]Read from MH i2c: E2 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0E 00 [09:46:26]MH_I2C_Read... [09:46:26]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 47 [09:46:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:26]wFMCommunicate OK [09:46:26]SAM_PROTO_GetShiftState done [09:46:26]FM_GetShiftState done [09:46:26]opened in 1713054696 [09:46:26]opened+sec_in_day 1713141096 [09:46:26]quantity*price = 72400 [09:46:26]sum+1 = 72401 [09:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 724.00 НСП 1% : 6.41 НДС 12% : 76.88 Наличными: 0.00 Безнал.: 724.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 75 14.04.2024 09:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112176 ФПД: 111691748829685 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094627&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112176&fm=111691748829685&tin=02508201610067®Number=0000000000094237&sum=72400 [09:46:27]StoreToDocumentArchive [09:46:27]shift 357 fd 112176 [09:46:27]save to /storage/0357/doc_00112176 [09:46:27]save last doc name /storage/0357/doc_00112176 to /storage/kkm_last_doc_name [09:46:27]save OK [09:46:27]Clear old archive folders... [09:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:46:27]tlvbuf is 0170F170 [09:46:27]SAM_PROTO_ClearQueue [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 09 00 00 [09:46:27]Write to MH i2c: E2 08 00 39 06 80 09 00 00 00 00 00 00 B1 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 39 06 00 90 00 B3 [09:46:27]RAPDU: 90 00 [09:46:27]wFMCommunicate OK [09:46:27]SAM_PROTO_ClearQueue done [09:46:27]KKMCreateOFDPacket [09:46:27]OFDProtocolAddRootSTLVToBuf [09:46:27]FM_MakeSignedData [09:46:27]FM_MakeSignedData [09:46:27]SAM_PROTO_SignData [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 0D 01 02 [09:46:27]Write to MH i2c: E2 08 00 3A 06 80 0D 01 02 00 00 00 00 B9 [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 3A 06 00 90 00 B4 [09:46:27]RAPDU: 90 00 [09:46:27]wFMCommunicate OK [09:46:27]wFMCommunicate request_size=255 [09:46:27]MH_SAM_APDU [09:46: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 10 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 1A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F3 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B6 01 00 35 04 06 00 65 95 43 03 [09:46:27]Write to MH i2c: E2 02 01 3B 06 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 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 1A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F3 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B6 01 00 35 04 06 00 65 95 43 03 00 00 0A [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [09:46:27]RAPDU: 90 00 [09:46:27]wFMCommunicate OK [09:46:27]wFMCommunicate request_size=7 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 0D 02 02 02 69 F5 [09:46:27]Write to MH i2c: E2 0A 00 3C 06 80 0D 02 02 02 00 69 F5 00 00 1E [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:27]Read from MH i2c: E2 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 [09:46:27]MH_I2C_Read... [09:46:27]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [09:46:27]RAPDU: 90 00 [09:46:27]wFMCommunicate OK [09:46:27]wFMCommunicate request_size=4 [09:46:27]MH_SAM_APDU [09:46:27]CAPDU: 80 0D 03 02 [09:46:27]Write to MH i2c: E2 08 00 3D 06 80 0D 03 02 00 00 00 00 BE [09:46:27]Write i2c OK [09:46:27]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0B 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 0B 00 3D 06 00 35 6F D3 57 89 C6 37 E7 90 00 FA [09:46:28]RAPDU: 35 6F D3 57 89 C6 37 E7 90 00 [09:46:28]wFMCommunicate OK [09:46:28]SAM_PROTO_SignData done [09:46:28]FM_MakeSignedData done [09:46:28]CreateOFDProtocolMessage [09:46:28]wFMCommunicate request_size=4 [09:46:28]MH_SAM_APDU [09:46:28]CAPDU: 80 11 00 00 [09:46:28]Write to MH i2c: E2 08 00 3E 06 80 11 00 00 00 00 00 00 BE [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:28]Read from MH i2c: E2 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 17 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: E2 17 00 3E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [09:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:28]wFMCommunicate OK [09:46:28]CreateOFDProtocolMessage done [09:46:28]OFDSenderStorePacket 112176 [09:46:28]StoreOFDPacket docnum=112176 [09:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 9C 8A 04 01 4F 63 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 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 1A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F3 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B6 01 00 35 04 06 00 65 95 43 03 69 F5 35 6F D3 57 89 C6 37 E7 [09:46:28]CheckFolder [09:46:28]dirname=/storage/ofd_packets [09:46:28]CheckFolder done [09:46:28]ProducePacketName [09:46:28]name=ofd_packets/00112176 [09:46:28]NVStorageSaveData ofd_packets/00112176 [09:46:28]File name is /storage/ofd_packets/00112176 [09:46:28]Write 298 bytes [09:46:28]NVStorageSaveData done [09:46:28]OFDSenderStorePacket done [09:46:28]KKMCreateOFDPacket done [09:46:28]NVStorageSaveData kkm_last_timestamp [09:46:28]File name is /storage/kkm_last_timestamp [09:46:28]Write 4 bytes [09:46:28]NVStorageSaveData done [09:46:28]ExternCall_PrintAddStr [09:46:28]wPrintStart [09:46:28]Write to MH i2c: 01 00 00 3F 06 45 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 07 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 07 00 3F 06 00 00 00 00 00 FF 0F 5A [09:46:28]RasterBufferAndPrint [09:46:28]line Счет N : (1)48493 [09:46:28]line ИНН: 02508201610067 [09:46:28]line Контрольно-Кассовый Чек [09:46:28]line ПРОДАЖА [09:46:28]line ТРК (МРК, ГНК) : 51 [09:46:28]line Товар: 2710194210 [09:46:28]line ДТ-К-5 [09:46:28]line 10.000 * 72.40 [09:46:28]line = 724.00 [09:46:28]line НДС 12% НСП 1% [09:46:28]line > о реализуемом товаре [09:46:28]line ИТОГО: 724.00 [09:46:28]line НСП 1% : 6.41 [09:46:28]line НДС 12% : 76.88 [09:46:28]line Наличными: 0.00 [09:46:28]line Безнал.: 724.00 [09:46:28]line Место: АЗС № 47 "Партнер Нефть" [09:46:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:46:28]line СНО: Общий режим [09:46:28]line Чек 75 14.04.2024 09:46 [09:46:28]line Смена: 357 ФФД: 1.0 [09:46:28]line ЗНМ: 0300000138 [09:46:28]line РНМ: 0000000000094237 [09:46:28]line Версия ККМ: 001 [09:46:28]line Платежная система: Бакай Банк [09:46:28]line ФМ: 0000000000875019 [09:46:28]line ФД: 112176 [09:46:28]line ФПД: 111691748829685 [09:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094627&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112176&fm=111691748829685&tin=02508201610067®Number=0000000000094237&sum=72400 [09:46:28]OFD Sender: Processing packet 112176 [packets to send 71, broken 70] [09:46:28]ProducePacketName [09:46:28]name=ofd_packets/00112176 [09:46:28]OFD Sender: To server: pG, [09:46:28]CommunicateWithHost lk.salyk.kg:30040 [09:46:28]ConnectInit lk.salyk.kg [09:46:28]written 0, free lines is 4095 [09:46:28]Connected sock=9 [09:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 9C 8A 04 01 4F 63 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 27 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D0 1A 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 1A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D0 1A 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F3 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B6 01 00 35 04 06 00 65 95 43 03 69 F5 35 6F D3 57 89 C6 37 E7 [09:46:28]Write to MH i2c: 01 00 00 69 06 6F [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 07 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: 01 07 00 69 06 00 00 00 00 00 F1 0C 73 [09:46:28]RasterBufferAndPrint [09:46:28]line [09:46:28]line [09:46:28]line [09:46:28]line [09:46:28]line [09:46:28]written 0, free lines is 3319 [09:46:28]MH_Cut [09:46:28]Write to MH i2c: D1 01 00 70 06 01 48 [09:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 89 4B 47 00 3E AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B6 01 00 F4 03 04 00 7F 4D 1B 66 B6 04 01 00 00 02 12 58 27 68 87 3D B3 [09:46:28]CommunicateWithHost err = 0 [09:46:28]CheckOFDResponse [09:46:28]1017 (14) - 77093643461234 [09:46:28]1041 (16) - 0000000000875019 [09:46:28]1040 (4) - 112176 [09:46:28]1012 (4) - 14.04.2024 03:29 [09:46:28]1206 (1) - 0 [09:46:28]OFD Sender: Remove packet 112176 [09:46:28]ProducePacketName [09:46:28]name=ofd_packets/00112176 [09:46:28]NVStorageDeleteData [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: D1 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: D1 01 00 [09:46:28]MH_I2C_Read... [09:46:28]Read from MH i2c: D1 01 00 70 06 00 47 [09:46:28]Write to MH i2c: 01 00 00 71 06 77 [09:46:28]Write i2c OK [09:46:28]MH_I2C_Read... [09:46:29]OFD Sender: No OFD packet to send [09:46:29]*** Cut start [09:46:29]*** Partial cut [09:46:29]*** CUTSNS_PIN = 1 [09:46:29]*** CUTSNS_PIN = 0 [09:46:29]*** Brake cut motor [09:46:30]Read from MH i2c: 01 [09:46:30]MH_I2C_Read... [09:46:30]*** Stop cut motor [09:46:30]*** Cut end [09:46:30]Read from MH i2c: 01 07 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 FF 0F 8C [09:46:30]process_action close_receipt done [09:46:30]requested_data is exist [09:46:30]produce_requested_data [09:46:30]requested_item fm.sn is exist - process it [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 11 00 00 [09:46:30]Write to MH i2c: E2 08 00 72 06 80 11 00 00 00 00 00 00 F2 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 17 00 72 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 43 [09:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:30]wFMCommunicate OK [09:46:30]requested_item fd.num is exist - process it [09:46:30]SAM_PROTO_GetFieldsCounters [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 13 00 00 [09:46:30]Write to MH i2c: E2 08 00 73 06 80 13 00 00 00 00 00 00 F5 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 62 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 62 00 73 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 30 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [09:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 30 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_GetFieldsCounters done [09:46:30]requested_item shift.num is exist - process it [09:46:30]requested_item shift.opened is exist - process it [09:46:30]req_shift_opened [09:46:30]FM_GetShiftState [09:46:30]SAM_PROTO_GetShiftState [09:46:30]wFMCommunicate request_size=4 [09:46:30]MH_SAM_APDU [09:46:30]CAPDU: 80 13 01 00 [09:46:30]Write to MH i2c: E2 08 00 74 06 80 13 01 00 00 00 00 00 F7 [09:46:30]Write i2c OK [09:46:30]MH_I2C_Read... [09:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:30]Read from MH i2c: E2 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0E 00 [09:46:30]MH_I2C_Read... [09:46:30]Read from MH i2c: E2 0E 00 74 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8F [09:46:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:30]wFMCommunicate OK [09:46:30]SAM_PROTO_GetShiftState done [09:46:30]FM_GetShiftState done [09:46:30]req_shift_opened done [09:46:30]requested_item shift.open_date is exist - process it [09:46:30]req_shift_open_date [09:46:30]req_shift_open_date done [09:46:30]produce_requested_data done [09:46:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112176,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:46:30]process_action_free close_receipt [09:46:30]json_value_free [09:46:30]json_value_free done [09:46:30]process_json_proto returns [09:46:30]Send response to host [09:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112176,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:46:30]free response buf [09:46:30]execute_script done [09:46:30]execute_script returns [09:46:30]free content buf [09:46:30]Sock 10.Close socket [09:46:30]Sock 10.Thread stoped [09:46:31]accept exits with 8 [09:46:31]New connection [09:46:31]New thread 3067243876 created [09:46:31]Thread 3067100516 joined [09:46:31]Waiting for new connection... [09:46:31] Sock 8.Parse request [09:46:31]Sock 8.Check first char [09:46:31]Sock 8.First char is OK [09:46:31]request: POST /json_proto HTTP/1.0 [09:46:31]Method: POST [09:46:31]URL: /json_proto [09:46:31]Method is POST - this is cgi request [09:46:31]url: /json_proto [09:46:31]query_string will be loaded in cgi processing [09:46:31]execute_cgi json_proto POST (null) [09:46:31]execute_cgi path=json_proto method=POST [09:46:31]POST find Content-Length [09:46:31]Host: 172.17.96.197:8080 [09:46:31]Content-Length: 811 [09:46:31]Content-Type: application/json [09:46:31] [09:46:31]POST finish read [09:46:31]Found Content-Length = 811 [09:46:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10411", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:31]execute_script... [09:46:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10411", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:31]POST & json_proto [09:46:31]process_json_proto [09:46:31]json parsed OK: [09:46:31]protocol is kg_v1.0 [09:46:31]action value=close_receipt [09:46:31]process_action close_receipt [09:46:31]cmd_close_receipt [09:46:31]MH_GetDate [09:46:31]Write to MH i2c: F0 00 00 75 06 6A [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: F0 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: F0 09 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: F0 09 00 75 06 00 F8 A5 1B 66 E0 85 7F 64 D9 [09:46:31]GetLastDocTimeStamp 1713087987 [09:46:31]current date 1713087992 [09:46:31]FM_GetShiftState [09:46:31]SAM_PROTO_GetShiftState [09:46:31]wFMCommunicate request_size=4 [09:46:31]MH_SAM_APDU [09:46:31]CAPDU: 80 13 01 00 [09:46:31]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [09:46:31]Write i2c OK [09:46:31]MH_I2C_Read... [09:46:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:31]Read from MH i2c: E2 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 0E 00 [09:46:31]MH_I2C_Read... [09:46:31]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 91 [09:46:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:31]wFMCommunicate OK [09:46:31]SAM_PROTO_GetShiftState done [09:46:31]FM_GetShiftState done [09:46:31]opened in 1713054696 [09:46:31]opened+sec_in_day 1713141096 [09:46:31]quantity*price = 13000 [09:46:31]sum+1 = 13001 [09:46:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 76 14.04.2024 09:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112177 ФПД: 164302823470199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094632&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112177&fm=164302823470199&tin=02508201610067®Number=0000000000094237&sum=13000 0 [09:46:32]StoreToDocumentArchive [09:46:32]shift 357 fd 112177 [09:46:32]save to /storage/0357/doc_00112177 [09:46:32]save last doc name /storage/0357/doc_00112177 to /storage/kkm_last_doc_name [09:46:32]save OK [09:46:32]Clear old archive folders... [09:46:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:46:32]tlvbuf is 017879B0 [09:46:32]SAM_PROTO_ClearQueue [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 09 00 00 [09:46:32]Write to MH i2c: E2 08 00 83 06 80 09 00 00 00 00 00 00 FB [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:32]Read from MH i2c: E2 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 03 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [09:46:32]RAPDU: 90 00 [09:46:32]wFMCommunicate OK [09:46:32]SAM_PROTO_ClearQueue done [09:46:32]KKMCreateOFDPacket [09:46:32]OFDProtocolAddRootSTLVToBuf [09:46:32]FM_MakeSignedData [09:46:32]FM_MakeSignedData [09:46:32]SAM_PROTO_SignData [09:46:32]wFMCommunicate request_size=4 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 0D 01 02 [09:46:32]Write to MH i2c: E2 08 00 84 06 80 0D 01 02 00 00 00 00 03 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:32]Read from MH i2c: E2 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 03 00 [09:46:32]MH_I2C_Read... [09:46:32]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [09:46:32]RAPDU: 90 00 [09:46:32]wFMCommunicate OK [09:46:32]wFMCommunicate request_size=255 [09:46:32]MH_SAM_APDU [09:46:32]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F8 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [09:46:32]Write to MH i2c: E2 02 01 85 06 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F8 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 E2 [09:46:32]Write i2c OK [09:46:32]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 03 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [09:46:33]RAPDU: 90 00 [09:46:33]wFMCommunicate OK [09:46:33]wFMCommunicate request_size=41 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B6 01 00 35 04 06 00 95 6E BB 6D B4 77 [09:46:33]Write to MH i2c: E2 2C 00 86 06 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B6 01 00 35 04 06 00 95 6E BB 6D B4 77 00 00 11 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 03 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 03 00 86 06 00 90 00 00 [09:46:33]RAPDU: 90 00 [09:46:33]wFMCommunicate OK [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 0D 03 02 [09:46:33]Write to MH i2c: E2 08 00 87 06 80 0D 03 02 00 00 00 00 08 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0B 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 0B 00 87 06 00 24 1B 1B 25 35 39 ED 2F 90 00 12 [09:46:33]RAPDU: 24 1B 1B 25 35 39 ED 2F 90 00 [09:46:33]wFMCommunicate OK [09:46:33]SAM_PROTO_SignData done [09:46:33]FM_MakeSignedData done [09:46:33]CreateOFDProtocolMessage [09:46:33]wFMCommunicate request_size=4 [09:46:33]MH_SAM_APDU [09:46:33]CAPDU: 80 11 00 00 [09:46:33]Write to MH i2c: E2 08 00 88 06 80 11 00 00 00 00 00 00 08 [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:33]Read from MH i2c: E2 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: E2 17 00 88 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [09:46:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:33]wFMCommunicate OK [09:46:33]CreateOFDProtocolMessage done [09:46:33]OFDSenderStorePacket 112177 [09:46:33]StoreOFDPacket docnum=112177 [09:46:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 38 FA 26 01 89 F8 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F8 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B6 01 00 35 04 06 00 95 6E BB 6D B4 77 24 1B 1B 25 35 39 ED 2F [09:46:33]CheckFolder [09:46:33]dirname=/storage/ofd_packets [09:46:33]CheckFolder done [09:46:33]ProducePacketName [09:46:33]name=ofd_packets/00112177 [09:46:33]NVStorageSaveData ofd_packets/00112177 [09:46:33]File name is /storage/ofd_packets/00112177 [09:46:33]Write 332 bytes [09:46:33]NVStorageSaveData done [09:46:33]OFDSenderStorePacket done [09:46:33]KKMCreateOFDPacket done [09:46:33]NVStorageSaveData kkm_last_timestamp [09:46:33]File name is /storage/kkm_last_timestamp [09:46:33]Write 4 bytes [09:46:33]NVStorageSaveData done [09:46:33]OFD Sender: Processing packet 112177 [packets to send 71, broken 70] [09:46:33]ProducePacketName [09:46:33]name=ofd_packets/00112177 [09:46:33]OFD Sender: To server: pG, [09:46:33]CommunicateWithHost lk.salyk.kg:30040 [09:46:33]ConnectInit lk.salyk.kg [09:46:33]ExternCall_PrintAddStr [09:46:33]wPrintStart [09:46:33]Write to MH i2c: 01 00 00 89 06 8F [09:46:33]Write i2c OK [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: 01 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: 01 07 00 [09:46:33]MH_I2C_Read... [09:46:33]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [09:46:33]RasterBufferAndPrint [09:46:33]line Счет N : (3)10411 [09:46:33]line ИНН: 02508201610067 [09:46:33]line Контрольно-Кассовый Чек [09:46:33]line ПРОДАЖА [09:46:33]line Товар: 2000036220012 [09:46:33]line Кофе Капучино XL(GABB TRADE) [09:46:33]line 1.000 * 130.00 [09:46:33]line = 130.00 [09:46:33]line НДС 12% НСП 1% [09:46:33]line > о реализуемом товаре [09:46:33]line ИТОГО: 130.00 [09:46:33]line НСП 1% : 1.15 [09:46:33]line НДС 12% : 13.80 [09:46:33]line Наличными: 0.00 [09:46:33]line Безнал.: 130.00 [09:46:33]line Место: АЗС № 47 "Партнер Нефть" [09:46:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:46:33]line СНО: Общий режим [09:46:33]line Чек 76 14.04.2024 09:46 [09:46:33]line Смена: 357 ФФД: 1.0 [09:46:33]line ЗНМ: 0300000138 [09:46:33]line РНМ: 0000000000094237 [09:46:33]line Версия ККМ: 001 [09:46:33]line Платежная система: О! деньги [09:46:33]line ФМ: 0000000000875019 [09:46:33]line ФД: 112177 [09:46:33]line ФПД: 164302823470199 [09:46:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094632&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112177&fm=164302823470199&tin=02508201610067®Number=0000000000094237&sum=13000 [09:46:33]line 0 [09:46:33]written 0, free lines is 4095 [09:46:33]Connected sock=12 [09:46:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 38 FA 26 01 89 F8 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F8 A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B6 01 00 35 04 06 00 95 6E BB 6D B4 77 24 1B 1B 25 35 39 ED 2F [09:46:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 83 60 47 00 6A 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B6 01 00 F4 03 04 00 84 4D 1B 66 B6 04 01 00 00 4C 1E CB AC D2 95 8E 61 [09:46:33]CommunicateWithHost err = 0 [09:46:33]CheckOFDResponse [09:46:33]1017 (14) - 77093643461234 [09:46:33]1041 (16) - 0000000000875019 [09:46:33]1040 (4) - 112177 [09:46:33]1012 (4) - 14.04.2024 03:29 [09:46:33]1206 (1) - 0 [09:46:33]OFD Sender: Remove packet 112177 [09:46:33]ProducePacketName [09:46:33]name=ofd_packets/00112177 [09:46:34]NVStorageDeleteData [09:46:34]Write to MH i2c: 01 00 00 B4 06 BA [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: 01 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: 01 07 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: 01 07 00 B4 06 00 00 00 00 00 C7 0C 94 [09:46:34]RasterBufferAndPrint [09:46:34]line [09:46:34]line [09:46:34]line [09:46:34]line [09:46:34]line [09:46:34]written 0, free lines is 3286 [09:46:34]MH_Cut [09:46:34]Write to MH i2c: D1 01 00 BB 06 01 93 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: D1 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: D1 01 00 [09:46:34]MH_I2C_Read... [09:46:34]Read from MH i2c: D1 01 00 BB 06 00 92 [09:46:34]Write to MH i2c: 01 00 00 BC 06 C2 [09:46:34]Write i2c OK [09:46:34]MH_I2C_Read... [09:46:34]OFD Sender: No OFD packet to send [09:46:34]*** Cut start [09:46:34]*** Partial cut [09:46:34]*** CUTSNS_PIN = 1 [09:46:34]*** CUTSNS_PIN = 0 [09:46:35]*** Brake cut motor [09:46:35]Read from MH i2c: 01 [09:46:35]MH_I2C_Read... [09:46:35]*** Stop cut motor [09:46:35]*** Cut end [09:46:35]Read from MH i2c: 01 07 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: 01 07 00 BC 06 00 00 00 00 00 FF 0F D7 [09:46:35]process_action close_receipt done [09:46:35]requested_data is exist [09:46:35]produce_requested_data [09:46:35]requested_item fm.sn is exist - process it [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 11 00 00 [09:46:35]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 17 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [09:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:35]wFMCommunicate OK [09:46:35]requested_item fd.num is exist - process it [09:46:35]SAM_PROTO_GetFieldsCounters [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 13 00 00 [09:46:35]Write to MH i2c: E2 08 00 BE 06 80 13 00 00 00 00 00 00 40 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 62 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 62 00 BE 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 31 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [09:46:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 31 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:35]wFMCommunicate OK [09:46:35]SAM_PROTO_GetFieldsCounters done [09:46:35]requested_item shift.num is exist - process it [09:46:35]requested_item shift.opened is exist - process it [09:46:35]req_shift_opened [09:46:35]FM_GetShiftState [09:46:35]SAM_PROTO_GetShiftState [09:46:35]wFMCommunicate request_size=4 [09:46:35]MH_SAM_APDU [09:46:35]CAPDU: 80 13 01 00 [09:46:35]Write to MH i2c: E2 08 00 BF 06 80 13 01 00 00 00 00 00 42 [09:46:35]Write i2c OK [09:46:35]MH_I2C_Read... [09:46:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:35]Read from MH i2c: E2 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 0E 00 [09:46:35]MH_I2C_Read... [09:46:35]Read from MH i2c: E2 0E 00 BF 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DA [09:46:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:35]wFMCommunicate OK [09:46:35]SAM_PROTO_GetShiftState done [09:46:35]FM_GetShiftState done [09:46:35]req_shift_opened done [09:46:35]requested_item shift.open_date is exist - process it [09:46:35]req_shift_open_date [09:46:35]req_shift_open_date done [09:46:35]produce_requested_data done [09:46:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112177,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:46:35]process_action_free close_receipt [09:46:35]json_value_free [09:46:35]json_value_free done [09:46:35]process_json_proto returns [09:46:35]Send response to host [09:46:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112177,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:46:35]free response buf [09:46:35]execute_script done [09:46:35]execute_script returns [09:46:35]free content buf [09:46:35]Sock 8.Close socket [09:46:35]Sock 8.Thread stoped [09:46:38]accept exits with 9 [09:46:38]New connection [09:46:38]New thread 3067100516 created [09:46:38]Thread 3067243876 joined [09:46:38]Waiting for new connection... [09:46:38] Sock 9.Parse request [09:46:38]Sock 9.Check first char [09:46:38]Sock 9.First char is OK [09:46:38]request: POST /json_proto HTTP/1.0 [09:46:38]Method: POST [09:46:38]URL: /json_proto [09:46:38]Method is POST - this is cgi request [09:46:38]url: /json_proto [09:46:38]query_string will be loaded in cgi processing [09:46:38]execute_cgi json_proto POST (null) [09:46:38]execute_cgi path=json_proto method=POST [09:46:38]POST find Content-Length [09:46:38]Host: 172.17.96.197:8080 [09:46:38]Content-Length: 676 [09:46:38]Content-Type: application/json [09:46:38] [09:46:38]POST finish read [09:46:38]Found Content-Length = 676 [09:46:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.850, "sum" : 440.46, "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" ] } } [09:46:38]execute_script... [09: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)48494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.850, "sum" : 440.46, "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" ] } } [09:46:38]POST & json_proto [09:46:38]process_json_proto [09:46:38]json parsed OK: [09:46:38]protocol is kg_v1.0 [09:46:38]action value=close_receipt [09:46:38]process_action close_receipt [09:46:38]cmd_close_receipt [09:46:38]MH_GetDate [09:46:38]Write to MH i2c: F0 00 00 C0 06 B5 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: F0 09 00 C0 06 00 FF A5 1B 66 E0 85 7F 64 2B [09:46:38]GetLastDocTimeStamp 1713087992 [09:46:38]current date 1713087999 [09:46:38]FM_GetShiftState [09:46:38]SAM_PROTO_GetShiftState [09:46:38]wFMCommunicate request_size=4 [09:46:38]MH_SAM_APDU [09:46:38]CAPDU: 80 13 01 00 [09:46:38]Write to MH i2c: E2 08 00 C1 06 80 13 01 00 00 00 00 00 44 [09:46:38]Write i2c OK [09:46:38]MH_I2C_Read... [09:46:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:38]Read from MH i2c: E2 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 [09:46:38]MH_I2C_Read... [09:46:38]Read from MH i2c: E2 0E 00 C1 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DC [09:46:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:38]wFMCommunicate OK [09:46:38]SAM_PROTO_GetShiftState done [09:46:38]FM_GetShiftState done [09:46:38]opened in 1713054696 [09:46:38]opened+sec_in_day 1713141096 [09:46:38]quantity*price = 44045 [09:46:38]sum+1 = 44047 [09:46:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 440.00 Внесено: 440.00 СДАЧА: 0.00 НСП 1% : 3.90 НДС 12% : 46.77 Наличными: 440.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 77 14.04.2024 09:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112178 ФПД: 251298502181886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094639&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112178&fm=251298502181886&tin=02508201610067®Number=0000000000094237&sum=44000 [09:46:39]StoreToDocumentArchive [09:46:39]shift 357 fd 112178 [09:46:39]save to /storage/0357/doc_00112178 [09:46:39]save last doc name /storage/0357/doc_00112178 to /storage/kkm_last_doc_name [09:46:39]save OK [09:46:39]Clear old archive folders... [09:46:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:46:39]tlvbuf is 0178DB80 [09:46:39]SAM_PROTO_ClearQueue [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 09 00 00 [09:46:39]Write to MH i2c: E2 08 00 CE 06 80 09 00 00 00 00 00 00 46 [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]SAM_PROTO_ClearQueue done [09:46:39]KKMCreateOFDPacket [09:46:39]OFDProtocolAddRootSTLVToBuf [09:46:39]FM_MakeSignedData [09:46:39]FM_MakeSignedData [09:46:39]SAM_PROTO_SignData [09:46:39]wFMCommunicate request_size=4 [09:46:39]MH_SAM_APDU [09:46:39]CAPDU: 80 0D 01 02 [09:46:39]Write to MH i2c: E2 08 00 CF 06 80 0D 01 02 00 00 00 00 4E [09:46:39]Write i2c OK [09:46:39]MH_I2C_Read... [09:46:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:39]Read from MH i2c: E2 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 [09:46:39]MH_I2C_Read... [09:46:39]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [09:46:39]RAPDU: 90 00 [09:46:39]wFMCommunicate OK [09:46:39]wFMCommunicate request_size=255 [09:46:39]MH_SAM_APDU [09:46: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 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 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 45 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 4D 00 00 00 F4 03 04 00 FF A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B6 01 00 35 04 06 00 E4 [09:46:39]Write to MH i2c: E2 02 01 D0 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 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 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 45 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 4D 00 00 00 F4 03 04 00 FF A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B6 01 00 35 04 06 00 E4 00 00 BC [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 D0 06 00 90 00 4A [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=10 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 02 02 05 8D FD F4 83 FE [09:46:40]Write to MH i2c: E2 0D 00 D1 06 80 0D 02 02 05 00 8D FD F4 83 FE 00 00 5A [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 03 00 D1 06 00 90 00 4B [09:46:40]RAPDU: 90 00 [09:46:40]wFMCommunicate OK [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 0D 03 02 [09:46:40]Write to MH i2c: E2 08 00 D2 06 80 0D 03 02 00 00 00 00 53 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 0B 00 D2 06 00 7A 43 83 10 68 77 AE 4B 90 00 7C [09:46:40]RAPDU: 7A 43 83 10 68 77 AE 4B 90 00 [09:46:40]wFMCommunicate OK [09:46:40]SAM_PROTO_SignData done [09:46:40]FM_MakeSignedData done [09:46:40]CreateOFDProtocolMessage [09:46:40]wFMCommunicate request_size=4 [09:46:40]MH_SAM_APDU [09:46:40]CAPDU: 80 11 00 00 [09:46:40]Write to MH i2c: E2 08 00 D3 06 80 11 00 00 00 00 00 00 53 [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:40]Read from MH i2c: E2 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: E2 17 00 D3 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [09:46:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:40]wFMCommunicate OK [09:46:40]CreateOFDProtocolMessage done [09:46:40]OFDSenderStorePacket 112178 [09:46:40]StoreOFDPacket docnum=112178 [09:46:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9A 5D 07 01 CE 87 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 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 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 45 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 4D 00 00 00 F4 03 04 00 FF A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B6 01 00 35 04 06 00 E4 8D FD F4 83 FE 7A 43 83 10 68 77 AE 4B [09:46:40]CheckFolder [09:46:40]dirname=/storage/ofd_packets [09:46:40]CheckFolder done [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00112178 [09:46:40]NVStorageSaveData ofd_packets/00112178 [09:46:40]File name is /storage/ofd_packets/00112178 [09:46:40]Write 301 bytes [09:46:40]NVStorageSaveData done [09:46:40]OFDSenderStorePacket done [09:46:40]KKMCreateOFDPacket done [09:46:40]NVStorageSaveData kkm_last_timestamp [09:46:40]File name is /storage/kkm_last_timestamp [09:46:40]Write 4 bytes [09:46:40]NVStorageSaveData done [09:46:40]ExternCall_PrintAddStr [09:46:40]wPrintStart [09:46:40]Write to MH i2c: 01 00 00 D4 06 DA [09:46:40]Write i2c OK [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 [09:46:40]MH_I2C_Read... [09:46:40]OFD Sender: Processing packet 112178 [packets to send 71, broken 70] [09:46:40]ProducePacketName [09:46:40]name=ofd_packets/00112178 [09:46:40]OFD Sender: To server: pG, [09:46:40]CommunicateWithHost lk.salyk.kg:30040 [09:46:40]ConnectInit lk.salyk.kg [09:46:40]Read from MH i2c: 01 07 00 [09:46:40]MH_I2C_Read... [09:46:40]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [09:46:40]RasterBufferAndPrint [09:46:40]line Счет N : (1)48494 [09:46:40]line ИНН: 02508201610067 [09:46:40]line Контрольно-Кассовый Чек [09:46:40]line ПРОДАЖА [09:46:40]line ТРК (МРК, ГНК) : 11 [09:46:40]line Товар: 2710124130 [09:46:40]line Аи-92-К-5 [09:46:40]line 6.850 * 64.30 [09:46:40]line = 440.46 [09:46:40]line НДС 12% НСП 1% [09:46:40]line > о реализуемом товаре [09:46:40]line ОКРУГЛЕНИЕ: -0.46 [09:46:40]line ИТОГО: 440.00 [09:46:40]line Внесено: 440.00 [09:46:40]line СДАЧА: 0.00 [09:46:40]line НСП 1% : 3.90 [09:46:40]line НДС 12% : 46.77 [09:46:40]line Наличными: 440.00 [09:46:40]line Безнал.: 0.00 [09:46:40]line Место: АЗС № 47 "Партнер Нефть" [09:46:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:46:40]line СНО: Общий режим [09:46:40]line Чек 77 14.04.2024 09:46 [09:46:40]line Смена: 357 ФФД: 1.0 [09:46:40]line ЗНМ: 0300000138 [09:46:40]line РНМ: 0000000000094237 [09:46:40]line Версия ККМ: 001 [09:46:40]line ФМ: 0000000000875019 [09:46:40]line ФД: 112178 [09:46:40]line ФПД: 251298502181886 [09:46:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T094639&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112178&fm=251298502181886&tin=02508201610067®Number=0000000000094237&sum=44000 [09:46:40]written 0, free lines is 4095 [09:46:40]Connected sock=8 [09:46:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9A 5D 07 01 CE 87 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 C2 1A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 0E AC 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 45 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 4D 00 00 00 F4 03 04 00 FF A5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B6 01 00 35 04 06 00 E4 8D FD F4 83 FE 7A 43 83 10 68 77 AE 4B [09:46:41]Write to MH i2c: 01 00 00 FF 06 05 [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: 01 07 00 FF 06 00 00 00 00 00 EF 0C 07 [09:46:41]RasterBufferAndPrint [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]line [09:46:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F8 4D 47 00 B9 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B6 01 00 F4 03 04 00 8B 4D 1B 66 B6 04 01 00 00 76 77 B6 69 E0 1C FF 13 [09:46:41]CommunicateWithHost err = 0 [09:46:41]CheckOFDResponse [09:46:41]1017 (14) - 77093643461234 [09:46:41]1041 (16) - 0000000000875019 [09:46:41]1040 (4) - 112178 [09:46:41]1012 (4) - 14.04.2024 03:29 [09:46:41]1206 (1) - 0 [09:46:41]OFD Sender: Remove packet 112178 [09:46:41]ProducePacketName [09:46:41]name=ofd_packets/00112178 [09:46:41]NVStorageDeleteData [09:46:41]written 0, free lines is 3350 [09:46:41]MH_Cut [09:46:41]Write to MH i2c: D1 01 00 06 07 01 DF [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 [09:46:41]MH_I2C_Read... [09:46:41]Read from MH i2c: D1 01 00 06 07 00 DE [09:46:41]Write to MH i2c: 01 00 00 07 07 0E [09:46:41]Write i2c OK [09:46:41]MH_I2C_Read... [09:46:41]OFD Sender: No OFD packet to send [09:46:41]*** Cut start [09:46:41]*** Partial cut [09:46:41]*** CUTSNS_PIN = 1 [09:46:41]*** CUTSNS_PIN = 0 [09:46:42]*** Brake cut motor [09:46:42]Read from MH i2c: 01 [09:46:42]MH_I2C_Read... [09:46:42]*** Stop cut motor [09:46:42]*** Cut end [09:46:42]Read from MH i2c: 01 07 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: 01 07 00 07 07 00 00 00 00 00 FF 0F 23 [09:46:42]process_action close_receipt done [09:46:42]requested_data is exist [09:46:42]produce_requested_data [09:46:42]requested_item fm.sn is exist - process it [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 11 00 00 [09:46:42]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DA [09:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:46:42]wFMCommunicate OK [09:46:42]requested_item fd.num is exist - process it [09:46:42]SAM_PROTO_GetFieldsCounters [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 00 00 [09:46:42]Write to MH i2c: E2 08 00 09 07 80 13 00 00 00 00 00 00 8C [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 62 00 09 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 32 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [09:46:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 32 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetFieldsCounters done [09:46:42]requested_item shift.num is exist - process it [09:46:42]requested_item shift.opened is exist - process it [09:46:42]req_shift_opened [09:46:42]FM_GetShiftState [09:46:42]SAM_PROTO_GetShiftState [09:46:42]wFMCommunicate request_size=4 [09:46:42]MH_SAM_APDU [09:46:42]CAPDU: 80 13 01 00 [09:46:42]Write to MH i2c: E2 08 00 0A 07 80 13 01 00 00 00 00 00 8E [09:46:42]Write i2c OK [09:46:42]MH_I2C_Read... [09:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:42]Read from MH i2c: E2 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 [09:46:42]MH_I2C_Read... [09:46:42]Read from MH i2c: E2 0E 00 0A 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 26 [09:46:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:46:42]wFMCommunicate OK [09:46:42]SAM_PROTO_GetShiftState done [09:46:42]FM_GetShiftState done [09:46:42]req_shift_opened done [09:46:42]requested_item shift.open_date is exist - process it [09:46:42]req_shift_open_date [09:46:42]req_shift_open_date done [09:46:42]produce_requested_data done [09:46:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112178,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:46:42]process_action_free close_receipt [09:46:42]json_value_free [09:46:42]json_value_free done [09:46:42]process_json_proto returns [09:46:42]Send response to host [09:46:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112178,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:46:42]free response buf [09:46:42]execute_script done [09:46:42]execute_script returns [09:46:42]free content buf [09:46:42]Sock 9.Close socket [09:46:42]Sock 9.Thread stoped [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:49]accept exits with 10 [09:51:49]New connection [09:51:49]New thread 3067243876 created [09:51:49]Thread 3067100516 joined [09:51:49]Waiting for new connection... [09:51:49] Sock 10.Parse request [09:51:49]Sock 10.Check first char [09:51:49]Sock 10.First char is OK [09:51:49]request: POST /json_proto HTTP/1.0 [09:51:49]Method: POST [09:51:49]URL: /json_proto [09:51:49]Method is POST - this is cgi request [09:51:49]url: /json_proto [09:51:49]query_string will be loaded in cgi processing [09:51:49]execute_cgi json_proto POST (null) [09:51:49]execute_cgi path=json_proto method=POST [09:51:49]POST find Content-Length [09:51:49]Host: 172.17.96.197:8080 [09:51:49]Content-Length: 808 [09:51:49]Content-Type: application/json [09:51:49] [09:51:49]POST finish read [09:51:49]Found Content-Length = 808 [09:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48495", "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.30, "quantity" : 4.600, "sum" : 300.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" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:49]execute_script... [09:51:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48495", "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.30, "quantity" : 4.600, "sum" : 300.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" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:49]POST & json_proto [09:51:49]process_json_proto [09:51:49]json parsed OK: [09:51:49]protocol is kg_v1.0 [09:51:49]action value=close_receipt [09:51:49]process_action close_receipt [09:51:49]cmd_close_receipt [09:51:49]MH_GetDate [09:51:49]Write to MH i2c: F0 00 00 0B 07 01 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 09 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: F0 09 00 0B 07 00 36 A7 1B 66 E0 85 7F 64 B0 [09:51:49]GetLastDocTimeStamp 1713087999 [09:51:49]current date 1713088310 [09:51:49]FM_GetShiftState [09:51:49]SAM_PROTO_GetShiftState [09:51:49]wFMCommunicate request_size=4 [09:51:49]MH_SAM_APDU [09:51:49]CAPDU: 80 13 01 00 [09:51:49]Write to MH i2c: E2 08 00 0C 07 80 13 01 00 00 00 00 00 90 [09:51:49]Write i2c OK [09:51:49]MH_I2C_Read... [09:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:49]Read from MH i2c: E2 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0E 00 [09:51:49]MH_I2C_Read... [09:51:49]Read from MH i2c: E2 0E 00 0C 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 28 [09:51:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:51:49]wFMCommunicate OK [09:51:49]SAM_PROTO_GetShiftState done [09:51:49]FM_GetShiftState done [09:51:49]opened in 1713054696 [09:51:49]opened+sec_in_day 1713141096 [09:51:49]quantity*price = 30038 [09:51:49]sum+1 = 30039 [09:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 78 14.04.2024 09:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112179 ФПД: 251741359666555 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112179&fm=251741359666555&tin=02508201610067®Number=0000000000094237&sum=30038 [09:51:50]StoreToDocumentArchive [09:51:50]shift 357 fd 112179 [09:51:50]save to /storage/0357/doc_00112179 [09:51:50]save last doc name /storage/0357/doc_00112179 to /storage/kkm_last_doc_name [09:51:50]save OK [09:51:50]Clear old archive folders... [09:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:51:50]tlvbuf is 0170B130 [09:51:50]SAM_PROTO_ClearQueue [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 09 00 00 [09:51:50]Write to MH i2c: E2 08 00 19 07 80 09 00 00 00 00 00 00 92 [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 19 07 00 90 00 94 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]SAM_PROTO_ClearQueue done [09:51:50]KKMCreateOFDPacket [09:51:50]OFDProtocolAddRootSTLVToBuf [09:51:50]FM_MakeSignedData [09:51:50]FM_MakeSignedData [09:51:50]SAM_PROTO_SignData [09:51:50]wFMCommunicate request_size=4 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 01 02 [09:51:50]Write to MH i2c: E2 08 00 1A 07 80 0D 01 02 00 00 00 00 9A [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:50]Read from MH i2c: E2 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 [09:51:50]MH_I2C_Read... [09:51:50]Read from MH i2c: E2 03 00 1A 07 00 90 00 95 [09:51:50]RAPDU: 90 00 [09:51:50]wFMCommunicate OK [09:51:50]wFMCommunicate request_size=255 [09:51:50]MH_SAM_APDU [09:51:50]CAPDU: 80 0D 02 02 FA 03 00 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 36 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B6 01 00 35 04 06 00 [09:51:50]Write to MH i2c: E2 02 01 1B 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 36 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B6 01 00 35 04 06 00 00 00 CD [09:51:50]Write i2c OK [09:51:50]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 03 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 03 00 1B 07 00 90 00 96 [09:51:51]RAPDU: 90 00 [09:51:51]wFMCommunicate OK [09:51:51]wFMCommunicate request_size=11 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 0D 02 02 06 E4 F5 1A 51 75 7B [09:51:51]Write to MH i2c: E2 0E 00 1C 07 80 0D 02 02 06 00 E4 F5 1A 51 75 7B 00 00 DD [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 03 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 03 00 1C 07 00 90 00 97 [09:51:51]RAPDU: 90 00 [09:51:51]wFMCommunicate OK [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 0D 03 02 [09:51:51]Write to MH i2c: E2 08 00 1D 07 80 0D 03 02 00 00 00 00 9F [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0B 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 0B 00 1D 07 00 21 08 56 85 79 70 1E AA 90 00 55 [09:51:51]RAPDU: 21 08 56 85 79 70 1E AA 90 00 [09:51:51]wFMCommunicate OK [09:51:51]SAM_PROTO_SignData done [09:51:51]FM_MakeSignedData done [09:51:51]CreateOFDProtocolMessage [09:51:51]wFMCommunicate request_size=4 [09:51:51]MH_SAM_APDU [09:51:51]CAPDU: 80 11 00 00 [09:51:51]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:51]Read from MH i2c: E2 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [09:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:51:51]wFMCommunicate OK [09:51:51]CreateOFDProtocolMessage done [09:51:51]OFDSenderStorePacket 112179 [09:51:51]StoreOFDPacket docnum=112179 [09:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 05 CA 08 01 D0 C0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 36 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B6 01 00 35 04 06 00 E4 F5 1A 51 75 7B 21 08 56 85 79 70 1E AA [09:51:51]CheckFolder [09:51:51]dirname=/storage/ofd_packets [09:51:51]CheckFolder done [09:51:51]ProducePacketName [09:51:51]name=ofd_packets/00112179 [09:51:51]NVStorageSaveData ofd_packets/00112179 [09:51:51]File name is /storage/ofd_packets/00112179 [09:51:51]Write 302 bytes [09:51:51]NVStorageSaveData done [09:51:51]OFDSenderStorePacket done [09:51:51]KKMCreateOFDPacket done [09:51:51]NVStorageSaveData kkm_last_timestamp [09:51:51]File name is /storage/kkm_last_timestamp [09:51:51]Write 4 bytes [09:51:51]NVStorageSaveData done [09:51:51]ExternCall_PrintAddStr [09:51:51]wPrintStart [09:51:51]Write to MH i2c: 01 00 00 1F 07 26 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [09:51:51]RasterBufferAndPrint [09:51:51]line Счет N : (1)48495 [09:51:51]line ИНН: 02508201610067 [09:51:51]line Контрольно-Кассовый Чек [09:51:51]line ПРОДАЖА [09:51:51]line ТРК (МРК, ГНК) : 31 [09:51:51]line Товар: 2710124130 [09:51:51]line SUPER 92-К-5 [09:51:51]line 4.600 * 65.30 [09:51:51]line = 300.38 [09:51:51]line НДС 12% НСП 1% [09:51:51]line > о реализуемом товаре [09:51:51]line ИТОГО: 300.38 [09:51:51]line НСП 1% : 2.66 [09:51:51]line НДС 12% : 31.90 [09:51:51]line Наличными: 0.00 [09:51:51]line Безнал.: 300.38 [09:51:51]line Место: АЗС № 47 "Партнер Нефть" [09:51:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:51:51]line СНО: Общий режим [09:51:51]line Чек 78 14.04.2024 09:51 [09:51:51]line Смена: 357 ФФД: 1.0 [09:51:51]line ЗНМ: 0300000138 [09:51:51]line РНМ: 0000000000094237 [09:51:51]line Версия ККМ: 001 [09:51:51]line Платежная система: Бакай Банк [09:51:51]line ФМ: 0000000000875019 [09:51:51]line ФД: 112179 [09:51:51]line ФПД: 251741359666555 [09:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112179&fm=251741359666555&tin=02508201610067®Number=0000000000094237&sum=30038 [09:51:51]written 0, free lines is 4095 [09:51:51]OFD Sender: Processing packet 112179 [packets to send 71, broken 70] [09:51:51]ProducePacketName [09:51:51]name=ofd_packets/00112179 [09:51:51]OFD Sender: To server: pG, [09:51:51]CommunicateWithHost lk.salyk.kg:30040 [09:51:51]ConnectInit lk.salyk.kg [09:51:51]Connected sock=9 [09:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 05 CA 08 01 D0 C0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 36 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B6 01 00 35 04 06 00 E4 F5 1A 51 75 7B 21 08 56 85 79 70 1E AA [09:51:51]Write to MH i2c: 01 00 00 49 07 50 [09:51:51]Write i2c OK [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 [09:51:51]MH_I2C_Read... [09:51:51]Read from MH i2c: 01 07 00 49 07 00 00 00 00 00 E3 0C 46 [09:51:51]RasterBufferAndPrint [09:51:51]line [09:51:51]line [09:51:51]line [09:51:51]line [09:51:51]line [09:51:52]written 0, free lines is 3305 [09:51:52]MH_Cut [09:51:52]Write to MH i2c: D1 01 00 50 07 01 29 [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D1 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D1 01 00 [09:51:52]MH_I2C_Read... [09:51:52]Read from MH i2c: D1 01 00 50 07 00 28 [09:51:52]Write to MH i2c: 01 00 00 51 07 58 [09:51:52]Write i2c OK [09:51:52]MH_I2C_Read... [09:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FA CE 47 00 EC 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B6 01 00 F4 03 04 00 C2 4E 1B 66 B6 04 01 00 00 AB 42 EC F5 4A 6B 5D 6B [09:51:52]CommunicateWithHost err = 0 [09:51:52]CheckOFDResponse [09:51:52]1017 (14) - 77093643461234 [09:51:52]1041 (16) - 0000000000875019 [09:51:52]1040 (4) - 112179 [09:51:52]1012 (4) - 14.04.2024 03:34 [09:51:52]1206 (1) - 0 [09:51:52]OFD Sender: Remove packet 112179 [09:51:52]ProducePacketName [09:51:52]name=ofd_packets/00112179 [09:51:52]NVStorageDeleteData [09:51:52]OFD Sender: No OFD packet to send [09:51:52]*** Cut start [09:51:52]*** Partial cut [09:51:52]*** CUTSNS_PIN = 1 [09:51:52]*** CUTSNS_PIN = 0 [09:51:53]*** Brake cut motor [09:51:53]Read from MH i2c: 01 [09:51:53]MH_I2C_Read... [09:51:53]*** Stop cut motor [09:51:53]Read from MH i2c: 01 07 00 [09:51:53]MH_I2C_Read... [09:51:53]*** Cut end [09:51:53]Read from MH i2c: 01 07 00 51 07 00 00 00 00 00 FF 0F 6D [09:51:53]process_action close_receipt done [09:51:53]requested_data is exist [09:51:53]produce_requested_data [09:51:53]requested_item fm.sn is exist - process it [09:51:53]wFMCommunicate request_size=4 [09:51:53]MH_SAM_APDU [09:51:53]CAPDU: 80 11 00 00 [09:51:53]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:53]Read from MH i2c: E2 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 17 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [09:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:51:53]wFMCommunicate OK [09:51:53]requested_item fd.num is exist - process it [09:51:53]SAM_PROTO_GetFieldsCounters [09:51:53]wFMCommunicate request_size=4 [09:51:53]MH_SAM_APDU [09:51:53]CAPDU: 80 13 00 00 [09:51:53]Write to MH i2c: E2 08 00 53 07 80 13 00 00 00 00 00 00 D6 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:53]Read from MH i2c: E2 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 62 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 62 00 53 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 33 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 2F [09:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 33 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:53]wFMCommunicate OK [09:51:53]SAM_PROTO_GetFieldsCounters done [09:51:53]requested_item shift.num is exist - process it [09:51:53]requested_item shift.opened is exist - process it [09:51:53]req_shift_opened [09:51:53]FM_GetShiftState [09:51:53]SAM_PROTO_GetShiftState [09:51:53]wFMCommunicate request_size=4 [09:51:53]MH_SAM_APDU [09:51:53]CAPDU: 80 13 01 00 [09:51:53]Write to MH i2c: E2 08 00 54 07 80 13 01 00 00 00 00 00 D8 [09:51:53]Write i2c OK [09:51:53]MH_I2C_Read... [09:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:53]Read from MH i2c: E2 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 [09:51:53]MH_I2C_Read... [09:51:53]Read from MH i2c: E2 0E 00 54 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 70 [09:51:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:51:53]wFMCommunicate OK [09:51:53]SAM_PROTO_GetShiftState done [09:51:53]FM_GetShiftState done [09:51:53]req_shift_opened done [09:51:53]requested_item shift.open_date is exist - process it [09:51:53]req_shift_open_date [09:51:53]req_shift_open_date done [09:51:53]produce_requested_data done [09:51:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112179,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:51:53]process_action_free close_receipt [09:51:53]json_value_free [09:51:53]json_value_free done [09:51:53]process_json_proto returns [09:51:53]Send response to host [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=13 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 15 02 00 08 F4 03 04 00 52 A7 1B 66 [09:52:18]Write to MH i2c: E2 10 00 5F 07 80 15 02 00 08 00 F4 03 04 00 52 A7 1B 66 00 00 6B [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 5F 07 00 90 00 DA [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=25 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 [09:52:18]Write to MH i2c: E2 1C 00 60 07 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 00 00 49 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 60 07 00 90 00 DB [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 15 03 00 [09:52:18]Write to MH i2c: E2 08 00 61 07 80 15 03 00 00 00 00 00 E9 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 40 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 40 00 61 07 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 35 04 06 00 42 A1 6A E3 34 08 90 00 E9 [09:52:18]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 35 04 06 00 42 A1 6A E3 34 08 90 00 [09:52:18]wFMCommunicate OK [09:52:18]SAM_PROTO_ProcessDocument answer len = 59 [09:52:18]SAM_PROTO_ProcessDocument done [09:52:18]SetTLVBufToDocument [09:52:18]Processing tag 1209 (04B9) [09:52:18]Malloc new data [09:52:18]Processing tag 1041 (0411) [09:52:18]Processing tag 1040 (0410) [09:52:18]Malloc new data [09:52:18]Processing tag 1038 (040E) [09:52:18]Malloc new data [09:52:18]Processing tag 1042 (0412) [09:52:18]Malloc new data [09:52:18]Processing tag 1077 (0435) [09:52:18]Malloc new data [09:52:18]SetTLVBufToDocument err=0 [09:52:18]KKMLoadAndSignReceiptData store KKM data [09:52:18]KKMLoadAndSignReceiptData err=0 [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 11 00 00 [09:52:18]Write to MH i2c: E2 08 00 62 07 80 11 00 00 00 00 00 00 E3 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 17 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 17 00 62 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 34 [09:52:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:52:18]wFMCommunicate OK [09:52:18]Счет N : (1)48496 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА ТРК (МРК, ГНК) : 11 Товар: 2710124130 Аи-92-К-5 15.560 * 64.30 = 1000.51 НДС 12% НСП 1% > о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 79 14.04.2024 09:52 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112180 ФПД: 73261050442760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095218&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112180&fm=73261050442760&tin=02508201610067®Number=0000000000094237&sum=100000 [09:52:18]StoreToDocumentArchive [09:52:18]shift 357 fd 112180 [09:52:18]save to /storage/0357/doc_00112180 [09:52:18]save last doc name /storage/0357/doc_00112180 to /storage/kkm_last_doc_name [09:52:18]save OK [09:52:18]Clear old archive folders... [09:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:52:18]tlvbuf is 01760400 [09:52:18]SAM_PROTO_ClearQueue [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 09 00 00 [09:52:18]Write to MH i2c: E2 08 00 63 07 80 09 00 00 00 00 00 00 DC [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 63 07 00 90 00 DE [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]SAM_PROTO_ClearQueue done [09:52:18]KKMCreateOFDPacket [09:52:18]OFDProtocolAddRootSTLVToBuf [09:52:18]FM_MakeSignedData [09:52:18]FM_MakeSignedData [09:52:18]SAM_PROTO_SignData [09:52:18]wFMCommunicate request_size=4 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 0D 01 02 [09:52:18]Write to MH i2c: E2 08 00 64 07 80 0D 01 02 00 00 00 00 E4 [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 64 07 00 90 00 DF [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=255 [09:52:18]MH_SAM_APDU [09:52: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 4F 00 00 00 F4 03 04 00 52 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 35 04 06 00 42 [09:52:18]Write to MH i2c: E2 02 01 65 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 4F 00 00 00 F4 03 04 00 52 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 35 04 06 00 42 00 00 4D [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:18]Read from MH i2c: E2 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 [09:52:18]MH_I2C_Read... [09:52:18]Read from MH i2c: E2 03 00 65 07 00 90 00 E0 [09:52:18]RAPDU: 90 00 [09:52:18]wFMCommunicate OK [09:52:18]wFMCommunicate request_size=10 [09:52:18]MH_SAM_APDU [09:52:18]CAPDU: 80 0D 02 02 05 A1 6A E3 34 08 [09:52:18]Write to MH i2c: E2 0D 00 66 07 80 0D 02 02 05 00 A1 6A E3 34 08 00 00 1B [09:52:18]Write i2c OK [09:52:18]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 03 00 66 07 00 90 00 E1 [09:52:19]RAPDU: 90 00 [09:52:19]wFMCommunicate OK [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 0D 03 02 [09:52:19]Write to MH i2c: E2 08 00 67 07 80 0D 03 02 00 00 00 00 E9 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0B 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 0B 00 67 07 00 EA C9 BE 32 46 A0 2D DC 90 00 7C [09:52:19]RAPDU: EA C9 BE 32 46 A0 2D DC 90 00 [09:52:19]wFMCommunicate OK [09:52:19]SAM_PROTO_SignData done [09:52:19]FM_MakeSignedData done [09:52:19]CreateOFDProtocolMessage [09:52:19]wFMCommunicate request_size=4 [09:52:19]MH_SAM_APDU [09:52:19]CAPDU: 80 11 00 00 [09:52:19]Write to MH i2c: E2 08 00 68 07 80 11 00 00 00 00 00 00 E9 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:19]Read from MH i2c: E2 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 17 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: E2 17 00 68 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3A [09:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:52:19]wFMCommunicate OK [09:52:19]CreateOFDProtocolMessage done [09:52:19]OFDSenderStorePacket 112180 [09:52:19]StoreOFDPacket docnum=112180 [09:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 32 4D 07 01 AC 96 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 3C 00 00 00 00 00 37 04 06 00 1E 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 4F 00 00 00 F4 03 04 00 52 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 35 04 06 00 42 A1 6A E3 34 08 EA C9 BE 32 46 A0 2D DC [09:52:19]CheckFolder [09:52:19]dirname=/storage/ofd_packets [09:52:19]CheckFolder done [09:52:19]ProducePacketName [09:52:19]name=ofd_packets/00112180 [09:52:19]NVStorageSaveData ofd_packets/00112180 [09:52:19]File name is /storage/ofd_packets/00112180 [09:52:19]Write 301 bytes [09:52:19]NVStorageSaveData done [09:52:19]OFDSenderStorePacket done [09:52:19]KKMCreateOFDPacket done [09:52:19]NVStorageSaveData kkm_last_timestamp [09:52:19]File name is /storage/kkm_last_timestamp [09:52:19]Write 4 bytes [09:52:19]NVStorageSaveData done [09:52:19]ExternCall_PrintAddStr [09:52:19]wPrintStart [09:52:19]Write to MH i2c: 01 00 00 69 07 70 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 07 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 FF 0F 85 [09:52:19]RasterBufferAndPrint [09:52:19]line Счет N : (1)48496 [09:52:19]line ИНН: 02508201610067 [09:52:19]line Контрольно-Кассовый Чек [09:52:19]line ПРОДАЖА [09:52:19]line ТРК (МРК, ГНК) : 11 [09:52:19]line Товар: 2710124130 [09:52:19]line Аи-92-К-5 [09:52:19]line 15.560 * 64.30 [09:52:19]line = 1000.51 [09:52:19]line НДС 12% НСП 1% [09:52:19]line > о реализуемом товаре [09:52:19]line ОКРУГЛЕНИЕ: -0.51 [09:52:19]line ИТОГО: 1000.00 [09:52:19]line Внесено: 1000.00 [09:52:19]line СДАЧА: 0.00 [09:52:19]line НСП 1% : 8.85 [09:52:19]line НДС 12% : 106.25 [09:52:19]line Наличными: 1000.00 [09:52:19]line Безнал.: 0.00 [09:52:19]line Место: АЗС № 47 "Партнер Нефть" [09:52:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:52:19]line СНО: Общий режим [09:52:19]line Чек 79 14.04.2024 09:52 [09:52:19]line Смена: 357 ФФД: 1.0 [09:52:19]line ЗНМ: 0300000138 [09:52:19]line РНМ: 0000000000094237 [09:52:19]line Версия ККМ: 001 [09:52:19]line ФМ: 0000000000875019 [09:52:19]line ФД: 112180 [09:52:19]line ФПД: 73261050442760 [09:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095218&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112180&fm=73261050442760&tin=02508201610067®Number=0000000000094237&sum=100000 [09:52:19]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:52:19]ProducePacketName [09:52:19]name=ofd_packets/00112180 [09:52:19]OFD Sender: To server: pG, [09:52:19]CommunicateWithHost lk.salyk.kg:30040 [09:52:19]ConnectInit lk.salyk.kg [09:52:19]written 0, free lines is 4095 [09:52:19]Write to MH i2c: 01 00 00 94 07 9B [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 07 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: 01 07 00 94 07 00 00 00 00 00 D6 0C 84 [09:52:19]RasterBufferAndPrint [09:52:19]line [09:52:19]line [09:52:19]line [09:52:19]line [09:52:19]line [09:52:19]written 0, free lines is 3294 [09:52:19]MH_Cut [09:52:19]Write to MH i2c: D1 01 00 9B 07 01 74 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: D1 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: D1 01 00 [09:52:19]MH_I2C_Read... [09:52:19]Read from MH i2c: D1 01 00 9B 07 00 73 [09:52:19]Write to MH i2c: 01 00 00 9C 07 A3 [09:52:19]Write i2c OK [09:52:19]MH_I2C_Read... [09:52:20]*** Cut start [09:52:20]*** Partial cut [09:52:20]*** CUTSNS_PIN = 1 [09:52:20]*** CUTSNS_PIN = 0 [09:52:20]*** Brake cut motor [09:52:21]Read from MH i2c: 01 [09:52:21]MH_I2C_Read... [09:52:21]*** Stop cut motor [09:52:21]*** Cut end [09:52:21]Read from MH i2c: 01 07 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: 01 07 00 9C 07 00 00 00 00 00 FF 0F B8 [09:52:21]process_action close_receipt done [09:52:21]requested_data is exist [09:52:21]produce_requested_data [09:52:21]requested_item fm.sn is exist - process it [09:52:21]wFMCommunicate request_size=4 [09:52:21]MH_SAM_APDU [09:52:21]CAPDU: 80 11 00 00 [09:52:21]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:21]Read from MH i2c: E2 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 17 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [09:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:52:21]wFMCommunicate OK [09:52:21]requested_item fd.num is exist - process it [09:52:21]SAM_PROTO_GetFieldsCounters [09:52:21]wFMCommunicate request_size=4 [09:52:21]MH_SAM_APDU [09:52:21]CAPDU: 80 13 00 00 [09:52:21]Write to MH i2c: E2 08 00 9E 07 80 13 00 00 00 00 00 00 21 [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:21]Read from MH i2c: E2 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 62 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 62 00 9E 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 34 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [09:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 34 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:21]wFMCommunicate OK [09:52:21]SAM_PROTO_GetFieldsCounters done [09:52:21]requested_item shift.num is exist - process it [09:52:21]requested_item shift.opened is exist - process it [09:52:21]req_shift_opened [09:52:21]FM_GetShiftState [09:52:21]SAM_PROTO_GetShiftState [09:52:21]wFMCommunicate request_size=4 [09:52:21]MH_SAM_APDU [09:52:21]CAPDU: 80 13 01 00 [09:52:21]Write to MH i2c: E2 08 00 9F 07 80 13 01 00 00 00 00 00 23 [09:52:21]Write i2c OK [09:52:21]MH_I2C_Read... [09:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:21]Read from MH i2c: E2 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 0E 00 [09:52:21]MH_I2C_Read... [09:52:21]Read from MH i2c: E2 0E 00 9F 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BB [09:52:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:52:21]wFMCommunicate OK [09:52:21]SAM_PROTO_GetShiftState done [09:52:21]FM_GetShiftState done [09:52:21]req_shift_opened done [09:52:21]requested_item shift.open_date is exist - process it [09:52:21]req_shift_open_date [09:52:21]req_shift_open_date done [09:52:21]produce_requested_data done [09:52:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112180,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:52:21]process_action_free close_receipt [09:52:21]json_value_free [09:52:21]json_value_free done [09:52:21]process_json_proto returns [09:52:21]Send response to host [09:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112180,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:52:21]free response buf [09:52:21]execute_script done [09:52:21]execute_script returns [09:52:21]free content buf [09:52:21]Sock 8.Close socket [09:52:21]Sock 8.Thread stoped [09:52:24]ConnectInit Can't take IP for lk.salyk.kg [09:52:24]CommunicateWithHost connect error [09:52:24]CommunicateWithHost err = -1 [09:52:24]OFD Sender: Server communicate error [09:52:29]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:52:29]ProducePacketName [09:52:29]name=ofd_packets/00112180 [09:52:29]OFD Sender: To server: pG, [09:52:29]CommunicateWithHost lk.salyk.kg:30040 [09:52:29]ConnectInit lk.salyk.kg [09:52:34]ConnectInit Can't take IP for lk.salyk.kg [09:52:34]CommunicateWithHost connect error [09:52:34]CommunicateWithHost err = -1 [09:52:34]OFD Sender: Server communicate error [09:52:39]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:52:39]ProducePacketName [09:52:39]name=ofd_packets/00112180 [09:52:39]OFD Sender: To server: pG, [09:52:39]CommunicateWithHost lk.salyk.kg:30040 [09:52:39]ConnectInit lk.salyk.kg [09:52:44]ConnectInit Can't take IP for lk.salyk.kg [09:52:44]CommunicateWithHost connect error [09:52:44]CommunicateWithHost err = -1 [09:52:44]OFD Sender: Server communicate error [09:52:49]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:52:49]ProducePacketName [09:52:49]name=ofd_packets/00112180 [09:52:49]OFD Sender: To server: pG, [09:52:49]CommunicateWithHost lk.salyk.kg:30040 [09:52:49]ConnectInit lk.salyk.kg [09:52:54]ConnectInit Can't take IP for lk.salyk.kg [09:52:54]CommunicateWithHost connect error [09:52:54]CommunicateWithHost err = -1 [09:52:54]OFD Sender: Server communicate error [09:52:59]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:52:59]ProducePacketName [09:52:59]name=ofd_packets/00112180 [09:52:59]OFD Sender: To server: pG, [09:52:59]CommunicateWithHost lk.salyk.kg:30040 [09:52:59]ConnectInit lk.salyk.kg [09:53:04]ConnectInit Can't take IP for lk.salyk.kg [09:53:04]CommunicateWithHost connect error [09:53:04]CommunicateWithHost err = -1 [09:53:04]OFD Sender: Server communicate error [09:53:09]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:09]ProducePacketName [09:53:09]name=ofd_packets/00112180 [09:53:09]OFD Sender: To server: pG, [09:53:09]CommunicateWithHost lk.salyk.kg:30040 [09:53:09]ConnectInit lk.salyk.kg [09:53:14]ConnectInit Can't take IP for lk.salyk.kg [09:53:14]CommunicateWithHost connect error [09:53:14]CommunicateWithHost err = -1 [09:53:14]OFD Sender: Server communicate error [09:53:19]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:19]ProducePacketName [09:53:19]name=ofd_packets/00112180 [09:53:19]OFD Sender: To server: pG, [09:53:19]CommunicateWithHost lk.salyk.kg:30040 [09:53:19]ConnectInit lk.salyk.kg [09:53:24]ConnectInit Can't take IP for lk.salyk.kg [09:53:24]CommunicateWithHost connect error [09:53:24]CommunicateWithHost err = -1 [09:53:24]OFD Sender: Server communicate error [09:53:29]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:29]ProducePacketName [09:53:29]name=ofd_packets/00112180 [09:53:29]OFD Sender: To server: pG, [09:53:29]CommunicateWithHost lk.salyk.kg:30040 [09:53:29]ConnectInit lk.salyk.kg [09:53:34]ConnectInit Can't take IP for lk.salyk.kg [09:53:34]CommunicateWithHost connect error [09:53:34]CommunicateWithHost err = -1 [09:53:34]OFD Sender: Server communicate error [09:53:39]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:39]ProducePacketName [09:53:39]name=ofd_packets/00112180 [09:53:39]OFD Sender: To server: pG, [09:53:39]CommunicateWithHost lk.salyk.kg:30040 [09:53:39]ConnectInit lk.salyk.kg [09:53:44]ConnectInit Can't take IP for lk.salyk.kg [09:53:44]CommunicateWithHost connect error [09:53:44]CommunicateWithHost err = -1 [09:53:44]OFD Sender: Server communicate error [09:53:49]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:49]ProducePacketName [09:53:49]name=ofd_packets/00112180 [09:53:49]OFD Sender: To server: pG, [09:53:49]CommunicateWithHost lk.salyk.kg:30040 [09:53:49]ConnectInit lk.salyk.kg [09:53:54]ConnectInit Can't take IP for lk.salyk.kg [09:53:54]CommunicateWithHost connect error [09:53:54]CommunicateWithHost err = -1 [09:53:54]OFD Sender: Server communicate error [09:53:59]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:53:59]ProducePacketName [09:53:59]name=ofd_packets/00112180 [09:53:59]OFD Sender: To server: pG, [09:53:59]CommunicateWithHost lk.salyk.kg:30040 [09:53:59]ConnectInit lk.salyk.kg [09:54:04]ConnectInit Can't take IP for lk.salyk.kg [09:54:04]CommunicateWithHost connect error [09:54:04]CommunicateWithHost err = -1 [09:54:04]OFD Sender: Server communicate error [09:54:09]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:09]ProducePacketName [09:54:09]name=ofd_packets/00112180 [09:54:09]OFD Sender: To server: pG, [09:54:09]CommunicateWithHost lk.salyk.kg:30040 [09:54:09]ConnectInit lk.salyk.kg [09:54:14]ConnectInit Can't take IP for lk.salyk.kg [09:54:14]CommunicateWithHost connect error [09:54:14]CommunicateWithHost err = -1 [09:54:14]OFD Sender: Server communicate error [09:54:19]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:19]ProducePacketName [09:54:19]name=ofd_packets/00112180 [09:54:19]OFD Sender: To server: pG, [09:54:19]CommunicateWithHost lk.salyk.kg:30040 [09:54:19]ConnectInit lk.salyk.kg [09:54:21]ConnectInit Can't connect to host [09:54:24]ConnectInit Can't take IP for lk.salyk.kg [09:54:24]CommunicateWithHost connect error [09:54:24]CommunicateWithHost err = -1 [09:54:24]OFD Sender: Server communicate error [09:54:29]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:29]ProducePacketName [09:54:29]name=ofd_packets/00112180 [09:54:29]OFD Sender: To server: pG, [09:54:29]CommunicateWithHost lk.salyk.kg:30040 [09:54:29]ConnectInit lk.salyk.kg [09:54:34]ConnectInit Can't take IP for lk.salyk.kg [09:54:34]CommunicateWithHost connect error [09:54:34]CommunicateWithHost err = -1 [09:54:34]OFD Sender: Server communicate error [09:54:39]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:39]ProducePacketName [09:54:39]name=ofd_packets/00112180 [09:54:39]OFD Sender: To server: pG, [09:54:39]CommunicateWithHost lk.salyk.kg:30040 [09:54:39]ConnectInit lk.salyk.kg [09:54:44]ConnectInit Can't take IP for lk.salyk.kg [09:54:44]CommunicateWithHost connect error [09:54:44]CommunicateWithHost err = -1 [09:54:44]OFD Sender: Server communicate error [09:54:49]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:49]ProducePacketName [09:54:49]name=ofd_packets/00112180 [09:54:49]OFD Sender: To server: pG, [09:54:49]CommunicateWithHost lk.salyk.kg:30040 [09:54:49]ConnectInit lk.salyk.kg [09:54:54]ConnectInit Can't take IP for lk.salyk.kg [09:54:54]CommunicateWithHost connect error [09:54:54]CommunicateWithHost err = -1 [09:54:54]OFD Sender: Server communicate error [09:54:59]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:54:59]ProducePacketName [09:54:59]name=ofd_packets/00112180 [09:54:59]OFD Sender: To server: pG, [09:54:59]CommunicateWithHost lk.salyk.kg:30040 [09:54:59]ConnectInit lk.salyk.kg [09:55:04]ConnectInit Can't take IP for lk.salyk.kg [09:55:04]CommunicateWithHost connect error [09:55:04]CommunicateWithHost err = -1 [09:55:04]OFD Sender: Server communicate error [09:55:09]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:55:09]ProducePacketName [09:55:09]name=ofd_packets/00112180 [09:55:09]OFD Sender: To server: pG, [09:55:09]CommunicateWithHost lk.salyk.kg:30040 [09:55:09]ConnectInit lk.salyk.kg [09:55:14]ConnectInit Can't take IP for lk.salyk.kg [09:55:14]CommunicateWithHost connect error [09:55:14]CommunicateWithHost err = -1 [09:55:14]OFD Sender: Server communicate error [09:55:19]OFD Sender: Processing packet 112180 [packets to send 71, broken 70] [09:55:19]ProducePacketName [09:55:19]name=ofd_packets/00112180 [09:55:19]OFD Sender: To server: pG, [09:55:19]CommunicateWithHost lk.salyk.kg:30040 [09:55:19]ConnectInit lk.salyk.kg [09:55:19]Connected sock=9 [09:55:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 32 4D 07 01 AC 96 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 3C 00 00 00 00 00 37 04 06 00 1E 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 4F 00 00 00 F4 03 04 00 52 A7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 35 04 06 00 42 A1 6A E3 34 08 EA C9 BE 32 46 A0 2D DC [09:55:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 53 19 47 00 78 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B6 01 00 F4 03 04 00 92 4F 1B 66 B6 04 01 00 00 B3 DE 4F 93 E4 64 CF 34 [09:55:20]CommunicateWithHost err = 0 [09:55:20]CheckOFDResponse [09:55:20]1017 (14) - 77093643461234 [09:55:20]1041 (16) - 0000000000875019 [09:55:20]1040 (4) - 112180 [09:55:20]1012 (4) - 14.04.2024 03:37 [09:55:20]1206 (1) - 0 [09:55:20]OFD Sender: Remove packet 112180 [09:55:20]ProducePacketName [09:55:20]name=ofd_packets/00112180 [09:55:20]NVStorageDeleteData [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:39]ConnectInit Can't connect to host [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:10]OFD Sender: No OFD packet to send [09:57:15]OFD Sender: No OFD packet to send [09:57:20]OFD Sender: No OFD packet to send [09:57:25]OFD Sender: No OFD packet to send [09:57:30]OFD Sender: No OFD packet to send [09:57:35]OFD Sender: No OFD packet to send [09:57:40]OFD Sender: No OFD packet to send [09:57:45]OFD Sender: No OFD packet to send [09:57:50]OFD Sender: No OFD packet to send [09:57:55]OFD Sender: No OFD packet to send [09:58:00]OFD Sender: No OFD packet to send [09:58:05]OFD Sender: No OFD packet to send [09:58:10]OFD Sender: No OFD packet to send [09:58:15]OFD Sender: No OFD packet to send [09:58:20]OFD Sender: No OFD packet to send [09:58:25]OFD Sender: No OFD packet to send [09:58:30]OFD Sender: No OFD packet to send [09:58:35]OFD Sender: No OFD packet to send [09:58:40]OFD Sender: No OFD packet to send [09:58:45]OFD Sender: No OFD packet to send [09:58:50]OFD Sender: No OFD packet to send [09:58:55]OFD Sender: No OFD packet to send [09:59:00]OFD Sender: No OFD packet to send [09:59:05]OFD Sender: No OFD packet to send [09:59:10]OFD Sender: No OFD packet to send [09:59:15]OFD Sender: No OFD packet to send [09:59:20]OFD Sender: No OFD packet to send [09:59:21]accept exits with 10 [09:59:21]New connection [09:59:21]New thread 3067243876 created [09:59:21]Thread 3067100516 joined [09:59:21]Waiting for new connection... [09:59:21] Sock 10.Parse request [09:59:21]Sock 10.Check first char [09:59:21]Sock 10.First char is OK [09:59:21]request: POST /json_proto HTTP/1.0 [09:59:21]Method: POST [09:59:21]URL: /json_proto [09:59:21]Method is POST - this is cgi request [09:59:21]url: /json_proto [09:59:21]query_string will be loaded in cgi processing [09:59:21]execute_cgi json_proto POST (null) [09:59:21]execute_cgi path=json_proto method=POST [09:59:21]POST find Content-Length [09:59:21]Host: 172.17.96.197:8080 [09:59:21]Content-Length: 676 [09:59:21]Content-Type: application/json [09:59:21] [09:59:21]POST finish read [09:59:21]Found Content-Length = 676 [09:59:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:59:21]execute_script... [09:59: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)48497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:59:21]POST & json_proto [09:59:21]process_json_proto [09:59:21]json parsed OK: [09:59:21]protocol is kg_v1.0 [09:59:21]action value=close_receipt [09:59:21]process_action close_receipt [09:59:21]cmd_close_receipt [09:59:21]MH_GetDate [09:59:21]Write to MH i2c: F0 00 00 A0 07 96 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 09 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: F0 09 00 A0 07 00 FA A8 1B 66 E0 85 7F 64 0A [09:59:21]GetLastDocTimeStamp 1713088338 [09:59:21]current date 1713088762 [09:59:21]FM_GetShiftState [09:59:21]SAM_PROTO_GetShiftState [09:59:21]wFMCommunicate request_size=4 [09:59:21]MH_SAM_APDU [09:59:21]CAPDU: 80 13 01 00 [09:59:21]Write to MH i2c: E2 08 00 A1 07 80 13 01 00 00 00 00 00 25 [09:59:21]Write i2c OK [09:59:21]MH_I2C_Read... [09:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:21]Read from MH i2c: E2 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 0E 00 [09:59:21]MH_I2C_Read... [09:59:21]Read from MH i2c: E2 0E 00 A1 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BD [09:59:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:59:21]wFMCommunicate OK [09:59:21]SAM_PROTO_GetShiftState done [09:59:21]FM_GetShiftState done [09:59:21]opened in 1713054696 [09:59:21]opened+sec_in_day 1713141096 [09:59:21]quantity*price = 50025 [09:59:21]sum+1 = 50026 [09:59:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 80 14.04.2024 09:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112181 ФПД: 172603859941099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095922&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112181&fm=172603859941099&tin=02508201610067®Number=0000000000094237&sum=50000 [09:59:22]StoreToDocumentArchive [09:59:22]shift 357 fd 112181 [09:59:22]save to /storage/0357/doc_00112181 [09:59:22]save last doc name /storage/0357/doc_00112181 to /storage/kkm_last_doc_name [09:59:22]save OK [09:59:22]Clear old archive folders... [09:59:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:22]tlvbuf is 01759F20 [09:59:22]SAM_PROTO_ClearQueue [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 09 00 00 [09:59:22]Write to MH i2c: E2 08 00 AE 07 80 09 00 00 00 00 00 00 27 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 AE 07 00 90 00 29 [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_ClearQueue done [09:59:22]KKMCreateOFDPacket [09:59:22]OFDProtocolAddRootSTLVToBuf [09:59:22]FM_MakeSignedData [09:59:22]FM_MakeSignedData [09:59:22]SAM_PROTO_SignData [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 01 02 [09:59:22]Write to MH i2c: E2 08 00 AF 07 80 0D 01 02 00 00 00 00 2F [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 AF 07 00 90 00 2A [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=255 [09:59:22]MH_SAM_APDU [09:59: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 50 00 00 00 F4 03 04 00 FA A8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B6 01 00 35 04 06 00 9C [09:59:22]Write to MH i2c: E2 02 01 B0 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 50 00 00 00 F4 03 04 00 FA A8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B6 01 00 35 04 06 00 9C 00 00 33 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 B0 07 00 90 00 2B [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=10 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 02 02 05 FB 77 C2 36 EB [09:59:22]Write to MH i2c: E2 0D 00 B1 07 80 0D 02 02 05 00 FB 77 C2 36 EB 00 00 91 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 03 00 B1 07 00 90 00 2C [09:59:22]RAPDU: 90 00 [09:59:22]wFMCommunicate OK [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 0D 03 02 [09:59:22]Write to MH i2c: E2 08 00 B2 07 80 0D 03 02 00 00 00 00 34 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 0B 00 B2 07 00 8C C2 B4 6B 89 81 F4 15 90 00 B5 [09:59:22]RAPDU: 8C C2 B4 6B 89 81 F4 15 90 00 [09:59:22]wFMCommunicate OK [09:59:22]SAM_PROTO_SignData done [09:59:22]FM_MakeSignedData done [09:59:22]CreateOFDProtocolMessage [09:59:22]wFMCommunicate request_size=4 [09:59:22]MH_SAM_APDU [09:59:22]CAPDU: 80 11 00 00 [09:59:22]Write to MH i2c: E2 08 00 B3 07 80 11 00 00 00 00 00 00 34 [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:22]Read from MH i2c: E2 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: E2 17 00 B3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 85 [09:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:59:22]wFMCommunicate OK [09:59:22]CreateOFDProtocolMessage done [09:59:22]OFDSenderStorePacket 112181 [09:59:22]StoreOFDPacket docnum=112181 [09:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 03 73 07 01 EF 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 50 00 00 00 F4 03 04 00 FA A8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B6 01 00 35 04 06 00 9C FB 77 C2 36 EB 8C C2 B4 6B 89 81 F4 15 [09:59:22]CheckFolder [09:59:22]dirname=/storage/ofd_packets [09:59:22]CheckFolder done [09:59:22]ProducePacketName [09:59:22]name=ofd_packets/00112181 [09:59:22]NVStorageSaveData ofd_packets/00112181 [09:59:22]File name is /storage/ofd_packets/00112181 [09:59:22]Write 301 bytes [09:59:22]NVStorageSaveData done [09:59:22]OFDSenderStorePacket done [09:59:22]KKMCreateOFDPacket done [09:59:22]NVStorageSaveData kkm_last_timestamp [09:59:22]File name is /storage/kkm_last_timestamp [09:59:22]Write 4 bytes [09:59:22]NVStorageSaveData done [09:59:22]ExternCall_PrintAddStr [09:59:22]wPrintStart [09:59:22]Write to MH i2c: 01 00 00 B4 07 BB [09:59:22]Write i2c OK [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 [09:59:22]MH_I2C_Read... [09:59:22]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [09:59:22]RasterBufferAndPrint [09:59:22]line Счет N : (1)48497 [09:59:22]line ИНН: 02508201610067 [09:59:22]line Контрольно-Кассовый Чек [09:59:22]line ПРОДАЖА [09:59:22]line ТРК (МРК, ГНК) : 11 [09:59:22]line Товар: 2710124130 [09:59:22]line Аи-92-К-5 [09:59:22]line 7.780 * 64.30 [09:59:22]line = 500.25 [09:59:22]line НДС 12% НСП 1% [09:59:22]line > о реализуемом товаре [09:59:22]line ОКРУГЛЕНИЕ: -0.25 [09:59:22]line ИТОГО: 500.00 [09:59:22]line Внесено: 500.00 [09:59:22]line СДАЧА: 0.00 [09:59:22]line НСП 1% : 4.43 [09:59:22]line НДС 12% : 53.12 [09:59:22]line Наличными: 500.00 [09:59:22]line Безнал.: 0.00 [09:59:22]line Место: АЗС № 47 "Партнер Нефть" [09:59:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [09:59:22]line СНО: Общий режим [09:59:22]line Чек 80 14.04.2024 09:59 [09:59:22]line Смена: 357 ФФД: 1.0 [09:59:22]line ЗНМ: 0300000138 [09:59:22]line РНМ: 0000000000094237 [09:59:22]line Версия ККМ: 001 [09:59:22]line ФМ: 0000000000875019 [09:59:22]line ФД: 112181 [09:59:23]line ФПД: 172603859941099 [09:59:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T095922&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112181&fm=172603859941099&tin=02508201610067®Number=0000000000094237&sum=50000 [09:59:23]OFD Sender: Processing packet 112181 [packets to send 71, broken 70] [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00112181 [09:59:23]OFD Sender: To server: pG, [09:59:23]CommunicateWithHost lk.salyk.kg:30040 [09:59:23]ConnectInit lk.salyk.kg [09:59:23]written 0, free lines is 4095 [09:59:23]Connected sock=9 [09:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 03 73 07 01 EF 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 50 00 00 00 F4 03 04 00 FA A8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B6 01 00 35 04 06 00 9C FB 77 C2 36 EB 8C C2 B4 6B 89 81 F4 15 [09:59:23]Write to MH i2c: 01 00 00 DF 07 E6 [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 07 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: 01 07 00 DF 07 00 00 00 00 00 D4 0C CD [09:59:23]RasterBufferAndPrint [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]line [09:59:23]written 0, free lines is 3288 [09:59:23]MH_Cut [09:59:23]Write to MH i2c: D1 01 00 E6 07 01 BF [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 01 00 [09:59:23]MH_I2C_Read... [09:59:23]Read from MH i2c: D1 01 00 E6 07 00 BE [09:59:23]Write to MH i2c: 01 00 00 E7 07 EE [09:59:23]Write i2c OK [09:59:23]MH_I2C_Read... [09:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FD 96 47 00 61 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B6 01 00 F4 03 04 00 86 50 1B 66 B6 04 01 00 00 92 0A 26 E8 4E 00 5D 0C [09:59:23]CommunicateWithHost err = 0 [09:59:23]CheckOFDResponse [09:59:23]1017 (14) - 77093643461234 [09:59:23]1041 (16) - 0000000000875019 [09:59:23]1040 (4) - 112181 [09:59:23]1012 (4) - 14.04.2024 03:41 [09:59:23]1206 (1) - 0 [09:59:23]OFD Sender: Remove packet 112181 [09:59:23]ProducePacketName [09:59:23]name=ofd_packets/00112181 [09:59:23]NVStorageDeleteData [09:59:24]OFD Sender: No OFD packet to send [09:59:24]*** Cut start [09:59:24]*** Partial cut [09:59:24]*** CUTSNS_PIN = 1 [09:59:24]*** CUTSNS_PIN = 0 [09:59:24]*** Brake cut motor [09:59:24]Read from MH i2c: 01 [09:59:24]MH_I2C_Read... [09:59:24]*** Stop cut motor [09:59:24]*** Cut end [09:59:24]Read from MH i2c: 01 07 00 [09:59:24]MH_I2C_Read... [09:59:24]Read from MH i2c: 01 07 00 E7 07 00 00 00 00 00 FF 0F 03 [09:59:24]process_action close_receipt done [09:59:24]requested_data is exist [09:59:24]produce_requested_data [09:59:24]requested_item fm.sn is exist - process it [09:59:24]wFMCommunicate request_size=4 [09:59:24]MH_SAM_APDU [09:59:24]CAPDU: 80 11 00 00 [09:59:24]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [09:59:24]Write i2c OK [09:59:24]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 17 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BA [09:59:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [09:59:25]wFMCommunicate OK [09:59:25]requested_item fd.num is exist - process it [09:59:25]SAM_PROTO_GetFieldsCounters [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 13 00 00 [09:59:25]Write to MH i2c: E2 08 00 E9 07 80 13 00 00 00 00 00 00 6C [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 62 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 62 00 E9 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 35 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [09:59:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 35 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:25]wFMCommunicate OK [09:59:25]SAM_PROTO_GetFieldsCounters done [09:59:25]requested_item shift.num is exist - process it [09:59:25]requested_item shift.opened is exist - process it [09:59:25]req_shift_opened [09:59:25]FM_GetShiftState [09:59:25]SAM_PROTO_GetShiftState [09:59:25]wFMCommunicate request_size=4 [09:59:25]MH_SAM_APDU [09:59:25]CAPDU: 80 13 01 00 [09:59:25]Write to MH i2c: E2 08 00 EA 07 80 13 01 00 00 00 00 00 6E [09:59:25]Write i2c OK [09:59:25]MH_I2C_Read... [09:59:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:25]Read from MH i2c: E2 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 [09:59:25]MH_I2C_Read... [09:59:25]Read from MH i2c: E2 0E 00 EA 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 06 [09:59:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [09:59:25]wFMCommunicate OK [09:59:25]SAM_PROTO_GetShiftState done [09:59:25]FM_GetShiftState done [09:59:25]req_shift_opened done [09:59:25]requested_item shift.open_date is exist - process it [09:59:25]req_shift_open_date [09:59:25]req_shift_open_date done [09:59:25]produce_requested_data done [09:59:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112181,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [09:59:25]process_action_free close_receipt [09:59:25]json_value_free [09:59:25]json_value_free done [09:59:25]process_json_proto returns [09:59:25]Send response to host [09:59:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112181,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [09:59:25]free response buf [09:59:25]execute_script done [09:59:25]execute_script returns [09:59:25]free content buf [09:59:25]Sock 10.Close socket [09:59:25]Sock 10.Thread stoped [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:49]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [10:06:34]OFD Sender: No OFD packet to send [10:06:39]OFD Sender: No OFD packet to send [10:06:44]OFD Sender: No OFD packet to send [10:06:49]OFD Sender: No OFD packet to send [10:06:54]OFD Sender: No OFD packet to send [10:06:59]OFD Sender: No OFD packet to send [10:07:04]OFD Sender: No OFD packet to send [10:07:09]OFD Sender: No OFD packet to send [10:07:14]OFD Sender: No OFD packet to send [10:07:19]OFD Sender: No OFD packet to send [10:07:24]OFD Sender: No OFD packet to send [10:07:29]OFD Sender: No OFD packet to send [10:07:34]OFD Sender: No OFD packet to send [10:07:39]OFD Sender: No OFD packet to send [10:07:44]OFD Sender: No OFD packet to send [10:07:49]OFD Sender: No OFD packet to send [10:07:54]OFD Sender: No OFD packet to send [10:07:59]OFD Sender: No OFD packet to send [10:08:04]OFD Sender: No OFD packet to send [10:08:09]OFD Sender: No OFD packet to send [10:08:14]OFD Sender: No OFD packet to send [10:08:19]OFD Sender: No OFD packet to send [10:08:24]OFD Sender: No OFD packet to send [10:08:29]OFD Sender: No OFD packet to send [10:08:34]OFD Sender: No OFD packet to send [10:08:39]accept exits with 8 [10:08:39]New connection [10:08:39]New thread 3067100516 created [10:08:39]Thread 3067243876 joined [10:08:39]Waiting for new connection... [10:08:39] Sock 8.Parse request [10:08:39]Sock 8.Check first char [10:08:39]Sock 8.First char is OK [10:08:39]request: POST /json_proto HTTP/1.0 [10:08:39]Method: POST [10:08:39]URL: /json_proto [10:08:39]Method is POST - this is cgi request [10:08:39]url: /json_proto [10:08:39]query_string will be loaded in cgi processing [10:08:39]execute_cgi json_proto POST (null) [10:08:39]execute_cgi path=json_proto method=POST [10:08:39]POST find Content-Length [10:08:39]Host: 172.17.96.197:8080 [10:08:39]Content-Length: 815 [10:08:39]Content-Type: application/json [10:08:39] [10:08:39]POST finish read [10:08:39]Found Content-Length = 815 [10:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48498", "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.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 350.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:39]execute_script... [10:08: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)48498", "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.30, "quantity" : 5.450, "sum" : 350.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 350.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:08:39]POST & json_proto [10:08:39]process_json_proto [10:08:39]json parsed OK: [10:08:39]protocol is kg_v1.0 [10:08:39]action value=close_receipt [10:08:39]process_action close_receipt [10:08:39]cmd_close_receipt [10:08:39]MH_GetDate [10:08:39]Write to MH i2c: F0 00 00 EB 07 E1 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 09 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: F0 09 00 EB 07 00 28 AB 1B 66 E0 85 7F 64 86 [10:08:39]GetLastDocTimeStamp 1713088762 [10:08:39]current date 1713089320 [10:08:39]FM_GetShiftState [10:08:39]SAM_PROTO_GetShiftState [10:08:39]wFMCommunicate request_size=4 [10:08:39]MH_SAM_APDU [10:08:39]CAPDU: 80 13 01 00 [10:08:39]Write to MH i2c: E2 08 00 EC 07 80 13 01 00 00 00 00 00 70 [10:08:39]Write i2c OK [10:08:39]MH_I2C_Read... [10:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:39]Read from MH i2c: E2 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 [10:08:39]MH_I2C_Read... [10:08:39]Read from MH i2c: E2 0E 00 EC 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 08 [10:08:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:08:39]wFMCommunicate OK [10:08:39]SAM_PROTO_GetShiftState done [10:08:39]FM_GetShiftState done [10:08:39]opened in 1713054696 [10:08:39]opened+sec_in_day 1713141096 [10:08:39]quantity*price = 35043 [10:08:39]sum+1 = 35045 [10:08:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 350.44 НСП 1% : 3.10 НДС 12% : 37.21 Наличными: 0.00 Безнал.: 350.44 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 81 14.04.2024 10:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112182 ФПД: 75612937737697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100840&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112182&fm=75612937737697&tin=02508201610067®Number=0000000000094237&sum=35044 [10:08:40]StoreToDocumentArchive [10:08:40]shift 357 fd 112182 [10:08:40]save to /storage/0357/doc_00112182 [10:08:40]save last doc name /storage/0357/doc_00112182 to /storage/kkm_last_doc_name [10:08:40]save OK [10:08:40]Clear old archive folders... [10:08:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:40]tlvbuf is 01718290 [10:08:40]SAM_PROTO_ClearQueue [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 09 00 00 [10:08:40]Write to MH i2c: E2 08 00 F9 07 80 09 00 00 00 00 00 00 72 [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:40]Read from MH i2c: E2 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 03 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 03 00 F9 07 00 90 00 74 [10:08:40]RAPDU: 90 00 [10:08:40]wFMCommunicate OK [10:08:40]SAM_PROTO_ClearQueue done [10:08:40]KKMCreateOFDPacket [10:08:40]OFDProtocolAddRootSTLVToBuf [10:08:40]FM_MakeSignedData [10:08:40]FM_MakeSignedData [10:08:40]SAM_PROTO_SignData [10:08:40]wFMCommunicate request_size=4 [10:08:40]MH_SAM_APDU [10:08:40]CAPDU: 80 0D 01 02 [10:08:40]Write to MH i2c: E2 08 00 FA 07 80 0D 01 02 00 00 00 00 7A [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:40]Read from MH i2c: E2 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 03 00 [10:08:40]MH_I2C_Read... [10:08:40]Read from MH i2c: E2 03 00 FA 07 00 90 00 75 [10:08:40]RAPDU: 90 00 [10:08:40]wFMCommunicate OK [10:08:40]wFMCommunicate request_size=255 [10:08:40]MH_SAM_APDU [10:08: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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 28 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B6 01 00 35 04 06 00 44 [10:08:40]Write to MH i2c: E2 02 01 FB 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 28 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B6 01 00 35 04 06 00 44 00 00 66 [10:08:40]Write i2c OK [10:08:40]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 FB 07 00 90 00 76 [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]wFMCommunicate request_size=10 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 02 02 05 C5 02 4B 55 E1 [10:08:41]Write to MH i2c: E2 0D 00 FC 07 80 0D 02 02 05 00 C5 02 4B 55 E1 00 00 CF [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 03 00 FC 07 00 90 00 77 [10:08:41]RAPDU: 90 00 [10:08:41]wFMCommunicate OK [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 0D 03 02 [10:08:41]Write to MH i2c: E2 08 00 FD 07 80 0D 03 02 00 00 00 00 7F [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0B 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 0B 00 FD 07 00 6D 2F 86 70 92 BB 8F B1 90 00 9F [10:08:41]RAPDU: 6D 2F 86 70 92 BB 8F B1 90 00 [10:08:41]wFMCommunicate OK [10:08:41]SAM_PROTO_SignData done [10:08:41]FM_MakeSignedData done [10:08:41]CreateOFDProtocolMessage [10:08:41]wFMCommunicate request_size=4 [10:08:41]MH_SAM_APDU [10:08:41]CAPDU: 80 11 00 00 [10:08:41]Write to MH i2c: E2 08 00 FE 07 80 11 00 00 00 00 00 00 7F [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:41]Read from MH i2c: E2 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 17 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: E2 17 00 FE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D0 [10:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:08:41]wFMCommunicate OK [10:08:41]CreateOFDProtocolMessage done [10:08:41]OFDSenderStorePacket 112182 [10:08:41]StoreOFDPacket docnum=112182 [10:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 62 05 07 01 D6 B0 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 28 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B6 01 00 35 04 06 00 44 C5 02 4B 55 E1 6D 2F 86 70 92 BB 8F B1 [10:08:41]CheckFolder [10:08:41]dirname=/storage/ofd_packets [10:08:41]CheckFolder done [10:08:41]ProducePacketName [10:08:41]name=ofd_packets/00112182 [10:08:41]NVStorageSaveData ofd_packets/00112182 [10:08:41]File name is /storage/ofd_packets/00112182 [10:08:41]Write 301 bytes [10:08:41]NVStorageSaveData done [10:08:41]OFDSenderStorePacket done [10:08:41]KKMCreateOFDPacket done [10:08:41]NVStorageSaveData kkm_last_timestamp [10:08:41]File name is /storage/kkm_last_timestamp [10:08:41]Write 4 bytes [10:08:41]NVStorageSaveData done [10:08:41]ExternCall_PrintAddStr [10:08:41]wPrintStart [10:08:41]Write to MH i2c: 01 00 00 FF 07 06 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 FF 0F 1B [10:08:41]RasterBufferAndPrint [10:08:41]line Счет N : (1)48498 [10:08:41]line ИНН: 02508201610067 [10:08:41]line Контрольно-Кассовый Чек [10:08:41]line ПРОДАЖА [10:08:41]line ТРК (МРК, ГНК) : 32 [10:08:41]line Товар: 2710124130 [10:08:41]line Аи-92-К-5 [10:08:41]line 5.450 * 64.30 [10:08:41]line = 350.44 [10:08:41]line НДС 12% НСП 1% [10:08:41]line > о реализуемом товаре [10:08:41]line ИТОГО: 350.44 [10:08:41]line НСП 1% : 3.10 [10:08:41]line НДС 12% : 37.21 [10:08:41]line Наличными: 0.00 [10:08:41]line Безнал.: 350.44 [10:08:41]line Место: АЗС № 47 "Партнер Нефть" [10:08:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:08:41]line СНО: Общий режим [10:08:41]line Чек 81 14.04.2024 10:08 [10:08:41]line Смена: 357 ФФД: 1.0 [10:08:41]line ЗНМ: 0300000138 [10:08:41]line РНМ: 0000000000094237 [10:08:41]line Версия ККМ: 001 [10:08:41]line Платежная система: Бакай Банк [10:08:41]line ФМ: 0000000000875019 [10:08:41]line ФД: 112182 [10:08:41]line ФПД: 75612937737697 [10:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100840&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112182&fm=75612937737697&tin=02508201610067®Number=0000000000094237&sum=35044 [10:08:41]OFD Sender: Processing packet 112182 [packets to send 71, broken 70] [10:08:41]ProducePacketName [10:08:41]name=ofd_packets/00112182 [10:08:41]OFD Sender: To server: pG, [10:08:41]CommunicateWithHost lk.salyk.kg:30040 [10:08:41]ConnectInit lk.salyk.kg [10:08:41]written 0, free lines is 4095 [10:08:41]Connected sock=11 [10:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 62 05 07 01 D6 B0 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 4A 15 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 E4 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 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 89 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 88 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 28 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B6 01 00 35 04 06 00 44 C5 02 4B 55 E1 6D 2F 86 70 92 BB 8F B1 [10:08:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 08 CA 47 00 24 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B6 01 00 F4 03 04 00 B4 52 1B 66 B6 04 01 00 00 10 84 77 54 50 BD 5E 48 [10:08:41]CommunicateWithHost err = 0 [10:08:41]CheckOFDResponse [10:08:41]1017 (14) - 77093643461234 [10:08:41]1041 (16) - 0000000000875019 [10:08:41]1040 (4) - 112182 [10:08:41]1012 (4) - 14.04.2024 03:51 [10:08:41]1206 (1) - 0 [10:08:41]OFD Sender: Remove packet 112182 [10:08:41]ProducePacketName [10:08:41]name=ofd_packets/00112182 [10:08:41]NVStorageDeleteData [10:08:41]Write to MH i2c: 01 00 00 29 08 31 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: 01 07 00 29 08 00 00 00 00 00 DD 0C 21 [10:08:41]RasterBufferAndPrint [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]line [10:08:41]written 0, free lines is 3299 [10:08:41]MH_Cut [10:08:41]Write to MH i2c: D1 01 00 30 08 01 0A [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 01 00 [10:08:41]MH_I2C_Read... [10:08:41]Read from MH i2c: D1 01 00 30 08 00 09 [10:08:41]Write to MH i2c: 01 00 00 31 08 39 [10:08:41]Write i2c OK [10:08:41]MH_I2C_Read... [10:08:42]OFD Sender: No OFD packet to send [10:08:42]*** Cut start [10:08:42]*** Partial cut [10:08:42]*** CUTSNS_PIN = 1 [10:08:42]*** CUTSNS_PIN = 0 [10:08:42]*** Brake cut motor [10:08:43]Read from MH i2c: 01 [10:08:43]MH_I2C_Read... [10:08:43]*** Stop cut motor [10:08:43]*** Cut end [10:08:43]Read from MH i2c: 01 07 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: 01 07 00 31 08 00 00 00 00 00 FF 0F 4E [10:08:43]process_action close_receipt done [10:08:43]requested_data is exist [10:08:43]produce_requested_data [10:08:43]requested_item fm.sn is exist - process it [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 11 00 00 [10:08:43]Write to MH i2c: E2 08 00 32 08 80 11 00 00 00 00 00 00 B4 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 17 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 17 00 32 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 05 [10:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:08:43]wFMCommunicate OK [10:08:43]requested_item fd.num is exist - process it [10:08:43]SAM_PROTO_GetFieldsCounters [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 00 00 [10:08:43]Write to MH i2c: E2 08 00 33 08 80 13 00 00 00 00 00 00 B7 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 62 00 33 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [10:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetFieldsCounters done [10:08:43]requested_item shift.num is exist - process it [10:08:43]requested_item shift.opened is exist - process it [10:08:43]req_shift_opened [10:08:43]FM_GetShiftState [10:08:43]SAM_PROTO_GetShiftState [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 01 00 [10:08:43]Write to MH i2c: E2 08 00 34 08 80 13 01 00 00 00 00 00 B9 [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 34 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 51 [10:08:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetShiftState done [10:08:43]FM_GetShiftState done [10:08:43]req_shift_opened done [10:08:43]requested_item shift.open_date is exist - process it [10:08:43]req_shift_open_date [10:08:43]req_shift_open_date done [10:08:43]produce_requested_data done [10:08:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112182,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:08:43]process_action_free close_receipt [10:08:43]json_value_free [10:08:43]json_value_free done [10:08:43]process_json_proto returns [10:08:43]Send response to host [10:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112182,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:08:43]free response buf [10:08:43]execute_script done [10:08:43]execute_script returns [10:08:43]free content buf [10:08:43]Sock 8.Close socket [10:08:43]Sock 8.Thread stoped [10:08:43]accept exits with 9 [10:08:43]New connection [10:08:43]New thread 3067243876 created [10:08:43]Thread 3067100516 joined [10:08:43]Waiting for new connection... [10:08:43] Sock 9.Parse request [10:08:43]Sock 9.Check first char [10:08:43]Sock 9.First char is OK [10:08:43]request: POST /json_proto HTTP/1.0 [10:08:43]Method: POST [10:08:43]URL: /json_proto [10:08:43]Method is POST - this is cgi request [10:08:43]url: /json_proto [10:08:43]query_string will be loaded in cgi processing [10:08:43]execute_cgi json_proto POST (null) [10:08:43]execute_cgi path=json_proto method=POST [10:08:43]POST find Content-Length [10:08:43]Host: 172.17.96.197:8080 [10:08:43]Content-Length: 676 [10:08:43]Content-Type: application/json [10:08:43] [10:08:43]POST finish read [10:08:43]Found Content-Length = 676 [10:08:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [10:08:43]execute_script... [10:08: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)48499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [10:08:43]POST & json_proto [10:08:43]process_json_proto [10:08:43]json parsed OK: [10:08:43]protocol is kg_v1.0 [10:08:43]action value=close_receipt [10:08:43]process_action close_receipt [10:08:43]cmd_close_receipt [10:08:43]MH_GetDate [10:08:43]Write to MH i2c: F0 00 00 35 08 2C [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 09 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: F0 09 00 35 08 00 2D AB 1B 66 E0 85 7F 64 D6 [10:08:43]GetLastDocTimeStamp 1713089320 [10:08:43]current date 1713089325 [10:08:43]FM_GetShiftState [10:08:43]SAM_PROTO_GetShiftState [10:08:43]wFMCommunicate request_size=4 [10:08:43]MH_SAM_APDU [10:08:43]CAPDU: 80 13 01 00 [10:08:43]Write to MH i2c: E2 08 00 36 08 80 13 01 00 00 00 00 00 BB [10:08:43]Write i2c OK [10:08:43]MH_I2C_Read... [10:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:08:43]Read from MH i2c: E2 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 [10:08:43]MH_I2C_Read... [10:08:43]Read from MH i2c: E2 0E 00 36 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 53 [10:08:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:08:43]wFMCommunicate OK [10:08:43]SAM_PROTO_GetShiftState done [10:08:43]FM_GetShiftState done [10:08:43]opened in 1713054696 [10:08:43]opened+sec_in_day 1713141096 [10:08:43]quantity*price = 60056 [10:08:43]sum+1 = 60057 [10:08:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 82 14.04.2024 10:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112183 ФПД: 189755051941104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100845&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112183&fm=189755051941104&tin=02508201610067®Number=0000000000094237&sum=60000 [10:08:45]StoreToDocumentArchive [10:08:45]shift 357 fd 112183 [10:08:45]save to /storage/0357/doc_00112183 [10:08:45]save last doc name /storage/0357/doc_00112183 to /storage/kkm_last_doc_name [10:08:45]save OK [10:08:45]Clear old archive folders... [10:08:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:08:45]tlvbuf is 01717B80 [10:08:45]SAM_PROTO_ClearQueue [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 09 00 00 [10:08:45]Write to MH i2c: E2 08 00 43 08 80 09 00 00 00 00 00 00 BD [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 43 08 00 90 00 BF [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]SAM_PROTO_ClearQueue done [10:08:45]KKMCreateOFDPacket [10:08:45]OFDProtocolAddRootSTLVToBuf [10:08:45]FM_MakeSignedData [10:08:45]FM_MakeSignedData [10:08:45]SAM_PROTO_SignData [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 01 02 [10:08:45]Write to MH i2c: E2 08 00 44 08 80 0D 01 02 00 00 00 00 C5 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 44 08 00 90 00 C0 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=255 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 52 00 00 00 F4 03 04 00 2D AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B6 01 00 35 04 06 00 AC [10:08:45]Write to MH i2c: E2 02 01 45 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 52 00 00 00 F4 03 04 00 2D AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B6 01 00 35 04 06 00 AC 00 00 7C [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 45 08 00 90 00 C1 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=10 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 02 02 05 94 CA 77 1C F0 [10:08:45]Write to MH i2c: E2 0D 00 46 08 80 0D 02 02 05 00 94 CA 77 1C F0 00 00 B3 [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 03 00 46 08 00 90 00 C2 [10:08:45]RAPDU: 90 00 [10:08:45]wFMCommunicate OK [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 0D 03 02 [10:08:45]Write to MH i2c: E2 08 00 47 08 80 0D 03 02 00 00 00 00 CA [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:08:45]Read from MH i2c: E2 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0B 00 [10:08:45]MH_I2C_Read... [10:08:45]Read from MH i2c: E2 0B 00 47 08 00 81 BA 04 BE 0C D6 B4 A9 90 00 07 [10:08:45]RAPDU: 81 BA 04 BE 0C D6 B4 A9 90 00 [10:08:45]wFMCommunicate OK [10:08:45]SAM_PROTO_SignData done [10:08:45]FM_MakeSignedData done [10:08:45]CreateOFDProtocolMessage [10:08:45]wFMCommunicate request_size=4 [10:08:45]MH_SAM_APDU [10:08:45]CAPDU: 80 11 00 00 [10:08:45]Write to MH i2c: E2 08 00 48 08 80 11 00 00 00 00 00 00 CA [10:08:45]Write i2c OK [10:08:45]MH_I2C_Read... [10:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:46]Read from MH i2c: E2 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 17 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: E2 17 00 48 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1B [10:08:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:08:46]wFMCommunicate OK [10:08:46]CreateOFDProtocolMessage done [10:08:46]OFDSenderStorePacket 112183 [10:08:46]StoreOFDPacket docnum=112183 [10:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BF D7 07 01 07 19 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 52 00 00 00 F4 03 04 00 2D AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B6 01 00 35 04 06 00 AC 94 CA 77 1C F0 81 BA 04 BE 0C D6 B4 A9 [10:08:46]CheckFolder [10:08:46]dirname=/storage/ofd_packets [10:08:46]CheckFolder done [10:08:46]ProducePacketName [10:08:46]name=ofd_packets/00112183 [10:08:46]NVStorageSaveData ofd_packets/00112183 [10:08:46]File name is /storage/ofd_packets/00112183 [10:08:46]Write 301 bytes [10:08:46]NVStorageSaveData done [10:08:46]OFDSenderStorePacket done [10:08:46]KKMCreateOFDPacket done [10:08:46]NVStorageSaveData kkm_last_timestamp [10:08:46]File name is /storage/kkm_last_timestamp [10:08:46]Write 4 bytes [10:08:46]NVStorageSaveData done [10:08:46]ExternCall_PrintAddStr [10:08:46]wPrintStart [10:08:46]Write to MH i2c: 01 00 00 49 08 51 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [10:08:46]RasterBufferAndPrint [10:08:46]line Счет N : (1)48499 [10:08:46]line ИНН: 02508201610067 [10:08:46]line Контрольно-Кассовый Чек [10:08:46]line ПРОДАЖА [10:08:46]line ТРК (МРК, ГНК) : 21 [10:08:46]line Товар: 2710124130 [10:08:46]line Аи-92-К-5 [10:08:46]line 9.340 * 64.30 [10:08:46]line = 600.56 [10:08:46]line НДС 12% НСП 1% [10:08:46]line > о реализуемом товаре [10:08:46]line ОКРУГЛЕНИЕ: -0.56 [10:08:46]line ИТОГО: 600.00 [10:08:46]line Внесено: 600.00 [10:08:46]line СДАЧА: 0.00 [10:08:46]line НСП 1% : 5.31 [10:08:46]line НДС 12% : 63.78 [10:08:46]line Наличными: 600.00 [10:08:46]line Безнал.: 0.00 [10:08:46]line Место: АЗС № 47 "Партнер Нефть" [10:08:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:08:46]line СНО: Общий режим [10:08:46]line Чек 82 14.04.2024 10:08 [10:08:46]line Смена: 357 ФФД: 1.0 [10:08:46]line ЗНМ: 0300000138 [10:08:46]line РНМ: 0000000000094237 [10:08:46]line Версия ККМ: 001 [10:08:46]line ФМ: 0000000000875019 [10:08:46]line ФД: 112183 [10:08:46]line ФПД: 189755051941104 [10:08:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100845&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112183&fm=189755051941104&tin=02508201610067®Number=0000000000094237&sum=60000 [10:08:46]written 0, free lines is 4095 [10:08:46]OFD Sender: Processing packet 112183 [packets to send 71, broken 70] [10:08:46]ProducePacketName [10:08:46]name=ofd_packets/00112183 [10:08:46]OFD Sender: To server: pG, [10:08:46]CommunicateWithHost lk.salyk.kg:30040 [10:08:46]ConnectInit lk.salyk.kg [10:08:46]Connected sock=10 [10:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BF D7 07 01 07 19 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 52 00 00 00 F4 03 04 00 2D AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B6 01 00 35 04 06 00 AC 94 CA 77 1C F0 81 BA 04 BE 0C D6 B4 A9 [10:08:46]Write to MH i2c: 01 00 00 74 08 7C [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: 01 07 00 74 08 00 00 00 00 00 F7 0C 86 [10:08:46]RasterBufferAndPrint [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]line [10:08:46]written 0, free lines is 3332 [10:08:46]MH_Cut [10:08:46]Write to MH i2c: D1 01 00 7B 08 01 55 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 01 00 [10:08:46]MH_I2C_Read... [10:08:46]Read from MH i2c: D1 01 00 7B 08 00 54 [10:08:46]Write to MH i2c: 01 00 00 7C 08 84 [10:08:46]Write i2c OK [10:08:46]MH_I2C_Read... [10:08:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9F F2 47 00 8C BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B6 01 00 F4 03 04 00 B9 52 1B 66 B6 04 01 00 00 F0 A3 19 89 81 87 05 15 [10:08:46]CommunicateWithHost err = 0 [10:08:46]CheckOFDResponse [10:08:46]1017 (14) - 77093643461234 [10:08:46]1041 (16) - 0000000000875019 [10:08:46]1040 (4) - 112183 [10:08:46]1012 (4) - 14.04.2024 03:51 [10:08:46]1206 (1) - 0 [10:08:46]OFD Sender: Remove packet 112183 [10:08:46]ProducePacketName [10:08:46]name=ofd_packets/00112183 [10:08:46]NVStorageDeleteData [10:08:47]OFD Sender: No OFD packet to send [10:08:47]*** Cut start [10:08:47]*** Partial cut [10:08:47]*** CUTSNS_PIN = 1 [10:08:47]*** CUTSNS_PIN = 0 [10:08:47]*** Brake cut motor [10:08:47]Read from MH i2c: 01 [10:08:47]MH_I2C_Read... [10:08:47]*** Stop cut motor [10:08:47]*** Cut end [10:08:47]Read from MH i2c: 01 07 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: 01 07 00 7C 08 00 00 00 00 00 FF 0F 99 [10:08:47]process_action close_receipt done [10:08:47]requested_data is exist [10:08:47]produce_requested_data [10:08:47]requested_item fm.sn is exist - process it [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 11 00 00 [10:08:47]Write to MH i2c: E2 08 00 7D 08 80 11 00 00 00 00 00 00 FF [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:08:47]Read from MH i2c: E2 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 [10:08:47]MH_I2C_Read... [10:08:47]Read from MH i2c: E2 17 00 7D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 50 [10:08:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:08:47]wFMCommunicate OK [10:08:47]requested_item fd.num is exist - process it [10:08:47]SAM_PROTO_GetFieldsCounters [10:08:47]wFMCommunicate request_size=4 [10:08:47]MH_SAM_APDU [10:08:47]CAPDU: 80 13 00 00 [10:08:47]Write to MH i2c: E2 08 00 7E 08 80 13 00 00 00 00 00 00 02 [10:08:47]Write i2c OK [10:08:47]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 [10:08:48]MH_I2C_Read... [10:08:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:08:48]Read from MH i2c: E2 62 00 [10:08:48]MH_I2C_Read... [10:08:48]Read from MH i2c: E2 62 00 7E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 37 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 6B [10:08:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 37 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:08:48]wFMCommunicate OK [10:08:48]SAM_PROTO_GetFieldsCounters done [10:08:48]requested_item shift.num is exist - process it [10:08:48]requested_item shift.opened is exist - process it [10:08:48]req_shift_opened [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 7F 08 80 13 01 00 00 00 00 00 04 [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 7F 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9C [10:08:48]RAPDU: 09 00 01 E8 23 1B 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]req_shift_opened done [10:08:48]requested_item shift.open_date is exist - process it [10:08:48]req_shift_open_date [10:08:48]req_shift_open_date done [10:08:48]produce_requested_data done [10:08:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112183,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:08:48]process_action_free close_receipt [10:08:48]json_value_free [10:08:48]json_value_free done [10:08:48]process_json_proto returns [10:08:48]Send response to host [10:08:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112183,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:08:48]free response buf [10:08:48]execute_script done [10:08:48]execute_script returns [10:08:48]free content buf [10:08:48]Sock 9.Close socket [10:08:48]Sock 9.Thread stoped [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:43]accept exits with 8 [10:09:43]New connection [10:09:43]New thread 3067100516 created [10:09:43]Thread 3067243876 joined [10:09:43]Waiting for new connection... [10:09:43] Sock 8.Parse request [10:09:43]Sock 8.Check first char [10:09:43]Sock 8.First char is OK [10:09:43]request: POST /json_proto HTTP/1.0 [10:09:43]Method: POST [10:09:43]URL: /json_proto [10:09:43]Method is POST - this is cgi request [10:09:43]url: /json_proto [10:09:43]query_string will be loaded in cgi processing [10:09:43]execute_cgi json_proto POST (null) [10:09:43]execute_cgi path=json_proto method=POST [10:09:43]POST find Content-Length [10:09:43]Host: 172.17.96.197:8080 [10:09:43]Content-Length: 676 [10:09:43]Content-Type: application/json [10:09:43] [10:09:43]POST finish read [10:09:43]Found Content-Length = 676 [10:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48501", "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.30, "quantity" : 4.670, "sum" : 300.28, "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:09:43]execute_script... [10:09: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)48501", "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.30, "quantity" : 4.670, "sum" : 300.28, "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:09:43]POST & json_proto [10:09:43]process_json_proto [10:09:43]json parsed OK: [10:09:43]protocol is kg_v1.0 [10:09:43]action value=close_receipt [10:09:43]process_action close_receipt [10:09:43]cmd_close_receipt [10:09:43]MH_GetDate [10:09:43]Write to MH i2c: F0 00 00 80 08 77 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: F0 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: F0 09 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: F0 09 00 80 08 00 68 AB 1B 66 E0 85 7F 64 5C [10:09:43]GetLastDocTimeStamp 1713089325 [10:09:43]current date 1713089384 [10:09:43]FM_GetShiftState [10:09:43]SAM_PROTO_GetShiftState [10:09:43]wFMCommunicate request_size=4 [10:09:43]MH_SAM_APDU [10:09:43]CAPDU: 80 13 01 00 [10:09:43]Write to MH i2c: E2 08 00 81 08 80 13 01 00 00 00 00 00 06 [10:09:43]Write i2c OK [10:09:43]MH_I2C_Read... [10:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:43]Read from MH i2c: E2 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0E 00 [10:09:43]MH_I2C_Read... [10:09:43]Read from MH i2c: E2 0E 00 81 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9E [10:09:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:09:43]wFMCommunicate OK [10:09:43]SAM_PROTO_GetShiftState done [10:09:43]FM_GetShiftState done [10:09:43]opened in 1713054696 [10:09:43]opened+sec_in_day 1713141096 [10:09:43]quantity*price = 30028 [10:09:43]sum+1 = 30029 [10:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 83 14.04.2024 10:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112184 ФПД: 118318408555912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112184&fm=118318408555912&tin=02508201610067®Number=0000000000094237&sum=30000 [10:09:44]StoreToDocumentArchive [10:09:44]shift 357 fd 112184 [10:09:44]save to /storage/0357/doc_00112184 [10:09:44]save last doc name /storage/0357/doc_00112184 to /storage/kkm_last_doc_name [10:09:44]save OK [10:09:44]Clear old archive folders... [10:09:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:44]tlvbuf is 0174FB40 [10:09:44]SAM_PROTO_ClearQueue [10:09:44]wFMCommunicate request_size=4 [10:09:44]MH_SAM_APDU [10:09:44]CAPDU: 80 09 00 00 [10:09:44]Write to MH i2c: E2 08 00 8E 08 80 09 00 00 00 00 00 00 08 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:09:44]Read from MH i2c: E2 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 03 00 [10:09:44]MH_I2C_Read... [10:09:44]Read from MH i2c: E2 03 00 8E 08 00 90 00 0A [10:09:44]RAPDU: 90 00 [10:09:44]wFMCommunicate OK [10:09:44]SAM_PROTO_ClearQueue done [10:09:44]KKMCreateOFDPacket [10:09:44]OFDProtocolAddRootSTLVToBuf [10:09:44]FM_MakeSignedData [10:09:44]FM_MakeSignedData [10:09:44]SAM_PROTO_SignData [10:09:44]wFMCommunicate request_size=4 [10:09:44]MH_SAM_APDU [10:09:44]CAPDU: 80 0D 01 02 [10:09:44]Write to MH i2c: E2 08 00 8F 08 80 0D 01 02 00 00 00 00 10 [10:09:44]Write i2c OK [10:09:44]MH_I2C_Read... [10:09:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 8F 08 00 90 00 0B [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=255 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 68 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B6 01 00 35 04 06 00 6B [10:09:45]Write to MH i2c: E2 02 01 90 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 68 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B6 01 00 35 04 06 00 6B 00 00 DD [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 90 08 00 90 00 0C [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=10 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 02 02 05 9C 26 B6 5D 88 [10:09:45]Write to MH i2c: E2 0D 00 91 08 80 0D 02 02 05 00 9C 26 B6 5D 88 00 00 7A [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [10:09:45]RAPDU: 90 00 [10:09:45]wFMCommunicate OK [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 0D 03 02 [10:09:45]Write to MH i2c: E2 08 00 92 08 80 0D 03 02 00 00 00 00 15 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 0B 00 92 08 00 83 95 34 D3 30 CF 79 0D 90 00 BA [10:09:45]RAPDU: 83 95 34 D3 30 CF 79 0D 90 00 [10:09:45]wFMCommunicate OK [10:09:45]SAM_PROTO_SignData done [10:09:45]FM_MakeSignedData done [10:09:45]CreateOFDProtocolMessage [10:09:45]wFMCommunicate request_size=4 [10:09:45]MH_SAM_APDU [10:09:45]CAPDU: 80 11 00 00 [10:09:45]Write to MH i2c: E2 08 00 93 08 80 11 00 00 00 00 00 00 15 [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:45]Read from MH i2c: E2 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: E2 17 00 93 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 66 [10:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:09:45]wFMCommunicate OK [10:09:45]CreateOFDProtocolMessage done [10:09:45]OFDSenderStorePacket 112184 [10:09:45]StoreOFDPacket docnum=112184 [10:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DB 25 07 01 C9 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 68 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B6 01 00 35 04 06 00 6B 9C 26 B6 5D 88 83 95 34 D3 30 CF 79 0D [10:09:45]CheckFolder [10:09:45]dirname=/storage/ofd_packets [10:09:45]CheckFolder done [10:09:45]ProducePacketName [10:09:45]name=ofd_packets/00112184 [10:09:45]NVStorageSaveData ofd_packets/00112184 [10:09:45]File name is /storage/ofd_packets/00112184 [10:09:45]Write 301 bytes [10:09:45]NVStorageSaveData done [10:09:45]OFDSenderStorePacket done [10:09:45]KKMCreateOFDPacket done [10:09:45]NVStorageSaveData kkm_last_timestamp [10:09:45]File name is /storage/kkm_last_timestamp [10:09:45]Write 4 bytes [10:09:45]NVStorageSaveData done [10:09:45]ExternCall_PrintAddStr [10:09:45]wPrintStart [10:09:45]Write to MH i2c: 01 00 00 94 08 9C [10:09:45]Write i2c OK [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 [10:09:45]MH_I2C_Read... [10:09:45]Read from MH i2c: 01 07 00 94 08 00 00 00 00 00 FF 0F B1 [10:09:45]RasterBufferAndPrint [10:09:45]line Счет N : (1)48501 [10:09:45]line ИНН: 02508201610067 [10:09:45]line Контрольно-Кассовый Чек [10:09:45]line ПРОДАЖА [10:09:45]line ТРК (МРК, ГНК) : 32 [10:09:45]line Товар: 2710124130 [10:09:45]line Аи-92-К-5 [10:09:45]line 4.670 * 64.30 [10:09:45]line = 300.28 [10:09:45]line НДС 12% НСП 1% [10:09:45]line > о реализуемом товаре [10:09:45]line ОКРУГЛЕНИЕ: -0.28 [10:09:45]line ИТОГО: 300.00 [10:09:45]line Внесено: 300.00 [10:09:45]line СДАЧА: 0.00 [10:09:45]line НСП 1% : 2.66 [10:09:45]line НДС 12% : 31.89 [10:09:45]line Наличными: 300.00 [10:09:45]line Безнал.: 0.00 [10:09:45]line Место: АЗС № 47 "Партнер Нефть" [10:09:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:09:45]line СНО: Общий режим [10:09:45]line Чек 83 14.04.2024 10:09 [10:09:45]line Смена: 357 ФФД: 1.0 [10:09:45]line ЗНМ: 0300000138 [10:09:45]line РНМ: 0000000000094237 [10:09:45]line Версия ККМ: 001 [10:09:45]line ФМ: 0000000000875019 [10:09:45]line ФД: 112184 [10:09:45]line ФПД: 118318408555912 [10:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T100944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112184&fm=118318408555912&tin=02508201610067®Number=0000000000094237&sum=30000 [10:09:45]written 0, free lines is 4095 [10:09:45]OFD Sender: Processing packet 112184 [packets to send 71, broken 70] [10:09:45]ProducePacketName [10:09:45]name=ofd_packets/00112184 [10:09:45]OFD Sender: To server: pG, [10:09:45]CommunicateWithHost lk.salyk.kg:30040 [10:09:45]ConnectInit lk.salyk.kg [10:09:45]Connected sock=10 [10:09:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DB 25 07 01 C9 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 68 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B6 01 00 35 04 06 00 6B 9C 26 B6 5D 88 83 95 34 D3 30 CF 79 0D [10:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C5 7F 47 00 FD 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B6 01 00 F4 03 04 00 F4 52 1B 66 B6 04 01 00 00 81 14 80 A0 7D B3 0D 42 [10:09:46]CommunicateWithHost err = 0 [10:09:46]CheckOFDResponse [10:09:46]1017 (14) - 77093643461234 [10:09:46]1041 (16) - 0000000000875019 [10:09:46]1040 (4) - 112184 [10:09:46]1012 (4) - 14.04.2024 03:52 [10:09:46]1206 (1) - 0 [10:09:46]OFD Sender: Remove packet 112184 [10:09:46]ProducePacketName [10:09:46]name=ofd_packets/00112184 [10:09:46]NVStorageDeleteData [10:09:46]Write to MH i2c: 01 00 00 BF 08 C7 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: 01 07 00 BF 08 00 00 00 00 00 F5 0C CF [10:09:46]RasterBufferAndPrint [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]line [10:09:46]written 0, free lines is 3323 [10:09:46]MH_Cut [10:09:46]Write to MH i2c: D1 01 00 C6 08 01 A0 [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 [10:09:46]MH_I2C_Read... [10:09:46]Read from MH i2c: D1 01 00 C6 08 00 9F [10:09:46]Write to MH i2c: 01 00 00 C7 08 CF [10:09:46]Write i2c OK [10:09:46]MH_I2C_Read... [10:09:46]OFD Sender: No OFD packet to send [10:09:46]*** Cut start [10:09:46]*** Partial cut [10:09:46]*** CUTSNS_PIN = 1 [10:09:47]*** CUTSNS_PIN = 0 [10:09:47]*** Brake cut motor [10:09:47]Read from MH i2c: 01 [10:09:47]MH_I2C_Read... [10:09:47]*** Stop cut motor [10:09:47]*** Cut end [10:09:47]Read from MH i2c: 01 07 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: 01 07 00 C7 08 00 00 00 00 00 FF 0F E4 [10:09:47]process_action close_receipt done [10:09:47]requested_data is exist [10:09:47]produce_requested_data [10:09:47]requested_item fm.sn is exist - process it [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 11 00 00 [10:09:47]Write to MH i2c: E2 08 00 C8 08 80 11 00 00 00 00 00 00 4A [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 17 00 C8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9B [10:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:09:47]wFMCommunicate OK [10:09:47]requested_item fd.num is exist - process it [10:09:47]SAM_PROTO_GetFieldsCounters [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 00 00 [10:09:47]Write to MH i2c: E2 08 00 C9 08 80 13 00 00 00 00 00 00 4D [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 62 00 C9 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 38 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 38 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetFieldsCounters done [10:09:47]requested_item shift.num is exist - process it [10:09:47]requested_item shift.opened is exist - process it [10:09:47]req_shift_opened [10:09:47]FM_GetShiftState [10:09:47]SAM_PROTO_GetShiftState [10:09:47]wFMCommunicate request_size=4 [10:09:47]MH_SAM_APDU [10:09:47]CAPDU: 80 13 01 00 [10:09:47]Write to MH i2c: E2 08 00 CA 08 80 13 01 00 00 00 00 00 4F [10:09:47]Write i2c OK [10:09:47]MH_I2C_Read... [10:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:47]Read from MH i2c: E2 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 [10:09:47]MH_I2C_Read... [10:09:47]Read from MH i2c: E2 0E 00 CA 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E7 [10:09:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:09:47]wFMCommunicate OK [10:09:47]SAM_PROTO_GetShiftState done [10:09:47]FM_GetShiftState done [10:09:47]req_shift_opened done [10:09:47]requested_item shift.open_date is exist - process it [10:09:47]req_shift_open_date [10:09:47]req_shift_open_date done [10:09:47]produce_requested_data done [10:09:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112184,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:09:47]process_action_free close_receipt [10:09:47]json_value_free [10:09:47]json_value_free done [10:09:47]process_json_proto returns [10:09:47]Send response to host [10:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112184,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:09:47]free response buf [10:09:47]execute_script done [10:09:47]execute_script returns [10:09:47]free content buf [10:09:47]Sock 8.Close socket [10:09:47]Sock 8.Thread stoped [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:49]accept exits with 9 [10:10:49]New connection [10:10:49]New thread 3067243876 created [10:10:49]Thread 3067100516 joined [10:10:49]Waiting for new connection... [10:10:49] Sock 9.Parse request [10:10:49]Sock 9.Check first char [10:10:49]Sock 9.First char is OK [10:10:49]request: POST /json_proto HTTP/1.0 [10:10:49]Method: POST [10:10:49]URL: /json_proto [10:10:49]Method is POST - this is cgi request [10:10:49]url: /json_proto [10:10:49]query_string will be loaded in cgi processing [10:10:49]execute_cgi json_proto POST (null) [10:10:49]execute_cgi path=json_proto method=POST [10:10:49]POST find Content-Length [10:10:49]Host: 172.17.96.197:8080 [10:10:49]Content-Length: 684 [10:10:49]Content-Type: application/json [10:10:49] [10:10:49]POST finish read [10:10:49]Found Content-Length = 684 [10:10:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:10:49]execute_script... [10:10:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:10:49]POST & json_proto [10:10:49]process_json_proto [10:10:49]json parsed OK: [10:10:49]protocol is kg_v1.0 [10:10:49]action value=close_receipt [10:10:49]process_action close_receipt [10:10:49]cmd_close_receipt [10:10:49]MH_GetDate [10:10:49]Write to MH i2c: F0 00 00 CB 08 C2 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: F0 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: F0 09 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: F0 09 00 CB 08 00 AA AB 1B 66 E0 85 7F 64 E9 [10:10:49]GetLastDocTimeStamp 1713089384 [10:10:49]current date 1713089450 [10:10:49]FM_GetShiftState [10:10:49]SAM_PROTO_GetShiftState [10:10:49]wFMCommunicate request_size=4 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 13 01 00 [10:10:49]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:49]Read from MH i2c: E2 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 0E 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E9 [10:10:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:10:49]wFMCommunicate OK [10:10:49]SAM_PROTO_GetShiftState done [10:10:49]FM_GetShiftState done [10:10:49]opened in 1713054696 [10:10:49]opened+sec_in_day 1713141096 [10:10:49]quantity*price = 100029 [10:10:49]sum+1 = 100030 [10:10:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 84 14.04.2024 10:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112185 ФПД: 258917909957044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101050&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112185&fm=258917909957044&tin=02508201610067®Number=0000000000094237&sum=100000 [10:10:50]StoreToDocumentArchive [10:10:50]shift 357 fd 112185 [10:10:50]save to /storage/0357/doc_00112185 [10:10:50]save last doc name /storage/0357/doc_00112185 to /storage/kkm_last_doc_name [10:10:50]save OK [10:10:50]Clear old archive folders... [10:10:50]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:10:50]tlvbuf is 01759340 [10:10:50]SAM_PROTO_ClearQueue [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 09 00 00 [10:10:50]Write to MH i2c: E2 08 00 D9 08 80 09 00 00 00 00 00 00 53 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 D9 08 00 90 00 55 [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_ClearQueue done [10:10:50]KKMCreateOFDPacket [10:10:50]OFDProtocolAddRootSTLVToBuf [10:10:50]FM_MakeSignedData [10:10:50]FM_MakeSignedData [10:10:50]SAM_PROTO_SignData [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 01 02 [10:10:50]Write to MH i2c: E2 08 00 DA 08 80 0D 01 02 00 00 00 00 5B [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 DA 08 00 90 00 56 [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]wFMCommunicate request_size=255 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B6 01 00 35 04 06 00 EB 7C [10:10:50]Write to MH i2c: E2 02 01 DB 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B6 01 00 35 04 06 00 EB 7C 00 00 69 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]wFMCommunicate request_size=9 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 02 02 04 06 0C 89 B4 [10:10:50]Write to MH i2c: E2 0C 00 DC 08 80 0D 02 02 04 00 06 0C 89 B4 00 00 B5 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 03 02 [10:10:50]Write to MH i2c: E2 08 00 DD 08 80 0D 03 02 00 00 00 00 60 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0B 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0B 00 DD 08 00 40 C8 17 A4 4F 79 C2 AA 90 00 58 [10:10:50]RAPDU: 40 C8 17 A4 4F 79 C2 AA 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_SignData done [10:10:50]FM_MakeSignedData done [10:10:50]CreateOFDProtocolMessage [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 11 00 00 [10:10:50]Write to MH i2c: E2 08 00 DE 08 80 11 00 00 00 00 00 00 60 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 17 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 17 00 DE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B1 [10:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:10:50]wFMCommunicate OK [10:10:50]CreateOFDProtocolMessage done [10:10:50]OFDSenderStorePacket 112185 [10:10:50]StoreOFDPacket docnum=112185 [10:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 33 22 06 01 41 CA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B6 01 00 35 04 06 00 EB 7C 06 0C 89 B4 40 C8 17 A4 4F 79 C2 AA [10:10:50]CheckFolder [10:10:50]dirname=/storage/ofd_packets [10:10:50]CheckFolder done [10:10:50]ProducePacketName [10:10:50]name=ofd_packets/00112185 [10:10:50]NVStorageSaveData ofd_packets/00112185 [10:10:50]File name is /storage/ofd_packets/00112185 [10:10:50]Write 300 bytes [10:10:50]NVStorageSaveData done [10:10:50]OFDSenderStorePacket done [10:10:50]KKMCreateOFDPacket done [10:10:50]NVStorageSaveData kkm_last_timestamp [10:10:50]File name is /storage/kkm_last_timestamp [10:10:50]Write 4 bytes [10:10:50]NVStorageSaveData done [10:10:50]ExternCall_PrintAddStr [10:10:50]wPrintStart [10:10:50]Write to MH i2c: 01 00 00 DF 08 E7 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 07 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 07 00 DF 08 00 00 00 00 00 FF 0F FC [10:10:50]RasterBufferAndPrint [10:10:50]line Счет N : (1)48500 [10:10:50]line ИНН: 02508201610067 [10:10:50]line Контрольно-Кассовый Чек [10:10:50]line ПРОДАЖА [10:10:50]line ТРК (МРК, ГНК) : 72 [10:10:50]line Товар: 2711190000 [10:10:50]line ГАЗ-К-5 [10:10:50]line 30.590 * 32.70 [10:10:50]line = 1000.29 [10:10:50]line НДС 12% НСП 1% [10:10:50]line > о реализуемом товаре [10:10:50]line ОКРУГЛЕНИЕ: -0.29 [10:10:50]line ИТОГО: 1000.00 [10:10:50]line Внесено: 1000.00 [10:10:50]line СДАЧА: 0.00 [10:10:50]line НСП 1% : 8.85 [10:10:50]line НДС 12% : 106.22 [10:10:50]line Наличными: 1000.00 [10:10:50]line Безнал.: 0.00 [10:10:50]line Место: АЗС № 47 "Партнер Нефть" [10:10:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:10:50]line СНО: Общий режим [10:10:50]line Чек 84 14.04.2024 10:10 [10:10:50]line Смена: 357 ФФД: 1.0 [10:10:50]line ЗНМ: 0300000138 [10:10:50]line РНМ: 0000000000094237 [10:10:50]line Версия ККМ: 001 [10:10:50]line ФМ: 0000000000875019 [10:10:50]line ФД: 112185 [10:10:50]line ФПД: 258917909957044 [10:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101050&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112185&fm=258917909957044&tin=02508201610067®Number=0000000000094237&sum=100000 [10:10:51]written 0, free lines is 4095 [10:10:51]OFD Sender: Processing packet 112185 [packets to send 71, broken 70] [10:10:51]ProducePacketName [10:10:51]name=ofd_packets/00112185 [10:10:51]OFD Sender: To server: pG, [10:10:51]CommunicateWithHost lk.salyk.kg:30040 [10:10:51]ConnectInit lk.salyk.kg [10:10:51]Connected sock=10 [10:10:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 33 22 06 01 41 CA 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B6 01 00 35 04 06 00 EB 7C 06 0C 89 B4 40 C8 17 A4 4F 79 C2 AA [10:10:51]Write to MH i2c: 01 00 00 0A 09 13 [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 07 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 07 00 0A 09 00 00 00 00 00 DD 0C 03 [10:10:51]RasterBufferAndPrint [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]written 0, free lines is 3299 [10:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 62 3A 47 00 9C 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B6 01 00 F4 03 04 00 36 53 1B 66 B6 04 01 00 00 1E E8 D9 9A B8 7C E0 C8 [10:10:51]CommunicateWithHost err = 0 [10:10:51]CheckOFDResponse [10:10:51]1017 (14) - 77093643461234 [10:10:51]1041 (16) - 0000000000875019 [10:10:51]1040 (4) - 112185 [10:10:51]1012 (4) - 14.04.2024 03:53 [10:10:51]1206 (1) - 0 [10:10:51]OFD Sender: Remove packet 112185 [10:10:51]ProducePacketName [10:10:51]name=ofd_packets/00112185 [10:10:51]NVStorageDeleteData [10:10:51]MH_Cut [10:10:51]Write to MH i2c: D1 01 00 11 09 01 EC [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 01 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 01 00 11 09 00 EB [10:10:51]Write to MH i2c: 01 00 00 12 09 1B [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:52]OFD Sender: No OFD packet to send [10:10:52]*** Cut start [10:10:52]*** Partial cut [10:10:52]*** CUTSNS_PIN = 1 [10:10:52]*** CUTSNS_PIN = 0 [10:10:52]*** Brake cut motor [10:10:52]Read from MH i2c: 01 [10:10:52]MH_I2C_Read... [10:10:52]*** Stop cut motor [10:10:52]*** Cut end [10:10:52]Read from MH i2c: 01 07 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: 01 07 00 12 09 00 00 00 00 00 FF 0F 30 [10:10:52]process_action close_receipt done [10:10:52]requested_data is exist [10:10:52]produce_requested_data [10:10:52]requested_item fm.sn is exist - process it [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 11 00 00 [10:10:52]Write to MH i2c: E2 08 00 13 09 80 11 00 00 00 00 00 00 96 [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 13 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E7 [10:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:10:52]wFMCommunicate OK [10:10:52]requested_item fd.num is exist - process it [10:10:52]SAM_PROTO_GetFieldsCounters [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 13 00 00 [10:10:52]Write to MH i2c: E2 08 00 14 09 80 13 00 00 00 00 00 00 99 [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:53]Read from MH i2c: E2 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 62 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 62 00 14 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 39 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:10:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 39 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:53]wFMCommunicate OK [10:10:53]SAM_PROTO_GetFieldsCounters done [10:10:53]requested_item shift.num is exist - process it [10:10:53]requested_item shift.opened is exist - process it [10:10:53]req_shift_opened [10:10:53]FM_GetShiftState [10:10:53]SAM_PROTO_GetShiftState [10:10:53]wFMCommunicate request_size=4 [10:10:53]MH_SAM_APDU [10:10:53]CAPDU: 80 13 01 00 [10:10:53]Write to MH i2c: E2 08 00 15 09 80 13 01 00 00 00 00 00 9B [10:10:53]Write i2c OK [10:10:53]MH_I2C_Read... [10:10:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:53]Read from MH i2c: E2 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 0E 00 [10:10:53]MH_I2C_Read... [10:10:53]Read from MH i2c: E2 0E 00 15 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 33 [10:10:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:10:53]wFMCommunicate OK [10:10:53]SAM_PROTO_GetShiftState done [10:10:53]FM_GetShiftState done [10:10:53]req_shift_opened done [10:10:53]requested_item shift.open_date is exist - process it [10:10:53]req_shift_open_date [10:10:53]req_shift_open_date done [10:10:53]produce_requested_data done [10:10:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112185,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:10:53]process_action_free close_receipt [10:10:53]json_value_free [10:10:53]json_value_free done [10:10:53]process_json_proto returns [10:10:53]Send response to host [10:10:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112185,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:10:53]free response buf [10:10:53]execute_script done [10:10:53]execute_script returns [10:10:53]free content buf [10:10:53]Sock 9.Close socket [10:10:53]Sock 9.Thread stoped [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:12]accept exits with 8 [10:11:12]New connection [10:11:12]New thread 3067100516 created [10:11:12]Thread 3067243876 joined [10:11:12]Waiting for new connection... [10:11:12] Sock 8.Parse request [10:11:12]Sock 8.Check first char [10:11:12]Sock 8.First char is OK [10:11:12]request: POST /json_proto HTTP/1.0 [10:11:12]Method: POST [10:11:12]URL: /json_proto [10:11:12]Method is POST - this is cgi request [10:11:12]url: /json_proto [10:11:12]query_string will be loaded in cgi processing [10:11:12]execute_cgi json_proto POST (null) [10:11:12]execute_cgi path=json_proto method=POST [10:11:12]POST find Content-Length [10:11:12]Host: 172.17.96.197:8080 [10:11:12]Content-Length: 676 [10:11:12]Content-Type: application/json [10:11:12] [10:11:12]POST finish read [10:11:12]Found Content-Length = 676 [10:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.940, "sum" : 720.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:12]execute_script... [10:11: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)48502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.940, "sum" : 720.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 720.00, "total" : 720.00, "payments": [ { "type": 0, "sum" : 720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:11:12]POST & json_proto [10:11:12]process_json_proto [10:11:12]json parsed OK: [10:11:12]protocol is kg_v1.0 [10:11:12]action value=close_receipt [10:11:12]process_action close_receipt [10:11:12]cmd_close_receipt [10:11:12]MH_GetDate [10:11:12]Write to MH i2c: F0 00 00 16 09 0E [10:11:12]Write i2c OK [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: F0 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: F0 09 00 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: F0 09 00 16 09 00 C1 AB 1B 66 E0 85 7F 64 4C [10:11:12]GetLastDocTimeStamp 1713089450 [10:11:12]current date 1713089473 [10:11:12]FM_GetShiftState [10:11:12]SAM_PROTO_GetShiftState [10:11:12]wFMCommunicate request_size=4 [10:11:12]MH_SAM_APDU [10:11:12]CAPDU: 80 13 01 00 [10:11:12]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [10:11:12]Write i2c OK [10:11:12]MH_I2C_Read... [10:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:12]Read from MH i2c: E2 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: E2 0E 00 [10:11:12]MH_I2C_Read... [10:11:12]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 35 [10:11:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:11:12]wFMCommunicate OK [10:11:12]SAM_PROTO_GetShiftState done [10:11:12]FM_GetShiftState done [10:11:12]opened in 1713054696 [10:11:12]opened+sec_in_day 1713141096 [10:11:12]quantity*price = 72065 [10:11:12]sum+1 = 72066 [10:11:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 720.00 Внесено: 720.00 СДАЧА: 0.00 НСП 1% : 6.38 НДС 12% : 76.53 Наличными: 720.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 85 14.04.2024 10:11 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112186 ФПД: 214702528207853 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101113&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112186&fm=214702528207853&tin=02508201610067®Number=0000000000094237&sum=72000 [10:11:13]StoreToDocumentArchive [10:11:13]shift 357 fd 112186 [10:11:13]save to /storage/0357/doc_00112186 [10:11:13]save last doc name /storage/0357/doc_00112186 to /storage/kkm_last_doc_name [10:11:13]save OK [10:11:13]Clear old archive folders... [10:11:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:11:13]tlvbuf is 0170E3C0 [10:11:13]SAM_PROTO_ClearQueue [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 09 00 00 [10:11:13]Write to MH i2c: E2 08 00 24 09 80 09 00 00 00 00 00 00 9F [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [10:11:13]RAPDU: 90 00 [10:11:13]wFMCommunicate OK [10:11:13]SAM_PROTO_ClearQueue done [10:11:13]KKMCreateOFDPacket [10:11:13]OFDProtocolAddRootSTLVToBuf [10:11:13]FM_MakeSignedData [10:11:13]FM_MakeSignedData [10:11:13]SAM_PROTO_SignData [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 0D 01 02 [10:11:13]Write to MH i2c: E2 08 00 25 09 80 0D 01 02 00 00 00 00 A7 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [10:11:13]RAPDU: 90 00 [10:11:13]wFMCommunicate OK [10:11:13]wFMCommunicate request_size=255 [10:11:13]MH_SAM_APDU [10:11: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 81 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 1D 00 00 00 00 07 04 06 00 40 19 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 C1 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B6 01 00 35 04 06 00 C3 [10:11:13]Write to MH i2c: E2 02 01 26 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 D4 26 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 81 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 1D 00 00 00 00 07 04 06 00 40 19 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 C1 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B6 01 00 35 04 06 00 C3 00 00 48 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [10:11:13]RAPDU: 90 00 [10:11:13]wFMCommunicate OK [10:11:13]wFMCommunicate request_size=10 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 0D 02 02 05 45 53 ED 1B ED [10:11:13]Write to MH i2c: E2 0D 00 27 09 80 0D 02 02 05 00 45 53 ED 1B ED 00 00 41 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 03 00 27 09 00 90 00 A4 [10:11:13]RAPDU: 90 00 [10:11:13]wFMCommunicate OK [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 0D 03 02 [10:11:13]Write to MH i2c: E2 08 00 28 09 80 0D 03 02 00 00 00 00 AC [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 0B 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 0B 00 28 09 00 B8 C0 65 F9 05 93 94 9A 90 00 49 [10:11:13]RAPDU: B8 C0 65 F9 05 93 94 9A 90 00 [10:11:13]wFMCommunicate OK [10:11:13]SAM_PROTO_SignData done [10:11:13]FM_MakeSignedData done [10:11:13]CreateOFDProtocolMessage [10:11:13]wFMCommunicate request_size=4 [10:11:13]MH_SAM_APDU [10:11:13]CAPDU: 80 11 00 00 [10:11:13]Write to MH i2c: E2 08 00 29 09 80 11 00 00 00 00 00 00 AC [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:13]Read from MH i2c: E2 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: E2 17 00 29 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FD [10:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:11:13]wFMCommunicate OK [10:11:13]CreateOFDProtocolMessage done [10:11:13]OFDSenderStorePacket 112186 [10:11:13]StoreOFDPacket docnum=112186 [10:11:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 2E 86 07 01 3A D1 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 D4 26 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 81 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 1D 00 00 00 00 07 04 06 00 40 19 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 C1 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B6 01 00 35 04 06 00 C3 45 53 ED 1B ED B8 C0 65 F9 05 93 94 9A [10:11:13]CheckFolder [10:11:13]dirname=/storage/ofd_packets [10:11:13]CheckFolder done [10:11:13]ProducePacketName [10:11:13]name=ofd_packets/00112186 [10:11:13]NVStorageSaveData ofd_packets/00112186 [10:11:13]File name is /storage/ofd_packets/00112186 [10:11:13]Write 301 bytes [10:11:13]NVStorageSaveData done [10:11:13]OFDSenderStorePacket done [10:11:13]KKMCreateOFDPacket done [10:11:13]NVStorageSaveData kkm_last_timestamp [10:11:13]File name is /storage/kkm_last_timestamp [10:11:13]Write 4 bytes [10:11:13]NVStorageSaveData done [10:11:13]ExternCall_PrintAddStr [10:11:13]wPrintStart [10:11:13]Write to MH i2c: 01 00 00 2A 09 33 [10:11:13]Write i2c OK [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: 01 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: 01 07 00 [10:11:13]MH_I2C_Read... [10:11:13]Read from MH i2c: 01 07 00 2A 09 00 00 00 00 00 FF 0F 48 [10:11:13]RasterBufferAndPrint [10:11:13]line Счет N : (1)48502 [10:11:13]line ИНН: 02508201610067 [10:11:13]line Контрольно-Кассовый Чек [10:11:13]line ПРОДАЖА [10:11:13]line ТРК (МРК, ГНК) : 12 [10:11:13]line Товар: 2710124500 [10:11:13]line Аи-95-К-5 [10:11:13]line 9.940 * 72.50 [10:11:13]line = 720.65 [10:11:13]line НДС 12% НСП 1% [10:11:13]line > о реализуемом товаре [10:11:13]line ОКРУГЛЕНИЕ: -0.65 [10:11:13]line ИТОГО: 720.00 [10:11:13]line Внесено: 720.00 [10:11:13]line СДАЧА: 0.00 [10:11:13]line НСП 1% : 6.38 [10:11:13]line НДС 12% : 76.53 [10:11:13]line Наличными: 720.00 [10:11:13]line Безнал.: 0.00 [10:11:13]line Место: АЗС № 47 "Партнер Нефть" [10:11:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:11:13]line СНО: Общий режим [10:11:13]line Чек 85 14.04.2024 10:11 [10:11:13]line Смена: 357 ФФД: 1.0 [10:11:13]line ЗНМ: 0300000138 [10:11:13]line РНМ: 0000000000094237 [10:11:13]line Версия ККМ: 001 [10:11:13]line ФМ: 0000000000875019 [10:11:13]line ФД: 112186 [10:11:14]line ФПД: 214702528207853 [10:11:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101113&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112186&fm=214702528207853&tin=02508201610067®Number=0000000000094237&sum=72000 [10:11:14]OFD Sender: Processing packet 112186 [packets to send 71, broken 70] [10:11:14]ProducePacketName [10:11:14]name=ofd_packets/00112186 [10:11:14]OFD Sender: To server: pG, [10:11:14]CommunicateWithHost lk.salyk.kg:30040 [10:11:14]ConnectInit lk.salyk.kg [10:11:14]written 0, free lines is 4095 [10:11:14]Connected sock=10 [10:11:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 2E 86 07 01 3A D1 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 D4 26 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 81 19 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 19 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 1D 00 00 00 00 07 04 06 00 40 19 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 C1 AB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B6 01 00 35 04 06 00 C3 45 53 ED 1B ED B8 C0 65 F9 05 93 94 9A [10:11:14]Write to MH i2c: 01 00 00 55 09 5E [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: 01 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: 01 07 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: 01 07 00 55 09 00 00 00 00 00 E7 0C 58 [10:11:14]RasterBufferAndPrint [10:11:14]line [10:11:14]line [10:11:14]line [10:11:14]line [10:11:14]line [10:11:14]written 0, free lines is 3309 [10:11:14]MH_Cut [10:11:14]Write to MH i2c: D1 01 00 5C 09 01 37 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: D1 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: D1 01 00 [10:11:14]MH_I2C_Read... [10:11:14]Read from MH i2c: D1 01 00 5C 09 00 36 [10:11:14]Write to MH i2c: 01 00 00 5D 09 66 [10:11:14]Write i2c OK [10:11:14]MH_I2C_Read... [10:11:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 69 AE 47 00 08 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B6 01 00 F4 03 04 00 4D 53 1B 66 B6 04 01 00 00 20 EB 37 6C 72 67 F8 D0 [10:11:14]CommunicateWithHost err = 0 [10:11:14]CheckOFDResponse [10:11:14]1017 (14) - 77093643461234 [10:11:14]1041 (16) - 0000000000875019 [10:11:14]1040 (4) - 112186 [10:11:14]1012 (4) - 14.04.2024 03:53 [10:11:14]1206 (1) - 0 [10:11:14]OFD Sender: Remove packet 112186 [10:11:14]ProducePacketName [10:11:14]name=ofd_packets/00112186 [10:11:14]NVStorageDeleteData [10:11:15]OFD Sender: No OFD packet to send [10:11:15]*** Cut start [10:11:15]*** Partial cut [10:11:15]*** CUTSNS_PIN = 1 [10:11:15]*** CUTSNS_PIN = 0 [10:11:15]*** Brake cut motor [10:11:15]Read from MH i2c: 01 [10:11:15]MH_I2C_Read... [10:11:15]*** Stop cut motor [10:11:15]*** Cut end [10:11:15]Read from MH i2c: 01 07 00 [10:11:15]MH_I2C_Read... [10:11:15]Read from MH i2c: 01 07 00 5D 09 00 00 00 00 00 FF 0F 7B [10:11:15]process_action close_receipt done [10:11:15]requested_data is exist [10:11:15]produce_requested_data [10:11:15]requested_item fm.sn is exist - process it [10:11:15]wFMCommunicate request_size=4 [10:11:15]MH_SAM_APDU [10:11:15]CAPDU: 80 11 00 00 [10:11:15]Write to MH i2c: E2 08 00 5E 09 80 11 00 00 00 00 00 00 E1 [10:11:15]Write i2c OK [10:11:15]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 17 00 5E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 32 [10:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:11:16]wFMCommunicate OK [10:11:16]requested_item fd.num is exist - process it [10:11:16]SAM_PROTO_GetFieldsCounters [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 13 00 00 [10:11:16]Write to MH i2c: E2 08 00 5F 09 80 13 00 00 00 00 00 00 E4 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 62 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 62 00 5F 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [10:11:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_GetFieldsCounters done [10:11:16]requested_item shift.num is exist - process it [10:11:16]requested_item shift.opened is exist - process it [10:11:16]req_shift_opened [10:11:16]FM_GetShiftState [10:11:16]SAM_PROTO_GetShiftState [10:11:16]wFMCommunicate request_size=4 [10:11:16]MH_SAM_APDU [10:11:16]CAPDU: 80 13 01 00 [10:11:16]Write to MH i2c: E2 08 00 60 09 80 13 01 00 00 00 00 00 E6 [10:11:16]Write i2c OK [10:11:16]MH_I2C_Read... [10:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:11:16]Read from MH i2c: E2 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0E 00 [10:11:16]MH_I2C_Read... [10:11:16]Read from MH i2c: E2 0E 00 60 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7E [10:11:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:11:16]wFMCommunicate OK [10:11:16]SAM_PROTO_GetShiftState done [10:11:16]FM_GetShiftState done [10:11:16]req_shift_opened done [10:11:16]requested_item shift.open_date is exist - process it [10:11:16]req_shift_open_date [10:11:16]req_shift_open_date done [10:11:16]produce_requested_data done [10:11:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112186,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:11:16]process_action_free close_receipt [10:11:16]json_value_free [10:11:16]json_value_free done [10:11:16]process_json_proto returns [10:11:16]Send response to host [10:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112186,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:11:16]free response buf [10:11:16]execute_script done [10:11:16]execute_script returns [10:11:16]free content buf [10:11:16]Sock 8.Close socket [10:11:16]Sock 8.Thread stoped [10:11:20]OFD Sender: No OFD packet to send [10:11:25]OFD Sender: No OFD packet to send [10:11:30]OFD Sender: No OFD packet to send [10:11:35]OFD Sender: No OFD packet to send [10:11:40]OFD Sender: No OFD packet to send [10:11:45]OFD Sender: No OFD packet to send [10:11:50]OFD Sender: No OFD packet to send [10:11:55]OFD Sender: No OFD packet to send [10:12:00]OFD Sender: No OFD packet to send [10:12:05]OFD Sender: No OFD packet to send [10:12:10]OFD Sender: No OFD packet to send [10:12:15]OFD Sender: No OFD packet to send [10:12:20]OFD Sender: No OFD packet to send [10:12:25]OFD Sender: No OFD packet to send [10:12:30]OFD Sender: No OFD packet to send [10:12:35]OFD Sender: No OFD packet to send [10:12:40]OFD Sender: No OFD packet to send [10:12:45]OFD Sender: No OFD packet to send [10:12:48]accept exits with 9 [10:12:48]New connection [10:12:48]New thread 3067243876 created [10:12:48]Thread 3067100516 joined [10:12:48]Waiting for new connection... [10:12:48] Sock 9.Parse request [10:12:48]Sock 9.Check first char [10:12:48]Sock 9.First char is OK [10:12:48]request: POST /json_proto HTTP/1.0 [10:12:48]Method: POST [10:12:48]URL: /json_proto [10:12:48]Method is POST - this is cgi request [10:12:48]url: /json_proto [10:12:48]query_string will be loaded in cgi processing [10:12:48]execute_cgi json_proto POST (null) [10:12:48]execute_cgi path=json_proto method=POST [10:12:48]POST find Content-Length [10:12:48]Host: 172.17.96.197:8080 [10:12:48]Content-Length: 676 [10:12:48]Content-Type: application/json [10:12:48] [10:12:48]POST finish read [10:12:48]Found Content-Length = 676 [10:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48503", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:12:48]execute_script... [10:12: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)48503", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:12:48]POST & json_proto [10:12:48]process_json_proto [10:12:48]json parsed OK: [10:12:48]protocol is kg_v1.0 [10:12:48]action value=close_receipt [10:12:48]process_action close_receipt [10:12:48]cmd_close_receipt [10:12:48]MH_GetDate [10:12:48]Write to MH i2c: F0 00 00 61 09 59 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: F0 09 00 61 09 00 21 AC 1B 66 E0 85 7F 64 F8 [10:12:48]GetLastDocTimeStamp 1713089473 [10:12:48]current date 1713089569 [10:12:48]FM_GetShiftState [10:12:48]SAM_PROTO_GetShiftState [10:12:48]wFMCommunicate request_size=4 [10:12:48]MH_SAM_APDU [10:12:48]CAPDU: 80 13 01 00 [10:12:48]Write to MH i2c: E2 08 00 62 09 80 13 01 00 00 00 00 00 E8 [10:12:48]Write i2c OK [10:12:48]MH_I2C_Read... [10:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:48]Read from MH i2c: E2 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 [10:12:48]MH_I2C_Read... [10:12:48]Read from MH i2c: E2 0E 00 62 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 80 [10:12:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:12:48]wFMCommunicate OK [10:12:48]SAM_PROTO_GetShiftState done [10:12:48]FM_GetShiftState done [10:12:48]opened in 1713054696 [10:12:48]opened+sec_in_day 1713141096 [10:12:48]quantity*price = 50025 [10:12:48]sum+1 = 50026 [10:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 86 14.04.2024 10:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112187 ФПД: 97417134339748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112187&fm=97417134339748&tin=02508201610067®Number=0000000000094237&sum=50000 [10:12:49]StoreToDocumentArchive [10:12:49]shift 357 fd 112187 [10:12:49]save to /storage/0357/doc_00112187 [10:12:49]save last doc name /storage/0357/doc_00112187 to /storage/kkm_last_doc_name [10:12:49]save OK [10:12:49]Clear old archive folders... [10:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:12:49]tlvbuf is 017185A0 [10:12:49]SAM_PROTO_ClearQueue [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 09 00 00 [10:12:49]Write to MH i2c: E2 08 00 6F 09 80 09 00 00 00 00 00 00 EA [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_ClearQueue done [10:12:49]KKMCreateOFDPacket [10:12:49]OFDProtocolAddRootSTLVToBuf [10:12:49]FM_MakeSignedData [10:12:49]FM_MakeSignedData [10:12:49]SAM_PROTO_SignData [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 01 02 [10:12:49]Write to MH i2c: E2 08 00 70 09 80 0D 01 02 00 00 00 00 F2 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=255 [10:12:49]MH_SAM_APDU [10:12: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B6 01 00 35 04 06 00 58 [10:12:49]Write to MH i2c: E2 02 01 71 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B6 01 00 35 04 06 00 58 00 00 E9 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=10 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 02 02 05 99 B1 AF F6 A4 [10:12:49]Write to MH i2c: E2 0D 00 72 09 80 0D 02 02 05 00 99 B1 AF F6 A4 00 00 92 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 03 00 72 09 00 90 00 EF [10:12:49]RAPDU: 90 00 [10:12:49]wFMCommunicate OK [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 0D 03 02 [10:12:49]Write to MH i2c: E2 08 00 73 09 80 0D 03 02 00 00 00 00 F7 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:12:49]Read from MH i2c: E2 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 0B 00 [10:12:49]MH_I2C_Read... [10:12:49]Read from MH i2c: E2 0B 00 73 09 00 A9 BB 2A 56 14 F9 4E EA 90 00 21 [10:12:49]RAPDU: A9 BB 2A 56 14 F9 4E EA 90 00 [10:12:49]wFMCommunicate OK [10:12:49]SAM_PROTO_SignData done [10:12:49]FM_MakeSignedData done [10:12:49]CreateOFDProtocolMessage [10:12:49]wFMCommunicate request_size=4 [10:12:49]MH_SAM_APDU [10:12:49]CAPDU: 80 11 00 00 [10:12:49]Write to MH i2c: E2 08 00 74 09 80 11 00 00 00 00 00 00 F7 [10:12:49]Write i2c OK [10:12:49]MH_I2C_Read... [10:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:50]Read from MH i2c: E2 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: E2 17 00 74 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 48 [10:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:12:50]wFMCommunicate OK [10:12:50]CreateOFDProtocolMessage done [10:12:50]OFDSenderStorePacket 112187 [10:12:50]StoreOFDPacket docnum=112187 [10:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 28 40 07 01 4C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B6 01 00 35 04 06 00 58 99 B1 AF F6 A4 A9 BB 2A 56 14 F9 4E EA [10:12:50]CheckFolder [10:12:50]dirname=/storage/ofd_packets [10:12:50]CheckFolder done [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00112187 [10:12:50]NVStorageSaveData ofd_packets/00112187 [10:12:50]File name is /storage/ofd_packets/00112187 [10:12:50]Write 301 bytes [10:12:50]NVStorageSaveData done [10:12:50]OFDSenderStorePacket done [10:12:50]KKMCreateOFDPacket done [10:12:50]NVStorageSaveData kkm_last_timestamp [10:12:50]File name is /storage/kkm_last_timestamp [10:12:50]Write 4 bytes [10:12:50]NVStorageSaveData done [10:12:50]ExternCall_PrintAddStr [10:12:50]wPrintStart [10:12:50]Write to MH i2c: 01 00 00 75 09 7E [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 75 09 00 00 00 00 00 FF 0F 93 [10:12:50]RasterBufferAndPrint [10:12:50]line Счет N : (1)48503 [10:12:50]line ИНН: 02508201610067 [10:12:50]line Контрольно-Кассовый Чек [10:12:50]line ПРОДАЖА [10:12:50]line ТРК (МРК, ГНК) : 32 [10:12:50]line Товар: 2710124130 [10:12:50]line Аи-92-К-5 [10:12:50]line 7.780 * 64.30 [10:12:50]line = 500.25 [10:12:50]line НДС 12% НСП 1% [10:12:50]line > о реализуемом товаре [10:12:50]line ОКРУГЛЕНИЕ: -0.25 [10:12:50]line ИТОГО: 500.00 [10:12:50]line Внесено: 500.00 [10:12:50]line СДАЧА: 0.00 [10:12:50]line НСП 1% : 4.43 [10:12:50]line НДС 12% : 53.12 [10:12:50]line Наличными: 500.00 [10:12:50]line Безнал.: 0.00 [10:12:50]line Место: АЗС № 47 "Партнер Нефть" [10:12:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:12:50]line СНО: Общий режим [10:12:50]line Чек 86 14.04.2024 10:12 [10:12:50]line Смена: 357 ФФД: 1.0 [10:12:50]line ЗНМ: 0300000138 [10:12:50]line РНМ: 0000000000094237 [10:12:50]line Версия ККМ: 001 [10:12:50]line ФМ: 0000000000875019 [10:12:50]line ФД: 112187 [10:12:50]line ФПД: 97417134339748 [10:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112187&fm=97417134339748&tin=02508201610067®Number=0000000000094237&sum=50000 [10:12:50]written 0, free lines is 4095 [10:12:50]OFD Sender: Processing packet 112187 [packets to send 71, broken 70] [10:12:50]ProducePacketName [10:12:50]name=ofd_packets/00112187 [10:12:50]OFD Sender: To server: pG, [10:12:50]CommunicateWithHost lk.salyk.kg:30040 [10:12:50]ConnectInit lk.salyk.kg [10:12:50]Write to MH i2c: 01 00 00 A0 09 A9 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: 01 07 00 A0 09 00 00 00 00 00 E0 0C 9C [10:12:50]RasterBufferAndPrint [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]line [10:12:50]written 0, free lines is 3302 [10:12:50]MH_Cut [10:12:50]Write to MH i2c: D1 01 00 A7 09 01 82 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 01 00 [10:12:50]MH_I2C_Read... [10:12:50]Read from MH i2c: D1 01 00 A7 09 00 81 [10:12:50]Write to MH i2c: 01 00 00 A8 09 B1 [10:12:50]Write i2c OK [10:12:50]MH_I2C_Read... [10:12:51]*** Cut start [10:12:51]*** Partial cut [10:12:51]*** CUTSNS_PIN = 1 [10:12:51]*** CUTSNS_PIN = 0 [10:12:51]*** Brake cut motor [10:12:52]Read from MH i2c: 01 [10:12:52]MH_I2C_Read... [10:12:52]*** Stop cut motor [10:12:52]*** Cut end [10:12:52]Read from MH i2c: 01 07 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: 01 07 00 A8 09 00 00 00 00 00 FF 0F C6 [10:12:52]process_action close_receipt done [10:12:52]requested_data is exist [10:12:52]produce_requested_data [10:12:52]requested_item fm.sn is exist - process it [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 11 00 00 [10:12:52]Write to MH i2c: E2 08 00 A9 09 80 11 00 00 00 00 00 00 2C [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 17 00 A9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7D [10:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:12:52]wFMCommunicate OK [10:12:52]requested_item fd.num is exist - process it [10:12:52]SAM_PROTO_GetFieldsCounters [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 13 00 00 [10:12:52]Write to MH i2c: E2 08 00 AA 09 80 13 00 00 00 00 00 00 2F [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 62 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 62 00 AA 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [10:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_GetFieldsCounters done [10:12:52]requested_item shift.num is exist - process it [10:12:52]requested_item shift.opened is exist - process it [10:12:52]req_shift_opened [10:12:52]FM_GetShiftState [10:12:52]SAM_PROTO_GetShiftState [10:12:52]wFMCommunicate request_size=4 [10:12:52]MH_SAM_APDU [10:12:52]CAPDU: 80 13 01 00 [10:12:52]Write to MH i2c: E2 08 00 AB 09 80 13 01 00 00 00 00 00 31 [10:12:52]Write i2c OK [10:12:52]MH_I2C_Read... [10:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:12:52]Read from MH i2c: E2 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 [10:12:52]MH_I2C_Read... [10:12:52]Read from MH i2c: E2 0E 00 AB 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C9 [10:12:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:12:52]wFMCommunicate OK [10:12:52]SAM_PROTO_GetShiftState done [10:12:52]FM_GetShiftState done [10:12:52]req_shift_opened done [10:12:52]requested_item shift.open_date is exist - process it [10:12:52]req_shift_open_date [10:12:52]req_shift_open_date done [10:12:52]produce_requested_data done [10:12:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112187,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:12:52]process_action_free close_receipt [10:12:52]json_value_free [10:12:52]json_value_free done [10:12:52]process_json_proto returns [10:12:52]Send response to host [10:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112187,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:12:52]free response buf [10:12:52]execute_script done [10:12:52]execute_script returns [10:12:52]free content buf [10:12:52]Sock 9.Close socket [10:12:52]Sock 9.Thread stoped [10:14:38]accept exits with 8 [10:14:38]New connection [10:14:38]New thread 3067100516 created [10:14:38]Thread 3067243876 joined [10:14:38]Waiting for new connection... [10:14:38] Sock 8.Parse request [10:14:38]Sock 8.Check first char [10:14:38]Sock 8.First char is OK [10:14:38]request: POST /json_proto HTTP/1.0 [10:14:38]Method: POST [10:14:38]URL: /json_proto [10:14:38]Method is POST - this is cgi request [10:14:38]url: /json_proto [10:14:38]query_string will be loaded in cgi processing [10:14:38]execute_cgi json_proto POST (null) [10:14:38]execute_cgi path=json_proto method=POST [10:14:38]POST find Content-Length [10:14:38]Host: 172.17.96.197:8080 [10:14:38]Content-Length: 639 [10:14:38]Content-Type: application/json [10:14:38] [10:14:38]POST finish read [10:14:38]Found Content-Length = 639 [10:14:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.790, "sum" : 951.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:38]execute_script... [10:14: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)48504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.790, "sum" : 951.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:38]POST & json_proto [10:14:38]process_json_proto [10:14:38]json parsed OK: [10:14:38]protocol is kg_v1.0 [10:14:38]action value=close_receipt [10:14:38]process_action close_receipt [10:14:38]cmd_close_receipt [10:14:38]MH_GetDate [10:14:38]Write to MH i2c: F0 00 00 AC 09 A4 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 09 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: F0 09 00 AC 09 00 8F AC 1B 66 E0 85 7F 64 B1 [10:14:38]GetLastDocTimeStamp 1713089569 [10:14:38]current date 1713089679 [10:14:38]FM_GetShiftState [10:14:38]SAM_PROTO_GetShiftState [10:14:38]wFMCommunicate request_size=4 [10:14:38]MH_SAM_APDU [10:14:38]CAPDU: 80 13 01 00 [10:14:38]Write to MH i2c: E2 08 00 AD 09 80 13 01 00 00 00 00 00 33 [10:14:38]Write i2c OK [10:14:38]MH_I2C_Read... [10:14:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:38]Read from MH i2c: E2 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 [10:14:38]MH_I2C_Read... [10:14:38]Read from MH i2c: E2 0E 00 AD 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [10:14:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:14:38]wFMCommunicate OK [10:14:38]SAM_PROTO_GetShiftState done [10:14:38]FM_GetShiftState done [10:14:38]opened in 1713054696 [10:14:38]opened+sec_in_day 1713141096 [10:14:38]quantity*price = 95099 [10:14:38]sum+1 = 95101 [10:14:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 951.00 НСП 1% : 8.42 НДС 12% : 100.99 Наличными: 951.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 87 14.04.2024 10:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112188 ФПД: 66248995176055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101439&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112188&fm=66248995176055&tin=02508201610067®Number=0000000000094237&sum=95100 [10:14:39]StoreToDocumentArchive [10:14:39]shift 357 fd 112188 [10:14:39]save to /storage/0357/doc_00112188 [10:14:39]save last doc name /storage/0357/doc_00112188 to /storage/kkm_last_doc_name [10:14:39]save OK [10:14:39]Clear old archive folders... [10:14:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:39]tlvbuf is 016F13D0 [10:14:39]SAM_PROTO_ClearQueue [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 09 00 00 [10:14:39]Write to MH i2c: E2 08 00 BA 09 80 09 00 00 00 00 00 00 35 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [10:14:39]RAPDU: 90 00 [10:14:39]wFMCommunicate OK [10:14:39]SAM_PROTO_ClearQueue done [10:14:39]KKMCreateOFDPacket [10:14:39]OFDProtocolAddRootSTLVToBuf [10:14:39]FM_MakeSignedData [10:14:39]FM_MakeSignedData [10:14:39]SAM_PROTO_SignData [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 0D 01 02 [10:14:39]Write to MH i2c: E2 08 00 BB 09 80 0D 01 02 00 00 00 00 3D [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [10:14:39]RAPDU: 90 00 [10:14:39]wFMCommunicate OK [10:14:39]wFMCommunicate request_size=255 [10:14:39]MH_SAM_APDU [10:14: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 C6 39 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 27 00 00 00 00 07 04 06 00 7C 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B6 01 00 35 04 06 00 3C [10:14:39]Write to MH i2c: E2 02 01 BC 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 C6 39 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 27 00 00 00 00 07 04 06 00 7C 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B6 01 00 35 04 06 00 3C 00 00 DA [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [10:14:39]RAPDU: 90 00 [10:14:39]wFMCommunicate OK [10:14:39]wFMCommunicate request_size=10 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 0D 02 02 05 40 CB D2 FE 77 [10:14:39]Write to MH i2c: E2 0D 00 BD 09 80 0D 02 02 05 00 40 CB D2 FE 77 00 00 9C [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 03 00 BD 09 00 90 00 3A [10:14:39]RAPDU: 90 00 [10:14:39]wFMCommunicate OK [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 0D 03 02 [10:14:39]Write to MH i2c: E2 08 00 BE 09 80 0D 03 02 00 00 00 00 42 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:39]Read from MH i2c: E2 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0B 00 [10:14:39]MH_I2C_Read... [10:14:39]Read from MH i2c: E2 0B 00 BE 09 00 46 39 66 7C DF 5F E1 68 90 00 2B [10:14:39]RAPDU: 46 39 66 7C DF 5F E1 68 90 00 [10:14:39]wFMCommunicate OK [10:14:39]SAM_PROTO_SignData done [10:14:39]FM_MakeSignedData done [10:14:39]CreateOFDProtocolMessage [10:14:39]wFMCommunicate request_size=4 [10:14:39]MH_SAM_APDU [10:14:39]CAPDU: 80 11 00 00 [10:14:39]Write to MH i2c: E2 08 00 BF 09 80 11 00 00 00 00 00 00 42 [10:14:39]Write i2c OK [10:14:39]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 17 00 BF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [10:14:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:14:40]wFMCommunicate OK [10:14:40]CreateOFDProtocolMessage done [10:14:40]OFDSenderStorePacket 112188 [10:14:40]StoreOFDPacket docnum=112188 [10:14:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B1 F2 07 01 B6 D0 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 C6 39 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 27 00 00 00 00 07 04 06 00 7C 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B6 01 00 35 04 06 00 3C 40 CB D2 FE 77 46 39 66 7C DF 5F E1 68 [10:14:40]CheckFolder [10:14:40]dirname=/storage/ofd_packets [10:14:40]CheckFolder done [10:14:40]ProducePacketName [10:14:40]name=ofd_packets/00112188 [10:14:40]NVStorageSaveData ofd_packets/00112188 [10:14:40]File name is /storage/ofd_packets/00112188 [10:14:40]Write 301 bytes [10:14:40]NVStorageSaveData done [10:14:40]OFDSenderStorePacket done [10:14:40]KKMCreateOFDPacket done [10:14:40]NVStorageSaveData kkm_last_timestamp [10:14:40]File name is /storage/kkm_last_timestamp [10:14:40]Write 4 bytes [10:14:40]NVStorageSaveData done [10:14:40]ExternCall_PrintAddStr [10:14:40]wPrintStart [10:14:40]Write to MH i2c: 01 00 00 C0 09 C9 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [10:14:40]RasterBufferAndPrint [10:14:40]line Счет N : (1)48504 [10:14:40]line ИНН: 02508201610067 [10:14:40]line Контрольно-Кассовый Чек [10:14:40]line ПРОДАЖА [10:14:40]line ТРК (МРК, ГНК) : 11 [10:14:40]line Товар: 2710124130 [10:14:40]line Аи-92-К-5 [10:14:40]line 14.790 * 64.30 [10:14:40]line = 951.00 [10:14:40]line НДС 12% НСП 1% [10:14:40]line > о реализуемом товаре [10:14:40]line ИТОГО: 951.00 [10:14:40]line НСП 1% : 8.42 [10:14:40]line НДС 12% : 100.99 [10:14:40]line Наличными: 951.00 [10:14:40]line Безнал.: 0.00 [10:14:40]line Место: АЗС № 47 "Партнер Нефть" [10:14:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:14:40]line СНО: Общий режим [10:14:40]line Чек 87 14.04.2024 10:14 [10:14:40]line Смена: 357 ФФД: 1.0 [10:14:40]line ЗНМ: 0300000138 [10:14:40]line РНМ: 0000000000094237 [10:14:40]line Версия ККМ: 001 [10:14:40]line ФМ: 0000000000875019 [10:14:40]line ФД: 112188 [10:14:40]line ФПД: 66248995176055 [10:14:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101439&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112188&fm=66248995176055&tin=02508201610067®Number=0000000000094237&sum=95100 [10:14:40]written 0, free lines is 4095 [10:14:40]Write to MH i2c: 01 00 00 E8 09 F1 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: 01 07 00 E8 09 00 00 00 00 00 0A 0D 0F [10:14:40]RasterBufferAndPrint [10:14:40]line [10:14:40]line [10:14:40]line [10:14:40]line [10:14:40]line [10:14:40]written 0, free lines is 3344 [10:14:40]MH_Cut [10:14:40]Write to MH i2c: D1 01 00 EF 09 01 CA [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: D1 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: D1 01 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: D1 01 00 EF 09 00 C9 [10:14:40]Write to MH i2c: 01 00 00 F0 09 F9 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:41]*** Cut start [10:14:41]*** Partial cut [10:14:41]*** CUTSNS_PIN = 1 [10:14:41]*** CUTSNS_PIN = 0 [10:14:41]*** Brake cut motor [10:14:42]Read from MH i2c: 01 [10:14:42]MH_I2C_Read... [10:14:42]*** Stop cut motor [10:14:42]*** Cut end [10:14:42]Read from MH i2c: 01 07 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: 01 07 00 F0 09 00 00 00 00 00 FF 0F 0E [10:14:42]process_action close_receipt done [10:14:42]requested_data is exist [10:14:42]produce_requested_data [10:14:42]requested_item fm.sn is exist - process it [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 11 00 00 [10:14:42]Write to MH i2c: E2 08 00 F1 09 80 11 00 00 00 00 00 00 74 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 17 00 F1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C5 [10:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:14:42]wFMCommunicate OK [10:14:42]requested_item fd.num is exist - process it [10:14:42]SAM_PROTO_GetFieldsCounters [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 13 00 00 [10:14:42]Write to MH i2c: E2 08 00 F2 09 80 13 00 00 00 00 00 00 77 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 62 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 62 00 F2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [10:14:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_GetFieldsCounters done [10:14:42]requested_item shift.num is exist - process it [10:14:42]requested_item shift.opened is exist - process it [10:14:42]req_shift_opened [10:14:42]FM_GetShiftState [10:14:42]SAM_PROTO_GetShiftState [10:14:42]wFMCommunicate request_size=4 [10:14:42]MH_SAM_APDU [10:14:42]CAPDU: 80 13 01 00 [10:14:42]Write to MH i2c: E2 08 00 F3 09 80 13 01 00 00 00 00 00 79 [10:14:42]Write i2c OK [10:14:42]MH_I2C_Read... [10:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:42]Read from MH i2c: E2 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 [10:14:42]MH_I2C_Read... [10:14:42]Read from MH i2c: E2 0E 00 F3 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [10:14:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:14:42]wFMCommunicate OK [10:14:42]SAM_PROTO_GetShiftState done [10:14:42]FM_GetShiftState done [10:14:42]req_shift_opened done [10:14:42]requested_item shift.open_date is exist - process it [10:14:42]req_shift_open_date [10:14:42]req_shift_open_date done [10:14:42]produce_requested_data done [10:14:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112188,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:14:42]process_action_free close_receipt [10:14:42]json_value_free [10:14:42]json_value_free done [10:14:42]process_json_proto returns [10:14:42]Send response to host [10:14:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112188,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:14:42]free response buf [10:14:42]execute_script done [10:14:42]execute_script returns [10:14:42]free content buf [10:14:42]Sock 8.Close socket [10:14:42]Sock 8.Thread stoped [10:15:00]ConnectInit Can't connect to host [10:15:00]CommunicateWithHost connect error [10:15:00]CommunicateWithHost err = -1 [10:15:00]OFD Sender: Server communicate error [10:15:00]OFD Sender: Processing packet 112187 [packets to send 72, broken 70] [10:15:00]ProducePacketName [10:15:00]name=ofd_packets/00112187 [10:15:00]OFD Sender: To server: pG, [10:15:00]CommunicateWithHost lk.salyk.kg:30040 [10:15:00]ConnectInit lk.salyk.kg [10:15:01]Connected sock=8 [10:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 28 40 07 01 4C A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 21 AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B6 01 00 35 04 06 00 58 99 B1 AF F6 A4 A9 BB 2A 56 14 F9 4E EA [10:15:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8C AF 47 00 65 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B6 01 00 F4 03 04 00 30 54 1B 66 B6 04 01 00 00 AD 19 E7 E6 6B 5B F5 1B [10:15:02]CommunicateWithHost err = 0 [10:15:02]CheckOFDResponse [10:15:02]1017 (14) - 77093643461234 [10:15:02]1041 (16) - 0000000000875019 [10:15:02]1040 (4) - 112187 [10:15:02]1012 (4) - 14.04.2024 03:57 [10:15:02]1206 (1) - 0 [10:15:02]OFD Sender: Remove packet 112187 [10:15:02]ProducePacketName [10:15:02]name=ofd_packets/00112187 [10:15:02]NVStorageDeleteData [10:15:02]OFD Sender: Processing packet 112188 [packets to send 71, broken 70] [10:15:02]ProducePacketName [10:15:02]name=ofd_packets/00112188 [10:15:02]OFD Sender: To server: pG, [10:15:02]CommunicateWithHost lk.salyk.kg:30040 [10:15:02]ConnectInit lk.salyk.kg [10:15:02]Connected sock=8 [10:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B1 F2 07 01 B6 D0 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 C6 39 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7C 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 27 00 00 00 00 07 04 06 00 7C 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 8F AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B6 01 00 35 04 06 00 3C 40 CB D2 FE 77 46 39 66 7C DF 5F E1 68 [10:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AC 46 47 00 56 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 38 37 35 30 31 39 10 04 04 00 3C B6 01 00 F4 03 04 00 31 54 1B 66 B6 04 01 00 00 05 41 48 DA 0F 63 A1 B6 [10:15:03]CommunicateWithHost err = 0 [10:15:03]CheckOFDResponse [10:15:03]1017 (14) - 77093643461234 [10:15:03]1041 (16) - 0000000000875019 [10:15:03]1040 (4) - 112188 [10:15:03]1012 (4) - 14.04.2024 03:57 [10:15:03]1206 (1) - 0 [10:15:03]OFD Sender: Remove packet 112188 [10:15:03]ProducePacketName [10:15:03]name=ofd_packets/00112188 [10:15:03]NVStorageDeleteData [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:29]accept exits with 9 [10:16:29]New connection [10:16:29]New thread 3067243876 created [10:16:29]Thread 3067100516 joined [10:16:29]Waiting for new connection... [10:16:29] Sock 9.Parse request [10:16:29]Sock 9.Check first char [10:16:29]Sock 9.First char is OK [10:16:29]request: POST /json_proto HTTP/1.0 [10:16:29]Method: POST [10:16:29]URL: /json_proto [10:16:29]Method is POST - this is cgi request [10:16:29]url: /json_proto [10:16:29]query_string will be loaded in cgi processing [10:16:29]execute_cgi json_proto POST (null) [10:16:29]execute_cgi path=json_proto method=POST [10:16:29]POST find Content-Length [10:16:29]Host: 172.17.96.197:8080 [10:16:29]Content-Length: 628 [10:16:29]Content-Type: application/json [10:16:29] [10:16:29]POST finish read [10:16:29]Found Content-Length = 628 [10:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10412", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:29]execute_script... [10:16:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10412", "tax_sys" : 0, "items" : [ { "code": "80942726", "name": "\u0420/\u0436 mentos \u043C\u044F\u0442\u0430 \u0440\u043E\u043B\u043B 16\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:16:29]POST & json_proto [10:16:29]process_json_proto [10:16:29]json parsed OK: [10:16:29]protocol is kg_v1.0 [10:16:29]action value=close_receipt [10:16:29]process_action close_receipt [10:16:29]cmd_close_receipt [10:16:29]MH_GetDate [10:16:29]Write to MH i2c: F0 00 00 F4 09 EC [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: F0 09 00 F4 09 00 FE AC 1B 66 E0 85 7F 64 68 [10:16:29]GetLastDocTimeStamp 1713089679 [10:16:29]current date 1713089790 [10:16:29]FM_GetShiftState [10:16:29]SAM_PROTO_GetShiftState [10:16:29]wFMCommunicate request_size=4 [10:16:29]MH_SAM_APDU [10:16:29]CAPDU: 80 13 01 00 [10:16:29]Write to MH i2c: E2 08 00 F5 09 80 13 01 00 00 00 00 00 7B [10:16:29]Write i2c OK [10:16:29]MH_I2C_Read... [10:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:29]Read from MH i2c: E2 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 [10:16:29]MH_I2C_Read... [10:16:29]Read from MH i2c: E2 0E 00 F5 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 13 [10:16:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:16:29]wFMCommunicate OK [10:16:29]SAM_PROTO_GetShiftState done [10:16:29]FM_GetShiftState done [10:16:29]opened in 1713054696 [10:16:29]opened+sec_in_day 1713141096 [10:16:29]quantity*price = 4900 [10:16:29]sum+1 = 4901 [10:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 88 14.04.2024 10:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112189 ФПД: 262791398949938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101630&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112189&fm=262791398949938&tin=02508201610067®Number=0000000000094237&sum=4900 0 [10:16:30]StoreToDocumentArchive [10:16:30]shift 357 fd 112189 [10:16:30]save to /storage/0357/doc_00112189 [10:16:30]save last doc name /storage/0357/doc_00112189 to /storage/kkm_last_doc_name [10:16:30]save OK [10:16:30]Clear old archive folders... [10:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:16:30]tlvbuf is 01767490 [10:16:30]SAM_PROTO_ClearQueue [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 09 00 00 [10:16:30]Write to MH i2c: E2 08 00 02 0A 80 09 00 00 00 00 00 00 7E [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]SAM_PROTO_ClearQueue done [10:16:30]KKMCreateOFDPacket [10:16:30]OFDProtocolAddRootSTLVToBuf [10:16:30]FM_MakeSignedData [10:16:30]FM_MakeSignedData [10:16:30]SAM_PROTO_SignData [10:16:30]wFMCommunicate request_size=4 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 01 02 [10:16:30]Write to MH i2c: E2 08 00 03 0A 80 0D 01 02 00 00 00 00 86 [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:16:30]Read from MH i2c: E2 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 [10:16:30]MH_I2C_Read... [10:16:30]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [10:16:30]RAPDU: 90 00 [10:16:30]wFMCommunicate OK [10:16:30]wFMCommunicate request_size=255 [10:16:30]MH_SAM_APDU [10:16:30]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 FE AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [10:16:30]Write to MH i2c: E2 02 01 04 0A 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 FE AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 CF [10:16:30]Write i2c OK [10:16:30]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [10:16:31]RAPDU: 90 00 [10:16:31]wFMCommunicate OK [10:16:31]wFMCommunicate request_size=31 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 3D B6 01 00 35 04 06 00 EF 01 E3 FC 04 32 [10:16:31]Write to MH i2c: E2 22 00 05 0A 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 3D B6 01 00 35 04 06 00 EF 01 E3 FC 04 32 00 00 AB [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 03 00 05 0A 00 90 00 83 [10:16:31]RAPDU: 90 00 [10:16:31]wFMCommunicate OK [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 0D 03 02 [10:16:31]Write to MH i2c: E2 08 00 06 0A 80 0D 03 02 00 00 00 00 8B [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0B 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 0B 00 06 0A 00 59 E3 8D BE BB 51 64 5E 90 00 E1 [10:16:31]RAPDU: 59 E3 8D BE BB 51 64 5E 90 00 [10:16:31]wFMCommunicate OK [10:16:31]SAM_PROTO_SignData done [10:16:31]FM_MakeSignedData done [10:16:31]CreateOFDProtocolMessage [10:16:31]wFMCommunicate request_size=4 [10:16:31]MH_SAM_APDU [10:16:31]CAPDU: 80 11 00 00 [10:16:31]Write to MH i2c: E2 08 00 07 0A 80 11 00 00 00 00 00 00 8B [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:31]Read from MH i2c: E2 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: E2 17 00 07 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DC [10:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:16:31]wFMCommunicate OK [10:16:31]CreateOFDProtocolMessage done [10:16:31]OFDSenderStorePacket 112189 [10:16:31]StoreOFDPacket docnum=112189 [10:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 44 F8 1C 01 C2 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 FE AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B6 01 00 35 04 06 00 EF 01 E3 FC 04 32 59 E3 8D BE BB 51 64 5E [10:16:31]CheckFolder [10:16:31]dirname=/storage/ofd_packets [10:16:31]CheckFolder done [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00112189 [10:16:31]NVStorageSaveData ofd_packets/00112189 [10:16:31]File name is /storage/ofd_packets/00112189 [10:16:31]Write 322 bytes [10:16:31]NVStorageSaveData done [10:16:31]OFDSenderStorePacket done [10:16:31]KKMCreateOFDPacket done [10:16:31]NVStorageSaveData kkm_last_timestamp [10:16:31]File name is /storage/kkm_last_timestamp [10:16:31]Write 4 bytes [10:16:31]NVStorageSaveData done [10:16:31]ExternCall_PrintAddStr [10:16:31]wPrintStart [10:16:31]Write to MH i2c: 01 00 00 08 0A 12 [10:16:31]Write i2c OK [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 [10:16:31]MH_I2C_Read... [10:16:31]Read from MH i2c: 01 07 00 08 0A 00 00 00 00 00 FF 0F 27 [10:16:31]RasterBufferAndPrint [10:16:31]line Счет N : (3)10412 [10:16:31]line ИНН: 02508201610067 [10:16:31]line Контрольно-Кассовый Чек [10:16:31]line ПРОДАЖА [10:16:31]line Товар: 80942726 [10:16:31]line Р/ж mentos мята ролл 16г [10:16:31]line 1.000 * 49.00 [10:16:31]line = 49.00 [10:16:31]line НДС 12% НСП 1% [10:16:31]line > о реализуемом товаре [10:16:31]line ИТОГО: 49.00 [10:16:31]line НСП 1% : 0.43 [10:16:31]line НДС 12% : 5.20 [10:16:31]line Наличными: 49.00 [10:16:31]line Безнал.: 0.00 [10:16:31]line Место: АЗС № 47 "Партнер Нефть" [10:16:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:16:31]line СНО: Общий режим [10:16:31]line Чек 88 14.04.2024 10:16 [10:16:31]line Смена: 357 ФФД: 1.0 [10:16:31]line ЗНМ: 0300000138 [10:16:31]line РНМ: 0000000000094237 [10:16:31]line Версия ККМ: 001 [10:16:31]line ФМ: 0000000000875019 [10:16:31]line ФД: 112189 [10:16:31]line ФПД: 262791398949938 [10:16:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101630&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112189&fm=262791398949938&tin=02508201610067®Number=0000000000094237&sum=4900 [10:16:31]OFD Sender: Processing packet 112189 [packets to send 71, broken 70] [10:16:31]ProducePacketName [10:16:31]name=ofd_packets/00112189 [10:16:31]OFD Sender: To server: pG, [10:16:31]CommunicateWithHost lk.salyk.kg:30040 [10:16:31]ConnectInit lk.salyk.kg [10:16:31]line 0 [10:16:31]written 0, free lines is 4095 [10:16:31]Connected sock=10 [10:16:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 44 F8 1C 01 C2 46 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 38 30 39 34 32 37 32 36 06 04 23 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 D0 BC D1 8F D1 82 D0 B0 20 D1 80 D0 BE D0 BB D0 BB 20 31 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 FE AC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B6 01 00 35 04 06 00 EF 01 E3 FC 04 32 59 E3 8D BE BB 51 64 5E [10:16:32]Write to MH i2c: 01 00 00 30 0A 3A [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 07 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 12 0D 60 [10:16:32]RasterBufferAndPrint [10:16:32]line [10:16:32]line [10:16:32]line [10:16:32]line [10:16:32]line [10:16:32]written 0, free lines is 3353 [10:16:32]MH_Cut [10:16:32]Write to MH i2c: D1 01 00 37 0A 01 13 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: D1 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: D1 01 00 [10:16:32]MH_I2C_Read... [10:16:32]Read from MH i2c: D1 01 00 37 0A 00 12 [10:16:32]Write to MH i2c: 01 00 00 38 0A 42 [10:16:32]Write i2c OK [10:16:32]MH_I2C_Read... [10:16:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8E B6 47 00 E4 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B6 01 00 F4 03 04 00 8A 54 1B 66 B6 04 01 00 00 23 8E B9 77 E7 44 E5 84 [10:16:32]CommunicateWithHost err = 0 [10:16:32]CheckOFDResponse [10:16:32]1017 (14) - 77093643461234 [10:16:32]1041 (16) - 0000000000875019 [10:16:32]1040 (4) - 112189 [10:16:32]1012 (4) - 14.04.2024 03:59 [10:16:32]1206 (1) - 0 [10:16:32]OFD Sender: Remove packet 112189 [10:16:32]ProducePacketName [10:16:32]name=ofd_packets/00112189 [10:16:32]NVStorageDeleteData [10:16:32]OFD Sender: No OFD packet to send [10:16:32]*** Cut start [10:16:32]*** Partial cut [10:16:32]*** CUTSNS_PIN = 1 [10:16:32]*** CUTSNS_PIN = 0 [10:16:33]*** Brake cut motor [10:16:33]Read from MH i2c: 01 [10:16:33]MH_I2C_Read... [10:16:33]*** Stop cut motor [10:16:33]*** Cut end [10:16:33]Read from MH i2c: 01 07 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [10:16:33]process_action close_receipt done [10:16:33]requested_data is exist [10:16:33]produce_requested_data [10:16:33]requested_item fm.sn is exist - process it [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 11 00 00 [10:16:33]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0E [10:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:16:33]wFMCommunicate OK [10:16:33]requested_item fd.num is exist - process it [10:16:33]SAM_PROTO_GetFieldsCounters [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 00 00 [10:16:33]Write to MH i2c: E2 08 00 3A 0A 80 13 00 00 00 00 00 00 C0 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 62 00 3A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetFieldsCounters done [10:16:33]requested_item shift.num is exist - process it [10:16:33]requested_item shift.opened is exist - process it [10:16:33]req_shift_opened [10:16:33]FM_GetShiftState [10:16:33]SAM_PROTO_GetShiftState [10:16:33]wFMCommunicate request_size=4 [10:16:33]MH_SAM_APDU [10:16:33]CAPDU: 80 13 01 00 [10:16:33]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [10:16:33]Write i2c OK [10:16:33]MH_I2C_Read... [10:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:16:33]Read from MH i2c: E2 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 [10:16:33]MH_I2C_Read... [10:16:33]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [10:16:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:16:33]wFMCommunicate OK [10:16:33]SAM_PROTO_GetShiftState done [10:16:33]FM_GetShiftState done [10:16:33]req_shift_opened done [10:16:33]requested_item shift.open_date is exist - process it [10:16:33]req_shift_open_date [10:16:33]req_shift_open_date done [10:16:33]produce_requested_data done [10:16:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112189,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:16:33]process_action_free close_receipt [10:16:33]json_value_free [10:16:33]json_value_free done [10:16:33]process_json_proto returns [10:16:33]Send response to host [10:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112189,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:16:33]free response buf [10:16:33]execute_script done [10:16:33]execute_script returns [10:16:33]free content buf [10:16:33]Sock 9.Close socket [10:16:33]Sock 9.Thread stoped [10:16:37]OFD Sender: No OFD packet to send [10:16:42]OFD Sender: No OFD packet to send [10:16:47]OFD Sender: No OFD packet to send [10:16:52]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:04]accept exits with 8 [10:18:04]New connection [10:18:04]New thread 3067100516 created [10:18:04]Thread 3067243876 joined [10:18:04]Waiting for new connection... [10:18:04] Sock 8.Parse request [10:18:04]Sock 8.Check first char [10:18:04]Sock 8.First char is OK [10:18:04]request: POST /json_proto HTTP/1.0 [10:18:04]Method: POST [10:18:04]URL: /json_proto [10:18:04]Method is POST - this is cgi request [10:18:04]url: /json_proto [10:18:04]query_string will be loaded in cgi processing [10:18:04]execute_cgi json_proto POST (null) [10:18:04]execute_cgi path=json_proto method=POST [10:18:04]POST find Content-Length [10:18:04]Host: 172.17.96.197:8080 [10:18:04]Content-Length: 678 [10:18:04]Content-Type: application/json [10:18:04] [10:18:04]POST finish read [10:18:04]Found Content-Length = 678 [10:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48505", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:18:04]execute_script... [10:18: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)48505", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:18:04]POST & json_proto [10:18:04]process_json_proto [10:18:04]json parsed OK: [10:18:04]protocol is kg_v1.0 [10:18:04]action value=close_receipt [10:18:04]process_action close_receipt [10:18:04]cmd_close_receipt [10:18:04]MH_GetDate [10:18:04]Write to MH i2c: F0 00 00 3C 0A 35 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: F0 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: F0 09 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: F0 09 00 3C 0A 00 5E AD 1B 66 E0 85 7F 64 12 [10:18:04]GetLastDocTimeStamp 1713089790 [10:18:04]current date 1713089886 [10:18:04]FM_GetShiftState [10:18:04]SAM_PROTO_GetShiftState [10:18:04]wFMCommunicate request_size=4 [10:18:04]MH_SAM_APDU [10:18:04]CAPDU: 80 13 01 00 [10:18:04]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [10:18:04]Write i2c OK [10:18:04]MH_I2C_Read... [10:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:04]Read from MH i2c: E2 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 0E 00 [10:18:04]MH_I2C_Read... [10:18:04]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5C [10:18:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:18:04]wFMCommunicate OK [10:18:04]SAM_PROTO_GetShiftState done [10:18:04]FM_GetShiftState done [10:18:04]opened in 1713054696 [10:18:04]opened+sec_in_day 1713141096 [10:18:04]quantity*price = 100056 [10:18:04]sum+1 = 100058 [10:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 89 14.04.2024 10:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112190 ФПД: 186974622153115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101806&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112190&fm=186974622153115&tin=02508201610067®Number=0000000000094237&sum=100000 [10:18:06]StoreToDocumentArchive [10:18:06]shift 357 fd 112190 [10:18:06]save to /storage/0357/doc_00112190 [10:18:06]save last doc name /storage/0357/doc_00112190 to /storage/kkm_last_doc_name [10:18:06]save OK [10:18:06]Clear old archive folders... [10:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:18:06]tlvbuf is 016F1A40 [10:18:06]SAM_PROTO_ClearQueue [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 09 00 00 [10:18:06]Write to MH i2c: E2 08 00 4A 0A 80 09 00 00 00 00 00 00 C6 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [10:18:06]RAPDU: 90 00 [10:18:06]wFMCommunicate OK [10:18:06]SAM_PROTO_ClearQueue done [10:18:06]KKMCreateOFDPacket [10:18:06]OFDProtocolAddRootSTLVToBuf [10:18:06]FM_MakeSignedData [10:18:06]FM_MakeSignedData [10:18:06]SAM_PROTO_SignData [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 0D 01 02 [10:18:06]Write to MH i2c: E2 08 00 4B 0A 80 0D 01 02 00 00 00 00 CE [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [10:18:06]RAPDU: 90 00 [10:18:06]wFMCommunicate OK [10:18:06]wFMCommunicate request_size=255 [10:18:06]MH_SAM_APDU [10:18:06]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5E AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B6 01 00 35 04 06 00 AA 0D 6B EF [10:18:06]Write to MH i2c: E2 02 01 4C 0A 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5E AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B6 01 00 35 04 06 00 AA 0D 6B EF 00 00 DF [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [10:18:06]RAPDU: 90 00 [10:18:06]wFMCommunicate OK [10:18:06]wFMCommunicate request_size=7 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 0D 02 02 02 79 9B [10:18:06]Write to MH i2c: E2 0A 00 4D 0A 80 0D 02 02 02 00 79 9B 00 00 E9 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [10:18:06]RAPDU: 90 00 [10:18:06]wFMCommunicate OK [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 0D 03 02 [10:18:06]Write to MH i2c: E2 08 00 4E 0A 80 0D 03 02 00 00 00 00 D3 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0B 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 0B 00 4E 0A 00 AC FE 7E 7C 34 53 94 DD 90 00 70 [10:18:06]RAPDU: AC FE 7E 7C 34 53 94 DD 90 00 [10:18:06]wFMCommunicate OK [10:18:06]SAM_PROTO_SignData done [10:18:06]FM_MakeSignedData done [10:18:06]CreateOFDProtocolMessage [10:18:06]wFMCommunicate request_size=4 [10:18:06]MH_SAM_APDU [10:18:06]CAPDU: 80 11 00 00 [10:18:06]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:06]Read from MH i2c: E2 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 17 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [10:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:18:06]wFMCommunicate OK [10:18:06]CreateOFDProtocolMessage done [10:18:06]OFDSenderStorePacket 112190 [10:18:06]StoreOFDPacket docnum=112190 [10:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 73 8B 04 01 0C 98 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5E AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B6 01 00 35 04 06 00 AA 0D 6B EF 79 9B AC FE 7E 7C 34 53 94 DD [10:18:06]CheckFolder [10:18:06]dirname=/storage/ofd_packets [10:18:06]CheckFolder done [10:18:06]ProducePacketName [10:18:06]name=ofd_packets/00112190 [10:18:06]NVStorageSaveData ofd_packets/00112190 [10:18:06]File name is /storage/ofd_packets/00112190 [10:18:06]Write 298 bytes [10:18:06]NVStorageSaveData done [10:18:06]OFDSenderStorePacket done [10:18:06]KKMCreateOFDPacket done [10:18:06]NVStorageSaveData kkm_last_timestamp [10:18:06]File name is /storage/kkm_last_timestamp [10:18:06]Write 4 bytes [10:18:06]NVStorageSaveData done [10:18:06]ExternCall_PrintAddStr [10:18:06]wPrintStart [10:18:06]Write to MH i2c: 01 00 00 50 0A 5A [10:18:06]Write i2c OK [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: 01 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: 01 07 00 [10:18:06]MH_I2C_Read... [10:18:06]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [10:18:06]RasterBufferAndPrint [10:18:06]line Счет N : (1)48505 [10:18:06]line ИНН: 02508201610067 [10:18:06]line Контрольно-Кассовый Чек [10:18:06]line ПРОДАЖА [10:18:06]line ТРК (МРК, ГНК) : 51 [10:18:06]line Товар: 2710194210 [10:18:06]line ДТ-К-5 [10:18:06]line 13.820 * 72.40 [10:18:06]line = 1000.57 [10:18:06]line НДС 12% НСП 1% [10:18:06]line > о реализуемом товаре [10:18:06]line ОКРУГЛЕНИЕ: -0.57 [10:18:06]line ИТОГО: 1000.00 [10:18:06]line Внесено: 1000.00 [10:18:06]line СДАЧА: 0.00 [10:18:06]line НСП 1% : 8.85 [10:18:06]line НДС 12% : 106.25 [10:18:06]line Наличными: 1000.00 [10:18:06]line Безнал.: 0.00 [10:18:06]line Место: АЗС № 47 "Партнер Нефть" [10:18:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:18:06]line СНО: Общий режим [10:18:06]line Чек 89 14.04.2024 10:18 [10:18:06]line Смена: 357 ФФД: 1.0 [10:18:06]line ЗНМ: 0300000138 [10:18:06]line РНМ: 0000000000094237 [10:18:06]line Версия ККМ: 001 [10:18:06]line ФМ: 0000000000875019 [10:18:06]line ФД: 112190 [10:18:06]line ФПД: 186974622153115 [10:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T101806&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112190&fm=186974622153115&tin=02508201610067®Number=0000000000094237&sum=100000 [10:18:06]OFD Sender: Processing packet 112190 [packets to send 71, broken 70] [10:18:06]ProducePacketName [10:18:06]name=ofd_packets/00112190 [10:18:06]OFD Sender: To server: pG, [10:18:06]CommunicateWithHost lk.salyk.kg:30040 [10:18:06]ConnectInit lk.salyk.kg [10:18:06]written 0, free lines is 4095 [10:18:07]Connected sock=10 [10:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 73 8B 04 01 0C 98 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5E AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B6 01 00 35 04 06 00 AA 0D 6B EF 79 9B AC FE 7E 7C 34 53 94 DD [10:18:07]Write to MH i2c: 01 00 00 7B 0A 85 [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 07 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: 01 07 00 7B 0A 00 00 00 00 00 F4 0C 8C [10:18:07]RasterBufferAndPrint [10:18:07]line [10:18:07]line [10:18:07]line [10:18:07]line [10:18:07]line [10:18:07]written 0, free lines is 3322 [10:18:07]MH_Cut [10:18:07]Write to MH i2c: D1 01 00 82 0A 01 5E [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: D1 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: D1 01 00 [10:18:07]MH_I2C_Read... [10:18:07]Read from MH i2c: D1 01 00 82 0A 00 5D [10:18:07]Write to MH i2c: 01 00 00 83 0A 8D [10:18:07]Write i2c OK [10:18:07]MH_I2C_Read... [10:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 01 6C 47 00 FA 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B6 01 00 F4 03 04 00 E9 54 1B 66 B6 04 01 00 00 81 E9 B4 79 F7 9B 69 8B [10:18:07]CommunicateWithHost err = 0 [10:18:07]CheckOFDResponse [10:18:07]1017 (14) - 77093643461234 [10:18:07]1041 (16) - 0000000000875019 [10:18:07]1040 (4) - 112190 [10:18:07]1012 (4) - 14.04.2024 04:00 [10:18:07]1206 (1) - 0 [10:18:07]OFD Sender: Remove packet 112190 [10:18:07]ProducePacketName [10:18:07]name=ofd_packets/00112190 [10:18:07]NVStorageDeleteData [10:18:07]OFD Sender: No OFD packet to send [10:18:08]*** Cut start [10:18:08]*** Partial cut [10:18:08]*** CUTSNS_PIN = 1 [10:18:08]*** CUTSNS_PIN = 0 [10:18:08]*** Brake cut motor [10:18:08]Read from MH i2c: 01 [10:18:08]MH_I2C_Read... [10:18:08]*** Stop cut motor [10:18:08]*** Cut end [10:18:08]Read from MH i2c: 01 07 00 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: 01 07 00 83 0A 00 00 00 00 00 FF 0F A2 [10:18:08]process_action close_receipt done [10:18:08]requested_data is exist [10:18:08]produce_requested_data [10:18:08]requested_item fm.sn is exist - process it [10:18:08]wFMCommunicate request_size=4 [10:18:08]MH_SAM_APDU [10:18:08]CAPDU: 80 11 00 00 [10:18:08]Write to MH i2c: E2 08 00 84 0A 80 11 00 00 00 00 00 00 08 [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:08]Read from MH i2c: E2 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: E2 17 00 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: E2 17 00 84 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [10:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:18:08]wFMCommunicate OK [10:18:08]requested_item fd.num is exist - process it [10:18:08]SAM_PROTO_GetFieldsCounters [10:18:08]wFMCommunicate request_size=4 [10:18:08]MH_SAM_APDU [10:18:08]CAPDU: 80 13 00 00 [10:18:08]Write to MH i2c: E2 08 00 85 0A 80 13 00 00 00 00 00 00 0B [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:08]Read from MH i2c: E2 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: E2 62 00 [10:18:08]MH_I2C_Read... [10:18:08]Read from MH i2c: E2 62 00 85 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [10:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:08]wFMCommunicate OK [10:18:08]SAM_PROTO_GetFieldsCounters done [10:18:08]requested_item shift.num is exist - process it [10:18:08]requested_item shift.opened is exist - process it [10:18:08]req_shift_opened [10:18:08]FM_GetShiftState [10:18:08]SAM_PROTO_GetShiftState [10:18:08]wFMCommunicate request_size=4 [10:18:08]MH_SAM_APDU [10:18:08]CAPDU: 80 13 01 00 [10:18:08]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [10:18:08]Write i2c OK [10:18:08]MH_I2C_Read... [10:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:09]Read from MH i2c: E2 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 0E 00 [10:18:09]MH_I2C_Read... [10:18:09]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [10:18:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:18:09]wFMCommunicate OK [10:18:09]SAM_PROTO_GetShiftState done [10:18:09]FM_GetShiftState done [10:18:09]req_shift_opened done [10:18:09]requested_item shift.open_date is exist - process it [10:18:09]req_shift_open_date [10:18:09]req_shift_open_date done [10:18:09]produce_requested_data done [10:18:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112190,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:18:09]process_action_free close_receipt [10:18:09]json_value_free [10:18:09]json_value_free done [10:18:09]process_json_proto returns [10:18:09]Send response to host [10:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112190,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:18:09]free response buf [10:18:09]execute_script done [10:18:09]execute_script returns [10:18:09]free content buf [10:18:09]Sock 8.Close socket [10:18:09]Sock 8.Thread stoped [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:06]accept exits with 9 [10:20:06]New connection [10:20:06]New thread 3067243876 created [10:20:06]Thread 3067100516 joined [10:20:06]Waiting for new connection... [10:20:06] Sock 9.Parse request [10:20:06]Sock 9.Check first char [10:20:06]Sock 9.First char is OK [10:20:06]request: POST /json_proto HTTP/1.0 [10:20:06]Method: POST [10:20:06]URL: /json_proto [10:20:06]Method is POST - this is cgi request [10:20:06]url: /json_proto [10:20:06]query_string will be loaded in cgi processing [10:20:06]execute_cgi json_proto POST (null) [10:20:06]execute_cgi path=json_proto method=POST [10:20:06]POST find Content-Length [10:20:06]Host: 172.17.96.197:8080 [10:20:06]Content-Length: 674 [10:20:06]Content-Type: application/json [10:20:06] [10:20:06]POST finish read [10:20:06]Found Content-Length = 674 [10:20:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48506", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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" ] } } [10:20:06]execute_script... [10:20: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)48506", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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" ] } } [10:20:06]POST & json_proto [10:20:06]process_json_proto [10:20:06]json parsed OK: [10:20:06]protocol is kg_v1.0 [10:20:06]action value=close_receipt [10:20:06]process_action close_receipt [10:20:06]cmd_close_receipt [10:20:06]MH_GetDate [10:20:06]Write to MH i2c: F0 00 00 87 0A 80 [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: F0 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: F0 09 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: F0 09 00 87 0A 00 D7 AD 1B 66 E0 85 7F 64 D6 [10:20:06]GetLastDocTimeStamp 1713089886 [10:20:06]current date 1713090007 [10:20:06]FM_GetShiftState [10:20:06]SAM_PROTO_GetShiftState [10:20:06]wFMCommunicate request_size=4 [10:20:06]MH_SAM_APDU [10:20:06]CAPDU: 80 13 01 00 [10:20:06]Write to MH i2c: E2 08 00 88 0A 80 13 01 00 00 00 00 00 0F [10:20:06]Write i2c OK [10:20:06]MH_I2C_Read... [10:20:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:06]Read from MH i2c: E2 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0E 00 [10:20:06]MH_I2C_Read... [10:20:06]Read from MH i2c: E2 0E 00 88 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A7 [10:20:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:20:06]wFMCommunicate OK [10:20:06]SAM_PROTO_GetShiftState done [10:20:06]FM_GetShiftState done [10:20:06]opened in 1713054696 [10:20:06]opened+sec_in_day 1713141096 [10:20:06]quantity*price = 150059 [10:20:06]sum+1 = 150060 [10:20:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 90 14.04.2024 10:20 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112191 ФПД: 207611995112107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102007&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112191&fm=207611995112107&tin=02508201610067®Number=0000000000094237&sum=150000 [10:20:07]StoreToDocumentArchive [10:20:07]shift 357 fd 112191 [10:20:07]save to /storage/0357/doc_00112191 [10:20:07]save last doc name /storage/0357/doc_00112191 to /storage/kkm_last_doc_name [10:20:07]save OK [10:20:07]Clear old archive folders... [10:20:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:07]tlvbuf is 0175A470 [10:20:07]SAM_PROTO_ClearQueue [10:20:07]wFMCommunicate request_size=4 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 09 00 00 [10:20:07]Write to MH i2c: E2 08 00 95 0A 80 09 00 00 00 00 00 00 11 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [10:20:07]RAPDU: 90 00 [10:20:07]wFMCommunicate OK [10:20:07]SAM_PROTO_ClearQueue done [10:20:07]KKMCreateOFDPacket [10:20:07]OFDProtocolAddRootSTLVToBuf [10:20:07]FM_MakeSignedData [10:20:07]FM_MakeSignedData [10:20:07]SAM_PROTO_SignData [10:20:07]wFMCommunicate request_size=4 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 0D 01 02 [10:20:07]Write to MH i2c: E2 08 00 96 0A 80 0D 01 02 00 00 00 00 19 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [10:20:07]RAPDU: 90 00 [10:20:07]wFMCommunicate OK [10:20:07]wFMCommunicate request_size=255 [10:20:07]MH_SAM_APDU [10:20:07]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B6 01 00 35 04 06 00 [10:20:07]Write to MH i2c: E2 02 01 97 0A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B6 01 00 35 04 06 00 00 00 D0 [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 97 0A 00 90 00 15 [10:20:07]RAPDU: 90 00 [10:20:07]wFMCommunicate OK [10:20:07]wFMCommunicate request_size=11 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 0D 02 02 06 BC D2 6F 38 42 AB [10:20:07]Write to MH i2c: E2 0E 00 98 0A 80 0D 02 02 06 00 BC D2 6F 38 42 AB 00 00 4A [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 03 00 98 0A 00 90 00 16 [10:20:07]RAPDU: 90 00 [10:20:07]wFMCommunicate OK [10:20:07]wFMCommunicate request_size=4 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 0D 03 02 [10:20:07]Write to MH i2c: E2 08 00 99 0A 80 0D 03 02 00 00 00 00 1E [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:07]Read from MH i2c: E2 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 0B 00 [10:20:07]MH_I2C_Read... [10:20:07]Read from MH i2c: E2 0B 00 99 0A 00 CC E1 87 D0 27 83 C1 C9 90 00 57 [10:20:07]RAPDU: CC E1 87 D0 27 83 C1 C9 90 00 [10:20:07]wFMCommunicate OK [10:20:07]SAM_PROTO_SignData done [10:20:07]FM_MakeSignedData done [10:20:07]CreateOFDProtocolMessage [10:20:07]wFMCommunicate request_size=4 [10:20:07]MH_SAM_APDU [10:20:07]CAPDU: 80 11 00 00 [10:20:07]Write to MH i2c: E2 08 00 9A 0A 80 11 00 00 00 00 00 00 1E [10:20:07]Write i2c OK [10:20:07]MH_I2C_Read... [10:20:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:08]Read from MH i2c: E2 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: E2 17 00 9A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [10:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:20:08]wFMCommunicate OK [10:20:08]CreateOFDProtocolMessage done [10:20:08]OFDSenderStorePacket 112191 [10:20:08]StoreOFDPacket docnum=112191 [10:20:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 20 EC 08 01 DD 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B6 01 00 35 04 06 00 BC D2 6F 38 42 AB CC E1 87 D0 27 83 C1 C9 [10:20:08]CheckFolder [10:20:08]dirname=/storage/ofd_packets [10:20:08]CheckFolder done [10:20:08]ProducePacketName [10:20:08]name=ofd_packets/00112191 [10:20:08]NVStorageSaveData ofd_packets/00112191 [10:20:08]File name is /storage/ofd_packets/00112191 [10:20:08]Write 302 bytes [10:20:08]NVStorageSaveData done [10:20:08]OFDSenderStorePacket done [10:20:08]KKMCreateOFDPacket done [10:20:08]NVStorageSaveData kkm_last_timestamp [10:20:08]File name is /storage/kkm_last_timestamp [10:20:08]Write 4 bytes [10:20:08]NVStorageSaveData done [10:20:08]ExternCall_PrintAddStr [10:20:08]wPrintStart [10:20:08]Write to MH i2c: 01 00 00 9B 0A A5 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 9B 0A 00 00 00 00 00 FF 0F BA [10:20:08]RasterBufferAndPrint [10:20:08]line Счет N : (1)48506 [10:20:08]line ИНН: 02508201610067 [10:20:08]line Контрольно-Кассовый Чек [10:20:08]line ПРОДАЖА [10:20:08]line ТРК (МРК, ГНК) : 31 [10:20:08]line Товар: 2710124130 [10:20:08]line SUPER 92-К-5 [10:20:08]line 22.980 * 65.30 [10:20:08]line = 1500.59 [10:20:08]line НДС 12% НСП 1% [10:20:08]line > о реализуемом товаре [10:20:08]line ОКРУГЛЕНИЕ: -0.59 [10:20:08]line ИТОГО: 1500.00 [10:20:08]line Внесено: 1500.00 [10:20:08]line СДАЧА: 0.00 [10:20:08]line НСП 1% : 13.28 [10:20:08]line НДС 12% : 159.35 [10:20:08]line Наличными: 1500.00 [10:20:08]line Безнал.: 0.00 [10:20:08]line Место: АЗС № 47 "Партнер Нефть" [10:20:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:20:08]line СНО: Общий режим [10:20:08]line Чек 90 14.04.2024 10:20 [10:20:08]line Смена: 357 ФФД: 1.0 [10:20:08]line ЗНМ: 0300000138 [10:20:08]line РНМ: 0000000000094237 [10:20:08]line Версия ККМ: 001 [10:20:08]line ФМ: 0000000000875019 [10:20:08]line ФД: 112191 [10:20:08]line ФПД: 207611995112107 [10:20:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102007&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112191&fm=207611995112107&tin=02508201610067®Number=0000000000094237&sum=150000 [10:20:08]OFD Sender: Processing packet 112191 [packets to send 71, broken 70] [10:20:08]ProducePacketName [10:20:08]name=ofd_packets/00112191 [10:20:08]OFD Sender: To server: pG, [10:20:08]CommunicateWithHost lk.salyk.kg:30040 [10:20:08]ConnectInit lk.salyk.kg [10:20:08]written 0, free lines is 4095 [10:20:08]Connected sock=11 [10:20:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 20 EC 08 01 DD 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D7 AD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B6 01 00 35 04 06 00 BC D2 6F 38 42 AB CC E1 87 D0 27 83 C1 C9 [10:20:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E4 45 47 00 8B 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 38 37 35 30 31 39 10 04 04 00 3F B6 01 00 F4 03 04 00 63 55 1B 66 B6 04 01 00 00 A0 14 1E B7 17 00 DD E8 [10:20:08]CommunicateWithHost err = 0 [10:20:08]CheckOFDResponse [10:20:08]1017 (14) - 77093643461234 [10:20:08]1041 (16) - 0000000000875019 [10:20:08]1040 (4) - 112191 [10:20:08]1012 (4) - 14.04.2024 04:02 [10:20:08]1206 (1) - 0 [10:20:08]OFD Sender: Remove packet 112191 [10:20:08]ProducePacketName [10:20:08]name=ofd_packets/00112191 [10:20:08]NVStorageDeleteData [10:20:08]Write to MH i2c: 01 00 00 C6 0A D0 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: 01 07 00 C6 0A 00 00 00 00 00 D7 0C BA [10:20:08]RasterBufferAndPrint [10:20:08]line [10:20:08]line [10:20:08]line [10:20:08]line [10:20:08]line [10:20:08]written 0, free lines is 3290 [10:20:08]MH_Cut [10:20:08]Write to MH i2c: D1 01 00 CD 0A 01 A9 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: D1 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: D1 01 00 [10:20:08]MH_I2C_Read... [10:20:08]Read from MH i2c: D1 01 00 CD 0A 00 A8 [10:20:08]Write to MH i2c: 01 00 00 CE 0A D8 [10:20:08]Write i2c OK [10:20:08]MH_I2C_Read... [10:20:09]OFD Sender: No OFD packet to send [10:20:09]*** Cut start [10:20:09]*** Partial cut [10:20:09]*** CUTSNS_PIN = 1 [10:20:09]*** CUTSNS_PIN = 0 [10:20:09]*** Brake cut motor [10:20:10]Read from MH i2c: 01 [10:20:10]MH_I2C_Read... [10:20:10]*** Stop cut motor [10:20:10]*** Cut end [10:20:10]Read from MH i2c: 01 07 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: 01 07 00 CE 0A 00 00 00 00 00 FF 0F ED [10:20:10]process_action close_receipt done [10:20:10]requested_data is exist [10:20:10]produce_requested_data [10:20:10]requested_item fm.sn is exist - process it [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 11 00 00 [10:20:10]Write to MH i2c: E2 08 00 CF 0A 80 11 00 00 00 00 00 00 53 [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 17 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 17 00 CF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [10:20:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:20:10]wFMCommunicate OK [10:20:10]requested_item fd.num is exist - process it [10:20:10]SAM_PROTO_GetFieldsCounters [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 13 00 00 [10:20:10]Write to MH i2c: E2 08 00 D0 0A 80 13 00 00 00 00 00 00 56 [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 62 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 62 00 D0 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [10:20:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:10]wFMCommunicate OK [10:20:10]SAM_PROTO_GetFieldsCounters done [10:20:10]requested_item shift.num is exist - process it [10:20:10]requested_item shift.opened is exist - process it [10:20:10]req_shift_opened [10:20:10]FM_GetShiftState [10:20:10]SAM_PROTO_GetShiftState [10:20:10]wFMCommunicate request_size=4 [10:20:10]MH_SAM_APDU [10:20:10]CAPDU: 80 13 01 00 [10:20:10]Write to MH i2c: E2 08 00 D1 0A 80 13 01 00 00 00 00 00 58 [10:20:10]Write i2c OK [10:20:10]MH_I2C_Read... [10:20:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:10]Read from MH i2c: E2 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 [10:20:10]MH_I2C_Read... [10:20:10]Read from MH i2c: E2 0E 00 D1 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [10:20:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:20:10]wFMCommunicate OK [10:20:10]SAM_PROTO_GetShiftState done [10:20:10]FM_GetShiftState done [10:20:10]req_shift_opened done [10:20:10]requested_item shift.open_date is exist - process it [10:20:10]req_shift_open_date [10:20:10]req_shift_open_date done [10:20:10]produce_requested_data done [10:20:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112191,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:20:10]process_action_free close_receipt [10:20:10]json_value_free [10:20:10]json_value_free done [10:20:10]process_json_proto returns [10:20:10]Send response to host [10:20:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112191,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:20:10]free response buf [10:20:10]execute_script done [10:20:10]execute_script returns [10:20:10]free content buf [10:20:10]Sock 9.Close socket [10:20:10]Sock 9.Thread stoped [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:10]accept exits with 8 [10:23:10]New connection [10:23:10]New thread 3067100516 created [10:23:10]Thread 3067243876 joined [10:23:10]Waiting for new connection... [10:23:10] Sock 8.Parse request [10:23:10]Sock 8.Check first char [10:23:10]Sock 8.First char is OK [10:23:10]request: POST /json_proto HTTP/1.0 [10:23:10]Method: POST [10:23:10]URL: /json_proto [10:23:10]Method is POST - this is cgi request [10:23:10]url: /json_proto [10:23:10]query_string will be loaded in cgi processing [10:23:10]execute_cgi json_proto POST (null) [10:23:10]execute_cgi path=json_proto method=POST [10:23:10]POST find Content-Length [10:23:10]Host: 172.17.96.197:8080 [10:23:10]Content-Length: 816 [10:23:10]Content-Type: application/json [10:23:10] [10:23:10]POST finish read [10:23:10]Found Content-Length = 816 [10:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48507", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:10]execute_script... [10:23:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48507", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:10]POST & json_proto [10:23:10]process_json_proto [10:23:10]json parsed OK: [10:23:10]protocol is kg_v1.0 [10:23:10]action value=close_receipt [10:23:10]process_action close_receipt [10:23:10]cmd_close_receipt [10:23:10]MH_GetDate [10:23:10]Write to MH i2c: F0 00 00 D2 0A CB [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 09 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: F0 09 00 D2 0A 00 8F AE 1B 66 E0 85 7F 64 DA [10:23:10]GetLastDocTimeStamp 1713090007 [10:23:10]current date 1713090191 [10:23:10]FM_GetShiftState [10:23:10]SAM_PROTO_GetShiftState [10:23:10]wFMCommunicate request_size=4 [10:23:10]MH_SAM_APDU [10:23:10]CAPDU: 80 13 01 00 [10:23:10]Write to MH i2c: E2 08 00 D3 0A 80 13 01 00 00 00 00 00 5A [10:23:10]Write i2c OK [10:23:10]MH_I2C_Read... [10:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:10]Read from MH i2c: E2 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0E 00 [10:23:10]MH_I2C_Read... [10:23:10]Read from MH i2c: E2 0E 00 D3 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F2 [10:23:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:23:10]wFMCommunicate OK [10:23:10]SAM_PROTO_GetShiftState done [10:23:10]FM_GetShiftState done [10:23:10]opened in 1713054696 [10:23:10]opened+sec_in_day 1713141096 [10:23:10]quantity*price = 64300 [10:23:10]sum+1 = 64301 [10:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 91 14.04.2024 10:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112192 ФПД: 199723480972040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102311&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112192&fm=199723480972040&tin=02508201610067®Number=0000000000094237&sum=64300 [10:23:11]StoreToDocumentArchive [10:23:11]shift 357 fd 112192 [10:23:11]save to /storage/0357/doc_00112192 [10:23:11]save last doc name /storage/0357/doc_00112192 to /storage/kkm_last_doc_name [10:23:11]save OK [10:23:11]Clear old archive folders... [10:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:11]tlvbuf is 0177A060 [10:23:11]SAM_PROTO_ClearQueue [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 09 00 00 [10:23:11]Write to MH i2c: E2 08 00 E0 0A 80 09 00 00 00 00 00 00 5C [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 E0 0A 00 90 00 5E [10:23:11]RAPDU: 90 00 [10:23:11]wFMCommunicate OK [10:23:11]SAM_PROTO_ClearQueue done [10:23:11]KKMCreateOFDPacket [10:23:11]OFDProtocolAddRootSTLVToBuf [10:23:11]FM_MakeSignedData [10:23:11]FM_MakeSignedData [10:23:11]SAM_PROTO_SignData [10:23:11]wFMCommunicate request_size=4 [10:23:11]MH_SAM_APDU [10:23:11]CAPDU: 80 0D 01 02 [10:23:11]Write to MH i2c: E2 08 00 E1 0A 80 0D 01 02 00 00 00 00 64 [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:11]Read from MH i2c: E2 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 [10:23:11]MH_I2C_Read... [10:23:11]Read from MH i2c: E2 03 00 E1 0A 00 90 00 5F [10:23:11]RAPDU: 90 00 [10:23:11]wFMCommunicate OK [10:23:11]wFMCommunicate request_size=255 [10:23:11]MH_SAM_APDU [10:23:11]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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 8F AE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B6 01 00 35 04 06 00 B5 [10:23:11]Write to MH i2c: E2 02 01 E2 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 8F AE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B6 01 00 35 04 06 00 B5 00 00 7B [10:23:11]Write i2c OK [10:23:11]MH_I2C_Read... [10:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:11]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 E2 0A 00 90 00 60 [10:23:12]RAPDU: 90 00 [10:23:12]wFMCommunicate OK [10:23:12]wFMCommunicate request_size=10 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 0D 02 02 05 A5 BF 22 FB 08 [10:23:12]Write to MH i2c: E2 0D 00 E3 0A 80 0D 02 02 05 00 A5 BF 22 FB 08 00 00 FA [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 03 00 E3 0A 00 90 00 61 [10:23:12]RAPDU: 90 00 [10:23:12]wFMCommunicate OK [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 0D 03 02 [10:23:12]Write to MH i2c: E2 08 00 E4 0A 80 0D 03 02 00 00 00 00 69 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0B 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 0B 00 E4 0A 00 6D B3 48 A6 3E E5 9E 24 90 00 5D [10:23:12]RAPDU: 6D B3 48 A6 3E E5 9E 24 90 00 [10:23:12]wFMCommunicate OK [10:23:12]SAM_PROTO_SignData done [10:23:12]FM_MakeSignedData done [10:23:12]CreateOFDProtocolMessage [10:23:12]wFMCommunicate request_size=4 [10:23:12]MH_SAM_APDU [10:23:12]CAPDU: 80 11 00 00 [10:23:12]Write to MH i2c: E2 08 00 E5 0A 80 11 00 00 00 00 00 00 69 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:12]Read from MH i2c: E2 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: E2 17 00 E5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BA [10:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:23:12]wFMCommunicate OK [10:23:12]CreateOFDProtocolMessage done [10:23:12]OFDSenderStorePacket 112192 [10:23:12]StoreOFDPacket docnum=112192 [10:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B3 0F 07 01 E3 20 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 8F AE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B6 01 00 35 04 06 00 B5 A5 BF 22 FB 08 6D B3 48 A6 3E E5 9E 24 [10:23:12]CheckFolder [10:23:12]dirname=/storage/ofd_packets [10:23:12]CheckFolder done [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00112192 [10:23:12]NVStorageSaveData ofd_packets/00112192 [10:23:12]File name is /storage/ofd_packets/00112192 [10:23:12]Write 301 bytes [10:23:12]NVStorageSaveData done [10:23:12]OFDSenderStorePacket done [10:23:12]KKMCreateOFDPacket done [10:23:12]NVStorageSaveData kkm_last_timestamp [10:23:12]File name is /storage/kkm_last_timestamp [10:23:12]Write 4 bytes [10:23:12]NVStorageSaveData done [10:23:12]ExternCall_PrintAddStr [10:23:12]wPrintStart [10:23:12]Write to MH i2c: 01 00 00 E6 0A F0 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 E6 0A 00 00 00 00 00 FF 0F 05 [10:23:12]RasterBufferAndPrint [10:23:12]line Счет N : (1)48507 [10:23:12]line ИНН: 02508201610067 [10:23:12]line Контрольно-Кассовый Чек [10:23:12]line ПРОДАЖА [10:23:12]line ТРК (МРК, ГНК) : 42 [10:23:12]line Товар: 2710124130 [10:23:12]line Аи-92-К-5 [10:23:12]line 10.000 * 64.30 [10:23:12]line = 643.00 [10:23:12]line НДС 12% НСП 1% [10:23:12]line > о реализуемом товаре [10:23:12]line ИТОГО: 643.00 [10:23:12]line НСП 1% : 5.69 [10:23:12]line НДС 12% : 68.28 [10:23:12]line Наличными: 0.00 [10:23:12]line Безнал.: 643.00 [10:23:12]line Место: АЗС № 47 "Партнер Нефть" [10:23:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:23:12]line СНО: Общий режим [10:23:12]line Чек 91 14.04.2024 10:23 [10:23:12]line Смена: 357 ФФД: 1.0 [10:23:12]line ЗНМ: 0300000138 [10:23:12]line РНМ: 0000000000094237 [10:23:12]line Версия ККМ: 001 [10:23:12]line Платежная система: Бакай Банк [10:23:12]line ФМ: 0000000000875019 [10:23:12]line ФД: 112192 [10:23:12]line ФПД: 199723480972040 [10:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102311&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112192&fm=199723480972040&tin=02508201610067®Number=0000000000094237&sum=64300 [10:23:12]written 0, free lines is 4095 [10:23:12]OFD Sender: Processing packet 112192 [packets to send 71, broken 70] [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00112192 [10:23:12]OFD Sender: To server: pG, [10:23:12]CommunicateWithHost lk.salyk.kg:30040 [10:23:12]ConnectInit lk.salyk.kg [10:23:12]Connected sock=10 [10:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B3 0F 07 01 E3 20 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 8F AE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B6 01 00 35 04 06 00 B5 A5 BF 22 FB 08 6D B3 48 A6 3E E5 9E 24 [10:23:12]Write to MH i2c: 01 00 00 10 0B 1B [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FA 0C 28 [10:23:12]RasterBufferAndPrint [10:23:12]line [10:23:12]line [10:23:12]line [10:23:12]line [10:23:12]line [10:23:12]written 0, free lines is 3328 [10:23:12]MH_Cut [10:23:12]Write to MH i2c: D1 01 00 17 0B 01 F4 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: D1 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: D1 01 00 [10:23:12]MH_I2C_Read... [10:23:12]Read from MH i2c: D1 01 00 17 0B 00 F3 [10:23:12]Write to MH i2c: 01 00 00 18 0B 23 [10:23:12]Write i2c OK [10:23:12]MH_I2C_Read... [10:23:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E2 2C 47 00 79 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B6 01 00 F4 03 04 00 1B 56 1B 66 B6 04 01 00 00 79 88 3C 3F 3D D2 75 0B [10:23:12]CommunicateWithHost err = 0 [10:23:12]CheckOFDResponse [10:23:12]1017 (14) - 77093643461234 [10:23:12]1041 (16) - 0000000000875019 [10:23:12]1040 (4) - 112192 [10:23:12]1012 (4) - 14.04.2024 04:05 [10:23:12]1206 (1) - 0 [10:23:12]OFD Sender: Remove packet 112192 [10:23:12]ProducePacketName [10:23:12]name=ofd_packets/00112192 [10:23:12]NVStorageDeleteData [10:23:13]OFD Sender: No OFD packet to send [10:23:13]*** Cut start [10:23:13]*** Partial cut [10:23:13]*** CUTSNS_PIN = 1 [10:23:13]*** CUTSNS_PIN = 0 [10:23:13]*** Brake cut motor [10:23:13]Read from MH i2c: 01 [10:23:13]MH_I2C_Read... [10:23:13]*** Stop cut motor [10:23:13]*** Cut end [10:23:13]Read from MH i2c: 01 07 00 [10:23:13]MH_I2C_Read... [10:23:13]Read from MH i2c: 01 07 00 18 0B 00 00 00 00 00 FF 0F 38 [10:23:13]process_action close_receipt done [10:23:13]requested_data is exist [10:23:13]produce_requested_data [10:23:13]requested_item fm.sn is exist - process it [10:23:13]wFMCommunicate request_size=4 [10:23:13]MH_SAM_APDU [10:23:13]CAPDU: 80 11 00 00 [10:23:13]Write to MH i2c: E2 08 00 19 0B 80 11 00 00 00 00 00 00 9E [10:23:13]Write i2c OK [10:23:13]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 17 00 19 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EF [10:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:23:14]wFMCommunicate OK [10:23:14]requested_item fd.num is exist - process it [10:23:14]SAM_PROTO_GetFieldsCounters [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 13 00 00 [10:23:14]Write to MH i2c: E2 08 00 1A 0B 80 13 00 00 00 00 00 00 A1 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 62 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 62 00 1A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 40 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 40 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_GetFieldsCounters done [10:23:14]requested_item shift.num is exist - process it [10:23:14]requested_item shift.opened is exist - process it [10:23:14]req_shift_opened [10:23:14]FM_GetShiftState [10:23:14]SAM_PROTO_GetShiftState [10:23:14]wFMCommunicate request_size=4 [10:23:14]MH_SAM_APDU [10:23:14]CAPDU: 80 13 01 00 [10:23:14]Write to MH i2c: E2 08 00 1B 0B 80 13 01 00 00 00 00 00 A3 [10:23:14]Write i2c OK [10:23:14]MH_I2C_Read... [10:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:14]Read from MH i2c: E2 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0E 00 [10:23:14]MH_I2C_Read... [10:23:14]Read from MH i2c: E2 0E 00 1B 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3B [10:23:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:23:14]wFMCommunicate OK [10:23:14]SAM_PROTO_GetShiftState done [10:23:14]FM_GetShiftState done [10:23:14]req_shift_opened done [10:23:14]requested_item shift.open_date is exist - process it [10:23:14]req_shift_open_date [10:23:14]req_shift_open_date done [10:23:14]produce_requested_data done [10:23:14]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112192,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:23:14]process_action_free close_receipt [10:23:14]json_value_free [10:23:14]json_value_free done [10:23:14]process_json_proto returns [10:23:14]Send response to host [10:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112192,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:23:14]free response buf [10:23:14]execute_script done [10:23:14]execute_script returns [10:23:14]free content buf [10:23:14]Sock 8.Close socket [10:23:14]Sock 8.Thread stoped [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:23]OFD Sender: No OFD packet to send [10:26:24]accept exits with 9 [10:26:24]New connection [10:26:24]New thread 3067243876 created [10:26:24]Thread 3067100516 joined [10:26:24]Waiting for new connection... [10:26:24] Sock 9.Parse request [10:26:24]Sock 9.Check first char [10:26:24]Sock 9.First char is OK [10:26:24]request: POST /json_proto HTTP/1.0 [10:26:24]Method: POST [10:26:24]URL: /json_proto [10:26:24]Method is POST - this is cgi request [10:26:24]url: /json_proto [10:26:24]query_string will be loaded in cgi processing [10:26:24]execute_cgi json_proto POST (null) [10:26:24]execute_cgi path=json_proto method=POST [10:26:24]POST find Content-Length [10:26:24]Host: 172.17.96.197:8080 [10:26:24]Content-Length: 684 [10:26:24]Content-Type: application/json [10:26:24] [10:26:24]POST finish read [10:26:24]Found Content-Length = 684 [10:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:26:24]execute_script... [10:26: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)48508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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:26:24]POST & json_proto [10:26:24]process_json_proto [10:26:24]json parsed OK: [10:26:24]protocol is kg_v1.0 [10:26:24]action value=close_receipt [10:26:24]process_action close_receipt [10:26:24]cmd_close_receipt [10:26:24]MH_GetDate [10:26:24]Write to MH i2c: F0 00 00 1C 0B 16 [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 09 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: F0 09 00 1C 0B 00 51 AF 1B 66 E0 85 7F 64 E8 [10:26:24]GetLastDocTimeStamp 1713090191 [10:26:24]current date 1713090385 [10:26:24]FM_GetShiftState [10:26:24]SAM_PROTO_GetShiftState [10:26:24]wFMCommunicate request_size=4 [10:26:24]MH_SAM_APDU [10:26:24]CAPDU: 80 13 01 00 [10:26:24]Write to MH i2c: E2 08 00 1D 0B 80 13 01 00 00 00 00 00 A5 [10:26:24]Write i2c OK [10:26:24]MH_I2C_Read... [10:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:24]Read from MH i2c: E2 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 [10:26:24]MH_I2C_Read... [10:26:24]Read from MH i2c: E2 0E 00 1D 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3D [10:26:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:26:24]wFMCommunicate OK [10:26:24]SAM_PROTO_GetShiftState done [10:26:24]FM_GetShiftState done [10:26:24]opened in 1713054696 [10:26:24]opened+sec_in_day 1713141096 [10:26:24]quantity*price = 100029 [10:26:24]sum+1 = 100030 [10:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 92 14.04.2024 10:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112193 ФПД: 38394561365663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102625&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112193&fm=38394561365663&tin=02508201610067®Number=0000000000094237&sum=100000 [10:26:25]StoreToDocumentArchive [10:26:25]shift 357 fd 112193 [10:26:25]save to /storage/0357/doc_00112193 [10:26:25]save last doc name /storage/0357/doc_00112193 to /storage/kkm_last_doc_name [10:26:25]save OK [10:26:25]Clear old archive folders... [10:26:25]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:26:25]tlvbuf is 0177B290 [10:26:25]SAM_PROTO_ClearQueue [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 09 00 00 [10:26:25]Write to MH i2c: E2 08 00 2A 0B 80 09 00 00 00 00 00 00 A7 [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]SAM_PROTO_ClearQueue done [10:26:25]KKMCreateOFDPacket [10:26:25]OFDProtocolAddRootSTLVToBuf [10:26:25]FM_MakeSignedData [10:26:25]FM_MakeSignedData [10:26:25]SAM_PROTO_SignData [10:26:25]wFMCommunicate request_size=4 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 01 02 [10:26:25]Write to MH i2c: E2 08 00 2B 0B 80 0D 01 02 00 00 00 00 AF [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:25]Read from MH i2c: E2 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 [10:26:25]MH_I2C_Read... [10:26:25]Read from MH i2c: E2 03 00 2B 0B 00 90 00 AA [10:26:25]RAPDU: 90 00 [10:26:25]wFMCommunicate OK [10:26:25]wFMCommunicate request_size=255 [10:26:25]MH_SAM_APDU [10:26:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 51 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B6 01 00 35 04 06 00 22 EB [10:26:25]Write to MH i2c: E2 02 01 2C 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 51 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B6 01 00 35 04 06 00 22 EB 00 00 1E [10:26:25]Write i2c OK [10:26:25]MH_I2C_Read... [10:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:26]Read from MH i2c: E2 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 03 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 03 00 2C 0B 00 90 00 AB [10:26:26]RAPDU: 90 00 [10:26:26]wFMCommunicate OK [10:26:26]wFMCommunicate request_size=9 [10:26:26]MH_SAM_APDU [10:26:26]CAPDU: 80 0D 02 02 04 6E 31 06 9F [10:26:26]Write to MH i2c: E2 0C 00 2D 0B 80 0D 02 02 04 00 6E 31 06 9F 00 00 FE [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:26]Read from MH i2c: E2 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 03 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 03 00 2D 0B 00 90 00 AC [10:26:26]RAPDU: 90 00 [10:26:26]wFMCommunicate OK [10:26:26]wFMCommunicate request_size=4 [10:26:26]MH_SAM_APDU [10:26:26]CAPDU: 80 0D 03 02 [10:26:26]Write to MH i2c: E2 08 00 2E 0B 80 0D 03 02 00 00 00 00 B4 [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:26]Read from MH i2c: E2 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 0B 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 0B 00 2E 0B 00 F3 4A 5B FA 46 5F 5F F7 90 00 42 [10:26:26]RAPDU: F3 4A 5B FA 46 5F 5F F7 90 00 [10:26:26]wFMCommunicate OK [10:26:26]SAM_PROTO_SignData done [10:26:26]FM_MakeSignedData done [10:26:26]CreateOFDProtocolMessage [10:26:26]wFMCommunicate request_size=4 [10:26:26]MH_SAM_APDU [10:26:26]CAPDU: 80 11 00 00 [10:26:26]Write to MH i2c: E2 08 00 2F 0B 80 11 00 00 00 00 00 00 B4 [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:26]Read from MH i2c: E2 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 17 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: E2 17 00 2F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 05 [10:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:26:26]wFMCommunicate OK [10:26:26]CreateOFDProtocolMessage done [10:26:26]OFDSenderStorePacket 112193 [10:26:26]StoreOFDPacket docnum=112193 [10:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 81 96 06 01 EB 1C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 51 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B6 01 00 35 04 06 00 22 EB 6E 31 06 9F F3 4A 5B FA 46 5F 5F F7 [10:26:26]CheckFolder [10:26:26]dirname=/storage/ofd_packets [10:26:26]CheckFolder done [10:26:26]ProducePacketName [10:26:26]name=ofd_packets/00112193 [10:26:26]NVStorageSaveData ofd_packets/00112193 [10:26:26]File name is /storage/ofd_packets/00112193 [10:26:26]Write 300 bytes [10:26:26]NVStorageSaveData done [10:26:26]OFDSenderStorePacket done [10:26:26]KKMCreateOFDPacket done [10:26:26]NVStorageSaveData kkm_last_timestamp [10:26:26]File name is /storage/kkm_last_timestamp [10:26:26]Write 4 bytes [10:26:26]NVStorageSaveData done [10:26:26]ExternCall_PrintAddStr [10:26:26]wPrintStart [10:26:26]Write to MH i2c: 01 00 00 30 0B 3B [10:26:26]Write i2c OK [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 07 00 [10:26:26]MH_I2C_Read... [10:26:26]Read from MH i2c: 01 07 00 30 0B 00 00 00 00 00 FF 0F 50 [10:26:26]RasterBufferAndPrint [10:26:26]line Счет N : (1)48508 [10:26:26]line ИНН: 02508201610067 [10:26:26]line Контрольно-Кассовый Чек [10:26:26]line ПРОДАЖА [10:26:26]line ТРК (МРК, ГНК) : 72 [10:26:26]line Товар: 2711190000 [10:26:26]line ГАЗ-К-5 [10:26:26]line 30.590 * 32.70 [10:26:26]line = 1000.29 [10:26:26]line НДС 12% НСП 1% [10:26:26]line > о реализуемом товаре [10:26:26]line ОКРУГЛЕНИЕ: -0.29 [10:26:26]line ИТОГО: 1000.00 [10:26:26]line Внесено: 1000.00 [10:26:26]line СДАЧА: 0.00 [10:26:26]line НСП 1% : 8.85 [10:26:26]line НДС 12% : 106.22 [10:26:26]line Наличными: 1000.00 [10:26:26]line Безнал.: 0.00 [10:26:26]line Место: АЗС № 47 "Партнер Нефть" [10:26:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:26:26]line СНО: Общий режим [10:26:26]line Чек 92 14.04.2024 10:26 [10:26:26]line Смена: 357 ФФД: 1.0 [10:26:26]line ЗНМ: 0300000138 [10:26:26]line РНМ: 0000000000094237 [10:26:26]line Версия ККМ: 001 [10:26:26]line ФМ: 0000000000875019 [10:26:26]line ФД: 112193 [10:26:26]line ФПД: 38394561365663 [10:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102625&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112193&fm=38394561365663&tin=02508201610067®Number=0000000000094237&sum=100000 [10:26:26]written 0, free lines is 4095 [10:26:26]OFD Sender: Processing packet 112193 [packets to send 71, broken 70] [10:26:26]ProducePacketName [10:26:26]name=ofd_packets/00112193 [10:26:26]OFD Sender: To server: pG, [10:26:26]CommunicateWithHost lk.salyk.kg:30040 [10:26:26]ConnectInit lk.salyk.kg [10:26:26]Connected sock=10 [10:26:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 81 96 06 01 EB 1C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 51 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B6 01 00 35 04 06 00 22 EB 6E 31 06 9F F3 4A 5B FA 46 5F 5F F7 [10:26:27]Write to MH i2c: 01 00 00 5B 0B 66 [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: 01 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: 01 07 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 E4 0C 5D [10:26:27]RasterBufferAndPrint [10:26:27]line [10:26:27]line [10:26:27]line [10:26:27]line [10:26:27]line [10:26:27]written 0, free lines is 3306 [10:26:27]MH_Cut [10:26:27]Write to MH i2c: D1 01 00 62 0B 01 3F [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: D1 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: D1 01 00 [10:26:27]MH_I2C_Read... [10:26:27]Read from MH i2c: D1 01 00 62 0B 00 3E [10:26:27]Write to MH i2c: 01 00 00 63 0B 6E [10:26:27]Write i2c OK [10:26:27]MH_I2C_Read... [10:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 78 20 47 00 46 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B6 01 00 F4 03 04 00 DD 56 1B 66 B6 04 01 00 00 B2 AF 3D 0D BD E8 EA A2 [10:26:27]CommunicateWithHost err = 0 [10:26:27]CheckOFDResponse [10:26:27]1017 (14) - 77093643461234 [10:26:27]1041 (16) - 0000000000875019 [10:26:27]1040 (4) - 112193 [10:26:27]1012 (4) - 14.04.2024 04:09 [10:26:27]1206 (1) - 0 [10:26:27]OFD Sender: Remove packet 112193 [10:26:27]ProducePacketName [10:26:27]name=ofd_packets/00112193 [10:26:27]NVStorageDeleteData [10:26:27]OFD Sender: No OFD packet to send [10:26:27]*** Cut start [10:26:27]*** Partial cut [10:26:27]*** CUTSNS_PIN = 1 [10:26:27]*** CUTSNS_PIN = 0 [10:26:28]*** Brake cut motor [10:26:28]Read from MH i2c: 01 [10:26:28]MH_I2C_Read... [10:26:28]*** Stop cut motor [10:26:28]*** Cut end [10:26:28]Read from MH i2c: 01 07 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: 01 07 00 63 0B 00 00 00 00 00 FF 0F 83 [10:26:28]process_action close_receipt done [10:26:28]requested_data is exist [10:26:28]produce_requested_data [10:26:28]requested_item fm.sn is exist - process it [10:26:28]wFMCommunicate request_size=4 [10:26:28]MH_SAM_APDU [10:26:28]CAPDU: 80 11 00 00 [10:26:28]Write to MH i2c: E2 08 00 64 0B 80 11 00 00 00 00 00 00 E9 [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:28]Read from MH i2c: E2 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 17 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 17 00 64 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3A [10:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:26:28]wFMCommunicate OK [10:26:28]requested_item fd.num is exist - process it [10:26:28]SAM_PROTO_GetFieldsCounters [10:26:28]wFMCommunicate request_size=4 [10:26:28]MH_SAM_APDU [10:26:28]CAPDU: 80 13 00 00 [10:26:28]Write to MH i2c: E2 08 00 65 0B 80 13 00 00 00 00 00 00 EC [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:28]Read from MH i2c: E2 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 62 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 62 00 65 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 41 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [10:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 41 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:28]wFMCommunicate OK [10:26:28]SAM_PROTO_GetFieldsCounters done [10:26:28]requested_item shift.num is exist - process it [10:26:28]requested_item shift.opened is exist - process it [10:26:28]req_shift_opened [10:26:28]FM_GetShiftState [10:26:28]SAM_PROTO_GetShiftState [10:26:28]wFMCommunicate request_size=4 [10:26:28]MH_SAM_APDU [10:26:28]CAPDU: 80 13 01 00 [10:26:28]Write to MH i2c: E2 08 00 66 0B 80 13 01 00 00 00 00 00 EE [10:26:28]Write i2c OK [10:26:28]MH_I2C_Read... [10:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:28]Read from MH i2c: E2 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 0E 00 [10:26:28]MH_I2C_Read... [10:26:28]Read from MH i2c: E2 0E 00 66 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 86 [10:26:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:26:28]wFMCommunicate OK [10:26:28]SAM_PROTO_GetShiftState done [10:26:28]FM_GetShiftState done [10:26:28]req_shift_opened done [10:26:28]requested_item shift.open_date is exist - process it [10:26:28]req_shift_open_date [10:26:28]req_shift_open_date done [10:26:28]produce_requested_data done [10:26:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112193,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:26:28]process_action_free close_receipt [10:26:28]json_value_free [10:26:28]json_value_free done [10:26:28]process_json_proto returns [10:26:28]Send response to host [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]/dev/ttyS4 opened [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]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 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [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 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 54000000005725C5 (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: 27011591+1686078944=1713090535 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [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 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 6B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 E8 AF 1B 66 E0 85 7F 64 5F [10:28:56]Current date/time: 14.04.2024 10:28 [10:28:56]FM_Init [10:28:56]wFMConnect [10:28:56]MH_SAM_On [10:28:56]Write to MH i2c: E0 00 00 08 00 E7 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_init finished! [10:28:56]*** atr: [10:28:56]*** 0F 3B D5 18 FF 81 91 FE [10:28:56]*** 1F C3 80 73 C8 21 10 0A [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]*** 00 00 00 00 00 00 00 00 [10:28:56]Read from MH i2c: E0 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E0 10 00 [10:28:56]MH_I2C_Read... [10:28:56]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 [10:28:56]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [10:28:56]wFMCommunicate request_size=10 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [10:28:56]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [10:28:56]RAPDU: 90 00 [10:28:56]wFMCommunicate OK [10:28:56]wFMCommunicate request_size=4 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 11 00 00 [10:28:56]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 17 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [10:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:28:56]wFMCommunicate OK [10:28:56]Detected FM SN is 0000000000875019 [10:28:56]Stored FM SN is 0000000000875019 [10:28:56]wFMCommunicate request_size=9 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 16 00 00 04 70 BB 00 00 [10:28:56]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 70 BB 00 00 00 00 BD [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [10:28:56]RAPDU: 90 00 [10:28:56]wFMCommunicate OK [10:28:56]FM PIN OK [10:28:56]wFMCommunicate request_size=8 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 14 04 00 03 02 00 01 [10:28:56]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [10:28:56]RAPDU: 90 00 [10:28:56]wFMCommunicate OK [10:28:56]wFMCommunicate request_size=13 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [10:28:56]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 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [10:28:56]RAPDU: 90 00 [10:28:56]wFMCommunicate OK [10:28:56]wFMCommunicate request_size=4 [10:28:56]MH_SAM_APDU [10:28:56]CAPDU: 80 11 00 00 [10:28:56]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:56]Read from MH i2c: E2 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 17 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [10:28:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:28:56]wFMCommunicate OK [10:28:56]DocumentArchiveInit [10:28:56]Start Httpd... [10:28:56]Httpd thread 3067628900 created [10:28:56]Write to MH i2c: 01 00 00 0F 00 0F [10:28:56]Write i2c OK [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: 01 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: 01 07 00 [10:28:56]MH_I2C_Read... [10:28:56]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [10:28:56]MH Int Process started [10:28:56]Allocated Socket 8 [10:28:56]Bind OK [10:28:56]Listen OK [10:28:56]httpd running on port 8080 [10:28:56]Waiting for new connection... [10:28:56]OFD Sender: Processing packet 112194 [packets to send 71, broken 70] [10:28:56]ProducePacketName [10:28:56]name=ofd_packets/00112194 [10:28:56]OFD Sender: To server: pG, [10:28:56]CommunicateWithHost lk.salyk.kg:30040 [10:28:56]ConnectInit lk.salyk.kg [10:28:56]Connected sock=6 [10:28:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C9 B8 06 01 90 6D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 96 5F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 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 5D 00 00 00 F4 03 04 00 5E AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B6 01 00 35 04 06 00 B9 4F 3C 34 D9 2E F4 B9 70 A4 2A 13 0D 63 [10:28:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BE 98 47 00 4E 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 38 37 35 30 31 39 10 04 04 00 42 B6 01 00 F4 03 04 00 72 57 1B 66 B6 04 01 00 00 DF 0E 94 2E A4 81 FD B7 [10:28:57]CommunicateWithHost err = 0 [10:28:57]CheckOFDResponse [10:28:57]1017 (14) - 77093643461234 [10:28:57]1041 (16) - 0000000000875019 [10:28:57]1040 (4) - 112194 [10:28:57]1012 (4) - 14.04.2024 04:11 [10:28:57]1206 (1) - 0 [10:28:57]OFD Sender: Remove packet 112194 [10:28:57]ProducePacketName [10:28:57]name=ofd_packets/00112194 [10:28:57]NVStorageDeleteData [10:28:57]OFD Sender: No OFD packet to send [10:28:57]accept exits with 9 [10:28:57]New connection [10:28:57]New thread 3067342180 created [10:28:57]Waiting for new connection... [10:28:57] Sock 9.Parse request [10:28:57]Sock 9.Check first char [10:28:57]Sock 9.First char is OK [10:28:57]request: POST /json_proto HTTP/1.0 [10:28:57]Method: POST [10:28:57]URL: /json_proto [10:28:57]Method is POST - this is cgi request [10:28:57]url: /json_proto [10:28:57]query_string will be loaded in cgi processing [10:28:57]execute_cgi json_proto POST (null) [10:28:57]execute_cgi path=json_proto method=POST [10:28:57]POST find Content-Length [10:28:57]Host: 172.17.96.197:8080 [10:28:57]Content-Length: 215 [10:28:57]Content-Type: application/json [10:28:57] [10:28:57]POST finish read [10:28:57]Found Content-Length = 215 [10:28:57]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" ] } } [10:28:57]execute_script... [10:28:57]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" ] } } [10:28:57]POST & json_proto [10:28:57]process_json_proto [10:28:57]json parsed OK: [10:28:57]protocol is kg_v1.0 [10:28:57]action value=get_value [10:28:57]process_action get_value [10:28:57]cmd_get_value [10:28:57]process_action get_value done [10:28:57]requested_data is exist [10:28:57]produce_requested_data [10:28:57]requested_item kkm.sn is exist - process it [10:28:57]requested_item kkm.ver is exist - process it [10:28:57]requested_item fm.sn is exist - process it [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 11 00 00 [10:28:57]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DB [10:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:28:57]wFMCommunicate OK [10:28:57]requested_item fd.num is exist - process it [10:28:57]SAM_PROTO_GetFieldsCounters [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 13 00 00 [10:28:57]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 62 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 42 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [10:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 42 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_GetFieldsCounters done [10:28:57]requested_item shift.num is exist - process it [10:28:57]requested_item shift.opened is exist - process it [10:28:57]req_shift_opened [10:28:57]FM_GetShiftState [10:28:57]SAM_PROTO_GetShiftState [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 13 01 00 [10:28:57]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [10:28:57]Write i2c OK [10:28:57]MH_I2C_Read... [10:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:28:57]Read from MH i2c: E2 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0E 00 [10:28:57]MH_I2C_Read... [10:28:57]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 27 [10:28:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:28:57]wFMCommunicate OK [10:28:57]SAM_PROTO_GetShiftState done [10:28:57]FM_GetShiftState done [10:28:57]req_shift_opened done [10:28:57]requested_item shift.open_date is exist - process it [10:28:57]req_shift_open_date [10:28:57]req_shift_open_date done [10:28:57]produce_requested_data done [10:28:57]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112194,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:28:57]process_action_free get_value [10:28:57]json_value_free [10:28:57]json_value_free done [10:28:57]process_json_proto returns [10:28:57]Send response to host [10:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112194,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:28:57]free response buf [10:28:57]execute_script done [10:28:57]execute_script returns [10:28:57]free content buf [10:28:57]Sock 9.Close socket [10:28:57]Sock 9.Thread stoped [10:28:57]accept exits with 6 [10:28:57]New connection [10:28:57]New thread 3067198820 created [10:28:57]Thread 3067342180 joined [10:28:57]Waiting for new connection... [10:28:57] Sock 6.Parse request [10:28:57]Sock 6.Check first char [10:28:57]Sock 6.First char is OK [10:28:57]request: POST /json_proto HTTP/1.0 [10:28:57]Method: POST [10:28:57]URL: /json_proto [10:28:57]Method is POST - this is cgi request [10:28:57]url: /json_proto [10:28:57]query_string will be loaded in cgi processing [10:28:57]execute_cgi json_proto POST (null) [10:28:57]execute_cgi path=json_proto method=POST [10:28:57]POST find Content-Length [10:28:57]Host: 172.17.96.197:8080 [10:28:57]Content-Length: 331 [10:28:57]Content-Type: application/json [10:28:57] [10:28:57]POST finish read [10:28:57]Found Content-Length = 331 [10:28:57]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" ] } } [10:28:57]execute_script... [10:28:57]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" ] } } [10:28:57]POST & json_proto [10:28:57]process_json_proto [10:28:57]json parsed OK: [10:28:57]protocol is kg_v1.0 [10:28:57]action value=get_value [10:28:57]process_action get_value [10:28:57]cmd_get_value [10:28:57]process_action get_value done [10:28:57]requested_data is exist [10:28:57]produce_requested_data [10:28:57]requested_item fm.sale.total is exist - process it [10:28:57]SAM_PROTO_GetFMData [10:28:57]wFMCommunicate request_size=4 [10:28:57]MH_SAM_APDU [10:28:57]CAPDU: 80 13 03 00 [10:28:57]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 FD 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 78 B3 01 00 69 04 A3 00 6F 04 04 00 00 AE 01 00 B1 04 05 00 AE 4A F9 C7 01 70 04 05 00 EE 06 2F 87 01 72 04 04 00 C0 43 CA 40 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 A5 8C 6F 30 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 B9 28 09 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 0C [10:28:58]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 78 B3 01 00 69 04 A3 00 6F 04 04 00 00 AE 01 00 B1 04 05 00 AE 4A F9 C7 01 70 04 05 00 EE 06 2F 87 01 72 04 04 00 C0 43 CA 40 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 A5 8C 6F 30 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 B9 28 09 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [10:28:58]wFMCommunicate OK [10:28:58]wFMCommunicate request_size=4 [10:28:58]MH_SAM_APDU [10:28:58]CAPDU: 80 17 00 00 [10:28:58]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:28:58]Read from MH i2c: E2 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 FD 00 [10:28:58]MH_I2C_Read... [10:28:58]Read from MH i2c: E2 FD 00 14 00 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [10:28:58]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:28:58]wFMCommunicate OK [10:28:58]wFMCommunicate request_size=4 [10:28:58]MH_SAM_APDU [10:28:58]CAPDU: 80 17 00 00 [10:28:58]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [10:28:58]Write i2c OK [10:28:58]MH_I2C_Read... [10:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:28:59]Read from MH i2c: E2 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 FD 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [10:28:59]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:28:59]wFMCommunicate OK [10:28:59]wFMCommunicate request_size=4 [10:28:59]MH_SAM_APDU [10:28:59]CAPDU: 80 17 00 00 [10:28:59]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:28:59]Read from MH i2c: E2 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 FD 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [10:28:59]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:28:59]wFMCommunicate OK [10:28:59]wFMCommunicate request_size=4 [10:28:59]MH_SAM_APDU [10:28:59]CAPDU: 80 17 00 00 [10:28:59]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:28:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [10:28:59]Read from MH i2c: E2 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 E5 00 [10:28:59]MH_I2C_Read... [10:28:59]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:28:59]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:28:59]wFMCommunicate OK [10:28:59]SAM_PROTO_GetFMData done [10:28:59]requested_item fm.sale_refund.total is exist - process it [10:28:59]requested_item fm.buy.total is exist - process it [10:28:59]requested_item shift.sale.total is exist - process it [10:28:59]SAM_PROTO_GetShiftData [10:28:59]wFMCommunicate request_size=4 [10:28:59]MH_SAM_APDU [10:28:59]CAPDU: 80 13 02 00 [10:28:59]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [10:28:59]Write i2c OK [10:28:59]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 18 00 00 B8 04 AA 04 B4 04 6E 04 04 00 5D 00 00 00 69 04 9B 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 FA 70 59 70 04 03 00 84 EB 4E 72 04 03 00 76 85 0A 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 66 80 09 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 AC CA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 83 [10:29:00]RAPDU: B8 04 AA 04 B4 04 6E 04 04 00 5D 00 00 00 69 04 9B 00 6F 04 04 00 5B 00 00 00 B1 04 03 00 FA 70 59 70 04 03 00 84 EB 4E 72 04 03 00 76 85 0A 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 66 80 09 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 AC CA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 17 00 00 [10:29:00]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 19 00 00 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B5 [10:29:00]RAPDU: 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 17 00 00 [10:29:00]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:29:00]Read from MH i2c: E2 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 [10:29:00]MH_I2C_Read... [10:29:00]Read from MH i2c: E2 FD 00 1A 00 00 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3C [10:29:00]RAPDU: 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [10:29:00]wFMCommunicate OK [10:29:00]wFMCommunicate request_size=4 [10:29:00]MH_SAM_APDU [10:29:00]CAPDU: 80 17 00 00 [10:29:00]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [10:29:00]Write i2c OK [10:29:00]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 FD 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 FD 00 1B 00 00 03 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 90 00 24 [10:29:01]RAPDU: 03 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 90 00 [10:29:01]wFMCommunicate OK [10:29:01]wFMCommunicate request_size=4 [10:29:01]MH_SAM_APDU [10:29:01]CAPDU: 80 17 00 00 [10:29:01]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 210! [10:29:01]Read from MH i2c: E2 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 D5 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: E2 D5 00 1C 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:29:01]RAPDU: EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [10:29:01]wFMCommunicate OK [10:29:01]SAM_PROTO_GetShiftData done [10:29:01]requested_item shift.sale.total_cash is exist - process it [10:29:01]requested_item shift.sale_refund.total is exist - process it [10:29:01]requested_item shift.sale_refund.total_cash is exist - process it [10:29:01]requested_item shift.buy.total is exist - process it [10:29:01]requested_item shift.buy.total_cash is exist - process it [10:29:01]produce_requested_data done [10:29:01]produce_requested_data return {"fm.sale.total":76499708.62,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":58616.26,"shift.sale.total_cash":51721.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [10:29:01]process_action_free get_value [10:29:01]json_value_free [10:29:01]json_value_free done [10:29:01]process_json_proto returns [10:29:01]Send response to host [10:29:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76499708.62,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":58616.26,"shift.sale.total_cash":51721.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [10:29:01]free response buf [10:29:01]execute_script done [10:29:01]execute_script returns [10:29:01]free content buf [10:29:01]Sock 6.Close socket [10:29:01]Sock 6.Thread stoped [10:29:01]accept exits with 9 [10:29:01]New connection [10:29:01]New thread 3067342180 created [10:29:01]Thread 3067198820 joined [10:29:01]Waiting for new connection... [10:29:01] Sock 9.Parse request [10:29:01]Sock 9.Check first char [10:29:01]Sock 9.First char is OK [10:29:01]request: POST /json_proto HTTP/1.0 [10:29:01]Method: POST [10:29:01]URL: /json_proto [10:29:01]Method is POST - this is cgi request [10:29:01]url: /json_proto [10:29:01]query_string will be loaded in cgi processing [10:29:01]execute_cgi json_proto POST (null) [10:29:01]execute_cgi path=json_proto method=POST [10:29:01]POST find Content-Length [10:29:01]Host: 172.17.96.197:8080 [10:29:01]Content-Length: 144 [10:29:01]Content-Type: application/json [10:29:01] [10:29:01]POST finish read [10:29:01]Found Content-Length = 144 [10:29:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:29:01]execute_script... [10:29:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [10:29:01]POST & json_proto [10:29:01]process_json_proto [10:29:01]json parsed OK: [10:29:01]protocol is kg_v1.0 [10:29:01]action value=print_doc [10:29:01]process_action print_doc [10:29:01]ExternCall_PrintAddStr [10:29:01]wPrintStart [10:29:01]Write to MH i2c: 01 00 00 1D 00 1D [10:29:01]Write i2c OK [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 [10:29:01]MH_I2C_Read... [10:29:01]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [10:29:01]RasterBufferAndPrint [10:29:01]line Счет N : (1)48509 [10:29:01]line ИНН: 02508201610067 [10:29:01]line Контрольно-Кассовый Чек [10:29:01]line ПРОДАЖА [10:29:01]line ТРК (МРК, ГНК) : 71 [10:29:01]line Товар: 2711190000 [10:29:01]line ГАЗ-К-5 [10:29:01]line 24.470 * 32.70 [10:29:01]line = 800.17 [10:29:01]line НДС 12% НСП 1% [10:29:01]line > о реализуемом товаре [10:29:01]line ОКРУГЛЕНИЕ: -0.17 [10:29:01]line ИТОГО: 800.00 [10:29:01]line Внесено: 800.00 [10:29:01]line СДАЧА: 0.00 [10:29:01]line НСП 1% : 7.08 [10:29:01]line НДС 12% : 84.97 [10:29:01]line Наличными: 800.00 [10:29:01]line Безнал.: 0.00 [10:29:01]line Место: АЗС № 47 "Партнер Нефть" [10:29:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:29:01]line СНО: Общий режим [10:29:01]line Чек 93 14.04.2024 10:26 [10:29:01]line Смена: 357 ФФД: 1.0 [10:29:01]line ЗНМ: 0300000138 [10:29:01]line РНМ: 0000000000094237 [10:29:01]line Версия ККМ: 001 [10:29:01]line ФМ: 0000000000875019 [10:29:01]line ФД: 112194 [10:29:01]line ФПД: 203749963651374 [10:29:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102638&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112194&fm=203749963651374&tin=02508201610067®Number=0000000000094237&sum=80000 [10:29:01]written 0, free lines is 4095 [10:29:02]Write to MH i2c: 01 00 00 48 00 48 [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 07 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 E9 0C 44 [10:29:02]RasterBufferAndPrint [10:29:02]line [10:29:02]line [10:29:02]line [10:29:02]line [10:29:02]line [10:29:02]written 0, free lines is 3320 [10:29:02]MH_Cut [10:29:02]Write to MH i2c: D1 01 00 4F 00 01 21 [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: D1 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: D1 01 00 [10:29:02]MH_I2C_Read... [10:29:02]Read from MH i2c: D1 01 00 4F 00 00 20 [10:29:02]Write to MH i2c: 01 00 00 50 00 50 [10:29:02]Write i2c OK [10:29:02]MH_I2C_Read... [10:29:02]OFD Sender: No OFD packet to send [10:29:03]*** Cut start [10:29:03]*** Partial cut [10:29:03]*** CUTSNS_PIN = 1 [10:29:03]*** CUTSNS_PIN = 0 [10:29:03]*** Brake cut motor [10:29:03]Read from MH i2c: 01 [10:29:03]MH_I2C_Read... [10:29:03]*** Stop cut motor [10:29:03]*** Cut end [10:29:03]Read from MH i2c: 01 07 00 [10:29:03]MH_I2C_Read... [10:29:03]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [10:29:03]process_action print_doc done [10:29:03]requested_data is exist [10:29:03]produce_requested_data [10:29:03]produce_requested_data return (null) [10:29:03]process_action_free print_doc [10:29:03]json_value_free [10:29:03]json_value_free done [10:29:03]process_json_proto returns [10:29:03]Send response to host [10:29:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [10:29:03]free response buf [10:29:03]execute_script done [10:29:03]execute_script returns [10:29:03]free content buf [10:29:03]Sock 9.Close socket [10:29:03]Sock 9.Thread stoped [10:29:04]accept exits with 6 [10:29:04]New connection [10:29:04]New thread 3067198820 created [10:29:04]Thread 3067342180 joined [10:29:04]Waiting for new connection... [10:29:04] Sock 6.Parse request [10:29:04]Sock 6.Check first char [10:29:04]Sock 6.First char is OK [10:29:04]request: POST /json_proto HTTP/1.0 [10:29:04]Method: POST [10:29:04]URL: /json_proto [10:29:04]Method is POST - this is cgi request [10:29:04]url: /json_proto [10:29:04]query_string will be loaded in cgi processing [10:29:04]execute_cgi json_proto POST (null) [10:29:04]execute_cgi path=json_proto method=POST [10:29:04]POST find Content-Length [10:29:04]Host: 172.17.96.197:8080 [10:29:04]Content-Length: 677 [10:29:04]Content-Type: application/json [10:29:04] [10:29:04]POST finish read [10:29:04]Found Content-Length = 677 [10:29:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10413", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:04]execute_script... [10:29:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10413", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:04]POST & json_proto [10:29:04]process_json_proto [10:29:04]json parsed OK: [10:29:04]protocol is kg_v1.0 [10:29:04]action value=close_receipt [10:29:04]process_action close_receipt [10:29:04]cmd_close_receipt [10:29:04]MH_GetDate [10:29:04]Write to MH i2c: F0 00 00 51 00 40 [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: F0 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: F0 09 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: F0 09 00 51 00 00 F0 AF 1B 66 E0 85 7F 64 B1 [10:29:04]GetLastDocTimeStamp 1713090398 [10:29:04]current date 1713090544 [10:29:04]FM_GetShiftState [10:29:04]SAM_PROTO_GetShiftState [10:29:04]wFMCommunicate request_size=4 [10:29:04]MH_SAM_APDU [10:29:04]CAPDU: 80 13 01 00 [10:29:04]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [10:29:04]Write i2c OK [10:29:04]MH_I2C_Read... [10:29:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:04]Read from MH i2c: E2 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 0E 00 [10:29:04]MH_I2C_Read... [10:29:04]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [10:29:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:29:04]wFMCommunicate OK [10:29:04]SAM_PROTO_GetShiftState done [10:29:04]FM_GetShiftState done [10:29:04]opened in 1713054696 [10:29:04]opened+sec_in_day 1713141096 [10:29:04]quantity*price = 11000 [10:29:04]sum+1 = 11001 [10:29:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 94 14.04.2024 10:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112195 ФПД: 264914045316577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112195&fm=264914045316577&tin=02508201610067®Number=0000000000094237&sum=11000 0 [10:29:05]StoreToDocumentArchive [10:29:05]shift 357 fd 112195 [10:29:05]save to /storage/0357/doc_00112195 [10:29:05]save last doc name /storage/0357/doc_00112195 to /storage/kkm_last_doc_name [10:29:05]save OK [10:29:05]Clear old archive folders... [10:29:05]ProcessDocumentItem done err = 0, tmpTLVsize=294 [10:29:05]tlvbuf is 0177EED0 [10:29:05]SAM_PROTO_ClearQueue [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 09 00 00 [10:29:05]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [10:29:05]RAPDU: 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_ClearQueue done [10:29:05]KKMCreateOFDPacket [10:29:05]OFDProtocolAddRootSTLVToBuf [10:29:05]FM_MakeSignedData [10:29:05]FM_MakeSignedData [10:29:05]SAM_PROTO_SignData [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 0D 01 02 [10:29:05]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [10:29:05]RAPDU: 90 00 [10:29:05]wFMCommunicate OK [10:29:05]wFMCommunicate request_size=255 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F0 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [10:29:05]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F0 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 9D [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=53 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B6 01 00 35 04 06 00 F0 F0 1B 91 2D E1 [10:29:06]Write to MH i2c: E2 38 00 62 00 80 0D 02 02 30 00 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B6 01 00 35 04 06 00 F0 F0 1B 91 2D E1 00 00 63 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 03 02 [10:29:06]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 63 00 00 62 29 95 D7 08 2C 20 4A 90 00 74 [10:29:06]RAPDU: 62 29 95 D7 08 2C 20 4A 90 00 [10:29:06]wFMCommunicate OK [10:29:06]SAM_PROTO_SignData done [10:29:06]FM_MakeSignedData done [10:29:06]CreateOFDProtocolMessage [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 11 00 00 [10:29:06]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [10:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:29:06]wFMCommunicate OK [10:29:06]CreateOFDProtocolMessage done [10:29:06]OFDSenderStorePacket 112195 [10:29:06]StoreOFDPacket docnum=112195 [10:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3A 01 00 00 BF 41 32 01 D7 8A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F0 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B6 01 00 35 04 06 00 F0 F0 1B 91 2D E1 62 29 95 D7 08 2C 20 4A [10:29:06]CheckFolder [10:29:06]dirname=/storage/ofd_packets [10:29:06]CheckFolder done [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00112195 [10:29:06]NVStorageSaveData ofd_packets/00112195 [10:29:06]File name is /storage/ofd_packets/00112195 [10:29:06]Write 344 bytes [10:29:06]NVStorageSaveData done [10:29:06]OFDSenderStorePacket done [10:29:06]KKMCreateOFDPacket done [10:29:06]NVStorageSaveData kkm_last_timestamp [10:29:06]File name is /storage/kkm_last_timestamp [10:29:06]Write 4 bytes [10:29:06]NVStorageSaveData done [10:29:06]ExternCall_PrintAddStr [10:29:06]wPrintStart [10:29:06]Write to MH i2c: 01 00 00 65 00 65 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [10:29:06]RasterBufferAndPrint [10:29:06]line Счет N : (3)10413 [10:29:06]line ИНН: 02508201610067 [10:29:06]line Контрольно-Кассовый Чек [10:29:06]line ПРОДАЖА [10:29:06]line Товар: 4650243871828 [10:29:06]line Gorilla эн нап манго-кокос 0,45 ж/б [10:29:06]line 1.000 * 110.00 [10:29:06]line = 110.00 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line ИТОГО: 110.00 [10:29:06]line НСП 1% : 0.97 [10:29:06]line НДС 12% : 11.68 [10:29:06]line Наличными: 110.00 [10:29:06]line Безнал.: 0.00 [10:29:06]line Место: АЗС № 47 "Партнер Нефть" [10:29:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:29:06]line СНО: Общий режим [10:29:06]line Чек 94 14.04.2024 10:29 [10:29:06]line Смена: 357 ФФД: 1.0 [10:29:06]line ЗНМ: 0300000138 [10:29:06]line РНМ: 0000000000094237 [10:29:06]line Версия ККМ: 001 [10:29:06]line ФМ: 0000000000875019 [10:29:06]line ФД: 112195 [10:29:06]line ФПД: 264914045316577 [10:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112195&fm=264914045316577&tin=02508201610067®Number=0000000000094237&sum=11000 [10:29:06]line 0 [10:29:06]written 0, free lines is 4095 [10:29:06]OFD Sender: Processing packet 112195 [packets to send 71, broken 70] [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00112195 [10:29:06]OFD Sender: To server: pG, [10:29:06]CommunicateWithHost lk.salyk.kg:30040 [10:29:06]ConnectInit lk.salyk.kg [10:29:06]Connected sock=10 [10:29:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3A 01 00 00 BF 41 32 01 D7 8A 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 F0 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B6 01 00 35 04 06 00 F0 F0 1B 91 2D E1 62 29 95 D7 08 2C 20 4A [10:29:07]Write to MH i2c: 01 00 00 8E 00 8E [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 8E 00 00 00 00 00 00 E8 0C 89 [10:29:07]RasterBufferAndPrint [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]written 0, free lines is 3326 [10:29:07]MH_Cut [10:29:07]Write to MH i2c: D1 01 00 95 00 01 67 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 95 00 00 66 [10:29:07]Write to MH i2c: 01 00 00 96 00 96 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 53 02 47 00 99 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B6 01 00 F4 03 04 00 7C 57 1B 66 B6 04 01 00 00 17 F8 71 EA 50 CC 16 F5 [10:29:07]CommunicateWithHost err = 0 [10:29:07]CheckOFDResponse [10:29:07]1017 (14) - 77093643461234 [10:29:07]1041 (16) - 0000000000875019 [10:29:07]1040 (4) - 112195 [10:29:07]1012 (4) - 14.04.2024 04:11 [10:29:07]1206 (1) - 0 [10:29:07]OFD Sender: Remove packet 112195 [10:29:07]ProducePacketName [10:29:07]name=ofd_packets/00112195 [10:29:07]NVStorageDeleteData [10:29:07]OFD Sender: No OFD packet to send [10:29:07]*** Cut start [10:29:07]*** Partial cut [10:29:07]*** CUTSNS_PIN = 1 [10:29:07]*** CUTSNS_PIN = 0 [10:29:08]*** Brake cut motor [10:29:08]Read from MH i2c: 01 [10:29:08]MH_I2C_Read... [10:29:08]*** Stop cut motor [10:29:08]*** Cut end [10:29:08]Read from MH i2c: 01 07 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: 01 07 00 96 00 00 00 00 00 00 FF 0F AB [10:29:08]process_action close_receipt done [10:29:08]requested_data is exist [10:29:08]produce_requested_data [10:29:08]requested_item fm.sn is exist - process it [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 11 00 00 [10:29:08]Write to MH i2c: E2 08 00 97 00 80 11 00 00 00 00 00 00 11 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 17 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 17 00 97 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [10:29:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:29:08]wFMCommunicate OK [10:29:08]requested_item fd.num is exist - process it [10:29:08]SAM_PROTO_GetFieldsCounters [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 13 00 00 [10:29:08]Write to MH i2c: E2 08 00 98 00 80 13 00 00 00 00 00 00 14 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 62 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 62 00 98 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 43 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [10:29:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 43 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:08]wFMCommunicate OK [10:29:08]SAM_PROTO_GetFieldsCounters done [10:29:08]requested_item shift.num is exist - process it [10:29:08]requested_item shift.opened is exist - process it [10:29:08]req_shift_opened [10:29:08]FM_GetShiftState [10:29:08]SAM_PROTO_GetShiftState [10:29:08]wFMCommunicate request_size=4 [10:29:08]MH_SAM_APDU [10:29:08]CAPDU: 80 13 01 00 [10:29:08]Write to MH i2c: E2 08 00 99 00 80 13 01 00 00 00 00 00 16 [10:29:08]Write i2c OK [10:29:08]MH_I2C_Read... [10:29:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:08]Read from MH i2c: E2 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0E 00 [10:29:08]MH_I2C_Read... [10:29:08]Read from MH i2c: E2 0E 00 99 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AE [10:29:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:29:08]wFMCommunicate OK [10:29:08]SAM_PROTO_GetShiftState done [10:29:08]FM_GetShiftState done [10:29:08]req_shift_opened done [10:29:08]requested_item shift.open_date is exist - process it [10:29:08]req_shift_open_date [10:29:08]req_shift_open_date done [10:29:08]produce_requested_data done [10:29:08]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112195,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:29:08]process_action_free close_receipt [10:29:08]json_value_free [10:29:08]json_value_free done [10:29:08]process_json_proto returns [10:29:08]Send response to host [10:29:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112195,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:29:08]free response buf [10:29:08]execute_script done [10:29:08]execute_script returns [10:29:08]free content buf [10:29:08]Sock 6.Close socket [10:29:08]Sock 6.Thread stoped [10:29:10]accept exits with 9 [10:29:10]New connection [10:29:10]New thread 3067342180 created [10:29:10]Thread 3067198820 joined [10:29:10]Waiting for new connection... [10:29:10] Sock 9.Parse request [10:29:10]Sock 9.Check first char [10:29:10]Sock 9.First char is OK [10:29:10]request: POST /json_proto HTTP/1.0 [10:29:10]Method: POST [10:29:10]URL: /json_proto [10:29:10]Method is POST - this is cgi request [10:29:10]url: /json_proto [10:29:10]query_string will be loaded in cgi processing [10:29:10]execute_cgi json_proto POST (null) [10:29:10]execute_cgi path=json_proto method=POST [10:29:10]POST find Content-Length [10:29:10]Host: 172.17.96.197:8080 [10:29:10]Content-Length: 643 [10:29:10]Content-Type: application/json [10:29:10] [10:29:10]POST finish read [10:29:10]Found Content-Length = 643 [10:29:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10414", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:10]execute_script... [10:29:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10414", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:10]POST & json_proto [10:29:10]process_json_proto [10:29:10]json parsed OK: [10:29:10]protocol is kg_v1.0 [10:29:10]action value=close_receipt [10:29:10]process_action close_receipt [10:29:10]cmd_close_receipt [10:29:10]MH_GetDate [10:29:10]Write to MH i2c: F0 00 00 9A 00 89 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 09 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: F0 09 00 9A 00 00 F6 AF 1B 66 E0 85 7F 64 00 [10:29:10]GetLastDocTimeStamp 1713090544 [10:29:10]current date 1713090550 [10:29:10]FM_GetShiftState [10:29:10]SAM_PROTO_GetShiftState [10:29:10]wFMCommunicate request_size=4 [10:29:10]MH_SAM_APDU [10:29:10]CAPDU: 80 13 01 00 [10:29:10]Write to MH i2c: E2 08 00 9B 00 80 13 01 00 00 00 00 00 18 [10:29:10]Write i2c OK [10:29:10]MH_I2C_Read... [10:29:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:10]Read from MH i2c: E2 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 [10:29:10]MH_I2C_Read... [10:29:10]Read from MH i2c: E2 0E 00 9B 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [10:29:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:29:10]wFMCommunicate OK [10:29:10]SAM_PROTO_GetShiftState done [10:29:10]FM_GetShiftState done [10:29:10]opened in 1713054696 [10:29:10]opened+sec_in_day 1713141096 [10:29:10]quantity*price = 11500 [10:29:10]sum+1 = 11501 [10:29:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 95 14.04.2024 10:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112196 ФПД: 11172092275559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102911&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112196&fm=11172092275559&tin=02508201610067®Number=0000000000094237&sum=11500 0 [10:29:11]StoreToDocumentArchive [10:29:11]shift 357 fd 112196 [10:29:11]save to /storage/0357/doc_00112196 [10:29:11]save last doc name /storage/0357/doc_00112196 to /storage/kkm_last_doc_name [10:29:11]save OK [10:29:11]Clear old archive folders... [10:29:11]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:29:11]tlvbuf is 017EF670 [10:29:11]SAM_PROTO_ClearQueue [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 09 00 00 [10:29:11]Write to MH i2c: E2 08 00 A8 00 80 09 00 00 00 00 00 00 1A [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]SAM_PROTO_ClearQueue done [10:29:11]KKMCreateOFDPacket [10:29:11]OFDProtocolAddRootSTLVToBuf [10:29:11]FM_MakeSignedData [10:29:11]FM_MakeSignedData [10:29:11]SAM_PROTO_SignData [10:29:11]wFMCommunicate request_size=4 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 0D 01 02 [10:29:11]Write to MH i2c: E2 08 00 A9 00 80 0D 01 02 00 00 00 00 22 [10:29:11]Write i2c OK [10:29:11]MH_I2C_Read... [10:29:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:11]Read from MH i2c: E2 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 [10:29:11]MH_I2C_Read... [10:29:11]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [10:29:11]RAPDU: 90 00 [10:29:11]wFMCommunicate OK [10:29:11]wFMCommunicate request_size=255 [10:29:11]MH_SAM_APDU [10:29:11]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 [10:29:12]Write to MH i2c: E2 02 01 AA 00 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 00 00 4E [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [10:29:12]RAPDU: 90 00 [10:29:12]wFMCommunicate OK [10:29:12]wFMCommunicate request_size=39 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B6 01 00 35 04 06 00 0A 29 34 97 6B 67 [10:29:12]Write to MH i2c: E2 2A 00 AB 00 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B6 01 00 35 04 06 00 0A 29 34 97 6B 67 00 00 A9 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [10:29:12]RAPDU: 90 00 [10:29:12]wFMCommunicate OK [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 0D 03 02 [10:29:12]Write to MH i2c: E2 08 00 AC 00 80 0D 03 02 00 00 00 00 27 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0B 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 0B 00 AC 00 00 A9 30 04 9E D6 E0 76 9A 90 00 69 [10:29:12]RAPDU: A9 30 04 9E D6 E0 76 9A 90 00 [10:29:12]wFMCommunicate OK [10:29:12]SAM_PROTO_SignData done [10:29:12]FM_MakeSignedData done [10:29:12]CreateOFDProtocolMessage [10:29:12]wFMCommunicate request_size=4 [10:29:12]MH_SAM_APDU [10:29:12]CAPDU: 80 11 00 00 [10:29:12]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:12]Read from MH i2c: E2 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [10:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:29:12]wFMCommunicate OK [10:29:12]CreateOFDProtocolMessage done [10:29:12]OFDSenderStorePacket 112196 [10:29:12]StoreOFDPacket docnum=112196 [10:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 0C 4B 24 01 2E FD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B6 01 00 35 04 06 00 0A 29 34 97 6B 67 A9 30 04 9E D6 E0 76 9A [10:29:12]CheckFolder [10:29:12]dirname=/storage/ofd_packets [10:29:12]CheckFolder done [10:29:12]ProducePacketName [10:29:12]name=ofd_packets/00112196 [10:29:12]NVStorageSaveData ofd_packets/00112196 [10:29:12]File name is /storage/ofd_packets/00112196 [10:29:12]Write 330 bytes [10:29:12]NVStorageSaveData done [10:29:12]OFDSenderStorePacket done [10:29:12]KKMCreateOFDPacket done [10:29:12]NVStorageSaveData kkm_last_timestamp [10:29:12]File name is /storage/kkm_last_timestamp [10:29:12]Write 4 bytes [10:29:12]NVStorageSaveData done [10:29:12]ExternCall_PrintAddStr [10:29:12]wPrintStart [10:29:12]Write to MH i2c: 01 00 00 AE 00 AE [10:29:12]Write i2c OK [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 [10:29:12]MH_I2C_Read... [10:29:12]OFD Sender: Processing packet 112196 [packets to send 71, broken 70] [10:29:12]ProducePacketName [10:29:12]name=ofd_packets/00112196 [10:29:12]OFD Sender: To server: pG, [10:29:12]CommunicateWithHost lk.salyk.kg:30040 [10:29:12]ConnectInit lk.salyk.kg [10:29:12]Read from MH i2c: 01 07 00 [10:29:12]MH_I2C_Read... [10:29:12]Read from MH i2c: 01 07 00 AE 00 00 00 00 00 00 FF 0F C3 [10:29:12]RasterBufferAndPrint [10:29:12]line Счет N : (3)10414 [10:29:12]line ИНН: 02508201610067 [10:29:12]line Контрольно-Кассовый Чек [10:29:12]line ПРОДАЖА [10:29:12]line Товар: 2000036210013 [10:29:12]line Кофе Капучино (GABB TRADE) [10:29:12]line 1.000 * 115.00 [10:29:12]line = 115.00 [10:29:12]line НДС 12% НСП 1% [10:29:12]line > о реализуемом товаре [10:29:12]line ИТОГО: 115.00 [10:29:12]line НСП 1% : 1.02 [10:29:12]line НДС 12% : 12.21 [10:29:12]line Наличными: 115.00 [10:29:12]line Безнал.: 0.00 [10:29:12]line Место: АЗС № 47 "Партнер Нефть" [10:29:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:29:12]line СНО: Общий режим [10:29:12]line Чек 95 14.04.2024 10:29 [10:29:12]line Смена: 357 ФФД: 1.0 [10:29:12]line ЗНМ: 0300000138 [10:29:12]line РНМ: 0000000000094237 [10:29:12]line Версия ККМ: 001 [10:29:12]line ФМ: 0000000000875019 [10:29:12]line ФД: 112196 [10:29:12]line ФПД: 11172092275559 [10:29:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T102911&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112196&fm=11172092275559&tin=02508201610067®Number=0000000000094237&sum=11500 [10:29:12]line 0 [10:29:12]written 0, free lines is 4095 [10:29:12]Connected sock=10 [10:29:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 0C 4B 24 01 2E FD 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 F7 AF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B6 01 00 35 04 06 00 0A 29 34 97 6B 67 A9 30 04 9E D6 E0 76 9A [10:29:13]Write to MH i2c: 01 00 00 D6 00 D6 [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: 01 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: 01 07 00 [10:29:13]MH_I2C_Read... [10:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3F 80 47 00 32 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B6 01 00 F4 03 04 00 82 57 1B 66 B6 04 01 00 00 B2 54 C0 5C FD F3 DF 21 [10:29:13]CommunicateWithHost err = 0 [10:29:13]CheckOFDResponse [10:29:13]1017 (14) - 77093643461234 [10:29:13]1041 (16) - 0000000000875019 [10:29:13]1040 (4) - 112196 [10:29:13]1012 (4) - 14.04.2024 04:11 [10:29:13]1206 (1) - 0 [10:29:13]OFD Sender: Remove packet 112196 [10:29:13]ProducePacketName [10:29:13]name=ofd_packets/00112196 [10:29:13]NVStorageDeleteData [10:29:13]Read from MH i2c: 01 07 00 D6 00 00 00 00 00 00 15 0D FF [10:29:13]RasterBufferAndPrint [10:29:13]line [10:29:13]line [10:29:13]line [10:29:13]line [10:29:13]line [10:29:13]written 0, free lines is 3558 [10:29:13]MH_Cut [10:29:13]Write to MH i2c: D1 01 00 DD 00 01 AF [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: D1 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: D1 01 00 [10:29:13]MH_I2C_Read... [10:29:13]Read from MH i2c: D1 01 00 DD 00 00 AE [10:29:13]Write to MH i2c: 01 00 00 DE 00 DE [10:29:13]Write i2c OK [10:29:13]MH_I2C_Read... [10:29:13]OFD Sender: No OFD packet to send [10:29:13]*** Cut start [10:29:13]*** Partial cut [10:29:13]*** CUTSNS_PIN = 1 [10:29:13]*** CUTSNS_PIN = 0 [10:29:14]*** Brake cut motor [10:29:14]Read from MH i2c: 01 [10:29:14]MH_I2C_Read... [10:29:14]*** Stop cut motor [10:29:14]*** Cut end [10:29:14]Read from MH i2c: 01 07 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: 01 07 00 DE 00 00 00 00 00 00 FF 0F F3 [10:29:14]process_action close_receipt done [10:29:14]requested_data is exist [10:29:14]produce_requested_data [10:29:14]requested_item fm.sn is exist - process it [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 11 00 00 [10:29:14]Write to MH i2c: E2 08 00 DF 00 80 11 00 00 00 00 00 00 59 [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 17 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 17 00 DF 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AA [10:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:29:14]wFMCommunicate OK [10:29:14]requested_item fd.num is exist - process it [10:29:14]SAM_PROTO_GetFieldsCounters [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 13 00 00 [10:29:14]Write to MH i2c: E2 08 00 E0 00 80 13 00 00 00 00 00 00 5C [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 62 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 62 00 E0 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 44 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [10:29:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 44 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:14]wFMCommunicate OK [10:29:14]SAM_PROTO_GetFieldsCounters done [10:29:14]requested_item shift.num is exist - process it [10:29:14]requested_item shift.opened is exist - process it [10:29:14]req_shift_opened [10:29:14]FM_GetShiftState [10:29:14]SAM_PROTO_GetShiftState [10:29:14]wFMCommunicate request_size=4 [10:29:14]MH_SAM_APDU [10:29:14]CAPDU: 80 13 01 00 [10:29:14]Write to MH i2c: E2 08 00 E1 00 80 13 01 00 00 00 00 00 5E [10:29:14]Write i2c OK [10:29:14]MH_I2C_Read... [10:29:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:14]Read from MH i2c: E2 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 0E 00 [10:29:14]MH_I2C_Read... [10:29:14]Read from MH i2c: E2 0E 00 E1 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F6 [10:29:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:29:14]wFMCommunicate OK [10:29:14]SAM_PROTO_GetShiftState done [10:29:14]FM_GetShiftState done [10:29:14]req_shift_opened done [10:29:14]requested_item shift.open_date is exist - process it [10:29:14]req_shift_open_date [10:29:14]req_shift_open_date done [10:29:14]produce_requested_data done [10:29:14]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112196,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:29:14]process_action_free close_receipt [10:29:14]json_value_free [10:29:14]json_value_free done [10:29:14]process_json_proto returns [10:29:14]Send response to host [10:29:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112196,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:29:14]free response buf [10:29:14]execute_script done [10:29:14]execute_script returns [10:29:14]free content buf [10:29:14]Sock 9.Close socket [10:29:14]Sock 9.Thread stoped [10:29:18]OFD Sender: No OFD packet to send [10:29:23]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:53]OFD Sender: No OFD packet to send [10:30:58]OFD Sender: No OFD packet to send [10:31:03]OFD Sender: No OFD packet to send [10:31:08]OFD Sender: No OFD packet to send [10:31:13]OFD Sender: No OFD packet to send [10:31:18]OFD Sender: No OFD packet to send [10:31:23]OFD Sender: No OFD packet to send [10:31:28]OFD Sender: No OFD packet to send [10:31:33]OFD Sender: No OFD packet to send [10:31:38]OFD Sender: No OFD packet to send [10:31:43]OFD Sender: No OFD packet to send [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:29]OFD Sender: No OFD packet to send [10:32:34]OFD Sender: No OFD packet to send [10:32:39]OFD Sender: No OFD packet to send [10:32:44]OFD Sender: No OFD packet to send [10:32:49]OFD Sender: No OFD packet to send [10:32:54]OFD Sender: No OFD packet to send [10:32:59]OFD Sender: No OFD packet to send [10:33:04]OFD Sender: No OFD packet to send [10:33:09]OFD Sender: No OFD packet to send [10:33:14]OFD Sender: No OFD packet to send [10:33:19]OFD Sender: No OFD packet to send [10:33:24]OFD Sender: No OFD packet to send [10:33:29]OFD Sender: No OFD packet to send [10:33:34]OFD Sender: No OFD packet to send [10:33:39]OFD Sender: No OFD packet to send [10:33:44]OFD Sender: No OFD packet to send [10:33:49]OFD Sender: No OFD packet to send [10:33:54]OFD Sender: No OFD packet to send [10:33:59]OFD Sender: No OFD packet to send [10:34:04]OFD Sender: No OFD packet to send [10:34:09]OFD Sender: No OFD packet to send [10:34:14]OFD Sender: No OFD packet to send [10:34:15]accept exits with 6 [10:34:15]New connection [10:34:15]New thread 3067198820 created [10:34:15]Thread 3067342180 joined [10:34:15]Waiting for new connection... [10:34:15] Sock 6.Parse request [10:34:15]Sock 6.Check first char [10:34:15]Sock 6.First char is OK [10:34:15]request: POST /json_proto HTTP/1.0 [10:34:15]Method: POST [10:34:15]URL: /json_proto [10:34:15]Method is POST - this is cgi request [10:34:15]url: /json_proto [10:34:15]query_string will be loaded in cgi processing [10:34:15]execute_cgi json_proto POST (null) [10:34:15]execute_cgi path=json_proto method=POST [10:34:15]POST find Content-Length [10:34:15]Host: 172.17.96.197:8080 [10:34:15]Content-Length: 680 [10:34:15]Content-Type: application/json [10:34:15] [10:34:15]POST finish read [10:34:15]Found Content-Length = 680 [10:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 12.240, "sum" : 400.25, "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" ] } } [10:34:15]execute_script... [10:34: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)48510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 12.240, "sum" : 400.25, "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" ] } } [10:34:15]POST & json_proto [10:34:15]process_json_proto [10:34:15]json parsed OK: [10:34:15]protocol is kg_v1.0 [10:34:15]action value=close_receipt [10:34:15]process_action close_receipt [10:34:15]cmd_close_receipt [10:34:15]MH_GetDate [10:34:15]Write to MH i2c: F0 00 00 E2 00 D1 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: F0 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: F0 09 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: F0 09 00 E2 00 00 27 B1 1B 66 E0 85 7F 64 7B [10:34:15]GetLastDocTimeStamp 1713090551 [10:34:15]current date 1713090855 [10:34:15]FM_GetShiftState [10:34:15]SAM_PROTO_GetShiftState [10:34:15]wFMCommunicate request_size=4 [10:34:15]MH_SAM_APDU [10:34:15]CAPDU: 80 13 01 00 [10:34:15]Write to MH i2c: E2 08 00 E3 00 80 13 01 00 00 00 00 00 60 [10:34:15]Write i2c OK [10:34:15]MH_I2C_Read... [10:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:15]Read from MH i2c: E2 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 0E 00 [10:34:15]MH_I2C_Read... [10:34:15]Read from MH i2c: E2 0E 00 E3 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F8 [10:34:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:34:15]wFMCommunicate OK [10:34:15]SAM_PROTO_GetShiftState done [10:34:15]FM_GetShiftState done [10:34:15]opened in 1713054696 [10:34:15]opened+sec_in_day 1713141096 [10:34:15]quantity*price = 40024 [10:34:15]sum+1 = 40026 [10:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.50 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 96 14.04.2024 10:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112197 ФПД: 213288519789752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103415&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112197&fm=213288519789752&tin=02508201610067®Number=0000000000094237&sum=40000 [10:34:16]StoreToDocumentArchive [10:34:16]shift 357 fd 112197 [10:34:16]save to /storage/0357/doc_00112197 [10:34:16]save last doc name /storage/0357/doc_00112197 to /storage/kkm_last_doc_name [10:34:16]save OK [10:34:16]Clear old archive folders... [10:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:34:16]tlvbuf is 01775E60 [10:34:16]SAM_PROTO_ClearQueue [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 09 00 00 [10:34:16]Write to MH i2c: E2 08 00 F0 00 80 09 00 00 00 00 00 00 62 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 F0 00 00 90 00 64 [10:34:16]RAPDU: 90 00 [10:34:16]wFMCommunicate OK [10:34:16]SAM_PROTO_ClearQueue done [10:34:16]KKMCreateOFDPacket [10:34:16]OFDProtocolAddRootSTLVToBuf [10:34:16]FM_MakeSignedData [10:34:16]FM_MakeSignedData [10:34:16]SAM_PROTO_SignData [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 0D 01 02 [10:34:16]Write to MH i2c: E2 08 00 F1 00 80 0D 01 02 00 00 00 00 6A [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 F1 00 00 90 00 65 [10:34:16]RAPDU: 90 00 [10:34:16]wFMCommunicate OK [10:34:16]wFMCommunicate request_size=255 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 60 00 00 00 F4 03 04 00 27 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B6 01 00 35 04 06 00 C1 FC [10:34:16]Write to MH i2c: E2 02 01 F2 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 60 00 00 00 F4 03 04 00 27 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B6 01 00 35 04 06 00 C1 FC 00 00 7C [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 F2 00 00 90 00 66 [10:34:16]RAPDU: 90 00 [10:34:16]wFMCommunicate OK [10:34:16]wFMCommunicate request_size=9 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 0D 02 02 04 1A 74 EC B8 [10:34:16]Write to MH i2c: E2 0C 00 F3 00 80 0D 02 02 04 00 1A 74 EC B8 00 00 A7 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 03 00 F3 00 00 90 00 67 [10:34:16]RAPDU: 90 00 [10:34:16]wFMCommunicate OK [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 0D 03 02 [10:34:16]Write to MH i2c: E2 08 00 F4 00 80 0D 03 02 00 00 00 00 6F [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 0B 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 0B 00 F4 00 00 C9 13 18 4B C4 A7 A9 5D 90 00 20 [10:34:16]RAPDU: C9 13 18 4B C4 A7 A9 5D 90 00 [10:34:16]wFMCommunicate OK [10:34:16]SAM_PROTO_SignData done [10:34:16]FM_MakeSignedData done [10:34:16]CreateOFDProtocolMessage [10:34:16]wFMCommunicate request_size=4 [10:34:16]MH_SAM_APDU [10:34:16]CAPDU: 80 11 00 00 [10:34:16]Write to MH i2c: E2 08 00 F5 00 80 11 00 00 00 00 00 00 6F [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:16]Read from MH i2c: E2 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: E2 17 00 F5 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C0 [10:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:34:16]wFMCommunicate OK [10:34:16]CreateOFDProtocolMessage done [10:34:16]OFDSenderStorePacket 112197 [10:34:16]StoreOFDPacket docnum=112197 [10:34:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 6F E1 06 01 D2 3B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 60 00 00 00 F4 03 04 00 27 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B6 01 00 35 04 06 00 C1 FC 1A 74 EC B8 C9 13 18 4B C4 A7 A9 5D [10:34:16]CheckFolder [10:34:16]dirname=/storage/ofd_packets [10:34:16]CheckFolder done [10:34:16]ProducePacketName [10:34:16]name=ofd_packets/00112197 [10:34:16]NVStorageSaveData ofd_packets/00112197 [10:34:16]File name is /storage/ofd_packets/00112197 [10:34:16]Write 300 bytes [10:34:16]NVStorageSaveData done [10:34:16]OFDSenderStorePacket done [10:34:16]KKMCreateOFDPacket done [10:34:16]NVStorageSaveData kkm_last_timestamp [10:34:16]File name is /storage/kkm_last_timestamp [10:34:16]Write 4 bytes [10:34:16]NVStorageSaveData done [10:34:16]ExternCall_PrintAddStr [10:34:16]wPrintStart [10:34:16]Write to MH i2c: 01 00 00 F6 00 F6 [10:34:16]Write i2c OK [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 07 00 [10:34:16]MH_I2C_Read... [10:34:16]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [10:34:16]RasterBufferAndPrint [10:34:16]line Счет N : (1)48510 [10:34:16]line ИНН: 02508201610067 [10:34:16]line Контрольно-Кассовый Чек [10:34:16]line ПРОДАЖА [10:34:16]line ТРК (МРК, ГНК) : 71 [10:34:16]line Товар: 2711190000 [10:34:16]line ГАЗ-К-5 [10:34:16]line 12.240 * 32.70 [10:34:16]line = 400.25 [10:34:16]line НДС 12% НСП 1% [10:34:16]line > о реализуемом товаре [10:34:16]line ОКРУГЛЕНИЕ: -0.25 [10:34:16]line ИТОГО: 400.00 [10:34:16]line Внесено: 400.00 [10:34:16]line СДАЧА: 0.00 [10:34:16]line НСП 1% : 3.54 [10:34:16]line НДС 12% : 42.50 [10:34:16]line Наличными: 400.00 [10:34:16]line Безнал.: 0.00 [10:34:16]line Место: АЗС № 47 "Партнер Нефть" [10:34:16]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:34:16]line СНО: Общий режим [10:34:16]line Чек 96 14.04.2024 10:34 [10:34:16]line Смена: 357 ФФД: 1.0 [10:34:16]line ЗНМ: 0300000138 [10:34:16]line РНМ: 0000000000094237 [10:34:16]line Версия ККМ: 001 [10:34:16]line ФМ: 0000000000875019 [10:34:16]line ФД: 112197 [10:34:16]line ФПД: 213288519789752 [10:34:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103415&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112197&fm=213288519789752&tin=02508201610067®Number=0000000000094237&sum=40000 [10:34:17]written 0, free lines is 4095 [10:34:17]OFD Sender: Processing packet 112197 [packets to send 71, broken 70] [10:34:17]ProducePacketName [10:34:17]name=ofd_packets/00112197 [10:34:17]OFD Sender: To server: pG, [10:34:17]CommunicateWithHost lk.salyk.kg:30040 [10:34:17]ConnectInit lk.salyk.kg [10:34:17]Connected sock=10 [10:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 6F E1 06 01 D2 3B 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 2F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 59 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 60 00 00 00 F4 03 04 00 27 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B6 01 00 35 04 06 00 C1 FC 1A 74 EC B8 C9 13 18 4B C4 A7 A9 5D [10:34:17]Write to MH i2c: 01 00 00 21 01 22 [10:34:17]Write i2c OK [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: 01 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: 01 07 00 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: 01 07 00 21 01 00 00 00 00 00 DD 0C 12 [10:34:17]RasterBufferAndPrint [10:34:17]line [10:34:17]line [10:34:17]line [10:34:17]line [10:34:17]line [10:34:17]written 0, free lines is 3299 [10:34:17]MH_Cut [10:34:17]Write to MH i2c: D1 01 00 28 01 01 FB [10:34:17]Write i2c OK [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: D1 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: D1 01 00 [10:34:17]MH_I2C_Read... [10:34:17]Read from MH i2c: D1 01 00 28 01 00 FA [10:34:17]Write to MH i2c: 01 00 00 29 01 2A [10:34:17]Write i2c OK [10:34:17]MH_I2C_Read... [10:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C2 30 47 00 A9 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 38 37 35 30 31 39 10 04 04 00 45 B6 01 00 F4 03 04 00 B3 58 1B 66 B6 04 01 00 00 43 FA 4F 8C DA FE F4 89 [10:34:17]CommunicateWithHost err = 0 [10:34:17]CheckOFDResponse [10:34:17]1017 (14) - 77093643461234 [10:34:17]1041 (16) - 0000000000875019 [10:34:17]1040 (4) - 112197 [10:34:17]1012 (4) - 14.04.2024 04:16 [10:34:17]1206 (1) - 0 [10:34:17]OFD Sender: Remove packet 112197 [10:34:17]ProducePacketName [10:34:17]name=ofd_packets/00112197 [10:34:17]NVStorageDeleteData [10:34:18]OFD Sender: No OFD packet to send [10:34:18]*** Cut start [10:34:18]*** Partial cut [10:34:18]*** CUTSNS_PIN = 1 [10:34:18]*** CUTSNS_PIN = 0 [10:34:18]*** Brake cut motor [10:34:19]Read from MH i2c: 01 [10:34:19]MH_I2C_Read... [10:34:19]*** Stop cut motor [10:34:19]*** Cut end [10:34:19]Read from MH i2c: 01 07 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: 01 07 00 29 01 00 00 00 00 00 FF 0F 3F [10:34:19]process_action close_receipt done [10:34:19]requested_data is exist [10:34:19]produce_requested_data [10:34:19]requested_item fm.sn is exist - process it [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 11 00 00 [10:34:19]Write to MH i2c: E2 08 00 2A 01 80 11 00 00 00 00 00 00 A5 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 17 00 2A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F6 [10:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:34:19]wFMCommunicate OK [10:34:19]requested_item fd.num is exist - process it [10:34:19]SAM_PROTO_GetFieldsCounters [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 13 00 00 [10:34:19]Write to MH i2c: E2 08 00 2B 01 80 13 00 00 00 00 00 00 A8 [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 62 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 62 00 2B 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 45 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [10:34:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 45 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_GetFieldsCounters done [10:34:19]requested_item shift.num is exist - process it [10:34:19]requested_item shift.opened is exist - process it [10:34:19]req_shift_opened [10:34:19]FM_GetShiftState [10:34:19]SAM_PROTO_GetShiftState [10:34:19]wFMCommunicate request_size=4 [10:34:19]MH_SAM_APDU [10:34:19]CAPDU: 80 13 01 00 [10:34:19]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [10:34:19]Write i2c OK [10:34:19]MH_I2C_Read... [10:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:19]Read from MH i2c: E2 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0E 00 [10:34:19]MH_I2C_Read... [10:34:19]Read from MH i2c: E2 0E 00 2C 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 42 [10:34:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:34:19]wFMCommunicate OK [10:34:19]SAM_PROTO_GetShiftState done [10:34:19]FM_GetShiftState done [10:34:19]req_shift_opened done [10:34:19]requested_item shift.open_date is exist - process it [10:34:19]req_shift_open_date [10:34:19]req_shift_open_date done [10:34:19]produce_requested_data done [10:34:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112197,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:34:19]process_action_free close_receipt [10:34:19]json_value_free [10:34:19]json_value_free done [10:34:19]process_json_proto returns [10:34:19]Send response to host [10:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112197,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:34:19]free response buf [10:34:19]execute_script done [10:34:19]execute_script returns [10:34:19]free content buf [10:34:19]Sock 6.Close socket [10:34:19]Sock 6.Thread stoped [10:34:23]OFD Sender: No OFD packet to send [10:34:24]accept exits with 9 [10:34:24]New connection [10:34:24]New thread 3067342180 created [10:34:24]Thread 3067198820 joined [10:34:24]Waiting for new connection... [10:34:24] Sock 9.Parse request [10:34:24]Sock 9.Check first char [10:34:24]Sock 9.First char is OK [10:34:24]request: POST /json_proto HTTP/1.0 [10:34:24]Method: POST [10:34:24]URL: /json_proto [10:34:24]Method is POST - this is cgi request [10:34:24]url: /json_proto [10:34:24]query_string will be loaded in cgi processing [10:34:24]execute_cgi json_proto POST (null) [10:34:24]execute_cgi path=json_proto method=POST [10:34:24]POST find Content-Length [10:34:24]Host: 172.17.96.197:8080 [10:34:24]Content-Length: 634 [10:34:24]Content-Type: application/json [10:34:24] [10:34:24]POST finish read [10:34:24]Found Content-Length = 634 [10:34:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48511", "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.30, "quantity" : 20.000, "sum" : 1306.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1306.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:24]execute_script... [10: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)48511", "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.30, "quantity" : 20.000, "sum" : 1306.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1306.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:34:24]POST & json_proto [10:34:24]process_json_proto [10:34:24]json parsed OK: [10:34:24]protocol is kg_v1.0 [10:34:24]action value=close_receipt [10:34:24]process_action close_receipt [10:34:24]cmd_close_receipt [10:34:24]MH_GetDate [10:34:24]Write to MH i2c: F0 00 00 2D 01 1D [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: F0 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: F0 09 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: F0 09 00 2D 01 00 30 B1 1B 66 E0 85 7F 64 D0 [10:34:24]GetLastDocTimeStamp 1713090855 [10:34:24]current date 1713090864 [10:34:24]FM_GetShiftState [10:34:24]SAM_PROTO_GetShiftState [10:34:24]wFMCommunicate request_size=4 [10:34:24]MH_SAM_APDU [10:34:24]CAPDU: 80 13 01 00 [10:34:24]Write to MH i2c: E2 08 00 2E 01 80 13 01 00 00 00 00 00 AC [10:34:24]Write i2c OK [10:34:24]MH_I2C_Read... [10:34:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:24]Read from MH i2c: E2 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 0E 00 [10:34:24]MH_I2C_Read... [10:34:24]Read from MH i2c: E2 0E 00 2E 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 44 [10:34:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:34:24]wFMCommunicate OK [10:34:24]SAM_PROTO_GetShiftState done [10:34:24]FM_GetShiftState done [10:34:24]opened in 1713054696 [10:34:24]opened+sec_in_day 1713141096 [10:34:24]quantity*price = 130600 [10:34:24]sum+1 = 130601 [10:34:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1306.00 НСП 1% : 11.56 НДС 12% : 138.69 Наличными: 1306.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 97 14.04.2024 10:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112198 ФПД: 217565519913737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103424&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112198&fm=217565519913737&tin=02508201610067®Number=0000000000094237&sum=130600 [10:34:25]StoreToDocumentArchive [10:34:25]shift 357 fd 112198 [10:34:25]save to /storage/0357/doc_00112198 [10:34:25]save last doc name /storage/0357/doc_00112198 to /storage/kkm_last_doc_name [10:34:25]save OK [10:34:25]Clear old archive folders... [10:34:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:34:25]tlvbuf is 01784AA0 [10:34:25]SAM_PROTO_ClearQueue [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 09 00 00 [10:34:25]Write to MH i2c: E2 08 00 3B 01 80 09 00 00 00 00 00 00 AE [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 3B 01 00 90 00 B0 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]SAM_PROTO_ClearQueue done [10:34:25]KKMCreateOFDPacket [10:34:25]OFDProtocolAddRootSTLVToBuf [10:34:25]FM_MakeSignedData [10:34:25]FM_MakeSignedData [10:34:25]SAM_PROTO_SignData [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 0D 01 02 [10:34:25]Write to MH i2c: E2 08 00 3C 01 80 0D 01 02 00 00 00 00 B6 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 3C 01 00 90 00 B1 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=255 [10:34:25]MH_SAM_APDU [10: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 28 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 36 00 00 00 00 07 04 06 00 28 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B6 01 00 35 04 06 00 [10:34:25]Write to MH i2c: E2 02 01 3D 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 28 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 36 00 00 00 00 07 04 06 00 28 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B6 01 00 35 04 06 00 00 00 EA [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 3D 01 00 90 00 B2 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=11 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 0D 02 02 06 C5 DF EB 87 A3 09 [10:34:25]Write to MH i2c: E2 0E 00 3E 01 80 0D 02 02 06 00 C5 DF EB 87 A3 09 00 00 87 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 03 00 3E 01 00 90 00 B3 [10:34:25]RAPDU: 90 00 [10:34:25]wFMCommunicate OK [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 0D 03 02 [10:34:25]Write to MH i2c: E2 08 00 3F 01 80 0D 03 02 00 00 00 00 BB [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 0B 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 0B 00 3F 01 00 50 50 8F 87 7A 3B 3A 81 90 00 E2 [10:34:25]RAPDU: 50 50 8F 87 7A 3B 3A 81 90 00 [10:34:25]wFMCommunicate OK [10:34:25]SAM_PROTO_SignData done [10:34:25]FM_MakeSignedData done [10:34:25]CreateOFDProtocolMessage [10:34:25]wFMCommunicate request_size=4 [10:34:25]MH_SAM_APDU [10:34:25]CAPDU: 80 11 00 00 [10:34:25]Write to MH i2c: E2 08 00 40 01 80 11 00 00 00 00 00 00 BB [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:25]Read from MH i2c: E2 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 17 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: E2 17 00 40 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0C [10:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:34:25]wFMCommunicate OK [10:34:25]CreateOFDProtocolMessage done [10:34:25]OFDSenderStorePacket 112198 [10:34:25]StoreOFDPacket docnum=112198 [10:34:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 DD CA 08 01 43 66 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 28 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 36 00 00 00 00 07 04 06 00 28 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B6 01 00 35 04 06 00 C5 DF EB 87 A3 09 50 50 8F 87 7A 3B 3A 81 [10:34:25]CheckFolder [10:34:25]dirname=/storage/ofd_packets [10:34:25]CheckFolder done [10:34:25]ProducePacketName [10:34:25]name=ofd_packets/00112198 [10:34:25]NVStorageSaveData ofd_packets/00112198 [10:34:25]File name is /storage/ofd_packets/00112198 [10:34:25]Write 302 bytes [10:34:25]NVStorageSaveData done [10:34:25]OFDSenderStorePacket done [10:34:25]KKMCreateOFDPacket done [10:34:25]NVStorageSaveData kkm_last_timestamp [10:34:25]File name is /storage/kkm_last_timestamp [10:34:25]Write 4 bytes [10:34:25]NVStorageSaveData done [10:34:25]ExternCall_PrintAddStr [10:34:25]wPrintStart [10:34:25]Write to MH i2c: 01 00 00 41 01 42 [10:34:25]Write i2c OK [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 07 00 [10:34:25]MH_I2C_Read... [10:34:25]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [10:34:25]RasterBufferAndPrint [10:34:25]line Счет N : (1)48511 [10:34:25]line ИНН: 02508201610067 [10:34:25]line Контрольно-Кассовый Чек [10:34:25]line ПРОДАЖА [10:34:25]line ТРК (МРК, ГНК) : 31 [10:34:25]line Товар: 2710124130 [10:34:25]line SUPER 92-К-5 [10:34:25]line 20.000 * 65.30 [10:34:25]line = 1306.00 [10:34:25]line НДС 12% НСП 1% [10:34:25]line > о реализуемом товаре [10:34:25]line ИТОГО: 1306.00 [10:34:25]line НСП 1% : 11.56 [10:34:25]line НДС 12% : 138.69 [10:34:25]line Наличными: 1306.00 [10:34:25]line Безнал.: 0.00 [10:34:25]line Место: АЗС № 47 "Партнер Нефть" [10:34:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:34:25]line СНО: Общий режим [10:34:25]line Чек 97 14.04.2024 10:34 [10:34:25]line Смена: 357 ФФД: 1.0 [10:34:25]line ЗНМ: 0300000138 [10:34:25]line РНМ: 0000000000094237 [10:34:26]line Версия ККМ: 001 [10:34:26]line ФМ: 0000000000875019 [10:34:26]line ФД: 112198 [10:34:26]line ФПД: 217565519913737 [10:34:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103424&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112198&fm=217565519913737&tin=02508201610067®Number=0000000000094237&sum=130600 [10:34:26]written 0, free lines is 4095 [10:34:26]OFD Sender: Processing packet 112198 [packets to send 71, broken 70] [10:34:26]ProducePacketName [10:34:26]name=ofd_packets/00112198 [10:34:26]OFD Sender: To server: pG, [10:34:26]CommunicateWithHost lk.salyk.kg:30040 [10:34:26]ConnectInit lk.salyk.kg [10:34:26]Connected sock=10 [10:34:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 DD CA 08 01 43 66 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 28 FE 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 FE 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2D 36 00 00 00 00 07 04 06 00 28 FE 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 30 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B6 01 00 35 04 06 00 C5 DF EB 87 A3 09 50 50 8F 87 7A 3B 3A 81 [10:34:26]Write to MH i2c: 01 00 00 69 01 6A [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 07 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: 01 07 00 69 01 00 00 00 00 00 1C 0D 9A [10:34:26]RasterBufferAndPrint [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]line [10:34:26]written 0, free lines is 3366 [10:34:26]MH_Cut [10:34:26]Write to MH i2c: D1 01 00 70 01 01 43 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 01 00 [10:34:26]MH_I2C_Read... [10:34:26]Read from MH i2c: D1 01 00 70 01 00 42 [10:34:26]Write to MH i2c: 01 00 00 71 01 72 [10:34:26]Write i2c OK [10:34:26]MH_I2C_Read... [10:34:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FE D1 47 00 EE DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B6 01 00 F4 03 04 00 BC 58 1B 66 B6 04 01 00 00 03 1A E8 5C BF E2 1A 9D [10:34:26]CommunicateWithHost err = 0 [10:34:26]CheckOFDResponse [10:34:26]1017 (14) - 77093643461234 [10:34:26]1041 (16) - 0000000000875019 [10:34:26]1040 (4) - 112198 [10:34:26]1012 (4) - 14.04.2024 04:17 [10:34:26]1206 (1) - 0 [10:34:26]OFD Sender: Remove packet 112198 [10:34:26]ProducePacketName [10:34:26]name=ofd_packets/00112198 [10:34:26]NVStorageDeleteData [10:34:27]OFD Sender: No OFD packet to send [10:34:27]*** Cut start [10:34:27]*** Partial cut [10:34:27]*** CUTSNS_PIN = 1 [10:34:27]*** CUTSNS_PIN = 0 [10:34:27]*** Brake cut motor [10:34:27]Read from MH i2c: 01 [10:34:27]MH_I2C_Read... [10:34:27]*** Stop cut motor [10:34:27]*** Cut end [10:34:27]Read from MH i2c: 01 07 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: 01 07 00 71 01 00 00 00 00 00 FF 0F 87 [10:34:27]process_action close_receipt done [10:34:27]requested_data is exist [10:34:27]produce_requested_data [10:34:27]requested_item fm.sn is exist - process it [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 11 00 00 [10:34:27]Write to MH i2c: E2 08 00 72 01 80 11 00 00 00 00 00 00 ED [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:34:27]Read from MH i2c: E2 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 17 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 17 00 72 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [10:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:34:27]wFMCommunicate OK [10:34:27]requested_item fd.num is exist - process it [10:34:27]SAM_PROTO_GetFieldsCounters [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 13 00 00 [10:34:27]Write to MH i2c: E2 08 00 73 01 80 13 00 00 00 00 00 00 F0 [10:34:27]Write i2c OK [10:34:27]MH_I2C_Read... [10:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:34:27]Read from MH i2c: E2 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 62 00 [10:34:27]MH_I2C_Read... [10:34:27]Read from MH i2c: E2 62 00 73 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 46 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [10:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 46 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:34:27]wFMCommunicate OK [10:34:27]SAM_PROTO_GetFieldsCounters done [10:34:27]requested_item shift.num is exist - process it [10:34:27]requested_item shift.opened is exist - process it [10:34:27]req_shift_opened [10:34:27]FM_GetShiftState [10:34:27]SAM_PROTO_GetShiftState [10:34:27]wFMCommunicate request_size=4 [10:34:27]MH_SAM_APDU [10:34:27]CAPDU: 80 13 01 00 [10:34:27]Write to MH i2c: E2 08 00 74 01 80 13 01 00 00 00 00 00 F2 [10:34:28]Write i2c OK [10:34:28]MH_I2C_Read... [10:34:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:34:28]Read from MH i2c: E2 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 [10:34:28]MH_I2C_Read... [10:34:28]Read from MH i2c: E2 0E 00 74 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8A [10:34:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:34:28]wFMCommunicate OK [10:34:28]SAM_PROTO_GetShiftState done [10:34:28]FM_GetShiftState done [10:34:28]req_shift_opened done [10:34:28]requested_item shift.open_date is exist - process it [10:34:28]req_shift_open_date [10:34:28]req_shift_open_date done [10:34:28]produce_requested_data done [10:34:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112198,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:34:28]process_action_free close_receipt [10:34:28]json_value_free [10:34:28]json_value_free done [10:34:28]process_json_proto returns [10:34:28]Send response to host [10:34:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112198,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:34:28]free response buf [10:34:28]execute_script done [10:34:28]execute_script returns [10:34:28]free content buf [10:34:28]Sock 9.Close socket [10:34:28]Sock 9.Thread stoped [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: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:07]OFD Sender: No OFD packet to send [10:36:07]accept exits with 7 [10:36:07]New connection [10:36:07]New thread 3067198820 created [10:36:07]Thread 3067342180 joined [10:36:07]Waiting for new connection... [10:36:07] Sock 7.Parse request [10:36:07]Sock 7.Check first char [10:36:07]Sock 7.First char is OK [10:36:07]request: POST /json_proto HTTP/1.0 [10:36:07]Method: POST [10:36:07]URL: /json_proto [10:36:07]Method is POST - this is cgi request [10:36:07]url: /json_proto [10:36:07]query_string will be loaded in cgi processing [10:36:07]execute_cgi json_proto POST (null) [10:36:07]execute_cgi path=json_proto method=POST [10:36:07]POST find Content-Length [10:36:07]Host: 172.17.96.197:8080 [10:36:07]Content-Length: 676 [10:36:07]Content-Type: application/json [10:36:07] [10:36:07]POST finish read [10:36:07]Found Content-Length = 676 [10:36:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:36:07]execute_script... [10:36: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)48512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:36:07]POST & json_proto [10:36:07]process_json_proto [10:36:07]json parsed OK: [10:36:07]protocol is kg_v1.0 [10:36:07]action value=close_receipt [10:36:07]process_action close_receipt [10:36:07]cmd_close_receipt [10:36:07]MH_GetDate [10:36:07]Write to MH i2c: F0 00 00 75 01 65 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: F0 09 00 75 01 00 97 B1 1B 66 E0 85 7F 64 7F [10:36:07]GetLastDocTimeStamp 1713090864 [10:36:07]current date 1713090967 [10:36:07]FM_GetShiftState [10:36:07]SAM_PROTO_GetShiftState [10:36:07]wFMCommunicate request_size=4 [10:36:07]MH_SAM_APDU [10:36:07]CAPDU: 80 13 01 00 [10:36:07]Write to MH i2c: E2 08 00 76 01 80 13 01 00 00 00 00 00 F4 [10:36:07]Write i2c OK [10:36:07]MH_I2C_Read... [10:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:07]Read from MH i2c: E2 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 [10:36:07]MH_I2C_Read... [10:36:07]Read from MH i2c: E2 0E 00 76 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8C [10:36:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:36:07]wFMCommunicate OK [10:36:07]SAM_PROTO_GetShiftState done [10:36:07]FM_GetShiftState done [10:36:07]opened in 1713054696 [10:36:07]opened+sec_in_day 1713141096 [10:36:07]quantity*price = 50025 [10:36:07]sum+1 = 50026 [10:36:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 98 14.04.2024 10:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112199 ФПД: 218966337007868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103607&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112199&fm=218966337007868&tin=02508201610067®Number=0000000000094237&sum=50000 [10:36:08]StoreToDocumentArchive [10:36:08]shift 357 fd 112199 [10:36:08]save to /storage/0357/doc_00112199 [10:36:08]save last doc name /storage/0357/doc_00112199 to /storage/kkm_last_doc_name [10:36:08]save OK [10:36:08]Clear old archive folders... [10:36:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:08]tlvbuf is 01782350 [10:36:08]SAM_PROTO_ClearQueue [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 09 00 00 [10:36:08]Write to MH i2c: E2 08 00 83 01 80 09 00 00 00 00 00 00 F6 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 83 01 00 90 00 F8 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_ClearQueue done [10:36:08]KKMCreateOFDPacket [10:36:08]OFDProtocolAddRootSTLVToBuf [10:36:08]FM_MakeSignedData [10:36:08]FM_MakeSignedData [10:36:08]SAM_PROTO_SignData [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 01 02 [10:36:08]Write to MH i2c: E2 08 00 84 01 80 0D 01 02 00 00 00 00 FE [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 84 01 00 90 00 F9 [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=255 [10:36:08]MH_SAM_APDU [10:36: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 62 00 00 00 F4 03 04 00 97 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B6 01 00 35 04 06 00 C7 [10:36:08]Write to MH i2c: E2 02 01 85 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 62 00 00 00 F4 03 04 00 97 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B6 01 00 35 04 06 00 C7 00 00 F7 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 85 01 00 90 00 FA [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=10 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 02 02 05 26 12 BC 30 FC [10:36:08]Write to MH i2c: E2 0D 00 86 01 80 0D 02 02 05 00 26 12 BC 30 FC 00 00 2B [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 03 00 86 01 00 90 00 FB [10:36:08]RAPDU: 90 00 [10:36:08]wFMCommunicate OK [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 0D 03 02 [10:36:08]Write to MH i2c: E2 08 00 87 01 80 0D 03 02 00 00 00 00 03 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 0B 00 87 01 00 F2 0C 80 78 8E 8D 37 9D 90 00 E9 [10:36:08]RAPDU: F2 0C 80 78 8E 8D 37 9D 90 00 [10:36:08]wFMCommunicate OK [10:36:08]SAM_PROTO_SignData done [10:36:08]FM_MakeSignedData done [10:36:08]CreateOFDProtocolMessage [10:36:08]wFMCommunicate request_size=4 [10:36:08]MH_SAM_APDU [10:36:08]CAPDU: 80 11 00 00 [10:36:08]Write to MH i2c: E2 08 00 88 01 80 11 00 00 00 00 00 00 03 [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:08]Read from MH i2c: E2 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: E2 17 00 88 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 54 [10:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:36:08]wFMCommunicate OK [10:36:08]CreateOFDProtocolMessage done [10:36:08]OFDSenderStorePacket 112199 [10:36:08]StoreOFDPacket docnum=112199 [10:36:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EC 18 07 01 EB 5E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 62 00 00 00 F4 03 04 00 97 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B6 01 00 35 04 06 00 C7 26 12 BC 30 FC F2 0C 80 78 8E 8D 37 9D [10:36:08]CheckFolder [10:36:08]dirname=/storage/ofd_packets [10:36:08]CheckFolder done [10:36:08]ProducePacketName [10:36:08]name=ofd_packets/00112199 [10:36:08]NVStorageSaveData ofd_packets/00112199 [10:36:08]File name is /storage/ofd_packets/00112199 [10:36:08]Write 301 bytes [10:36:08]NVStorageSaveData done [10:36:08]OFDSenderStorePacket done [10:36:08]KKMCreateOFDPacket done [10:36:08]NVStorageSaveData kkm_last_timestamp [10:36:08]File name is /storage/kkm_last_timestamp [10:36:08]Write 4 bytes [10:36:08]NVStorageSaveData done [10:36:08]ExternCall_PrintAddStr [10:36:08]wPrintStart [10:36:08]Write to MH i2c: 01 00 00 89 01 8A [10:36:08]Write i2c OK [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 [10:36:08]MH_I2C_Read... [10:36:08]Read from MH i2c: 01 07 00 89 01 00 00 00 00 00 FF 0F 9F [10:36:08]RasterBufferAndPrint [10:36:08]line Счет N : (1)48512 [10:36:08]line ИНН: 02508201610067 [10:36:08]line Контрольно-Кассовый Чек [10:36:08]line ПРОДАЖА [10:36:08]line ТРК (МРК, ГНК) : 11 [10:36:08]line Товар: 2710124130 [10:36:08]line Аи-92-К-5 [10:36:08]line 7.780 * 64.30 [10:36:08]line = 500.25 [10:36:08]line НДС 12% НСП 1% [10:36:08]line > о реализуемом товаре [10:36:08]line ОКРУГЛЕНИЕ: -0.25 [10:36:08]line ИТОГО: 500.00 [10:36:08]line Внесено: 500.00 [10:36:08]line СДАЧА: 0.00 [10:36:08]line НСП 1% : 4.43 [10:36:08]line НДС 12% : 53.12 [10:36:08]line Наличными: 500.00 [10:36:08]line Безнал.: 0.00 [10:36:08]line Место: АЗС № 47 "Партнер Нефть" [10:36:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:36:08]line СНО: Общий режим [10:36:08]line Чек 98 14.04.2024 10:36 [10:36:08]line Смена: 357 ФФД: 1.0 [10:36:08]line ЗНМ: 0300000138 [10:36:08]line РНМ: 0000000000094237 [10:36:08]line Версия ККМ: 001 [10:36:08]line ФМ: 0000000000875019 [10:36:08]line ФД: 112199 [10:36:08]line ФПД: 218966337007868 [10:36:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103607&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112199&fm=218966337007868&tin=02508201610067®Number=0000000000094237&sum=50000 [10:36:09]OFD Sender: Processing packet 112199 [packets to send 71, broken 70] [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00112199 [10:36:09]OFD Sender: To server: pG, [10:36:09]CommunicateWithHost lk.salyk.kg:30040 [10:36:09]ConnectInit lk.salyk.kg [10:36:09]written 0, free lines is 4095 [10:36:09]Connected sock=10 [10:36:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EC 18 07 01 EB 5E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 62 00 00 00 F4 03 04 00 97 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B6 01 00 35 04 06 00 C7 26 12 BC 30 FC F2 0C 80 78 8E 8D 37 9D [10:36:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 84 F1 47 00 50 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B6 01 00 F4 03 04 00 23 59 1B 66 B6 04 01 00 00 6C B0 3B 6E F0 D3 34 AB [10:36:09]CommunicateWithHost err = 0 [10:36:09]CheckOFDResponse [10:36:09]1017 (14) - 77093643461234 [10:36:09]1041 (16) - 0000000000875019 [10:36:09]1040 (4) - 112199 [10:36:09]1012 (4) - 14.04.2024 04:18 [10:36:09]1206 (1) - 0 [10:36:09]OFD Sender: Remove packet 112199 [10:36:09]ProducePacketName [10:36:09]name=ofd_packets/00112199 [10:36:09]NVStorageDeleteData [10:36:09]Write to MH i2c: 01 00 00 B4 01 B5 [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: 01 07 00 B4 01 00 00 00 00 00 F2 0C BA [10:36:09]RasterBufferAndPrint [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]line [10:36:09]written 0, free lines is 3320 [10:36:09]MH_Cut [10:36:09]Write to MH i2c: D1 01 00 BB 01 01 8E [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 [10:36:09]MH_I2C_Read... [10:36:09]Read from MH i2c: D1 01 00 BB 01 00 8D [10:36:09]Write to MH i2c: 01 00 00 BC 01 BD [10:36:09]Write i2c OK [10:36:09]MH_I2C_Read... [10:36:10]OFD Sender: No OFD packet to send [10:36:10]*** Cut start [10:36:10]*** Partial cut [10:36:10]*** CUTSNS_PIN = 1 [10:36:10]*** CUTSNS_PIN = 0 [10:36:10]*** Brake cut motor [10:36:11]Read from MH i2c: 01 [10:36:11]MH_I2C_Read... [10:36:11]*** Stop cut motor [10:36:11]*** Cut end [10:36:11]Read from MH i2c: 01 07 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: 01 07 00 BC 01 00 00 00 00 00 FF 0F D2 [10:36:11]process_action close_receipt done [10:36:11]requested_data is exist [10:36:11]produce_requested_data [10:36:11]requested_item fm.sn is exist - process it [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 11 00 00 [10:36:11]Write to MH i2c: E2 08 00 BD 01 80 11 00 00 00 00 00 00 38 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 17 00 BD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [10:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:36:11]wFMCommunicate OK [10:36:11]requested_item fd.num is exist - process it [10:36:11]SAM_PROTO_GetFieldsCounters [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 00 00 [10:36:11]Write to MH i2c: E2 08 00 BE 01 80 13 00 00 00 00 00 00 3B [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 62 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 62 00 BE 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 47 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [10:36:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 47 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetFieldsCounters done [10:36:11]requested_item shift.num is exist - process it [10:36:11]requested_item shift.opened is exist - process it [10:36:11]req_shift_opened [10:36:11]FM_GetShiftState [10:36:11]SAM_PROTO_GetShiftState [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 01 00 [10:36:11]Write to MH i2c: E2 08 00 BF 01 80 13 01 00 00 00 00 00 3D [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 BF 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [10:36:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetShiftState done [10:36:11]FM_GetShiftState done [10:36:11]req_shift_opened done [10:36:11]requested_item shift.open_date is exist - process it [10:36:11]req_shift_open_date [10:36:11]req_shift_open_date done [10:36:11]produce_requested_data done [10:36:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112199,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:36:11]process_action_free close_receipt [10:36:11]json_value_free [10:36:11]json_value_free done [10:36:11]process_json_proto returns [10:36:11]Send response to host [10:36:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112199,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:36:11]free response buf [10:36:11]execute_script done [10:36:11]execute_script returns [10:36:11]free content buf [10:36:11]Sock 7.Close socket [10:36:11]Sock 7.Thread stoped [10:36:11]accept exits with 9 [10:36:11]New connection [10:36:11]New thread 3067342180 created [10:36:11]Thread 3067198820 joined [10:36:11]Waiting for new connection... [10:36:11] Sock 9.Parse request [10:36:11]Sock 9.Check first char [10:36:11]Sock 9.First char is OK [10:36:11]request: POST /json_proto HTTP/1.0 [10:36:11]Method: POST [10:36:11]URL: /json_proto [10:36:11]Method is POST - this is cgi request [10:36:11]url: /json_proto [10:36:11]query_string will be loaded in cgi processing [10:36:11]execute_cgi json_proto POST (null) [10:36:11]execute_cgi path=json_proto method=POST [10:36:11]POST find Content-Length [10:36:11]Host: 172.17.96.197:8080 [10:36:11]Content-Length: 660 [10:36:11]Content-Type: application/json [10:36:11] [10:36:11]POST finish read [10:36:11]Found Content-Length = 660 [10:36:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48513", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:11]execute_script... [10:36: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)48513", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:36:11]POST & json_proto [10:36:11]process_json_proto [10:36:11]json parsed OK: [10:36:11]protocol is kg_v1.0 [10:36:11]action value=close_receipt [10:36:11]process_action close_receipt [10:36:11]cmd_close_receipt [10:36:11]MH_GetDate [10:36:11]Write to MH i2c: F0 00 00 C0 01 B0 [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 09 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: F0 09 00 C0 01 00 9C B1 1B 66 E0 85 7F 64 CF [10:36:11]GetLastDocTimeStamp 1713090967 [10:36:11]current date 1713090972 [10:36:11]FM_GetShiftState [10:36:11]SAM_PROTO_GetShiftState [10:36:11]wFMCommunicate request_size=4 [10:36:11]MH_SAM_APDU [10:36:11]CAPDU: 80 13 01 00 [10:36:11]Write to MH i2c: E2 08 00 C1 01 80 13 01 00 00 00 00 00 3F [10:36:11]Write i2c OK [10:36:11]MH_I2C_Read... [10:36:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:11]Read from MH i2c: E2 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 [10:36:11]MH_I2C_Read... [10:36:11]Read from MH i2c: E2 0E 00 C1 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D7 [10:36:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:36:11]wFMCommunicate OK [10:36:11]SAM_PROTO_GetShiftState done [10:36:11]FM_GetShiftState done [10:36:11]opened in 1713054696 [10:36:11]opened+sec_in_day 1713141096 [10:36:11]quantity*price = 64300 [10:36:11]sum+1 = 64301 [10:36:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 Внесено: 1000.00 СДАЧА: 357.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 99 14.04.2024 10:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112200 ФПД: 215158966906466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112200&fm=215158966906466&tin=02508201610067®Number=0000000000094237&sum=64300 [10:36:13]StoreToDocumentArchive [10:36:13]shift 357 fd 112200 [10:36:13]save to /storage/0357/doc_00112200 [10:36:13]save last doc name /storage/0357/doc_00112200 to /storage/kkm_last_doc_name [10:36:13]save OK [10:36:13]Clear old archive folders... [10:36:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:36:13]tlvbuf is 017E5DE0 [10:36:13]SAM_PROTO_ClearQueue [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 09 00 00 [10:36:13]Write to MH i2c: E2 08 00 CE 01 80 09 00 00 00 00 00 00 41 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 CE 01 00 90 00 43 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_ClearQueue done [10:36:13]KKMCreateOFDPacket [10:36:13]OFDProtocolAddRootSTLVToBuf [10:36:13]FM_MakeSignedData [10:36:13]FM_MakeSignedData [10:36:13]SAM_PROTO_SignData [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 01 02 [10:36:13]Write to MH i2c: E2 08 00 CF 01 80 0D 01 02 00 00 00 00 49 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 CF 01 00 90 00 44 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]wFMCommunicate request_size=255 [10:36:13]MH_SAM_APDU [10:36: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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 9C B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B6 01 00 35 04 06 00 C3 [10:36:13]Write to MH i2c: E2 02 01 D0 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 9C B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B6 01 00 35 04 06 00 C3 00 00 8E [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 D0 01 00 90 00 45 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]wFMCommunicate request_size=10 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 02 02 05 AF 99 CA EE 62 [10:36:13]Write to MH i2c: E2 0D 00 D1 01 80 0D 02 02 05 00 AF 99 CA EE 62 00 00 B8 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 03 00 D1 01 00 90 00 46 [10:36:13]RAPDU: 90 00 [10:36:13]wFMCommunicate OK [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 0D 03 02 [10:36:13]Write to MH i2c: E2 08 00 D2 01 80 0D 03 02 00 00 00 00 4E [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0B 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 0B 00 D2 01 00 62 F4 73 BD 82 0F 1F D4 90 00 59 [10:36:13]RAPDU: 62 F4 73 BD 82 0F 1F D4 90 00 [10:36:13]wFMCommunicate OK [10:36:13]SAM_PROTO_SignData done [10:36:13]FM_MakeSignedData done [10:36:13]CreateOFDProtocolMessage [10:36:13]wFMCommunicate request_size=4 [10:36:13]MH_SAM_APDU [10:36:13]CAPDU: 80 11 00 00 [10:36:13]Write to MH i2c: E2 08 00 D3 01 80 11 00 00 00 00 00 00 4E [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:13]Read from MH i2c: E2 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: E2 17 00 D3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9F [10:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:36:13]wFMCommunicate OK [10:36:13]CreateOFDProtocolMessage done [10:36:13]OFDSenderStorePacket 112200 [10:36:13]StoreOFDPacket docnum=112200 [10:36:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 35 FD 07 01 CA 53 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 9C B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B6 01 00 35 04 06 00 C3 AF 99 CA EE 62 62 F4 73 BD 82 0F 1F D4 [10:36:13]CheckFolder [10:36:13]dirname=/storage/ofd_packets [10:36:13]CheckFolder done [10:36:13]ProducePacketName [10:36:13]name=ofd_packets/00112200 [10:36:13]NVStorageSaveData ofd_packets/00112200 [10:36:13]File name is /storage/ofd_packets/00112200 [10:36:13]Write 301 bytes [10:36:13]NVStorageSaveData done [10:36:13]OFDSenderStorePacket done [10:36:13]KKMCreateOFDPacket done [10:36:13]NVStorageSaveData kkm_last_timestamp [10:36:13]File name is /storage/kkm_last_timestamp [10:36:13]Write 4 bytes [10:36:13]NVStorageSaveData done [10:36:13]ExternCall_PrintAddStr [10:36:13]wPrintStart [10:36:13]Write to MH i2c: 01 00 00 D4 01 D5 [10:36:13]Write i2c OK [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 [10:36:13]MH_I2C_Read... [10:36:13]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [10:36:13]RasterBufferAndPrint [10:36:13]line Счет N : (1)48513 [10:36:13]line ИНН: 02508201610067 [10:36:13]line Контрольно-Кассовый Чек [10:36:13]line ПРОДАЖА [10:36:13]line ТРК (МРК, ГНК) : 42 [10:36:13]line Товар: 2710124130 [10:36:13]line Аи-92-К-5 [10:36:13]line 10.000 * 64.30 [10:36:13]line = 643.00 [10:36:13]line НДС 12% НСП 1% [10:36:13]line > о реализуемом товаре [10:36:13]line ИТОГО: 643.00 [10:36:14]line Внесено: 1000.00 [10:36:14]line СДАЧА: 357.00 [10:36:14]line НСП 1% : 5.69 [10:36:14]line НДС 12% : 68.28 [10:36:14]line Наличными: 643.00 [10:36:14]line Безнал.: 0.00 [10:36:14]line Место: АЗС № 47 "Партнер Нефть" [10:36:14]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:36:14]line СНО: Общий режим [10:36:14]line Чек 99 14.04.2024 10:36 [10:36:14]line Смена: 357 ФФД: 1.0 [10:36:14]line ЗНМ: 0300000138 [10:36:14]line РНМ: 0000000000094237 [10:36:14]line Версия ККМ: 001 [10:36:14]line ФМ: 0000000000875019 [10:36:14]line ФД: 112200 [10:36:14]line ФПД: 215158966906466 [10:36:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112200&fm=215158966906466&tin=02508201610067®Number=0000000000094237&sum=64300 [10:36:14]OFD Sender: Processing packet 112200 [packets to send 71, broken 70] [10:36:14]ProducePacketName [10:36:14]name=ofd_packets/00112200 [10:36:14]OFD Sender: To server: pG, [10:36:14]CommunicateWithHost lk.salyk.kg:30040 [10:36:14]ConnectInit lk.salyk.kg [10:36:14]written 0, free lines is 4095 [10:36:14]Connected sock=7 [10:36:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 35 FD 07 01 CA 53 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 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 9C B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B6 01 00 35 04 06 00 C3 AF 99 CA EE 62 62 F4 73 BD 82 0F 1F D4 [10:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 6D 44 47 00 8C D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B6 01 00 F4 03 04 00 28 59 1B 66 B6 04 01 00 00 7A 94 38 3A E4 3D BA 0E [10:36:14]CommunicateWithHost err = 0 [10:36:14]CheckOFDResponse [10:36:14]1017 (14) - 77093643461234 [10:36:14]1041 (16) - 0000000000875019 [10:36:14]1040 (4) - 112200 [10:36:14]1012 (4) - 14.04.2024 04:18 [10:36:14]1206 (1) - 0 [10:36:14]OFD Sender: Remove packet 112200 [10:36:14]ProducePacketName [10:36:14]name=ofd_packets/00112200 [10:36:14]NVStorageDeleteData [10:36:14]Write to MH i2c: 01 00 00 FE 01 FF [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: 01 07 00 FE 01 00 00 00 00 00 2C 0D 3F [10:36:14]RasterBufferAndPrint [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]line [10:36:14]written 0, free lines is 3389 [10:36:14]MH_Cut [10:36:14]Write to MH i2c: D1 01 00 05 02 01 D9 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 01 00 [10:36:14]MH_I2C_Read... [10:36:14]Read from MH i2c: D1 01 00 05 02 00 D8 [10:36:14]Write to MH i2c: 01 00 00 06 02 08 [10:36:14]Write i2c OK [10:36:14]MH_I2C_Read... [10:36:15]OFD Sender: No OFD packet to send [10:36:15]*** Cut start [10:36:15]*** Partial cut [10:36:15]*** CUTSNS_PIN = 1 [10:36:15]*** CUTSNS_PIN = 0 [10:36:15]*** Brake cut motor [10:36:15]Read from MH i2c: 01 [10:36:15]MH_I2C_Read... [10:36:15]*** Stop cut motor [10:36:15]*** Cut end [10:36:15]Read from MH i2c: 01 07 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: 01 07 00 06 02 00 00 00 00 00 FF 0F 1D [10:36:15]process_action close_receipt done [10:36:15]requested_data is exist [10:36:15]produce_requested_data [10:36:15]requested_item fm.sn is exist - process it [10:36:15]wFMCommunicate request_size=4 [10:36:15]MH_SAM_APDU [10:36:15]CAPDU: 80 11 00 00 [10:36:15]Write to MH i2c: E2 08 00 07 02 80 11 00 00 00 00 00 00 83 [10:36:15]Write i2c OK [10:36:15]MH_I2C_Read... [10:36:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:36:15]Read from MH i2c: E2 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 [10:36:15]MH_I2C_Read... [10:36:15]Read from MH i2c: E2 17 00 07 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D4 [10:36:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:36:15]wFMCommunicate OK [10:36:15]requested_item fd.num is exist - process it [10:36:15]SAM_PROTO_GetFieldsCounters [10:36:16]wFMCommunicate request_size=4 [10:36:16]MH_SAM_APDU [10:36:16]CAPDU: 80 13 00 00 [10:36:16]Write to MH i2c: E2 08 00 08 02 80 13 00 00 00 00 00 00 86 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 62 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 62 00 08 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 48 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [10:36:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 48 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:36:16]wFMCommunicate OK [10:36:16]SAM_PROTO_GetFieldsCounters done [10:36:16]requested_item shift.num is exist - process it [10:36:16]requested_item shift.opened is exist - process it [10:36:16]req_shift_opened [10:36:16]FM_GetShiftState [10:36:16]SAM_PROTO_GetShiftState [10:36:16]wFMCommunicate request_size=4 [10:36:16]MH_SAM_APDU [10:36:16]CAPDU: 80 13 01 00 [10:36:16]Write to MH i2c: E2 08 00 09 02 80 13 01 00 00 00 00 00 88 [10:36:16]Write i2c OK [10:36:16]MH_I2C_Read... [10:36:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:36:16]Read from MH i2c: E2 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 [10:36:16]MH_I2C_Read... [10:36:16]Read from MH i2c: E2 0E 00 09 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 20 [10:36:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:36:16]wFMCommunicate OK [10:36:16]SAM_PROTO_GetShiftState done [10:36:16]FM_GetShiftState done [10:36:16]req_shift_opened done [10:36:16]requested_item shift.open_date is exist - process it [10:36:16]req_shift_open_date [10:36:16]req_shift_open_date done [10:36:16]produce_requested_data done [10:36:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112200,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:36:16]process_action_free close_receipt [10:36:16]json_value_free [10:36:16]json_value_free done [10:36:16]process_json_proto returns [10:36:16]Send response to host [10:36:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112200,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:36:16]free response buf [10:36:16]execute_script done [10:36:16]execute_script returns [10:36:16]free content buf [10:36:16]Sock 9.Close socket [10:36:16]Sock 9.Thread stoped [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:12]accept exits with 10 [10:37:12]New connection [10:37:12]New thread 3067198820 created [10:37:12]Thread 3067342180 joined [10:37:12]Waiting for new connection... [10:37:12] Sock 10.Parse request [10:37:12]Sock 10.Check first char [10:37:12]Sock 10.First char is OK [10:37:12]request: POST /json_proto HTTP/1.0 [10:37:12]Method: POST [10:37:12]URL: /json_proto [10:37:12]Method is POST - this is cgi request [10:37:12]url: /json_proto [10:37:12]query_string will be loaded in cgi processing [10:37:12]execute_cgi json_proto POST (null) [10:37:12]execute_cgi path=json_proto method=POST [10:37:12]POST find Content-Length [10:37:12]Host: 172.17.96.197:8080 [10:37:12]Content-Length: 676 [10:37:12]Content-Type: application/json [10:37:12] [10:37:12]POST finish read [10:37:12]Found Content-Length = 676 [10:37:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.060, "sum" : 325.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]execute_script... [10: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)48514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.060, "sum" : 325.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 325.00, "total" : 325.00, "payments": [ { "type": 0, "sum" : 325.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:37:12]POST & json_proto [10:37:12]process_json_proto [10:37:12]json parsed OK: [10:37:12]protocol is kg_v1.0 [10:37:12]action value=close_receipt [10:37:12]process_action close_receipt [10:37:12]cmd_close_receipt [10:37:12]MH_GetDate [10:37:12]Write to MH i2c: F0 00 00 0A 02 FB [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: F0 09 00 0A 02 00 D9 B1 1B 66 E0 85 7F 64 57 [10:37:12]GetLastDocTimeStamp 1713090972 [10:37:12]current date 1713091033 [10:37:12]FM_GetShiftState [10:37:12]SAM_PROTO_GetShiftState [10:37:12]wFMCommunicate request_size=4 [10:37:12]MH_SAM_APDU [10:37:12]CAPDU: 80 13 01 00 [10:37:12]Write to MH i2c: E2 08 00 0B 02 80 13 01 00 00 00 00 00 8A [10:37:12]Write i2c OK [10:37:12]MH_I2C_Read... [10:37:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:12]Read from MH i2c: E2 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 [10:37:12]MH_I2C_Read... [10:37:12]Read from MH i2c: E2 0E 00 0B 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 22 [10:37:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:37:12]wFMCommunicate OK [10:37:12]SAM_PROTO_GetShiftState done [10:37:12]FM_GetShiftState done [10:37:12]opened in 1713054696 [10:37:12]opened+sec_in_day 1713141096 [10:37:12]quantity*price = 32535 [10:37:12]sum+1 = 32537 [10:37:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 325.00 Внесено: 325.00 СДАЧА: 0.00 НСП 1% : 2.88 НДС 12% : 34.55 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 100 14.04.2024 10:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112201 ФПД: 109184635023067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103713&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112201&fm=109184635023067&tin=02508201610067®Number=0000000000094237&sum=32500 [10:37:13]StoreToDocumentArchive [10:37:13]shift 357 fd 112201 [10:37:13]save to /storage/0357/doc_00112201 [10:37:13]save last doc name /storage/0357/doc_00112201 to /storage/kkm_last_doc_name [10:37:13]save OK [10:37:13]Clear old archive folders... [10:37:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:37:13]tlvbuf is 0177AC30 [10:37:13]SAM_PROTO_ClearQueue [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 09 00 00 [10:37:13]Write to MH i2c: E2 08 00 18 02 80 09 00 00 00 00 00 00 8C [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 18 02 00 90 00 8E [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]SAM_PROTO_ClearQueue done [10:37:13]KKMCreateOFDPacket [10:37:13]OFDProtocolAddRootSTLVToBuf [10:37:13]FM_MakeSignedData [10:37:13]FM_MakeSignedData [10:37:13]SAM_PROTO_SignData [10:37:13]wFMCommunicate request_size=4 [10:37:13]MH_SAM_APDU [10:37:13]CAPDU: 80 0D 01 02 [10:37:13]Write to MH i2c: E2 08 00 19 02 80 0D 01 02 00 00 00 00 94 [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:13]Read from MH i2c: E2 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 [10:37:13]MH_I2C_Read... [10:37:13]Read from MH i2c: E2 03 00 19 02 00 90 00 8F [10:37:13]RAPDU: 90 00 [10:37:13]wFMCommunicate OK [10:37:13]wFMCommunicate request_size=255 [10:37:13]MH_SAM_APDU [10:37: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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D9 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B6 01 00 35 04 06 00 63 [10:37:13]Write to MH i2c: E2 02 01 1A 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D9 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B6 01 00 35 04 06 00 63 00 00 0A [10:37:13]Write i2c OK [10:37:13]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 1A 02 00 90 00 90 [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=10 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 02 02 05 4D 87 62 AE DB [10:37:14]Write to MH i2c: E2 0D 00 1B 02 80 0D 02 02 05 00 4D 87 62 AE DB 00 00 60 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 03 00 1B 02 00 90 00 91 [10:37:14]RAPDU: 90 00 [10:37:14]wFMCommunicate OK [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 0D 03 02 [10:37:14]Write to MH i2c: E2 08 00 1C 02 80 0D 03 02 00 00 00 00 99 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 0B 00 1C 02 00 06 06 2C 60 0E F0 F6 77 90 00 9D [10:37:14]RAPDU: 06 06 2C 60 0E F0 F6 77 90 00 [10:37:14]wFMCommunicate OK [10:37:14]SAM_PROTO_SignData done [10:37:14]FM_MakeSignedData done [10:37:14]CreateOFDProtocolMessage [10:37:14]wFMCommunicate request_size=4 [10:37:14]MH_SAM_APDU [10:37:14]CAPDU: 80 11 00 00 [10:37:14]Write to MH i2c: E2 08 00 1D 02 80 11 00 00 00 00 00 00 99 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:14]Read from MH i2c: E2 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: E2 17 00 1D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EA [10:37:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:37:14]wFMCommunicate OK [10:37:14]CreateOFDProtocolMessage done [10:37:14]OFDSenderStorePacket 112201 [10:37:14]StoreOFDPacket docnum=112201 [10:37:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 50 D9 07 01 E9 51 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D9 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B6 01 00 35 04 06 00 63 4D 87 62 AE DB 06 06 2C 60 0E F0 F6 77 [10:37:14]CheckFolder [10:37:14]dirname=/storage/ofd_packets [10:37:14]CheckFolder done [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00112201 [10:37:14]NVStorageSaveData ofd_packets/00112201 [10:37:14]File name is /storage/ofd_packets/00112201 [10:37:14]Write 301 bytes [10:37:14]NVStorageSaveData done [10:37:14]OFDSenderStorePacket done [10:37:14]KKMCreateOFDPacket done [10:37:14]NVStorageSaveData kkm_last_timestamp [10:37:14]File name is /storage/kkm_last_timestamp [10:37:14]Write 4 bytes [10:37:14]NVStorageSaveData done [10:37:14]ExternCall_PrintAddStr [10:37:14]wPrintStart [10:37:14]Write to MH i2c: 01 00 00 1E 02 20 [10:37:14]Write i2c OK [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 [10:37:14]MH_I2C_Read... [10:37:14]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [10:37:14]RasterBufferAndPrint [10:37:14]line Счет N : (1)48514 [10:37:14]line ИНН: 02508201610067 [10:37:14]line Контрольно-Кассовый Чек [10:37:14]line ПРОДАЖА [10:37:14]line ТРК (МРК, ГНК) : 21 [10:37:14]line Товар: 2710124130 [10:37:14]line Аи-92-К-5 [10:37:14]line 5.060 * 64.30 [10:37:14]line = 325.36 [10:37:14]line НДС 12% НСП 1% [10:37:14]line > о реализуемом товаре [10:37:14]line ОКРУГЛЕНИЕ: -0.36 [10:37:14]line ИТОГО: 325.00 [10:37:14]line Внесено: 325.00 [10:37:14]line СДАЧА: 0.00 [10:37:14]line НСП 1% : 2.88 [10:37:14]line НДС 12% : 34.55 [10:37:14]line Наличными: 325.00 [10:37:14]line Безнал.: 0.00 [10:37:14]line Место: АЗС № 47 "Партнер Нефть" [10:37:14]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:37:14]line СНО: Общий режим [10:37:14]line Чек 100 14.04.2024 10:37 [10:37:14]line Смена: 357 ФФД: 1.0 [10:37:14]line ЗНМ: 0300000138 [10:37:14]line РНМ: 0000000000094237 [10:37:14]line Версия ККМ: 001 [10:37:14]line ФМ: 0000000000875019 [10:37:14]line ФД: 112201 [10:37:14]line ФПД: 109184635023067 [10:37:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103713&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112201&fm=109184635023067&tin=02508201610067®Number=0000000000094237&sum=32500 [10:37:14]written 0, free lines is 4095 [10:37:14]OFD Sender: Processing packet 112201 [packets to send 71, broken 70] [10:37:14]ProducePacketName [10:37:14]name=ofd_packets/00112201 [10:37:14]OFD Sender: To server: pG, [10:37:14]CommunicateWithHost lk.salyk.kg:30040 [10:37:14]ConnectInit lk.salyk.kg [10:37:14]Connected sock=9 [10:37:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 50 D9 07 01 E9 51 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 C4 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 18 7F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7F 0D 00 00 00 00 07 04 06 00 F4 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 D9 B1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B6 01 00 35 04 06 00 63 4D 87 62 AE DB 06 06 2C 60 0E F0 F6 77 [10:37:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5D A3 47 00 91 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B6 01 00 F4 03 04 00 64 59 1B 66 B6 04 01 00 00 A4 F4 10 44 01 54 CB C0 [10:37:15]CommunicateWithHost err = 0 [10:37:15]CheckOFDResponse [10:37:15]1017 (14) - 77093643461234 [10:37:15]1041 (16) - 0000000000875019 [10:37:15]1040 (4) - 112201 [10:37:15]1012 (4) - 14.04.2024 04:19 [10:37:15]1206 (1) - 0 [10:37:15]OFD Sender: Remove packet 112201 [10:37:15]ProducePacketName [10:37:15]name=ofd_packets/00112201 [10:37:15]NVStorageDeleteData [10:37:15]Write to MH i2c: 01 00 00 49 02 4B [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: 01 07 00 49 02 00 00 00 00 00 DC 0C 3A [10:37:15]RasterBufferAndPrint [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]line [10:37:15]written 0, free lines is 3298 [10:37:15]MH_Cut [10:37:15]Write to MH i2c: D1 01 00 50 02 01 24 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 [10:37:15]MH_I2C_Read... [10:37:15]Read from MH i2c: D1 01 00 50 02 00 23 [10:37:15]Write to MH i2c: 01 00 00 51 02 53 [10:37:15]Write i2c OK [10:37:15]MH_I2C_Read... [10:37:15]OFD Sender: No OFD packet to send [10:37:15]*** Cut start [10:37:15]*** Partial cut [10:37:15]*** CUTSNS_PIN = 1 [10:37:15]*** CUTSNS_PIN = 0 [10:37:16]*** Brake cut motor [10:37:16]Read from MH i2c: 01 [10:37:16]MH_I2C_Read... [10:37:16]*** Stop cut motor [10:37:16]*** Cut end [10:37:16]Read from MH i2c: 01 07 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: 01 07 00 51 02 00 00 00 00 00 FF 0F 68 [10:37:16]process_action close_receipt done [10:37:16]requested_data is exist [10:37:16]produce_requested_data [10:37:16]requested_item fm.sn is exist - process it [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 11 00 00 [10:37:16]Write to MH i2c: E2 08 00 52 02 80 11 00 00 00 00 00 00 CE [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 17 00 52 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1F [10:37:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:37:16]wFMCommunicate OK [10:37:16]requested_item fd.num is exist - process it [10:37:16]SAM_PROTO_GetFieldsCounters [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 00 00 [10:37:16]Write to MH i2c: E2 08 00 53 02 80 13 00 00 00 00 00 00 D1 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 62 00 53 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 49 B6 01 00 0E 04 04 00 65 01 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 82 [10:37:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 49 B6 01 00 0E 04 04 00 65 01 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 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetFieldsCounters done [10:37:16]requested_item shift.num is exist - process it [10:37:16]requested_item shift.opened is exist - process it [10:37:16]req_shift_opened [10:37:16]FM_GetShiftState [10:37:16]SAM_PROTO_GetShiftState [10:37:16]wFMCommunicate request_size=4 [10:37:16]MH_SAM_APDU [10:37:16]CAPDU: 80 13 01 00 [10:37:16]Write to MH i2c: E2 08 00 54 02 80 13 01 00 00 00 00 00 D3 [10:37:16]Write i2c OK [10:37:16]MH_I2C_Read... [10:37:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:16]Read from MH i2c: E2 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 [10:37:16]MH_I2C_Read... [10:37:16]Read from MH i2c: E2 0E 00 54 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6B [10:37:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:37:16]wFMCommunicate OK [10:37:16]SAM_PROTO_GetShiftState done [10:37:16]FM_GetShiftState done [10:37:16]req_shift_opened done [10:37:16]requested_item shift.open_date is exist - process it [10:37:16]req_shift_open_date [10:37:16]req_shift_open_date done [10:37:16]produce_requested_data done [10:37:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112201,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:37:16]process_action_free close_receipt [10:37:16]json_value_free [10:37:16]json_value_free done [10:37:16]process_json_proto returns [10:37:16]Send response to host [10:37:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112201,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:37:16]free response buf [10:37:16]execute_script done [10:37:16]execute_script returns [10:37:16]free content buf [10:37:16]Sock 10.Close socket [10:37:16]Sock 10.Thread stoped [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:19]accept exits with 7 [10:39:19]New connection [10:39:19]New thread 3067342180 created [10:39:19]Thread 3067198820 joined [10:39:19]Waiting for new connection... [10:39:19] Sock 7.Parse request [10:39:19]Sock 7.Check first char [10:39:19]Sock 7.First char is OK [10:39:19]request: POST /json_proto HTTP/1.0 [10:39:19]Method: POST [10:39:19]URL: /json_proto [10:39:19]Method is POST - this is cgi request [10:39:19]url: /json_proto [10:39:19]query_string will be loaded in cgi processing [10:39:19]execute_cgi json_proto POST (null) [10:39:19]execute_cgi path=json_proto method=POST [10:39:19]POST find Content-Length [10:39:19]Host: 172.17.96.197:8080 [10:39:19]Content-Length: 676 [10:39:19]Content-Type: application/json [10:39:19] [10:39:19]POST finish read [10:39:19]Found Content-Length = 676 [10:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 7.520, "sum" : 545.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 545.00, "payments": [ { "type": 0, "sum" : 545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:19]execute_script... [10:39: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)48516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 7.520, "sum" : 545.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 545.00, "payments": [ { "type": 0, "sum" : 545.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:19]POST & json_proto [10:39:19]process_json_proto [10:39:19]json parsed OK: [10:39:19]protocol is kg_v1.0 [10:39:19]action value=close_receipt [10:39:19]process_action close_receipt [10:39:19]cmd_close_receipt [10:39:19]MH_GetDate [10:39:19]Write to MH i2c: F0 00 00 55 02 46 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: F0 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: F0 09 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: F0 09 00 55 02 00 57 B2 1B 66 E0 85 7F 64 21 [10:39:19]GetLastDocTimeStamp 1713091033 [10:39:19]current date 1713091159 [10:39:19]FM_GetShiftState [10:39:19]SAM_PROTO_GetShiftState [10:39:19]wFMCommunicate request_size=4 [10:39:19]MH_SAM_APDU [10:39:19]CAPDU: 80 13 01 00 [10:39:19]Write to MH i2c: E2 08 00 56 02 80 13 01 00 00 00 00 00 D5 [10:39:19]Write i2c OK [10:39:19]MH_I2C_Read... [10:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:19]Read from MH i2c: E2 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 0E 00 [10:39:19]MH_I2C_Read... [10:39:19]Read from MH i2c: E2 0E 00 56 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6D [10:39:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:39:19]wFMCommunicate OK [10:39:19]SAM_PROTO_GetShiftState done [10:39:19]FM_GetShiftState done [10:39:19]opened in 1713054696 [10:39:19]opened+sec_in_day 1713141096 [10:39:19]quantity*price = 54520 [10:39:19]sum+1 = 54521 [10:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 545.00 Внесено: 700.00 СДАЧА: 155.00 НСП 1% : 4.82 НДС 12% : 57.90 Наличными: 545.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 101 14.04.2024 10:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112202 ФПД: 55680613662001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103919&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112202&fm=55680613662001&tin=02508201610067®Number=0000000000094237&sum=54500 [10:39:20]StoreToDocumentArchive [10:39:20]shift 357 fd 112202 [10:39:20]save to /storage/0357/doc_00112202 [10:39:20]save last doc name /storage/0357/doc_00112202 to /storage/kkm_last_doc_name [10:39:20]save OK [10:39:20]Clear old archive folders... [10:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:39:20]tlvbuf is 017D5EA0 [10:39:20]SAM_PROTO_ClearQueue [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 09 00 00 [10:39:20]Write to MH i2c: E2 08 00 63 02 80 09 00 00 00 00 00 00 D7 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 63 02 00 90 00 D9 [10:39:20]RAPDU: 90 00 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_ClearQueue done [10:39:20]KKMCreateOFDPacket [10:39:20]OFDProtocolAddRootSTLVToBuf [10:39:20]FM_MakeSignedData [10:39:20]FM_MakeSignedData [10:39:20]SAM_PROTO_SignData [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 0D 01 02 [10:39:20]Write to MH i2c: E2 08 00 64 02 80 0D 01 02 00 00 00 00 DF [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 64 02 00 90 00 DA [10:39:20]RAPDU: 90 00 [10:39:20]wFMCommunicate OK [10:39:20]wFMCommunicate request_size=255 [10:39:20]MH_SAM_APDU [10:39:20]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 1D 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F8 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 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 57 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B6 01 00 35 04 06 00 32 [10:39:20]Write to MH i2c: E2 02 01 65 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 60 1D 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F8 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 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 57 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B6 01 00 35 04 06 00 32 00 00 31 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 65 02 00 90 00 DB [10:39:20]RAPDU: 90 00 [10:39:20]wFMCommunicate OK [10:39:20]wFMCommunicate request_size=10 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 0D 02 02 05 A4 27 32 BD 31 [10:39:20]Write to MH i2c: E2 0D 00 66 02 80 0D 02 02 05 00 A4 27 32 BD 31 00 00 D7 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 03 00 66 02 00 90 00 DC [10:39:20]RAPDU: 90 00 [10:39:20]wFMCommunicate OK [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 0D 03 02 [10:39:20]Write to MH i2c: E2 08 00 67 02 80 0D 03 02 00 00 00 00 E4 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0B 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 0B 00 67 02 00 4B 92 55 1E 15 08 D3 49 90 00 6E [10:39:20]RAPDU: 4B 92 55 1E 15 08 D3 49 90 00 [10:39:20]wFMCommunicate OK [10:39:20]SAM_PROTO_SignData done [10:39:20]FM_MakeSignedData done [10:39:20]CreateOFDProtocolMessage [10:39:20]wFMCommunicate request_size=4 [10:39:20]MH_SAM_APDU [10:39:20]CAPDU: 80 11 00 00 [10:39:20]Write to MH i2c: E2 08 00 68 02 80 11 00 00 00 00 00 00 E4 [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:20]Read from MH i2c: E2 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: E2 17 00 68 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 35 [10:39:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:39:20]wFMCommunicate OK [10:39:20]CreateOFDProtocolMessage done [10:39:20]OFDSenderStorePacket 112202 [10:39:20]StoreOFDPacket docnum=112202 [10:39:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 91 BD 07 01 6B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F8 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 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 57 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B6 01 00 35 04 06 00 32 A4 27 32 BD 31 4B 92 55 1E 15 08 D3 49 [10:39:20]CheckFolder [10:39:20]dirname=/storage/ofd_packets [10:39:20]CheckFolder done [10:39:20]ProducePacketName [10:39:20]name=ofd_packets/00112202 [10:39:20]NVStorageSaveData ofd_packets/00112202 [10:39:20]File name is /storage/ofd_packets/00112202 [10:39:20]Write 301 bytes [10:39:20]NVStorageSaveData done [10:39:20]OFDSenderStorePacket done [10:39:20]KKMCreateOFDPacket done [10:39:20]NVStorageSaveData kkm_last_timestamp [10:39:20]File name is /storage/kkm_last_timestamp [10:39:20]Write 4 bytes [10:39:20]NVStorageSaveData done [10:39:20]ExternCall_PrintAddStr [10:39:20]wPrintStart [10:39:20]Write to MH i2c: 01 00 00 69 02 6B [10:39:20]Write i2c OK [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 [10:39:20]MH_I2C_Read... [10:39:20]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [10:39:20]RasterBufferAndPrint [10:39:20]line Счет N : (1)48516 [10:39:20]line ИНН: 02508201610067 [10:39:20]line Контрольно-Кассовый Чек [10:39:20]line ПРОДАЖА [10:39:20]line ТРК (МРК, ГНК) : 12 [10:39:20]line Товар: 2710124500 [10:39:20]line Аи-95-К-5 [10:39:20]line 7.520 * 72.50 [10:39:20]line = 545.20 [10:39:20]line НДС 12% НСП 1% [10:39:20]line > о реализуемом товаре [10:39:20]line ОКРУГЛЕНИЕ: -0.20 [10:39:20]line ИТОГО: 545.00 [10:39:20]line Внесено: 700.00 [10:39:20]line СДАЧА: 155.00 [10:39:20]line НСП 1% : 4.82 [10:39:20]line НДС 12% : 57.90 [10:39:20]line Наличными: 545.00 [10:39:20]line Безнал.: 0.00 [10:39:20]line Место: АЗС № 47 "Партнер Нефть" [10:39:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:39:20]line СНО: Общий режим [10:39:20]line Чек 101 14.04.2024 10:39 [10:39:20]line Смена: 357 ФФД: 1.0 [10:39:20]line ЗНМ: 0300000138 [10:39:20]line РНМ: 0000000000094237 [10:39:20]line Версия ККМ: 001 [10:39:20]line ФМ: 0000000000875019 [10:39:20]line ФД: 112202 [10:39:20]line ФПД: 55680613662001 [10:39:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103919&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112202&fm=55680613662001&tin=02508201610067®Number=0000000000094237&sum=54500 [10:39:21]OFD Sender: Processing packet 112202 [packets to send 71, broken 70] [10:39:21]ProducePacketName [10:39:21]name=ofd_packets/00112202 [10:39:21]OFD Sender: To server: pG, [10:39:21]CommunicateWithHost lk.salyk.kg:30040 [10:39:21]ConnectInit lk.salyk.kg [10:39:21]written 0, free lines is 4095 [10:39:21]Connected sock=10 [10:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 91 BD 07 01 6B 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1D 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 F8 D4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 D4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9E 16 00 00 00 00 07 04 06 00 E4 D4 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 57 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B6 01 00 35 04 06 00 32 A4 27 32 BD 31 4B 92 55 1E 15 08 D3 49 [10:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B7 DF 47 00 5E 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 38 37 35 30 31 39 10 04 04 00 4A B6 01 00 F4 03 04 00 E3 59 1B 66 B6 04 01 00 00 3D A6 CA 4A A9 46 9F 20 [10:39:21]CommunicateWithHost err = 0 [10:39:21]CheckOFDResponse [10:39:21]1017 (14) - 77093643461234 [10:39:21]1041 (16) - 0000000000875019 [10:39:21]1040 (4) - 112202 [10:39:21]1012 (4) - 14.04.2024 04:21 [10:39:21]1206 (1) - 0 [10:39:21]OFD Sender: Remove packet 112202 [10:39:21]ProducePacketName [10:39:21]name=ofd_packets/00112202 [10:39:21]NVStorageDeleteData [10:39:21]Write to MH i2c: 01 00 00 94 02 96 [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: 01 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: 01 07 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: 01 07 00 94 02 00 00 00 00 00 E4 0C 8D [10:39:21]RasterBufferAndPrint [10:39:21]line [10:39:21]line [10:39:21]line [10:39:21]line [10:39:21]line [10:39:21]written 0, free lines is 3307 [10:39:21]MH_Cut [10:39:21]Write to MH i2c: D1 01 00 9B 02 01 6F [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: D1 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: D1 01 00 [10:39:21]MH_I2C_Read... [10:39:21]Read from MH i2c: D1 01 00 9B 02 00 6E [10:39:21]Write to MH i2c: 01 00 00 9C 02 9E [10:39:21]Write i2c OK [10:39:21]MH_I2C_Read... [10:39:22]OFD Sender: No OFD packet to send [10:39:22]*** Cut start [10:39:22]*** Partial cut [10:39:22]*** CUTSNS_PIN = 1 [10:39:22]*** CUTSNS_PIN = 0 [10:39:22]*** Brake cut motor [10:39:22]Read from MH i2c: 01 [10:39:22]MH_I2C_Read... [10:39:22]*** Stop cut motor [10:39:22]*** Cut end [10:39:22]Read from MH i2c: 01 07 00 [10:39:22]MH_I2C_Read... [10:39:22]Read from MH i2c: 01 07 00 9C 02 00 00 00 00 00 FF 0F B3 [10:39:22]process_action close_receipt done [10:39:22]requested_data is exist [10:39:22]produce_requested_data [10:39:22]requested_item fm.sn is exist - process it [10:39:22]wFMCommunicate request_size=4 [10:39:22]MH_SAM_APDU [10:39:22]CAPDU: 80 11 00 00 [10:39:22]Write to MH i2c: E2 08 00 9D 02 80 11 00 00 00 00 00 00 19 [10:39:22]Write i2c OK [10:39:22]MH_I2C_Read... [10:39:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 17 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 17 00 9D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6A [10:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:39:23]wFMCommunicate OK [10:39:23]requested_item fd.num is exist - process it [10:39:23]SAM_PROTO_GetFieldsCounters [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 13 00 00 [10:39:23]Write to MH i2c: E2 08 00 9E 02 80 13 00 00 00 00 00 00 1C [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 62 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 62 00 9E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4A B6 01 00 0E 04 04 00 65 01 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 D1 [10:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4A B6 01 00 0E 04 04 00 65 01 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 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_GetFieldsCounters done [10:39:23]requested_item shift.num is exist - process it [10:39:23]requested_item shift.opened is exist - process it [10:39:23]req_shift_opened [10:39:23]FM_GetShiftState [10:39:23]SAM_PROTO_GetShiftState [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 13 01 00 [10:39:23]Write to MH i2c: E2 08 00 9F 02 80 13 01 00 00 00 00 00 1E [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0E 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0E 00 9F 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B6 [10:39:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_GetShiftState done [10:39:23]FM_GetShiftState done [10:39:23]req_shift_opened done [10:39:23]requested_item shift.open_date is exist - process it [10:39:23]req_shift_open_date [10:39:23]req_shift_open_date done [10:39:23]produce_requested_data done [10:39:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112202,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:39:23]process_action_free close_receipt [10:39:23]json_value_free [10:39:23]json_value_free done [10:39:23]process_json_proto returns [10:39:23]Send response to host [10:39:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112202,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:39:23]free response buf [10:39:23]execute_script done [10:39:23]execute_script returns [10:39:23]free content buf [10:39:23]Sock 7.Close socket [10:39:23]Sock 7.Thread stoped [10:39:27]OFD Sender: No OFD packet to send [10:39:32]OFD Sender: No OFD packet to send [10:39:37]OFD Sender: No OFD packet to send [10:39:41]accept exits with 9 [10:39:41]New connection [10:39:41]New thread 3067198820 created [10:39:41]Thread 3067342180 joined [10:39:41]Waiting for new connection... [10:39:41] Sock 9.Parse request [10:39:41]Sock 9.Check first char [10:39:41]Sock 9.First char is OK [10:39:41]request: POST /json_proto HTTP/1.0 [10:39:41]Method: POST [10:39:41]URL: /json_proto [10:39:41]Method is POST - this is cgi request [10:39:41]url: /json_proto [10:39:41]query_string will be loaded in cgi processing [10:39:41]execute_cgi json_proto POST (null) [10:39:41]execute_cgi path=json_proto method=POST [10:39:41]POST find Content-Length [10:39:41]Host: 172.17.96.197:8080 [10:39:41]Content-Length: 674 [10:39:41]Content-Type: application/json [10:39:41] [10:39:41]POST finish read [10:39:41]Found Content-Length = 674 [10:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48515", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:39:41]execute_script... [10:39: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)48515", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:39:41]POST & json_proto [10:39:41]process_json_proto [10:39:41]json parsed OK: [10:39:41]protocol is kg_v1.0 [10:39:41]action value=close_receipt [10:39:41]process_action close_receipt [10:39:41]cmd_close_receipt [10:39:41]MH_GetDate [10:39:41]Write to MH i2c: F0 00 00 A0 02 91 [10:39:41]Write i2c OK [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 09 00 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: F0 09 00 A0 02 00 6E B2 1B 66 E0 85 7F 64 83 [10:39:41]GetLastDocTimeStamp 1713091159 [10:39:41]current date 1713091182 [10:39:41]FM_GetShiftState [10:39:41]SAM_PROTO_GetShiftState [10:39:41]wFMCommunicate request_size=4 [10:39:41]MH_SAM_APDU [10:39:41]CAPDU: 80 13 01 00 [10:39:41]Write to MH i2c: E2 08 00 A1 02 80 13 01 00 00 00 00 00 20 [10:39:41]Write i2c OK [10:39:41]MH_I2C_Read... [10:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:41]Read from MH i2c: E2 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: E2 0E 00 [10:39:41]MH_I2C_Read... [10:39:41]Read from MH i2c: E2 0E 00 A1 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B8 [10:39:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:39:41]wFMCommunicate OK [10:39:41]SAM_PROTO_GetShiftState done [10:39:41]FM_GetShiftState done [10:39:41]opened in 1713054696 [10:39:41]opened+sec_in_day 1713141096 [10:39:41]quantity*price = 100039 [10:39:41]sum+1 = 100041 [10:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 102 14.04.2024 10:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112203 ФПД: 131628345436898 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103942&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112203&fm=131628345436898&tin=02508201610067®Number=0000000000094237&sum=100000 [10:39:43]StoreToDocumentArchive [10:39:43]shift 357 fd 112203 [10:39:43]save to /storage/0357/doc_00112203 [10:39:43]save last doc name /storage/0357/doc_00112203 to /storage/kkm_last_doc_name [10:39:43]save OK [10:39:43]Clear old archive folders... [10:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:39:43]tlvbuf is 01837B80 [10:39:43]SAM_PROTO_ClearQueue [10:39:43]wFMCommunicate request_size=4 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 09 00 00 [10:39:43]Write to MH i2c: E2 08 00 AE 02 80 09 00 00 00 00 00 00 22 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 AE 02 00 90 00 24 [10:39:43]RAPDU: 90 00 [10:39:43]wFMCommunicate OK [10:39:43]SAM_PROTO_ClearQueue done [10:39:43]KKMCreateOFDPacket [10:39:43]OFDProtocolAddRootSTLVToBuf [10:39:43]FM_MakeSignedData [10:39:43]FM_MakeSignedData [10:39:43]SAM_PROTO_SignData [10:39:43]wFMCommunicate request_size=4 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 0D 01 02 [10:39:43]Write to MH i2c: E2 08 00 AF 02 80 0D 01 02 00 00 00 00 2A [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 AF 02 00 90 00 25 [10:39:43]RAPDU: 90 00 [10:39:43]wFMCommunicate OK [10:39:43]wFMCommunicate request_size=255 [10:39:43]MH_SAM_APDU [10:39:43]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 66 00 00 00 F4 03 04 00 6E B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4B B6 01 00 35 04 06 00 [10:39:43]Write to MH i2c: E2 02 01 B0 02 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 66 00 00 00 F4 03 04 00 6E B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4B B6 01 00 35 04 06 00 00 00 AA [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 B0 02 00 90 00 26 [10:39:43]RAPDU: 90 00 [10:39:43]wFMCommunicate OK [10:39:43]wFMCommunicate request_size=11 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 0D 02 02 06 77 B7 1C C5 AA E2 [10:39:43]Write to MH i2c: E2 0E 00 B1 02 80 0D 02 02 06 00 77 B7 1C C5 AA E2 00 00 D4 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 03 00 B1 02 00 90 00 27 [10:39:43]RAPDU: 90 00 [10:39:43]wFMCommunicate OK [10:39:43]wFMCommunicate request_size=4 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 0D 03 02 [10:39:43]Write to MH i2c: E2 08 00 B2 02 80 0D 03 02 00 00 00 00 2F [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 0B 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 0B 00 B2 02 00 5F CD FC F2 AB 85 BD C4 90 00 FB [10:39:43]RAPDU: 5F CD FC F2 AB 85 BD C4 90 00 [10:39:43]wFMCommunicate OK [10:39:43]SAM_PROTO_SignData done [10:39:43]FM_MakeSignedData done [10:39:43]CreateOFDProtocolMessage [10:39:43]wFMCommunicate request_size=4 [10:39:43]MH_SAM_APDU [10:39:43]CAPDU: 80 11 00 00 [10:39:43]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:43]Read from MH i2c: E2 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 17 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 80 [10:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:39:43]wFMCommunicate OK [10:39:43]CreateOFDProtocolMessage done [10:39:43]OFDSenderStorePacket 112203 [10:39:43]StoreOFDPacket docnum=112203 [10:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 5F 12 08 01 AD 11 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 66 00 00 00 F4 03 04 00 6E B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4B B6 01 00 35 04 06 00 77 B7 1C C5 AA E2 5F CD FC F2 AB 85 BD C4 [10:39:43]CheckFolder [10:39:43]dirname=/storage/ofd_packets [10:39:43]CheckFolder done [10:39:43]ProducePacketName [10:39:43]name=ofd_packets/00112203 [10:39:43]NVStorageSaveData ofd_packets/00112203 [10:39:43]File name is /storage/ofd_packets/00112203 [10:39:43]Write 302 bytes [10:39:43]NVStorageSaveData done [10:39:43]OFDSenderStorePacket done [10:39:43]KKMCreateOFDPacket done [10:39:43]NVStorageSaveData kkm_last_timestamp [10:39:43]File name is /storage/kkm_last_timestamp [10:39:43]Write 4 bytes [10:39:43]NVStorageSaveData done [10:39:43]ExternCall_PrintAddStr [10:39:43]wPrintStart [10:39:43]Write to MH i2c: 01 00 00 B4 02 B6 [10:39:43]Write i2c OK [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 07 00 [10:39:43]MH_I2C_Read... [10:39:43]Read from MH i2c: 01 07 00 B4 02 00 00 00 00 00 FF 0F CB [10:39:43]RasterBufferAndPrint [10:39:43]line Счет N : (1)48515 [10:39:43]line ИНН: 02508201610067 [10:39:43]line Контрольно-Кассовый Чек [10:39:43]line ПРОДАЖА [10:39:43]line ТРК (МРК, ГНК) : 31 [10:39:43]line Товар: 2710124130 [10:39:43]line SUPER 92-К-5 [10:39:43]line 15.320 * 65.30 [10:39:43]line = 1000.40 [10:39:43]line НДС 12% НСП 1% [10:39:43]line > о реализуемом товаре [10:39:43]line ОКРУГЛЕНИЕ: -0.40 [10:39:43]line ИТОГО: 1000.00 [10:39:43]line Внесено: 1000.00 [10:39:43]line СДАЧА: 0.00 [10:39:43]line НСП 1% : 8.85 [10:39:43]line НДС 12% : 106.24 [10:39:43]line Наличными: 1000.00 [10:39:43]line Безнал.: 0.00 [10:39:43]line Место: АЗС № 47 "Партнер Нефть" [10:39:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:39:43]line СНО: Общий режим [10:39:43]line Чек 102 14.04.2024 10:39 [10:39:43]line Смена: 357 ФФД: 1.0 [10:39:43]line ЗНМ: 0300000138 [10:39:43]line РНМ: 0000000000094237 [10:39:43]line Версия ККМ: 001 [10:39:43]line ФМ: 0000000000875019 [10:39:43]line ФД: 112203 [10:39:43]line ФПД: 131628345436898 [10:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T103942&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112203&fm=131628345436898&tin=02508201610067®Number=0000000000094237&sum=100000 [10:39:43]OFD Sender: Processing packet 112203 [packets to send 71, broken 70] [10:39:43]ProducePacketName [10:39:43]name=ofd_packets/00112203 [10:39:43]OFD Sender: To server: pG, [10:39:43]CommunicateWithHost lk.salyk.kg:30040 [10:39:43]ConnectInit lk.salyk.kg [10:39:43]written 0, free lines is 4095 [10:39:44]Connected sock=10 [10:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 5F 12 08 01 AD 11 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 66 00 00 00 F4 03 04 00 6E B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4B B6 01 00 35 04 06 00 77 B7 1C C5 AA E2 5F CD FC F2 AB 85 BD C4 [10:39:44]Write to MH i2c: 01 00 00 DF 02 E1 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 07 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: 01 07 00 DF 02 00 00 00 00 00 E4 0C D8 [10:39:44]RasterBufferAndPrint [10:39:44]line [10:39:44]line [10:39:44]line [10:39:44]line [10:39:44]line [10:39:44]written 0, free lines is 3306 [10:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 41 F4 47 00 BE 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 38 37 35 30 31 39 10 04 04 00 4B B6 01 00 F4 03 04 00 FA 59 1B 66 B6 04 01 00 00 DC 88 E3 71 B9 89 D4 58 [10:39:44]CommunicateWithHost err = 0 [10:39:44]CheckOFDResponse [10:39:44]1017 (14) - 77093643461234 [10:39:44]1041 (16) - 0000000000875019 [10:39:44]1040 (4) - 112203 [10:39:44]1012 (4) - 14.04.2024 04:22 [10:39:44]1206 (1) - 0 [10:39:44]OFD Sender: Remove packet 112203 [10:39:44]ProducePacketName [10:39:44]name=ofd_packets/00112203 [10:39:44]NVStorageDeleteData [10:39:44]MH_Cut [10:39:44]Write to MH i2c: D1 01 00 E6 02 01 BA [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: D1 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: D1 01 00 [10:39:44]MH_I2C_Read... [10:39:44]Read from MH i2c: D1 01 00 E6 02 00 B9 [10:39:44]Write to MH i2c: 01 00 00 E7 02 E9 [10:39:44]Write i2c OK [10:39:44]MH_I2C_Read... [10:39:44]OFD Sender: No OFD packet to send [10:39:45]*** Cut start [10:39:45]*** Partial cut [10:39:45]*** CUTSNS_PIN = 1 [10:39:45]*** CUTSNS_PIN = 0 [10:39:45]*** Brake cut motor [10:39:45]Read from MH i2c: 01 [10:39:45]MH_I2C_Read... [10:39:45]*** Stop cut motor [10:39:45]*** Cut end [10:39:45]Read from MH i2c: 01 07 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: 01 07 00 E7 02 00 00 00 00 00 FF 0F FE [10:39:45]process_action close_receipt done [10:39:45]requested_data is exist [10:39:45]produce_requested_data [10:39:45]requested_item fm.sn is exist - process it [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 11 00 00 [10:39:45]Write to MH i2c: E2 08 00 E8 02 80 11 00 00 00 00 00 00 64 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:45]Read from MH i2c: E2 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 [10:39:45]MH_I2C_Read... [10:39:45]Read from MH i2c: E2 17 00 E8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B5 [10:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:39:45]wFMCommunicate OK [10:39:45]requested_item fd.num is exist - process it [10:39:45]SAM_PROTO_GetFieldsCounters [10:39:45]wFMCommunicate request_size=4 [10:39:45]MH_SAM_APDU [10:39:45]CAPDU: 80 13 00 00 [10:39:45]Write to MH i2c: E2 08 00 E9 02 80 13 00 00 00 00 00 00 67 [10:39:45]Write i2c OK [10:39:45]MH_I2C_Read... [10:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:46]Read from MH i2c: E2 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 62 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 62 00 E9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4B B6 01 00 0E 04 04 00 65 01 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 20 [10:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4B B6 01 00 0E 04 04 00 65 01 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 [10:39:46]wFMCommunicate OK [10:39:46]SAM_PROTO_GetFieldsCounters done [10:39:46]requested_item shift.num is exist - process it [10:39:46]requested_item shift.opened is exist - process it [10:39:46]req_shift_opened [10:39:46]FM_GetShiftState [10:39:46]SAM_PROTO_GetShiftState [10:39:46]wFMCommunicate request_size=4 [10:39:46]MH_SAM_APDU [10:39:46]CAPDU: 80 13 01 00 [10:39:46]Write to MH i2c: E2 08 00 EA 02 80 13 01 00 00 00 00 00 69 [10:39:46]Write i2c OK [10:39:46]MH_I2C_Read... [10:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:46]Read from MH i2c: E2 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 0E 00 [10:39:46]MH_I2C_Read... [10:39:46]Read from MH i2c: E2 0E 00 EA 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 01 [10:39:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:39:46]wFMCommunicate OK [10:39:46]SAM_PROTO_GetShiftState done [10:39:46]FM_GetShiftState done [10:39:46]req_shift_opened done [10:39:46]requested_item shift.open_date is exist - process it [10:39:46]req_shift_open_date [10:39:46]req_shift_open_date done [10:39:46]produce_requested_data done [10:39:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112203,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:39:46]process_action_free close_receipt [10:39:46]json_value_free [10:39:46]json_value_free done [10:39:46]process_json_proto returns [10:39:46]Send response to host [10:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112203,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:39:46]free response buf [10:39:46]execute_script done [10:39:46]execute_script returns [10:39:46]free content buf [10:39:46]Sock 9.Close socket [10:39:46]Sock 9.Thread stoped [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:32]accept exits with 7 [10:40:32]New connection [10:40:32]New thread 3067342180 created [10:40:32]Thread 3067198820 joined [10:40:32]Waiting for new connection... [10:40:32] Sock 7.Parse request [10:40:32]Sock 7.Check first char [10:40:32]Sock 7.First char is OK [10:40:32]request: POST /json_proto HTTP/1.0 [10:40:32]Method: POST [10:40:32]URL: /json_proto [10:40:32]Method is POST - this is cgi request [10:40:32]url: /json_proto [10:40:32]query_string will be loaded in cgi processing [10:40:32]execute_cgi json_proto POST (null) [10:40:32]execute_cgi path=json_proto method=POST [10:40:32]POST find Content-Length [10:40:32]Host: 172.17.96.197:8080 [10:40:32]Content-Length: 815 [10:40:32]Content-Type: application/json [10:40:32] [10:40:32]POST finish read [10:40:32]Found Content-Length = 815 [10:40:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48517", "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.30, "quantity" : 2.340, "sum" : 150.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:32]execute_script... [10:40: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)48517", "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.30, "quantity" : 2.340, "sum" : 150.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 150.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:40:32]POST & json_proto [10:40:32]process_json_proto [10:40:32]json parsed OK: [10:40:32]protocol is kg_v1.0 [10:40:32]action value=close_receipt [10:40:32]process_action close_receipt [10:40:32]cmd_close_receipt [10:40:32]MH_GetDate [10:40:32]Write to MH i2c: F0 00 00 EB 02 DC [10:40:32]Write i2c OK [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: F0 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: F0 09 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: F0 09 00 EB 02 00 A1 B2 1B 66 E0 85 7F 64 01 [10:40:32]GetLastDocTimeStamp 1713091182 [10:40:32]current date 1713091233 [10:40:32]FM_GetShiftState [10:40:32]SAM_PROTO_GetShiftState [10:40:32]wFMCommunicate request_size=4 [10:40:32]MH_SAM_APDU [10:40:32]CAPDU: 80 13 01 00 [10:40:32]Write to MH i2c: E2 08 00 EC 02 80 13 01 00 00 00 00 00 6B [10:40:32]Write i2c OK [10:40:32]MH_I2C_Read... [10:40:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:32]Read from MH i2c: E2 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 0E 00 [10:40:32]MH_I2C_Read... [10:40:32]Read from MH i2c: E2 0E 00 EC 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 03 [10:40:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:40:32]wFMCommunicate OK [10:40:32]SAM_PROTO_GetShiftState done [10:40:32]FM_GetShiftState done [10:40:32]opened in 1713054696 [10:40:32]opened+sec_in_day 1713141096 [10:40:32]quantity*price = 15046 [10:40:32]sum+1 = 15047 [10:40:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.46 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 0.00 Безнал.: 150.46 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 103 14.04.2024 10:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112204 ФПД: 274935144722294 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104033&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112204&fm=274935144722294&tin=02508201610067®Number=0000000000094237&sum=15046 [10:40:33]StoreToDocumentArchive [10:40:33]shift 357 fd 112204 [10:40:33]save to /storage/0357/doc_00112204 [10:40:33]save last doc name /storage/0357/doc_00112204 to /storage/kkm_last_doc_name [10:40:33]save OK [10:40:33]Clear old archive folders... [10:40:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:40:33]tlvbuf is 017784A0 [10:40:33]SAM_PROTO_ClearQueue [10:40:33]wFMCommunicate request_size=4 [10:40:33]MH_SAM_APDU [10:40:33]CAPDU: 80 09 00 00 [10:40:33]Write to MH i2c: E2 08 00 F9 02 80 09 00 00 00 00 00 00 6D [10:40:33]Write i2c OK [10:40:33]MH_I2C_Read... [10:40:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:40:33]Read from MH i2c: E2 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: E2 03 00 [10:40:33]MH_I2C_Read... [10:40:33]Read from MH i2c: E2 03 00 F9 02 00 90 00 6F [10:40:33]RAPDU: 90 00 [10:40:33]wFMCommunicate OK [10:40:33]SAM_PROTO_ClearQueue done [10:40:33]KKMCreateOFDPacket [10:40:33]OFDProtocolAddRootSTLVToBuf [10:40:33]FM_MakeSignedData [10:40:33]FM_MakeSignedData [10:40:33]SAM_PROTO_SignData [10:40:33]wFMCommunicate request_size=4 [10:40:33]MH_SAM_APDU [10:40:33]CAPDU: 80 0D 01 02 [10:40:33]Write to MH i2c: E2 08 00 FA 02 80 0D 01 02 00 00 00 00 75 [10:40:33]Write i2c OK [10:40:33]MH_I2C_Read... [10:40:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:40:34]Read from MH i2c: E2 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 FA 02 00 90 00 70 [10:40:34]RAPDU: 90 00 [10:40:34]wFMCommunicate OK [10:40:34]wFMCommunicate request_size=255 [10:40:34]MH_SAM_APDU [10:40: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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A1 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B6 01 00 35 04 06 00 FA [10:40:34]Write to MH i2c: E2 02 01 FB 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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A1 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B6 01 00 35 04 06 00 FA 00 00 48 [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:34]Read from MH i2c: E2 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 FB 02 00 90 00 71 [10:40:34]RAPDU: 90 00 [10:40:34]wFMCommunicate OK [10:40:34]wFMCommunicate request_size=10 [10:40:34]MH_SAM_APDU [10:40:34]CAPDU: 80 0D 02 02 05 0D 53 A3 2F 76 [10:40:34]Write to MH i2c: E2 0D 00 FC 02 80 0D 02 02 05 00 0D 53 A3 2F 76 00 00 2A [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:40:34]Read from MH i2c: E2 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 03 00 FC 02 00 90 00 72 [10:40:34]RAPDU: 90 00 [10:40:34]wFMCommunicate OK [10:40:34]wFMCommunicate request_size=4 [10:40:34]MH_SAM_APDU [10:40:34]CAPDU: 80 0D 03 02 [10:40:34]Write to MH i2c: E2 08 00 FD 02 80 0D 03 02 00 00 00 00 7A [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:40:34]Read from MH i2c: E2 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 0B 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 0B 00 FD 02 00 5E BA 85 A9 C7 66 4B DF 90 00 18 [10:40:34]RAPDU: 5E BA 85 A9 C7 66 4B DF 90 00 [10:40:34]wFMCommunicate OK [10:40:34]SAM_PROTO_SignData done [10:40:34]FM_MakeSignedData done [10:40:34]CreateOFDProtocolMessage [10:40:34]wFMCommunicate request_size=4 [10:40:34]MH_SAM_APDU [10:40:34]CAPDU: 80 11 00 00 [10:40:34]Write to MH i2c: E2 08 00 FE 02 80 11 00 00 00 00 00 00 7A [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:34]Read from MH i2c: E2 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 17 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: E2 17 00 FE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CB [10:40:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:40:34]wFMCommunicate OK [10:40:34]CreateOFDProtocolMessage done [10:40:34]OFDSenderStorePacket 112204 [10:40:34]StoreOFDPacket docnum=112204 [10:40:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5A CB 07 01 A8 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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A1 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B6 01 00 35 04 06 00 FA 0D 53 A3 2F 76 5E BA 85 A9 C7 66 4B DF [10:40:34]CheckFolder [10:40:34]dirname=/storage/ofd_packets [10:40:34]CheckFolder done [10:40:34]ProducePacketName [10:40:34]name=ofd_packets/00112204 [10:40:34]NVStorageSaveData ofd_packets/00112204 [10:40:34]File name is /storage/ofd_packets/00112204 [10:40:34]Write 301 bytes [10:40:34]NVStorageSaveData done [10:40:34]OFDSenderStorePacket done [10:40:34]KKMCreateOFDPacket done [10:40:34]NVStorageSaveData kkm_last_timestamp [10:40:34]File name is /storage/kkm_last_timestamp [10:40:34]Write 4 bytes [10:40:34]NVStorageSaveData done [10:40:34]ExternCall_PrintAddStr [10:40:34]wPrintStart [10:40:34]Write to MH i2c: 01 00 00 FF 02 01 [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 07 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [10:40:34]RasterBufferAndPrint [10:40:34]line Счет N : (1)48517 [10:40:34]line ИНН: 02508201610067 [10:40:34]line Контрольно-Кассовый Чек [10:40:34]line ПРОДАЖА [10:40:34]line ТРК (МРК, ГНК) : 42 [10:40:34]line Товар: 2710124130 [10:40:34]line Аи-92-К-5 [10:40:34]line 2.340 * 64.30 [10:40:34]line = 150.46 [10:40:34]line НДС 12% НСП 1% [10:40:34]line > о реализуемом товаре [10:40:34]line ИТОГО: 150.46 [10:40:34]line НСП 1% : 1.33 [10:40:34]line НДС 12% : 15.98 [10:40:34]line Наличными: 0.00 [10:40:34]line Безнал.: 150.46 [10:40:34]line Место: АЗС № 47 "Партнер Нефть" [10:40:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:40:34]line СНО: Общий режим [10:40:34]line Чек 103 14.04.2024 10:40 [10:40:34]line Смена: 357 ФФД: 1.0 [10:40:34]line ЗНМ: 0300000138 [10:40:34]line РНМ: 0000000000094237 [10:40:34]line Версия ККМ: 001 [10:40:34]line Платежная система: Бакай Банк [10:40:34]line ФМ: 0000000000875019 [10:40:34]line ФД: 112204 [10:40:34]line ФПД: 274935144722294 [10:40:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104033&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112204&fm=274935144722294&tin=02508201610067®Number=0000000000094237&sum=15046 [10:40:34]written 0, free lines is 4095 [10:40:34]OFD Sender: Processing packet 112204 [packets to send 71, broken 70] [10:40:34]ProducePacketName [10:40:34]name=ofd_packets/00112204 [10:40:34]OFD Sender: To server: pG, [10:40:34]CommunicateWithHost lk.salyk.kg:30040 [10:40:34]ConnectInit lk.salyk.kg [10:40:34]Connected sock=10 [10:40:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5A CB 07 01 A8 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 24 09 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 C6 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 A1 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B6 01 00 35 04 06 00 FA 0D 53 A3 2F 76 5E BA 85 A9 C7 66 4B DF [10:40:34]Write to MH i2c: 01 00 00 29 03 2C [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 07 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: 01 07 00 29 03 00 00 00 00 00 F8 0C 37 [10:40:34]RasterBufferAndPrint [10:40:34]line [10:40:34]line [10:40:34]line [10:40:34]line [10:40:34]line [10:40:34]written 0, free lines is 3327 [10:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3D 82 47 00 71 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B6 01 00 F4 03 04 00 2C 5A 1B 66 B6 04 01 00 00 16 F9 6C E7 31 B7 B6 AF [10:40:34]CommunicateWithHost err = 0 [10:40:34]CheckOFDResponse [10:40:34]1017 (14) - 77093643461234 [10:40:34]1041 (16) - 0000000000875019 [10:40:34]1040 (4) - 112204 [10:40:34]1012 (4) - 14.04.2024 04:23 [10:40:34]1206 (1) - 0 [10:40:34]OFD Sender: Remove packet 112204 [10:40:34]ProducePacketName [10:40:34]name=ofd_packets/00112204 [10:40:34]NVStorageDeleteData [10:40:34]MH_Cut [10:40:34]Write to MH i2c: D1 01 00 30 03 01 05 [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: D1 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: D1 01 00 [10:40:34]MH_I2C_Read... [10:40:34]Read from MH i2c: D1 01 00 30 03 00 04 [10:40:34]Write to MH i2c: 01 00 00 31 03 34 [10:40:34]Write i2c OK [10:40:34]MH_I2C_Read... [10:40:35]OFD Sender: No OFD packet to send [10:40:35]*** Cut start [10:40:35]*** Partial cut [10:40:35]*** CUTSNS_PIN = 1 [10:40:35]*** CUTSNS_PIN = 0 [10:40:35]*** Brake cut motor [10:40:36]Read from MH i2c: 01 [10:40:36]MH_I2C_Read... [10:40:36]*** Stop cut motor [10:40:36]*** Cut end [10:40:36]Read from MH i2c: 01 07 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: 01 07 00 31 03 00 00 00 00 00 FF 0F 49 [10:40:36]process_action close_receipt done [10:40:36]requested_data is exist [10:40:36]produce_requested_data [10:40:36]requested_item fm.sn is exist - process it [10:40:36]wFMCommunicate request_size=4 [10:40:36]MH_SAM_APDU [10:40:36]CAPDU: 80 11 00 00 [10:40:36]Write to MH i2c: E2 08 00 32 03 80 11 00 00 00 00 00 00 AF [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:40:36]Read from MH i2c: E2 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 17 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 17 00 32 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 00 [10:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:40:36]wFMCommunicate OK [10:40:36]requested_item fd.num is exist - process it [10:40:36]SAM_PROTO_GetFieldsCounters [10:40:36]wFMCommunicate request_size=4 [10:40:36]MH_SAM_APDU [10:40:36]CAPDU: 80 13 00 00 [10:40:36]Write to MH i2c: E2 08 00 33 03 80 13 00 00 00 00 00 00 B2 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:40:36]Read from MH i2c: E2 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 62 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 62 00 33 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4C B6 01 00 0E 04 04 00 65 01 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 6F [10:40:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4C B6 01 00 0E 04 04 00 65 01 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 [10:40:36]wFMCommunicate OK [10:40:36]SAM_PROTO_GetFieldsCounters done [10:40:36]requested_item shift.num is exist - process it [10:40:36]requested_item shift.opened is exist - process it [10:40:36]req_shift_opened [10:40:36]FM_GetShiftState [10:40:36]SAM_PROTO_GetShiftState [10:40:36]wFMCommunicate request_size=4 [10:40:36]MH_SAM_APDU [10:40:36]CAPDU: 80 13 01 00 [10:40:36]Write to MH i2c: E2 08 00 34 03 80 13 01 00 00 00 00 00 B4 [10:40:36]Write i2c OK [10:40:36]MH_I2C_Read... [10:40:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:40:36]Read from MH i2c: E2 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 0E 00 [10:40:36]MH_I2C_Read... [10:40:36]Read from MH i2c: E2 0E 00 34 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4C [10:40:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:40:36]wFMCommunicate OK [10:40:36]SAM_PROTO_GetShiftState done [10:40:36]FM_GetShiftState done [10:40:36]req_shift_opened done [10:40:36]requested_item shift.open_date is exist - process it [10:40:36]req_shift_open_date [10:40:36]req_shift_open_date done [10:40:36]produce_requested_data done [10:40:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112204,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:40:36]process_action_free close_receipt [10:40:36]json_value_free [10:40:36]json_value_free done [10:40:36]process_json_proto returns [10:40:36]Send response to host [10:40:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112204,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:40:36]free response buf [10:40:36]execute_script done [10:40:36]execute_script returns [10:40:36]free content buf [10:40:36]Sock 7.Close socket [10:40:36]Sock 7.Thread stoped [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:41]accept exits with 9 [10:41:41]New connection [10:41:41]New thread 3067198820 created [10:41:41]Thread 3067342180 joined [10:41:41]Waiting for new connection... [10:41:41] Sock 9.Parse request [10:41:41]Sock 9.Check first char [10:41:41]Sock 9.First char is OK [10:41:41]request: POST /json_proto HTTP/1.0 [10:41:41]Method: POST [10:41:41]URL: /json_proto [10:41:41]Method is POST - this is cgi request [10:41:41]url: /json_proto [10:41:41]query_string will be loaded in cgi processing [10:41:41]execute_cgi json_proto POST (null) [10:41:41]execute_cgi path=json_proto method=POST [10:41:41]POST find Content-Length [10:41:41]Host: 172.17.96.197:8080 [10:41:41]Content-Length: 669 [10:41:41]Content-Type: application/json [10:41:41] [10:41:41]POST finish read [10:41:41]Found Content-Length = 669 [10:41:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48519", "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.30, "quantity" : 9.810, "sum" : 640.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:41]execute_script... [10:41: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)48519", "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.30, "quantity" : 9.810, "sum" : 640.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 640.00, "total" : 640.00, "payments": [ { "type": 0, "sum" : 640.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:41]POST & json_proto [10:41:41]process_json_proto [10:41:41]json parsed OK: [10:41:41]protocol is kg_v1.0 [10:41:41]action value=close_receipt [10:41:41]process_action close_receipt [10:41:41]cmd_close_receipt [10:41:41]MH_GetDate [10:41:41]Write to MH i2c: F0 00 00 35 03 27 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: F0 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: F0 09 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: F0 09 00 35 03 00 E6 B2 1B 66 E0 85 7F 64 91 [10:41:41]GetLastDocTimeStamp 1713091233 [10:41:41]current date 1713091302 [10:41:41]FM_GetShiftState [10:41:41]SAM_PROTO_GetShiftState [10:41:41]wFMCommunicate request_size=4 [10:41:41]MH_SAM_APDU [10:41:41]CAPDU: 80 13 01 00 [10:41:41]Write to MH i2c: E2 08 00 36 03 80 13 01 00 00 00 00 00 B6 [10:41:41]Write i2c OK [10:41:41]MH_I2C_Read... [10:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:41]Read from MH i2c: E2 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0E 00 [10:41:41]MH_I2C_Read... [10:41:41]Read from MH i2c: E2 0E 00 36 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4E [10:41:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:41:41]wFMCommunicate OK [10:41:41]SAM_PROTO_GetShiftState done [10:41:41]FM_GetShiftState done [10:41:41]opened in 1713054696 [10:41:41]opened+sec_in_day 1713141096 [10:41:41]quantity*price = 64059 [10:41:41]sum+1 = 64060 [10:41:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 640.00 Внесено: 640.00 СДАЧА: 0.00 НСП 1% : 5.67 НДС 12% : 68.03 Наличными: 640.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 104 14.04.2024 10:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112205 ФПД: 193488793243306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104142&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112205&fm=193488793243306&tin=02508201610067®Number=0000000000094237&sum=64000 [10:41:42]StoreToDocumentArchive [10:41:42]shift 357 fd 112205 [10:41:42]save to /storage/0357/doc_00112205 [10:41:42]save last doc name /storage/0357/doc_00112205 to /storage/kkm_last_doc_name [10:41:42]save OK [10:41:42]Clear old archive folders... [10:41:43]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:41:43]tlvbuf is 017D26E0 [10:41:43]SAM_PROTO_ClearQueue [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 09 00 00 [10:41:43]Write to MH i2c: E2 08 00 43 03 80 09 00 00 00 00 00 00 B8 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 43 03 00 90 00 BA [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]SAM_PROTO_ClearQueue done [10:41:43]KKMCreateOFDPacket [10:41:43]OFDProtocolAddRootSTLVToBuf [10:41:43]FM_MakeSignedData [10:41:43]FM_MakeSignedData [10:41:43]SAM_PROTO_SignData [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 0D 01 02 [10:41:43]Write to MH i2c: E2 08 00 44 03 80 0D 01 02 00 00 00 00 C0 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 44 03 00 90 00 BB [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]wFMCommunicate request_size=255 [10:41:43]MH_SAM_APDU [10:41:43]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3B FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 1A 00 00 00 00 07 04 06 00 00 FA 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 E6 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B6 01 00 35 04 06 00 [10:41:43]Write to MH i2c: E2 02 01 45 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3B FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 1A 00 00 00 00 07 04 06 00 00 FA 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 E6 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B6 01 00 35 04 06 00 00 00 72 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 45 03 00 90 00 BC [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]wFMCommunicate request_size=11 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 0D 02 02 06 AF FA 1E CA 0E AA [10:41:43]Write to MH i2c: E2 0E 00 46 03 80 0D 02 02 06 00 AF FA 1E CA 0E AA 00 00 18 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 03 00 46 03 00 90 00 BD [10:41:43]RAPDU: 90 00 [10:41:43]wFMCommunicate OK [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 0D 03 02 [10:41:43]Write to MH i2c: E2 08 00 47 03 80 0D 03 02 00 00 00 00 C5 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 0B 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 0B 00 47 03 00 CA 08 10 2B 35 44 7A 4D 90 00 13 [10:41:43]RAPDU: CA 08 10 2B 35 44 7A 4D 90 00 [10:41:43]wFMCommunicate OK [10:41:43]SAM_PROTO_SignData done [10:41:43]FM_MakeSignedData done [10:41:43]CreateOFDProtocolMessage [10:41:43]wFMCommunicate request_size=4 [10:41:43]MH_SAM_APDU [10:41:43]CAPDU: 80 11 00 00 [10:41:43]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:43]Read from MH i2c: E2 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 17 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [10:41:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:41:43]wFMCommunicate OK [10:41:43]CreateOFDProtocolMessage done [10:41:43]OFDSenderStorePacket 112205 [10:41:43]StoreOFDPacket docnum=112205 [10:41:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 52 64 08 01 05 32 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3B FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 1A 00 00 00 00 07 04 06 00 00 FA 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 E6 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B6 01 00 35 04 06 00 AF FA 1E CA 0E AA CA 08 10 2B 35 44 7A 4D [10:41:43]CheckFolder [10:41:43]dirname=/storage/ofd_packets [10:41:43]CheckFolder done [10:41:43]ProducePacketName [10:41:43]name=ofd_packets/00112205 [10:41:43]NVStorageSaveData ofd_packets/00112205 [10:41:43]File name is /storage/ofd_packets/00112205 [10:41:43]Write 302 bytes [10:41:43]NVStorageSaveData done [10:41:43]OFDSenderStorePacket done [10:41:43]KKMCreateOFDPacket done [10:41:43]NVStorageSaveData kkm_last_timestamp [10:41:43]File name is /storage/kkm_last_timestamp [10:41:43]Write 4 bytes [10:41:43]NVStorageSaveData done [10:41:43]ExternCall_PrintAddStr [10:41:43]wPrintStart [10:41:43]Write to MH i2c: 01 00 00 49 03 4C [10:41:43]Write i2c OK [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: 01 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: 01 07 00 [10:41:43]MH_I2C_Read... [10:41:43]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [10:41:43]RasterBufferAndPrint [10:41:43]line Счет N : (1)48519 [10:41:43]line ИНН: 02508201610067 [10:41:43]line Контрольно-Кассовый Чек [10:41:43]line ПРОДАЖА [10:41:43]line ТРК (МРК, ГНК) : 31 [10:41:43]line Товар: 2710124130 [10:41:43]line SUPER 92-К-5 [10:41:43]line 9.810 * 65.30 [10:41:43]line = 640.59 [10:41:43]line НДС 12% НСП 1% [10:41:43]line > о реализуемом товаре [10:41:43]line ОКРУГЛЕНИЕ: -0.59 [10:41:43]line ИТОГО: 640.00 [10:41:43]line Внесено: 640.00 [10:41:43]line СДАЧА: 0.00 [10:41:43]line НСП 1% : 5.67 [10:41:43]line НДС 12% : 68.03 [10:41:43]line Наличными: 640.00 [10:41:43]line Безнал.: 0.00 [10:41:43]line Место: АЗС № 47 "Партнер Нефть" [10:41:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:41:43]line СНО: Общий режим [10:41:43]line Чек 104 14.04.2024 10:41 [10:41:43]line Смена: 357 ФФД: 1.0 [10:41:43]line ЗНМ: 0300000138 [10:41:43]line РНМ: 0000000000094237 [10:41:43]line Версия ККМ: 001 [10:41:43]line ФМ: 0000000000875019 [10:41:43]line ФД: 112205 [10:41:43]line ФПД: 193488793243306 [10:41:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104142&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112205&fm=193488793243306&tin=02508201610067®Number=0000000000094237&sum=64000 [10:41:43]OFD Sender: Processing packet 112205 [packets to send 71, broken 70] [10:41:43]ProducePacketName [10:41:43]name=ofd_packets/00112205 [10:41:43]OFD Sender: To server: pG, [10:41:43]CommunicateWithHost lk.salyk.kg:30040 [10:41:43]ConnectInit lk.salyk.kg [10:41:43]written 0, free lines is 4095 [10:41:44]Connected sock=10 [10:41:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 52 64 08 01 05 32 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 52 26 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3B FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 FA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 37 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 1A 00 00 00 00 07 04 06 00 00 FA 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 E6 B2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B6 01 00 35 04 06 00 AF FA 1E CA 0E AA CA 08 10 2B 35 44 7A 4D [10:41:44]Write to MH i2c: 01 00 00 74 03 77 [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 07 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: 01 07 00 74 03 00 00 00 00 00 E0 0C 6A [10:41:44]RasterBufferAndPrint [10:41:44]line [10:41:44]line [10:41:44]line [10:41:44]line [10:41:44]line [10:41:44]written 0, free lines is 3302 [10:41:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 64 44 47 00 B7 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B6 01 00 F4 03 04 00 71 5A 1B 66 B6 04 01 00 00 76 42 6C AB CB 2F 23 C4 [10:41:44]CommunicateWithHost err = 0 [10:41:44]CheckOFDResponse [10:41:44]1017 (14) - 77093643461234 [10:41:44]1041 (16) - 0000000000875019 [10:41:44]1040 (4) - 112205 [10:41:44]1012 (4) - 14.04.2024 04:24 [10:41:44]1206 (1) - 0 [10:41:44]OFD Sender: Remove packet 112205 [10:41:44]ProducePacketName [10:41:44]name=ofd_packets/00112205 [10:41:44]NVStorageDeleteData [10:41:44]MH_Cut [10:41:44]Write to MH i2c: D1 01 00 7B 03 01 50 [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: D1 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: D1 01 00 [10:41:44]MH_I2C_Read... [10:41:44]Read from MH i2c: D1 01 00 7B 03 00 4F [10:41:44]Write to MH i2c: 01 00 00 7C 03 7F [10:41:44]Write i2c OK [10:41:44]MH_I2C_Read... [10:41:44]OFD Sender: No OFD packet to send [10:41:45]*** Cut start [10:41:45]*** Partial cut [10:41:45]*** CUTSNS_PIN = 1 [10:41:45]*** CUTSNS_PIN = 0 [10:41:45]*** Brake cut motor [10:41:45]Read from MH i2c: 01 [10:41:45]MH_I2C_Read... [10:41:45]*** Stop cut motor [10:41:45]*** Cut end [10:41:45]Read from MH i2c: 01 07 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: 01 07 00 7C 03 00 00 00 00 00 FF 0F 94 [10:41:45]process_action close_receipt done [10:41:45]requested_data is exist [10:41:45]produce_requested_data [10:41:45]requested_item fm.sn is exist - process it [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 11 00 00 [10:41:45]Write to MH i2c: E2 08 00 7D 03 80 11 00 00 00 00 00 00 FA [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 17 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 17 00 7D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4B [10:41:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:41:45]wFMCommunicate OK [10:41:45]requested_item fd.num is exist - process it [10:41:45]SAM_PROTO_GetFieldsCounters [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 13 00 00 [10:41:45]Write to MH i2c: E2 08 00 7E 03 80 13 00 00 00 00 00 00 FD [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 62 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 62 00 7E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4D B6 01 00 0E 04 04 00 65 01 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 BE [10:41:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4D B6 01 00 0E 04 04 00 65 01 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 [10:41:45]wFMCommunicate OK [10:41:45]SAM_PROTO_GetFieldsCounters done [10:41:45]requested_item shift.num is exist - process it [10:41:45]requested_item shift.opened is exist - process it [10:41:45]req_shift_opened [10:41:45]FM_GetShiftState [10:41:45]SAM_PROTO_GetShiftState [10:41:45]wFMCommunicate request_size=4 [10:41:45]MH_SAM_APDU [10:41:45]CAPDU: 80 13 01 00 [10:41:45]Write to MH i2c: E2 08 00 7F 03 80 13 01 00 00 00 00 00 FF [10:41:45]Write i2c OK [10:41:45]MH_I2C_Read... [10:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:45]Read from MH i2c: E2 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 0E 00 [10:41:45]MH_I2C_Read... [10:41:45]Read from MH i2c: E2 0E 00 7F 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 97 [10:41:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:41:45]wFMCommunicate OK [10:41:45]SAM_PROTO_GetShiftState done [10:41:45]FM_GetShiftState done [10:41:45]req_shift_opened done [10:41:45]requested_item shift.open_date is exist - process it [10:41:45]req_shift_open_date [10:41:45]req_shift_open_date done [10:41:45]produce_requested_data done [10:41:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112205,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:41:45]process_action_free close_receipt [10:41:45]json_value_free [10:41:45]json_value_free done [10:41:45]process_json_proto returns [10:41:45]Send response to host [10:41:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112205,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:41:45]free response buf [10:41:45]execute_script done [10:41:45]execute_script returns [10:41:45]free content buf [10:41:45]Sock 9.Close socket [10:41:45]Sock 9.Thread stoped [10:41:49]OFD Sender: No OFD packet to send [10:41:54]OFD Sender: No OFD packet to send [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]accept exits with 7 [10:42:49]New connection [10:42:49]New thread 3067342180 created [10:42:49]Thread 3067198820 joined [10:42:49]Waiting for new connection... [10:42:49] Sock 7.Parse request [10:42:49]Sock 7.Check first char [10:42:49]Sock 7.First char is OK [10:42:49]request: POST /json_proto HTTP/1.0 [10:42:49]Method: POST [10:42:49]URL: /json_proto [10:42:49]Method is POST - this is cgi request [10:42:49]url: /json_proto [10:42:49]query_string will be loaded in cgi processing [10:42:49]execute_cgi json_proto POST (null) [10:42:49]execute_cgi path=json_proto method=POST [10:42:49]POST find Content-Length [10:42:49]Host: 172.17.96.197:8080 [10:42:49]Content-Length: 676 [10:42:49]Content-Type: application/json [10:42:49] [10:42:49]POST finish read [10:42:49]Found Content-Length = 676 [10:42:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:49]execute_script... [10:42:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.000, "sum" : 321.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 321.00, "payments": [ { "type": 0, "sum" : 321.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:49]POST & json_proto [10:42:49]process_json_proto [10:42:49]json parsed OK: [10:42:49]protocol is kg_v1.0 [10:42:49]action value=close_receipt [10:42:49]process_action close_receipt [10:42:49]cmd_close_receipt [10:42:49]MH_GetDate [10:42:49]Write to MH i2c: F0 00 00 80 03 72 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: F0 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: F0 09 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: F0 09 00 80 03 00 29 B3 1B 66 E0 85 7F 64 20 [10:42:49]GetLastDocTimeStamp 1713091302 [10:42:49]current date 1713091369 [10:42:49]FM_GetShiftState [10:42:49]SAM_PROTO_GetShiftState [10:42:49]wFMCommunicate request_size=4 [10:42:49]MH_SAM_APDU [10:42:49]CAPDU: 80 13 01 00 [10:42:49]Write to MH i2c: E2 08 00 81 03 80 13 01 00 00 00 00 00 01 [10:42:49]Write i2c OK [10:42:49]MH_I2C_Read... [10:42:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:49]Read from MH i2c: E2 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0E 00 [10:42:49]MH_I2C_Read... [10:42:49]Read from MH i2c: E2 0E 00 81 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 99 [10:42:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:42:49]wFMCommunicate OK [10:42:49]SAM_PROTO_GetShiftState done [10:42:49]FM_GetShiftState done [10:42:49]opened in 1713054696 [10:42:49]opened+sec_in_day 1713141096 [10:42:49]quantity*price = 32150 [10:42:49]sum+1 = 32151 [10:42:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 321.00 Внесено: 500.00 СДАЧА: 179.00 НСП 1% : 2.84 НДС 12% : 34.14 Наличными: 321.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 105 14.04.2024 10:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112206 ФПД: 121145028097726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112206&fm=121145028097726&tin=02508201610067®Number=0000000000094237&sum=32100 [10:42:50]StoreToDocumentArchive [10:42:50]shift 357 fd 112206 [10:42:50]save to /storage/0357/doc_00112206 [10:42:50]save last doc name /storage/0357/doc_00112206 to /storage/kkm_last_doc_name [10:42:50]save OK [10:42:50]Clear old archive folders... [10:42:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:50]tlvbuf is 017784B0 [10:42:50]SAM_PROTO_ClearQueue [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 09 00 00 [10:42:50]Write to MH i2c: E2 08 00 8E 03 80 09 00 00 00 00 00 00 03 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 8E 03 00 90 00 05 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_ClearQueue done [10:42:50]KKMCreateOFDPacket [10:42:50]OFDProtocolAddRootSTLVToBuf [10:42:50]FM_MakeSignedData [10:42:50]FM_MakeSignedData [10:42:50]SAM_PROTO_SignData [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 01 02 [10:42:50]Write to MH i2c: E2 08 00 8F 03 80 0D 01 02 00 00 00 00 0B [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 8F 03 00 90 00 06 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=255 [10:42:50]MH_SAM_APDU [10:42: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 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0D 00 00 00 00 07 04 06 00 64 7D 00 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 29 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B6 01 00 35 04 06 00 6E [10:42:50]Write to MH i2c: E2 02 01 90 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 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0D 00 00 00 00 07 04 06 00 64 7D 00 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 29 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B6 01 00 35 04 06 00 6E 00 00 D9 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 90 03 00 90 00 07 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=10 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 02 02 05 2E 46 5D B6 BE [10:42:50]Write to MH i2c: E2 0D 00 91 03 80 0D 02 02 05 00 2E 46 5D B6 BE 00 00 5D [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 03 00 91 03 00 90 00 08 [10:42:50]RAPDU: 90 00 [10:42:50]wFMCommunicate OK [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 0D 03 02 [10:42:50]Write to MH i2c: E2 08 00 92 03 80 0D 03 02 00 00 00 00 10 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0B 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 0B 00 92 03 00 CB 9B 4B 5B 35 CF 2B 89 90 00 D5 [10:42:50]RAPDU: CB 9B 4B 5B 35 CF 2B 89 90 00 [10:42:50]wFMCommunicate OK [10:42:50]SAM_PROTO_SignData done [10:42:50]FM_MakeSignedData done [10:42:50]CreateOFDProtocolMessage [10:42:50]wFMCommunicate request_size=4 [10:42:50]MH_SAM_APDU [10:42:50]CAPDU: 80 11 00 00 [10:42:50]Write to MH i2c: E2 08 00 93 03 80 11 00 00 00 00 00 00 10 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:50]Read from MH i2c: E2 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: E2 17 00 93 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 61 [10:42:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:42:50]wFMCommunicate OK [10:42:50]CreateOFDProtocolMessage done [10:42:50]OFDSenderStorePacket 112206 [10:42:50]StoreOFDPacket docnum=112206 [10:42:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 16 11 07 01 88 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0D 00 00 00 00 07 04 06 00 64 7D 00 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 29 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B6 01 00 35 04 06 00 6E 2E 46 5D B6 BE CB 9B 4B 5B 35 CF 2B 89 [10:42:50]CheckFolder [10:42:50]dirname=/storage/ofd_packets [10:42:50]CheckFolder done [10:42:50]ProducePacketName [10:42:50]name=ofd_packets/00112206 [10:42:50]NVStorageSaveData ofd_packets/00112206 [10:42:50]File name is /storage/ofd_packets/00112206 [10:42:50]Write 301 bytes [10:42:50]NVStorageSaveData done [10:42:50]OFDSenderStorePacket done [10:42:50]KKMCreateOFDPacket done [10:42:50]NVStorageSaveData kkm_last_timestamp [10:42:50]File name is /storage/kkm_last_timestamp [10:42:50]Write 4 bytes [10:42:50]NVStorageSaveData done [10:42:50]ExternCall_PrintAddStr [10:42:50]wPrintStart [10:42:50]Write to MH i2c: 01 00 00 94 03 97 [10:42:50]Write i2c OK [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 [10:42:50]MH_I2C_Read... [10:42:50]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [10:42:50]RasterBufferAndPrint [10:42:50]line Счет N : (1)48520 [10:42:50]line ИНН: 02508201610067 [10:42:50]line Контрольно-Кассовый Чек [10:42:50]line ПРОДАЖА [10:42:50]line ТРК (МРК, ГНК) : 11 [10:42:50]line Товар: 2710124130 [10:42:50]line Аи-92-К-5 [10:42:50]line 5.000 * 64.30 [10:42:50]line = 321.50 [10:42:50]line НДС 12% НСП 1% [10:42:50]line > о реализуемом товаре [10:42:50]line ОКРУГЛЕНИЕ: -0.50 [10:42:50]line ИТОГО: 321.00 [10:42:50]line Внесено: 500.00 [10:42:50]line СДАЧА: 179.00 [10:42:50]line НСП 1% : 2.84 [10:42:50]line НДС 12% : 34.14 [10:42:50]line Наличными: 321.00 [10:42:50]line Безнал.: 0.00 [10:42:50]line Место: АЗС № 47 "Партнер Нефть" [10:42:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:42:50]line СНО: Общий режим [10:42:50]line Чек 105 14.04.2024 10:42 [10:42:50]line Смена: 357 ФФД: 1.0 [10:42:50]line ЗНМ: 0300000138 [10:42:50]line РНМ: 0000000000094237 [10:42:50]line Версия ККМ: 001 [10:42:50]line ФМ: 0000000000875019 [10:42:50]line ФД: 112206 [10:42:50]line ФПД: 121145028097726 [10:42:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112206&fm=121145028097726&tin=02508201610067®Number=0000000000094237&sum=32100 [10:42:51]written 0, free lines is 4095 [10:42:51]OFD Sender: Processing packet 112206 [packets to send 71, broken 70] [10:42:51]ProducePacketName [10:42:51]name=ofd_packets/00112206 [10:42:51]OFD Sender: To server: pG, [10:42:51]CommunicateWithHost lk.salyk.kg:30040 [10:42:51]ConnectInit lk.salyk.kg [10:42:51]Connected sock=11 [10:42:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 16 11 07 01 88 CC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 96 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 0D 00 00 00 00 07 04 06 00 64 7D 00 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 29 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B6 01 00 35 04 06 00 6E 2E 46 5D B6 BE CB 9B 4B 5B 35 CF 2B 89 [10:42:51]Write to MH i2c: 01 00 00 BF 03 C2 [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 07 00 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: 01 07 00 BF 03 00 00 00 00 00 E4 0C B9 [10:42:51]RasterBufferAndPrint [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]line [10:42:51]written 0, free lines is 3303 [10:42:51]MH_Cut [10:42:51]Write to MH i2c: D1 01 00 C6 03 01 9B [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 01 00 [10:42:51]MH_I2C_Read... [10:42:51]Read from MH i2c: D1 01 00 C6 03 00 9A [10:42:51]Write to MH i2c: 01 00 00 C7 03 CA [10:42:51]Write i2c OK [10:42:51]MH_I2C_Read... [10:42:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C6 40 47 00 F9 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 38 37 35 30 31 39 10 04 04 00 4E B6 01 00 F4 03 04 00 B5 5A 1B 66 B6 04 01 00 00 FF 13 C0 17 61 F0 98 DC [10:42:51]CommunicateWithHost err = 0 [10:42:51]CheckOFDResponse [10:42:51]1017 (14) - 77093643461234 [10:42:51]1041 (16) - 0000000000875019 [10:42:51]1040 (4) - 112206 [10:42:51]1012 (4) - 14.04.2024 04:25 [10:42:51]1206 (1) - 0 [10:42:51]OFD Sender: Remove packet 112206 [10:42:51]ProducePacketName [10:42:51]name=ofd_packets/00112206 [10:42:51]NVStorageDeleteData [10:42:52]OFD Sender: No OFD packet to send [10:42:52]*** Cut start [10:42:52]*** Partial cut [10:42:52]*** CUTSNS_PIN = 1 [10:42:52]*** CUTSNS_PIN = 0 [10:42:52]*** Brake cut motor [10:42:53]Read from MH i2c: 01 [10:42:53]MH_I2C_Read... [10:42:53]*** Stop cut motor [10:42:53]*** Cut end [10:42:53]Read from MH i2c: 01 07 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: 01 07 00 C7 03 00 00 00 00 00 FF 0F DF [10:42:53]process_action close_receipt done [10:42:53]requested_data is exist [10:42:53]produce_requested_data [10:42:53]requested_item fm.sn is exist - process it [10:42:53]wFMCommunicate request_size=4 [10:42:53]MH_SAM_APDU [10:42:53]CAPDU: 80 11 00 00 [10:42:53]Write to MH i2c: E2 08 00 C8 03 80 11 00 00 00 00 00 00 45 [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:53]Read from MH i2c: E2 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 17 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 17 00 C8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 96 [10:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:42:53]wFMCommunicate OK [10:42:53]requested_item fd.num is exist - process it [10:42:53]SAM_PROTO_GetFieldsCounters [10:42:53]wFMCommunicate request_size=4 [10:42:53]MH_SAM_APDU [10:42:53]CAPDU: 80 13 00 00 [10:42:53]Write to MH i2c: E2 08 00 C9 03 80 13 00 00 00 00 00 00 48 [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:53]Read from MH i2c: E2 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 62 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 62 00 C9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4E B6 01 00 0E 04 04 00 65 01 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 0D [10:42:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4E B6 01 00 0E 04 04 00 65 01 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 [10:42:53]wFMCommunicate OK [10:42:53]SAM_PROTO_GetFieldsCounters done [10:42:53]requested_item shift.num is exist - process it [10:42:53]requested_item shift.opened is exist - process it [10:42:53]req_shift_opened [10:42:53]FM_GetShiftState [10:42:53]SAM_PROTO_GetShiftState [10:42:53]wFMCommunicate request_size=4 [10:42:53]MH_SAM_APDU [10:42:53]CAPDU: 80 13 01 00 [10:42:53]Write to MH i2c: E2 08 00 CA 03 80 13 01 00 00 00 00 00 4A [10:42:53]Write i2c OK [10:42:53]MH_I2C_Read... [10:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:53]Read from MH i2c: E2 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 0E 00 [10:42:53]MH_I2C_Read... [10:42:53]Read from MH i2c: E2 0E 00 CA 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E2 [10:42:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:42:53]wFMCommunicate OK [10:42:53]SAM_PROTO_GetShiftState done [10:42:53]FM_GetShiftState done [10:42:53]req_shift_opened done [10:42:53]requested_item shift.open_date is exist - process it [10:42:53]req_shift_open_date [10:42:53]req_shift_open_date done [10:42:53]produce_requested_data done [10:42:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112206,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:42:53]process_action_free close_receipt [10:42:53]json_value_free [10:42:53]json_value_free done [10:42:53]process_json_proto returns [10:42:53]Send response to host [10:42:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112206,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:42:53]free response buf [10:42:53]execute_script done [10:42:53]execute_script returns [10:42:53]free content buf [10:42:53]Sock 7.Close socket [10:42:53]Sock 7.Thread stoped [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [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:19]accept exits with 9 [10:44:19]New connection [10:44:19]New thread 3067198820 created [10:44:19]Thread 3067342180 joined [10:44:19]Waiting for new connection... [10:44:19] Sock 9.Parse request [10:44:19]Sock 9.Check first char [10:44:19]Sock 9.First char is OK [10:44:19]request: POST /json_proto HTTP/1.0 [10:44:19]Method: POST [10:44:19]URL: /json_proto [10:44:19]Method is POST - this is cgi request [10:44:19]url: /json_proto [10:44:19]query_string will be loaded in cgi processing [10:44:19]execute_cgi json_proto POST (null) [10:44:19]execute_cgi path=json_proto method=POST [10:44:19]POST find Content-Length [10:44:19]Host: 172.17.96.197:8080 [10:44:19]Content-Length: 680 [10:44:19]Content-Type: application/json [10:44:19] [10:44:19]POST finish read [10:44:19]Found Content-Length = 680 [10:44:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:44:19]execute_script... [10:44: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)48521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:44:19]POST & json_proto [10:44:19]process_json_proto [10:44:19]json parsed OK: [10:44:19]protocol is kg_v1.0 [10:44:19]action value=close_receipt [10:44:19]process_action close_receipt [10:44:19]cmd_close_receipt [10:44:19]MH_GetDate [10:44:19]Write to MH i2c: F0 00 00 CB 03 BD [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 09 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: F0 09 00 CB 03 00 83 B3 1B 66 E0 85 7F 64 C5 [10:44:19]GetLastDocTimeStamp 1713091369 [10:44:19]current date 1713091459 [10:44:19]FM_GetShiftState [10:44:19]SAM_PROTO_GetShiftState [10:44:19]wFMCommunicate request_size=4 [10:44:19]MH_SAM_APDU [10:44:19]CAPDU: 80 13 01 00 [10:44:19]Write to MH i2c: E2 08 00 CC 03 80 13 01 00 00 00 00 00 4C [10:44:19]Write i2c OK [10:44:19]MH_I2C_Read... [10:44:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:19]Read from MH i2c: E2 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: E2 0E 00 [10:44:19]MH_I2C_Read... [10:44:19]Read from MH i2c: E2 0E 00 CC 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E4 [10:44:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:44:19]wFMCommunicate OK [10:44:19]SAM_PROTO_GetShiftState done [10:44:19]FM_GetShiftState done [10:44:19]opened in 1713054696 [10:44:19]opened+sec_in_day 1713141096 [10:44:19]quantity*price = 50031 [10:44:19]sum+1 = 50032 [10:44:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 106 14.04.2024 10:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112207 ФПД: 203628795534871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104419&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112207&fm=203628795534871&tin=02508201610067®Number=0000000000094237&sum=50000 [10:44:20]StoreToDocumentArchive [10:44:20]shift 357 fd 112207 [10:44:20]save to /storage/0357/doc_00112207 [10:44:20]save last doc name /storage/0357/doc_00112207 to /storage/kkm_last_doc_name [10:44:20]save OK [10:44:20]Clear old archive folders... [10:44:20]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:44:20]tlvbuf is 017CBFE0 [10:44:20]SAM_PROTO_ClearQueue [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 09 00 00 [10:44:20]Write to MH i2c: E2 08 00 D9 03 80 09 00 00 00 00 00 00 4E [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 D9 03 00 90 00 50 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]SAM_PROTO_ClearQueue done [10:44:20]KKMCreateOFDPacket [10:44:20]OFDProtocolAddRootSTLVToBuf [10:44:20]FM_MakeSignedData [10:44:20]FM_MakeSignedData [10:44:20]SAM_PROTO_SignData [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 01 02 [10:44:20]Write to MH i2c: E2 08 00 DA 03 80 0D 01 02 00 00 00 00 56 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 DA 03 00 90 00 51 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=255 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B6 01 00 35 04 06 00 B9 33 [10:44:20]Write to MH i2c: E2 02 01 DB 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B6 01 00 35 04 06 00 B9 33 00 00 38 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 DB 03 00 90 00 52 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=9 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 02 02 04 06 06 1E 17 [10:44:20]Write to MH i2c: E2 0C 00 DC 03 80 0D 02 02 04 00 06 06 1E 17 00 00 A2 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 03 00 DC 03 00 90 00 53 [10:44:20]RAPDU: 90 00 [10:44:20]wFMCommunicate OK [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 0D 03 02 [10:44:20]Write to MH i2c: E2 08 00 DD 03 80 0D 03 02 00 00 00 00 5B [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0B 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 0B 00 DD 03 00 93 FE 9F 37 C2 1D E9 DF 90 00 6A [10:44:20]RAPDU: 93 FE 9F 37 C2 1D E9 DF 90 00 [10:44:20]wFMCommunicate OK [10:44:20]SAM_PROTO_SignData done [10:44:20]FM_MakeSignedData done [10:44:20]CreateOFDProtocolMessage [10:44:20]wFMCommunicate request_size=4 [10:44:20]MH_SAM_APDU [10:44:20]CAPDU: 80 11 00 00 [10:44:20]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:20]Read from MH i2c: E2 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 17 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AC [10:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:44:20]wFMCommunicate OK [10:44:20]CreateOFDProtocolMessage done [10:44:20]OFDSenderStorePacket 112207 [10:44:20]StoreOFDPacket docnum=112207 [10:44:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 BE 7B 06 01 EE AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B6 01 00 35 04 06 00 B9 33 06 06 1E 17 93 FE 9F 37 C2 1D E9 DF [10:44:20]CheckFolder [10:44:20]dirname=/storage/ofd_packets [10:44:20]CheckFolder done [10:44:20]ProducePacketName [10:44:20]name=ofd_packets/00112207 [10:44:20]NVStorageSaveData ofd_packets/00112207 [10:44:20]File name is /storage/ofd_packets/00112207 [10:44:20]Write 300 bytes [10:44:20]NVStorageSaveData done [10:44:20]OFDSenderStorePacket done [10:44:20]KKMCreateOFDPacket done [10:44:20]NVStorageSaveData kkm_last_timestamp [10:44:20]File name is /storage/kkm_last_timestamp [10:44:20]Write 4 bytes [10:44:20]NVStorageSaveData done [10:44:20]OFD Sender: Processing packet 112207 [packets to send 71, broken 70] [10:44:20]ProducePacketName [10:44:20]name=ofd_packets/00112207 [10:44:20]OFD Sender: To server: pG, [10:44:20]CommunicateWithHost lk.salyk.kg:30040 [10:44:20]ConnectInit lk.salyk.kg [10:44:20]ExternCall_PrintAddStr [10:44:20]wPrintStart [10:44:20]Write to MH i2c: 01 00 00 DF 03 E2 [10:44:20]Write i2c OK [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 07 00 [10:44:20]MH_I2C_Read... [10:44:20]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 FF 0F F7 [10:44:20]RasterBufferAndPrint [10:44:20]line Счет N : (1)48521 [10:44:20]line ИНН: 02508201610067 [10:44:20]line Контрольно-Кассовый Чек [10:44:20]line ПРОДАЖА [10:44:20]line ТРК (МРК, ГНК) : 72 [10:44:20]line Товар: 2711190000 [10:44:20]line ГАЗ-К-5 [10:44:20]line 15.300 * 32.70 [10:44:20]line = 500.31 [10:44:20]line НДС 12% НСП 1% [10:44:20]line > о реализуемом товаре [10:44:20]line ОКРУГЛЕНИЕ: -0.31 [10:44:20]line ИТОГО: 500.00 [10:44:20]line Внесено: 500.00 [10:44:20]line СДАЧА: 0.00 [10:44:20]line НСП 1% : 4.43 [10:44:20]line НДС 12% : 53.13 [10:44:20]line Наличными: 500.00 [10:44:20]line Безнал.: 0.00 [10:44:20]line Место: АЗС № 47 "Партнер Нефть" [10:44:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:44:20]line СНО: Общий режим [10:44:20]line Чек 106 14.04.2024 10:44 [10:44:20]line Смена: 357 ФФД: 1.0 [10:44:20]line ЗНМ: 0300000138 [10:44:20]line РНМ: 0000000000094237 [10:44:20]line Версия ККМ: 001 [10:44:20]line ФМ: 0000000000875019 [10:44:20]line ФД: 112207 [10:44:20]line ФПД: 203628795534871 [10:44:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104419&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112207&fm=203628795534871&tin=02508201610067®Number=0000000000094237&sum=50000 [10:44:21]Connected sock=11 [10:44:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 BE 7B 06 01 EE AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 83 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B6 01 00 35 04 06 00 B9 33 06 06 1E 17 93 FE 9F 37 C2 1D E9 DF [10:44:21]written 0, free lines is 4095 [10:44:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 61 21 47 00 D9 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 38 37 35 30 31 39 10 04 04 00 4F B6 01 00 F4 03 04 00 0F 5B 1B 66 B6 04 01 00 00 BA 64 D1 07 74 CE E5 E6 [10:44:21]CommunicateWithHost err = 0 [10:44:21]CheckOFDResponse [10:44:21]1017 (14) - 77093643461234 [10:44:21]1041 (16) - 0000000000875019 [10:44:21]1040 (4) - 112207 [10:44:21]1012 (4) - 14.04.2024 04:26 [10:44:21]1206 (1) - 0 [10:44:21]OFD Sender: Remove packet 112207 [10:44:21]ProducePacketName [10:44:21]name=ofd_packets/00112207 [10:44:21]NVStorageDeleteData [10:44:21]Write to MH i2c: 01 00 00 0A 04 0E [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: 01 07 00 0A 04 00 00 00 00 00 D8 0C F9 [10:44:21]RasterBufferAndPrint [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]line [10:44:21]written 0, free lines is 3295 [10:44:21]MH_Cut [10:44:21]Write to MH i2c: D1 01 00 11 04 01 E7 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 01 00 [10:44:21]MH_I2C_Read... [10:44:21]Read from MH i2c: D1 01 00 11 04 00 E6 [10:44:21]Write to MH i2c: 01 00 00 12 04 16 [10:44:21]Write i2c OK [10:44:21]MH_I2C_Read... [10:44:21]OFD Sender: No OFD packet to send [10:44:22]*** Cut start [10:44:22]*** Partial cut [10:44:22]*** CUTSNS_PIN = 1 [10:44:22]*** CUTSNS_PIN = 0 [10:44:22]*** Brake cut motor [10:44:22]Read from MH i2c: 01 [10:44:22]MH_I2C_Read... [10:44:22]*** Stop cut motor [10:44:22]*** Cut end [10:44:22]Read from MH i2c: 01 07 00 [10:44:22]MH_I2C_Read... [10:44:22]Read from MH i2c: 01 07 00 12 04 00 00 00 00 00 FF 0F 2B [10:44:22]process_action close_receipt done [10:44:22]requested_data is exist [10:44:22]produce_requested_data [10:44:22]requested_item fm.sn is exist - process it [10:44:22]wFMCommunicate request_size=4 [10:44:22]MH_SAM_APDU [10:44:22]CAPDU: 80 11 00 00 [10:44:22]Write to MH i2c: E2 08 00 13 04 80 11 00 00 00 00 00 00 91 [10:44:22]Write i2c OK [10:44:22]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 17 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 17 00 13 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E2 [10:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:44:23]wFMCommunicate OK [10:44:23]requested_item fd.num is exist - process it [10:44:23]SAM_PROTO_GetFieldsCounters [10:44:23]wFMCommunicate request_size=4 [10:44:23]MH_SAM_APDU [10:44:23]CAPDU: 80 13 00 00 [10:44:23]Write to MH i2c: E2 08 00 14 04 80 13 00 00 00 00 00 00 94 [10:44:23]Write i2c OK [10:44:23]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 62 00 [10:44:23]MH_I2C_Read... [10:44:23]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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4F B6 01 00 0E 04 04 00 65 01 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 5D [10:44:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4F B6 01 00 0E 04 04 00 65 01 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 [10:44:23]wFMCommunicate OK [10:44:23]SAM_PROTO_GetFieldsCounters done [10:44:23]requested_item shift.num is exist - process it [10:44:23]requested_item shift.opened is exist - process it [10:44:23]req_shift_opened [10:44:23]FM_GetShiftState [10:44:23]SAM_PROTO_GetShiftState [10:44:23]wFMCommunicate request_size=4 [10:44:23]MH_SAM_APDU [10:44:23]CAPDU: 80 13 01 00 [10:44:23]Write to MH i2c: E2 08 00 15 04 80 13 01 00 00 00 00 00 96 [10:44:23]Write i2c OK [10:44:23]MH_I2C_Read... [10:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:23]Read from MH i2c: E2 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 0E 00 [10:44:23]MH_I2C_Read... [10:44:23]Read from MH i2c: E2 0E 00 15 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2E [10:44:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:44:23]wFMCommunicate OK [10:44:23]SAM_PROTO_GetShiftState done [10:44:23]FM_GetShiftState done [10:44:23]req_shift_opened done [10:44:23]requested_item shift.open_date is exist - process it [10:44:23]req_shift_open_date [10:44:23]req_shift_open_date done [10:44:23]produce_requested_data done [10:44:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112207,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:44:23]process_action_free close_receipt [10:44:23]json_value_free [10:44:23]json_value_free done [10:44:23]process_json_proto returns [10:44:23]Send response to host [10:44:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112207,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:44:23]free response buf [10:44:23]execute_script done [10:44:23]execute_script returns [10:44:23]free content buf [10:44:23]Sock 9.Close socket [10:44:23]Sock 9.Thread stoped [10:44:26]OFD Sender: No OFD packet to send [10:44:31]OFD Sender: No OFD packet to send [10:44:36]OFD Sender: No OFD packet to send [10:44:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:56]OFD Sender: No OFD packet to send [10:45:01]OFD Sender: No OFD packet to send [10:45:06]OFD Sender: No OFD packet to send [10:45:11]OFD Sender: No OFD packet to send [10:45:16]OFD Sender: No OFD packet to send [10:45:21]OFD Sender: No OFD packet to send [10:45:26]OFD Sender: No OFD packet to send [10:45:31]OFD Sender: No OFD packet to send [10:45:36]OFD Sender: No OFD packet to send [10:45:41]OFD Sender: No OFD packet to send [10:45:46]OFD Sender: No OFD packet to send [10:45:51]OFD Sender: No OFD packet to send [10:45:56]OFD Sender: No OFD packet to send [10:46:01]OFD Sender: No OFD packet to send [10:46:06]OFD Sender: No OFD packet to send [10:46:11]OFD Sender: No OFD packet to send [10:46:13]accept exits with 7 [10:46:13]New connection [10:46:13]New thread 3067342180 created [10:46:13]Thread 3067198820 joined [10:46:13]Waiting for new connection... [10:46:13] Sock 7.Parse request [10:46:13]Sock 7.Check first char [10:46:13]Sock 7.First char is OK [10:46:13]request: POST /json_proto HTTP/1.0 [10:46:13]Method: POST [10:46:13]URL: /json_proto [10:46:13]Method is POST - this is cgi request [10:46:13]url: /json_proto [10:46:13]query_string will be loaded in cgi processing [10:46:13]execute_cgi json_proto POST (null) [10:46:13]execute_cgi path=json_proto method=POST [10:46:13]POST find Content-Length [10:46:13]Host: 172.17.96.197:8080 [10:46:13]Content-Length: 677 [10:46:13]Content-Type: application/json [10:46:13] [10:46:13]POST finish read [10:46:13]Found Content-Length = 677 [10:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48522", "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.30, "quantity" : 10.270, "sum" : 660.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]execute_script... [10:46: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)48522", "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.30, "quantity" : 10.270, "sum" : 660.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:13]POST & json_proto [10:46:13]process_json_proto [10:46:13]json parsed OK: [10:46:13]protocol is kg_v1.0 [10:46:13]action value=close_receipt [10:46:13]process_action close_receipt [10:46:13]cmd_close_receipt [10:46:13]MH_GetDate [10:46:13]Write to MH i2c: F0 00 00 16 04 09 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: F0 09 00 16 04 00 F6 B3 1B 66 E0 85 7F 64 84 [10:46:13]GetLastDocTimeStamp 1713091459 [10:46:13]current date 1713091574 [10:46:13]FM_GetShiftState [10:46:13]SAM_PROTO_GetShiftState [10:46:13]wFMCommunicate request_size=4 [10:46:13]MH_SAM_APDU [10:46:13]CAPDU: 80 13 01 00 [10:46:13]Write to MH i2c: E2 08 00 17 04 80 13 01 00 00 00 00 00 98 [10:46:13]Write i2c OK [10:46:13]MH_I2C_Read... [10:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:13]Read from MH i2c: E2 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 [10:46:13]MH_I2C_Read... [10:46:13]Read from MH i2c: E2 0E 00 17 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 30 [10:46:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:46:13]wFMCommunicate OK [10:46:13]SAM_PROTO_GetShiftState done [10:46:13]FM_GetShiftState done [10:46:13]opened in 1713054696 [10:46:13]opened+sec_in_day 1713141096 [10:46:13]quantity*price = 66036 [10:46:13]sum+1 = 66037 [10:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.13 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 107 14.04.2024 10:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112208 ФПД: 91451935920841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104614&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112208&fm=91451935920841&tin=02508201610067®Number=0000000000094237&sum=66000 [10:46:14]StoreToDocumentArchive [10:46:14]shift 357 fd 112208 [10:46:14]save to /storage/0357/doc_00112208 [10:46:14]save last doc name /storage/0357/doc_00112208 to /storage/kkm_last_doc_name [10:46:14]save OK [10:46:14]Clear old archive folders... [10:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:14]tlvbuf is 017CD950 [10:46:14]SAM_PROTO_ClearQueue [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 09 00 00 [10:46:14]Write to MH i2c: E2 08 00 24 04 80 09 00 00 00 00 00 00 9A [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 24 04 00 90 00 9C [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]SAM_PROTO_ClearQueue done [10:46:14]KKMCreateOFDPacket [10:46:14]OFDProtocolAddRootSTLVToBuf [10:46:14]FM_MakeSignedData [10:46:14]FM_MakeSignedData [10:46:14]SAM_PROTO_SignData [10:46:14]wFMCommunicate request_size=4 [10:46:14]MH_SAM_APDU [10:46:14]CAPDU: 80 0D 01 02 [10:46:14]Write to MH i2c: E2 08 00 25 04 80 0D 01 02 00 00 00 00 A2 [10:46:14]Write i2c OK [10:46:14]MH_I2C_Read... [10:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:14]Read from MH i2c: E2 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 [10:46:14]MH_I2C_Read... [10:46:14]Read from MH i2c: E2 03 00 25 04 00 90 00 9D [10:46:14]RAPDU: 90 00 [10:46:14]wFMCommunicate OK [10:46:14]wFMCommunicate request_size=255 [10:46:14]MH_SAM_APDU [10:46:14]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 1E 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 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 6B 00 00 00 F4 03 04 00 F6 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B6 01 00 35 04 06 00 53 [10:46:15]Write to MH i2c: E2 02 01 26 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 1E 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 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 6B 00 00 00 F4 03 04 00 F6 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B6 01 00 35 04 06 00 53 00 00 E0 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 26 04 00 90 00 9E [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=10 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 02 02 05 2C D0 27 92 C9 [10:46:15]Write to MH i2c: E2 0D 00 27 04 80 0D 02 02 05 00 2C D0 27 92 C9 00 00 2D [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 03 00 27 04 00 90 00 9F [10:46:15]RAPDU: 90 00 [10:46:15]wFMCommunicate OK [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 0D 03 02 [10:46:15]Write to MH i2c: E2 08 00 28 04 80 0D 03 02 00 00 00 00 A7 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 0B 00 28 04 00 E1 5A A9 F0 5B 70 87 4F 90 00 1D [10:46:15]RAPDU: E1 5A A9 F0 5B 70 87 4F 90 00 [10:46:15]wFMCommunicate OK [10:46:15]SAM_PROTO_SignData done [10:46:15]FM_MakeSignedData done [10:46:15]CreateOFDProtocolMessage [10:46:15]wFMCommunicate request_size=4 [10:46:15]MH_SAM_APDU [10:46:15]CAPDU: 80 11 00 00 [10:46:15]Write to MH i2c: E2 08 00 29 04 80 11 00 00 00 00 00 00 A7 [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:15]Read from MH i2c: E2 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: E2 17 00 29 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F8 [10:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:46:15]wFMCommunicate OK [10:46:15]CreateOFDProtocolMessage done [10:46:15]OFDSenderStorePacket 112208 [10:46:15]StoreOFDPacket docnum=112208 [10:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C9 1C 07 01 39 03 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 1E 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 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 6B 00 00 00 F4 03 04 00 F6 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B6 01 00 35 04 06 00 53 2C D0 27 92 C9 E1 5A A9 F0 5B 70 87 4F [10:46:15]CheckFolder [10:46:15]dirname=/storage/ofd_packets [10:46:15]CheckFolder done [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00112208 [10:46:15]NVStorageSaveData ofd_packets/00112208 [10:46:15]File name is /storage/ofd_packets/00112208 [10:46:15]Write 301 bytes [10:46:15]NVStorageSaveData done [10:46:15]OFDSenderStorePacket done [10:46:15]KKMCreateOFDPacket done [10:46:15]NVStorageSaveData kkm_last_timestamp [10:46:15]File name is /storage/kkm_last_timestamp [10:46:15]Write 4 bytes [10:46:15]NVStorageSaveData done [10:46:15]ExternCall_PrintAddStr [10:46:15]wPrintStart [10:46:15]Write to MH i2c: 01 00 00 2A 04 2E [10:46:15]Write i2c OK [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 [10:46:15]MH_I2C_Read... [10:46:15]Read from MH i2c: 01 07 00 2A 04 00 00 00 00 00 FF 0F 43 [10:46:15]RasterBufferAndPrint [10:46:15]line Счет N : (1)48522 [10:46:15]line ИНН: 02508201610067 [10:46:15]line Контрольно-Кассовый Чек [10:46:15]line ПРОДАЖА [10:46:15]line ТРК (МРК, ГНК) : 42 [10:46:15]line Товар: 2710124130 [10:46:15]line Аи-92-К-5 [10:46:15]line 10.270 * 64.30 [10:46:15]line = 660.36 [10:46:15]line НДС 12% НСП 1% [10:46:15]line > о реализуемом товаре [10:46:15]line ОКРУГЛЕНИЕ: -0.36 [10:46:15]line ИТОГО: 660.00 [10:46:15]line Внесено: 660.00 [10:46:15]line СДАЧА: 0.00 [10:46:15]line НСП 1% : 5.84 [10:46:15]line НДС 12% : 70.13 [10:46:15]line Наличными: 660.00 [10:46:15]line Безнал.: 0.00 [10:46:15]line Место: АЗС № 47 "Партнер Нефть" [10:46:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:46:15]line СНО: Общий режим [10:46:15]line Чек 107 14.04.2024 10:46 [10:46:15]line Смена: 357 ФФД: 1.0 [10:46:15]line ЗНМ: 0300000138 [10:46:15]line РНМ: 0000000000094237 [10:46:15]line Версия ККМ: 001 [10:46:15]line ФМ: 0000000000875019 [10:46:15]line ФД: 112208 [10:46:15]line ФПД: 91451935920841 [10:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104614&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112208&fm=91451935920841&tin=02508201610067®Number=0000000000094237&sum=66000 [10:46:15]OFD Sender: Processing packet 112208 [packets to send 71, broken 70] [10:46:15]ProducePacketName [10:46:15]name=ofd_packets/00112208 [10:46:15]OFD Sender: To server: pG, [10:46:15]CommunicateWithHost lk.salyk.kg:30040 [10:46:15]ConnectInit lk.salyk.kg [10:46:15]written 0, free lines is 4095 [10:46:15]Connected sock=10 [10:46:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C9 1C 07 01 39 03 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 1E 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F4 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 1B 00 00 00 00 07 04 06 00 D0 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 6B 00 00 00 F4 03 04 00 F6 B3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B6 01 00 35 04 06 00 53 2C D0 27 92 C9 E1 5A A9 F0 5B 70 87 4F [10:46:16]Write to MH i2c: 01 00 00 55 04 59 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: 01 07 00 55 04 00 00 00 00 00 DC 0C 48 [10:46:16]RasterBufferAndPrint [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]line [10:46:16]written 0, free lines is 3298 [10:46:16]MH_Cut [10:46:16]Write to MH i2c: D1 01 00 5C 04 01 32 [10:46:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0C 9D 47 00 A4 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B6 01 00 F4 03 04 00 81 5B 1B 66 B6 04 01 00 00 19 50 D7 B9 A4 3C BE D3 [10:46:16]CommunicateWithHost err = 0 [10:46:16]CheckOFDResponse [10:46:16]1017 (14) - 77093643461234 [10:46:16]1041 (16) - 0000000000875019 [10:46:16]1040 (4) - 112208 [10:46:16]1012 (4) - 14.04.2024 04:28 [10:46:16]1206 (1) - 0 [10:46:16]OFD Sender: Remove packet 112208 [10:46:16]ProducePacketName [10:46:16]name=ofd_packets/00112208 [10:46:16]NVStorageDeleteData [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 [10:46:16]MH_I2C_Read... [10:46:16]Read from MH i2c: D1 01 00 5C 04 00 31 [10:46:16]Write to MH i2c: 01 00 00 5D 04 61 [10:46:16]Write i2c OK [10:46:16]MH_I2C_Read... [10:46:16]OFD Sender: No OFD packet to send [10:46:16]*** Cut start [10:46:16]*** Partial cut [10:46:16]*** CUTSNS_PIN = 1 [10:46:16]*** CUTSNS_PIN = 0 [10:46:17]*** Brake cut motor [10:46:17]Read from MH i2c: 01 [10:46:17]MH_I2C_Read... [10:46:17]*** Stop cut motor [10:46:17]*** Cut end [10:46:17]Read from MH i2c: 01 07 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: 01 07 00 5D 04 00 00 00 00 00 FF 0F 76 [10:46:17]process_action close_receipt done [10:46:17]requested_data is exist [10:46:17]produce_requested_data [10:46:17]requested_item fm.sn is exist - process it [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 11 00 00 [10:46:17]Write to MH i2c: E2 08 00 5E 04 80 11 00 00 00 00 00 00 DC [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 17 00 5E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2D [10:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:46:17]wFMCommunicate OK [10:46:17]requested_item fd.num is exist - process it [10:46:17]SAM_PROTO_GetFieldsCounters [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 00 00 [10:46:17]Write to MH i2c: E2 08 00 5F 04 80 13 00 00 00 00 00 00 DF [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 62 00 5F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 50 B6 01 00 0E 04 04 00 65 01 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 AC [10:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 50 B6 01 00 0E 04 04 00 65 01 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 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetFieldsCounters done [10:46:17]requested_item shift.num is exist - process it [10:46:17]requested_item shift.opened is exist - process it [10:46:17]req_shift_opened [10:46:17]FM_GetShiftState [10:46:17]SAM_PROTO_GetShiftState [10:46:17]wFMCommunicate request_size=4 [10:46:17]MH_SAM_APDU [10:46:17]CAPDU: 80 13 01 00 [10:46:17]Write to MH i2c: E2 08 00 60 04 80 13 01 00 00 00 00 00 E1 [10:46:17]Write i2c OK [10:46:17]MH_I2C_Read... [10:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:17]Read from MH i2c: E2 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 [10:46:17]MH_I2C_Read... [10:46:17]Read from MH i2c: E2 0E 00 60 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 79 [10:46:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:46:17]wFMCommunicate OK [10:46:17]SAM_PROTO_GetShiftState done [10:46:17]FM_GetShiftState done [10:46:17]req_shift_opened done [10:46:17]requested_item shift.open_date is exist - process it [10:46:17]req_shift_open_date [10:46:17]req_shift_open_date done [10:46:17]produce_requested_data done [10:46:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112208,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:46:17]process_action_free close_receipt [10:46:17]json_value_free [10:46:17]json_value_free done [10:46:17]process_json_proto returns [10:46:17]Send response to host [10:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112208,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:46:17]free response buf [10:46:17]execute_script done [10:46:17]execute_script returns [10:46:17]free content buf [10:46:17]Sock 7.Close socket [10:46:17]Sock 7.Thread stoped [10:46:21]OFD Sender: No OFD packet to send [10:46:26]OFD Sender: No OFD packet to send [10:46:31]OFD Sender: No OFD packet to send [10:46:36]OFD Sender: No OFD packet to send [10:46:41]OFD Sender: No OFD packet to send [10:46:46]OFD Sender: No OFD packet to send [10:46:51]OFD Sender: No OFD packet to send [10:46:56]OFD Sender: No OFD packet to send [10:47:01]OFD Sender: No OFD packet to send [10:47:06]OFD Sender: No OFD packet to send [10:47:09]accept exits with 9 [10:47:09]New connection [10:47:09]New thread 3067198820 created [10:47:09]Thread 3067342180 joined [10:47:09]Waiting for new connection... [10:47:09] Sock 9.Parse request [10:47:09]Sock 9.Check first char [10:47:09]Sock 9.First char is OK [10:47:09]request: POST /json_proto HTTP/1.0 [10:47:09]Method: POST [10:47:09]URL: /json_proto [10:47:09]Method is POST - this is cgi request [10:47:09]url: /json_proto [10:47:09]query_string will be loaded in cgi processing [10:47:09]execute_cgi json_proto POST (null) [10:47:09]execute_cgi path=json_proto method=POST [10:47:09]POST find Content-Length [10:47:09]Host: 172.17.96.197:8080 [10:47:09]Content-Length: 676 [10:47:09]Content-Type: application/json [10:47:09] [10:47:09]POST finish read [10:47:09]Found Content-Length = 676 [10:47:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.000, "sum" : 128.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 128.00, "total" : 128.00, "payments": [ { "type": 0, "sum" : 128.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:09]execute_script... [10:47: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)48523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 2.000, "sum" : 128.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 128.00, "total" : 128.00, "payments": [ { "type": 0, "sum" : 128.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:47:09]POST & json_proto [10:47:09]process_json_proto [10:47:09]json parsed OK: [10:47:09]protocol is kg_v1.0 [10:47:09]action value=close_receipt [10:47:09]process_action close_receipt [10:47:09]cmd_close_receipt [10:47:09]MH_GetDate [10:47:09]Write to MH i2c: F0 00 00 61 04 54 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 09 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: F0 09 00 61 04 00 2E B4 1B 66 E0 85 7F 64 08 [10:47:09]GetLastDocTimeStamp 1713091574 [10:47:09]current date 1713091630 [10:47:09]FM_GetShiftState [10:47:09]SAM_PROTO_GetShiftState [10:47:09]wFMCommunicate request_size=4 [10:47:09]MH_SAM_APDU [10:47:09]CAPDU: 80 13 01 00 [10:47:09]Write to MH i2c: E2 08 00 62 04 80 13 01 00 00 00 00 00 E3 [10:47:09]Write i2c OK [10:47:09]MH_I2C_Read... [10:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:09]Read from MH i2c: E2 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 [10:47:09]MH_I2C_Read... [10:47:09]Read from MH i2c: E2 0E 00 62 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7B [10:47:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:47:09]wFMCommunicate OK [10:47:09]SAM_PROTO_GetShiftState done [10:47:09]FM_GetShiftState done [10:47:09]opened in 1713054696 [10:47:09]opened+sec_in_day 1713141096 [10:47:09]quantity*price = 12860 [10:47:09]sum+1 = 12861 [10:47:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 128.00 Внесено: 128.00 СДАЧА: 0.00 НСП 1% : 1.14 НДС 12% : 13.66 Наличными: 128.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 108 14.04.2024 10:47 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112209 ФПД: 74697869740832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104710&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112209&fm=74697869740832&tin=02508201610067®Number=0000000000094237&sum=12800 [10:47:10]StoreToDocumentArchive [10:47:10]shift 357 fd 112209 [10:47:10]save to /storage/0357/doc_00112209 [10:47:10]save last doc name /storage/0357/doc_00112209 to /storage/kkm_last_doc_name [10:47:10]save OK [10:47:10]Clear old archive folders... [10:47:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:47:10]tlvbuf is 01775760 [10:47:10]SAM_PROTO_ClearQueue [10:47:10]wFMCommunicate request_size=4 [10:47:10]MH_SAM_APDU [10:47:10]CAPDU: 80 09 00 00 [10:47:10]Write to MH i2c: E2 08 00 6F 04 80 09 00 00 00 00 00 00 E5 [10:47:10]Write i2c OK [10:47:10]MH_I2C_Read... [10:47:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 6F 04 00 90 00 E7 [10:47:11]RAPDU: 90 00 [10:47:11]wFMCommunicate OK [10:47:11]SAM_PROTO_ClearQueue done [10:47:11]KKMCreateOFDPacket [10:47:11]OFDProtocolAddRootSTLVToBuf [10:47:11]FM_MakeSignedData [10:47:11]FM_MakeSignedData [10:47:11]SAM_PROTO_SignData [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 0D 01 02 [10:47:11]Write to MH i2c: E2 08 00 70 04 80 0D 01 02 00 00 00 00 ED [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 70 04 00 90 00 E8 [10:47:11]RAPDU: 90 00 [10:47:11]wFMCommunicate OK [10:47:11]wFMCommunicate request_size=255 [10:47:11]MH_SAM_APDU [10:47:11]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 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 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 6C 00 00 00 F4 03 04 00 2E B4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B6 01 00 35 04 06 00 43 [10:47:11]Write to MH i2c: E2 02 01 71 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 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 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 6C 00 00 00 F4 03 04 00 2E B4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B6 01 00 35 04 06 00 43 00 00 22 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 71 04 00 90 00 E9 [10:47:11]RAPDU: 90 00 [10:47:11]wFMCommunicate OK [10:47:11]wFMCommunicate request_size=10 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 0D 02 02 05 EF F3 FD CB 20 [10:47:11]Write to MH i2c: E2 0D 00 72 04 80 0D 02 02 05 00 EF F3 FD CB 20 00 00 C4 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 03 00 72 04 00 90 00 EA [10:47:11]RAPDU: 90 00 [10:47:11]wFMCommunicate OK [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 0D 03 02 [10:47:11]Write to MH i2c: E2 08 00 73 04 80 0D 03 02 00 00 00 00 F2 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 0B 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 0B 00 73 04 00 B8 D1 06 DE ED 9A A2 76 90 00 FF [10:47:11]RAPDU: B8 D1 06 DE ED 9A A2 76 90 00 [10:47:11]wFMCommunicate OK [10:47:11]SAM_PROTO_SignData done [10:47:11]FM_MakeSignedData done [10:47:11]CreateOFDProtocolMessage [10:47:11]wFMCommunicate request_size=4 [10:47:11]MH_SAM_APDU [10:47:11]CAPDU: 80 11 00 00 [10:47:11]Write to MH i2c: E2 08 00 74 04 80 11 00 00 00 00 00 00 F2 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:11]Read from MH i2c: E2 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 17 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: E2 17 00 74 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 43 [10:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:47:11]wFMCommunicate OK [10:47:11]CreateOFDProtocolMessage done [10:47:11]OFDSenderStorePacket 112209 [10:47:11]StoreOFDPacket docnum=112209 [10:47:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D7 01 07 01 B9 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 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 6C 00 00 00 F4 03 04 00 2E B4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B6 01 00 35 04 06 00 43 EF F3 FD CB 20 B8 D1 06 DE ED 9A A2 76 [10:47:11]CheckFolder [10:47:11]dirname=/storage/ofd_packets [10:47:11]CheckFolder done [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00112209 [10:47:11]NVStorageSaveData ofd_packets/00112209 [10:47:11]File name is /storage/ofd_packets/00112209 [10:47:11]Write 301 bytes [10:47:11]NVStorageSaveData done [10:47:11]OFDSenderStorePacket done [10:47:11]KKMCreateOFDPacket done [10:47:11]NVStorageSaveData kkm_last_timestamp [10:47:11]File name is /storage/kkm_last_timestamp [10:47:11]Write 4 bytes [10:47:11]NVStorageSaveData done [10:47:11]ExternCall_PrintAddStr [10:47:11]wPrintStart [10:47:11]Write to MH i2c: 01 00 00 75 04 79 [10:47:11]Write i2c OK [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 07 00 [10:47:11]MH_I2C_Read... [10:47:11]Read from MH i2c: 01 07 00 75 04 00 00 00 00 00 FF 0F 8E [10:47:11]RasterBufferAndPrint [10:47:11]line Счет N : (1)48523 [10:47:11]line ИНН: 02508201610067 [10:47:11]line Контрольно-Кассовый Чек [10:47:11]line ПРОДАЖА [10:47:11]line ТРК (МРК, ГНК) : 21 [10:47:11]line Товар: 2710124130 [10:47:11]line Аи-92-К-5 [10:47:11]line 2.000 * 64.30 [10:47:11]line = 128.60 [10:47:11]line НДС 12% НСП 1% [10:47:11]line > о реализуемом товаре [10:47:11]line ОКРУГЛЕНИЕ: -0.60 [10:47:11]line ИТОГО: 128.00 [10:47:11]line Внесено: 128.00 [10:47:11]line СДАЧА: 0.00 [10:47:11]line НСП 1% : 1.14 [10:47:11]line НДС 12% : 13.66 [10:47:11]line Наличными: 128.00 [10:47:11]line Безнал.: 0.00 [10:47:11]line Место: АЗС № 47 "Партнер Нефть" [10:47:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:47:11]line СНО: Общий режим [10:47:11]line Чек 108 14.04.2024 10:47 [10:47:11]line Смена: 357 ФФД: 1.0 [10:47:11]line ЗНМ: 0300000138 [10:47:11]line РНМ: 0000000000094237 [10:47:11]line Версия ККМ: 001 [10:47:11]line ФМ: 0000000000875019 [10:47:11]line ФД: 112209 [10:47:11]line ФПД: 74697869740832 [10:47:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T104710&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112209&fm=74697869740832&tin=02508201610067®Number=0000000000094237&sum=12800 [10:47:11]OFD Sender: Processing packet 112209 [packets to send 71, broken 70] [10:47:11]ProducePacketName [10:47:11]name=ofd_packets/00112209 [10:47:11]OFD Sender: To server: pG, [10:47:11]CommunicateWithHost lk.salyk.kg:30040 [10:47:11]ConnectInit lk.salyk.kg [10:47:11]written 0, free lines is 4095 [10:47:11]Connected sock=10 [10:47:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D7 01 07 01 B9 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 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 6C 00 00 00 F4 03 04 00 2E B4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B6 01 00 35 04 06 00 43 EF F3 FD CB 20 B8 D1 06 DE ED 9A A2 76 [10:47:12]Write to MH i2c: 01 00 00 A0 04 A4 [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 07 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: 01 07 00 A0 04 00 00 00 00 00 DF 0C 96 [10:47:12]RasterBufferAndPrint [10:47:12]line [10:47:12]line [10:47:12]line [10:47:12]line [10:47:12]line [10:47:12]written 0, free lines is 3301 [10:47:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A6 F7 47 00 B3 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B6 01 00 F4 03 04 00 B9 5B 1B 66 B6 04 01 00 00 64 84 4C B9 C5 24 37 48 [10:47:12]CommunicateWithHost err = 0 [10:47:12]CheckOFDResponse [10:47:12]1017 (14) - 77093643461234 [10:47:12]1041 (16) - 0000000000875019 [10:47:12]1040 (4) - 112209 [10:47:12]1012 (4) - 14.04.2024 04:29 [10:47:12]1206 (1) - 0 [10:47:12]OFD Sender: Remove packet 112209 [10:47:12]ProducePacketName [10:47:12]name=ofd_packets/00112209 [10:47:12]NVStorageDeleteData [10:47:12]MH_Cut [10:47:12]Write to MH i2c: D1 01 00 A7 04 01 7D [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: D1 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: D1 01 00 [10:47:12]MH_I2C_Read... [10:47:12]Read from MH i2c: D1 01 00 A7 04 00 7C [10:47:12]Write to MH i2c: 01 00 00 A8 04 AC [10:47:12]Write i2c OK [10:47:12]MH_I2C_Read... [10:47:12]OFD Sender: No OFD packet to send [10:47:12]*** Cut start [10:47:12]*** Partial cut [10:47:12]*** CUTSNS_PIN = 1 [10:47:13]*** CUTSNS_PIN = 0 [10:47:13]*** Brake cut motor [10:47:13]Read from MH i2c: 01 [10:47:13]MH_I2C_Read... [10:47:13]*** Stop cut motor [10:47:13]*** Cut end [10:47:13]Read from MH i2c: 01 07 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: 01 07 00 A8 04 00 00 00 00 00 FF 0F C1 [10:47:13]process_action close_receipt done [10:47:13]requested_data is exist [10:47:13]produce_requested_data [10:47:13]requested_item fm.sn is exist - process it [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 11 00 00 [10:47:13]Write to MH i2c: E2 08 00 A9 04 80 11 00 00 00 00 00 00 27 [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 17 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 17 00 A9 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [10:47:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:47:13]wFMCommunicate OK [10:47:13]requested_item fd.num is exist - process it [10:47:13]SAM_PROTO_GetFieldsCounters [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 13 00 00 [10:47:13]Write to MH i2c: E2 08 00 AA 04 80 13 00 00 00 00 00 00 2A [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 62 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 62 00 AA 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 51 B6 01 00 0E 04 04 00 65 01 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 FB [10:47:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 51 B6 01 00 0E 04 04 00 65 01 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 [10:47:13]wFMCommunicate OK [10:47:13]SAM_PROTO_GetFieldsCounters done [10:47:13]requested_item shift.num is exist - process it [10:47:13]requested_item shift.opened is exist - process it [10:47:13]req_shift_opened [10:47:13]FM_GetShiftState [10:47:13]SAM_PROTO_GetShiftState [10:47:13]wFMCommunicate request_size=4 [10:47:13]MH_SAM_APDU [10:47:13]CAPDU: 80 13 01 00 [10:47:13]Write to MH i2c: E2 08 00 AB 04 80 13 01 00 00 00 00 00 2C [10:47:13]Write i2c OK [10:47:13]MH_I2C_Read... [10:47:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:13]Read from MH i2c: E2 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 0E 00 [10:47:13]MH_I2C_Read... [10:47:13]Read from MH i2c: E2 0E 00 AB 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [10:47:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:47:13]wFMCommunicate OK [10:47:13]SAM_PROTO_GetShiftState done [10:47:13]FM_GetShiftState done [10:47:13]req_shift_opened done [10:47:13]requested_item shift.open_date is exist - process it [10:47:13]req_shift_open_date [10:47:13]req_shift_open_date done [10:47:13]produce_requested_data done [10:47:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112209,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:47:13]process_action_free close_receipt [10:47:13]json_value_free [10:47:13]json_value_free done [10:47:13]process_json_proto returns [10:47:13]Send response to host [10:47:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112209,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:47:13]free response buf [10:47:13]execute_script done [10:47:13]execute_script returns [10:47:13]free content buf [10:47:13]Sock 9.Close socket [10:47:13]Sock 9.Thread stoped [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: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:47]OFD Sender: No OFD packet to send [10:48:52]OFD Sender: No OFD packet to send [10:48:57]OFD Sender: No OFD packet to send [10:49:02]OFD Sender: No OFD packet to send [10:49:07]OFD Sender: No OFD packet to send [10:49:12]OFD Sender: No OFD packet to send [10:49:17]OFD Sender: No OFD packet to send [10:49:22]OFD Sender: No OFD packet to send [10:49:27]OFD Sender: No OFD packet to send [10:49:32]OFD Sender: No OFD packet to send [10:49:37]OFD Sender: No OFD packet to send [10:49:42]OFD Sender: No OFD packet to send [10:49:47]OFD Sender: No OFD packet to send [10:49:52]OFD Sender: No OFD packet to send [10:49:57]OFD Sender: No OFD packet to send [10:50:02]OFD Sender: No OFD packet to send [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:39]accept exits with 7 [10:50:39]New connection [10:50:39]New thread 3067342180 created [10:50:39]Thread 3067198820 joined [10:50:39]Waiting for new connection... [10:50:39] Sock 7.Parse request [10:50:39]Sock 7.Check first char [10:50:39]Sock 7.First char is OK [10:50:39]request: POST /json_proto HTTP/1.0 [10:50:39]Method: POST [10:50:39]URL: /json_proto [10:50:39]Method is POST - this is cgi request [10:50:39]url: /json_proto [10:50:39]query_string will be loaded in cgi processing [10:50:39]execute_cgi json_proto POST (null) [10:50:39]execute_cgi path=json_proto method=POST [10:50:39]POST find Content-Length [10:50:39]Host: 172.17.96.197:8080 [10:50:39]Content-Length: 677 [10:50:39]Content-Type: application/json [10:50:39] [10:50:39]POST finish read [10:50:39]Found Content-Length = 677 [10:50:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:50:39]execute_script... [10:50: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)48524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.890, "sum" : 700.23, "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:50:39]POST & json_proto [10:50:39]process_json_proto [10:50:39]json parsed OK: [10:50:39]protocol is kg_v1.0 [10:50:39]action value=close_receipt [10:50:39]process_action close_receipt [10:50:39]cmd_close_receipt [10:50:39]MH_GetDate [10:50:39]Write to MH i2c: F0 00 00 AC 04 9F [10:50:39]Write i2c OK [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: F0 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: F0 09 00 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: F0 09 00 AC 04 00 00 B5 1B 66 E0 85 7F 64 26 [10:50:39]GetLastDocTimeStamp 1713091630 [10:50:39]current date 1713091840 [10:50:39]FM_GetShiftState [10:50:39]SAM_PROTO_GetShiftState [10:50:39]wFMCommunicate request_size=4 [10:50:39]MH_SAM_APDU [10:50:39]CAPDU: 80 13 01 00 [10:50:39]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [10:50:39]Write i2c OK [10:50:39]MH_I2C_Read... [10:50:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:39]Read from MH i2c: E2 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: E2 0E 00 [10:50:39]MH_I2C_Read... [10:50:39]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C6 [10:50:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:50:39]wFMCommunicate OK [10:50:39]SAM_PROTO_GetShiftState done [10:50:39]FM_GetShiftState done [10:50:39]opened in 1713054696 [10:50:39]opened+sec_in_day 1713141096 [10:50:39]quantity*price = 70022 [10:50:39]sum+1 = 70024 [10:50:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 109 14.04.2024 10:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112210 ФПД: 150484630008105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105040&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112210&fm=150484630008105&tin=02508201610067®Number=0000000000094237&sum=70000 [10:50:40]StoreToDocumentArchive [10:50:40]shift 357 fd 112210 [10:50:40]save to /storage/0357/doc_00112210 [10:50:40]save last doc name /storage/0357/doc_00112210 to /storage/kkm_last_doc_name [10:50:40]save OK [10:50:40]Clear old archive folders... [10:50:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:40]tlvbuf is 0182E030 [10:50:40]SAM_PROTO_ClearQueue [10:50:40]wFMCommunicate request_size=4 [10:50:40]MH_SAM_APDU [10:50:40]CAPDU: 80 09 00 00 [10:50:40]Write to MH i2c: E2 08 00 BA 04 80 09 00 00 00 00 00 00 30 [10:50:40]Write i2c OK [10:50:40]MH_I2C_Read... [10:50:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:40]Read from MH i2c: E2 [10:50:40]MH_I2C_Read... [10:50:40]Read from MH i2c: E2 03 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 BA 04 00 90 00 32 [10:50:41]RAPDU: 90 00 [10:50:41]wFMCommunicate OK [10:50:41]SAM_PROTO_ClearQueue done [10:50:41]KKMCreateOFDPacket [10:50:41]OFDProtocolAddRootSTLVToBuf [10:50:41]FM_MakeSignedData [10:50:41]FM_MakeSignedData [10:50:41]SAM_PROTO_SignData [10:50:41]wFMCommunicate request_size=4 [10:50:41]MH_SAM_APDU [10:50:41]CAPDU: 80 0D 01 02 [10:50:41]Write to MH i2c: E2 08 00 BB 04 80 0D 01 02 00 00 00 00 38 [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 BB 04 00 90 00 33 [10:50:41]RAPDU: 90 00 [10:50:41]wFMCommunicate OK [10:50:41]wFMCommunicate request_size=255 [10:50:41]MH_SAM_APDU [10:50:41]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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 6D 00 00 00 F4 03 04 00 00 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B6 01 00 35 04 06 00 88 [10:50:41]Write to MH i2c: E2 02 01 BC 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 6D 00 00 00 F4 03 04 00 00 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B6 01 00 35 04 06 00 88 00 00 F9 [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [10:50:41]RAPDU: 90 00 [10:50:41]wFMCommunicate OK [10:50:41]wFMCommunicate request_size=10 [10:50:41]MH_SAM_APDU [10:50:41]CAPDU: 80 0D 02 02 05 DD 6E EA 71 29 [10:50:41]Write to MH i2c: E2 0D 00 BD 04 80 0D 02 02 05 00 DD 6E EA 71 29 00 00 14 [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [10:50:41]RAPDU: 90 00 [10:50:41]wFMCommunicate OK [10:50:41]wFMCommunicate request_size=4 [10:50:41]MH_SAM_APDU [10:50:41]CAPDU: 80 0D 03 02 [10:50:41]Write to MH i2c: E2 08 00 BE 04 80 0D 03 02 00 00 00 00 3D [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 0B 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 0B 00 BE 04 00 C9 BD 2B 95 A6 C2 F2 C8 90 00 A6 [10:50:41]RAPDU: C9 BD 2B 95 A6 C2 F2 C8 90 00 [10:50:41]wFMCommunicate OK [10:50:41]SAM_PROTO_SignData done [10:50:41]FM_MakeSignedData done [10:50:41]CreateOFDProtocolMessage [10:50:41]wFMCommunicate request_size=4 [10:50:41]MH_SAM_APDU [10:50:41]CAPDU: 80 11 00 00 [10:50:41]Write to MH i2c: E2 08 00 BF 04 80 11 00 00 00 00 00 00 3D [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:41]Read from MH i2c: E2 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 17 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: E2 17 00 BF 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [10:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:50:41]wFMCommunicate OK [10:50:41]CreateOFDProtocolMessage done [10:50:41]OFDSenderStorePacket 112210 [10:50:41]StoreOFDPacket docnum=112210 [10:50:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FF A2 07 01 6E A6 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 6D 00 00 00 F4 03 04 00 00 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B6 01 00 35 04 06 00 88 DD 6E EA 71 29 C9 BD 2B 95 A6 C2 F2 C8 [10:50:41]CheckFolder [10:50:41]dirname=/storage/ofd_packets [10:50:41]CheckFolder done [10:50:41]ProducePacketName [10:50:41]name=ofd_packets/00112210 [10:50:41]NVStorageSaveData ofd_packets/00112210 [10:50:41]File name is /storage/ofd_packets/00112210 [10:50:41]Write 301 bytes [10:50:41]NVStorageSaveData done [10:50:41]OFDSenderStorePacket done [10:50:41]KKMCreateOFDPacket done [10:50:41]NVStorageSaveData kkm_last_timestamp [10:50:41]File name is /storage/kkm_last_timestamp [10:50:41]Write 4 bytes [10:50:41]NVStorageSaveData done [10:50:41]ExternCall_PrintAddStr [10:50:41]wPrintStart [10:50:41]Write to MH i2c: 01 00 00 C0 04 C4 [10:50:41]Write i2c OK [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: 01 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: 01 07 00 [10:50:41]MH_I2C_Read... [10:50:41]Read from MH i2c: 01 07 00 C0 04 00 00 00 00 00 FF 0F D9 [10:50:41]RasterBufferAndPrint [10:50:41]line Счет N : (1)48524 [10:50:41]line ИНН: 02508201610067 [10:50:41]line Контрольно-Кассовый Чек [10:50:41]line ПРОДАЖА [10:50:41]line ТРК (МРК, ГНК) : 11 [10:50:41]line Товар: 2710124130 [10:50:41]line Аи-92-К-5 [10:50:41]line 10.890 * 64.30 [10:50:41]line = 700.23 [10:50:41]line НДС 12% НСП 1% [10:50:41]line > о реализуемом товаре [10:50:41]line ОКРУГЛЕНИЕ: -0.23 [10:50:41]line ИТОГО: 700.00 [10:50:41]line Внесено: 700.00 [10:50:41]line СДАЧА: 0.00 [10:50:41]line НСП 1% : 6.20 [10:50:41]line НДС 12% : 74.36 [10:50:41]line Наличными: 700.00 [10:50:41]line Безнал.: 0.00 [10:50:41]line Место: АЗС № 47 "Партнер Нефть" [10:50:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:50:41]line СНО: Общий режим [10:50:41]line Чек 109 14.04.2024 10:50 [10:50:41]line Смена: 357 ФФД: 1.0 [10:50:41]line ЗНМ: 0300000138 [10:50:41]line РНМ: 0000000000094237 [10:50:41]line Версия ККМ: 001 [10:50:41]line ФМ: 0000000000875019 [10:50:41]line ФД: 112210 [10:50:41]line ФПД: 150484630008105 [10:50:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105040&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112210&fm=150484630008105&tin=02508201610067®Number=0000000000094237&sum=70000 [10:50:41]written 0, free lines is 4095 [10:50:41]OFD Sender: Processing packet 112210 [packets to send 71, broken 70] [10:50:41]ProducePacketName [10:50:41]name=ofd_packets/00112210 [10:50:41]OFD Sender: To server: pG, [10:50:41]CommunicateWithHost lk.salyk.kg:30040 [10:50:41]ConnectInit lk.salyk.kg [10:50:41]Connected sock=10 [10:50:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FF A2 07 01 6E A6 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 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 0C 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 6D 00 00 00 F4 03 04 00 00 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B6 01 00 35 04 06 00 88 DD 6E EA 71 29 C9 BD 2B 95 A6 C2 F2 C8 [10:50:42]Write to MH i2c: 01 00 00 EB 04 EF [10:50:42]Write i2c OK [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: 01 [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: 01 07 00 [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 D8 0C DA [10:50:42]RasterBufferAndPrint [10:50:42]line [10:50:42]line [10:50:42]line [10:50:42]line [10:50:42]line [10:50:42]written 0, free lines is 3296 [10:50:42]MH_Cut [10:50:42]Write to MH i2c: D1 01 00 F2 04 01 C8 [10:50:42]Write i2c OK [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: D1 [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: D1 01 00 [10:50:42]MH_I2C_Read... [10:50:42]Read from MH i2c: D1 01 00 F2 04 00 C7 [10:50:42]Write to MH i2c: 01 00 00 F3 04 F7 [10:50:42]Write i2c OK [10:50:42]MH_I2C_Read... [10:50:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1E C2 47 00 AA A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B6 01 00 F4 03 04 00 8B 5C 1B 66 B6 04 01 00 00 54 F7 6F DF 5B 39 BC 0A [10:50:42]CommunicateWithHost err = 0 [10:50:42]CheckOFDResponse [10:50:42]1017 (14) - 77093643461234 [10:50:42]1041 (16) - 0000000000875019 [10:50:42]1040 (4) - 112210 [10:50:42]1012 (4) - 14.04.2024 04:33 [10:50:42]1206 (1) - 0 [10:50:42]OFD Sender: Remove packet 112210 [10:50:42]ProducePacketName [10:50:42]name=ofd_packets/00112210 [10:50:42]NVStorageDeleteData [10:50:42]OFD Sender: No OFD packet to send [10:50:42]*** Cut start [10:50:42]*** Partial cut [10:50:42]*** CUTSNS_PIN = 1 [10:50:43]*** CUTSNS_PIN = 0 [10:50:43]*** Brake cut motor [10:50:43]Read from MH i2c: 01 [10:50:43]MH_I2C_Read... [10:50:43]*** Stop cut motor [10:50:43]*** Cut end [10:50:43]Read from MH i2c: 01 07 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 FF 0F 0C [10:50:43]process_action close_receipt done [10:50:43]requested_data is exist [10:50:43]produce_requested_data [10:50:43]requested_item fm.sn is exist - process it [10:50:43]wFMCommunicate request_size=4 [10:50:43]MH_SAM_APDU [10:50:43]CAPDU: 80 11 00 00 [10:50:43]Write to MH i2c: E2 08 00 F4 04 80 11 00 00 00 00 00 00 72 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:43]Read from MH i2c: E2 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 17 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 17 00 F4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [10:50:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:50:43]wFMCommunicate OK [10:50:43]requested_item fd.num is exist - process it [10:50:43]SAM_PROTO_GetFieldsCounters [10:50:43]wFMCommunicate request_size=4 [10:50:43]MH_SAM_APDU [10:50:43]CAPDU: 80 13 00 00 [10:50:43]Write to MH i2c: E2 08 00 F5 04 80 13 00 00 00 00 00 00 75 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:43]Read from MH i2c: E2 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 62 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 62 00 F5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 52 B6 01 00 0E 04 04 00 65 01 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 4A [10:50:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 52 B6 01 00 0E 04 04 00 65 01 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 [10:50:43]wFMCommunicate OK [10:50:43]SAM_PROTO_GetFieldsCounters done [10:50:43]requested_item shift.num is exist - process it [10:50:43]requested_item shift.opened is exist - process it [10:50:43]req_shift_opened [10:50:43]FM_GetShiftState [10:50:43]SAM_PROTO_GetShiftState [10:50:43]wFMCommunicate request_size=4 [10:50:43]MH_SAM_APDU [10:50:43]CAPDU: 80 13 01 00 [10:50:43]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [10:50:43]Write i2c OK [10:50:43]MH_I2C_Read... [10:50:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:43]Read from MH i2c: E2 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 [10:50:43]MH_I2C_Read... [10:50:43]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [10:50:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:50:43]wFMCommunicate OK [10:50:43]SAM_PROTO_GetShiftState done [10:50:43]FM_GetShiftState done [10:50:43]req_shift_opened done [10:50:43]requested_item shift.open_date is exist - process it [10:50:43]req_shift_open_date [10:50:43]req_shift_open_date done [10:50:43]produce_requested_data done [10:50:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112210,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:50:43]process_action_free close_receipt [10:50:43]json_value_free [10:50:43]json_value_free done [10:50:43]process_json_proto returns [10:50:43]Send response to host [10:50:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112210,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:50:43]free response buf [10:50:43]execute_script done [10:50:43]execute_script returns [10:50:43]free content buf [10:50:43]Sock 7.Close socket [10:50:43]Sock 7.Thread stoped [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:18]accept exits with 9 [10:53:18]New connection [10:53:18]New thread 3067198820 created [10:53:18]Thread 3067342180 joined [10:53:18]Waiting for new connection... [10:53:18] Sock 9.Parse request [10:53:18]Sock 9.Check first char [10:53:18]Sock 9.First char is OK [10:53:18]request: POST /json_proto HTTP/1.0 [10:53:18]Method: POST [10:53:18]URL: /json_proto [10:53:18]Method is POST - this is cgi request [10:53:18]url: /json_proto [10:53:18]query_string will be loaded in cgi processing [10:53:18]execute_cgi json_proto POST (null) [10:53:18]execute_cgi path=json_proto method=POST [10:53:18]POST find Content-Length [10:53:18]Host: 172.17.96.197:8080 [10:53:18]Content-Length: 808 [10:53:18]Content-Type: application/json [10:53:18] [10:53:18]POST finish read [10:53:18]Found Content-Length = 808 [10:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48526", "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.30, "quantity" : 4.600, "sum" : 300.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" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:18]execute_script... [10:53: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)48526", "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.30, "quantity" : 4.600, "sum" : 300.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" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:18]POST & json_proto [10:53:18]process_json_proto [10:53:18]json parsed OK: [10:53:18]protocol is kg_v1.0 [10:53:18]action value=close_receipt [10:53:18]process_action close_receipt [10:53:18]cmd_close_receipt [10:53:18]MH_GetDate [10:53:18]Write to MH i2c: F0 00 00 F7 04 EA [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: F0 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: F0 09 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: F0 09 00 F7 04 00 9E B5 1B 66 E0 85 7F 64 0F [10:53:18]GetLastDocTimeStamp 1713091840 [10:53:18]current date 1713091998 [10:53:18]FM_GetShiftState [10:53:18]SAM_PROTO_GetShiftState [10:53:18]wFMCommunicate request_size=4 [10:53:18]MH_SAM_APDU [10:53:18]CAPDU: 80 13 01 00 [10:53:18]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [10:53:18]Write i2c OK [10:53:18]MH_I2C_Read... [10:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:18]Read from MH i2c: E2 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 [10:53:18]MH_I2C_Read... [10:53:18]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [10:53:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:53:18]wFMCommunicate OK [10:53:18]SAM_PROTO_GetShiftState done [10:53:18]FM_GetShiftState done [10:53:18]opened in 1713054696 [10:53:18]opened+sec_in_day 1713141096 [10:53:18]quantity*price = 30038 [10:53:18]sum+1 = 30039 [10:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 110 14.04.2024 10:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112211 ФПД: 68017506989870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112211&fm=68017506989870&tin=02508201610067®Number=0000000000094237&sum=30038 [10:53:19]StoreToDocumentArchive [10:53:19]shift 357 fd 112211 [10:53:19]save to /storage/0357/doc_00112211 [10:53:19]save last doc name /storage/0357/doc_00112211 to /storage/kkm_last_doc_name [10:53:19]save OK [10:53:19]Clear old archive folders... [10:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:53:19]tlvbuf is 0182DEF0 [10:53:19]SAM_PROTO_ClearQueue [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 09 00 00 [10:53:19]Write to MH i2c: E2 08 00 05 05 80 09 00 00 00 00 00 00 7C [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]SAM_PROTO_ClearQueue done [10:53:19]KKMCreateOFDPacket [10:53:19]OFDProtocolAddRootSTLVToBuf [10:53:19]FM_MakeSignedData [10:53:19]FM_MakeSignedData [10:53:19]SAM_PROTO_SignData [10:53:19]wFMCommunicate request_size=4 [10:53:19]MH_SAM_APDU [10:53:19]CAPDU: 80 0D 01 02 [10:53:19]Write to MH i2c: E2 08 00 06 05 80 0D 01 02 00 00 00 00 84 [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:19]Read from MH i2c: E2 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 [10:53:19]MH_I2C_Read... [10:53:19]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [10:53:19]RAPDU: 90 00 [10:53:19]wFMCommunicate OK [10:53:19]wFMCommunicate request_size=255 [10:53:19]MH_SAM_APDU [10:53: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B6 01 00 35 04 06 00 [10:53:19]Write to MH i2c: E2 02 01 07 05 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B6 01 00 35 04 06 00 00 00 6E [10:53:19]Write i2c OK [10:53:19]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=11 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 02 02 06 3D DC 8F 57 B7 2E [10:53:20]Write to MH i2c: E2 0E 00 08 05 80 0D 02 02 06 00 3D DC 8F 57 B7 2E 00 00 77 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [10:53:20]RAPDU: 90 00 [10:53:20]wFMCommunicate OK [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 0D 03 02 [10:53:20]Write to MH i2c: E2 08 00 09 05 80 0D 03 02 00 00 00 00 89 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 0B 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 0B 00 09 05 00 5B F4 64 4B ED A8 73 D2 90 00 62 [10:53:20]RAPDU: 5B F4 64 4B ED A8 73 D2 90 00 [10:53:20]wFMCommunicate OK [10:53:20]SAM_PROTO_SignData done [10:53:20]FM_MakeSignedData done [10:53:20]CreateOFDProtocolMessage [10:53:20]wFMCommunicate request_size=4 [10:53:20]MH_SAM_APDU [10:53:20]CAPDU: 80 11 00 00 [10:53:20]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:20]Read from MH i2c: E2 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 17 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DA [10:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:53:20]wFMCommunicate OK [10:53:20]CreateOFDProtocolMessage done [10:53:20]OFDSenderStorePacket 112211 [10:53:20]StoreOFDPacket docnum=112211 [10:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 54 D3 08 01 08 E0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B6 01 00 35 04 06 00 3D DC 8F 57 B7 2E 5B F4 64 4B ED A8 73 D2 [10:53:20]CheckFolder [10:53:20]dirname=/storage/ofd_packets [10:53:20]CheckFolder done [10:53:20]ProducePacketName [10:53:20]name=ofd_packets/00112211 [10:53:20]NVStorageSaveData ofd_packets/00112211 [10:53:20]File name is /storage/ofd_packets/00112211 [10:53:20]Write 302 bytes [10:53:20]NVStorageSaveData done [10:53:20]OFDSenderStorePacket done [10:53:20]KKMCreateOFDPacket done [10:53:20]NVStorageSaveData kkm_last_timestamp [10:53:20]File name is /storage/kkm_last_timestamp [10:53:20]Write 4 bytes [10:53:20]NVStorageSaveData done [10:53:20]ExternCall_PrintAddStr [10:53:20]wPrintStart [10:53:20]Write to MH i2c: 01 00 00 0B 05 10 [10:53:20]Write i2c OK [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 [10:53:20]MH_I2C_Read... [10:53:20]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [10:53:20]RasterBufferAndPrint [10:53:20]line Счет N : (1)48526 [10:53:20]line ИНН: 02508201610067 [10:53:20]line Контрольно-Кассовый Чек [10:53:20]line ПРОДАЖА [10:53:20]line ТРК (МРК, ГНК) : 31 [10:53:20]line Товар: 2710124130 [10:53:20]line SUPER 92-К-5 [10:53:20]line 4.600 * 65.30 [10:53:20]line = 300.38 [10:53:20]line НДС 12% НСП 1% [10:53:20]line > о реализуемом товаре [10:53:20]line ИТОГО: 300.38 [10:53:20]line НСП 1% : 2.66 [10:53:20]line НДС 12% : 31.90 [10:53:20]line Наличными: 0.00 [10:53:20]line Безнал.: 300.38 [10:53:20]line Место: АЗС № 47 "Партнер Нефть" [10:53:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:53:20]line СНО: Общий режим [10:53:20]line Чек 110 14.04.2024 10:53 [10:53:20]line Смена: 357 ФФД: 1.0 [10:53:20]line ЗНМ: 0300000138 [10:53:20]line РНМ: 0000000000094237 [10:53:20]line Версия ККМ: 001 [10:53:20]line Платежная система: Бакай Банк [10:53:20]line ФМ: 0000000000875019 [10:53:20]line ФД: 112211 [10:53:20]line ФПД: 68017506989870 [10:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112211&fm=68017506989870&tin=02508201610067®Number=0000000000094237&sum=30038 [10:53:20]OFD Sender: Processing packet 112211 [packets to send 71, broken 70] [10:53:20]ProducePacketName [10:53:20]name=ofd_packets/00112211 [10:53:20]OFD Sender: To server: pG, [10:53:20]CommunicateWithHost lk.salyk.kg:30040 [10:53:20]ConnectInit lk.salyk.kg [10:53:20]written 0, free lines is 4095 [10:53:20]Connected sock=10 [10:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 54 D3 08 01 08 E0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 9F B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B6 01 00 35 04 06 00 3D DC 8F 57 B7 2E 5B F4 64 4B ED A8 73 D2 [10:53:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A2 05 47 00 64 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B6 01 00 F4 03 04 00 2A 5D 1B 66 B6 04 01 00 00 49 74 90 0B FB 3E 6A 0B [10:53:21]CommunicateWithHost err = 0 [10:53:21]CheckOFDResponse [10:53:21]1017 (14) - 77093643461234 [10:53:21]1041 (16) - 0000000000875019 [10:53:21]1040 (4) - 112211 [10:53:21]1012 (4) - 14.04.2024 04:35 [10:53:21]1206 (1) - 0 [10:53:21]OFD Sender: Remove packet 112211 [10:53:21]ProducePacketName [10:53:21]name=ofd_packets/00112211 [10:53:21]NVStorageDeleteData [10:53:21]Write to MH i2c: 01 00 00 35 05 3A [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: 01 07 00 35 05 00 00 00 00 00 0B 0D 59 [10:53:21]RasterBufferAndPrint [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]line [10:53:21]written 0, free lines is 3345 [10:53:21]MH_Cut [10:53:21]Write to MH i2c: D1 01 00 3C 05 01 13 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 01 00 [10:53:21]MH_I2C_Read... [10:53:21]Read from MH i2c: D1 01 00 3C 05 00 12 [10:53:21]Write to MH i2c: 01 00 00 3D 05 42 [10:53:21]Write i2c OK [10:53:21]MH_I2C_Read... [10:53:21]OFD Sender: No OFD packet to send [10:53:21]*** Cut start [10:53:21]*** Partial cut [10:53:21]*** CUTSNS_PIN = 1 [10:53:21]*** CUTSNS_PIN = 0 [10:53:22]*** Brake cut motor [10:53:22]Read from MH i2c: 01 [10:53:22]MH_I2C_Read... [10:53:22]*** Stop cut motor [10:53:22]*** Cut end [10:53:22]Read from MH i2c: 01 07 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: 01 07 00 3D 05 00 00 00 00 00 FF 0F 57 [10:53:22]process_action close_receipt done [10:53:22]requested_data is exist [10:53:22]produce_requested_data [10:53:22]requested_item fm.sn is exist - process it [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 11 00 00 [10:53:22]Write to MH i2c: E2 08 00 3E 05 80 11 00 00 00 00 00 00 BD [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 17 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 17 00 3E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0E [10:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:53:22]wFMCommunicate OK [10:53:22]requested_item fd.num is exist - process it [10:53:22]SAM_PROTO_GetFieldsCounters [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 13 00 00 [10:53:22]Write to MH i2c: E2 08 00 3F 05 80 13 00 00 00 00 00 00 C0 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 62 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 62 00 3F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 53 B6 01 00 0E 04 04 00 65 01 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 99 [10:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 53 B6 01 00 0E 04 04 00 65 01 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 [10:53:22]wFMCommunicate OK [10:53:22]SAM_PROTO_GetFieldsCounters done [10:53:22]requested_item shift.num is exist - process it [10:53:22]requested_item shift.opened is exist - process it [10:53:22]req_shift_opened [10:53:22]FM_GetShiftState [10:53:22]SAM_PROTO_GetShiftState [10:53:22]wFMCommunicate request_size=4 [10:53:22]MH_SAM_APDU [10:53:22]CAPDU: 80 13 01 00 [10:53:22]Write to MH i2c: E2 08 00 40 05 80 13 01 00 00 00 00 00 C2 [10:53:22]Write i2c OK [10:53:22]MH_I2C_Read... [10:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:22]Read from MH i2c: E2 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0E 00 [10:53:22]MH_I2C_Read... [10:53:22]Read from MH i2c: E2 0E 00 40 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [10:53:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:53:22]wFMCommunicate OK [10:53:22]SAM_PROTO_GetShiftState done [10:53:22]FM_GetShiftState done [10:53:22]req_shift_opened done [10:53:22]requested_item shift.open_date is exist - process it [10:53:22]req_shift_open_date [10:53:22]req_shift_open_date done [10:53:22]produce_requested_data done [10:53:22]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112211,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:53:22]process_action_free close_receipt [10:53:22]json_value_free [10:53:22]json_value_free done [10:53:22]process_json_proto returns [10:53:22]Send response to host [10:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112211,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:53:22]free response buf [10:53:22]execute_script done [10:53:22]execute_script returns [10:53:22]free content buf [10:53:22]Sock 9.Close socket [10:53:22]Sock 9.Thread stoped [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:53:59]accept exits with 7 [10:53:59]New connection [10:53:59]New thread 3067342180 created [10:53:59]Thread 3067198820 joined [10:53:59]Waiting for new connection... [10:53:59] Sock 7.Parse request [10:53:59]Sock 7.Check first char [10:53:59]Sock 7.First char is OK [10:53:59]request: POST /json_proto HTTP/1.0 [10:53:59]Method: POST [10:53:59]URL: /json_proto [10:53:59]Method is POST - this is cgi request [10:53:59]url: /json_proto [10:53:59]query_string will be loaded in cgi processing [10:53:59]execute_cgi json_proto POST (null) [10:53:59]execute_cgi path=json_proto method=POST [10:53:59]POST find Content-Length [10:53:59]Host: 172.17.96.197:8080 [10:53:59]Content-Length: 680 [10:53:59]Content-Type: application/json [10:53:59] [10:53:59]POST finish read [10:53:59]Found Content-Length = 680 [10:53:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "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" ] } } [10:53:59]execute_script... [10:53: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)48525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 18.350, "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" ] } } [10:53:59]POST & json_proto [10:53:59]process_json_proto [10:53:59]json parsed OK: [10:53:59]protocol is kg_v1.0 [10:53:59]action value=close_receipt [10:53:59]process_action close_receipt [10:53:59]cmd_close_receipt [10:53:59]MH_GetDate [10:53:59]Write to MH i2c: F0 00 00 41 05 35 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: F0 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: F0 09 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: F0 09 00 41 05 00 C8 B5 1B 66 E0 85 7F 64 84 [10:53:59]GetLastDocTimeStamp 1713091999 [10:53:59]current date 1713092040 [10:53:59]FM_GetShiftState [10:53:59]SAM_PROTO_GetShiftState [10:53:59]wFMCommunicate request_size=4 [10:53:59]MH_SAM_APDU [10:53:59]CAPDU: 80 13 01 00 [10:53:59]Write to MH i2c: E2 08 00 42 05 80 13 01 00 00 00 00 00 C4 [10:53:59]Write i2c OK [10:53:59]MH_I2C_Read... [10:53:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:59]Read from MH i2c: E2 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 0E 00 [10:53:59]MH_I2C_Read... [10:53:59]Read from MH i2c: E2 0E 00 42 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5C [10:53:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:53:59]wFMCommunicate OK [10:53:59]SAM_PROTO_GetShiftState done [10:53:59]FM_GetShiftState done [10:53:59]opened in 1713054696 [10:53:59]opened+sec_in_day 1713141096 [10:53:59]quantity*price = 60004 [10:53:59]sum+1 = 60006 [10:53:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 111 14.04.2024 10:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112212 ФПД: 231191969753687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105400&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112212&fm=231191969753687&tin=02508201610067®Number=0000000000094237&sum=60000 [10:54:01]StoreToDocumentArchive [10:54:01]shift 357 fd 112212 [10:54:01]save to /storage/0357/doc_00112212 [10:54:01]save last doc name /storage/0357/doc_00112212 to /storage/kkm_last_doc_name [10:54:01]save OK [10:54:01]Clear old archive folders... [10:54:01]ProcessDocumentItem done err = 0, tmpTLVsize=250 [10:54:01]tlvbuf is B6FB7640 [10:54:01]SAM_PROTO_ClearQueue [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 09 00 00 [10:54:01]Write to MH i2c: E2 08 00 4F 05 80 09 00 00 00 00 00 00 C6 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 4F 05 00 90 00 C8 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_ClearQueue done [10:54:01]KKMCreateOFDPacket [10:54:01]OFDProtocolAddRootSTLVToBuf [10:54:01]FM_MakeSignedData [10:54:01]FM_MakeSignedData [10:54:01]SAM_PROTO_SignData [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 01 02 [10:54:01]Write to MH i2c: E2 08 00 50 05 80 0D 01 02 00 00 00 00 CE [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=255 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 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 6F 00 00 00 F4 03 04 00 C8 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B6 01 00 35 04 06 00 D2 44 [10:54:01]Write to MH i2c: E2 02 01 51 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 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 6F 00 00 00 F4 03 04 00 C8 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B6 01 00 35 04 06 00 D2 44 00 00 2C [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=9 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 02 02 04 93 3B 6A 57 [10:54:01]Write to MH i2c: E2 0C 00 52 05 80 0D 02 02 04 00 93 3B 6A 57 00 00 68 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [10:54:01]RAPDU: 90 00 [10:54:01]wFMCommunicate OK [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 0D 03 02 [10:54:01]Write to MH i2c: E2 08 00 53 05 80 0D 03 02 00 00 00 00 D3 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0B 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 0B 00 53 05 00 85 60 D2 C0 83 FD 97 09 90 00 6B [10:54:01]RAPDU: 85 60 D2 C0 83 FD 97 09 90 00 [10:54:01]wFMCommunicate OK [10:54:01]SAM_PROTO_SignData done [10:54:01]FM_MakeSignedData done [10:54:01]CreateOFDProtocolMessage [10:54:01]wFMCommunicate request_size=4 [10:54:01]MH_SAM_APDU [10:54:01]CAPDU: 80 11 00 00 [10:54:01]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:01]Read from MH i2c: E2 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [10:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:01]wFMCommunicate OK [10:54:01]CreateOFDProtocolMessage done [10:54:01]OFDSenderStorePacket 112212 [10:54:01]StoreOFDPacket docnum=112212 [10:54:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 66 C6 06 01 2F 28 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 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 6F 00 00 00 F4 03 04 00 C8 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B6 01 00 35 04 06 00 D2 44 93 3B 6A 57 85 60 D2 C0 83 FD 97 09 [10:54:01]CheckFolder [10:54:01]dirname=/storage/ofd_packets [10:54:01]CheckFolder done [10:54:01]ProducePacketName [10:54:01]name=ofd_packets/00112212 [10:54:01]NVStorageSaveData ofd_packets/00112212 [10:54:01]File name is /storage/ofd_packets/00112212 [10:54:01]Write 300 bytes [10:54:01]NVStorageSaveData done [10:54:01]OFDSenderStorePacket done [10:54:01]KKMCreateOFDPacket done [10:54:01]NVStorageSaveData kkm_last_timestamp [10:54:01]File name is /storage/kkm_last_timestamp [10:54:01]Write 4 bytes [10:54:01]NVStorageSaveData done [10:54:01]ExternCall_PrintAddStr [10:54:01]wPrintStart [10:54:01]Write to MH i2c: 01 00 00 55 05 5A [10:54:01]Write i2c OK [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 [10:54:01]MH_I2C_Read... [10:54:01]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 FF 0F 6F [10:54:01]RasterBufferAndPrint [10:54:01]line Счет N : (1)48525 [10:54:01]line ИНН: 02508201610067 [10:54:01]line Контрольно-Кассовый Чек [10:54:01]line ПРОДАЖА [10:54:01]line ТРК (МРК, ГНК) : 72 [10:54:01]line Товар: 2711190000 [10:54:01]line ГАЗ-К-5 [10:54:01]line 18.350 * 32.70 [10:54:01]line = 600.05 [10:54:01]line НДС 12% НСП 1% [10:54:01]line > о реализуемом товаре [10:54:01]line ОКРУГЛЕНИЕ: -0.05 [10:54:01]line ИТОГО: 600.00 [10:54:01]line Внесено: 600.00 [10:54:01]line СДАЧА: 0.00 [10:54:01]line НСП 1% : 5.31 [10:54:01]line НДС 12% : 63.72 [10:54:01]line Наличными: 600.00 [10:54:01]line Безнал.: 0.00 [10:54:01]line Место: АЗС № 47 "Партнер Нефть" [10:54:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:54:01]line СНО: Общий режим [10:54:01]line Чек 111 14.04.2024 10:54 [10:54:01]line Смена: 357 ФФД: 1.0 [10:54:01]line ЗНМ: 0300000138 [10:54:01]line РНМ: 0000000000094237 [10:54:01]line Версия ККМ: 001 [10:54:01]line ФМ: 0000000000875019 [10:54:01]line ФД: 112212 [10:54:01]line ФПД: 231191969753687 [10:54:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105400&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112212&fm=231191969753687&tin=02508201610067®Number=0000000000094237&sum=60000 [10:54:01]OFD Sender: Processing packet 112212 [packets to send 71, broken 70] [10:54:01]ProducePacketName [10:54:01]name=ofd_packets/00112212 [10:54:01]OFD Sender: To server: pG, [10:54:01]CommunicateWithHost lk.salyk.kg:30040 [10:54:01]ConnectInit lk.salyk.kg [10:54:01]written 0, free lines is 4095 [10:54:02]Connected sock=10 [10:54:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 66 C6 06 01 2F 28 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 AE 47 00 00 00 00 00 37 04 06 00 C6 0C 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 6F 00 00 00 F4 03 04 00 C8 B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B6 01 00 35 04 06 00 D2 44 93 3B 6A 57 85 60 D2 C0 83 FD 97 09 [10:54:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 87 D5 47 00 F3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B6 01 00 F4 03 04 00 53 5D 1B 66 B6 04 01 00 00 FE BE 9F 4D E1 5C B0 D2 [10:54:02]CommunicateWithHost err = 0 [10:54:02]CheckOFDResponse [10:54:02]1017 (14) - 77093643461234 [10:54:02]1041 (16) - 0000000000875019 [10:54:02]1040 (4) - 112212 [10:54:02]1012 (4) - 14.04.2024 04:36 [10:54:02]1206 (1) - 0 [10:54:02]OFD Sender: Remove packet 112212 [10:54:02]ProducePacketName [10:54:02]name=ofd_packets/00112212 [10:54:02]NVStorageDeleteData [10:54:02]Write to MH i2c: 01 00 00 80 05 85 [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: 01 07 00 80 05 00 00 00 00 00 D4 0C 6C [10:54:02]RasterBufferAndPrint [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]line [10:54:02]written 0, free lines is 3288 [10:54:02]MH_Cut [10:54:02]Write to MH i2c: D1 01 00 87 05 01 5E [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 01 00 [10:54:02]MH_I2C_Read... [10:54:02]Read from MH i2c: D1 01 00 87 05 00 5D [10:54:02]Write to MH i2c: 01 00 00 88 05 8D [10:54:02]Write i2c OK [10:54:02]MH_I2C_Read... [10:54:02]OFD Sender: No OFD packet to send [10:54:03]*** Cut start [10:54:03]*** Partial cut [10:54:03]*** CUTSNS_PIN = 1 [10:54:03]*** CUTSNS_PIN = 0 [10:54:03]*** Brake cut motor [10:54:03]Read from MH i2c: 01 [10:54:03]MH_I2C_Read... [10:54:03]*** Stop cut motor [10:54:03]*** Cut end [10:54:03]Read from MH i2c: 01 07 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: 01 07 00 88 05 00 00 00 00 00 FF 0F A2 [10:54:03]process_action close_receipt done [10:54:03]requested_data is exist [10:54:03]produce_requested_data [10:54:03]requested_item fm.sn is exist - process it [10:54:03]wFMCommunicate request_size=4 [10:54:03]MH_SAM_APDU [10:54:03]CAPDU: 80 11 00 00 [10:54:03]Write to MH i2c: E2 08 00 89 05 80 11 00 00 00 00 00 00 08 [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:03]Read from MH i2c: E2 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 17 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 17 00 89 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [10:54:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:03]wFMCommunicate OK [10:54:03]requested_item fd.num is exist - process it [10:54:03]SAM_PROTO_GetFieldsCounters [10:54:03]wFMCommunicate request_size=4 [10:54:03]MH_SAM_APDU [10:54:03]CAPDU: 80 13 00 00 [10:54:03]Write to MH i2c: E2 08 00 8A 05 80 13 00 00 00 00 00 00 0B [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:03]Read from MH i2c: E2 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 62 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 62 00 8A 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 54 B6 01 00 0E 04 04 00 65 01 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 E8 [10:54:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 54 B6 01 00 0E 04 04 00 65 01 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 [10:54:03]wFMCommunicate OK [10:54:03]SAM_PROTO_GetFieldsCounters done [10:54:03]requested_item shift.num is exist - process it [10:54:03]requested_item shift.opened is exist - process it [10:54:03]req_shift_opened [10:54:03]FM_GetShiftState [10:54:03]SAM_PROTO_GetShiftState [10:54:03]wFMCommunicate request_size=4 [10:54:03]MH_SAM_APDU [10:54:03]CAPDU: 80 13 01 00 [10:54:03]Write to MH i2c: E2 08 00 8B 05 80 13 01 00 00 00 00 00 0D [10:54:03]Write i2c OK [10:54:03]MH_I2C_Read... [10:54:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:03]Read from MH i2c: E2 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 0E 00 [10:54:03]MH_I2C_Read... [10:54:03]Read from MH i2c: E2 0E 00 8B 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [10:54:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:54:03]wFMCommunicate OK [10:54:03]SAM_PROTO_GetShiftState done [10:54:03]FM_GetShiftState done [10:54:03]req_shift_opened done [10:54:03]requested_item shift.open_date is exist - process it [10:54:03]req_shift_open_date [10:54:03]req_shift_open_date done [10:54:03]produce_requested_data done [10:54:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112212,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:54:03]process_action_free close_receipt [10:54:03]json_value_free [10:54:03]json_value_free done [10:54:03]process_json_proto returns [10:54:03]Send response to host [10:54:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112212,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:54:03]free response buf [10:54:03]execute_script done [10:54:03]execute_script returns [10:54:03]free content buf [10:54:03]Sock 7.Close socket [10:54:03]Sock 7.Thread stoped [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:20]accept exits with 9 [10:54:20]New connection [10:54:20]New thread 3067198820 created [10:54:20]Thread 3067342180 joined [10:54:20]Waiting for new connection... [10:54:20] Sock 9.Parse request [10:54:20]Sock 9.Check first char [10:54:20]Sock 9.First char is OK [10:54:20]request: POST /json_proto HTTP/1.0 [10:54:20]Method: POST [10:54:20]URL: /json_proto [10:54:20]Method is POST - this is cgi request [10:54:20]url: /json_proto [10:54:20]query_string will be loaded in cgi processing [10:54:20]execute_cgi json_proto POST (null) [10:54:20]execute_cgi path=json_proto method=POST [10:54:20]POST find Content-Length [10:54:20]Host: 172.17.96.197:8080 [10:54:20]Content-Length: 676 [10:54:20]Content-Type: application/json [10:54:20] [10:54:20]POST finish read [10:54:20]Found Content-Length = 676 [10:54:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:54:20]execute_script... [10:54:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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:54:20]POST & json_proto [10:54:20]process_json_proto [10:54:20]json parsed OK: [10:54:20]protocol is kg_v1.0 [10:54:20]action value=close_receipt [10:54:20]process_action close_receipt [10:54:20]cmd_close_receipt [10:54:20]MH_GetDate [10:54:20]Write to MH i2c: F0 00 00 8C 05 80 [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: F0 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: F0 09 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: F0 09 00 8C 05 00 DC B5 1B 66 E0 85 7F 64 E3 [10:54:20]GetLastDocTimeStamp 1713092040 [10:54:20]current date 1713092060 [10:54:20]FM_GetShiftState [10:54:20]SAM_PROTO_GetShiftState [10:54:20]wFMCommunicate request_size=4 [10:54:20]MH_SAM_APDU [10:54:20]CAPDU: 80 13 01 00 [10:54:20]Write to MH i2c: E2 08 00 8D 05 80 13 01 00 00 00 00 00 0F [10:54:20]Write i2c OK [10:54:20]MH_I2C_Read... [10:54:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:20]Read from MH i2c: E2 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 0E 00 [10:54:20]MH_I2C_Read... [10:54:20]Read from MH i2c: E2 0E 00 8D 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A7 [10:54:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:54:20]wFMCommunicate OK [10:54:20]SAM_PROTO_GetShiftState done [10:54:20]FM_GetShiftState done [10:54:20]opened in 1713054696 [10:54:20]opened+sec_in_day 1713141096 [10:54:20]quantity*price = 30028 [10:54:20]sum+1 = 30029 [10:54:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 112 14.04.2024 10:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112213 ФПД: 68169594450867 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105420&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112213&fm=68169594450867&tin=02508201610067®Number=0000000000094237&sum=30000 [10:54:21]StoreToDocumentArchive [10:54:21]shift 357 fd 112213 [10:54:21]save to /storage/0357/doc_00112213 [10:54:21]save last doc name /storage/0357/doc_00112213 to /storage/kkm_last_doc_name [10:54:21]save OK [10:54:21]Clear old archive folders... [10:54:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:21]tlvbuf is B6E07760 [10:54:21]SAM_PROTO_ClearQueue [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 09 00 00 [10:54:21]Write to MH i2c: E2 08 00 9A 05 80 09 00 00 00 00 00 00 11 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 03 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 03 00 9A 05 00 90 00 13 [10:54:21]RAPDU: 90 00 [10:54:21]wFMCommunicate OK [10:54:21]SAM_PROTO_ClearQueue done [10:54:21]KKMCreateOFDPacket [10:54:21]OFDProtocolAddRootSTLVToBuf [10:54:21]FM_MakeSignedData [10:54:21]FM_MakeSignedData [10:54:21]SAM_PROTO_SignData [10:54:21]wFMCommunicate request_size=4 [10:54:21]MH_SAM_APDU [10:54:21]CAPDU: 80 0D 01 02 [10:54:21]Write to MH i2c: E2 08 00 9B 05 80 0D 01 02 00 00 00 00 19 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:21]Read from MH i2c: E2 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 03 00 [10:54:21]MH_I2C_Read... [10:54:21]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [10:54:21]RAPDU: 90 00 [10:54:21]wFMCommunicate OK [10:54:21]wFMCommunicate request_size=255 [10:54:21]MH_SAM_APDU [10:54: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 70 00 00 00 F4 03 04 00 DC B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B6 01 00 35 04 06 00 3D [10:54:21]Write to MH i2c: E2 02 01 9C 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 70 00 00 00 F4 03 04 00 DC B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B6 01 00 35 04 06 00 3D 00 00 70 [10:54:21]Write i2c OK [10:54:21]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]wFMCommunicate request_size=10 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 0D 02 02 05 FF F8 76 33 B3 [10:54:22]Write to MH i2c: E2 0D 00 9D 05 80 0D 02 02 05 00 FF F8 76 33 B3 00 00 79 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [10:54:22]RAPDU: 90 00 [10:54:22]wFMCommunicate OK [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 0D 03 02 [10:54:22]Write to MH i2c: E2 08 00 9E 05 80 0D 03 02 00 00 00 00 1E [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0B 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 0B 00 9E 05 00 57 78 BE 53 AF 7A 4B BE 90 00 31 [10:54:22]RAPDU: 57 78 BE 53 AF 7A 4B BE 90 00 [10:54:22]wFMCommunicate OK [10:54:22]SAM_PROTO_SignData done [10:54:22]FM_MakeSignedData done [10:54:22]CreateOFDProtocolMessage [10:54:22]wFMCommunicate request_size=4 [10:54:22]MH_SAM_APDU [10:54:22]CAPDU: 80 11 00 00 [10:54:22]Write to MH i2c: E2 08 00 9F 05 80 11 00 00 00 00 00 00 1E [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:22]Read from MH i2c: E2 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 17 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: E2 17 00 9F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [10:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:22]wFMCommunicate OK [10:54:22]CreateOFDProtocolMessage done [10:54:22]OFDSenderStorePacket 112213 [10:54:22]StoreOFDPacket docnum=112213 [10:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 59 EA 07 01 78 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 70 00 00 00 F4 03 04 00 DC B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B6 01 00 35 04 06 00 3D FF F8 76 33 B3 57 78 BE 53 AF 7A 4B BE [10:54:22]CheckFolder [10:54:22]dirname=/storage/ofd_packets [10:54:22]CheckFolder done [10:54:22]ProducePacketName [10:54:22]name=ofd_packets/00112213 [10:54:22]NVStorageSaveData ofd_packets/00112213 [10:54:22]File name is /storage/ofd_packets/00112213 [10:54:22]Write 301 bytes [10:54:22]NVStorageSaveData done [10:54:22]OFDSenderStorePacket done [10:54:22]KKMCreateOFDPacket done [10:54:22]NVStorageSaveData kkm_last_timestamp [10:54:22]File name is /storage/kkm_last_timestamp [10:54:22]Write 4 bytes [10:54:22]NVStorageSaveData done [10:54:22]OFD Sender: Processing packet 112213 [packets to send 71, broken 70] [10:54:22]ProducePacketName [10:54:22]name=ofd_packets/00112213 [10:54:22]OFD Sender: To server: pG, [10:54:22]CommunicateWithHost lk.salyk.kg:30040 [10:54:22]ConnectInit lk.salyk.kg [10:54:22]ExternCall_PrintAddStr [10:54:22]wPrintStart [10:54:22]Write to MH i2c: 01 00 00 A0 05 A5 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 FF 0F BA [10:54:22]RasterBufferAndPrint [10:54:22]line Счет N : (1)48527 [10:54:22]line ИНН: 02508201610067 [10:54:22]line Контрольно-Кассовый Чек [10:54:22]line ПРОДАЖА [10:54:22]line ТРК (МРК, ГНК) : 21 [10:54:22]line Товар: 2710124130 [10:54:22]line Аи-92-К-5 [10:54:22]line 4.670 * 64.30 [10:54:22]line = 300.28 [10:54:22]line НДС 12% НСП 1% [10:54:22]line > о реализуемом товаре [10:54:22]line ОКРУГЛЕНИЕ: -0.28 [10:54:22]line ИТОГО: 300.00 [10:54:22]line Внесено: 300.00 [10:54:22]line СДАЧА: 0.00 [10:54:22]line НСП 1% : 2.66 [10:54:22]line НДС 12% : 31.89 [10:54:22]line Наличными: 300.00 [10:54:22]line Безнал.: 0.00 [10:54:22]line Место: АЗС № 47 "Партнер Нефть" [10:54:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:54:22]line СНО: Общий режим [10:54:22]line Чек 112 14.04.2024 10:54 [10:54:22]line Смена: 357 ФФД: 1.0 [10:54:22]line ЗНМ: 0300000138 [10:54:22]line РНМ: 0000000000094237 [10:54:22]line Версия ККМ: 001 [10:54:22]line ФМ: 0000000000875019 [10:54:22]line ФД: 112213 [10:54:22]line ФПД: 68169594450867 [10:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105420&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112213&fm=68169594450867&tin=02508201610067®Number=0000000000094237&sum=30000 [10:54:22]Connected sock=11 [10:54:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 59 EA 07 01 78 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 70 00 00 00 F4 03 04 00 DC B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B6 01 00 35 04 06 00 3D FF F8 76 33 B3 57 78 BE 53 AF 7A 4B BE [10:54:22]written 0, free lines is 4095 [10:54:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BB 0B 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 38 37 35 30 31 39 10 04 04 00 55 B6 01 00 F4 03 04 00 68 5D 1B 66 B6 04 01 00 00 D3 59 57 1E 6F CE A0 6D [10:54:22]CommunicateWithHost err = 0 [10:54:22]CheckOFDResponse [10:54:22]1017 (14) - 77093643461234 [10:54:22]1041 (16) - 0000000000875019 [10:54:22]1040 (4) - 112213 [10:54:22]1012 (4) - 14.04.2024 04:36 [10:54:22]1206 (1) - 0 [10:54:22]OFD Sender: Remove packet 112213 [10:54:22]ProducePacketName [10:54:22]name=ofd_packets/00112213 [10:54:22]NVStorageDeleteData [10:54:22]Write to MH i2c: 01 00 00 CB 05 D0 [10:54:22]Write i2c OK [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 [10:54:22]MH_I2C_Read... [10:54:22]Read from MH i2c: 01 07 00 CB 05 00 00 00 00 00 E9 0C CC [10:54:22]RasterBufferAndPrint [10:54:22]line [10:54:22]line [10:54:22]line [10:54:22]line [10:54:22]line [10:54:22]written 0, free lines is 3311 [10:54:23]MH_Cut [10:54:23]Write to MH i2c: D1 01 00 D2 05 01 A9 [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 01 00 [10:54:23]MH_I2C_Read... [10:54:23]Read from MH i2c: D1 01 00 D2 05 00 A8 [10:54:23]Write to MH i2c: 01 00 00 D3 05 D8 [10:54:23]Write i2c OK [10:54:23]MH_I2C_Read... [10:54:23]OFD Sender: No OFD packet to send [10:54:23]*** Cut start [10:54:23]*** Partial cut [10:54:23]*** CUTSNS_PIN = 1 [10:54:23]*** CUTSNS_PIN = 0 [10:54:23]*** Brake cut motor [10:54:24]Read from MH i2c: 01 [10:54:24]MH_I2C_Read... [10:54:24]*** Stop cut motor [10:54:24]*** Cut end [10:54:24]Read from MH i2c: 01 07 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: 01 07 00 D3 05 00 00 00 00 00 FF 0F ED [10:54:24]process_action close_receipt done [10:54:24]requested_data is exist [10:54:24]produce_requested_data [10:54:24]requested_item fm.sn is exist - process it [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 11 00 00 [10:54:24]Write to MH i2c: E2 08 00 D4 05 80 11 00 00 00 00 00 00 53 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 17 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 17 00 D4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [10:54:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:24]wFMCommunicate OK [10:54:24]requested_item fd.num is exist - process it [10:54:24]SAM_PROTO_GetFieldsCounters [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 13 00 00 [10:54:24]Write to MH i2c: E2 08 00 D5 05 80 13 00 00 00 00 00 00 56 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 62 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 62 00 D5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 55 B6 01 00 0E 04 04 00 65 01 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 37 [10:54:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 55 B6 01 00 0E 04 04 00 65 01 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 [10:54:24]wFMCommunicate OK [10:54:24]SAM_PROTO_GetFieldsCounters done [10:54:24]requested_item shift.num is exist - process it [10:54:24]requested_item shift.opened is exist - process it [10:54:24]req_shift_opened [10:54:24]FM_GetShiftState [10:54:24]SAM_PROTO_GetShiftState [10:54:24]wFMCommunicate request_size=4 [10:54:24]MH_SAM_APDU [10:54:24]CAPDU: 80 13 01 00 [10:54:24]Write to MH i2c: E2 08 00 D6 05 80 13 01 00 00 00 00 00 58 [10:54:24]Write i2c OK [10:54:24]MH_I2C_Read... [10:54:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:24]Read from MH i2c: E2 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0E 00 [10:54:24]MH_I2C_Read... [10:54:24]Read from MH i2c: E2 0E 00 D6 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [10:54:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:54:24]wFMCommunicate OK [10:54:24]SAM_PROTO_GetShiftState done [10:54:24]FM_GetShiftState done [10:54:24]req_shift_opened done [10:54:24]requested_item shift.open_date is exist - process it [10:54:24]req_shift_open_date [10:54:24]req_shift_open_date done [10:54:24]produce_requested_data done [10:54:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112213,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:54:24]process_action_free close_receipt [10:54:24]json_value_free [10:54:24]json_value_free done [10:54:24]process_json_proto returns [10:54:24]Send response to host [10:54:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112213,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:54:24]free response buf [10:54:24]execute_script done [10:54:24]execute_script returns [10:54:24]free content buf [10:54:24]Sock 9.Close socket [10:54:24]Sock 9.Thread stoped [10:54:28]OFD Sender: No OFD packet to send [10:54:33]OFD Sender: No OFD packet to send [10:54:38]OFD Sender: No OFD packet to send [10:54:43]OFD Sender: No OFD packet to send [10:54:48]OFD Sender: No OFD packet to send [10:54:53]OFD Sender: No OFD packet to send [10:54:54]accept exits with 7 [10:54:54]New connection [10:54:54]New thread 3067342180 created [10:54:54]Thread 3067198820 joined [10:54:54]Waiting for new connection... [10:54:54] Sock 7.Parse request [10:54:54]Sock 7.Check first char [10:54:54]Sock 7.First char is OK [10:54:54]request: POST /json_proto HTTP/1.0 [10:54:54]Method: POST [10:54:54]URL: /json_proto [10:54:54]Method is POST - this is cgi request [10:54:54]url: /json_proto [10:54:54]query_string will be loaded in cgi processing [10:54:54]execute_cgi json_proto POST (null) [10:54:54]execute_cgi path=json_proto method=POST [10:54:54]POST find Content-Length [10:54:54]Host: 172.17.96.197:8080 [10:54:54]Content-Length: 676 [10:54:54]Content-Type: application/json [10:54:54] [10:54:54]POST finish read [10:54:54]Found Content-Length = 676 [10:54:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [10:54:54]execute_script... [10:54: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)48528", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [10:54:54]POST & json_proto [10:54:54]process_json_proto [10:54:54]json parsed OK: [10:54:54]protocol is kg_v1.0 [10:54:54]action value=close_receipt [10:54:54]process_action close_receipt [10:54:54]cmd_close_receipt [10:54:54]MH_GetDate [10:54:54]Write to MH i2c: F0 00 00 D7 05 CB [10:54:54]Write i2c OK [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: F0 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: F0 09 00 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: F0 09 00 D7 05 00 FE B5 1B 66 E0 85 7F 64 50 [10:54:54]GetLastDocTimeStamp 1713092060 [10:54:54]current date 1713092094 [10:54:54]FM_GetShiftState [10:54:54]SAM_PROTO_GetShiftState [10:54:54]wFMCommunicate request_size=4 [10:54:54]MH_SAM_APDU [10:54:54]CAPDU: 80 13 01 00 [10:54:54]Write to MH i2c: E2 08 00 D8 05 80 13 01 00 00 00 00 00 5A [10:54:54]Write i2c OK [10:54:54]MH_I2C_Read... [10:54:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:54]Read from MH i2c: E2 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 0E 00 [10:54:54]MH_I2C_Read... [10:54:54]Read from MH i2c: E2 0E 00 D8 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F2 [10:54:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:54:54]wFMCommunicate OK [10:54:54]SAM_PROTO_GetShiftState done [10:54:54]FM_GetShiftState done [10:54:54]opened in 1713054696 [10:54:54]opened+sec_in_day 1713141096 [10:54:54]quantity*price = 60056 [10:54:54]sum+1 = 60057 [10:54:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 113 14.04.2024 10:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112214 ФПД: 267524024980574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105454&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112214&fm=267524024980574&tin=02508201610067®Number=0000000000094237&sum=60000 [10:54:55]StoreToDocumentArchive [10:54:55]shift 357 fd 112214 [10:54:55]save to /storage/0357/doc_00112214 [10:54:55]save last doc name /storage/0357/doc_00112214 to /storage/kkm_last_doc_name [10:54:55]save OK [10:54:55]Clear old archive folders... [10:54:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:55]tlvbuf is 017796E0 [10:54:55]SAM_PROTO_ClearQueue [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 09 00 00 [10:54:55]Write to MH i2c: E2 08 00 E5 05 80 09 00 00 00 00 00 00 5C [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 E5 05 00 90 00 5E [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_ClearQueue done [10:54:55]KKMCreateOFDPacket [10:54:55]OFDProtocolAddRootSTLVToBuf [10:54:55]FM_MakeSignedData [10:54:55]FM_MakeSignedData [10:54:55]SAM_PROTO_SignData [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 01 02 [10:54:55]Write to MH i2c: E2 08 00 E6 05 80 0D 01 02 00 00 00 00 64 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=255 [10:54:55]MH_SAM_APDU [10:54: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 71 00 00 00 F4 03 04 00 FE B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B6 01 00 35 04 06 00 F3 [10:54:55]Write to MH i2c: E2 02 01 E7 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 71 00 00 00 F4 03 04 00 FE B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B6 01 00 35 04 06 00 F3 00 00 7B [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=10 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 02 02 05 4F CA 7A 54 5E [10:54:55]Write to MH i2c: E2 0D 00 E8 05 80 0D 02 02 05 00 4F CA 7A 54 5E 00 00 B6 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [10:54:55]RAPDU: 90 00 [10:54:55]wFMCommunicate OK [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 0D 03 02 [10:54:55]Write to MH i2c: E2 08 00 E9 05 80 0D 03 02 00 00 00 00 69 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0B 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0B 00 E9 05 00 30 F4 E2 C6 BF F6 5F F8 90 00 42 [10:54:55]RAPDU: 30 F4 E2 C6 BF F6 5F F8 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_SignData done [10:54:55]FM_MakeSignedData done [10:54:55]CreateOFDProtocolMessage [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 11 00 00 [10:54:55]Write to MH i2c: E2 08 00 EA 05 80 11 00 00 00 00 00 00 69 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 EA 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BA [10:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:55]wFMCommunicate OK [10:54:55]CreateOFDProtocolMessage done [10:54:55]OFDSenderStorePacket 112214 [10:54:55]StoreOFDPacket docnum=112214 [10:54:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CE 14 07 01 0A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 71 00 00 00 F4 03 04 00 FE B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B6 01 00 35 04 06 00 F3 4F CA 7A 54 5E 30 F4 E2 C6 BF F6 5F F8 [10:54:55]CheckFolder [10:54:55]dirname=/storage/ofd_packets [10:54:55]CheckFolder done [10:54:55]ProducePacketName [10:54:55]name=ofd_packets/00112214 [10:54:55]NVStorageSaveData ofd_packets/00112214 [10:54:55]File name is /storage/ofd_packets/00112214 [10:54:55]Write 301 bytes [10:54:55]NVStorageSaveData done [10:54:55]OFDSenderStorePacket done [10:54:55]KKMCreateOFDPacket done [10:54:55]NVStorageSaveData kkm_last_timestamp [10:54:55]File name is /storage/kkm_last_timestamp [10:54:55]Write 4 bytes [10:54:55]NVStorageSaveData done [10:54:55]ExternCall_PrintAddStr [10:54:55]wPrintStart [10:54:55]Write to MH i2c: 01 00 00 EB 05 F0 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 07 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 FF 0F 05 [10:54:55]RasterBufferAndPrint [10:54:55]line Счет N : (1)48528 [10:54:55]line ИНН: 02508201610067 [10:54:55]line Контрольно-Кассовый Чек [10:54:55]line ПРОДАЖА [10:54:55]line ТРК (МРК, ГНК) : 11 [10:54:55]line Товар: 2710124130 [10:54:55]line Аи-92-К-5 [10:54:55]line 9.340 * 64.30 [10:54:55]line = 600.56 [10:54:55]line НДС 12% НСП 1% [10:54:55]line > о реализуемом товаре [10:54:55]line ОКРУГЛЕНИЕ: -0.56 [10:54:55]line ИТОГО: 600.00 [10:54:55]line Внесено: 600.00 [10:54:55]line СДАЧА: 0.00 [10:54:55]line НСП 1% : 5.31 [10:54:55]line НДС 12% : 63.78 [10:54:55]line Наличными: 600.00 [10:54:55]line Безнал.: 0.00 [10:54:55]line Место: АЗС № 47 "Партнер Нефть" [10:54:55]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:54:55]line СНО: Общий режим [10:54:55]line Чек 113 14.04.2024 10:54 [10:54:55]line Смена: 357 ФФД: 1.0 [10:54:55]line ЗНМ: 0300000138 [10:54:55]line РНМ: 0000000000094237 [10:54:55]line Версия ККМ: 001 [10:54:55]line ФМ: 0000000000875019 [10:54:55]line ФД: 112214 [10:54:56]line ФПД: 267524024980574 [10:54:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105454&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112214&fm=267524024980574&tin=02508201610067®Number=0000000000094237&sum=60000 [10:54:56]OFD Sender: Processing packet 112214 [packets to send 71, broken 70] [10:54:56]ProducePacketName [10:54:56]name=ofd_packets/00112214 [10:54:56]OFD Sender: To server: pG, [10:54:56]CommunicateWithHost lk.salyk.kg:30040 [10:54:56]ConnectInit lk.salyk.kg [10:54:56]written 0, free lines is 4095 [10:54:56]Connected sock=10 [10:54:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CE 14 07 01 0A 54 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 71 00 00 00 F4 03 04 00 FE B5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B6 01 00 35 04 06 00 F3 4F CA 7A 54 5E 30 F4 E2 C6 BF F6 5F F8 [10:54:56]Write to MH i2c: 01 00 00 16 06 1C [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: 01 07 00 16 06 00 00 00 00 00 D8 0C 07 [10:54:56]RasterBufferAndPrint [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]line [10:54:56]written 0, free lines is 3293 [10:54:56]MH_Cut [10:54:56]Write to MH i2c: D1 01 00 1D 06 01 F5 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 01 00 [10:54:56]MH_I2C_Read... [10:54:56]Read from MH i2c: D1 01 00 1D 06 00 F4 [10:54:56]Write to MH i2c: 01 00 00 1E 06 24 [10:54:56]Write i2c OK [10:54:56]MH_I2C_Read... [10:54:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 ED 26 47 00 DA 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 38 37 35 30 31 39 10 04 04 00 56 B6 01 00 F4 03 04 00 8A 5D 1B 66 B6 04 01 00 00 15 F0 8B F6 B1 BD B0 0D [10:54:56]CommunicateWithHost err = 0 [10:54:56]CheckOFDResponse [10:54:56]1017 (14) - 77093643461234 [10:54:56]1041 (16) - 0000000000875019 [10:54:56]1040 (4) - 112214 [10:54:56]1012 (4) - 14.04.2024 04:37 [10:54:56]1206 (1) - 0 [10:54:56]OFD Sender: Remove packet 112214 [10:54:56]ProducePacketName [10:54:56]name=ofd_packets/00112214 [10:54:56]NVStorageDeleteData [10:54:57]OFD Sender: No OFD packet to send [10:54:57]*** Cut start [10:54:57]*** Partial cut [10:54:57]*** CUTSNS_PIN = 1 [10:54:57]*** CUTSNS_PIN = 0 [10:54:57]*** Brake cut motor [10:54:57]Read from MH i2c: 01 [10:54:57]MH_I2C_Read... [10:54:57]*** Stop cut motor [10:54:57]*** Cut end [10:54:57]Read from MH i2c: 01 07 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: 01 07 00 1E 06 00 00 00 00 00 FF 0F 39 [10:54:57]process_action close_receipt done [10:54:57]requested_data is exist [10:54:57]produce_requested_data [10:54:57]requested_item fm.sn is exist - process it [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 11 00 00 [10:54:57]Write to MH i2c: E2 08 00 1F 06 80 11 00 00 00 00 00 00 9F [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:57]Read from MH i2c: E2 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 [10:54:57]MH_I2C_Read... [10:54:57]Read from MH i2c: E2 17 00 1F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [10:54:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:54:57]wFMCommunicate OK [10:54:57]requested_item fd.num is exist - process it [10:54:57]SAM_PROTO_GetFieldsCounters [10:54:57]wFMCommunicate request_size=4 [10:54:57]MH_SAM_APDU [10:54:57]CAPDU: 80 13 00 00 [10:54:57]Write to MH i2c: E2 08 00 20 06 80 13 00 00 00 00 00 00 A2 [10:54:57]Write i2c OK [10:54:57]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 62 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 62 00 20 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 56 B6 01 00 0E 04 04 00 65 01 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 87 [10:54:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 56 B6 01 00 0E 04 04 00 65 01 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 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_GetFieldsCounters done [10:54:58]requested_item shift.num is exist - process it [10:54:58]requested_item shift.opened is exist - process it [10:54:58]req_shift_opened [10:54:58]FM_GetShiftState [10:54:58]SAM_PROTO_GetShiftState [10:54:58]wFMCommunicate request_size=4 [10:54:58]MH_SAM_APDU [10:54:58]CAPDU: 80 13 01 00 [10:54:58]Write to MH i2c: E2 08 00 21 06 80 13 01 00 00 00 00 00 A4 [10:54:58]Write i2c OK [10:54:58]MH_I2C_Read... [10:54:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:58]Read from MH i2c: E2 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 [10:54:58]MH_I2C_Read... [10:54:58]Read from MH i2c: E2 0E 00 21 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [10:54:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:54:58]wFMCommunicate OK [10:54:58]SAM_PROTO_GetShiftState done [10:54:58]FM_GetShiftState done [10:54:58]req_shift_opened done [10:54:58]requested_item shift.open_date is exist - process it [10:54:58]req_shift_open_date [10:54:58]req_shift_open_date done [10:54:58]produce_requested_data done [10:54:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112214,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:54:58]process_action_free close_receipt [10:54:58]json_value_free [10:54:58]json_value_free done [10:54:58]process_json_proto returns [10:54:58]Send response to host [10:54:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112214,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:54:58]free response buf [10:54:58]execute_script done [10:54:58]execute_script returns [10:54:58]free content buf [10:54:58]Sock 7.Close socket [10:54:58]Sock 7.Thread stoped [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: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]accept exits with 9 [10:56:52]New connection [10:56:52]New thread 3067198820 created [10:56:52]Thread 3067342180 joined [10:56:52]Waiting for new connection... [10:56:52] Sock 9.Parse request [10:56:52]Sock 9.Check first char [10:56:52]Sock 9.First char is OK [10:56:52]request: POST /json_proto HTTP/1.0 [10:56:52]Method: POST [10:56:52]URL: /json_proto [10:56:52]Method is POST - this is cgi request [10:56:52]url: /json_proto [10:56:52]query_string will be loaded in cgi processing [10:56:52]execute_cgi json_proto POST (null) [10:56:52]execute_cgi path=json_proto method=POST [10:56:52]POST find Content-Length [10:56:52]Host: 172.17.96.197:8080 [10:56:52]Content-Length: 815 [10:56:52]Content-Type: application/json [10:56:52] [10:56:52]POST finish read [10:56:52]Found Content-Length = 815 [10:56:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:52]execute_script... [10:56: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)48529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:52]POST & json_proto [10:56:52]process_json_proto [10:56:52]json parsed OK: [10:56:52]protocol is kg_v1.0 [10:56:52]action value=close_receipt [10:56:52]process_action close_receipt [10:56:52]cmd_close_receipt [10:56:52]MH_GetDate [10:56:52]Write to MH i2c: F0 00 00 22 06 17 [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 09 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: F0 09 00 22 06 00 74 B6 1B 66 E0 85 7F 64 13 [10:56:52]GetLastDocTimeStamp 1713092094 [10:56:52]current date 1713092212 [10:56:52]FM_GetShiftState [10:56:52]SAM_PROTO_GetShiftState [10:56:52]wFMCommunicate request_size=4 [10:56:52]MH_SAM_APDU [10:56:52]CAPDU: 80 13 01 00 [10:56:52]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [10:56:52]Write i2c OK [10:56:52]MH_I2C_Read... [10:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:52]Read from MH i2c: E2 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 0E 00 [10:56:52]MH_I2C_Read... [10:56:52]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3E [10:56:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:56:52]wFMCommunicate OK [10:56:52]SAM_PROTO_GetShiftState done [10:56:52]FM_GetShiftState done [10:56:52]opened in 1713054696 [10:56:52]opened+sec_in_day 1713141096 [10:56:52]quantity*price = 50025 [10:56:52]sum+1 = 50026 [10:56:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 114 14.04.2024 10:56 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112215 ФПД: 122612509979845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105652&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112215&fm=122612509979845&tin=02508201610067®Number=0000000000094237&sum=50025 [10:56:53]StoreToDocumentArchive [10:56:53]shift 357 fd 112215 [10:56:53]save to /storage/0357/doc_00112215 [10:56:53]save last doc name /storage/0357/doc_00112215 to /storage/kkm_last_doc_name [10:56:53]save OK [10:56:53]Clear old archive folders... [10:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:56:53]tlvbuf is 0175D040 [10:56:53]SAM_PROTO_ClearQueue [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 09 00 00 [10:56:53]Write to MH i2c: E2 08 00 30 06 80 09 00 00 00 00 00 00 A8 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_ClearQueue done [10:56:53]KKMCreateOFDPacket [10:56:53]OFDProtocolAddRootSTLVToBuf [10:56:53]FM_MakeSignedData [10:56:53]FM_MakeSignedData [10:56:53]SAM_PROTO_SignData [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 01 02 [10:56:53]Write to MH i2c: E2 08 00 31 06 80 0D 01 02 00 00 00 00 B0 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=255 [10:56:53]MH_SAM_APDU [10:56: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 74 B6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B6 01 00 35 04 06 00 6F [10:56:53]Write to MH i2c: E2 02 01 32 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 74 B6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B6 01 00 35 04 06 00 6F 00 00 85 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=10 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 02 02 05 83 F3 1A 34 C5 [10:56:53]Write to MH i2c: E2 0D 00 33 06 80 0D 02 02 05 00 83 F3 1A 34 C5 00 00 46 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [10:56:53]RAPDU: 90 00 [10:56:53]wFMCommunicate OK [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 0D 03 02 [10:56:53]Write to MH i2c: E2 08 00 34 06 80 0D 03 02 00 00 00 00 B5 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0B 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 0B 00 34 06 00 CB D5 0A 6A 6F BF AA 8D 90 00 2F [10:56:53]RAPDU: CB D5 0A 6A 6F BF AA 8D 90 00 [10:56:53]wFMCommunicate OK [10:56:53]SAM_PROTO_SignData done [10:56:53]FM_MakeSignedData done [10:56:53]CreateOFDProtocolMessage [10:56:53]wFMCommunicate request_size=4 [10:56:53]MH_SAM_APDU [10:56:53]CAPDU: 80 11 00 00 [10:56:53]Write to MH i2c: E2 08 00 35 06 80 11 00 00 00 00 00 00 B5 [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:53]Read from MH i2c: E2 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 17 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: E2 17 00 35 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 06 [10:56:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:56:53]wFMCommunicate OK [10:56:53]CreateOFDProtocolMessage done [10:56:53]OFDSenderStorePacket 112215 [10:56:53]StoreOFDPacket docnum=112215 [10:56:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 CC 07 01 C1 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 74 B6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B6 01 00 35 04 06 00 6F 83 F3 1A 34 C5 CB D5 0A 6A 6F BF AA 8D [10:56:53]CheckFolder [10:56:53]dirname=/storage/ofd_packets [10:56:53]CheckFolder done [10:56:53]ProducePacketName [10:56:53]name=ofd_packets/00112215 [10:56:53]NVStorageSaveData ofd_packets/00112215 [10:56:53]File name is /storage/ofd_packets/00112215 [10:56:53]Write 301 bytes [10:56:53]NVStorageSaveData done [10:56:53]OFDSenderStorePacket done [10:56:53]KKMCreateOFDPacket done [10:56:53]NVStorageSaveData kkm_last_timestamp [10:56:53]File name is /storage/kkm_last_timestamp [10:56:53]Write 4 bytes [10:56:53]NVStorageSaveData done [10:56:53]ExternCall_PrintAddStr [10:56:53]wPrintStart [10:56:53]Write to MH i2c: 01 00 00 36 06 3C [10:56:53]Write i2c OK [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 07 00 [10:56:53]MH_I2C_Read... [10:56:53]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 FF 0F 51 [10:56:53]RasterBufferAndPrint [10:56:53]line Счет N : (1)48529 [10:56:53]line ИНН: 02508201610067 [10:56:53]line Контрольно-Кассовый Чек [10:56:53]line ПРОДАЖА [10:56:53]line ТРК (МРК, ГНК) : 11 [10:56:53]line Товар: 2710124130 [10:56:53]line Аи-92-К-5 [10:56:53]line 7.780 * 64.30 [10:56:53]line = 500.25 [10:56:53]line НДС 12% НСП 1% [10:56:53]line > о реализуемом товаре [10:56:53]line ИТОГО: 500.25 [10:56:53]line НСП 1% : 4.43 [10:56:53]line НДС 12% : 53.12 [10:56:53]line Наличными: 0.00 [10:56:53]line Безнал.: 500.25 [10:56:53]line Место: АЗС № 47 "Партнер Нефть" [10:56:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [10:56:53]line СНО: Общий режим [10:56:53]line Чек 114 14.04.2024 10:56 [10:56:53]line Смена: 357 ФФД: 1.0 [10:56:53]line ЗНМ: 0300000138 [10:56:53]line РНМ: 0000000000094237 [10:56:53]line Версия ККМ: 001 [10:56:53]line Платежная система: Бакай Банк [10:56:53]line ФМ: 0000000000875019 [10:56:53]line ФД: 112215 [10:56:53]line ФПД: 122612509979845 [10:56:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T105652&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112215&fm=122612509979845&tin=02508201610067®Number=0000000000094237&sum=50025 [10:56:54]OFD Sender: Processing packet 112215 [packets to send 71, broken 70] [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00112215 [10:56:54]OFD Sender: To server: pG, [10:56:54]CommunicateWithHost lk.salyk.kg:30040 [10:56:54]ConnectInit lk.salyk.kg [10:56:54]written 0, free lines is 4095 [10:56:54]Connected sock=10 [10:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 CC 07 01 C1 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 74 B6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B6 01 00 35 04 06 00 6F 83 F3 1A 34 C5 CB D5 0A 6A 6F BF AA 8D [10:56:54]Write to MH i2c: 01 00 00 60 06 66 [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 F5 0C 6E [10:56:54]RasterBufferAndPrint [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]line [10:56:54]written 0, free lines is 3320 [10:56:54]MH_Cut [10:56:54]Write to MH i2c: D1 01 00 67 06 01 3F [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 01 00 [10:56:54]MH_I2C_Read... [10:56:54]Read from MH i2c: D1 01 00 67 06 00 3E [10:56:54]Write to MH i2c: 01 00 00 68 06 6E [10:56:54]Write i2c OK [10:56:54]MH_I2C_Read... [10:56:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5D 65 47 00 8F 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B6 01 00 F4 03 04 00 00 5E 1B 66 B6 04 01 00 00 54 9A 18 58 2D D9 61 57 [10:56:54]CommunicateWithHost err = 0 [10:56:54]CheckOFDResponse [10:56:54]1017 (14) - 77093643461234 [10:56:54]1041 (16) - 0000000000875019 [10:56:54]1040 (4) - 112215 [10:56:54]1012 (4) - 14.04.2024 04:39 [10:56:54]1206 (1) - 0 [10:56:54]OFD Sender: Remove packet 112215 [10:56:54]ProducePacketName [10:56:54]name=ofd_packets/00112215 [10:56:54]NVStorageDeleteData [10:56:55]OFD Sender: No OFD packet to send [10:56:55]*** Cut start [10:56:55]*** Partial cut [10:56:55]*** CUTSNS_PIN = 1 [10:56:55]*** CUTSNS_PIN = 0 [10:56:55]*** Brake cut motor [10:56:55]Read from MH i2c: 01 [10:56:55]MH_I2C_Read... [10:56:55]*** Stop cut motor [10:56:55]*** Cut end [10:56:55]Read from MH i2c: 01 07 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FF 0F 83 [10:56:55]process_action close_receipt done [10:56:55]requested_data is exist [10:56:55]produce_requested_data [10:56:55]requested_item fm.sn is exist - process it [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 11 00 00 [10:56:55]Write to MH i2c: E2 08 00 69 06 80 11 00 00 00 00 00 00 E9 [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:55]Read from MH i2c: E2 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 [10:56:55]MH_I2C_Read... [10:56:55]Read from MH i2c: E2 17 00 69 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3A [10:56:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [10:56:55]wFMCommunicate OK [10:56:55]requested_item fd.num is exist - process it [10:56:55]SAM_PROTO_GetFieldsCounters [10:56:55]wFMCommunicate request_size=4 [10:56:55]MH_SAM_APDU [10:56:55]CAPDU: 80 13 00 00 [10:56:55]Write to MH i2c: E2 08 00 6A 06 80 13 00 00 00 00 00 00 EC [10:56:55]Write i2c OK [10:56:55]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 62 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 62 00 6A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 57 B6 01 00 0E 04 04 00 65 01 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 D5 [10:56:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 57 B6 01 00 0E 04 04 00 65 01 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 [10:56:56]wFMCommunicate OK [10:56:56]SAM_PROTO_GetFieldsCounters done [10:56:56]requested_item shift.num is exist - process it [10:56:56]requested_item shift.opened is exist - process it [10:56:56]req_shift_opened [10:56:56]FM_GetShiftState [10:56:56]SAM_PROTO_GetShiftState [10:56:56]wFMCommunicate request_size=4 [10:56:56]MH_SAM_APDU [10:56:56]CAPDU: 80 13 01 00 [10:56:56]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [10:56:56]Write i2c OK [10:56:56]MH_I2C_Read... [10:56:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:56]Read from MH i2c: E2 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 [10:56:56]MH_I2C_Read... [10:56:56]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 86 [10:56:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [10:56:56]wFMCommunicate OK [10:56:56]SAM_PROTO_GetShiftState done [10:56:56]FM_GetShiftState done [10:56:56]req_shift_opened done [10:56:56]requested_item shift.open_date is exist - process it [10:56:56]req_shift_open_date [10:56:56]req_shift_open_date done [10:56:56]produce_requested_data done [10:56:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112215,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [10:56:56]process_action_free close_receipt [10:56:56]json_value_free [10:56:56]json_value_free done [10:56:56]process_json_proto returns [10:56:56]Send response to host [10:56:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112215,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [10:56:56]free response buf [10:56:56]execute_script done [10:56:56]execute_script returns [10:56:56]free content buf [10:56:56]Sock 9.Close socket [10:56:56]Sock 9.Thread stoped [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:21]accept exits with 7 [11:00:21]New connection [11:00:21]New thread 3067342180 created [11:00:21]Thread 3067198820 joined [11:00:21]Waiting for new connection... [11:00:21] Sock 7.Parse request [11:00:21]Sock 7.Check first char [11:00:21]Sock 7.First char is OK [11:00:21]request: POST /json_proto HTTP/1.0 [11:00:21]Method: POST [11:00:21]URL: /json_proto [11:00:21]Method is POST - this is cgi request [11:00:21]url: /json_proto [11:00:21]query_string will be loaded in cgi processing [11:00:21]execute_cgi json_proto POST (null) [11:00:21]execute_cgi path=json_proto method=POST [11:00:21]POST find Content-Length [11:00:21]Host: 172.17.96.197:8080 [11:00:21]Content-Length: 677 [11:00:21]Content-Type: application/json [11:00:21] [11:00:21]POST finish read [11:00:21]Found Content-Length = 677 [11:00:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 11.040, "sum" : 800.40, "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" ] } } [11:00:21]execute_script... [11:00: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)48530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 11.040, "sum" : 800.40, "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" ] } } [11:00:21]POST & json_proto [11:00:21]process_json_proto [11:00:21]json parsed OK: [11:00:21]protocol is kg_v1.0 [11:00:21]action value=close_receipt [11:00:21]process_action close_receipt [11:00:21]cmd_close_receipt [11:00:21]MH_GetDate [11:00:21]Write to MH i2c: F0 00 00 6C 06 61 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: F0 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: F0 09 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: F0 09 00 6C 06 00 45 B7 1B 66 E0 85 7F 64 2F [11:00:21]GetLastDocTimeStamp 1713092212 [11:00:21]current date 1713092421 [11:00:21]FM_GetShiftState [11:00:21]SAM_PROTO_GetShiftState [11:00:21]wFMCommunicate request_size=4 [11:00:21]MH_SAM_APDU [11:00:21]CAPDU: 80 13 01 00 [11:00:21]Write to MH i2c: E2 08 00 6D 06 80 13 01 00 00 00 00 00 F0 [11:00:21]Write i2c OK [11:00:21]MH_I2C_Read... [11:00:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:21]Read from MH i2c: E2 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 [11:00:21]MH_I2C_Read... [11:00:21]Read from MH i2c: E2 0E 00 6D 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 88 [11:00:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:00:21]wFMCommunicate OK [11:00:21]SAM_PROTO_GetShiftState done [11:00:21]FM_GetShiftState done [11:00:21]opened in 1713054696 [11:00:21]opened+sec_in_day 1713141096 [11:00:21]quantity*price = 80040 [11:00:21]sum+1 = 80041 [11:00:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.00 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 115 14.04.2024 11:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112216 ФПД: 64793727927305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110021&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112216&fm=64793727927305&tin=02508201610067®Number=0000000000094237&sum=80000 [11:00:22]StoreToDocumentArchive [11:00:22]shift 357 fd 112216 [11:00:22]save to /storage/0357/doc_00112216 [11:00:22]save last doc name /storage/0357/doc_00112216 to /storage/kkm_last_doc_name [11:00:22]save OK [11:00:22]Clear old archive folders... [11:00:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:00:22]tlvbuf is 017CD710 [11:00:22]SAM_PROTO_ClearQueue [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 09 00 00 [11:00:22]Write to MH i2c: E2 08 00 7A 06 80 09 00 00 00 00 00 00 F2 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_ClearQueue done [11:00:22]KKMCreateOFDPacket [11:00:22]OFDProtocolAddRootSTLVToBuf [11:00:22]FM_MakeSignedData [11:00:22]FM_MakeSignedData [11:00:22]SAM_PROTO_SignData [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 01 02 [11:00:22]Write to MH i2c: E2 08 00 7B 06 80 0D 01 02 00 00 00 00 FA [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=255 [11:00:22]MH_SAM_APDU [11:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 2B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 A8 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 34 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 73 00 00 00 F4 03 04 00 45 B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B6 01 00 35 04 06 00 3A [11:00:22]Write to MH i2c: E2 02 01 7C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 2B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 A8 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 34 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 73 00 00 00 F4 03 04 00 45 B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B6 01 00 35 04 06 00 3A 00 00 CC [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=10 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 02 02 05 ED F7 23 04 09 [11:00:22]Write to MH i2c: E2 0D 00 7D 06 80 0D 02 02 05 00 ED F7 23 04 09 00 00 1B [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [11:00:22]RAPDU: 90 00 [11:00:22]wFMCommunicate OK [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 0D 03 02 [11:00:22]Write to MH i2c: E2 08 00 7E 06 80 0D 03 02 00 00 00 00 FF [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 0B 00 7E 06 00 A1 FD 72 4D AC CE 30 27 90 00 2E [11:00:22]RAPDU: A1 FD 72 4D AC CE 30 27 90 00 [11:00:22]wFMCommunicate OK [11:00:22]SAM_PROTO_SignData done [11:00:22]FM_MakeSignedData done [11:00:22]CreateOFDProtocolMessage [11:00:22]wFMCommunicate request_size=4 [11:00:22]MH_SAM_APDU [11:00:22]CAPDU: 80 11 00 00 [11:00:22]Write to MH i2c: E2 08 00 7F 06 80 11 00 00 00 00 00 00 FF [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:22]Read from MH i2c: E2 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: E2 17 00 7F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 50 [11:00:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:00:22]wFMCommunicate OK [11:00:22]CreateOFDProtocolMessage done [11:00:22]OFDSenderStorePacket 112216 [11:00:22]StoreOFDPacket docnum=112216 [11:00:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0F 7F 07 01 C2 6A 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 20 2B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 A8 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 34 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 73 00 00 00 F4 03 04 00 45 B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B6 01 00 35 04 06 00 3A ED F7 23 04 09 A1 FD 72 4D AC CE 30 27 [11:00:22]CheckFolder [11:00:22]dirname=/storage/ofd_packets [11:00:22]CheckFolder done [11:00:22]ProducePacketName [11:00:22]name=ofd_packets/00112216 [11:00:22]NVStorageSaveData ofd_packets/00112216 [11:00:22]File name is /storage/ofd_packets/00112216 [11:00:22]Write 301 bytes [11:00:22]NVStorageSaveData done [11:00:22]OFDSenderStorePacket done [11:00:22]KKMCreateOFDPacket done [11:00:22]NVStorageSaveData kkm_last_timestamp [11:00:22]File name is /storage/kkm_last_timestamp [11:00:22]Write 4 bytes [11:00:22]NVStorageSaveData done [11:00:22]ExternCall_PrintAddStr [11:00:22]wPrintStart [11:00:22]Write to MH i2c: 01 00 00 80 06 86 [11:00:22]Write i2c OK [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 [11:00:22]MH_I2C_Read... [11:00:22]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [11:00:22]RasterBufferAndPrint [11:00:22]line Счет N : (1)48530 [11:00:22]line ИНН: 02508201610067 [11:00:22]line Контрольно-Кассовый Чек [11:00:22]line ПРОДАЖА [11:00:22]line ТРК (МРК, ГНК) : 12 [11:00:22]line Товар: 2710124500 [11:00:22]line Аи-95-К-5 [11:00:22]line 11.040 * 72.50 [11:00:22]line = 800.40 [11:00:22]line НДС 12% НСП 1% [11:00:22]line > о реализуемом товаре [11:00:22]line ОКРУГЛЕНИЕ: -0.40 [11:00:22]line ИТОГО: 800.00 [11:00:22]line Внесено: 800.00 [11:00:22]line СДАЧА: 0.00 [11:00:22]line НСП 1% : 7.08 [11:00:22]line НДС 12% : 85.00 [11:00:22]line Наличными: 800.00 [11:00:22]line Безнал.: 0.00 [11:00:22]line Место: АЗС № 47 "Партнер Нефть" [11:00:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:00:22]line СНО: Общий режим [11:00:22]line Чек 115 14.04.2024 11:00 [11:00:22]line Смена: 357 ФФД: 1.0 [11:00:22]line ЗНМ: 0300000138 [11:00:22]line РНМ: 0000000000094237 [11:00:22]line Версия ККМ: 001 [11:00:22]line ФМ: 0000000000875019 [11:00:22]line ФД: 112216 [11:00:22]line ФПД: 64793727927305 [11:00:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110021&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112216&fm=64793727927305&tin=02508201610067®Number=0000000000094237&sum=80000 [11:00:23]OFD Sender: Processing packet 112216 [packets to send 71, broken 70] [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00112216 [11:00:23]OFD Sender: To server: pG, [11:00:23]CommunicateWithHost lk.salyk.kg:30040 [11:00:23]ConnectInit lk.salyk.kg [11:00:23]written 0, free lines is 4095 [11:00:23]Connected sock=10 [11:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0F 7F 07 01 C2 6A 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 20 2B 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 A8 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 34 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 73 00 00 00 F4 03 04 00 45 B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B6 01 00 35 04 06 00 3A ED F7 23 04 09 A1 FD 72 4D AC CE 30 27 [11:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E0 06 47 00 26 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B6 01 00 F4 03 04 00 D1 5E 1B 66 B6 04 01 00 00 91 60 B4 31 DF 5A 6F C5 [11:00:23]CommunicateWithHost err = 0 [11:00:23]CheckOFDResponse [11:00:23]1017 (14) - 77093643461234 [11:00:23]1041 (16) - 0000000000875019 [11:00:23]1040 (4) - 112216 [11:00:23]1012 (4) - 14.04.2024 04:42 [11:00:23]1206 (1) - 0 [11:00:23]OFD Sender: Remove packet 112216 [11:00:23]ProducePacketName [11:00:23]name=ofd_packets/00112216 [11:00:23]NVStorageDeleteData [11:00:23]Write to MH i2c: 01 00 00 AB 06 B1 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 EA 0C AE [11:00:23]RasterBufferAndPrint [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]line [11:00:23]written 0, free lines is 3312 [11:00:23]MH_Cut [11:00:23]Write to MH i2c: D1 01 00 B2 06 01 8A [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 [11:00:23]MH_I2C_Read... [11:00:23]Read from MH i2c: D1 01 00 B2 06 00 89 [11:00:23]Write to MH i2c: 01 00 00 B3 06 B9 [11:00:23]Write i2c OK [11:00:23]MH_I2C_Read... [11:00:24]OFD Sender: No OFD packet to send [11:00:24]*** Cut start [11:00:24]*** Partial cut [11:00:24]*** CUTSNS_PIN = 1 [11:00:24]*** CUTSNS_PIN = 0 [11:00:24]*** Brake cut motor [11:00:25]Read from MH i2c: 01 [11:00:25]MH_I2C_Read... [11:00:25]*** Stop cut motor [11:00:25]*** Cut end [11:00:25]Read from MH i2c: 01 07 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [11:00:25]process_action close_receipt done [11:00:25]requested_data is exist [11:00:25]produce_requested_data [11:00:25]requested_item fm.sn is exist - process it [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 11 00 00 [11:00:25]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 85 [11:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:00:25]wFMCommunicate OK [11:00:25]requested_item fd.num is exist - process it [11:00:25]SAM_PROTO_GetFieldsCounters [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 00 00 [11:00:25]Write to MH i2c: E2 08 00 B5 06 80 13 00 00 00 00 00 00 37 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 62 00 B5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 58 B6 01 00 0E 04 04 00 65 01 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 24 [11:00:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 58 B6 01 00 0E 04 04 00 65 01 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 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetFieldsCounters done [11:00:25]requested_item shift.num is exist - process it [11:00:25]requested_item shift.opened is exist - process it [11:00:25]req_shift_opened [11:00:25]FM_GetShiftState [11:00:25]SAM_PROTO_GetShiftState [11:00:25]wFMCommunicate request_size=4 [11:00:25]MH_SAM_APDU [11:00:25]CAPDU: 80 13 01 00 [11:00:25]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [11:00:25]Write i2c OK [11:00:25]MH_I2C_Read... [11:00:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:25]Read from MH i2c: E2 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 [11:00:25]MH_I2C_Read... [11:00:25]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D1 [11:00:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:00:25]wFMCommunicate OK [11:00:25]SAM_PROTO_GetShiftState done [11:00:25]FM_GetShiftState done [11:00:25]req_shift_opened done [11:00:25]requested_item shift.open_date is exist - process it [11:00:25]req_shift_open_date [11:00:25]req_shift_open_date done [11:00:25]produce_requested_data done [11:00:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112216,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:00:25]process_action_free close_receipt [11:00:25]json_value_free [11:00:25]json_value_free done [11:00:25]process_json_proto returns [11:00:25]Send response to host [11:00:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112216,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:00:25]free response buf [11:00:25]execute_script done [11:00:25]execute_script returns [11:00:25]free content buf [11:00:25]Sock 7.Close socket [11:00:25]Sock 7.Thread stoped [11:00:29]OFD Sender: No OFD packet to send [11:00:34]OFD Sender: No OFD packet to send [11:00:39]OFD Sender: No OFD packet to send [11:00:44]OFD Sender: No OFD packet to send [11:00:49]OFD Sender: No OFD packet to send [11:00:54]OFD Sender: No OFD packet to send [11:00:59]OFD Sender: No OFD packet to send [11:01:02]accept exits with 9 [11:01:02]New connection [11:01:02]New thread 3067198820 created [11:01:02]Thread 3067342180 joined [11:01:02]Waiting for new connection... [11:01:02] Sock 9.Parse request [11:01:02]Sock 9.Check first char [11:01:02]Sock 9.First char is OK [11:01:02]request: POST /json_proto HTTP/1.0 [11:01:02]Method: POST [11:01:02]URL: /json_proto [11:01:02]Method is POST - this is cgi request [11:01:02]url: /json_proto [11:01:02]query_string will be loaded in cgi processing [11:01:02]execute_cgi json_proto POST (null) [11:01:02]execute_cgi path=json_proto method=POST [11:01:02]POST find Content-Length [11:01:02]Host: 172.17.96.197:8080 [11:01:02]Content-Length: 816 [11:01:02]Content-Type: application/json [11:01:02] [11:01:02]POST finish read [11:01:02]Found Content-Length = 816 [11:01:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48531", "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.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:02]execute_script... [11:01: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)48531", "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.30, "quantity" : 10.890, "sum" : 700.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:01:02]POST & json_proto [11:01:02]process_json_proto [11:01:02]json parsed OK: [11:01:02]protocol is kg_v1.0 [11:01:02]action value=close_receipt [11:01:02]process_action close_receipt [11:01:02]cmd_close_receipt [11:01:02]MH_GetDate [11:01:02]Write to MH i2c: F0 00 00 B7 06 AC [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 09 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: F0 09 00 B7 06 00 6F B7 1B 66 E0 85 7F 64 A4 [11:01:02]GetLastDocTimeStamp 1713092421 [11:01:02]current date 1713092463 [11:01:02]FM_GetShiftState [11:01:02]SAM_PROTO_GetShiftState [11:01:02]wFMCommunicate request_size=4 [11:01:02]MH_SAM_APDU [11:01:02]CAPDU: 80 13 01 00 [11:01:02]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [11:01:02]Write i2c OK [11:01:02]MH_I2C_Read... [11:01:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:02]Read from MH i2c: E2 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 [11:01:02]MH_I2C_Read... [11:01:02]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [11:01:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:01:02]wFMCommunicate OK [11:01:02]SAM_PROTO_GetShiftState done [11:01:02]FM_GetShiftState done [11:01:02]opened in 1713054696 [11:01:02]opened+sec_in_day 1713141096 [11:01:02]quantity*price = 70022 [11:01:02]sum+1 = 70024 [11:01:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.23 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.23 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 116 14.04.2024 11:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112217 ФПД: 3525286471143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110103&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112217&fm=3525286471143&tin=02508201610067®Number=0000000000094237&sum=70023 [11:01:03]StoreToDocumentArchive [11:01:03]shift 357 fd 112217 [11:01:03]save to /storage/0357/doc_00112217 [11:01:03]save last doc name /storage/0357/doc_00112217 to /storage/kkm_last_doc_name [11:01:03]save OK [11:01:03]Clear old archive folders... [11:01:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:01:03]tlvbuf is 0175CDE0 [11:01:03]SAM_PROTO_ClearQueue [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 09 00 00 [11:01:03]Write to MH i2c: E2 08 00 C5 06 80 09 00 00 00 00 00 00 3D [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:01:03]Read from MH i2c: E2 03 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [11:01:03]RAPDU: 90 00 [11:01:03]wFMCommunicate OK [11:01:03]SAM_PROTO_ClearQueue done [11:01:03]KKMCreateOFDPacket [11:01:03]OFDProtocolAddRootSTLVToBuf [11:01:03]FM_MakeSignedData [11:01:03]FM_MakeSignedData [11:01:03]SAM_PROTO_SignData [11:01:03]wFMCommunicate request_size=4 [11:01:03]MH_SAM_APDU [11:01:03]CAPDU: 80 0D 01 02 [11:01:03]Write to MH i2c: E2 08 00 C6 06 80 0D 01 02 00 00 00 00 45 [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:01:03]Read from MH i2c: E2 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 [11:01:03]MH_I2C_Read... [11:01:03]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [11:01:03]RAPDU: 90 00 [11:01:03]wFMCommunicate OK [11:01:03]wFMCommunicate request_size=255 [11:01:03]MH_SAM_APDU [11:01: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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B6 01 00 35 04 06 00 03 [11:01:03]Write to MH i2c: E2 02 01 C7 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 8A 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B6 01 00 35 04 06 00 03 00 00 2E [11:01:03]Write i2c OK [11:01:03]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]wFMCommunicate request_size=10 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 02 02 05 34 CB 72 A5 E7 [11:01:04]Write to MH i2c: E2 0D 00 C8 06 80 0D 02 02 05 00 34 CB 72 A5 E7 00 00 4F [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [11:01:04]RAPDU: 90 00 [11:01:04]wFMCommunicate OK [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 0D 03 02 [11:01:04]Write to MH i2c: E2 08 00 C9 06 80 0D 03 02 00 00 00 00 4A [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 0B 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 0B 00 C9 06 00 0C 2F F7 D4 2C A4 E8 B8 90 00 C1 [11:01:04]RAPDU: 0C 2F F7 D4 2C A4 E8 B8 90 00 [11:01:04]wFMCommunicate OK [11:01:04]SAM_PROTO_SignData done [11:01:04]FM_MakeSignedData done [11:01:04]CreateOFDProtocolMessage [11:01:04]wFMCommunicate request_size=4 [11:01:04]MH_SAM_APDU [11:01:04]CAPDU: 80 11 00 00 [11:01:04]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]OFD Sender: No OFD packet to send [11:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:04]Read from MH i2c: E2 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9B [11:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:01:04]wFMCommunicate OK [11:01:04]CreateOFDProtocolMessage done [11:01:04]OFDSenderStorePacket 112217 [11:01:04]StoreOFDPacket docnum=112217 [11:01:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C8 D2 07 01 7C 25 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B6 01 00 35 04 06 00 03 34 CB 72 A5 E7 0C 2F F7 D4 2C A4 E8 B8 [11:01:04]CheckFolder [11:01:04]dirname=/storage/ofd_packets [11:01:04]CheckFolder done [11:01:04]ProducePacketName [11:01:04]name=ofd_packets/00112217 [11:01:04]NVStorageSaveData ofd_packets/00112217 [11:01:04]File name is /storage/ofd_packets/00112217 [11:01:04]Write 301 bytes [11:01:04]NVStorageSaveData done [11:01:04]OFDSenderStorePacket done [11:01:04]KKMCreateOFDPacket done [11:01:04]NVStorageSaveData kkm_last_timestamp [11:01:04]File name is /storage/kkm_last_timestamp [11:01:04]Write 4 bytes [11:01:04]NVStorageSaveData done [11:01:04]ExternCall_PrintAddStr [11:01:04]wPrintStart [11:01:04]Write to MH i2c: 01 00 00 CB 06 D1 [11:01:04]Write i2c OK [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 07 00 [11:01:04]MH_I2C_Read... [11:01:04]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [11:01:04]RasterBufferAndPrint [11:01:04]line Счет N : (1)48531 [11:01:04]line ИНН: 02508201610067 [11:01:04]line Контрольно-Кассовый Чек [11:01:04]line ПРОДАЖА [11:01:04]line ТРК (МРК, ГНК) : 32 [11:01:04]line Товар: 2710124130 [11:01:04]line Аи-92-К-5 [11:01:04]line 10.890 * 64.30 [11:01:04]line = 700.23 [11:01:04]line НДС 12% НСП 1% [11:01:04]line > о реализуемом товаре [11:01:04]line ИТОГО: 700.23 [11:01:04]line НСП 1% : 6.20 [11:01:04]line НДС 12% : 74.36 [11:01:04]line Наличными: 0.00 [11:01:04]line Безнал.: 700.23 [11:01:04]line Место: АЗС № 47 "Партнер Нефть" [11:01:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:01:04]line СНО: Общий режим [11:01:04]line Чек 116 14.04.2024 11:01 [11:01:04]line Смена: 357 ФФД: 1.0 [11:01:04]line ЗНМ: 0300000138 [11:01:04]line РНМ: 0000000000094237 [11:01:04]line Версия ККМ: 001 [11:01:04]line Платежная система: Бакай Банк [11:01:04]line ФМ: 0000000000875019 [11:01:04]line ФД: 112217 [11:01:04]line ФПД: 3525286471143 [11:01:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110103&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112217&fm=3525286471143&tin=02508201610067®Number=0000000000094237&sum=70023 [11:01:04]OFD Sender: Processing packet 112217 [packets to send 71, broken 70] [11:01:04]ProducePacketName [11:01:04]name=ofd_packets/00112217 [11:01:04]OFD Sender: To server: pG, [11:01:04]CommunicateWithHost lk.salyk.kg:30040 [11:01:04]ConnectInit lk.salyk.kg [11:01:04]written 0, free lines is 4095 [11:01:04]Connected sock=7 [11:01:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C8 D2 07 01 7C 25 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 2A 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 87 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 87 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 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 87 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F B7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B6 01 00 35 04 06 00 03 34 CB 72 A5 E7 0C 2F F7 D4 2C A4 E8 B8 [11:01:05]Write to MH i2c: 01 00 00 F5 06 FB [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: 01 07 00 [11:01:05]MH_I2C_Read... [11:01:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 72 64 47 00 06 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 38 37 35 30 31 39 10 04 04 00 59 B6 01 00 F4 03 04 00 FA 5E 1B 66 B6 04 01 00 00 6C B6 AF 19 FE A9 8B 93 [11:01:05]CommunicateWithHost err = 0 [11:01:05]CheckOFDResponse [11:01:05]1017 (14) - 77093643461234 [11:01:05]1041 (16) - 0000000000875019 [11:01:05]1040 (4) - 112217 [11:01:05]1012 (4) - 14.04.2024 04:43 [11:01:05]1206 (1) - 0 [11:01:05]OFD Sender: Remove packet 112217 [11:01:05]ProducePacketName [11:01:05]name=ofd_packets/00112217 [11:01:05]NVStorageDeleteData [11:01:05]Read from MH i2c: 01 07 00 F5 06 00 00 00 00 00 F5 0C 03 [11:01:05]RasterBufferAndPrint [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]line [11:01:05]written 0, free lines is 3333 [11:01:05]MH_Cut [11:01:05]Write to MH i2c: D1 01 00 FC 06 01 D4 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 [11:01:05]MH_I2C_Read... [11:01:05]Read from MH i2c: D1 01 00 FC 06 00 D3 [11:01:05]Write to MH i2c: 01 00 00 FD 06 03 [11:01:05]Write i2c OK [11:01:05]MH_I2C_Read... [11:01:05]OFD Sender: No OFD packet to send [11:01:05]*** Cut start [11:01:05]*** Partial cut [11:01:05]*** CUTSNS_PIN = 1 [11:01:05]*** CUTSNS_PIN = 0 [11:01:06]*** Brake cut motor [11:01:06]Read from MH i2c: 01 [11:01:06]MH_I2C_Read... [11:01:06]*** Stop cut motor [11:01:06]*** Cut end [11:01:06]Read from MH i2c: 01 07 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: 01 07 00 FD 06 00 00 00 00 00 FF 0F 18 [11:01:06]process_action close_receipt done [11:01:06]requested_data is exist [11:01:06]produce_requested_data [11:01:06]requested_item fm.sn is exist - process it [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 11 00 00 [11:01:06]Write to MH i2c: E2 08 00 FE 06 80 11 00 00 00 00 00 00 7E [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 17 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 17 00 FE 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [11:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:01:06]wFMCommunicate OK [11:01:06]requested_item fd.num is exist - process it [11:01:06]SAM_PROTO_GetFieldsCounters [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 13 00 00 [11:01:06]Write to MH i2c: E2 08 00 FF 06 80 13 00 00 00 00 00 00 81 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 62 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 62 00 FF 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B6 01 00 0E 04 04 00 65 01 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 72 [11:01:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B6 01 00 0E 04 04 00 65 01 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 [11:01:06]wFMCommunicate OK [11:01:06]SAM_PROTO_GetFieldsCounters done [11:01:06]requested_item shift.num is exist - process it [11:01:06]requested_item shift.opened is exist - process it [11:01:06]req_shift_opened [11:01:06]FM_GetShiftState [11:01:06]SAM_PROTO_GetShiftState [11:01:06]wFMCommunicate request_size=4 [11:01:06]MH_SAM_APDU [11:01:06]CAPDU: 80 13 01 00 [11:01:06]Write to MH i2c: E2 08 00 00 07 80 13 01 00 00 00 00 00 84 [11:01:06]Write i2c OK [11:01:06]MH_I2C_Read... [11:01:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:01:06]Read from MH i2c: E2 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 0E 00 [11:01:06]MH_I2C_Read... [11:01:06]Read from MH i2c: E2 0E 00 00 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1C [11:01:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:01:06]wFMCommunicate OK [11:01:06]SAM_PROTO_GetShiftState done [11:01:06]FM_GetShiftState done [11:01:06]req_shift_opened done [11:01:06]requested_item shift.open_date is exist - process it [11:01:06]req_shift_open_date [11:01:06]req_shift_open_date done [11:01:06]produce_requested_data done [11:01:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112217,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:01:06]process_action_free close_receipt [11:01:06]json_value_free [11:01:06]json_value_free done [11:01:06]process_json_proto returns [11:01:06]Send response to host [11:01:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112217,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:01:06]free response buf [11:01:06]execute_script done [11:01:06]execute_script returns [11:01:06]free content buf [11:01:06]Sock 9.Close socket [11:01:06]Sock 9.Thread stoped [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03:52]accept exits with 10 [11:03:52]New connection [11:03:52]New thread 3067342180 created [11:03:52]Thread 3067198820 joined [11:03:52]Waiting for new connection... [11:03:52] Sock 10.Parse request [11:03:52]Sock 10.Check first char [11:03:52]Sock 10.First char is OK [11:03:52]request: POST /json_proto HTTP/1.0 [11:03:52]Method: POST [11:03:52]URL: /json_proto [11:03:52]Method is POST - this is cgi request [11:03:52]url: /json_proto [11:03:52]query_string will be loaded in cgi processing [11:03:52]execute_cgi json_proto POST (null) [11:03:52]execute_cgi path=json_proto method=POST [11:03:52]POST find Content-Length [11:03:52]Host: 172.17.96.197:8080 [11:03:52]Content-Length: 1160 [11:03:52]Content-Type: application/json [11:03:52] [11:03:52]POST finish read [11:03:52]Found Content-Length = 1160 [11:03: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48534\u000A14.04.2024 10:43\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 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3859414\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:52]execute_script... [11:03: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48534\u000A14.04.2024 10:43\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 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3859414\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:52]POST & json_proto [11:03:52]process_json_proto [11:03:52]json parsed OK: [11:03:52]protocol is kg_v1.0 [11:03:52]action value=print_text [11:03:52]process_action print_text [11:03:52]cmd_print_text [11:03:52]ExternCall_PrintAddStr [11:03:52]wPrintStart [11:03:52]Write to MH i2c: 01 00 00 01 07 08 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 01 07 00 00 00 00 00 FF 0F 1D [11:03:52]RasterBufferAndPrint [11:03:52]line *****ТОВАРНЫЙ ЧЕК***** [11:03:52]line АЗС 47 [11:03:52]line Партнер нефть [11:03:52]line 02508201610067 [11:03:52]line Кассир : Таалайбек к. П. [11:03:52]line Счет N : (1)48534 [11:03:52]line 14.04.2024 10:43 [11:03:52]line ПРОДАЖА [11:03:52]line ТРК (МРК, ГНК): 42 [11:03:52]line Вид ГСМ : 2710124130 [11:03:52]line Аи-92-К-5 [11:03:52]line 10.000 x 64.30 [11:03:52]line ИТОГ: 643.00 [11:03:52]line Тип оплаты: Талоны: Талоны [11:03:52]line 3859414 [11:03:52]line ______________________ [11:03:52]line (подпись) [11:03:52]written 0, free lines is 4095 [11:03:52]Write to MH i2c: 01 00 00 15 07 1C [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: 01 07 00 15 07 00 00 00 00 00 0C 0E 3D [11:03:52]RasterBufferAndPrint [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]line [11:03:52]written 0, free lines is 3598 [11:03:52]MH_Cut [11:03:52]Write to MH i2c: D1 01 00 1C 07 01 F5 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 01 00 [11:03:52]MH_I2C_Read... [11:03:52]Read from MH i2c: D1 01 00 1C 07 00 F4 [11:03:52]Write to MH i2c: 01 00 00 1D 07 24 [11:03:52]Write i2c OK [11:03:52]MH_I2C_Read... [11:03:52]*** Cut start [11:03:52]*** Partial cut [11:03:52]*** CUTSNS_PIN = 1 [11:03:53]*** CUTSNS_PIN = 0 [11:03:53]*** Brake cut motor [11:03:53]Read from MH i2c: 01 [11:03:53]MH_I2C_Read... [11:03:53]*** Stop cut motor [11:03:53]*** Cut end [11:03:53]Read from MH i2c: 01 07 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: 01 07 00 1D 07 00 00 00 00 00 FF 0F 39 [11:03:53]process_action print_text done [11:03:53]requested_data is exist [11:03:53]produce_requested_data [11:03:53]requested_item fm.sn is exist - process it [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 11 00 00 [11:03:53]Write to MH i2c: E2 08 00 1E 07 80 11 00 00 00 00 00 00 9F [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 17 00 1E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [11:03:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:03:53]wFMCommunicate OK [11:03:53]requested_item fd.num is exist - process it [11:03:53]SAM_PROTO_GetFieldsCounters [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 00 00 [11:03:53]Write to MH i2c: E2 08 00 1F 07 80 13 00 00 00 00 00 00 A2 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 62 00 1F 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B6 01 00 0E 04 04 00 65 01 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 93 [11:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B6 01 00 0E 04 04 00 65 01 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 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetFieldsCounters done [11:03:53]requested_item shift.num is exist - process it [11:03:53]requested_item shift.opened is exist - process it [11:03:53]req_shift_opened [11:03:53]FM_GetShiftState [11:03:53]SAM_PROTO_GetShiftState [11:03:53]wFMCommunicate request_size=4 [11:03:53]MH_SAM_APDU [11:03:53]CAPDU: 80 13 01 00 [11:03:53]Write to MH i2c: E2 08 00 20 07 80 13 01 00 00 00 00 00 A4 [11:03:53]Write i2c OK [11:03:53]MH_I2C_Read... [11:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:53]Read from MH i2c: E2 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 [11:03:53]MH_I2C_Read... [11:03:53]Read from MH i2c: E2 0E 00 20 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [11:03:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:03:53]wFMCommunicate OK [11:03:53]SAM_PROTO_GetShiftState done [11:03:53]FM_GetShiftState done [11:03:53]req_shift_opened done [11:03:53]requested_item shift.open_date is exist - process it [11:03:53]req_shift_open_date [11:03:53]req_shift_open_date done [11:03:53]produce_requested_data done [11:03:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112217,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:03:53]process_action_free print_text [11:03:53]json_value_free [11:03:53]json_value_free done [11:03:53]process_json_proto returns [11:03:53]Send response to host [11:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112217,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:03:53]free response buf [11:03:53]execute_script done [11:03:53]execute_script returns [11:03:53]free content buf [11:03:53]Sock 10.Close socket [11:03:53]Sock 10.Thread stoped [11:03:55]OFD Sender: No OFD packet to send [11:04:00]OFD Sender: No OFD packet to send [11:04:05]OFD Sender: No OFD packet to send [11:04:10]OFD Sender: No OFD packet to send [11:04:15]OFD Sender: No OFD packet to send [11:04:20]OFD Sender: No OFD packet to send [11:04:25]OFD Sender: No OFD packet to send [11:04:30]OFD Sender: No OFD packet to send [11:04:35]OFD Sender: No OFD packet to send [11:04:40]OFD Sender: No OFD packet to send [11:04:45]OFD Sender: No OFD packet to send [11:04:50]OFD Sender: No OFD packet to send [11:04:55]OFD Sender: No OFD packet to send [11:05:00]OFD Sender: No OFD packet to send [11:05:05]OFD Sender: No OFD packet to send [11:05:10]OFD Sender: No OFD packet to send [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:43]accept exits with 7 [11:05:43]New connection [11:05:43]New thread 3067198820 created [11:05:43]Thread 3067342180 joined [11:05:43]Waiting for new connection... [11:05:43] Sock 7.Parse request [11:05:43]Sock 7.Check first char [11:05:43]Sock 7.First char is OK [11:05:43]request: POST /json_proto HTTP/1.0 [11:05:43]Method: POST [11:05:43]URL: /json_proto [11:05:43]Method is POST - this is cgi request [11:05:43]url: /json_proto [11:05:43]query_string will be loaded in cgi processing [11:05:43]execute_cgi json_proto POST (null) [11:05:43]execute_cgi path=json_proto method=POST [11:05:43]POST find Content-Length [11:05:43]Host: 172.17.96.197:8080 [11:05:43]Content-Length: 684 [11:05:43]Content-Type: application/json [11:05:43] [11:05:43]POST finish read [11:05:43]Found Content-Length = 684 [11:05:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "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" ] } } [11:05:43]execute_script... [11:05: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)48533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "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" ] } } [11:05:43]POST & json_proto [11:05:43]process_json_proto [11:05:43]json parsed OK: [11:05:43]protocol is kg_v1.0 [11:05:43]action value=close_receipt [11:05:43]process_action close_receipt [11:05:43]cmd_close_receipt [11:05:43]MH_GetDate [11:05:43]Write to MH i2c: F0 00 00 21 07 17 [11:05:43]Write i2c OK [11:05:43]MH_I2C_Read... [11:05:43]Read from MH i2c: F0 [11:05:43]MH_I2C_Read... [11:05:43]Read from MH i2c: F0 09 00 [11:05:43]MH_I2C_Read... [11:05:43]Read from MH i2c: F0 09 00 21 07 00 87 B8 1B 66 E0 85 7F 64 28 [11:05:43]GetLastDocTimeStamp 1713092463 [11:05:43]current date 1713092743 [11:05:43]FM_GetShiftState [11:05:43]SAM_PROTO_GetShiftState [11:05:43]wFMCommunicate request_size=4 [11:05:43]MH_SAM_APDU [11:05:43]CAPDU: 80 13 01 00 [11:05:43]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [11:05:43]Write i2c OK [11:05:43]MH_I2C_Read... [11:05:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:43]Read from MH i2c: E2 [11:05:43]MH_I2C_Read... [11:05:43]Read from MH i2c: E2 0E 00 [11:05:43]MH_I2C_Read... [11:05:43]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3E [11:05:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:05:43]wFMCommunicate OK [11:05:43]SAM_PROTO_GetShiftState done [11:05:43]FM_GetShiftState done [11:05:43]opened in 1713054696 [11:05:43]opened+sec_in_day 1713141096 [11:05:43]quantity*price = 150027 [11:05:43]sum+1 = 150029 [11:05:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 117 14.04.2024 11:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112218 ФПД: 137593485277605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112218&fm=137593485277605&tin=02508201610067®Number=0000000000094237&sum=150000 [11:05:44]StoreToDocumentArchive [11:05:44]shift 357 fd 112218 [11:05:44]save to /storage/0357/doc_00112218 [11:05:44]save last doc name /storage/0357/doc_00112218 to /storage/kkm_last_doc_name [11:05:44]save OK [11:05:44]Clear old archive folders... [11:05:44]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:05:44]tlvbuf is 018359C0 [11:05:44]SAM_PROTO_ClearQueue [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 09 00 00 [11:05:44]Write to MH i2c: E2 08 00 2F 07 80 09 00 00 00 00 00 00 A8 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 2F 07 00 90 00 AA [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]SAM_PROTO_ClearQueue done [11:05:44]KKMCreateOFDPacket [11:05:44]OFDProtocolAddRootSTLVToBuf [11:05:44]FM_MakeSignedData [11:05:44]FM_MakeSignedData [11:05:44]SAM_PROTO_SignData [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 01 02 [11:05:44]Write to MH i2c: E2 08 00 30 07 80 0D 01 02 00 00 00 00 B0 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 30 07 00 90 00 AB [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=255 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 75 00 00 00 F4 03 04 00 87 B8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B6 01 00 35 04 06 00 7D 23 [11:05:44]Write to MH i2c: E2 02 01 31 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 75 00 00 00 F4 03 04 00 87 B8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B6 01 00 35 04 06 00 7D 23 00 00 E5 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=9 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 02 02 04 FA D0 39 A5 [11:05:44]Write to MH i2c: E2 0C 00 32 07 80 0D 02 02 04 00 FA D0 39 A5 00 00 63 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [11:05:44]RAPDU: 90 00 [11:05:44]wFMCommunicate OK [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 0D 03 02 [11:05:44]Write to MH i2c: E2 08 00 33 07 80 0D 03 02 00 00 00 00 B5 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0B 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 0B 00 33 07 00 C1 D3 A8 FC 09 28 91 0C 90 00 BC [11:05:44]RAPDU: C1 D3 A8 FC 09 28 91 0C 90 00 [11:05:44]wFMCommunicate OK [11:05:44]SAM_PROTO_SignData done [11:05:44]FM_MakeSignedData done [11:05:44]CreateOFDProtocolMessage [11:05:44]wFMCommunicate request_size=4 [11:05:44]MH_SAM_APDU [11:05:44]CAPDU: 80 11 00 00 [11:05:44]Write to MH i2c: E2 08 00 34 07 80 11 00 00 00 00 00 00 B5 [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:44]Read from MH i2c: E2 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 17 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: E2 17 00 34 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 06 [11:05:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:05:44]wFMCommunicate OK [11:05:44]CreateOFDProtocolMessage done [11:05:44]OFDSenderStorePacket 112218 [11:05:44]StoreOFDPacket docnum=112218 [11:05:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 49 B0 06 01 79 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 75 00 00 00 F4 03 04 00 87 B8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B6 01 00 35 04 06 00 7D 23 FA D0 39 A5 C1 D3 A8 FC 09 28 91 0C [11:05:44]CheckFolder [11:05:44]dirname=/storage/ofd_packets [11:05:44]CheckFolder done [11:05:44]ProducePacketName [11:05:44]name=ofd_packets/00112218 [11:05:44]NVStorageSaveData ofd_packets/00112218 [11:05:44]File name is /storage/ofd_packets/00112218 [11:05:44]Write 300 bytes [11:05:44]NVStorageSaveData done [11:05:44]OFDSenderStorePacket done [11:05:44]KKMCreateOFDPacket done [11:05:44]NVStorageSaveData kkm_last_timestamp [11:05:44]File name is /storage/kkm_last_timestamp [11:05:44]Write 4 bytes [11:05:44]NVStorageSaveData done [11:05:44]ExternCall_PrintAddStr [11:05:44]wPrintStart [11:05:44]Write to MH i2c: 01 00 00 35 07 3C [11:05:44]Write i2c OK [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 07 00 [11:05:44]MH_I2C_Read... [11:05:44]Read from MH i2c: 01 07 00 35 07 00 00 00 00 00 FF 0F 51 [11:05:44]RasterBufferAndPrint [11:05:44]line Счет N : (1)48533 [11:05:44]line ИНН: 02508201610067 [11:05:44]line Контрольно-Кассовый Чек [11:05:44]line ПРОДАЖА [11:05:44]line ТРК (МРК, ГНК) : 71 [11:05:44]line Товар: 2711190000 [11:05:44]line ГАЗ-К-5 [11:05:44]line 45.880 * 32.70 [11:05:44]line = 1500.28 [11:05:44]line НДС 12% НСП 1% [11:05:44]line > о реализуемом товаре [11:05:44]line ОКРУГЛЕНИЕ: -0.28 [11:05:44]line ИТОГО: 1500.00 [11:05:44]line Внесено: 1500.00 [11:05:44]line СДАЧА: 0.00 [11:05:44]line НСП 1% : 13.28 [11:05:44]line НДС 12% : 159.32 [11:05:44]line Наличными: 1500.00 [11:05:44]line Безнал.: 0.00 [11:05:44]line Место: АЗС № 47 "Партнер Нефть" [11:05:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:05:44]line СНО: Общий режим [11:05:44]line Чек 117 14.04.2024 11:05 [11:05:44]line Смена: 357 ФФД: 1.0 [11:05:44]line ЗНМ: 0300000138 [11:05:44]line РНМ: 0000000000094237 [11:05:44]line Версия ККМ: 001 [11:05:44]line ФМ: 0000000000875019 [11:05:44]line ФД: 112218 [11:05:44]line ФПД: 137593485277605 [11:05:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T110543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112218&fm=137593485277605&tin=02508201610067®Number=0000000000094237&sum=150000 [11:05:45]OFD Sender: Processing packet 112218 [packets to send 71, broken 70] [11:05:45]ProducePacketName [11:05:45]name=ofd_packets/00112218 [11:05:45]OFD Sender: To server: pG, [11:05:45]CommunicateWithHost lk.salyk.kg:30040 [11:05:45]ConnectInit lk.salyk.kg [11:05:45]written 0, free lines is 4095 [11:05:45]Connected sock=10 [11:05:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 49 B0 06 01 79 9E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 75 00 00 00 F4 03 04 00 87 B8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B6 01 00 35 04 06 00 7D 23 FA D0 39 A5 C1 D3 A8 FC 09 28 91 0C [11:05:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B4 26 47 00 02 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B6 01 00 F4 03 04 00 13 60 1B 66 B6 04 01 00 00 5A 75 76 8B 39 6A D8 A9 [11:05:45]CommunicateWithHost err = 0 [11:05:45]CheckOFDResponse [11:05:45]1017 (14) - 77093643461234 [11:05:45]1041 (16) - 0000000000875019 [11:05:45]1040 (4) - 112218 [11:05:45]1012 (4) - 14.04.2024 04:48 [11:05:45]1206 (1) - 0 [11:05:45]OFD Sender: Remove packet 112218 [11:05:45]ProducePacketName [11:05:45]name=ofd_packets/00112218 [11:05:45]NVStorageDeleteData [11:05:45]Write to MH i2c: 01 00 00 60 07 67 [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: 01 07 00 60 07 00 00 00 00 00 E4 0C 5E [11:05:45]RasterBufferAndPrint [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]line [11:05:45]written 0, free lines is 3306 [11:05:45]MH_Cut [11:05:45]Write to MH i2c: D1 01 00 67 07 01 40 [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 01 00 [11:05:45]MH_I2C_Read... [11:05:45]Read from MH i2c: D1 01 00 67 07 00 3F [11:05:45]Write to MH i2c: 01 00 00 68 07 6F [11:05:45]Write i2c OK [11:05:45]MH_I2C_Read... [11:05:46]OFD Sender: No OFD packet to send [11:05:46]*** Cut start [11:05:46]*** Partial cut [11:05:46]*** CUTSNS_PIN = 1 [11:05:46]*** CUTSNS_PIN = 0 [11:05:46]*** Brake cut motor [11:05:46]Read from MH i2c: 01 [11:05:46]MH_I2C_Read... [11:05:46]*** Stop cut motor [11:05:46]*** Cut end [11:05:46]Read from MH i2c: 01 07 00 [11:05:46]MH_I2C_Read... [11:05:46]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 FF 0F 84 [11:05:46]process_action close_receipt done [11:05:46]requested_data is exist [11:05:46]produce_requested_data [11:05:46]requested_item fm.sn is exist - process it [11:05:46]wFMCommunicate request_size=4 [11:05:46]MH_SAM_APDU [11:05:46]CAPDU: 80 11 00 00 [11:05:46]Write to MH i2c: E2 08 00 69 07 80 11 00 00 00 00 00 00 EA [11:05:46]Write i2c OK [11:05:46]MH_I2C_Read... [11:05:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:47]Read from MH i2c: E2 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 17 00 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 17 00 69 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3B [11:05:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:05:47]wFMCommunicate OK [11:05:47]requested_item fd.num is exist - process it [11:05:47]SAM_PROTO_GetFieldsCounters [11:05:47]wFMCommunicate request_size=4 [11:05:47]MH_SAM_APDU [11:05:47]CAPDU: 80 13 00 00 [11:05:47]Write to MH i2c: E2 08 00 6A 07 80 13 00 00 00 00 00 00 ED [11:05:47]Write i2c OK [11:05:47]MH_I2C_Read... [11:05:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:47]Read from MH i2c: E2 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 62 00 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 62 00 6A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5A B6 01 00 0E 04 04 00 65 01 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 E2 [11:05:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5A B6 01 00 0E 04 04 00 65 01 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 [11:05:47]wFMCommunicate OK [11:05:47]SAM_PROTO_GetFieldsCounters done [11:05:47]requested_item shift.num is exist - process it [11:05:47]requested_item shift.opened is exist - process it [11:05:47]req_shift_opened [11:05:47]FM_GetShiftState [11:05:47]SAM_PROTO_GetShiftState [11:05:47]wFMCommunicate request_size=4 [11:05:47]MH_SAM_APDU [11:05:47]CAPDU: 80 13 01 00 [11:05:47]Write to MH i2c: E2 08 00 6B 07 80 13 01 00 00 00 00 00 EF [11:05:47]Write i2c OK [11:05:47]MH_I2C_Read... [11:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:47]Read from MH i2c: E2 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 0E 00 [11:05:47]MH_I2C_Read... [11:05:47]Read from MH i2c: E2 0E 00 6B 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [11:05:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:05:47]wFMCommunicate OK [11:05:47]SAM_PROTO_GetShiftState done [11:05:47]FM_GetShiftState done [11:05:47]req_shift_opened done [11:05:47]requested_item shift.open_date is exist - process it [11:05:47]req_shift_open_date [11:05:47]req_shift_open_date done [11:05:47]produce_requested_data done [11:05:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112218,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:05:47]process_action_free close_receipt [11:05:47]json_value_free [11:05:47]json_value_free done [11:05:47]process_json_proto returns [11:05:47]Send response to host [11:05:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112218,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:05:47]free response buf [11:05:47]execute_script done [11:05:47]execute_script returns [11:05:47]free content buf [11:05:47]Sock 7.Close socket [11:05:47]Sock 7.Thread stoped [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:55]accept exits with 9 [11:11:55]New connection [11:11:55]New thread 3067342180 created [11:11:55]Thread 3067198820 joined [11:11:55]Waiting for new connection... [11:11:55] Sock 9.Parse request [11:11:55]Sock 9.Check first char [11:11:55]Sock 9.First char is OK [11:11:55]request: POST /json_proto HTTP/1.0 [11:11:55]Method: POST [11:11:55]URL: /json_proto [11:11:55]Method is POST - this is cgi request [11:11:55]url: /json_proto [11:11:55]query_string will be loaded in cgi processing [11:11:55]execute_cgi json_proto POST (null) [11:11:55]execute_cgi path=json_proto method=POST [11:11:55]POST find Content-Length [11:11:55]Host: 172.17.96.197:8080 [11:11:55]Content-Length: 676 [11:11:55]Content-Type: application/json [11:11:55] [11:11:55]POST finish read [11:11:55]Found Content-Length = 676 [11:11:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48535", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:11:55]execute_script... [11:11: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)48535", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:11:55]POST & json_proto [11:11:55]process_json_proto [11:11:55]json parsed OK: [11:11:55]protocol is kg_v1.0 [11:11:55]action value=close_receipt [11:11:55]process_action close_receipt [11:11:55]cmd_close_receipt [11:11:55]MH_GetDate [11:11:55]Write to MH i2c: F0 00 00 6C 07 62 [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 09 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: F0 09 00 6C 07 00 FB B9 1B 66 E0 85 7F 64 E8 [11:11:55]GetLastDocTimeStamp 1713092743 [11:11:55]current date 1713093115 [11:11:55]FM_GetShiftState [11:11:55]SAM_PROTO_GetShiftState [11:11:55]wFMCommunicate request_size=4 [11:11:55]MH_SAM_APDU [11:11:55]CAPDU: 80 13 01 00 [11:11:55]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [11:11:55]Write i2c OK [11:11:55]MH_I2C_Read... [11:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:55]Read from MH i2c: E2 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: E2 0E 00 [11:11:55]MH_I2C_Read... [11:11:55]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 89 [11:11:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:11:55]wFMCommunicate OK [11:11:55]SAM_PROTO_GetShiftState done [11:11:55]FM_GetShiftState done [11:11:55]opened in 1713054696 [11:11:55]opened+sec_in_day 1713141096 [11:11:55]quantity*price = 50025 [11:11:55]sum+1 = 50026 [11:11:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 118 14.04.2024 11:11 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112219 ФПД: 37068619727213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111155&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112219&fm=37068619727213&tin=02508201610067®Number=0000000000094237&sum=50000 [11:11:56]StoreToDocumentArchive [11:11:56]shift 357 fd 112219 [11:11:56]save to /storage/0357/doc_00112219 [11:11:56]save last doc name /storage/0357/doc_00112219 to /storage/kkm_last_doc_name [11:11:56]save OK [11:11:56]Clear old archive folders... [11:11:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:11:56]tlvbuf is 017E13C0 [11:11:56]SAM_PROTO_ClearQueue [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 09 00 00 [11:11:56]Write to MH i2c: E2 08 00 7A 07 80 09 00 00 00 00 00 00 F3 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 7A 07 00 90 00 F5 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_ClearQueue done [11:11:56]KKMCreateOFDPacket [11:11:56]OFDProtocolAddRootSTLVToBuf [11:11:56]FM_MakeSignedData [11:11:56]FM_MakeSignedData [11:11:56]SAM_PROTO_SignData [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 01 02 [11:11:56]Write to MH i2c: E2 08 00 7B 07 80 0D 01 02 00 00 00 00 FB [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 7B 07 00 90 00 F6 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=255 [11:11:56]MH_SAM_APDU [11:11: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 76 00 00 00 F4 03 04 00 FB B9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B6 01 00 35 04 06 00 21 [11:11:56]Write to MH i2c: E2 02 01 7C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 76 00 00 00 F4 03 04 00 FB B9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B6 01 00 35 04 06 00 21 00 00 E2 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]OFD Sender: No OFD packet to send [11:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=10 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 02 02 05 B6 B5 E9 41 6D [11:11:56]Write to MH i2c: E2 0D 00 7D 07 80 0D 02 02 05 00 B6 B5 E9 41 6D 00 00 0A [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [11:11:56]RAPDU: 90 00 [11:11:56]wFMCommunicate OK [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 0D 03 02 [11:11:56]Write to MH i2c: E2 08 00 7E 07 80 0D 03 02 00 00 00 00 00 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0B 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 0B 00 7E 07 00 73 8D 7D D1 2E 01 C1 BB 90 00 FA [11:11:56]RAPDU: 73 8D 7D D1 2E 01 C1 BB 90 00 [11:11:56]wFMCommunicate OK [11:11:56]SAM_PROTO_SignData done [11:11:56]FM_MakeSignedData done [11:11:56]CreateOFDProtocolMessage [11:11:56]wFMCommunicate request_size=4 [11:11:56]MH_SAM_APDU [11:11:56]CAPDU: 80 11 00 00 [11:11:56]Write to MH i2c: E2 08 00 7F 07 80 11 00 00 00 00 00 00 00 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:56]Read from MH i2c: E2 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 17 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: E2 17 00 7F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 51 [11:11:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:11:56]wFMCommunicate OK [11:11:56]CreateOFDProtocolMessage done [11:11:56]OFDSenderStorePacket 112219 [11:11:56]StoreOFDPacket docnum=112219 [11:11:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4D 19 07 01 AA 61 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 76 00 00 00 F4 03 04 00 FB B9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B6 01 00 35 04 06 00 21 B6 B5 E9 41 6D 73 8D 7D D1 2E 01 C1 BB [11:11:56]CheckFolder [11:11:56]dirname=/storage/ofd_packets [11:11:56]CheckFolder done [11:11:56]ProducePacketName [11:11:56]name=ofd_packets/00112219 [11:11:56]NVStorageSaveData ofd_packets/00112219 [11:11:56]File name is /storage/ofd_packets/00112219 [11:11:56]Write 301 bytes [11:11:56]NVStorageSaveData done [11:11:56]OFDSenderStorePacket done [11:11:56]KKMCreateOFDPacket done [11:11:56]NVStorageSaveData kkm_last_timestamp [11:11:56]File name is /storage/kkm_last_timestamp [11:11:56]Write 4 bytes [11:11:56]NVStorageSaveData done [11:11:56]ExternCall_PrintAddStr [11:11:56]wPrintStart [11:11:56]Write to MH i2c: 01 00 00 80 07 87 [11:11:56]Write i2c OK [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 07 00 [11:11:56]MH_I2C_Read... [11:11:56]Read from MH i2c: 01 07 00 80 07 00 00 00 00 00 FF 0F 9C [11:11:56]RasterBufferAndPrint [11:11:56]line Счет N : (1)48535 [11:11:56]line ИНН: 02508201610067 [11:11:56]line Контрольно-Кассовый Чек [11:11:56]line ПРОДАЖА [11:11:56]line ТРК (МРК, ГНК) : 32 [11:11:56]line Товар: 2710124130 [11:11:56]line Аи-92-К-5 [11:11:56]line 7.780 * 64.30 [11:11:56]line = 500.25 [11:11:56]line НДС 12% НСП 1% [11:11:56]line > о реализуемом товаре [11:11:56]line ОКРУГЛЕНИЕ: -0.25 [11:11:56]line ИТОГО: 500.00 [11:11:56]line Внесено: 500.00 [11:11:56]line СДАЧА: 0.00 [11:11:56]line НСП 1% : 4.43 [11:11:56]line НДС 12% : 53.12 [11:11:56]line Наличными: 500.00 [11:11:56]line Безнал.: 0.00 [11:11:56]line Место: АЗС № 47 "Партнер Нефть" [11:11:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:11:56]line СНО: Общий режим [11:11:56]line Чек 118 14.04.2024 11:11 [11:11:56]line Смена: 357 ФФД: 1.0 [11:11:56]line ЗНМ: 0300000138 [11:11:56]line РНМ: 0000000000094237 [11:11:56]line Версия ККМ: 001 [11:11:56]line ФМ: 0000000000875019 [11:11:56]line ФД: 112219 [11:11:56]line ФПД: 37068619727213 [11:11:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111155&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112219&fm=37068619727213&tin=02508201610067®Number=0000000000094237&sum=50000 [11:11:57]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:11:57]ProducePacketName [11:11:57]name=ofd_packets/00112219 [11:11:57]OFD Sender: To server: pG, [11:11:57]CommunicateWithHost lk.salyk.kg:30040 [11:11:57]ConnectInit lk.salyk.kg [11:11:57]written 0, free lines is 4095 [11:11:57]Write to MH i2c: 01 00 00 AB 07 B2 [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 07 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 D4 0C 99 [11:11:57]RasterBufferAndPrint [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]line [11:11:57]written 0, free lines is 3292 [11:11:57]MH_Cut [11:11:57]Write to MH i2c: D1 01 00 B2 07 01 8B [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 01 00 [11:11:57]MH_I2C_Read... [11:11:57]Read from MH i2c: D1 01 00 B2 07 00 8A [11:11:57]Write to MH i2c: 01 00 00 B3 07 BA [11:11:57]Write i2c OK [11:11:57]MH_I2C_Read... [11:11:58]*** Cut start [11:11:58]*** Partial cut [11:11:58]*** CUTSNS_PIN = 1 [11:11:58]*** CUTSNS_PIN = 0 [11:11:58]*** Brake cut motor [11:11:58]Read from MH i2c: 01 [11:11:59]MH_I2C_Read... [11:11:59]*** Stop cut motor [11:11:59]*** Cut end [11:11:59]Read from MH i2c: 01 07 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: 01 07 00 B3 07 00 00 00 00 00 FF 0F CF [11:11:59]process_action close_receipt done [11:11:59]requested_data is exist [11:11:59]produce_requested_data [11:11:59]requested_item fm.sn is exist - process it [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 11 00 00 [11:11:59]Write to MH i2c: E2 08 00 B4 07 80 11 00 00 00 00 00 00 35 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 17 00 B4 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 86 [11:11:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:11:59]wFMCommunicate OK [11:11:59]requested_item fd.num is exist - process it [11:11:59]SAM_PROTO_GetFieldsCounters [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 00 00 [11:11:59]Write to MH i2c: E2 08 00 B5 07 80 13 00 00 00 00 00 00 38 [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 62 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 62 00 B5 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5B B6 01 00 0E 04 04 00 65 01 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 31 [11:11:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5B B6 01 00 0E 04 04 00 65 01 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 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetFieldsCounters done [11:11:59]requested_item shift.num is exist - process it [11:11:59]requested_item shift.opened is exist - process it [11:11:59]req_shift_opened [11:11:59]FM_GetShiftState [11:11:59]SAM_PROTO_GetShiftState [11:11:59]wFMCommunicate request_size=4 [11:11:59]MH_SAM_APDU [11:11:59]CAPDU: 80 13 01 00 [11:11:59]Write to MH i2c: E2 08 00 B6 07 80 13 01 00 00 00 00 00 3A [11:11:59]Write i2c OK [11:11:59]MH_I2C_Read... [11:11:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:59]Read from MH i2c: E2 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 [11:11:59]MH_I2C_Read... [11:11:59]Read from MH i2c: E2 0E 00 B6 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D2 [11:11:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:11:59]wFMCommunicate OK [11:11:59]SAM_PROTO_GetShiftState done [11:11:59]FM_GetShiftState done [11:11:59]req_shift_opened done [11:11:59]requested_item shift.open_date is exist - process it [11:11:59]req_shift_open_date [11:11:59]req_shift_open_date done [11:11:59]produce_requested_data done [11:11:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112219,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:11:59]process_action_free close_receipt [11:11:59]json_value_free [11:11:59]json_value_free done [11:11:59]process_json_proto returns [11:11:59]Send response to host [11:11:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112219,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:11:59]free response buf [11:11:59]execute_script done [11:11:59]execute_script returns [11:11:59]free content buf [11:11:59]Sock 9.Close socket [11:11:59]Sock 9.Thread stoped [11:12:02]ConnectInit Can't take IP for lk.salyk.kg [11:12:02]CommunicateWithHost connect error [11:12:02]CommunicateWithHost err = -1 [11:12:02]OFD Sender: Server communicate error [11:12:07]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:07]ProducePacketName [11:12:07]name=ofd_packets/00112219 [11:12:07]OFD Sender: To server: pG, [11:12:07]CommunicateWithHost lk.salyk.kg:30040 [11:12:07]ConnectInit lk.salyk.kg [11:12:12]ConnectInit Can't take IP for lk.salyk.kg [11:12:12]CommunicateWithHost connect error [11:12:12]CommunicateWithHost err = -1 [11:12:12]OFD Sender: Server communicate error [11:12:17]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:17]ProducePacketName [11:12:17]name=ofd_packets/00112219 [11:12:17]OFD Sender: To server: pG, [11:12:17]CommunicateWithHost lk.salyk.kg:30040 [11:12:17]ConnectInit lk.salyk.kg [11:12:22]ConnectInit Can't take IP for lk.salyk.kg [11:12:22]CommunicateWithHost connect error [11:12:22]CommunicateWithHost err = -1 [11:12:22]OFD Sender: Server communicate error [11:12:27]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:27]ProducePacketName [11:12:27]name=ofd_packets/00112219 [11:12:27]OFD Sender: To server: pG, [11:12:27]CommunicateWithHost lk.salyk.kg:30040 [11:12:27]ConnectInit lk.salyk.kg [11:12:32]ConnectInit Can't take IP for lk.salyk.kg [11:12:32]CommunicateWithHost connect error [11:12:32]CommunicateWithHost err = -1 [11:12:32]OFD Sender: Server communicate error [11:12:37]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:37]ProducePacketName [11:12:37]name=ofd_packets/00112219 [11:12:37]OFD Sender: To server: pG, [11:12:37]CommunicateWithHost lk.salyk.kg:30040 [11:12:37]ConnectInit lk.salyk.kg [11:12:42]ConnectInit Can't take IP for lk.salyk.kg [11:12:42]CommunicateWithHost connect error [11:12:42]CommunicateWithHost err = -1 [11:12:42]OFD Sender: Server communicate error [11:12:47]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:47]ProducePacketName [11:12:47]name=ofd_packets/00112219 [11:12:47]OFD Sender: To server: pG, [11:12:47]CommunicateWithHost lk.salyk.kg:30040 [11:12:47]ConnectInit lk.salyk.kg [11:12:52]ConnectInit Can't take IP for lk.salyk.kg [11:12:52]CommunicateWithHost connect error [11:12:52]CommunicateWithHost err = -1 [11:12:52]OFD Sender: Server communicate error [11:12:57]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:12:57]ProducePacketName [11:12:57]name=ofd_packets/00112219 [11:12:57]OFD Sender: To server: pG, [11:12:57]CommunicateWithHost lk.salyk.kg:30040 [11:12:57]ConnectInit lk.salyk.kg [11:13:02]ConnectInit Can't take IP for lk.salyk.kg [11:13:02]CommunicateWithHost connect error [11:13:02]CommunicateWithHost err = -1 [11:13:02]OFD Sender: Server communicate error [11:13:07]OFD Sender: Processing packet 112219 [packets to send 71, broken 70] [11:13:07]ProducePacketName [11:13:07]name=ofd_packets/00112219 [11:13:07]OFD Sender: To server: pG, [11:13:07]CommunicateWithHost lk.salyk.kg:30040 [11:13:07]ConnectInit lk.salyk.kg [11:13:11]accept exits with 10 [11:13:11]New connection [11:13:11]New thread 3067198820 created [11:13:11]Thread 3067342180 joined [11:13:11]Waiting for new connection... [11:13:11] Sock 10.Parse request [11:13:11]Sock 10.Check first char [11:13:11]Sock 10.First char is OK [11:13:11]request: POST /json_proto HTTP/1.0 [11:13:11]Method: POST [11:13:11]URL: /json_proto [11:13:11]Method is POST - this is cgi request [11:13:11]url: /json_proto [11:13:11]query_string will be loaded in cgi processing [11:13:11]execute_cgi json_proto POST (null) [11:13:11]execute_cgi path=json_proto method=POST [11:13:11]POST find Content-Length [11:13:11]Host: 172.17.96.197:8080 [11:13:11]Content-Length: 681 [11:13:11]Content-Type: application/json [11:13:11] [11:13:11]POST finish read [11:13:11]Found Content-Length = 681 [11:13:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:11]execute_script... [11:13: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)48536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 18.670, "sum" : 1200.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:11]POST & json_proto [11:13:11]process_json_proto [11:13:11]json parsed OK: [11:13:11]protocol is kg_v1.0 [11:13:11]action value=close_receipt [11:13:11]process_action close_receipt [11:13:11]cmd_close_receipt [11:13:11]MH_GetDate [11:13:11]Write to MH i2c: F0 00 00 B7 07 AD [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 09 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: F0 09 00 B7 07 00 47 BA 1B 66 E0 85 7F 64 80 [11:13:11]GetLastDocTimeStamp 1713093115 [11:13:11]current date 1713093191 [11:13:11]FM_GetShiftState [11:13:11]SAM_PROTO_GetShiftState [11:13:11]wFMCommunicate request_size=4 [11:13:11]MH_SAM_APDU [11:13:11]CAPDU: 80 13 01 00 [11:13:11]Write to MH i2c: E2 08 00 B8 07 80 13 01 00 00 00 00 00 3C [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:11]Read from MH i2c: E2 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0E 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: E2 0E 00 B8 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D4 [11:13:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:13:11]wFMCommunicate OK [11:13:11]SAM_PROTO_GetShiftState done [11:13:11]FM_GetShiftState done [11:13:11]opened in 1713054696 [11:13:11]opened+sec_in_day 1713141096 [11:13:11]quantity*price = 120048 [11:13:11]sum+1 = 120049 [11:13:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 119 14.04.2024 11:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112220 ФПД: 161820974975766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111311&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112220&fm=161820974975766&tin=02508201610067®Number=0000000000094237&sum=120000 [11:13:12]StoreToDocumentArchive [11:13:12]shift 357 fd 112220 [11:13:12]save to /storage/0357/doc_00112220 [11:13:12]save last doc name /storage/0357/doc_00112220 to /storage/kkm_last_doc_name [11:13:12]save OK [11:13:12]Clear old archive folders... [11:13:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:13:12]tlvbuf is 0177F4B0 [11:13:12]SAM_PROTO_ClearQueue [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 09 00 00 [11:13:12]Write to MH i2c: E2 08 00 C5 07 80 09 00 00 00 00 00 00 3E [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 C5 07 00 90 00 40 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_ClearQueue done [11:13:12]KKMCreateOFDPacket [11:13:12]OFDProtocolAddRootSTLVToBuf [11:13:12]FM_MakeSignedData [11:13:12]FM_MakeSignedData [11:13:12]SAM_PROTO_SignData [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 01 02 [11:13:12]Write to MH i2c: E2 08 00 C6 07 80 0D 01 02 00 00 00 00 46 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=255 [11:13:12]MH_SAM_APDU [11:13: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 47 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B6 01 00 35 04 06 00 93 [11:13:12]Write to MH i2c: E2 02 01 C7 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 47 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B6 01 00 35 04 06 00 93 00 00 D6 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=10 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 02 02 05 2C E1 BB 0B 16 [11:13:12]Write to MH i2c: E2 0D 00 C8 07 80 0D 02 02 05 00 2C E1 BB 0B 16 00 00 3C [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [11:13:12]RAPDU: 90 00 [11:13:12]wFMCommunicate OK [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 0D 03 02 [11:13:12]Write to MH i2c: E2 08 00 C9 07 80 0D 03 02 00 00 00 00 4B [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0B 00 C9 07 00 F7 86 D1 71 ED BA 8E 5F 90 00 9F [11:13:12]RAPDU: F7 86 D1 71 ED BA 8E 5F 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_SignData done [11:13:12]FM_MakeSignedData done [11:13:12]CreateOFDProtocolMessage [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 11 00 00 [11:13:12]Write to MH i2c: E2 08 00 CA 07 80 11 00 00 00 00 00 00 4B [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 CA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9C [11:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:13:12]wFMCommunicate OK [11:13:12]CreateOFDProtocolMessage done [11:13:12]OFDSenderStorePacket 112220 [11:13:12]StoreOFDPacket docnum=112220 [11:13:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B0 D4 07 01 1C 22 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 47 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B6 01 00 35 04 06 00 93 2C E1 BB 0B 16 F7 86 D1 71 ED BA 8E 5F [11:13:12]CheckFolder [11:13:12]dirname=/storage/ofd_packets [11:13:12]CheckFolder done [11:13:12]ProducePacketName [11:13:12]name=ofd_packets/00112220 [11:13:12]NVStorageSaveData ofd_packets/00112220 [11:13:12]File name is /storage/ofd_packets/00112220 [11:13:12]Write 301 bytes [11:13:12]NVStorageSaveData done [11:13:12]OFDSenderStorePacket done [11:13:12]KKMCreateOFDPacket done [11:13:12]NVStorageSaveData kkm_last_timestamp [11:13:12]File name is /storage/kkm_last_timestamp [11:13:12]Write 4 bytes [11:13:12]NVStorageSaveData done [11:13:12]ExternCall_PrintAddStr [11:13:12]wPrintStart [11:13:12]Write to MH i2c: 01 00 00 CB 07 D2 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 CB 07 00 00 00 00 00 FF 0F E7 [11:13:13]RasterBufferAndPrint [11:13:13]line Счет N : (1)48536 [11:13:13]line ИНН: 02508201610067 [11:13:13]line Контрольно-Кассовый Чек [11:13:13]line ПРОДАЖА [11:13:13]line ТРК (МРК, ГНК) : 11 [11:13:13]line Товар: 2710124130 [11:13:13]line Аи-92-К-5 [11:13:13]line 18.670 * 64.30 [11:13:13]line = 1200.48 [11:13:13]line НДС 12% НСП 1% [11:13:13]line > о реализуемом товаре [11:13:13]line ОКРУГЛЕНИЕ: -0.48 [11:13:13]line ИТОГО: 1200.00 [11:13:13]line Внесено: 1200.00 [11:13:13]line СДАЧА: 0.00 [11:13:13]line НСП 1% : 10.62 [11:13:13]line НДС 12% : 127.48 [11:13:13]line Наличными: 1200.00 [11:13:13]line Безнал.: 0.00 [11:13:13]line Место: АЗС № 47 "Партнер Нефть" [11:13:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:13:13]line СНО: Общий режим [11:13:13]line Чек 119 14.04.2024 11:13 [11:13:13]line Смена: 357 ФФД: 1.0 [11:13:13]line ЗНМ: 0300000138 [11:13:13]line РНМ: 0000000000094237 [11:13:13]line Версия ККМ: 001 [11:13:13]line ФМ: 0000000000875019 [11:13:13]line ФД: 112220 [11:13:13]line ФПД: 161820974975766 [11:13:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111311&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112220&fm=161820974975766&tin=02508201610067®Number=0000000000094237&sum=120000 [11:13:13]OFD Sender: Processing packet 112219 [packets to send 72, broken 70] [11:13:13]ProducePacketName [11:13:13]name=ofd_packets/00112219 [11:13:13]OFD Sender: To server: pG, [11:13:13]CommunicateWithHost lk.salyk.kg:30040 [11:13:13]ConnectInit lk.salyk.kg [11:13:13]written 0, free lines is 4095 [11:13:13]Write to MH i2c: 01 00 00 F6 07 FD [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 E1 0C F1 [11:13:13]RasterBufferAndPrint [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]line [11:13:13]written 0, free lines is 3312 [11:13:13]MH_Cut [11:13:13]Write to MH i2c: D1 01 00 FD 07 01 D6 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 [11:13:13]MH_I2C_Read... [11:13:13]Read from MH i2c: D1 01 00 FD 07 00 D5 [11:13:13]Write to MH i2c: 01 00 00 FE 07 05 [11:13:13]Write i2c OK [11:13:13]MH_I2C_Read... [11:13:14]*** Cut start [11:13:14]*** Partial cut [11:13:14]*** CUTSNS_PIN = 1 [11:13:14]*** CUTSNS_PIN = 0 [11:13:14]*** Brake cut motor [11:13:14]Read from MH i2c: 01 [11:13:14]MH_I2C_Read... [11:13:14]*** Stop cut motor [11:13:14]*** Cut end [11:13:14]Read from MH i2c: 01 07 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 FF 0F 1A [11:13:14]process_action close_receipt done [11:13:14]requested_data is exist [11:13:14]produce_requested_data [11:13:14]requested_item fm.sn is exist - process it [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 11 00 00 [11:13:14]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:14]Read from MH i2c: E2 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 [11:13:14]MH_I2C_Read... [11:13:14]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D1 [11:13:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:13:14]wFMCommunicate OK [11:13:14]requested_item fd.num is exist - process it [11:13:14]SAM_PROTO_GetFieldsCounters [11:13:14]wFMCommunicate request_size=4 [11:13:14]MH_SAM_APDU [11:13:14]CAPDU: 80 13 00 00 [11:13:14]Write to MH i2c: E2 08 00 00 08 80 13 00 00 00 00 00 00 84 [11:13:14]Write i2c OK [11:13:14]MH_I2C_Read... [11:13:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:15]Read from MH i2c: E2 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 62 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 62 00 00 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5C B6 01 00 0E 04 04 00 65 01 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 81 [11:13:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5C B6 01 00 0E 04 04 00 65 01 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 [11:13:15]wFMCommunicate OK [11:13:15]SAM_PROTO_GetFieldsCounters done [11:13:15]requested_item shift.num is exist - process it [11:13:15]requested_item shift.opened is exist - process it [11:13:15]req_shift_opened [11:13:15]FM_GetShiftState [11:13:15]SAM_PROTO_GetShiftState [11:13:15]wFMCommunicate request_size=4 [11:13:15]MH_SAM_APDU [11:13:15]CAPDU: 80 13 01 00 [11:13:15]Write to MH i2c: E2 08 00 01 08 80 13 01 00 00 00 00 00 86 [11:13:15]Write i2c OK [11:13:15]MH_I2C_Read... [11:13:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:15]Read from MH i2c: E2 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 0E 00 [11:13:15]MH_I2C_Read... [11:13:15]Read from MH i2c: E2 0E 00 01 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1E [11:13:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:13:15]wFMCommunicate OK [11:13:15]SAM_PROTO_GetShiftState done [11:13:15]FM_GetShiftState done [11:13:15]req_shift_opened done [11:13:15]requested_item shift.open_date is exist - process it [11:13:15]req_shift_open_date [11:13:15]req_shift_open_date done [11:13:15]produce_requested_data done [11:13:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112220,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:13:15]process_action_free close_receipt [11:13:15]json_value_free [11:13:15]json_value_free done [11:13:15]process_json_proto returns [11:13:15]Send response to host [11:13:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112220,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:13:15]free response buf [11:13:15]execute_script done [11:13:15]execute_script returns [11:13:15]free content buf [11:13:15]Sock 10.Close socket [11:13:15]Sock 10.Thread stoped [11:13:18]ConnectInit Can't take IP for lk.salyk.kg [11:13:18]CommunicateWithHost connect error [11:13:18]CommunicateWithHost err = -1 [11:13:18]OFD Sender: Server communicate error [11:13:23]OFD Sender: Processing packet 112219 [packets to send 72, broken 70] [11:13:23]ProducePacketName [11:13:23]name=ofd_packets/00112219 [11:13:23]OFD Sender: To server: pG, [11:13:23]CommunicateWithHost lk.salyk.kg:30040 [11:13:23]ConnectInit lk.salyk.kg [11:13:28]ConnectInit Can't take IP for lk.salyk.kg [11:13:28]CommunicateWithHost connect error [11:13:28]CommunicateWithHost err = -1 [11:13:28]OFD Sender: Server communicate error [11:13:33]OFD Sender: Processing packet 112219 [packets to send 72, broken 70] [11:13:33]ProducePacketName [11:13:33]name=ofd_packets/00112219 [11:13:33]OFD Sender: To server: pG, [11:13:33]CommunicateWithHost lk.salyk.kg:30040 [11:13:33]ConnectInit lk.salyk.kg [11:13:38]ConnectInit Can't take IP for lk.salyk.kg [11:13:38]CommunicateWithHost connect error [11:13:38]CommunicateWithHost err = -1 [11:13:38]OFD Sender: Server communicate error [11:13:43]OFD Sender: Processing packet 112219 [packets to send 72, broken 70] [11:13:43]ProducePacketName [11:13:43]name=ofd_packets/00112219 [11:13:43]OFD Sender: To server: pG, [11:13:43]CommunicateWithHost lk.salyk.kg:30040 [11:13:43]ConnectInit lk.salyk.kg [11:13:48]ConnectInit Can't take IP for lk.salyk.kg [11:13:48]CommunicateWithHost connect error [11:13:48]CommunicateWithHost err = -1 [11:13:48]OFD Sender: Server communicate error [11:13:53]OFD Sender: Processing packet 112219 [packets to send 72, broken 70] [11:13:53]ProducePacketName [11:13:53]name=ofd_packets/00112219 [11:13:53]OFD Sender: To server: pG, [11:13:53]CommunicateWithHost lk.salyk.kg:30040 [11:13:53]ConnectInit lk.salyk.kg [11:13:53]Connected sock=9 [11:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4D 19 07 01 AA 61 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 76 00 00 00 F4 03 04 00 FB B9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B6 01 00 35 04 06 00 21 B6 B5 E9 41 6D 73 8D 7D D1 2E 01 C1 BB [11:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9C 1F 47 00 98 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B6 01 00 F4 03 04 00 FB 61 1B 66 B6 04 01 00 00 4D 1B 11 29 D0 02 28 EF [11:13:53]CommunicateWithHost err = 0 [11:13:53]CheckOFDResponse [11:13:53]1017 (14) - 77093643461234 [11:13:53]1041 (16) - 0000000000875019 [11:13:53]1040 (4) - 112219 [11:13:53]1012 (4) - 14.04.2024 04:56 [11:13:53]1206 (1) - 0 [11:13:53]OFD Sender: Remove packet 112219 [11:13:53]ProducePacketName [11:13:53]name=ofd_packets/00112219 [11:13:53]NVStorageDeleteData [11:13:54]OFD Sender: Processing packet 112220 [packets to send 71, broken 70] [11:13:54]ProducePacketName [11:13:54]name=ofd_packets/00112220 [11:13:54]OFD Sender: To server: pG, [11:13:54]CommunicateWithHost lk.salyk.kg:30040 [11:13:54]ConnectInit lk.salyk.kg [11:13:54]Connected sock=9 [11:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B0 D4 07 01 1C 22 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 EE 48 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F0 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 47 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B6 01 00 35 04 06 00 93 2C E1 BB 0B 16 F7 86 D1 71 ED BA 8E 5F [11:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 44 D5 47 00 2C 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B6 01 00 F4 03 04 00 FC 61 1B 66 B6 04 01 00 00 E6 2B BF 5D D9 B8 7F BC [11:13:54]CommunicateWithHost err = 0 [11:13:54]CheckOFDResponse [11:13:54]1017 (14) - 77093643461234 [11:13:54]1041 (16) - 0000000000875019 [11:13:54]1040 (4) - 112220 [11:13:54]1012 (4) - 14.04.2024 04:56 [11:13:54]1206 (1) - 0 [11:13:54]OFD Sender: Remove packet 112220 [11:13:54]ProducePacketName [11:13:54]name=ofd_packets/00112220 [11:13:54]NVStorageDeleteData [11:13:55]OFD Sender: No OFD packet to send [11:14:00]OFD Sender: No OFD packet to send [11:14:03]ConnectInit Can't connect to host [11:14:05]OFD Sender: No OFD packet to send [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:41]accept exits with 12 [11:14:41]New connection [11:14:41]New thread 3067342180 created [11:14:41]Thread 3067198820 joined [11:14:41]Waiting for new connection... [11:14:41] Sock 12.Parse request [11:14:41]Sock 12.Check first char [11:14:41]Sock 12.First char is OK [11:14:41]request: POST /json_proto HTTP/1.0 [11:14:41]Method: POST [11:14:41]URL: /json_proto [11:14:41]Method is POST - this is cgi request [11:14:41]url: /json_proto [11:14:41]query_string will be loaded in cgi processing [11:14:41]execute_cgi json_proto POST (null) [11:14:41]execute_cgi path=json_proto method=POST [11:14:41]POST find Content-Length [11:14:41]Host: 172.17.96.197:8080 [11:14:41]Content-Length: 676 [11:14:41]Content-Type: application/json [11:14:41] [11:14:41]POST finish read [11:14:41]Found Content-Length = 676 [11:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "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:14:41]execute_script... [11:14: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)48537", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "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:14:41]POST & json_proto [11:14:41]process_json_proto [11:14:41]json parsed OK: [11:14:41]protocol is kg_v1.0 [11:14:41]action value=close_receipt [11:14:41]process_action close_receipt [11:14:41]cmd_close_receipt [11:14:41]MH_GetDate [11:14:41]Write to MH i2c: F0 00 00 02 08 F9 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: F0 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: F0 09 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: F0 09 00 02 08 00 A2 BA 1B 66 E0 85 7F 64 27 [11:14:41]GetLastDocTimeStamp 1713093191 [11:14:41]current date 1713093282 [11:14:41]FM_GetShiftState [11:14:41]SAM_PROTO_GetShiftState [11:14:41]wFMCommunicate request_size=4 [11:14:41]MH_SAM_APDU [11:14:41]CAPDU: 80 13 01 00 [11:14:41]Write to MH i2c: E2 08 00 03 08 80 13 01 00 00 00 00 00 88 [11:14:41]Write i2c OK [11:14:41]MH_I2C_Read... [11:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:41]Read from MH i2c: E2 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 0E 00 [11:14:41]MH_I2C_Read... [11:14:41]Read from MH i2c: E2 0E 00 03 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 20 [11:14:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:14:41]wFMCommunicate OK [11:14:41]SAM_PROTO_GetShiftState done [11:14:41]FM_GetShiftState done [11:14:41]opened in 1713054696 [11:14:41]opened+sec_in_day 1713141096 [11:14:41]quantity*price = 50025 [11:14:41]sum+1 = 50026 [11:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 120 14.04.2024 11:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112221 ФПД: 185943841078862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112221&fm=185943841078862&tin=02508201610067®Number=0000000000094237&sum=50000 [11:14:42]StoreToDocumentArchive [11:14:42]shift 357 fd 112221 [11:14:42]save to /storage/0357/doc_00112221 [11:14:42]save last doc name /storage/0357/doc_00112221 to /storage/kkm_last_doc_name [11:14:42]save OK [11:14:42]Clear old archive folders... [11:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:42]tlvbuf is 017809F0 [11:14:42]SAM_PROTO_ClearQueue [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 09 00 00 [11:14:42]Write to MH i2c: E2 08 00 10 08 80 09 00 00 00 00 00 00 8A [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]SAM_PROTO_ClearQueue done [11:14:42]KKMCreateOFDPacket [11:14:42]OFDProtocolAddRootSTLVToBuf [11:14:42]FM_MakeSignedData [11:14:42]FM_MakeSignedData [11:14:42]SAM_PROTO_SignData [11:14:42]wFMCommunicate request_size=4 [11:14:42]MH_SAM_APDU [11:14:42]CAPDU: 80 0D 01 02 [11:14:42]Write to MH i2c: E2 08 00 11 08 80 0D 01 02 00 00 00 00 92 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:42]Read from MH i2c: E2 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 [11:14:42]MH_I2C_Read... [11:14:42]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [11:14:42]RAPDU: 90 00 [11:14:42]wFMCommunicate OK [11:14:42]wFMCommunicate request_size=255 [11:14:42]MH_SAM_APDU [11:14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 78 00 00 00 F4 03 04 00 A2 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B6 01 00 35 04 06 00 A9 [11:14:42]Write to MH i2c: E2 02 01 12 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 78 00 00 00 F4 03 04 00 A2 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B6 01 00 35 04 06 00 A9 00 00 74 [11:14:42]Write i2c OK [11:14:42]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 03 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [11:14:43]RAPDU: 90 00 [11:14:43]wFMCommunicate OK [11:14:43]wFMCommunicate request_size=10 [11:14:43]MH_SAM_APDU [11:14:43]CAPDU: 80 0D 02 02 05 1D 6C 98 7E 4E [11:14:43]Write to MH i2c: E2 0D 00 13 08 80 0D 02 02 05 00 1D 6C 98 7E 4E 00 00 8C [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 03 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [11:14:43]RAPDU: 90 00 [11:14:43]wFMCommunicate OK [11:14:43]wFMCommunicate request_size=4 [11:14:43]MH_SAM_APDU [11:14:43]CAPDU: 80 0D 03 02 [11:14:43]Write to MH i2c: E2 08 00 14 08 80 0D 03 02 00 00 00 00 97 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 0B 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 0B 00 14 08 00 C5 03 88 C8 3C 17 5A AE 90 00 0B [11:14:43]RAPDU: C5 03 88 C8 3C 17 5A AE 90 00 [11:14:43]wFMCommunicate OK [11:14:43]SAM_PROTO_SignData done [11:14:43]FM_MakeSignedData done [11:14:43]CreateOFDProtocolMessage [11:14:43]wFMCommunicate request_size=4 [11:14:43]MH_SAM_APDU [11:14:43]CAPDU: 80 11 00 00 [11:14:43]Write to MH i2c: E2 08 00 15 08 80 11 00 00 00 00 00 00 97 [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:43]Read from MH i2c: E2 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 17 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: E2 17 00 15 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [11:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:14:43]wFMCommunicate OK [11:14:43]CreateOFDProtocolMessage done [11:14:43]OFDSenderStorePacket 112221 [11:14:43]StoreOFDPacket docnum=112221 [11:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 74 07 01 50 96 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 78 00 00 00 F4 03 04 00 A2 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B6 01 00 35 04 06 00 A9 1D 6C 98 7E 4E C5 03 88 C8 3C 17 5A AE [11:14:43]CheckFolder [11:14:43]dirname=/storage/ofd_packets [11:14:43]CheckFolder done [11:14:43]ProducePacketName [11:14:43]name=ofd_packets/00112221 [11:14:43]NVStorageSaveData ofd_packets/00112221 [11:14:43]File name is /storage/ofd_packets/00112221 [11:14:43]Write 301 bytes [11:14:43]NVStorageSaveData done [11:14:43]OFDSenderStorePacket done [11:14:43]KKMCreateOFDPacket done [11:14:43]NVStorageSaveData kkm_last_timestamp [11:14:43]File name is /storage/kkm_last_timestamp [11:14:43]Write 4 bytes [11:14:43]NVStorageSaveData done [11:14:43]ExternCall_PrintAddStr [11:14:43]wPrintStart [11:14:43]Write to MH i2c: 01 00 00 16 08 1E [11:14:43]Write i2c OK [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 [11:14:43]MH_I2C_Read... [11:14:43]Read from MH i2c: 01 07 00 16 08 00 00 00 00 00 FF 0F 33 [11:14:43]RasterBufferAndPrint [11:14:43]line Счет N : (1)48537 [11:14:43]line ИНН: 02508201610067 [11:14:43]line Контрольно-Кассовый Чек [11:14:43]line ПРОДАЖА [11:14:43]line ТРК (МРК, ГНК) : 22 [11:14:43]line Товар: 2710124500 [11:14:43]line Аи-95-К-5 [11:14:43]line 6.900 * 72.50 [11:14:43]line = 500.25 [11:14:43]line НДС 12% НСП 1% [11:14:43]line > о реализуемом товаре [11:14:43]line ОКРУГЛЕНИЕ: -0.25 [11:14:43]line ИТОГО: 500.00 [11:14:43]line Внесено: 500.00 [11:14:43]line СДАЧА: 0.00 [11:14:43]line НСП 1% : 4.43 [11:14:43]line НДС 12% : 53.12 [11:14:43]line Наличными: 500.00 [11:14:43]line Безнал.: 0.00 [11:14:43]line Место: АЗС № 47 "Партнер Нефть" [11:14:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:14:43]line СНО: Общий режим [11:14:43]line Чек 120 14.04.2024 11:14 [11:14:43]line Смена: 357 ФФД: 1.0 [11:14:43]line ЗНМ: 0300000138 [11:14:43]line РНМ: 0000000000094237 [11:14:43]line Версия ККМ: 001 [11:14:43]line ФМ: 0000000000875019 [11:14:43]line ФД: 112221 [11:14:43]line ФПД: 185943841078862 [11:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112221&fm=185943841078862&tin=02508201610067®Number=0000000000094237&sum=50000 [11:14:43]OFD Sender: Processing packet 112221 [packets to send 71, broken 70] [11:14:43]ProducePacketName [11:14:43]name=ofd_packets/00112221 [11:14:43]OFD Sender: To server: pG, [11:14:43]CommunicateWithHost lk.salyk.kg:30040 [11:14:43]ConnectInit lk.salyk.kg [11:14:43]written 0, free lines is 4095 [11:14:43]Connected sock=7 [11:14:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 74 07 01 50 96 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 78 00 00 00 F4 03 04 00 A2 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B6 01 00 35 04 06 00 A9 1D 6C 98 7E 4E C5 03 88 C8 3C 17 5A AE [11:14:44]Write to MH i2c: 01 00 00 41 08 49 [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: 01 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: 01 07 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 D9 0C 35 [11:14:44]RasterBufferAndPrint [11:14:44]line [11:14:44]line [11:14:44]line [11:14:44]line [11:14:44]line [11:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4B BF 47 00 32 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B6 01 00 F4 03 04 00 2D 62 1B 66 B6 04 01 00 00 7E AD 1D BC 88 F8 68 78 [11:14:44]CommunicateWithHost err = 0 [11:14:44]CheckOFDResponse [11:14:44]1017 (14) - 77093643461234 [11:14:44]1041 (16) - 0000000000875019 [11:14:44]1040 (4) - 112221 [11:14:44]1012 (4) - 14.04.2024 04:57 [11:14:44]1206 (1) - 0 [11:14:44]OFD Sender: Remove packet 112221 [11:14:44]ProducePacketName [11:14:44]name=ofd_packets/00112221 [11:14:44]NVStorageDeleteData [11:14:44]written 0, free lines is 3296 [11:14:44]MH_Cut [11:14:44]Write to MH i2c: D1 01 00 48 08 01 22 [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: D1 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: D1 01 00 [11:14:44]MH_I2C_Read... [11:14:44]Read from MH i2c: D1 01 00 48 08 00 21 [11:14:44]Write to MH i2c: 01 00 00 49 08 51 [11:14:44]Write i2c OK [11:14:44]MH_I2C_Read... [11:14:44]OFD Sender: No OFD packet to send [11:14:44]*** Cut start [11:14:44]*** Partial cut [11:14:44]*** CUTSNS_PIN = 1 [11:14:44]*** CUTSNS_PIN = 0 [11:14:45]*** Brake cut motor [11:14:45]Read from MH i2c: 01 [11:14:45]MH_I2C_Read... [11:14:45]*** Stop cut motor [11:14:45]*** Cut end [11:14:45]Read from MH i2c: 01 07 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [11:14:45]process_action close_receipt done [11:14:45]requested_data is exist [11:14:45]produce_requested_data [11:14:45]requested_item fm.sn is exist - process it [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 11 00 00 [11:14:45]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 17 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1D [11:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:14:45]wFMCommunicate OK [11:14:45]requested_item fd.num is exist - process it [11:14:45]SAM_PROTO_GetFieldsCounters [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 13 00 00 [11:14:45]Write to MH i2c: E2 08 00 4B 08 80 13 00 00 00 00 00 00 CF [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 62 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 62 00 4B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5D B6 01 00 0E 04 04 00 65 01 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 D0 [11:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5D B6 01 00 0E 04 04 00 65 01 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 [11:14:45]wFMCommunicate OK [11:14:45]SAM_PROTO_GetFieldsCounters done [11:14:45]requested_item shift.num is exist - process it [11:14:45]requested_item shift.opened is exist - process it [11:14:45]req_shift_opened [11:14:45]FM_GetShiftState [11:14:45]SAM_PROTO_GetShiftState [11:14:45]wFMCommunicate request_size=4 [11:14:45]MH_SAM_APDU [11:14:45]CAPDU: 80 13 01 00 [11:14:45]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [11:14:45]Write i2c OK [11:14:45]MH_I2C_Read... [11:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:45]Read from MH i2c: E2 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 [11:14:45]MH_I2C_Read... [11:14:45]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 69 [11:14:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:14:45]wFMCommunicate OK [11:14:45]SAM_PROTO_GetShiftState done [11:14:45]FM_GetShiftState done [11:14:45]req_shift_opened done [11:14:45]requested_item shift.open_date is exist - process it [11:14:45]req_shift_open_date [11:14:45]req_shift_open_date done [11:14:45]produce_requested_data done [11:14:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112221,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:14:45]process_action_free close_receipt [11:14:45]json_value_free [11:14:45]json_value_free done [11:14:45]process_json_proto returns [11:14:45]Send response to host [11:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112221,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:14:45]free response buf [11:14:45]execute_script done [11:14:45]execute_script returns [11:14:45]free content buf [11:14:45]Sock 12.Close socket [11:14:45]Sock 12.Thread stoped [11:14:49]OFD Sender: No OFD packet to send [11:14:54]OFD Sender: No OFD packet to send [11:14:59]OFD Sender: No OFD packet to send [11:15:04]OFD Sender: No OFD packet to send [11:15:09]OFD Sender: No OFD packet to send [11:15:14]OFD Sender: No OFD packet to send [11:15:19]OFD Sender: No OFD packet to send [11:15:20]accept exits with 9 [11:15:20]New connection [11:15:20]New thread 3067198820 created [11:15:20]Thread 3067342180 joined [11:15:20]Waiting for new connection... [11:15:20] Sock 9.Parse request [11:15:20]Sock 9.Check first char [11:15:20]Sock 9.First char is OK [11:15:20]request: POST /json_proto HTTP/1.0 [11:15:20]Method: POST [11:15:20]URL: /json_proto [11:15:20]Method is POST - this is cgi request [11:15:20]url: /json_proto [11:15:20]query_string will be loaded in cgi processing [11:15:20]execute_cgi json_proto POST (null) [11:15:20]execute_cgi path=json_proto method=POST [11:15:20]POST find Content-Length [11:15:20]Host: 172.17.96.197:8080 [11:15:20]Content-Length: 808 [11:15:20]Content-Type: application/json [11:15:20] [11:15:20]POST finish read [11:15:20]Found Content-Length = 808 [11:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48538", "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.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:20]execute_script... [11:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48538", "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.30, "quantity" : 6.130, "sum" : 400.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:20]POST & json_proto [11:15:20]process_json_proto [11:15:20]json parsed OK: [11:15:20]protocol is kg_v1.0 [11:15:20]action value=close_receipt [11:15:20]process_action close_receipt [11:15:20]cmd_close_receipt [11:15:20]MH_GetDate [11:15:20]Write to MH i2c: F0 00 00 4D 08 44 [11:15:20]Write i2c OK [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: F0 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: F0 09 00 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: F0 09 00 4D 08 00 C8 BA 1B 66 E0 85 7F 64 98 [11:15:20]GetLastDocTimeStamp 1713093282 [11:15:20]current date 1713093320 [11:15:20]FM_GetShiftState [11:15:20]SAM_PROTO_GetShiftState [11:15:20]wFMCommunicate request_size=4 [11:15:20]MH_SAM_APDU [11:15:20]CAPDU: 80 13 01 00 [11:15:20]Write to MH i2c: E2 08 00 4E 08 80 13 01 00 00 00 00 00 D3 [11:15:20]Write i2c OK [11:15:20]MH_I2C_Read... [11:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:20]Read from MH i2c: E2 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: E2 0E 00 [11:15:20]MH_I2C_Read... [11:15:20]Read from MH i2c: E2 0E 00 4E 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6B [11:15:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:15:20]wFMCommunicate OK [11:15:20]SAM_PROTO_GetShiftState done [11:15:20]FM_GetShiftState done [11:15:20]opened in 1713054696 [11:15:20]opened+sec_in_day 1713141096 [11:15:20]quantity*price = 40028 [11:15:20]sum+1 = 40030 [11:15:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.29 НСП 1% : 3.54 НДС 12% : 42.51 Наличными: 0.00 Безнал.: 400.29 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 121 14.04.2024 11:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112222 ФПД: 247574528779350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111520&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112222&fm=247574528779350&tin=02508201610067®Number=0000000000094237&sum=40029 [11:15:21]StoreToDocumentArchive [11:15:21]shift 357 fd 112222 [11:15:21]save to /storage/0357/doc_00112222 [11:15:21]save last doc name /storage/0357/doc_00112222 to /storage/kkm_last_doc_name [11:15:21]save OK [11:15:21]Clear old archive folders... [11:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:15:21]tlvbuf is 017E6820 [11:15:21]SAM_PROTO_ClearQueue [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 09 00 00 [11:15:21]Write to MH i2c: E2 08 00 5B 08 80 09 00 00 00 00 00 00 D5 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [11:15:21]RAPDU: 90 00 [11:15:21]wFMCommunicate OK [11:15:21]SAM_PROTO_ClearQueue done [11:15:21]KKMCreateOFDPacket [11:15:21]OFDProtocolAddRootSTLVToBuf [11:15:21]FM_MakeSignedData [11:15:21]FM_MakeSignedData [11:15:21]SAM_PROTO_SignData [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 0D 01 02 [11:15:21]Write to MH i2c: E2 08 00 5C 08 80 0D 01 02 00 00 00 00 DD [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [11:15:21]RAPDU: 90 00 [11:15:21]wFMCommunicate OK [11:15:21]wFMCommunicate request_size=255 [11:15:21]MH_SAM_APDU [11:15:21]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 9B 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C8 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B6 01 00 35 04 06 00 [11:15:21]Write to MH i2c: E2 02 01 5D 08 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 9B 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C8 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B6 01 00 35 04 06 00 00 00 16 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [11:15:21]RAPDU: 90 00 [11:15:21]wFMCommunicate OK [11:15:21]wFMCommunicate request_size=11 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 0D 02 02 06 E1 2A EF D7 E4 56 [11:15:21]Write to MH i2c: E2 0E 00 5E 08 80 0D 02 02 06 00 E1 2A EF D7 E4 56 00 00 F7 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [11:15:21]RAPDU: 90 00 [11:15:21]wFMCommunicate OK [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 0D 03 02 [11:15:21]Write to MH i2c: E2 08 00 5F 08 80 0D 03 02 00 00 00 00 E2 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0B 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 0B 00 5F 08 00 0F 00 47 5C 82 97 37 AB 90 00 90 [11:15:21]RAPDU: 0F 00 47 5C 82 97 37 AB 90 00 [11:15:21]wFMCommunicate OK [11:15:21]SAM_PROTO_SignData done [11:15:21]FM_MakeSignedData done [11:15:21]CreateOFDProtocolMessage [11:15:21]wFMCommunicate request_size=4 [11:15:21]MH_SAM_APDU [11:15:21]CAPDU: 80 11 00 00 [11:15:21]Write to MH i2c: E2 08 00 60 08 80 11 00 00 00 00 00 00 E2 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:21]Read from MH i2c: E2 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 17 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: E2 17 00 60 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 33 [11:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:15:21]wFMCommunicate OK [11:15:21]CreateOFDProtocolMessage done [11:15:21]OFDSenderStorePacket 112222 [11:15:21]StoreOFDPacket docnum=112222 [11:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E4 1B 08 01 B8 D2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 9B 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C8 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B6 01 00 35 04 06 00 E1 2A EF D7 E4 56 0F 00 47 5C 82 97 37 AB [11:15:21]CheckFolder [11:15:21]dirname=/storage/ofd_packets [11:15:21]CheckFolder done [11:15:21]ProducePacketName [11:15:21]name=ofd_packets/00112222 [11:15:21]NVStorageSaveData ofd_packets/00112222 [11:15:21]File name is /storage/ofd_packets/00112222 [11:15:21]Write 302 bytes [11:15:21]NVStorageSaveData done [11:15:21]OFDSenderStorePacket done [11:15:21]KKMCreateOFDPacket done [11:15:21]NVStorageSaveData kkm_last_timestamp [11:15:21]File name is /storage/kkm_last_timestamp [11:15:21]Write 4 bytes [11:15:21]NVStorageSaveData done [11:15:21]ExternCall_PrintAddStr [11:15:21]wPrintStart [11:15:21]Write to MH i2c: 01 00 00 61 08 69 [11:15:21]Write i2c OK [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: 01 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: 01 07 00 [11:15:21]MH_I2C_Read... [11:15:21]Read from MH i2c: 01 07 00 61 08 00 00 00 00 00 FF 0F 7E [11:15:21]RasterBufferAndPrint [11:15:21]line Счет N : (1)48538 [11:15:21]line ИНН: 02508201610067 [11:15:21]line Контрольно-Кассовый Чек [11:15:21]line ПРОДАЖА [11:15:21]line ТРК (МРК, ГНК) : 31 [11:15:21]line Товар: 2710124130 [11:15:21]line SUPER 92-К-5 [11:15:21]line 6.130 * 65.30 [11:15:21]line = 400.29 [11:15:21]line НДС 12% НСП 1% [11:15:21]line > о реализуемом товаре [11:15:21]line ИТОГО: 400.29 [11:15:21]line НСП 1% : 3.54 [11:15:21]line НДС 12% : 42.51 [11:15:21]line Наличными: 0.00 [11:15:21]line Безнал.: 400.29 [11:15:21]line Место: АЗС № 47 "Партнер Нефть" [11:15:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:15:21]line СНО: Общий режим [11:15:21]line Чек 121 14.04.2024 11:15 [11:15:21]line Смена: 357 ФФД: 1.0 [11:15:21]line ЗНМ: 0300000138 [11:15:21]line РНМ: 0000000000094237 [11:15:21]line Версия ККМ: 001 [11:15:21]line Платежная система: Бакай Банк [11:15:21]line ФМ: 0000000000875019 [11:15:21]line ФД: 112222 [11:15:21]line ФПД: 247574528779350 [11:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111520&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112222&fm=247574528779350&tin=02508201610067®Number=0000000000094237&sum=40029 [11:15:22]written 0, free lines is 4095 [11:15:22]OFD Sender: Processing packet 112222 [packets to send 71, broken 70] [11:15:22]ProducePacketName [11:15:22]name=ofd_packets/00112222 [11:15:22]OFD Sender: To server: pG, [11:15:22]CommunicateWithHost lk.salyk.kg:30040 [11:15:22]ConnectInit lk.salyk.kg [11:15:22]Connected sock=10 [11:15:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E4 1B 08 01 B8 D2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 5D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 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 9B 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 C8 BA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B6 01 00 35 04 06 00 E1 2A EF D7 E4 56 0F 00 47 5C 82 97 37 AB [11:15:22]Write to MH i2c: 01 00 00 8B 08 93 [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 07 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 EB 0C 91 [11:15:22]RasterBufferAndPrint [11:15:22]line [11:15:22]line [11:15:22]line [11:15:22]line [11:15:22]line [11:15:22]written 0, free lines is 3313 [11:15:22]MH_Cut [11:15:22]Write to MH i2c: D1 01 00 92 08 01 6C [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: D1 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: D1 01 00 [11:15:22]MH_I2C_Read... [11:15:22]Read from MH i2c: D1 01 00 92 08 00 6B [11:15:22]Write to MH i2c: 01 00 00 93 08 9B [11:15:22]Write i2c OK [11:15:22]MH_I2C_Read... [11:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 14 C2 47 00 50 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B6 01 00 F4 03 04 00 54 62 1B 66 B6 04 01 00 00 8D 75 CE 41 CD 6A 57 3F [11:15:22]CommunicateWithHost err = 0 [11:15:22]CheckOFDResponse [11:15:22]1017 (14) - 77093643461234 [11:15:22]1041 (16) - 0000000000875019 [11:15:22]1040 (4) - 112222 [11:15:22]1012 (4) - 14.04.2024 04:57 [11:15:22]1206 (1) - 0 [11:15:22]OFD Sender: Remove packet 112222 [11:15:22]ProducePacketName [11:15:22]name=ofd_packets/00112222 [11:15:22]NVStorageDeleteData [11:15:23]OFD Sender: No OFD packet to send [11:15:23]*** Cut start [11:15:23]*** Partial cut [11:15:23]*** CUTSNS_PIN = 1 [11:15:23]*** CUTSNS_PIN = 0 [11:15:23]*** Brake cut motor [11:15:23]Read from MH i2c: 01 [11:15:23]MH_I2C_Read... [11:15:23]*** Stop cut motor [11:15:23]*** Cut end [11:15:23]Read from MH i2c: 01 07 00 [11:15:23]MH_I2C_Read... [11:15:23]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [11:15:23]process_action close_receipt done [11:15:23]requested_data is exist [11:15:23]produce_requested_data [11:15:23]requested_item fm.sn is exist - process it [11:15:23]wFMCommunicate request_size=4 [11:15:23]MH_SAM_APDU [11:15:23]CAPDU: 80 11 00 00 [11:15:23]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [11:15:23]Write i2c OK [11:15:23]MH_I2C_Read... [11:15:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 17 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 67 [11:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:15:24]wFMCommunicate OK [11:15:24]requested_item fd.num is exist - process it [11:15:24]SAM_PROTO_GetFieldsCounters [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 13 00 00 [11:15:24]Write to MH i2c: E2 08 00 95 08 80 13 00 00 00 00 00 00 19 [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 62 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 62 00 95 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B6 01 00 0E 04 04 00 65 01 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 1E [11:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B6 01 00 0E 04 04 00 65 01 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 [11:15:24]wFMCommunicate OK [11:15:24]SAM_PROTO_GetFieldsCounters done [11:15:24]requested_item shift.num is exist - process it [11:15:24]requested_item shift.opened is exist - process it [11:15:24]req_shift_opened [11:15:24]FM_GetShiftState [11:15:24]SAM_PROTO_GetShiftState [11:15:24]wFMCommunicate request_size=4 [11:15:24]MH_SAM_APDU [11:15:24]CAPDU: 80 13 01 00 [11:15:24]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [11:15:24]Write i2c OK [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 [11:15:24]MH_I2C_Read... [11:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:24]Read from MH i2c: E2 0E 00 [11:15:24]MH_I2C_Read... [11:15:24]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B3 [11:15:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:15:24]wFMCommunicate OK [11:15:24]SAM_PROTO_GetShiftState done [11:15:24]FM_GetShiftState done [11:15:24]req_shift_opened done [11:15:24]requested_item shift.open_date is exist - process it [11:15:24]req_shift_open_date [11:15:24]req_shift_open_date done [11:15:24]produce_requested_data done [11:15:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112222,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:15:24]process_action_free close_receipt [11:15:24]json_value_free [11:15:24]json_value_free done [11:15:24]process_json_proto returns [11:15:24]Send response to host [11:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112222,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:15:24]free response buf [11:15:24]execute_script done [11:15:24]execute_script returns [11:15:24]free content buf [11:15:24]Sock 9.Close socket [11:15:24]Sock 9.Thread stoped [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:57]accept exits with 7 [11:17:57]New connection [11:17:57]New thread 3067342180 created [11:17:57]Thread 3067198820 joined [11:17:57]Waiting for new connection... [11:17:57] Sock 7.Parse request [11:17:57]Sock 7.Check first char [11:17:57]Sock 7.First char is OK [11:17:57]request: POST /json_proto HTTP/1.0 [11:17:57]Method: POST [11:17:57]URL: /json_proto [11:17:57]Method is POST - this is cgi request [11:17:57]url: /json_proto [11:17:57]query_string will be loaded in cgi processing [11:17:57]execute_cgi json_proto POST (null) [11:17:57]execute_cgi path=json_proto method=POST [11:17:57]POST find Content-Length [11:17:57]Host: 172.17.96.197:8080 [11:17:57]Content-Length: 811 [11:17:57]Content-Type: application/json [11:17:57] [11:17:57]POST finish read [11:17:57]Found Content-Length = 811 [11:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48539", "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.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:57]execute_script... [11:17: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)48539", "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.30, "quantity" : 22.980, "sum" : 1500.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:57]POST & json_proto [11:17:57]process_json_proto [11:17:57]json parsed OK: [11:17:57]protocol is kg_v1.0 [11:17:57]action value=close_receipt [11:17:57]process_action close_receipt [11:17:57]cmd_close_receipt [11:17:57]MH_GetDate [11:17:57]Write to MH i2c: F0 00 00 97 08 8E [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: F0 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: F0 09 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: F0 09 00 97 08 00 65 BB 1B 66 E0 85 7F 64 80 [11:17:57]GetLastDocTimeStamp 1713093320 [11:17:57]current date 1713093477 [11:17:57]FM_GetShiftState [11:17:57]SAM_PROTO_GetShiftState [11:17:57]wFMCommunicate request_size=4 [11:17:57]MH_SAM_APDU [11:17:57]CAPDU: 80 13 01 00 [11:17:57]Write to MH i2c: E2 08 00 98 08 80 13 01 00 00 00 00 00 1D [11:17:57]Write i2c OK [11:17:57]MH_I2C_Read... [11:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:57]Read from MH i2c: E2 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 0E 00 [11:17:57]MH_I2C_Read... [11:17:57]Read from MH i2c: E2 0E 00 98 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B5 [11:17:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:17:57]wFMCommunicate OK [11:17:57]SAM_PROTO_GetShiftState done [11:17:57]FM_GetShiftState done [11:17:57]opened in 1713054696 [11:17:57]opened+sec_in_day 1713141096 [11:17:57]quantity*price = 150059 [11:17:57]sum+1 = 150060 [11:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.59 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.59 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 122 14.04.2024 11:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112223 ФПД: 147376923085897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111757&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112223&fm=147376923085897&tin=02508201610067®Number=0000000000094237&sum=150059 [11:17:58]StoreToDocumentArchive [11:17:58]shift 357 fd 112223 [11:17:58]save to /storage/0357/doc_00112223 [11:17:58]save last doc name /storage/0357/doc_00112223 to /storage/kkm_last_doc_name [11:17:58]save OK [11:17:58]Clear old archive folders... [11:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:17:58]tlvbuf is 017E7860 [11:17:58]SAM_PROTO_ClearQueue [11:17:58]wFMCommunicate request_size=4 [11:17:58]MH_SAM_APDU [11:17:58]CAPDU: 80 09 00 00 [11:17:58]Write to MH i2c: E2 08 00 A5 08 80 09 00 00 00 00 00 00 1F [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]OFD Sender: No OFD packet to send [11:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [11:17:58]RAPDU: 90 00 [11:17:58]wFMCommunicate OK [11:17:58]SAM_PROTO_ClearQueue done [11:17:58]KKMCreateOFDPacket [11:17:58]OFDProtocolAddRootSTLVToBuf [11:17:58]FM_MakeSignedData [11:17:58]FM_MakeSignedData [11:17:58]SAM_PROTO_SignData [11:17:58]wFMCommunicate request_size=4 [11:17:58]MH_SAM_APDU [11:17:58]CAPDU: 80 0D 01 02 [11:17:58]Write to MH i2c: E2 08 00 A6 08 80 0D 01 02 00 00 00 00 27 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [11:17:58]RAPDU: 90 00 [11:17:58]wFMCommunicate OK [11:17:58]wFMCommunicate request_size=255 [11:17:58]MH_SAM_APDU [11:17: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 65 BB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B6 01 00 35 04 06 00 [11:17:58]Write to MH i2c: E2 02 01 A7 08 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 65 BB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B6 01 00 35 04 06 00 00 00 32 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [11:17:58]RAPDU: 90 00 [11:17:58]wFMCommunicate OK [11:17:58]wFMCommunicate request_size=11 [11:17:58]MH_SAM_APDU [11:17:58]CAPDU: 80 0D 02 02 06 86 09 DD 26 0C 49 [11:17:58]Write to MH i2c: E2 0E 00 A8 08 80 0D 02 02 06 00 86 09 DD 26 0C 49 00 00 1D [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [11:17:58]RAPDU: 90 00 [11:17:58]wFMCommunicate OK [11:17:58]wFMCommunicate request_size=4 [11:17:58]MH_SAM_APDU [11:17:58]CAPDU: 80 0D 03 02 [11:17:58]Write to MH i2c: E2 08 00 A9 08 80 0D 03 02 00 00 00 00 2C [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 0B 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 0B 00 A9 08 00 5A 2D AB 0F 4B F0 C3 E2 90 00 4E [11:17:58]RAPDU: 5A 2D AB 0F 4B F0 C3 E2 90 00 [11:17:58]wFMCommunicate OK [11:17:58]SAM_PROTO_SignData done [11:17:58]FM_MakeSignedData done [11:17:58]CreateOFDProtocolMessage [11:17:58]wFMCommunicate request_size=4 [11:17:58]MH_SAM_APDU [11:17:58]CAPDU: 80 11 00 00 [11:17:58]Write to MH i2c: E2 08 00 AA 08 80 11 00 00 00 00 00 00 2C [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:58]Read from MH i2c: E2 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 17 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: E2 17 00 AA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7D [11:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:17:58]wFMCommunicate OK [11:17:58]CreateOFDProtocolMessage done [11:17:58]OFDSenderStorePacket 112223 [11:17:58]StoreOFDPacket docnum=112223 [11:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 D7 03 08 01 58 40 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 65 BB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B6 01 00 35 04 06 00 86 09 DD 26 0C 49 5A 2D AB 0F 4B F0 C3 E2 [11:17:58]CheckFolder [11:17:58]dirname=/storage/ofd_packets [11:17:58]CheckFolder done [11:17:58]ProducePacketName [11:17:58]name=ofd_packets/00112223 [11:17:58]NVStorageSaveData ofd_packets/00112223 [11:17:58]File name is /storage/ofd_packets/00112223 [11:17:58]Write 302 bytes [11:17:58]NVStorageSaveData done [11:17:58]OFDSenderStorePacket done [11:17:58]KKMCreateOFDPacket done [11:17:58]NVStorageSaveData kkm_last_timestamp [11:17:58]File name is /storage/kkm_last_timestamp [11:17:58]Write 4 bytes [11:17:58]NVStorageSaveData done [11:17:58]ExternCall_PrintAddStr [11:17:58]wPrintStart [11:17:58]Write to MH i2c: 01 00 00 AB 08 B3 [11:17:58]Write i2c OK [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 07 00 [11:17:58]MH_I2C_Read... [11:17:58]Read from MH i2c: 01 07 00 AB 08 00 00 00 00 00 FF 0F C8 [11:17:58]RasterBufferAndPrint [11:17:58]line Счет N : (1)48539 [11:17:58]line ИНН: 02508201610067 [11:17:58]line Контрольно-Кассовый Чек [11:17:58]line ПРОДАЖА [11:17:58]line ТРК (МРК, ГНК) : 31 [11:17:58]line Товар: 2710124130 [11:17:58]line SUPER 92-К-5 [11:17:58]line 22.980 * 65.30 [11:17:58]line = 1500.59 [11:17:58]line НДС 12% НСП 1% [11:17:58]line > о реализуемом товаре [11:17:58]line ИТОГО: 1500.59 [11:17:58]line НСП 1% : 13.28 [11:17:58]line НДС 12% : 159.35 [11:17:58]line Наличными: 0.00 [11:17:58]line Безнал.: 1500.59 [11:17:58]line Место: АЗС № 47 "Партнер Нефть" [11:17:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:17:58]line СНО: Общий режим [11:17:58]line Чек 122 14.04.2024 11:17 [11:17:58]line Смена: 357 ФФД: 1.0 [11:17:58]line ЗНМ: 0300000138 [11:17:58]line РНМ: 0000000000094237 [11:17:58]line Версия ККМ: 001 [11:17:58]line Платежная система: Бакай Банк [11:17:58]line ФМ: 0000000000875019 [11:17:58]line ФД: 112223 [11:17:58]line ФПД: 147376923085897 [11:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T111757&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112223&fm=147376923085897&tin=02508201610067®Number=0000000000094237&sum=150059 [11:17:59]OFD Sender: Processing packet 112223 [packets to send 71, broken 70] [11:17:59]ProducePacketName [11:17:59]name=ofd_packets/00112223 [11:17:59]OFD Sender: To server: pG, [11:17:59]CommunicateWithHost lk.salyk.kg:30040 [11:17:59]ConnectInit lk.salyk.kg [11:17:59]written 0, free lines is 4095 [11:17:59]Connected sock=10 [11:17:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 D7 03 08 01 58 40 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2B 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 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2B 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 65 BB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B6 01 00 35 04 06 00 86 09 DD 26 0C 49 5A 2D AB 0F 4B F0 C3 E2 [11:17:59]Write to MH i2c: 01 00 00 D5 08 DD [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: 01 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: 01 07 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 F4 0C E4 [11:17:59]RasterBufferAndPrint [11:17:59]line [11:17:59]line [11:17:59]line [11:17:59]line [11:17:59]line [11:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FC F4 47 00 18 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B6 01 00 F4 03 04 00 F1 62 1B 66 B6 04 01 00 00 6E DC 65 31 E3 D1 40 F2 [11:17:59]CommunicateWithHost err = 0 [11:17:59]CheckOFDResponse [11:17:59]1017 (14) - 77093643461234 [11:17:59]1041 (16) - 0000000000875019 [11:17:59]1040 (4) - 112223 [11:17:59]1012 (4) - 14.04.2024 05:00 [11:17:59]1206 (1) - 0 [11:17:59]OFD Sender: Remove packet 112223 [11:17:59]ProducePacketName [11:17:59]name=ofd_packets/00112223 [11:17:59]NVStorageDeleteData [11:17:59]written 0, free lines is 3323 [11:17:59]MH_Cut [11:17:59]Write to MH i2c: D1 01 00 DC 08 01 B6 [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: D1 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: D1 01 00 [11:17:59]MH_I2C_Read... [11:17:59]Read from MH i2c: D1 01 00 DC 08 00 B5 [11:17:59]Write to MH i2c: 01 00 00 DD 08 E5 [11:17:59]Write i2c OK [11:17:59]MH_I2C_Read... [11:18:00]OFD Sender: No OFD packet to send [11:18:00]*** Cut start [11:18:00]*** Partial cut [11:18:00]*** CUTSNS_PIN = 1 [11:18:00]*** CUTSNS_PIN = 0 [11:18:00]*** Brake cut motor [11:18:00]Read from MH i2c: 01 [11:18:00]MH_I2C_Read... [11:18:00]*** Stop cut motor [11:18:00]*** Cut end [11:18:00]Read from MH i2c: 01 07 00 [11:18:00]MH_I2C_Read... [11:18:00]Read from MH i2c: 01 07 00 DD 08 00 00 00 00 00 FF 0F FA [11:18:00]process_action close_receipt done [11:18:00]requested_data is exist [11:18:00]produce_requested_data [11:18:00]requested_item fm.sn is exist - process it [11:18:00]wFMCommunicate request_size=4 [11:18:00]MH_SAM_APDU [11:18:00]CAPDU: 80 11 00 00 [11:18:00]Write to MH i2c: E2 08 00 DE 08 80 11 00 00 00 00 00 00 60 [11:18:00]Write i2c OK [11:18:00]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 17 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 17 00 DE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B1 [11:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:18:01]wFMCommunicate OK [11:18:01]requested_item fd.num is exist - process it [11:18:01]SAM_PROTO_GetFieldsCounters [11:18:01]wFMCommunicate request_size=4 [11:18:01]MH_SAM_APDU [11:18:01]CAPDU: 80 13 00 00 [11:18:01]Write to MH i2c: E2 08 00 DF 08 80 13 00 00 00 00 00 00 63 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 62 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 62 00 DF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5F B6 01 00 0E 04 04 00 65 01 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 6C [11:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5F B6 01 00 0E 04 04 00 65 01 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 [11:18:01]wFMCommunicate OK [11:18:01]SAM_PROTO_GetFieldsCounters done [11:18:01]requested_item shift.num is exist - process it [11:18:01]requested_item shift.opened is exist - process it [11:18:01]req_shift_opened [11:18:01]FM_GetShiftState [11:18:01]SAM_PROTO_GetShiftState [11:18:01]wFMCommunicate request_size=4 [11:18:01]MH_SAM_APDU [11:18:01]CAPDU: 80 13 01 00 [11:18:01]Write to MH i2c: E2 08 00 E0 08 80 13 01 00 00 00 00 00 65 [11:18:01]Write i2c OK [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 [11:18:01]MH_I2C_Read... [11:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:01]Read from MH i2c: E2 0E 00 [11:18:01]MH_I2C_Read... [11:18:01]Read from MH i2c: E2 0E 00 E0 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FD [11:18:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:18:01]wFMCommunicate OK [11:18:01]SAM_PROTO_GetShiftState done [11:18:01]FM_GetShiftState done [11:18:01]req_shift_opened done [11:18:01]requested_item shift.open_date is exist - process it [11:18:01]req_shift_open_date [11:18:01]req_shift_open_date done [11:18:01]produce_requested_data done [11:18:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112223,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:18:01]process_action_free close_receipt [11:18:01]json_value_free [11:18:01]json_value_free done [11:18:01]process_json_proto returns [11:18:01]Send response to host [11:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112223,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:18:01]free response buf [11:18:01]execute_script done [11:18:01]execute_script returns [11:18:01]free content buf [11:18:01]Sock 7.Close socket [11:18:01]Sock 7.Thread stoped [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:20]OFD Sender: No OFD packet to send [11:18:25]OFD Sender: No OFD packet to send [11:18:30]OFD Sender: No OFD packet to send [11:18:35]OFD Sender: No OFD packet to send [11:18:40]OFD Sender: No OFD packet to send [11:18:45]OFD Sender: No OFD packet to send [11:18:50]OFD Sender: No OFD packet to send [11:18:55]OFD Sender: No OFD packet to send [11:19:00]OFD Sender: No OFD packet to send [11:19:05]OFD Sender: No OFD packet to send [11:19:10]OFD Sender: No OFD packet to send [11:19:15]OFD Sender: No OFD packet to send [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:49]accept exits with 9 [11:24:49]New connection [11:24:49]New thread 3067198820 created [11:24:49]Thread 3067342180 joined [11:24:49]Waiting for new connection... [11:24:49] Sock 9.Parse request [11:24:49]Sock 9.Check first char [11:24:49]Sock 9.First char is OK [11:24:49]request: POST /json_proto HTTP/1.0 [11:24:49]Method: POST [11:24:49]URL: /json_proto [11:24:49]Method is POST - this is cgi request [11:24:49]url: /json_proto [11:24:49]query_string will be loaded in cgi processing [11:24:49]execute_cgi json_proto POST (null) [11:24:49]execute_cgi path=json_proto method=POST [11:24:49]POST find Content-Length [11:24:49]Host: 172.17.96.197:8080 [11:24:49]Content-Length: 905 [11:24:49]Content-Type: application/json [11:24:49] [11:24:49]POST finish read [11:24:49]Found Content-Length = 905 [11:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10415", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]execute_script... [11:24:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10415", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 245.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]POST & json_proto [11:24:49]process_json_proto [11:24:49]json parsed OK: [11:24:49]protocol is kg_v1.0 [11:24:49]action value=close_receipt [11:24:49]process_action close_receipt [11:24:49]cmd_close_receipt [11:24:49]MH_GetDate [11:24:49]Write to MH i2c: F0 00 00 E1 08 D8 [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 E1 08 00 02 BD 1B 66 E0 85 7F 64 69 [11:24:49]GetLastDocTimeStamp 1713093477 [11:24:49]current date 1713093890 [11:24:49]FM_GetShiftState [11:24:49]SAM_PROTO_GetShiftState [11:24:49]wFMCommunicate request_size=4 [11:24:49]MH_SAM_APDU [11:24:49]CAPDU: 80 13 01 00 [11:24:49]Write to MH i2c: E2 08 00 E2 08 80 13 01 00 00 00 00 00 67 [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:49]Read from MH i2c: E2 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 E2 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FF [11:24:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:24:49]wFMCommunicate OK [11:24:49]SAM_PROTO_GetShiftState done [11:24:49]FM_GetShiftState done [11:24:49]opened in 1713054696 [11:24:49]opened+sec_in_day 1713141096 [11:24:49]quantity*price = 13000 [11:24:49]sum+1 = 13001 [11:24:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 123 14.04.2024 11:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112224 ФПД: 165094005024131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112224&fm=165094005024131&tin=02508201610067®Number=0000000000094237&sum=24500 0 [11:24:50]StoreToDocumentArchive [11:24:50]shift 357 fd 112224 [11:24:50]save to /storage/0357/doc_00112224 [11:24:50]save last doc name /storage/0357/doc_00112224 to /storage/kkm_last_doc_name [11:24:50]save OK [11:24:50]Clear old archive folders... [11:24:50]ProcessDocumentItem done err = 0, tmpTLVsize=392 [11:24:50]tlvbuf is 017CD4B0 [11:24:50]SAM_PROTO_ClearQueue [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 09 00 00 [11:24:50]Write to MH i2c: E2 08 00 EF 08 80 09 00 00 00 00 00 00 69 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 EF 08 00 90 00 6B [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]SAM_PROTO_ClearQueue done [11:24:50]KKMCreateOFDPacket [11:24:50]OFDProtocolAddRootSTLVToBuf [11:24:50]FM_MakeSignedData [11:24:50]FM_MakeSignedData [11:24:50]SAM_PROTO_SignData [11:24:50]wFMCommunicate request_size=4 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 0D 01 02 [11:24:50]Write to MH i2c: E2 08 00 F0 08 80 0D 01 02 00 00 00 00 71 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:50]Read from MH i2c: E2 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 [11:24:50]MH_I2C_Read... [11:24:50]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [11:24:50]RAPDU: 90 00 [11:24:50]wFMCommunicate OK [11:24:50]wFMCommunicate request_size=255 [11:24:50]MH_SAM_APDU [11:24:50]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [11:24:50]Write to MH i2c: E2 02 01 F1 08 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 65 [11:24:50]Write i2c OK [11:24:50]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]wFMCommunicate request_size=151 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 02 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B6 01 00 35 04 06 00 96 26 F1 86 25 83 [11:24:51]Write to MH i2c: E2 9A 00 F2 08 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 02 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B6 01 00 35 04 06 00 96 26 F1 86 25 83 00 00 FA [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 03 02 [11:24:51]Write to MH i2c: E2 08 00 F3 08 80 0D 03 02 00 00 00 00 76 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0B 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0B 00 F3 08 00 DC B8 C5 49 2B 79 F7 9D 90 00 51 [11:24:51]RAPDU: DC B8 C5 49 2B 79 F7 9D 90 00 [11:24:51]wFMCommunicate OK [11:24:51]SAM_PROTO_SignData done [11:24:51]FM_MakeSignedData done [11:24:51]CreateOFDProtocolMessage [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 11 00 00 [11:24:51]Write to MH i2c: E2 08 00 F4 08 80 11 00 00 00 00 00 00 76 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 F4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C7 [11:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:24:51]wFMCommunicate OK [11:24:51]CreateOFDProtocolMessage done [11:24:51]OFDSenderStorePacket 112224 [11:24:51]StoreOFDPacket docnum=112224 [11:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 9C 01 00 00 C6 CB 94 01 CD 91 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 02 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B6 01 00 35 04 06 00 96 26 F1 86 25 83 DC B8 C5 49 2B 79 F7 9D [11:24:51]CheckFolder [11:24:51]dirname=/storage/ofd_packets [11:24:51]CheckFolder done [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00112224 [11:24:51]NVStorageSaveData ofd_packets/00112224 [11:24:51]File name is /storage/ofd_packets/00112224 [11:24:51]Write 442 bytes [11:24:51]NVStorageSaveData done [11:24:51]OFDSenderStorePacket done [11:24:51]KKMCreateOFDPacket done [11:24:51]NVStorageSaveData kkm_last_timestamp [11:24:51]File name is /storage/kkm_last_timestamp [11:24:51]Write 4 bytes [11:24:51]NVStorageSaveData done [11:24:51]ExternCall_PrintAddStr [11:24:51]wPrintStart [11:24:51]Write to MH i2c: 01 00 00 F5 08 FD [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 [11:24:51]MH_I2C_Read... [11:24:51]OFD Sender: Processing packet 112224 [packets to send 71, broken 70] [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00112224 [11:24:51]Read from MH i2c: 01 OFD Sender: To server: pG, [11:24:51]07 CommunicateWithHost lk.salyk.kg:30040 [11:24:51]00 ConnectInit lk.salyk.kg [11:24:51]F5 08 00 00 00 00 00 FF 0F 12 [11:24:51]RasterBufferAndPrint [11:24:51]line Счет N : (3)10415 [11:24:51]line ИНН: 02508201610067 [11:24:51]line Контрольно-Кассовый Чек [11:24:51]line ПРОДАЖА [11:24:51]line Товар: 2000036220012 [11:24:51]line Кофе Капучино XL(GABB TRADE) [11:24:51]line 1.000 * 130.00 [11:24:51]line = 130.00 [11:24:51]line НДС 12% НСП 1% [11:24:51]line > о реализуемом товаре [11:24:51]line Товар: 2000036210013 [11:24:51]line Кофе Капучино (GABB TRADE) [11:24:51]line 1.000 * 115.00 [11:24:51]line = 115.00 [11:24:51]line НДС 12% НСП 1% [11:24:51]line > о реализуемом товаре [11:24:51]line ИТОГО: 245.00 [11:24:51]line НСП 1% : 2.17 [11:24:51]line НДС 12% : 26.01 [11:24:51]line Наличными: 245.00 [11:24:51]line Безнал.: 0.00 [11:24:51]line Место: АЗС № 47 "Партнер Нефть" [11:24:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:24:51]line СНО: Общий режим [11:24:51]line Чек 123 14.04.2024 11:24 [11:24:51]line Смена: 357 ФФД: 1.0 [11:24:51]line ЗНМ: 0300000138 [11:24:51]line РНМ: 0000000000094237 [11:24:51]line Версия ККМ: 001 [11:24:51]line ФМ: 0000000000875019 [11:24:51]line ФД: 112224 [11:24:51]line ФПД: 165094005024131 [11:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112224&fm=165094005024131&tin=02508201610067®Number=0000000000094237&sum=24500 [11:24:51]line 0 [11:24:51]written 0, free lines is 4095 [11:24:51]Connected sock=10 [11:24:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 9C 01 00 00 C6 CB 94 01 CD 91 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 0A 00 00 00 00 07 04 06 00 B4 5F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 02 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B6 01 00 35 04 06 00 96 26 F1 86 25 83 DC B8 C5 49 2B 79 F7 9D [11:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 58 6F 47 00 F5 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B6 01 00 F4 03 04 00 8D 64 1B 66 B6 04 01 00 00 A0 B4 E5 47 3B EB 20 E3 [11:24:52]CommunicateWithHost err = 0 [11:24:52]CheckOFDResponse [11:24:52]1017 (14) - 77093643461234 [11:24:52]1041 (16) - 0000000000875019 [11:24:52]1040 (4) - 112224 [11:24:52]1012 (4) - 14.04.2024 05:07 [11:24:52]1206 (1) - 0 [11:24:52]OFD Sender: Remove packet 112224 [11:24:52]ProducePacketName [11:24:52]name=ofd_packets/00112224 [11:24:52]NVStorageDeleteData [11:24:52]Write to MH i2c: 01 00 00 24 09 2D [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 AB 0C EB [11:24:52]RasterBufferAndPrint [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]written 0, free lines is 3248 [11:24:52]MH_Cut [11:24:52]Write to MH i2c: D1 01 00 2B 09 01 06 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 01 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 01 00 2B 09 00 05 [11:24:52]Write to MH i2c: 01 00 00 2C 09 35 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]OFD Sender: No OFD packet to send [11:24:52]*** Cut start [11:24:52]*** Partial cut [11:24:52]*** CUTSNS_PIN = 1 [11:24:52]*** CUTSNS_PIN = 0 [11:24:53]*** Brake cut motor [11:24:53]Read from MH i2c: 01 [11:24:53]MH_I2C_Read... [11:24:53]*** Stop cut motor [11:24:53]*** Cut end [11:24:53]Read from MH i2c: 01 07 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [11:24:53]process_action close_receipt done [11:24:53]requested_data is exist [11:24:53]produce_requested_data [11:24:53]requested_item fm.sn is exist - process it [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 11 00 00 [11:24:53]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 01 [11:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:24:53]wFMCommunicate OK [11:24:53]requested_item fd.num is exist - process it [11:24:53]SAM_PROTO_GetFieldsCounters [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 00 00 [11:24:53]Write to MH i2c: E2 08 00 2E 09 80 13 00 00 00 00 00 00 B3 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 62 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 62 00 2E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 60 B6 01 00 0E 04 04 00 65 01 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 C0 [11:24:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 60 B6 01 00 0E 04 04 00 65 01 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 [11:24:53]wFMCommunicate OK [11:24:53]SAM_PROTO_GetFieldsCounters done [11:24:53]requested_item shift.num is exist - process it [11:24:53]requested_item shift.opened is exist - process it [11:24:53]req_shift_opened [11:24:53]FM_GetShiftState [11:24:53]SAM_PROTO_GetShiftState [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 01 00 [11:24:53]Write to MH i2c: E2 08 00 2F 09 80 13 01 00 00 00 00 00 B5 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 0E 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 0E 00 2F 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4D [11:24:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:24:53]wFMCommunicate OK [11:24:53]SAM_PROTO_GetShiftState done [11:24:53]FM_GetShiftState done [11:24:53]req_shift_opened done [11:24:53]requested_item shift.open_date is exist - process it [11:24:53]req_shift_open_date [11:24:53]req_shift_open_date done [11:24:53]produce_requested_data done [11:24:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112224,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:24:53]process_action_free close_receipt [11:24:53]json_value_free [11:24:53]json_value_free done [11:24:53]process_json_proto returns [11:24:53]Send response to host [11:24:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112224,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:24:53]free response buf [11:24:53]execute_script done [11:24:53]execute_script returns [11:24:53]free content buf [11:24:53]Sock 9.Close socket [11:24:53]Sock 9.Thread stoped [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:15]accept exits with 7 [11:25:15]New connection [11:25:15]New thread 3067342180 created [11:25:15]Thread 3067198820 joined [11:25:15]Waiting for new connection... [11:25:15] Sock 7.Parse request [11:25:15]Sock 7.Check first char [11:25:15]Sock 7.First char is OK [11:25:15]request: POST /json_proto HTTP/1.0 [11:25:15]Method: POST [11:25:15]URL: /json_proto [11:25:15]Method is POST - this is cgi request [11:25:15]url: /json_proto [11:25:15]query_string will be loaded in cgi processing [11:25:15]execute_cgi json_proto POST (null) [11:25:15]execute_cgi path=json_proto method=POST [11:25:15]POST find Content-Length [11:25:15]Host: 172.17.96.197:8080 [11:25:15]Content-Length: 669 [11:25:15]Content-Type: application/json [11:25:15] [11:25:15]POST finish read [11:25:15]Found Content-Length = 669 [11:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48541", "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.30, "quantity" : 7.660, "sum" : 500.20, "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:25:15]execute_script... [11:25: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)48541", "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.30, "quantity" : 7.660, "sum" : 500.20, "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:25:15]POST & json_proto [11:25:15]process_json_proto [11:25:15]json parsed OK: [11:25:15]protocol is kg_v1.0 [11:25:15]action value=close_receipt [11:25:15]process_action close_receipt [11:25:15]cmd_close_receipt [11:25:15]MH_GetDate [11:25:15]Write to MH i2c: F0 00 00 30 09 28 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 09 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: F0 09 00 30 09 00 1C BD 1B 66 E0 85 7F 64 D3 [11:25:15]GetLastDocTimeStamp 1713093890 [11:25:15]current date 1713093916 [11:25:15]FM_GetShiftState [11:25:15]SAM_PROTO_GetShiftState [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 13 01 00 [11:25:15]Write to MH i2c: E2 08 00 31 09 80 13 01 00 00 00 00 00 B7 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 31 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4F [11:25:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_GetShiftState done [11:25:15]FM_GetShiftState done [11:25:15]opened in 1713054696 [11:25:15]opened+sec_in_day 1713141096 [11:25:15]quantity*price = 50019 [11:25:15]sum+1 = 50021 [11:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 124 14.04.2024 11:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112225 ФПД: 246744997067344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112516&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112225&fm=246744997067344&tin=02508201610067®Number=0000000000094237&sum=50000 [11:25:16]StoreToDocumentArchive [11:25:16]shift 357 fd 112225 [11:25:16]save to /storage/0357/doc_00112225 [11:25:16]save last doc name /storage/0357/doc_00112225 to /storage/kkm_last_doc_name [11:25:16]save OK [11:25:16]Clear old archive folders... [11:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:25:16]tlvbuf is 0175D160 [11:25:16]SAM_PROTO_ClearQueue [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 09 00 00 [11:25:16]Write to MH i2c: E2 08 00 3E 09 80 09 00 00 00 00 00 00 B9 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [11:25:16]RAPDU: 90 00 [11:25:16]wFMCommunicate OK [11:25:16]SAM_PROTO_ClearQueue done [11:25:16]KKMCreateOFDPacket [11:25:16]OFDProtocolAddRootSTLVToBuf [11:25:16]FM_MakeSignedData [11:25:16]FM_MakeSignedData [11:25:16]SAM_PROTO_SignData [11:25:16]wFMCommunicate request_size=4 [11:25:16]MH_SAM_APDU [11:25:16]CAPDU: 80 0D 01 02 [11:25:16]Write to MH i2c: E2 08 00 3F 09 80 0D 01 02 00 00 00 00 C1 [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:16]Read from MH i2c: E2 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 [11:25:16]MH_I2C_Read... [11:25:16]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [11:25:16]RAPDU: 90 00 [11:25:16]wFMCommunicate OK [11:25:16]wFMCommunicate request_size=255 [11:25:16]MH_SAM_APDU [11:25: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7C 00 00 00 F4 03 04 00 1C BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B6 01 00 35 04 06 00 [11:25:16]Write to MH i2c: E2 02 01 40 09 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7C 00 00 00 F4 03 04 00 1C BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B6 01 00 35 04 06 00 00 00 3B [11:25:16]Write i2c OK [11:25:16]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=11 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 02 02 06 E0 69 CB E6 7A 50 [11:25:17]Write to MH i2c: E2 0E 00 41 09 80 0D 02 02 06 00 E0 69 CB E6 7A 50 00 00 94 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [11:25:17]RAPDU: 90 00 [11:25:17]wFMCommunicate OK [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 0D 03 02 [11:25:17]Write to MH i2c: E2 08 00 42 09 80 0D 03 02 00 00 00 00 C6 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 0B 00 42 09 00 9E 43 0C D3 C1 66 60 0F 90 00 1D [11:25:17]RAPDU: 9E 43 0C D3 C1 66 60 0F 90 00 [11:25:17]wFMCommunicate OK [11:25:17]SAM_PROTO_SignData done [11:25:17]FM_MakeSignedData done [11:25:17]CreateOFDProtocolMessage [11:25:17]wFMCommunicate request_size=4 [11:25:17]MH_SAM_APDU [11:25:17]CAPDU: 80 11 00 00 [11:25:17]Write to MH i2c: E2 08 00 43 09 80 11 00 00 00 00 00 00 C6 [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:17]Read from MH i2c: E2 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: E2 17 00 43 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 17 [11:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:25:17]wFMCommunicate OK [11:25:17]CreateOFDProtocolMessage done [11:25:17]OFDSenderStorePacket 112225 [11:25:17]StoreOFDPacket docnum=112225 [11:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 04 97 08 01 0F C2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7C 00 00 00 F4 03 04 00 1C BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B6 01 00 35 04 06 00 E0 69 CB E6 7A 50 9E 43 0C D3 C1 66 60 0F [11:25:17]CheckFolder [11:25:17]dirname=/storage/ofd_packets [11:25:17]CheckFolder done [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00112225 [11:25:17]NVStorageSaveData ofd_packets/00112225 [11:25:17]File name is /storage/ofd_packets/00112225 [11:25:17]Write 302 bytes [11:25:17]NVStorageSaveData done [11:25:17]OFDSenderStorePacket done [11:25:17]KKMCreateOFDPacket done [11:25:17]NVStorageSaveData kkm_last_timestamp [11:25:17]File name is /storage/kkm_last_timestamp [11:25:17]Write 4 bytes [11:25:17]NVStorageSaveData done [11:25:17]ExternCall_PrintAddStr [11:25:17]wPrintStart [11:25:17]Write to MH i2c: 01 00 00 44 09 4D [11:25:17]Write i2c OK [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 [11:25:17]MH_I2C_Read... [11:25:17]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [11:25:17]RasterBufferAndPrint [11:25:17]line Счет N : (1)48541 [11:25:17]line ИНН: 02508201610067 [11:25:17]line Контрольно-Кассовый Чек [11:25:17]line ПРОДАЖА [11:25:17]line ТРК (МРК, ГНК) : 31 [11:25:17]line Товар: 2710124130 [11:25:17]line SUPER 92-К-5 [11:25:17]line 7.660 * 65.30 [11:25:17]line = 500.20 [11:25:17]line НДС 12% НСП 1% [11:25:17]line > о реализуемом товаре [11:25:17]line ОКРУГЛЕНИЕ: -0.20 [11:25:17]line ИТОГО: 500.00 [11:25:17]line Внесено: 500.00 [11:25:17]line СДАЧА: 0.00 [11:25:17]line НСП 1% : 4.43 [11:25:17]line НДС 12% : 53.12 [11:25:17]line Наличными: 500.00 [11:25:17]line Безнал.: 0.00 [11:25:17]line Место: АЗС № 47 "Партнер Нефть" [11:25:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:25:17]line СНО: Общий режим [11:25:17]line Чек 124 14.04.2024 11:25 [11:25:17]line Смена: 357 ФФД: 1.0 [11:25:17]line ЗНМ: 0300000138 [11:25:17]line РНМ: 0000000000094237 [11:25:17]line Версия ККМ: 001 [11:25:17]line ФМ: 0000000000875019 [11:25:17]line ФД: 112225 [11:25:17]line ФПД: 246744997067344 [11:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112516&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112225&fm=246744997067344&tin=02508201610067®Number=0000000000094237&sum=50000 [11:25:17]OFD Sender: Processing packet 112225 [packets to send 71, broken 70] [11:25:17]ProducePacketName [11:25:17]name=ofd_packets/00112225 [11:25:17]OFD Sender: To server: pG, [11:25:17]CommunicateWithHost lk.salyk.kg:30040 [11:25:17]ConnectInit lk.salyk.kg [11:25:17]written 0, free lines is 4095 [11:25:17]Connected sock=10 [11:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 04 97 08 01 0F C2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7C 00 00 00 F4 03 04 00 1C BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B6 01 00 35 04 06 00 E0 69 CB E6 7A 50 9E 43 0C D3 C1 66 60 0F [11:25:18]Write to MH i2c: 01 00 00 6F 09 78 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 EB 0C 76 [11:25:18]RasterBufferAndPrint [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]line [11:25:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D4 AD 47 00 3F 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B6 01 00 F4 03 04 00 A7 64 1B 66 B6 04 01 00 00 2C DB AD 0B E3 7D DA 20 [11:25:18]CommunicateWithHost err = 0 [11:25:18]CheckOFDResponse [11:25:18]1017 (14) - 77093643461234 [11:25:18]1041 (16) - 0000000000875019 [11:25:18]1040 (4) - 112225 [11:25:18]1012 (4) - 14.04.2024 05:07 [11:25:18]1206 (1) - 0 [11:25:18]OFD Sender: Remove packet 112225 [11:25:18]ProducePacketName [11:25:18]name=ofd_packets/00112225 [11:25:18]NVStorageDeleteData [11:25:18]written 0, free lines is 3313 [11:25:18]MH_Cut [11:25:18]Write to MH i2c: D1 01 00 76 09 01 51 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 [11:25:18]MH_I2C_Read... [11:25:18]Read from MH i2c: D1 01 00 76 09 00 50 [11:25:18]Write to MH i2c: 01 00 00 77 09 80 [11:25:18]Write i2c OK [11:25:18]MH_I2C_Read... [11:25:18]OFD Sender: No OFD packet to send [11:25:18]*** Cut start [11:25:18]*** Partial cut [11:25:18]*** CUTSNS_PIN = 1 [11:25:18]*** CUTSNS_PIN = 0 [11:25:19]*** Brake cut motor [11:25:19]Read from MH i2c: 01 [11:25:19]MH_I2C_Read... [11:25:19]*** Stop cut motor [11:25:19]*** Cut end [11:25:19]Read from MH i2c: 01 07 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [11:25:19]process_action close_receipt done [11:25:19]requested_data is exist [11:25:19]produce_requested_data [11:25:19]requested_item fm.sn is exist - process it [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 11 00 00 [11:25:19]Write to MH i2c: E2 08 00 78 09 80 11 00 00 00 00 00 00 FB [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 17 00 78 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4C [11:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:25:19]wFMCommunicate OK [11:25:19]requested_item fd.num is exist - process it [11:25:19]SAM_PROTO_GetFieldsCounters [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 13 00 00 [11:25:19]Write to MH i2c: E2 08 00 79 09 80 13 00 00 00 00 00 00 FE [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 62 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 62 00 79 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B6 01 00 0E 04 04 00 65 01 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 0F [11:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B6 01 00 0E 04 04 00 65 01 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 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_GetFieldsCounters done [11:25:19]requested_item shift.num is exist - process it [11:25:19]requested_item shift.opened is exist - process it [11:25:19]req_shift_opened [11:25:19]FM_GetShiftState [11:25:19]SAM_PROTO_GetShiftState [11:25:19]wFMCommunicate request_size=4 [11:25:19]MH_SAM_APDU [11:25:19]CAPDU: 80 13 01 00 [11:25:19]Write to MH i2c: E2 08 00 7A 09 80 13 01 00 00 00 00 00 00 [11:25:19]Write i2c OK [11:25:19]MH_I2C_Read... [11:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:19]Read from MH i2c: E2 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0E 00 [11:25:19]MH_I2C_Read... [11:25:19]Read from MH i2c: E2 0E 00 7A 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 98 [11:25:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:25:19]wFMCommunicate OK [11:25:19]SAM_PROTO_GetShiftState done [11:25:19]FM_GetShiftState done [11:25:19]req_shift_opened done [11:25:19]requested_item shift.open_date is exist - process it [11:25:19]req_shift_open_date [11:25:19]req_shift_open_date done [11:25:19]produce_requested_data done [11:25:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112225,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:25:19]process_action_free close_receipt [11:25:19]json_value_free [11:25:19]json_value_free done [11:25:19]process_json_proto returns [11:25:19]Send response to host [11:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112225,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:25:19]free response buf [11:25:19]execute_script done [11:25:19]execute_script returns [11:25:19]free content buf [11:25:19]Sock 7.Close socket [11:25:19]Sock 7.Thread stoped [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:01]accept exits with 9 [11:26:01]New connection [11:26:01]New thread 3067198820 created [11:26:01]Thread 3067342180 joined [11:26:01]Waiting for new connection... [11:26:01] Sock 9.Parse request [11:26:01]Sock 9.Check first char [11:26:01]Sock 9.First char is OK [11:26:01]request: POST /json_proto HTTP/1.0 [11:26:01]Method: POST [11:26:01]URL: /json_proto [11:26:01]Method is POST - this is cgi request [11:26:01]url: /json_proto [11:26:01]query_string will be loaded in cgi processing [11:26:01]execute_cgi json_proto POST (null) [11:26:01]execute_cgi path=json_proto method=POST [11:26:01]POST find Content-Length [11:26:01]Host: 172.17.96.197:8080 [11:26:01]Content-Length: 1207 [11:26:01]Content-Type: application/json [11:26:01] [11:26:01]POST finish read [11:26:01]Found Content-Length = 1207 [11:26: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48540\u000A14.04.2024 11:05\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 200.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 14480.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\u000A00286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:01]execute_script... [11:26: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48540\u000A14.04.2024 11:05\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 200.000 x 72.40\u000A\u0418\u0422\u041E\u0413: 14480.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\u000A00286\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:01]POST & json_proto [11:26:01]process_json_proto [11:26:01]json parsed OK: [11:26:01]protocol is kg_v1.0 [11:26:01]action value=print_text [11:26:01]process_action print_text [11:26:01]cmd_print_text [11:26:01]ExternCall_PrintAddStr [11:26:01]wPrintStart [11:26:01]Write to MH i2c: 01 00 00 7B 09 84 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 7B 09 00 00 00 00 00 FF 0F 99 [11:26:01]RasterBufferAndPrint [11:26:01]line *****ТОВАРНЫЙ ЧЕК***** [11:26:01]line АЗС 47 [11:26:01]line Партнер нефть [11:26:01]line 02508201610067 [11:26:01]line Кассир : Таалайбек к. П. [11:26:01]line Счет N : (1)48540 [11:26:01]line 14.04.2024 11:05 [11:26:01]line ПРОДАЖА [11:26:01]line ТРК (МРК, ГНК): 51 [11:26:01]line Вид ГСМ : 2710194210 [11:26:01]line ДТ-К-5 [11:26:01]line 200.000 x 72.40 [11:26:01]line ИТОГ: 14480.00 [11:26:01]line Тип оплаты: Талоны: Топливная Карта [11:26:01]line 00286 [11:26:01]line ______________________ [11:26:01]line (подпись) [11:26:01]written 0, free lines is 4095 [11:26:01]Write to MH i2c: 01 00 00 90 09 99 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: 01 07 00 90 09 00 00 00 00 00 F3 0D A0 [11:26:01]RasterBufferAndPrint [11:26:01]line [11:26:01]line [11:26:01]line [11:26:01]line [11:26:01]line [11:26:01]written 0, free lines is 3573 [11:26:01]MH_Cut [11:26:01]Write to MH i2c: D1 01 00 97 09 01 72 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: D1 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: D1 01 00 [11:26:01]MH_I2C_Read... [11:26:01]Read from MH i2c: D1 01 00 97 09 00 71 [11:26:01]Write to MH i2c: 01 00 00 98 09 A1 [11:26:01]Write i2c OK [11:26:01]MH_I2C_Read... [11:26:02]*** Cut start [11:26:02]*** Partial cut [11:26:02]*** CUTSNS_PIN = 1 [11:26:02]*** CUTSNS_PIN = 0 [11:26:02]*** Brake cut motor [11:26:03]Read from MH i2c: 01 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: 01 07 00 [11:26:03]MH_I2C_Read... [11:26:03]*** Stop cut motor [11:26:03]*** Cut end [11:26:03]Read from MH i2c: 01 07 00 98 09 00 00 00 00 00 FF 0F B6 [11:26:03]process_action print_text done [11:26:03]requested_data is exist [11:26:03]produce_requested_data [11:26:03]requested_item fm.sn is exist - process it [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 11 00 00 [11:26:03]Write to MH i2c: E2 08 00 99 09 80 11 00 00 00 00 00 00 1C [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 17 00 99 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6D [11:26:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:26:03]wFMCommunicate OK [11:26:03]requested_item fd.num is exist - process it [11:26:03]SAM_PROTO_GetFieldsCounters [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 13 00 00 [11:26:03]Write to MH i2c: E2 08 00 9A 09 80 13 00 00 00 00 00 00 1F [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 62 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 62 00 9A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B6 01 00 0E 04 04 00 65 01 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 30 [11:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B6 01 00 0E 04 04 00 65 01 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 [11:26:03]wFMCommunicate OK [11:26:03]SAM_PROTO_GetFieldsCounters done [11:26:03]requested_item shift.num is exist - process it [11:26:03]requested_item shift.opened is exist - process it [11:26:03]req_shift_opened [11:26:03]FM_GetShiftState [11:26:03]SAM_PROTO_GetShiftState [11:26:03]wFMCommunicate request_size=4 [11:26:03]MH_SAM_APDU [11:26:03]CAPDU: 80 13 01 00 [11:26:03]Write to MH i2c: E2 08 00 9B 09 80 13 01 00 00 00 00 00 21 [11:26:03]Write i2c OK [11:26:03]MH_I2C_Read... [11:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:03]Read from MH i2c: E2 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0E 00 [11:26:03]MH_I2C_Read... [11:26:03]Read from MH i2c: E2 0E 00 9B 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B9 [11:26:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:26:03]wFMCommunicate OK [11:26:03]SAM_PROTO_GetShiftState done [11:26:03]FM_GetShiftState done [11:26:03]req_shift_opened done [11:26:03]requested_item shift.open_date is exist - process it [11:26:03]req_shift_open_date [11:26:03]req_shift_open_date done [11:26:03]produce_requested_data done [11:26:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112225,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:26:03]process_action_free print_text [11:26:03]json_value_free [11:26:03]json_value_free done [11:26:03]process_json_proto returns [11:26:03]Send response to host [11:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112225,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:26:03]free response buf [11:26:03]execute_script done [11:26:03]execute_script returns [11:26:03]free content buf [11:26:03]Sock 9.Close socket [11:26:03]Sock 9.Thread stoped [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:24]accept exits with 7 [11:26:24]New connection [11:26:24]New thread 3067342180 created [11:26:24]Thread 3067198820 joined [11:26:24]Waiting for new connection... [11:26:24] Sock 7.Parse request [11:26:24]Sock 7.Check first char [11:26:24]Sock 7.First char is OK [11:26:24]request: POST /json_proto HTTP/1.0 [11:26:24]Method: POST [11:26:24]URL: /json_proto [11:26:24]Method is POST - this is cgi request [11:26:24]url: /json_proto [11:26:24]query_string will be loaded in cgi processing [11:26:24]execute_cgi json_proto POST (null) [11:26:24]execute_cgi path=json_proto method=POST [11:26:24]POST find Content-Length [11:26:24]Host: 172.17.96.197:8080 [11:26:24]Content-Length: 670 [11:26:24]Content-Type: application/json [11:26:24] [11:26:24]POST finish read [11:26:24]Found Content-Length = 670 [11:26:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48542", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:26:24]execute_script... [11:26: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)48542", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:26:24]POST & json_proto [11:26:24]process_json_proto [11:26:24]json parsed OK: [11:26:24]protocol is kg_v1.0 [11:26:24]action value=close_receipt [11:26:24]process_action close_receipt [11:26:24]cmd_close_receipt [11:26:24]MH_GetDate [11:26:24]Write to MH i2c: F0 00 00 9C 09 94 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: F0 09 00 9C 09 00 61 BD 1B 66 E0 85 7F 64 84 [11:26:24]GetLastDocTimeStamp 1713093916 [11:26:24]current date 1713093985 [11:26:24]FM_GetShiftState [11:26:24]SAM_PROTO_GetShiftState [11:26:24]wFMCommunicate request_size=4 [11:26:24]MH_SAM_APDU [11:26:24]CAPDU: 80 13 01 00 [11:26:24]Write to MH i2c: E2 08 00 9D 09 80 13 01 00 00 00 00 00 23 [11:26:24]Write i2c OK [11:26:24]MH_I2C_Read... [11:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:24]Read from MH i2c: E2 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 [11:26:24]MH_I2C_Read... [11:26:24]Read from MH i2c: E2 0E 00 9D 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BB [11:26:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:26:24]wFMCommunicate OK [11:26:24]SAM_PROTO_GetShiftState done [11:26:24]FM_GetShiftState done [11:26:24]opened in 1713054696 [11:26:24]opened+sec_in_day 1713141096 [11:26:24]quantity*price = 70001 [11:26:24]sum+1 = 70003 [11:26:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 125 14.04.2024 11:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112226 ФПД: 201401247269580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112625&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112226&fm=201401247269580&tin=02508201610067®Number=0000000000094237&sum=70000 [11:26:26]StoreToDocumentArchive [11:26:26]shift 357 fd 112226 [11:26:26]save to /storage/0357/doc_00112226 [11:26:26]save last doc name /storage/0357/doc_00112226 to /storage/kkm_last_doc_name [11:26:26]save OK [11:26:26]Clear old archive folders... [11:26:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:26]tlvbuf is 01779620 [11:26:26]SAM_PROTO_ClearQueue [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 09 00 00 [11:26:26]Write to MH i2c: E2 08 00 AA 09 80 09 00 00 00 00 00 00 25 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_ClearQueue done [11:26:26]KKMCreateOFDPacket [11:26:26]OFDProtocolAddRootSTLVToBuf [11:26:26]FM_MakeSignedData [11:26:26]FM_MakeSignedData [11:26:26]SAM_PROTO_SignData [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 01 02 [11:26:26]Write to MH i2c: E2 08 00 AB 09 80 0D 01 02 00 00 00 00 2D [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=255 [11:26:26]MH_SAM_APDU [11:26:26]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7D 00 00 00 F4 03 04 00 61 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B6 01 00 35 04 06 00 [11:26:26]Write to MH i2c: E2 02 01 AC 09 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7D 00 00 00 F4 03 04 00 61 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B6 01 00 35 04 06 00 00 00 2D [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 AC 09 00 90 00 29 [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=11 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 02 02 06 B7 2C 61 CD 02 CC [11:26:26]Write to MH i2c: E2 0E 00 AD 09 80 0D 02 02 06 00 B7 2C 61 CD 02 CC 00 00 1B [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 03 00 AD 09 00 90 00 2A [11:26:26]RAPDU: 90 00 [11:26:26]wFMCommunicate OK [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 0D 03 02 [11:26:26]Write to MH i2c: E2 08 00 AE 09 80 0D 03 02 00 00 00 00 32 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 0B 00 AE 09 00 BF 91 13 88 D4 45 18 C4 90 00 13 [11:26:26]RAPDU: BF 91 13 88 D4 45 18 C4 90 00 [11:26:26]wFMCommunicate OK [11:26:26]SAM_PROTO_SignData done [11:26:26]FM_MakeSignedData done [11:26:26]CreateOFDProtocolMessage [11:26:26]wFMCommunicate request_size=4 [11:26:26]MH_SAM_APDU [11:26:26]CAPDU: 80 11 00 00 [11:26:26]Write to MH i2c: E2 08 00 AF 09 80 11 00 00 00 00 00 00 32 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:26]Read from MH i2c: E2 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: E2 17 00 AF 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 83 [11:26:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:26:26]wFMCommunicate OK [11:26:26]CreateOFDProtocolMessage done [11:26:26]OFDSenderStorePacket 112226 [11:26:26]StoreOFDPacket docnum=112226 [11:26:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E7 6F 08 01 31 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7D 00 00 00 F4 03 04 00 61 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B6 01 00 35 04 06 00 B7 2C 61 CD 02 CC BF 91 13 88 D4 45 18 C4 [11:26:26]CheckFolder [11:26:26]dirname=/storage/ofd_packets [11:26:26]CheckFolder done [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00112226 [11:26:26]NVStorageSaveData ofd_packets/00112226 [11:26:26]File name is /storage/ofd_packets/00112226 [11:26:26]Write 302 bytes [11:26:26]NVStorageSaveData done [11:26:26]OFDSenderStorePacket done [11:26:26]KKMCreateOFDPacket done [11:26:26]NVStorageSaveData kkm_last_timestamp [11:26:26]File name is /storage/kkm_last_timestamp [11:26:26]Write 4 bytes [11:26:26]NVStorageSaveData done [11:26:26]ExternCall_PrintAddStr [11:26:26]wPrintStart [11:26:26]Write to MH i2c: 01 00 00 B0 09 B9 [11:26:26]Write i2c OK [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 [11:26:26]MH_I2C_Read... [11:26:26]Read from MH i2c: 01 07 00 B0 09 00 00 00 00 00 FF 0F CE [11:26:26]RasterBufferAndPrint [11:26:26]line Счет N : (1)48542 [11:26:26]line ИНН: 02508201610067 [11:26:26]line Контрольно-Кассовый Чек [11:26:26]line ПРОДАЖА [11:26:26]line ТРК (МРК, ГНК) : 41 [11:26:26]line Товар: 2710124130 [11:26:26]line SUPER 92-К-5 [11:26:26]line 10.720 * 65.30 [11:26:26]line = 700.02 [11:26:26]line НДС 12% НСП 1% [11:26:26]line > о реализуемом товаре [11:26:26]line ОКРУГЛЕНИЕ: -0.02 [11:26:26]line ИТОГО: 700.00 [11:26:26]line Внесено: 700.00 [11:26:26]line СДАЧА: 0.00 [11:26:26]line НСП 1% : 6.19 [11:26:26]line НДС 12% : 74.34 [11:26:26]line Наличными: 700.00 [11:26:26]line Безнал.: 0.00 [11:26:26]line Место: АЗС № 47 "Партнер Нефть" [11:26:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:26:26]line СНО: Общий режим [11:26:26]line Чек 125 14.04.2024 11:26 [11:26:26]line Смена: 357 ФФД: 1.0 [11:26:26]line ЗНМ: 0300000138 [11:26:26]line РНМ: 0000000000094237 [11:26:26]line Версия ККМ: 001 [11:26:26]line ФМ: 0000000000875019 [11:26:26]line ФД: 112226 [11:26:26]line ФПД: 201401247269580 [11:26:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112625&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112226&fm=201401247269580&tin=02508201610067®Number=0000000000094237&sum=70000 [11:26:26]OFD Sender: Processing packet 112226 [packets to send 71, broken 70] [11:26:26]ProducePacketName [11:26:26]name=ofd_packets/00112226 [11:26:26]OFD Sender: To server: pG, [11:26:26]CommunicateWithHost lk.salyk.kg:30040 [11:26:26]ConnectInit lk.salyk.kg [11:26:26]written 0, free lines is 4095 [11:26:27]Connected sock=10 [11:26:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E7 6F 08 01 31 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7D 00 00 00 F4 03 04 00 61 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B6 01 00 35 04 06 00 B7 2C 61 CD 02 CC BF 91 13 88 D4 45 18 C4 [11:26:27]Write to MH i2c: 01 00 00 DB 09 E4 [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: 01 07 00 DB 09 00 00 00 00 00 EA 0C E1 [11:26:27]RasterBufferAndPrint [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]line [11:26:27]written 0, free lines is 3313 [11:26:27]MH_Cut [11:26:27]Write to MH i2c: D1 01 00 E2 09 01 BD [11:26:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FF 15 47 00 72 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B6 01 00 F4 03 04 00 ED 64 1B 66 B6 04 01 00 00 A3 CC 5C 74 D3 C2 70 68 [11:26:27]CommunicateWithHost err = 0 [11:26:27]CheckOFDResponse [11:26:27]1017 (14) - 77093643461234 [11:26:27]1041 (16) - 0000000000875019 [11:26:27]1040 (4) - 112226 [11:26:27]1012 (4) - 14.04.2024 05:09 [11:26:27]1206 (1) - 0 [11:26:27]OFD Sender: Remove packet 112226 [11:26:27]ProducePacketName [11:26:27]name=ofd_packets/00112226 [11:26:27]NVStorageDeleteData [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 [11:26:27]MH_I2C_Read... [11:26:27]Read from MH i2c: D1 01 00 E2 09 00 BC [11:26:27]Write to MH i2c: 01 00 00 E3 09 EC [11:26:27]Write i2c OK [11:26:27]MH_I2C_Read... [11:26:27]OFD Sender: No OFD packet to send [11:26:28]*** Cut start [11:26:28]*** Partial cut [11:26:28]*** CUTSNS_PIN = 1 [11:26:28]*** CUTSNS_PIN = 0 [11:26:28]*** Brake cut motor [11:26:28]Read from MH i2c: 01 [11:26:28]MH_I2C_Read... [11:26:28]*** Stop cut motor [11:26:28]*** Cut end [11:26:28]Read from MH i2c: 01 07 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: 01 07 00 E3 09 00 00 00 00 00 FF 0F 01 [11:26:28]process_action close_receipt done [11:26:28]requested_data is exist [11:26:28]produce_requested_data [11:26:28]requested_item fm.sn is exist - process it [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 11 00 00 [11:26:28]Write to MH i2c: E2 08 00 E4 09 80 11 00 00 00 00 00 00 67 [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 17 00 E4 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B8 [11:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:26:28]wFMCommunicate OK [11:26:28]requested_item fd.num is exist - process it [11:26:28]SAM_PROTO_GetFieldsCounters [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 00 00 [11:26:28]Write to MH i2c: E2 08 00 E5 09 80 13 00 00 00 00 00 00 6A [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 62 00 E5 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 62 B6 01 00 0E 04 04 00 65 01 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 7F [11:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 62 B6 01 00 0E 04 04 00 65 01 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 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetFieldsCounters done [11:26:28]requested_item shift.num is exist - process it [11:26:28]requested_item shift.opened is exist - process it [11:26:28]req_shift_opened [11:26:28]FM_GetShiftState [11:26:28]SAM_PROTO_GetShiftState [11:26:28]wFMCommunicate request_size=4 [11:26:28]MH_SAM_APDU [11:26:28]CAPDU: 80 13 01 00 [11:26:28]Write to MH i2c: E2 08 00 E6 09 80 13 01 00 00 00 00 00 6C [11:26:28]Write i2c OK [11:26:28]MH_I2C_Read... [11:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:28]Read from MH i2c: E2 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 [11:26:28]MH_I2C_Read... [11:26:28]Read from MH i2c: E2 0E 00 E6 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 04 [11:26:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:26:28]wFMCommunicate OK [11:26:28]SAM_PROTO_GetShiftState done [11:26:28]FM_GetShiftState done [11:26:28]req_shift_opened done [11:26:28]requested_item shift.open_date is exist - process it [11:26:28]req_shift_open_date [11:26:28]req_shift_open_date done [11:26:28]produce_requested_data done [11:26:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112226,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:26:28]process_action_free close_receipt [11:26:28]json_value_free [11:26:28]json_value_free done [11:26:28]process_json_proto returns [11:26:28]Send response to host [11:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112226,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:26:28]free response buf [11:26:28]execute_script done [11:26:28]execute_script returns [11:26:28]free content buf [11:26:28]Sock 7.Close socket [11:26:28]Sock 7.Thread stoped [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:26:59]accept exits with 9 [11:26:59]New connection [11:26:59]New thread 3067198820 created [11:26:59]Thread 3067342180 joined [11:26:59]Waiting for new connection... [11:26:59] Sock 9.Parse request [11:26:59]Sock 9.Check first char [11:26:59]Sock 9.First char is OK [11:26:59]request: POST /json_proto HTTP/1.0 [11:26:59]Method: POST [11:26:59]URL: /json_proto [11:26:59]Method is POST - this is cgi request [11:26:59]url: /json_proto [11:26:59]query_string will be loaded in cgi processing [11:26:59]execute_cgi json_proto POST (null) [11:26:59]execute_cgi path=json_proto method=POST [11:26:59]POST find Content-Length [11:26:59]Host: 172.17.96.197:8080 [11:26:59]Content-Length: 673 [11:26:59]Content-Type: application/json [11:26:59] [11:26:59]POST finish read [11:26:59]Found Content-Length = 673 [11:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48543", "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.40, "quantity" : 8.290, "sum" : 600.20, "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:26:59]execute_script... [11:26: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)48543", "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.40, "quantity" : 8.290, "sum" : 600.20, "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:26:59]POST & json_proto [11:26:59]process_json_proto [11:26:59]json parsed OK: [11:26:59]protocol is kg_v1.0 [11:26:59]action value=close_receipt [11:26:59]process_action close_receipt [11:26:59]cmd_close_receipt [11:26:59]MH_GetDate [11:26:59]Write to MH i2c: F0 00 00 E7 09 DF [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 09 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: F0 09 00 E7 09 00 83 BD 1B 66 E0 85 7F 64 F1 [11:26:59]GetLastDocTimeStamp 1713093985 [11:26:59]current date 1713094019 [11:26:59]FM_GetShiftState [11:26:59]SAM_PROTO_GetShiftState [11:26:59]wFMCommunicate request_size=4 [11:26:59]MH_SAM_APDU [11:26:59]CAPDU: 80 13 01 00 [11:26:59]Write to MH i2c: E2 08 00 E8 09 80 13 01 00 00 00 00 00 6E [11:26:59]Write i2c OK [11:26:59]MH_I2C_Read... [11:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:59]Read from MH i2c: E2 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 [11:26:59]MH_I2C_Read... [11:26:59]Read from MH i2c: E2 0E 00 E8 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 06 [11:26:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:26:59]wFMCommunicate OK [11:26:59]SAM_PROTO_GetShiftState done [11:26:59]FM_GetShiftState done [11:26:59]opened in 1713054696 [11:26:59]opened+sec_in_day 1713141096 [11:26:59]quantity*price = 60019 [11:26:59]sum+1 = 60021 [11:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 126 14.04.2024 11:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112227 ФПД: 14467163490153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112227&fm=14467163490153&tin=02508201610067®Number=0000000000094237&sum=60000 [11:27:00]StoreToDocumentArchive [11:27:00]shift 357 fd 112227 [11:27:00]save to /storage/0357/doc_00112227 [11:27:00]save last doc name /storage/0357/doc_00112227 to /storage/kkm_last_doc_name [11:27:00]save OK [11:27:00]Clear old archive folders... [11:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:27:00]tlvbuf is 017CC7F0 [11:27:00]SAM_PROTO_ClearQueue [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 09 00 00 [11:27:00]Write to MH i2c: E2 08 00 F5 09 80 09 00 00 00 00 00 00 70 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_ClearQueue done [11:27:00]KKMCreateOFDPacket [11:27:00]OFDProtocolAddRootSTLVToBuf [11:27:00]FM_MakeSignedData [11:27:00]FM_MakeSignedData [11:27:00]SAM_PROTO_SignData [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 01 02 [11:27:00]Write to MH i2c: E2 08 00 F6 09 80 0D 01 02 00 00 00 00 78 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 F6 09 00 90 00 73 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=255 [11:27:00]MH_SAM_APDU [11:27: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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 7E 00 00 00 F4 03 04 00 83 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B6 01 00 35 04 06 00 0D 28 66 24 [11:27:00]Write to MH i2c: E2 02 01 F7 09 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 7E 00 00 00 F4 03 04 00 83 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B6 01 00 35 04 06 00 0D 28 66 24 00 00 3C [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 F7 09 00 90 00 74 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=7 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 02 02 02 07 69 [11:27:00]Write to MH i2c: E2 0A 00 F8 09 80 0D 02 02 02 00 07 69 00 00 EF [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 03 00 F8 09 00 90 00 75 [11:27:00]RAPDU: 90 00 [11:27:00]wFMCommunicate OK [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 0D 03 02 [11:27:00]Write to MH i2c: E2 08 00 F9 09 80 0D 03 02 00 00 00 00 7D [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0B 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0B 00 F9 09 00 26 4A EF 0C 88 CF 07 16 90 00 5D [11:27:00]RAPDU: 26 4A EF 0C 88 CF 07 16 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_SignData done [11:27:00]FM_MakeSignedData done [11:27:00]CreateOFDProtocolMessage [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 11 00 00 [11:27:00]Write to MH i2c: E2 08 00 FA 09 80 11 00 00 00 00 00 00 7D [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 FA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CE [11:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:00]wFMCommunicate OK [11:27:00]CreateOFDProtocolMessage done [11:27:00]OFDSenderStorePacket 112227 [11:27:00]StoreOFDPacket docnum=112227 [11:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C0 26 04 01 BD 81 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 7E 00 00 00 F4 03 04 00 83 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B6 01 00 35 04 06 00 0D 28 66 24 07 69 26 4A EF 0C 88 CF 07 16 [11:27:00]CheckFolder [11:27:00]dirname=/storage/ofd_packets [11:27:00]CheckFolder done [11:27:00]ProducePacketName [11:27:00]name=ofd_packets/00112227 [11:27:00]NVStorageSaveData ofd_packets/00112227 [11:27:00]File name is /storage/ofd_packets/00112227 [11:27:00]Write 298 bytes [11:27:00]NVStorageSaveData done [11:27:00]OFDSenderStorePacket done [11:27:00]KKMCreateOFDPacket done [11:27:00]NVStorageSaveData kkm_last_timestamp [11:27:00]File name is /storage/kkm_last_timestamp [11:27:00]Write 4 bytes [11:27:00]NVStorageSaveData done [11:27:00]ExternCall_PrintAddStr [11:27:00]wPrintStart [11:27:00]Write to MH i2c: 01 00 00 FB 09 04 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 07 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 07 00 FB 09 00 00 00 00 00 FF 0F 19 [11:27:00]RasterBufferAndPrint [11:27:00]line Счет N : (1)48543 [11:27:00]line ИНН: 02508201610067 [11:27:00]line Контрольно-Кассовый Чек [11:27:00]line ПРОДАЖА [11:27:00]line ТРК (МРК, ГНК) : 61 [11:27:00]line Товар: 2710194210 [11:27:00]line ДТ-К-5 [11:27:00]line 8.290 * 72.40 [11:27:00]line = 600.20 [11:27:00]line НДС 12% НСП 1% [11:27:00]line > о реализуемом товаре [11:27:00]line ОКРУГЛЕНИЕ: -0.20 [11:27:00]line ИТОГО: 600.00 [11:27:00]line Внесено: 600.00 [11:27:00]line СДАЧА: 0.00 [11:27:00]line НСП 1% : 5.31 [11:27:00]line НДС 12% : 63.74 [11:27:00]line Наличными: 600.00 [11:27:00]line Безнал.: 0.00 [11:27:00]line Место: АЗС № 47 "Партнер Нефть" [11:27:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:27:00]line СНО: Общий режим [11:27:00]line Чек 126 14.04.2024 11:26 [11:27:00]line Смена: 357 ФФД: 1.0 [11:27:00]line ЗНМ: 0300000138 [11:27:00]line РНМ: 0000000000094237 [11:27:00]line Версия ККМ: 001 [11:27:00]line ФМ: 0000000000875019 [11:27:00]line ФД: 112227 [11:27:00]line ФПД: 14467163490153 [11:27:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112227&fm=14467163490153&tin=02508201610067®Number=0000000000094237&sum=60000 [11:27:01]OFD Sender: Processing packet 112227 [packets to send 71, broken 70] [11:27:01]ProducePacketName [11:27:01]name=ofd_packets/00112227 [11:27:01]OFD Sender: To server: pG, [11:27:01]CommunicateWithHost lk.salyk.kg:30040 [11:27:01]ConnectInit lk.salyk.kg [11:27:01]written 0, free lines is 4095 [11:27:01]Connected sock=10 [11:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C0 26 04 01 BD 81 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 7E 00 00 00 F4 03 04 00 83 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B6 01 00 35 04 06 00 0D 28 66 24 07 69 26 4A EF 0C 88 CF 07 16 [11:27:01]Write to MH i2c: 01 00 00 26 0A 30 [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 07 00 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: 01 07 00 26 0A 00 00 00 00 00 E8 0C 2B [11:27:01]RasterBufferAndPrint [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]line [11:27:01]written 0, free lines is 3310 [11:27:01]MH_Cut [11:27:01]Write to MH i2c: D1 01 00 2D 0A 01 09 [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 01 00 [11:27:01]MH_I2C_Read... [11:27:01]Read from MH i2c: D1 01 00 2D 0A 00 08 [11:27:01]Write to MH i2c: 01 00 00 2E 0A 38 [11:27:01]Write i2c OK [11:27:01]MH_I2C_Read... [11:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 82 6D 47 00 24 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 38 37 35 30 31 39 10 04 04 00 63 B6 01 00 F4 03 04 00 0F 65 1B 66 B6 04 01 00 00 BD 3E 91 D9 EA 1C AA 35 [11:27:01]CommunicateWithHost err = 0 [11:27:01]CheckOFDResponse [11:27:01]1017 (14) - 77093643461234 [11:27:01]1041 (16) - 0000000000875019 [11:27:01]1040 (4) - 112227 [11:27:01]1012 (4) - 14.04.2024 05:09 [11:27:01]1206 (1) - 0 [11:27:01]OFD Sender: Remove packet 112227 [11:27:01]ProducePacketName [11:27:01]name=ofd_packets/00112227 [11:27:01]NVStorageDeleteData [11:27:02]OFD Sender: No OFD packet to send [11:27:02]*** Cut start [11:27:02]*** Partial cut [11:27:02]*** CUTSNS_PIN = 1 [11:27:02]*** CUTSNS_PIN = 0 [11:27:02]*** Brake cut motor [11:27:02]Read from MH i2c: 01 [11:27:02]MH_I2C_Read... [11:27:02]*** Stop cut motor [11:27:02]*** Cut end [11:27:02]Read from MH i2c: 01 07 00 [11:27:02]MH_I2C_Read... [11:27:02]Read from MH i2c: 01 07 00 2E 0A 00 00 00 00 00 FF 0F 4D [11:27:02]process_action close_receipt done [11:27:02]requested_data is exist [11:27:02]produce_requested_data [11:27:02]requested_item fm.sn is exist - process it [11:27:02]wFMCommunicate request_size=4 [11:27:02]MH_SAM_APDU [11:27:02]CAPDU: 80 11 00 00 [11:27:02]Write to MH i2c: E2 08 00 2F 0A 80 11 00 00 00 00 00 00 B3 [11:27:02]Write i2c OK [11:27:02]MH_I2C_Read... [11:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 17 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 17 00 2F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 04 [11:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:03]wFMCommunicate OK [11:27:03]requested_item fd.num is exist - process it [11:27:03]SAM_PROTO_GetFieldsCounters [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 13 00 00 [11:27:03]Write to MH i2c: E2 08 00 30 0A 80 13 00 00 00 00 00 00 B6 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 62 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 62 00 30 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 63 B6 01 00 0E 04 04 00 65 01 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 CF [11:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 63 B6 01 00 0E 04 04 00 65 01 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 [11:27:03]wFMCommunicate OK [11:27:03]SAM_PROTO_GetFieldsCounters done [11:27:03]requested_item shift.num is exist - process it [11:27:03]requested_item shift.opened is exist - process it [11:27:03]req_shift_opened [11:27:03]FM_GetShiftState [11:27:03]SAM_PROTO_GetShiftState [11:27:03]wFMCommunicate request_size=4 [11:27:03]MH_SAM_APDU [11:27:03]CAPDU: 80 13 01 00 [11:27:03]Write to MH i2c: E2 08 00 31 0A 80 13 01 00 00 00 00 00 B8 [11:27:03]Write i2c OK [11:27:03]MH_I2C_Read... [11:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:03]Read from MH i2c: E2 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 [11:27:03]MH_I2C_Read... [11:27:03]Read from MH i2c: E2 0E 00 31 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 50 [11:27:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:27:03]wFMCommunicate OK [11:27:03]SAM_PROTO_GetShiftState done [11:27:03]FM_GetShiftState done [11:27:03]req_shift_opened done [11:27:03]requested_item shift.open_date is exist - process it [11:27:03]req_shift_open_date [11:27:03]req_shift_open_date done [11:27:03]produce_requested_data done [11:27:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112227,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:27:03]process_action_free close_receipt [11:27:03]json_value_free [11:27:03]json_value_free done [11:27:03]process_json_proto returns [11:27:03]Send response to host [11:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112227,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:27:03]free response buf [11:27:03]execute_script done [11:27:03]execute_script returns [11:27:03]free content buf [11:27:03]Sock 9.Close socket [11:27:03]Sock 9.Thread stoped [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:33]accept exits with 7 [11:27:33]New connection [11:27:33]New thread 3067342180 created [11:27:33]Thread 3067198820 joined [11:27:33]Waiting for new connection... [11:27:33] Sock 7.Parse request [11:27:33]Sock 7.Check first char [11:27:33]Sock 7.First char is OK [11:27:33]request: POST /json_proto HTTP/1.0 [11:27:33]Method: POST [11:27:33]URL: /json_proto [11:27:33]Method is POST - this is cgi request [11:27:33]url: /json_proto [11:27:33]query_string will be loaded in cgi processing [11:27:33]execute_cgi json_proto POST (null) [11:27:33]execute_cgi path=json_proto method=POST [11:27:33]POST find Content-Length [11:27:33]Host: 172.17.96.197:8080 [11:27:33]Content-Length: 670 [11:27:33]Content-Type: application/json [11:27:33] [11:27:33]POST finish read [11:27:33]Found Content-Length = 670 [11:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48544", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:27:33]execute_script... [11:27: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)48544", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:27:33]POST & json_proto [11:27:33]process_json_proto [11:27:33]json parsed OK: [11:27:33]protocol is kg_v1.0 [11:27:33]action value=close_receipt [11:27:33]process_action close_receipt [11:27:33]cmd_close_receipt [11:27:33]MH_GetDate [11:27:33]Write to MH i2c: F0 00 00 32 0A 2B [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 09 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: F0 09 00 32 0A 00 A5 BD 1B 66 E0 85 7F 64 5F [11:27:33]GetLastDocTimeStamp 1713094019 [11:27:33]current date 1713094053 [11:27:33]FM_GetShiftState [11:27:33]SAM_PROTO_GetShiftState [11:27:33]wFMCommunicate request_size=4 [11:27:33]MH_SAM_APDU [11:27:33]CAPDU: 80 13 01 00 [11:27:33]Write to MH i2c: E2 08 00 33 0A 80 13 01 00 00 00 00 00 BA [11:27:33]Write i2c OK [11:27:33]MH_I2C_Read... [11:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:33]Read from MH i2c: E2 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 [11:27:33]MH_I2C_Read... [11:27:33]Read from MH i2c: E2 0E 00 33 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 52 [11:27:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:27:33]wFMCommunicate OK [11:27:33]SAM_PROTO_GetShiftState done [11:27:33]FM_GetShiftState done [11:27:33]opened in 1713054696 [11:27:33]opened+sec_in_day 1713141096 [11:27:33]quantity*price = 70001 [11:27:33]sum+1 = 70003 [11:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 127 14.04.2024 11:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112228 ФПД: 21131925214200 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112733&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112228&fm=21131925214200&tin=02508201610067®Number=0000000000094237&sum=70000 [11:27:34]StoreToDocumentArchive [11:27:34]shift 357 fd 112228 [11:27:34]save to /storage/0357/doc_00112228 [11:27:34]save last doc name /storage/0357/doc_00112228 to /storage/kkm_last_doc_name [11:27:34]save OK [11:27:34]Clear old archive folders... [11:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:27:34]tlvbuf is 017DC2E0 [11:27:34]SAM_PROTO_ClearQueue [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 09 00 00 [11:27:34]Write to MH i2c: E2 08 00 40 0A 80 09 00 00 00 00 00 00 BC [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 40 0A 00 90 00 BE [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_ClearQueue done [11:27:34]KKMCreateOFDPacket [11:27:34]OFDProtocolAddRootSTLVToBuf [11:27:34]FM_MakeSignedData [11:27:34]FM_MakeSignedData [11:27:34]SAM_PROTO_SignData [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 01 02 [11:27:34]Write to MH i2c: E2 08 00 41 0A 80 0D 01 02 00 00 00 00 C4 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 41 0A 00 90 00 BF [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=255 [11:27:34]MH_SAM_APDU [11:27: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7F 00 00 00 F4 03 04 00 A5 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B6 01 00 35 04 06 00 [11:27:34]Write to MH i2c: E2 02 01 42 0A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7F 00 00 00 F4 03 04 00 A5 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B6 01 00 35 04 06 00 00 00 0C [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 42 0A 00 90 00 C0 [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=11 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 02 02 06 13 38 28 E5 53 F8 [11:27:34]Write to MH i2c: E2 0E 00 43 0A 80 0D 02 02 06 00 13 38 28 E5 53 F8 00 00 76 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 03 00 43 0A 00 90 00 C1 [11:27:34]RAPDU: 90 00 [11:27:34]wFMCommunicate OK [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 0D 03 02 [11:27:34]Write to MH i2c: E2 08 00 44 0A 80 0D 03 02 00 00 00 00 C9 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 0B 00 44 0A 00 EF 9A 8C 4C EB 86 E7 09 90 00 8C [11:27:34]RAPDU: EF 9A 8C 4C EB 86 E7 09 90 00 [11:27:34]wFMCommunicate OK [11:27:34]SAM_PROTO_SignData done [11:27:34]FM_MakeSignedData done [11:27:34]CreateOFDProtocolMessage [11:27:34]wFMCommunicate request_size=4 [11:27:34]MH_SAM_APDU [11:27:34]CAPDU: 80 11 00 00 [11:27:34]Write to MH i2c: E2 08 00 45 0A 80 11 00 00 00 00 00 00 C9 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:34]Read from MH i2c: E2 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: E2 17 00 45 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1A [11:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:34]wFMCommunicate OK [11:27:34]CreateOFDProtocolMessage done [11:27:34]OFDSenderStorePacket 112228 [11:27:34]StoreOFDPacket docnum=112228 [11:27:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 C0 99 08 01 07 2C 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7F 00 00 00 F4 03 04 00 A5 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B6 01 00 35 04 06 00 13 38 28 E5 53 F8 EF 9A 8C 4C EB 86 E7 09 [11:27:34]CheckFolder [11:27:34]dirname=/storage/ofd_packets [11:27:34]CheckFolder done [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00112228 [11:27:34]NVStorageSaveData ofd_packets/00112228 [11:27:34]File name is /storage/ofd_packets/00112228 [11:27:34]Write 302 bytes [11:27:34]NVStorageSaveData done [11:27:34]OFDSenderStorePacket done [11:27:34]KKMCreateOFDPacket done [11:27:34]NVStorageSaveData kkm_last_timestamp [11:27:34]File name is /storage/kkm_last_timestamp [11:27:34]Write 4 bytes [11:27:34]NVStorageSaveData done [11:27:34]ExternCall_PrintAddStr [11:27:34]wPrintStart [11:27:34]Write to MH i2c: 01 00 00 46 0A 50 [11:27:34]Write i2c OK [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 [11:27:34]MH_I2C_Read... [11:27:34]Read from MH i2c: 01 07 00 46 0A 00 00 00 00 00 FF 0F 65 [11:27:34]RasterBufferAndPrint [11:27:34]line Счет N : (1)48544 [11:27:34]line ИНН: 02508201610067 [11:27:34]line Контрольно-Кассовый Чек [11:27:34]line ПРОДАЖА [11:27:34]line ТРК (МРК, ГНК) : 31 [11:27:34]line Товар: 2710124130 [11:27:34]line SUPER 92-К-5 [11:27:34]line 10.720 * 65.30 [11:27:34]line = 700.02 [11:27:34]line НДС 12% НСП 1% [11:27:34]line > о реализуемом товаре [11:27:34]line ОКРУГЛЕНИЕ: -0.02 [11:27:34]line ИТОГО: 700.00 [11:27:34]line Внесено: 700.00 [11:27:34]line СДАЧА: 0.00 [11:27:34]line НСП 1% : 6.19 [11:27:34]line НДС 12% : 74.34 [11:27:34]line Наличными: 700.00 [11:27:34]line Безнал.: 0.00 [11:27:34]line Место: АЗС № 47 "Партнер Нефть" [11:27:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:27:34]line СНО: Общий режим [11:27:34]line Чек 127 14.04.2024 11:27 [11:27:34]line Смена: 357 ФФД: 1.0 [11:27:34]line ЗНМ: 0300000138 [11:27:34]line РНМ: 0000000000094237 [11:27:34]line Версия ККМ: 001 [11:27:34]line ФМ: 0000000000875019 [11:27:34]line ФД: 112228 [11:27:34]line ФПД: 21131925214200 [11:27:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112733&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112228&fm=21131925214200&tin=02508201610067®Number=0000000000094237&sum=70000 [11:27:34]written 0, free lines is 4095 [11:27:34]OFD Sender: Processing packet 112228 [packets to send 71, broken 70] [11:27:34]ProducePacketName [11:27:34]name=ofd_packets/00112228 [11:27:34]OFD Sender: To server: pG, [11:27:34]CommunicateWithHost lk.salyk.kg:30040 [11:27:34]ConnectInit lk.salyk.kg [11:27:35]Connected sock=10 [11:27:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 C0 99 08 01 07 2C 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 7F 00 00 00 F4 03 04 00 A5 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B6 01 00 35 04 06 00 13 38 28 E5 53 F8 EF 9A 8C 4C EB 86 E7 09 [11:27:35]Write to MH i2c: 01 00 00 71 0A 7B [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 07 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: 01 07 00 71 0A 00 00 00 00 00 E1 0C 6F [11:27:35]RasterBufferAndPrint [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]line [11:27:35]written 0, free lines is 3303 [11:27:35]MH_Cut [11:27:35]Write to MH i2c: D1 01 00 78 0A 01 54 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 01 00 [11:27:35]MH_I2C_Read... [11:27:35]Read from MH i2c: D1 01 00 78 0A 00 53 [11:27:35]Write to MH i2c: 01 00 00 79 0A 83 [11:27:35]Write i2c OK [11:27:35]MH_I2C_Read... [11:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C5 EA 47 00 E5 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B6 01 00 F4 03 04 00 31 65 1B 66 B6 04 01 00 00 89 50 AD C5 18 3F 80 24 [11:27:35]CommunicateWithHost err = 0 [11:27:35]CheckOFDResponse [11:27:35]1017 (14) - 77093643461234 [11:27:35]1041 (16) - 0000000000875019 [11:27:35]1040 (4) - 112228 [11:27:35]1012 (4) - 14.04.2024 05:10 [11:27:35]1206 (1) - 0 [11:27:35]OFD Sender: Remove packet 112228 [11:27:35]ProducePacketName [11:27:35]name=ofd_packets/00112228 [11:27:35]NVStorageDeleteData [11:27:35]OFD Sender: No OFD packet to send [11:27:35]*** Cut start [11:27:35]*** Partial cut [11:27:35]*** CUTSNS_PIN = 1 [11:27:36]*** CUTSNS_PIN = 0 [11:27:36]*** Brake cut motor [11:27:36]Read from MH i2c: 01 [11:27:36]MH_I2C_Read... [11:27:36]*** Stop cut motor [11:27:36]*** Cut end [11:27:36]Read from MH i2c: 01 07 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 FF 0F 98 [11:27:36]process_action close_receipt done [11:27:36]requested_data is exist [11:27:36]produce_requested_data [11:27:36]requested_item fm.sn is exist - process it [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 11 00 00 [11:27:36]Write to MH i2c: E2 08 00 7A 0A 80 11 00 00 00 00 00 00 FE [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 17 00 7A 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [11:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:36]wFMCommunicate OK [11:27:36]requested_item fd.num is exist - process it [11:27:36]SAM_PROTO_GetFieldsCounters [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 13 00 00 [11:27:36]Write to MH i2c: E2 08 00 7B 0A 80 13 00 00 00 00 00 00 01 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 62 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 62 00 7B 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 64 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 64 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:36]wFMCommunicate OK [11:27:36]SAM_PROTO_GetFieldsCounters done [11:27:36]requested_item shift.num is exist - process it [11:27:36]requested_item shift.opened is exist - process it [11:27:36]req_shift_opened [11:27:36]FM_GetShiftState [11:27:36]SAM_PROTO_GetShiftState [11:27:36]wFMCommunicate request_size=4 [11:27:36]MH_SAM_APDU [11:27:36]CAPDU: 80 13 01 00 [11:27:36]Write to MH i2c: E2 08 00 7C 0A 80 13 01 00 00 00 00 00 03 [11:27:36]Write i2c OK [11:27:36]MH_I2C_Read... [11:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:36]Read from MH i2c: E2 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 0E 00 [11:27:36]MH_I2C_Read... [11:27:36]Read from MH i2c: E2 0E 00 7C 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9B [11:27:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:27:36]wFMCommunicate OK [11:27:36]SAM_PROTO_GetShiftState done [11:27:36]FM_GetShiftState done [11:27:36]req_shift_opened done [11:27:36]requested_item shift.open_date is exist - process it [11:27:36]req_shift_open_date [11:27:36]req_shift_open_date done [11:27:36]produce_requested_data done [11:27:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112228,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:27:36]process_action_free close_receipt [11:27:36]json_value_free [11:27:36]json_value_free done [11:27:36]process_json_proto returns [11:27:36]Send response to host [11:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112228,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:27:36]free response buf [11:27:36]execute_script done [11:27:36]execute_script returns [11:27:36]free content buf [11:27:36]Sock 7.Close socket [11:27:36]Sock 7.Thread stoped [11:27:40]OFD Sender: No OFD packet to send [11:27:45]OFD Sender: No OFD packet to send [11:27:50]OFD Sender: No OFD packet to send [11:27:51]accept exits with 9 [11:27:51]New connection [11:27:51]New thread 3067198820 created [11:27:51]Thread 3067342180 joined [11:27:51]Waiting for new connection... [11:27:51] Sock 9.Parse request [11:27:51]Sock 9.Check first char [11:27:51]Sock 9.First char is OK [11:27:51]request: POST /json_proto HTTP/1.0 [11:27:51]Method: POST [11:27:51]URL: /json_proto [11:27:51]Method is POST - this is cgi request [11:27:51]url: /json_proto [11:27:51]query_string will be loaded in cgi processing [11:27:51]execute_cgi json_proto POST (null) [11:27:51]execute_cgi path=json_proto method=POST [11:27:51]POST find Content-Length [11:27:51]Host: 172.17.96.197:8080 [11:27:51]Content-Length: 676 [11:27:51]Content-Type: application/json [11:27:51] [11:27:51]POST finish read [11:27:51]Found Content-Length = 676 [11:27:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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:27:51]execute_script... [11:27:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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:27:51]POST & json_proto [11:27:51]process_json_proto [11:27:51]json parsed OK: [11:27:51]protocol is kg_v1.0 [11:27:51]action value=close_receipt [11:27:51]process_action close_receipt [11:27:51]cmd_close_receipt [11:27:51]MH_GetDate [11:27:51]Write to MH i2c: F0 00 00 7D 0A 76 [11:27:51]Write i2c OK [11:27:51]MH_I2C_Read... [11:27:51]Read from MH i2c: F0 [11:27:51]MH_I2C_Read... [11:27:52]Read from MH i2c: F0 09 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: F0 09 00 7D 0A 00 B8 BD 1B 66 E0 85 7F 64 BD [11:27:52]GetLastDocTimeStamp 1713094053 [11:27:52]current date 1713094072 [11:27:52]FM_GetShiftState [11:27:52]SAM_PROTO_GetShiftState [11:27:52]wFMCommunicate request_size=4 [11:27:52]MH_SAM_APDU [11:27:52]CAPDU: 80 13 01 00 [11:27:52]Write to MH i2c: E2 08 00 7E 0A 80 13 01 00 00 00 00 00 05 [11:27:52]Write i2c OK [11:27:52]MH_I2C_Read... [11:27:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:52]Read from MH i2c: E2 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0E 00 [11:27:52]MH_I2C_Read... [11:27:52]Read from MH i2c: E2 0E 00 7E 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9D [11:27:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:27:52]wFMCommunicate OK [11:27:52]SAM_PROTO_GetShiftState done [11:27:52]FM_GetShiftState done [11:27:52]opened in 1713054696 [11:27:52]opened+sec_in_day 1713141096 [11:27:52]quantity*price = 60056 [11:27:52]sum+1 = 60057 [11:27:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 128 14.04.2024 11:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112229 ФПД: 255963971048211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112752&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112229&fm=255963971048211&tin=02508201610067®Number=0000000000094237&sum=60000 [11:27:53]StoreToDocumentArchive [11:27:53]shift 357 fd 112229 [11:27:53]save to /storage/0357/doc_00112229 [11:27:53]save last doc name /storage/0357/doc_00112229 to /storage/kkm_last_doc_name [11:27:53]save OK [11:27:53]Clear old archive folders... [11:27:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:27:53]tlvbuf is 017D1610 [11:27:53]SAM_PROTO_ClearQueue [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 09 00 00 [11:27:53]Write to MH i2c: E2 08 00 8B 0A 80 09 00 00 00 00 00 00 07 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 8B 0A 00 90 00 09 [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_ClearQueue done [11:27:53]KKMCreateOFDPacket [11:27:53]OFDProtocolAddRootSTLVToBuf [11:27:53]FM_MakeSignedData [11:27:53]FM_MakeSignedData [11:27:53]SAM_PROTO_SignData [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 01 02 [11:27:53]Write to MH i2c: E2 08 00 8C 0A 80 0D 01 02 00 00 00 00 0F [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 8C 0A 00 90 00 0A [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=255 [11:27:53]MH_SAM_APDU [11:27: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 B8 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B6 01 00 35 04 06 00 E8 [11:27:53]Write to MH i2c: E2 02 01 8D 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 B8 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B6 01 00 35 04 06 00 E8 00 00 FB [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 8D 0A 00 90 00 0B [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=10 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 02 02 05 CC 41 91 D3 13 [11:27:53]Write to MH i2c: E2 0D 00 8E 0A 80 0D 02 02 05 00 CC 41 91 D3 13 00 00 A0 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 03 00 8E 0A 00 90 00 0C [11:27:53]RAPDU: 90 00 [11:27:53]wFMCommunicate OK [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 0D 03 02 [11:27:53]Write to MH i2c: E2 08 00 8F 0A 80 0D 03 02 00 00 00 00 14 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0B 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 0B 00 8F 0A 00 FD CE 54 B2 4F D9 24 53 90 00 85 [11:27:53]RAPDU: FD CE 54 B2 4F D9 24 53 90 00 [11:27:53]wFMCommunicate OK [11:27:53]SAM_PROTO_SignData done [11:27:53]FM_MakeSignedData done [11:27:53]CreateOFDProtocolMessage [11:27:53]wFMCommunicate request_size=4 [11:27:53]MH_SAM_APDU [11:27:53]CAPDU: 80 11 00 00 [11:27:53]Write to MH i2c: E2 08 00 90 0A 80 11 00 00 00 00 00 00 14 [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:53]Read from MH i2c: E2 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 17 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: E2 17 00 90 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [11:27:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:53]wFMCommunicate OK [11:27:53]CreateOFDProtocolMessage done [11:27:53]OFDSenderStorePacket 112229 [11:27:53]StoreOFDPacket docnum=112229 [11:27:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 4E 07 01 EE 37 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 B8 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B6 01 00 35 04 06 00 E8 CC 41 91 D3 13 FD CE 54 B2 4F D9 24 53 [11:27:53]CheckFolder [11:27:53]dirname=/storage/ofd_packets [11:27:53]CheckFolder done [11:27:53]ProducePacketName [11:27:53]name=ofd_packets/00112229 [11:27:53]NVStorageSaveData ofd_packets/00112229 [11:27:53]File name is /storage/ofd_packets/00112229 [11:27:53]Write 301 bytes [11:27:53]NVStorageSaveData done [11:27:53]OFDSenderStorePacket done [11:27:53]KKMCreateOFDPacket done [11:27:53]NVStorageSaveData kkm_last_timestamp [11:27:53]File name is /storage/kkm_last_timestamp [11:27:53]Write 4 bytes [11:27:53]NVStorageSaveData done [11:27:53]ExternCall_PrintAddStr [11:27:53]wPrintStart [11:27:53]Write to MH i2c: 01 00 00 91 0A 9B [11:27:53]Write i2c OK [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 [11:27:53]MH_I2C_Read... [11:27:53]Read from MH i2c: 01 07 00 91 0A 00 00 00 00 00 FF 0F B0 [11:27:53]RasterBufferAndPrint [11:27:53]line Счет N : (1)48545 [11:27:53]line ИНН: 02508201610067 [11:27:53]line Контрольно-Кассовый Чек [11:27:53]line ПРОДАЖА [11:27:53]line ТРК (МРК, ГНК) : 21 [11:27:53]line Товар: 2710124130 [11:27:53]line Аи-92-К-5 [11:27:53]line 9.340 * 64.30 [11:27:53]line = 600.56 [11:27:53]line НДС 12% НСП 1% [11:27:53]line > о реализуемом товаре [11:27:53]line ОКРУГЛЕНИЕ: -0.56 [11:27:53]line ИТОГО: 600.00 [11:27:53]line Внесено: 600.00 [11:27:53]line СДАЧА: 0.00 [11:27:53]line НСП 1% : 5.31 [11:27:53]line НДС 12% : 63.78 [11:27:53]line Наличными: 600.00 [11:27:53]line Безнал.: 0.00 [11:27:53]line Место: АЗС № 47 "Партнер Нефть" [11:27:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:27:53]line СНО: Общий режим [11:27:53]line Чек 128 14.04.2024 11:27 [11:27:53]line Смена: 357 ФФД: 1.0 [11:27:53]line ЗНМ: 0300000138 [11:27:53]line РНМ: 0000000000094237 [11:27:53]line Версия ККМ: 001 [11:27:53]line ФМ: 0000000000875019 [11:27:53]line ФД: 112229 [11:27:53]line ФПД: 255963971048211 [11:27:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112752&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112229&fm=255963971048211&tin=02508201610067®Number=0000000000094237&sum=60000 [11:27:54]OFD Sender: Processing packet 112229 [packets to send 71, broken 70] [11:27:54]ProducePacketName [11:27:54]name=ofd_packets/00112229 [11:27:54]OFD Sender: To server: pG, [11:27:54]CommunicateWithHost lk.salyk.kg:30040 [11:27:54]ConnectInit lk.salyk.kg [11:27:54]written 0, free lines is 4095 [11:27:54]Connected sock=7 [11:27:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 4E 07 01 EE 37 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 80 00 00 00 F4 03 04 00 B8 BD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B6 01 00 35 04 06 00 E8 CC 41 91 D3 13 FD CE 54 B2 4F D9 24 53 [11:27:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BF 60 47 00 86 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B6 01 00 F4 03 04 00 44 65 1B 66 B6 04 01 00 00 F1 8E A0 B1 3B D4 CB A1 [11:27:54]CommunicateWithHost err = 0 [11:27:54]CheckOFDResponse [11:27:54]1017 (14) - 77093643461234 [11:27:54]1041 (16) - 0000000000875019 [11:27:54]1040 (4) - 112229 [11:27:54]1012 (4) - 14.04.2024 05:10 [11:27:54]1206 (1) - 0 [11:27:54]OFD Sender: Remove packet 112229 [11:27:54]ProducePacketName [11:27:54]name=ofd_packets/00112229 [11:27:54]NVStorageDeleteData [11:27:54]Write to MH i2c: 01 00 00 BC 0A C6 [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: 01 07 00 BC 0A 00 00 00 00 00 ED 0C C6 [11:27:54]RasterBufferAndPrint [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]line [11:27:54]written 0, free lines is 3315 [11:27:54]MH_Cut [11:27:54]Write to MH i2c: D1 01 00 C3 0A 01 9F [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 01 00 [11:27:54]MH_I2C_Read... [11:27:54]Read from MH i2c: D1 01 00 C3 0A 00 9E [11:27:54]Write to MH i2c: 01 00 00 C4 0A CE [11:27:54]Write i2c OK [11:27:54]MH_I2C_Read... [11:27:55]OFD Sender: No OFD packet to send [11:27:55]*** Cut start [11:27:55]*** Partial cut [11:27:55]*** CUTSNS_PIN = 1 [11:27:55]*** CUTSNS_PIN = 0 [11:27:55]*** Brake cut motor [11:27:55]Read from MH i2c: 01 [11:27:55]MH_I2C_Read... [11:27:55]*** Stop cut motor [11:27:55]*** Cut end [11:27:55]Read from MH i2c: 01 07 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: 01 07 00 C4 0A 00 00 00 00 00 FF 0F E3 [11:27:55]process_action close_receipt done [11:27:55]requested_data is exist [11:27:55]produce_requested_data [11:27:55]requested_item fm.sn is exist - process it [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 11 00 00 [11:27:55]Write to MH i2c: E2 08 00 C5 0A 80 11 00 00 00 00 00 00 49 [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:55]Read from MH i2c: E2 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 17 00 [11:27:55]MH_I2C_Read... [11:27:55]Read from MH i2c: E2 17 00 C5 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9A [11:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:27:55]wFMCommunicate OK [11:27:55]requested_item fd.num is exist - process it [11:27:55]SAM_PROTO_GetFieldsCounters [11:27:55]wFMCommunicate request_size=4 [11:27:55]MH_SAM_APDU [11:27:55]CAPDU: 80 13 00 00 [11:27:55]Write to MH i2c: E2 08 00 C6 0A 80 13 00 00 00 00 00 00 4C [11:27:55]Write i2c OK [11:27:55]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 62 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 62 00 C6 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 65 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [11:27:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 65 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:56]wFMCommunicate OK [11:27:56]SAM_PROTO_GetFieldsCounters done [11:27:56]requested_item shift.num is exist - process it [11:27:56]requested_item shift.opened is exist - process it [11:27:56]req_shift_opened [11:27:56]FM_GetShiftState [11:27:56]SAM_PROTO_GetShiftState [11:27:56]wFMCommunicate request_size=4 [11:27:56]MH_SAM_APDU [11:27:56]CAPDU: 80 13 01 00 [11:27:56]Write to MH i2c: E2 08 00 C7 0A 80 13 01 00 00 00 00 00 4E [11:27:56]Write i2c OK [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 [11:27:56]MH_I2C_Read... [11:27:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:56]Read from MH i2c: E2 0E 00 [11:27:56]MH_I2C_Read... [11:27:56]Read from MH i2c: E2 0E 00 C7 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E6 [11:27:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:27:56]wFMCommunicate OK [11:27:56]SAM_PROTO_GetShiftState done [11:27:56]FM_GetShiftState done [11:27:56]req_shift_opened done [11:27:56]requested_item shift.open_date is exist - process it [11:27:56]req_shift_open_date [11:27:56]req_shift_open_date done [11:27:56]produce_requested_data done [11:27:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112229,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:27:56]process_action_free close_receipt [11:27:56]json_value_free [11:27:56]json_value_free done [11:27:56]process_json_proto returns [11:27:56]Send response to host [11:27:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112229,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:27:56]free response buf [11:27:56]execute_script done [11:27:56]execute_script returns [11:27:56]free content buf [11:27:56]Sock 9.Close socket [11:27:56]Sock 9.Thread stoped [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:03]accept exits with 10 [11:29:03]New connection [11:29:03]New thread 3067342180 created [11:29:03]Thread 3067198820 joined [11:29:03]Waiting for new connection... [11:29:03] Sock 10.Parse request [11:29:03]Sock 10.Check first char [11:29:03]Sock 10.First char is OK [11:29:03]request: POST /json_proto HTTP/1.0 [11:29:03]Method: POST [11:29:03]URL: /json_proto [11:29:03]Method is POST - this is cgi request [11:29:03]url: /json_proto [11:29:03]query_string will be loaded in cgi processing [11:29:03]execute_cgi json_proto POST (null) [11:29:03]execute_cgi path=json_proto method=POST [11:29:03]POST find Content-Length [11:29:03]Host: 172.17.96.197:8080 [11:29:03]Content-Length: 676 [11:29:03]Content-Type: application/json [11:29:03] [11:29:03]POST finish read [11:29:03]Found Content-Length = 676 [11:29:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48546", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:29:03]execute_script... [11:29:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48546", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:29:03]POST & json_proto [11:29:03]process_json_proto [11:29:03]json parsed OK: [11:29:03]protocol is kg_v1.0 [11:29:03]action value=close_receipt [11:29:03]process_action close_receipt [11:29:03]cmd_close_receipt [11:29:03]MH_GetDate [11:29:03]Write to MH i2c: F0 00 00 C8 0A C1 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: F0 09 00 C8 0A 00 00 BE 1B 66 E0 85 7F 64 51 [11:29:03]GetLastDocTimeStamp 1713094072 [11:29:03]current date 1713094144 [11:29:03]FM_GetShiftState [11:29:03]SAM_PROTO_GetShiftState [11:29:03]wFMCommunicate request_size=4 [11:29:03]MH_SAM_APDU [11:29:03]CAPDU: 80 13 01 00 [11:29:03]Write to MH i2c: E2 08 00 C9 0A 80 13 01 00 00 00 00 00 50 [11:29:03]Write i2c OK [11:29:03]MH_I2C_Read... [11:29:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:03]Read from MH i2c: E2 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 [11:29:03]MH_I2C_Read... [11:29:03]Read from MH i2c: E2 0E 00 C9 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E8 [11:29:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:29:03]wFMCommunicate OK [11:29:03]SAM_PROTO_GetShiftState done [11:29:03]FM_GetShiftState done [11:29:03]opened in 1713054696 [11:29:03]opened+sec_in_day 1713141096 [11:29:03]quantity*price = 50025 [11:29:03]sum+1 = 50026 [11:29:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 129 14.04.2024 11:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112230 ФПД: 42139765632760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112230&fm=42139765632760&tin=02508201610067®Number=0000000000094237&sum=50000 [11:29:04]StoreToDocumentArchive [11:29:04]shift 357 fd 112230 [11:29:04]save to /storage/0357/doc_00112230 [11:29:04]save last doc name /storage/0357/doc_00112230 to /storage/kkm_last_doc_name [11:29:04]save OK [11:29:04]Clear old archive folders... [11:29:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:29:04]tlvbuf is 017CDBA0 [11:29:04]SAM_PROTO_ClearQueue [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 09 00 00 [11:29:04]Write to MH i2c: E2 08 00 D6 0A 80 09 00 00 00 00 00 00 52 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 D6 0A 00 90 00 54 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]SAM_PROTO_ClearQueue done [11:29:04]KKMCreateOFDPacket [11:29:04]OFDProtocolAddRootSTLVToBuf [11:29:04]FM_MakeSignedData [11:29:04]FM_MakeSignedData [11:29:04]SAM_PROTO_SignData [11:29:04]wFMCommunicate request_size=4 [11:29:04]MH_SAM_APDU [11:29:04]CAPDU: 80 0D 01 02 [11:29:04]Write to MH i2c: E2 08 00 D7 0A 80 0D 01 02 00 00 00 00 5A [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:04]Read from MH i2c: E2 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 [11:29:04]MH_I2C_Read... [11:29:04]Read from MH i2c: E2 03 00 D7 0A 00 90 00 55 [11:29:04]RAPDU: 90 00 [11:29:04]wFMCommunicate OK [11:29:04]wFMCommunicate request_size=255 [11:29:04]MH_SAM_APDU [11:29:04]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 81 00 00 00 F4 03 04 00 00 BE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B6 01 00 35 04 06 00 26 [11:29:04]Write to MH i2c: E2 02 01 D8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 81 00 00 00 F4 03 04 00 00 BE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B6 01 00 35 04 06 00 26 00 00 66 [11:29:04]Write i2c OK [11:29:04]MH_I2C_Read... [11:29:05]OFD Sender: No OFD packet to send [11:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 D8 0A 00 90 00 56 [11:29:05]RAPDU: 90 00 [11:29:05]wFMCommunicate OK [11:29:05]wFMCommunicate request_size=10 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 0D 02 02 05 53 6D C2 EE F8 [11:29:05]Write to MH i2c: E2 0D 00 D9 0A 80 0D 02 02 05 00 53 6D C2 EE F8 00 00 CF [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 03 00 D9 0A 00 90 00 57 [11:29:05]RAPDU: 90 00 [11:29:05]wFMCommunicate OK [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 0D 03 02 [11:29:05]Write to MH i2c: E2 08 00 DA 0A 80 0D 03 02 00 00 00 00 5F [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0B 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 0B 00 DA 0A 00 8B A3 0F AF 2E E5 35 DE 90 00 72 [11:29:05]RAPDU: 8B A3 0F AF 2E E5 35 DE 90 00 [11:29:05]wFMCommunicate OK [11:29:05]SAM_PROTO_SignData done [11:29:05]FM_MakeSignedData done [11:29:05]CreateOFDProtocolMessage [11:29:05]wFMCommunicate request_size=4 [11:29:05]MH_SAM_APDU [11:29:05]CAPDU: 80 11 00 00 [11:29:05]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:05]Read from MH i2c: E2 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B0 [11:29:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:29:05]wFMCommunicate OK [11:29:05]CreateOFDProtocolMessage done [11:29:05]OFDSenderStorePacket 112230 [11:29:05]StoreOFDPacket docnum=112230 [11:29:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 09 19 07 01 CE 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 81 00 00 00 F4 03 04 00 00 BE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B6 01 00 35 04 06 00 26 53 6D C2 EE F8 8B A3 0F AF 2E E5 35 DE [11:29:05]CheckFolder [11:29:05]dirname=/storage/ofd_packets [11:29:05]CheckFolder done [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00112230 [11:29:05]NVStorageSaveData ofd_packets/00112230 [11:29:05]File name is /storage/ofd_packets/00112230 [11:29:05]Write 301 bytes [11:29:05]NVStorageSaveData done [11:29:05]OFDSenderStorePacket done [11:29:05]KKMCreateOFDPacket done [11:29:05]NVStorageSaveData kkm_last_timestamp [11:29:05]File name is /storage/kkm_last_timestamp [11:29:05]Write 4 bytes [11:29:05]NVStorageSaveData done [11:29:05]ExternCall_PrintAddStr [11:29:05]wPrintStart [11:29:05]Write to MH i2c: 01 00 00 DC 0A E6 [11:29:05]Write i2c OK [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 [11:29:05]MH_I2C_Read... [11:29:05]Read from MH i2c: 01 07 00 DC 0A 00 00 00 00 00 FF 0F FB [11:29:05]RasterBufferAndPrint [11:29:05]line Счет N : (1)48546 [11:29:05]line ИНН: 02508201610067 [11:29:05]line Контрольно-Кассовый Чек [11:29:05]line ПРОДАЖА [11:29:05]line ТРК (МРК, ГНК) : 32 [11:29:05]line Товар: 2710124130 [11:29:05]line Аи-92-К-5 [11:29:05]line 7.780 * 64.30 [11:29:05]line = 500.25 [11:29:05]line НДС 12% НСП 1% [11:29:05]line > о реализуемом товаре [11:29:05]line ОКРУГЛЕНИЕ: -0.25 [11:29:05]line ИТОГО: 500.00 [11:29:05]line Внесено: 500.00 [11:29:05]line СДАЧА: 0.00 [11:29:05]line НСП 1% : 4.43 [11:29:05]line НДС 12% : 53.12 [11:29:05]line Наличными: 500.00 [11:29:05]line Безнал.: 0.00 [11:29:05]line Место: АЗС № 47 "Партнер Нефть" [11:29:05]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:29:05]line СНО: Общий режим [11:29:05]line Чек 129 14.04.2024 11:29 [11:29:05]line Смена: 357 ФФД: 1.0 [11:29:05]line ЗНМ: 0300000138 [11:29:05]line РНМ: 0000000000094237 [11:29:05]line Версия ККМ: 001 [11:29:05]line ФМ: 0000000000875019 [11:29:05]line ФД: 112230 [11:29:05]line ФПД: 42139765632760 [11:29:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T112904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112230&fm=42139765632760&tin=02508201610067®Number=0000000000094237&sum=50000 [11:29:05]OFD Sender: Processing packet 112230 [packets to send 71, broken 70] [11:29:05]ProducePacketName [11:29:05]name=ofd_packets/00112230 [11:29:05]OFD Sender: To server: pG, [11:29:05]CommunicateWithHost lk.salyk.kg:30040 [11:29:05]ConnectInit lk.salyk.kg [11:29:05]written 0, free lines is 4095 [11:29:05]Connected sock=9 [11:29:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 09 19 07 01 CE 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 81 00 00 00 F4 03 04 00 00 BE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B6 01 00 35 04 06 00 26 53 6D C2 EE F8 8B A3 0F AF 2E E5 35 DE [11:29:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7A 71 47 00 45 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B6 01 00 F4 03 04 00 8B 65 1B 66 B6 04 01 00 00 FC 3C C5 80 7C 03 BB 3C [11:29:06]CommunicateWithHost err = 0 [11:29:06]CheckOFDResponse [11:29:06]1017 (14) - 77093643461234 [11:29:06]1041 (16) - 0000000000875019 [11:29:06]1040 (4) - 112230 [11:29:06]1012 (4) - 14.04.2024 05:11 [11:29:06]1206 (1) - 0 [11:29:06]OFD Sender: Remove packet 112230 [11:29:06]ProducePacketName [11:29:06]name=ofd_packets/00112230 [11:29:06]NVStorageDeleteData [11:29:06]Write to MH i2c: 01 00 00 07 0B 12 [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: 01 07 00 07 0B 00 00 00 00 00 F5 0C 1A [11:29:06]RasterBufferAndPrint [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]line [11:29:06]written 0, free lines is 3323 [11:29:06]MH_Cut [11:29:06]Write to MH i2c: D1 01 00 0E 0B 01 EB [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 01 00 [11:29:06]MH_I2C_Read... [11:29:06]Read from MH i2c: D1 01 00 0E 0B 00 EA [11:29:06]Write to MH i2c: 01 00 00 0F 0B 1A [11:29:06]Write i2c OK [11:29:06]MH_I2C_Read... [11:29:06]OFD Sender: No OFD packet to send [11:29:06]*** Cut start [11:29:06]*** Partial cut [11:29:06]*** CUTSNS_PIN = 1 [11:29:06]*** CUTSNS_PIN = 0 [11:29:07]*** Brake cut motor [11:29:07]Read from MH i2c: 01 [11:29:07]MH_I2C_Read... [11:29:07]*** Stop cut motor [11:29:07]*** Cut end [11:29:07]Read from MH i2c: 01 07 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: 01 07 00 0F 0B 00 00 00 00 00 FF 0F 2F [11:29:07]process_action close_receipt done [11:29:07]requested_data is exist [11:29:07]produce_requested_data [11:29:07]requested_item fm.sn is exist - process it [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 11 00 00 [11:29:07]Write to MH i2c: E2 08 00 10 0B 80 11 00 00 00 00 00 00 95 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 17 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 17 00 10 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E6 [11:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:29:07]wFMCommunicate OK [11:29:07]requested_item fd.num is exist - process it [11:29:07]SAM_PROTO_GetFieldsCounters [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 00 00 [11:29:07]Write to MH i2c: E2 08 00 11 0B 80 13 00 00 00 00 00 00 98 [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 62 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 62 00 11 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 66 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [11:29:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 66 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetFieldsCounters done [11:29:07]requested_item shift.num is exist - process it [11:29:07]requested_item shift.opened is exist - process it [11:29:07]req_shift_opened [11:29:07]FM_GetShiftState [11:29:07]SAM_PROTO_GetShiftState [11:29:07]wFMCommunicate request_size=4 [11:29:07]MH_SAM_APDU [11:29:07]CAPDU: 80 13 01 00 [11:29:07]Write to MH i2c: E2 08 00 12 0B 80 13 01 00 00 00 00 00 9A [11:29:07]Write i2c OK [11:29:07]MH_I2C_Read... [11:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:07]Read from MH i2c: E2 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 [11:29:07]MH_I2C_Read... [11:29:07]Read from MH i2c: E2 0E 00 12 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 32 [11:29:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:29:07]wFMCommunicate OK [11:29:07]SAM_PROTO_GetShiftState done [11:29:07]FM_GetShiftState done [11:29:07]req_shift_opened done [11:29:07]requested_item shift.open_date is exist - process it [11:29:07]req_shift_open_date [11:29:07]req_shift_open_date done [11:29:07]produce_requested_data done [11:29:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112230,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:29:07]process_action_free close_receipt [11:29:07]json_value_free [11:29:07]json_value_free done [11:29:07]process_json_proto returns [11:29:07]Send response to host [11:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112230,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:29:07]free response buf [11:29:07]execute_script done [11:29:07]execute_script returns [11:29:07]free content buf [11:29:07]Sock 10.Close socket [11:29:07]Sock 10.Thread stoped [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:46]OFD Sender: No OFD packet to send [11:31:51]OFD Sender: No OFD packet to send [11:31:56]OFD Sender: No OFD packet to send [11:32:01]OFD Sender: No OFD packet to send [11:32:06]OFD Sender: No OFD packet to send [11:32:11]OFD Sender: No OFD packet to send [11:32:16]OFD Sender: No OFD packet to send [11:32:21]OFD Sender: No OFD packet to send [11:32:26]OFD Sender: No OFD packet to send [11:32:31]OFD Sender: No OFD packet to send [11:32:36]OFD Sender: No OFD packet to send [11:32:41]OFD Sender: No OFD packet to send [11:32:46]OFD Sender: No OFD packet to send [11:32:51]OFD Sender: No OFD packet to send [11:32:56]OFD Sender: No OFD packet to send [11:33:01]OFD Sender: No OFD packet to send [11:33:06]OFD Sender: No OFD packet to send [11:33:11]OFD Sender: No OFD packet to send [11:33:16]OFD Sender: No OFD packet to send [11:33:19]accept exits with 7 [11:33:19]New connection [11:33:19]New thread 3067198820 created [11:33:19]Thread 3067342180 joined [11:33:19]Waiting for new connection... [11:33:19] Sock 7.Parse request [11:33:19]Sock 7.Check first char [11:33:19]Sock 7.First char is OK [11:33:19]request: POST /json_proto HTTP/1.0 [11:33:19]Method: POST [11:33:19]URL: /json_proto [11:33:19]Method is POST - this is cgi request [11:33:19]url: /json_proto [11:33:19]query_string will be loaded in cgi processing [11:33:19]execute_cgi json_proto POST (null) [11:33:19]execute_cgi path=json_proto method=POST [11:33:19]POST find Content-Length [11:33:19]Host: 172.17.96.197:8080 [11:33:19]Content-Length: 674 [11:33:19]Content-Type: application/json [11:33:19] [11:33:19]POST finish read [11:33:19]Found Content-Length = 674 [11:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48547", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:33:19]execute_script... [11: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)48547", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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:33:19]POST & json_proto [11:33:19]process_json_proto [11:33:19]json parsed OK: [11:33:19]protocol is kg_v1.0 [11:33:19]action value=close_receipt [11:33:19]process_action close_receipt [11:33:19]cmd_close_receipt [11:33:19]MH_GetDate [11:33:19]Write to MH i2c: F0 00 00 13 0B 0D [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 09 00 [11:33:19]MH_I2C_Read... [11:33:19]Read from MH i2c: F0 09 00 13 0B 00 00 BF 1B 66 E0 85 7F 64 9E [11:33:19]GetLastDocTimeStamp 1713094144 [11:33:19]current date 1713094400 [11:33:19]FM_GetShiftState [11:33:19]SAM_PROTO_GetShiftState [11:33:19]wFMCommunicate request_size=4 [11:33:19]MH_SAM_APDU [11:33:19]CAPDU: 80 13 01 00 [11:33:19]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [11:33:19]Write i2c OK [11:33:19]MH_I2C_Read... [11:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:20]Read from MH i2c: E2 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 [11:33:20]MH_I2C_Read... [11:33:20]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 34 [11:33:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:33:20]wFMCommunicate OK [11:33:20]SAM_PROTO_GetShiftState done [11:33:20]FM_GetShiftState done [11:33:20]opened in 1713054696 [11:33:20]opened+sec_in_day 1713141096 [11:33:20]quantity*price = 100039 [11:33:20]sum+1 = 100041 [11:33:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 130 14.04.2024 11:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112231 ФПД: 203973572690838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113320&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112231&fm=203973572690838&tin=02508201610067®Number=0000000000094237&sum=100000 [11:33:21]StoreToDocumentArchive [11:33:21]shift 357 fd 112231 [11:33:21]save to /storage/0357/doc_00112231 [11:33:21]save last doc name /storage/0357/doc_00112231 to /storage/kkm_last_doc_name [11:33:21]save OK [11:33:21]Clear old archive folders... [11:33:21]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:33:21]tlvbuf is 017DC590 [11:33:21]SAM_PROTO_ClearQueue [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 09 00 00 [11:33:21]Write to MH i2c: E2 08 00 21 0B 80 09 00 00 00 00 00 00 9E [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 21 0B 00 90 00 A0 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]SAM_PROTO_ClearQueue done [11:33:21]KKMCreateOFDPacket [11:33:21]OFDProtocolAddRootSTLVToBuf [11:33:21]FM_MakeSignedData [11:33:21]FM_MakeSignedData [11:33:21]SAM_PROTO_SignData [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 0D 01 02 [11:33:21]Write to MH i2c: E2 08 00 22 0B 80 0D 01 02 00 00 00 00 A6 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 22 0B 00 90 00 A1 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]wFMCommunicate request_size=255 [11:33:21]MH_SAM_APDU [11:33:21]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 82 00 00 00 F4 03 04 00 00 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B6 01 00 35 04 06 00 [11:33:21]Write to MH i2c: E2 02 01 23 0B 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 82 00 00 00 F4 03 04 00 00 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B6 01 00 35 04 06 00 00 00 FD [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]wFMCommunicate request_size=11 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 0D 02 02 06 B9 83 4C 58 03 96 [11:33:21]Write to MH i2c: E2 0E 00 24 0B 80 0D 02 02 06 00 B9 83 4C 58 03 96 00 00 2E [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [11:33:21]RAPDU: 90 00 [11:33:21]wFMCommunicate OK [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 0D 03 02 [11:33:21]Write to MH i2c: E2 08 00 25 0B 80 0D 03 02 00 00 00 00 AB [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 0B 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 0B 00 25 0B 00 15 3A 0F BE 70 1C E9 69 90 00 A6 [11:33:21]RAPDU: 15 3A 0F BE 70 1C E9 69 90 00 [11:33:21]wFMCommunicate OK [11:33:21]SAM_PROTO_SignData done [11:33:21]FM_MakeSignedData done [11:33:21]CreateOFDProtocolMessage [11:33:21]wFMCommunicate request_size=4 [11:33:21]MH_SAM_APDU [11:33:21]CAPDU: 80 11 00 00 [11:33:21]Write to MH i2c: E2 08 00 26 0B 80 11 00 00 00 00 00 00 AB [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:21]Read from MH i2c: E2 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: E2 17 00 26 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FC [11:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:33:21]wFMCommunicate OK [11:33:21]CreateOFDProtocolMessage done [11:33:21]OFDSenderStorePacket 112231 [11:33:21]StoreOFDPacket docnum=112231 [11:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 40 15 08 01 C3 65 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 82 00 00 00 F4 03 04 00 00 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B6 01 00 35 04 06 00 B9 83 4C 58 03 96 15 3A 0F BE 70 1C E9 69 [11:33:21]CheckFolder [11:33:21]dirname=/storage/ofd_packets [11:33:21]CheckFolder done [11:33:21]ProducePacketName [11:33:21]name=ofd_packets/00112231 [11:33:21]NVStorageSaveData ofd_packets/00112231 [11:33:21]File name is /storage/ofd_packets/00112231 [11:33:21]Write 302 bytes [11:33:21]NVStorageSaveData done [11:33:21]OFDSenderStorePacket done [11:33:21]KKMCreateOFDPacket done [11:33:21]NVStorageSaveData kkm_last_timestamp [11:33:21]File name is /storage/kkm_last_timestamp [11:33:21]Write 4 bytes [11:33:21]NVStorageSaveData done [11:33:21]ExternCall_PrintAddStr [11:33:21]wPrintStart [11:33:21]Write to MH i2c: 01 00 00 27 0B 32 [11:33:21]Write i2c OK [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 [11:33:21]MH_I2C_Read... [11:33:21]Read from MH i2c: 01 07 00 27 0B 00 00 00 00 00 FF 0F 47 [11:33:21]RasterBufferAndPrint [11:33:21]line Счет N : (1)48547 [11:33:21]line ИНН: 02508201610067 [11:33:21]line Контрольно-Кассовый Чек [11:33:21]line ПРОДАЖА [11:33:21]line ТРК (МРК, ГНК) : 41 [11:33:21]line Товар: 2710124130 [11:33:21]line SUPER 92-К-5 [11:33:21]line 15.320 * 65.30 [11:33:21]line = 1000.40 [11:33:21]line НДС 12% НСП 1% [11:33:21]line > о реализуемом товаре [11:33:21]line ОКРУГЛЕНИЕ: -0.40 [11:33:21]line ИТОГО: 1000.00 [11:33:21]line Внесено: 1000.00 [11:33:21]line СДАЧА: 0.00 [11:33:21]line НСП 1% : 8.85 [11:33:21]line НДС 12% : 106.24 [11:33:21]line Наличными: 1000.00 [11:33:21]line Безнал.: 0.00 [11:33:21]line Место: АЗС № 47 "Партнер Нефть" [11:33:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:33:21]line СНО: Общий режим [11:33:21]line Чек 130 14.04.2024 11:33 [11:33:21]line Смена: 357 ФФД: 1.0 [11:33:21]line ЗНМ: 0300000138 [11:33:21]line РНМ: 0000000000094237 [11:33:21]line Версия ККМ: 001 [11:33:21]line ФМ: 0000000000875019 [11:33:21]line ФД: 112231 [11:33:21]line ФПД: 203973572690838 [11:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113320&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112231&fm=203973572690838&tin=02508201610067®Number=0000000000094237&sum=100000 [11:33:21]written 0, free lines is 4095 [11:33:21]OFD Sender: Processing packet 112231 [packets to send 71, broken 70] [11:33:21]ProducePacketName [11:33:21]name=ofd_packets/00112231 [11:33:21]OFD Sender: To server: pG, [11:33:21]CommunicateWithHost lk.salyk.kg:30040 [11:33:21]ConnectInit lk.salyk.kg [11:33:21]Connected sock=11 [11:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 40 15 08 01 C3 65 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 82 00 00 00 F4 03 04 00 00 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B6 01 00 35 04 06 00 B9 83 4C 58 03 96 15 3A 0F BE 70 1C E9 69 [11:33:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FE DE 47 00 22 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B6 01 00 F4 03 04 00 8B 66 1B 66 B6 04 01 00 00 EA EA 47 95 32 06 29 43 [11:33:22]CommunicateWithHost err = 0 [11:33:22]CheckOFDResponse [11:33:22]1017 (14) - 77093643461234 [11:33:22]1041 (16) - 0000000000875019 [11:33:22]1040 (4) - 112231 [11:33:22]1012 (4) - 14.04.2024 05:15 [11:33:22]1206 (1) - 0 [11:33:22]OFD Sender: Remove packet 112231 [11:33:22]ProducePacketName [11:33:22]name=ofd_packets/00112231 [11:33:22]NVStorageDeleteData [11:33:22]Write to MH i2c: 01 00 00 52 0B 5D [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: 01 07 00 52 0B 00 00 00 00 00 F3 0C 63 [11:33:22]RasterBufferAndPrint [11:33:22]line [11:33:22]line [11:33:22]line [11:33:22]line [11:33:22]line [11:33:22]written 0, free lines is 3321 [11:33:22]MH_Cut [11:33:22]Write to MH i2c: D1 01 00 59 0B 01 36 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: D1 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: D1 01 00 [11:33:22]MH_I2C_Read... [11:33:22]Read from MH i2c: D1 01 00 59 0B 00 35 [11:33:22]Write to MH i2c: 01 00 00 5A 0B 65 [11:33:22]Write i2c OK [11:33:22]MH_I2C_Read... [11:33:22]OFD Sender: No OFD packet to send [11:33:22]*** Cut start [11:33:22]*** Partial cut [11:33:22]*** CUTSNS_PIN = 1 [11:33:22]*** CUTSNS_PIN = 0 [11:33:23]*** Brake cut motor [11:33:23]Read from MH i2c: 01 [11:33:23]MH_I2C_Read... [11:33:23]*** Stop cut motor [11:33:23]*** Cut end [11:33:23]Read from MH i2c: 01 07 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: 01 07 00 5A 0B 00 00 00 00 00 FF 0F 7A [11:33:23]process_action close_receipt done [11:33:23]requested_data is exist [11:33:23]produce_requested_data [11:33:23]requested_item fm.sn is exist - process it [11:33:23]wFMCommunicate request_size=4 [11:33:23]MH_SAM_APDU [11:33:23]CAPDU: 80 11 00 00 [11:33:23]Write to MH i2c: E2 08 00 5B 0B 80 11 00 00 00 00 00 00 E0 [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 17 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 17 00 5B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 31 [11:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:33:23]wFMCommunicate OK [11:33:23]requested_item fd.num is exist - process it [11:33:23]SAM_PROTO_GetFieldsCounters [11:33:23]wFMCommunicate request_size=4 [11:33:23]MH_SAM_APDU [11:33:23]CAPDU: 80 13 00 00 [11:33:23]Write to MH i2c: E2 08 00 5C 0B 80 13 00 00 00 00 00 00 E3 [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 62 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 62 00 5C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 67 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 67 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:23]wFMCommunicate OK [11:33:23]SAM_PROTO_GetFieldsCounters done [11:33:23]requested_item shift.num is exist - process it [11:33:23]requested_item shift.opened is exist - process it [11:33:23]req_shift_opened [11:33:23]FM_GetShiftState [11:33:23]SAM_PROTO_GetShiftState [11:33:23]wFMCommunicate request_size=4 [11:33:23]MH_SAM_APDU [11:33:23]CAPDU: 80 13 01 00 [11:33:23]Write to MH i2c: E2 08 00 5D 0B 80 13 01 00 00 00 00 00 E5 [11:33:23]Write i2c OK [11:33:23]MH_I2C_Read... [11:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:23]Read from MH i2c: E2 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 0E 00 [11:33:23]MH_I2C_Read... [11:33:23]Read from MH i2c: E2 0E 00 5D 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7D [11:33:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:33:23]wFMCommunicate OK [11:33:23]SAM_PROTO_GetShiftState done [11:33:23]FM_GetShiftState done [11:33:23]req_shift_opened done [11:33:23]requested_item shift.open_date is exist - process it [11:33:23]req_shift_open_date [11:33:23]req_shift_open_date done [11:33:23]produce_requested_data done [11:33:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112231,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:33:23]process_action_free close_receipt [11:33:23]json_value_free [11:33:23]json_value_free done [11:33:23]process_json_proto returns [11:33:23]Send response to host [11:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112231,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:33:23]free response buf [11:33:23]execute_script done [11:33:23]execute_script returns [11:33:23]free content buf [11:33:23]Sock 7.Close socket [11:33:23]Sock 7.Thread stoped [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:56]accept exits with 9 [11:34:56]New connection [11:34:56]New thread 3067342180 created [11:34:56]Thread 3067198820 joined [11:34:56]Waiting for new connection... [11:34:56] Sock 9.Parse request [11:34:56]Sock 9.Check first char [11:34:56]Sock 9.First char is OK [11:34:56]request: POST /json_proto HTTP/1.0 [11:34:56]Method: POST [11:34:56]URL: /json_proto [11:34:56]Method is POST - this is cgi request [11:34:56]url: /json_proto [11:34:56]query_string will be loaded in cgi processing [11:34:56]execute_cgi json_proto POST (null) [11:34:56]execute_cgi path=json_proto method=POST [11:34:56]POST find Content-Length [11:34:56]Host: 172.17.96.197:8080 [11:34:56]Content-Length: 819 [11:34:56]Content-Type: application/json [11:34:56] [11:34:56]POST finish read [11:34:56]Found Content-Length = 819 [11:34:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "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" ] } } [11:34:56]execute_script... [11:34:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "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" ] } } [11:34:56]POST & json_proto [11:34:56]process_json_proto [11:34:56]json parsed OK: [11:34:56]protocol is kg_v1.0 [11:34:56]action value=close_receipt [11:34:56]process_action close_receipt [11:34:56]cmd_close_receipt [11:34:56]MH_GetDate [11:34:56]Write to MH i2c: F0 00 00 5E 0B 58 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: F0 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: F0 09 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: F0 09 00 5E 0B 00 61 BF 1B 66 E0 85 7F 64 4A [11:34:56]GetLastDocTimeStamp 1713094400 [11:34:56]current date 1713094497 [11:34:56]FM_GetShiftState [11:34:56]SAM_PROTO_GetShiftState [11:34:56]wFMCommunicate request_size=4 [11:34:56]MH_SAM_APDU [11:34:56]CAPDU: 80 13 01 00 [11:34:56]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [11:34:56]Write i2c OK [11:34:56]MH_I2C_Read... [11:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:56]Read from MH i2c: E2 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 0E 00 [11:34:56]MH_I2C_Read... [11:34:56]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7F [11:34:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:34:56]wFMCommunicate OK [11:34:56]SAM_PROTO_GetShiftState done [11:34:56]FM_GetShiftState done [11:34:56]opened in 1713054696 [11:34:56]opened+sec_in_day 1713141096 [11:34:56]quantity*price = 70010 [11:34:56]sum+1 = 70012 [11:34:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.11 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.11 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 131 14.04.2024 11:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112232 ФПД: 117289054907105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113457&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112232&fm=117289054907105&tin=02508201610067®Number=0000000000094237&sum=70011 [11:34:57]StoreToDocumentArchive [11:34:57]shift 357 fd 112232 [11:34:57]save to /storage/0357/doc_00112232 [11:34:57]save last doc name /storage/0357/doc_00112232 to /storage/kkm_last_doc_name [11:34:57]save OK [11:34:57]Clear old archive folders... [11:34:57]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:34:57]tlvbuf is 0175DA60 [11:34:57]SAM_PROTO_ClearQueue [11:34:57]wFMCommunicate request_size=4 [11:34:57]MH_SAM_APDU [11:34:57]CAPDU: 80 09 00 00 [11:34:57]Write to MH i2c: E2 08 00 6C 0B 80 09 00 00 00 00 00 00 E9 [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:57]Read from MH i2c: E2 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 03 00 [11:34:57]MH_I2C_Read... [11:34:57]Read from MH i2c: E2 03 00 6C 0B 00 90 00 EB [11:34:57]RAPDU: 90 00 [11:34:57]wFMCommunicate OK [11:34:57]SAM_PROTO_ClearQueue done [11:34:57]KKMCreateOFDPacket [11:34:57]OFDProtocolAddRootSTLVToBuf [11:34:57]FM_MakeSignedData [11:34:57]FM_MakeSignedData [11:34:57]SAM_PROTO_SignData [11:34:57]wFMCommunicate request_size=4 [11:34:57]MH_SAM_APDU [11:34:57]CAPDU: 80 0D 01 02 [11:34:57]Write to MH i2c: E2 08 00 6D 0B 80 0D 01 02 00 00 00 00 F1 [11:34:57]Write i2c OK [11:34:57]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 6D 0B 00 90 00 EC [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=255 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 83 00 00 00 F4 03 04 00 61 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B6 01 00 35 04 06 00 6A AC [11:34:58]Write to MH i2c: E2 02 01 6E 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 83 00 00 00 F4 03 04 00 61 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B6 01 00 35 04 06 00 6A AC 00 00 63 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=9 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 02 02 04 7C 74 2A E1 [11:34:58]Write to MH i2c: E2 0C 00 6F 0B 80 0D 02 02 04 00 7C 74 2A E1 00 00 F7 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [11:34:58]RAPDU: 90 00 [11:34:58]wFMCommunicate OK [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 0D 03 02 [11:34:58]Write to MH i2c: E2 08 00 70 0B 80 0D 03 02 00 00 00 00 F6 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0B 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 0B 00 70 0B 00 E2 62 91 7C 6C 54 9E C0 90 00 66 [11:34:58]RAPDU: E2 62 91 7C 6C 54 9E C0 90 00 [11:34:58]wFMCommunicate OK [11:34:58]SAM_PROTO_SignData done [11:34:58]FM_MakeSignedData done [11:34:58]CreateOFDProtocolMessage [11:34:58]wFMCommunicate request_size=4 [11:34:58]MH_SAM_APDU [11:34:58]CAPDU: 80 11 00 00 [11:34:58]Write to MH i2c: E2 08 00 71 0B 80 11 00 00 00 00 00 00 F6 [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:58]Read from MH i2c: E2 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: E2 17 00 71 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 47 [11:34:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:34:58]wFMCommunicate OK [11:34:58]CreateOFDProtocolMessage done [11:34:58]OFDSenderStorePacket 112232 [11:34:58]StoreOFDPacket docnum=112232 [11:34:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 66 F0 06 01 23 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 83 00 00 00 F4 03 04 00 61 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B6 01 00 35 04 06 00 6A AC 7C 74 2A E1 E2 62 91 7C 6C 54 9E C0 [11:34:58]CheckFolder [11:34:58]dirname=/storage/ofd_packets [11:34:58]CheckFolder done [11:34:58]ProducePacketName [11:34:58]name=ofd_packets/00112232 [11:34:58]NVStorageSaveData ofd_packets/00112232 [11:34:58]File name is /storage/ofd_packets/00112232 [11:34:58]Write 300 bytes [11:34:58]NVStorageSaveData done [11:34:58]OFDSenderStorePacket done [11:34:58]KKMCreateOFDPacket done [11:34:58]NVStorageSaveData kkm_last_timestamp [11:34:58]File name is /storage/kkm_last_timestamp [11:34:58]Write 4 bytes [11:34:58]NVStorageSaveData done [11:34:58]ExternCall_PrintAddStr [11:34:58]wPrintStart [11:34:58]Write to MH i2c: 01 00 00 72 0B 7D [11:34:58]Write i2c OK [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 07 00 [11:34:58]MH_I2C_Read... [11:34:58]Read from MH i2c: 01 07 00 72 0B 00 00 00 00 00 FF 0F 92 [11:34:58]RasterBufferAndPrint [11:34:58]line Счет N : (1)48548 [11:34:58]line ИНН: 02508201610067 [11:34:58]line Контрольно-Кассовый Чек [11:34:58]line ПРОДАЖА [11:34:58]line ТРК (МРК, ГНК) : 72 [11:34:58]line Товар: 2711190000 [11:34:58]line ГАЗ-К-5 [11:34:58]line 21.410 * 32.70 [11:34:58]line = 700.11 [11:34:58]line НДС 12% НСП 1% [11:34:58]line > о реализуемом товаре [11:34:58]line ИТОГО: 700.11 [11:34:58]line НСП 1% : 6.20 [11:34:58]line НДС 12% : 74.35 [11:34:58]line Наличными: 0.00 [11:34:58]line Безнал.: 700.11 [11:34:58]line Место: АЗС № 47 "Партнер Нефть" [11:34:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:34:58]line СНО: Общий режим [11:34:58]line Чек 131 14.04.2024 11:34 [11:34:58]line Смена: 357 ФФД: 1.0 [11:34:58]line ЗНМ: 0300000138 [11:34:58]line РНМ: 0000000000094237 [11:34:58]line Версия ККМ: 001 [11:34:58]line Платежная система: Бакай Банк [11:34:58]line ФМ: 0000000000875019 [11:34:58]line ФД: 112232 [11:34:58]line ФПД: 117289054907105 [11:34:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113457&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112232&fm=117289054907105&tin=02508201610067®Number=0000000000094237&sum=70011 [11:34:58]OFD Sender: Processing packet 112232 [packets to send 71, broken 70] [11:34:58]ProducePacketName [11:34:58]name=ofd_packets/00112232 [11:34:58]OFD Sender: To server: pG, [11:34:58]CommunicateWithHost lk.salyk.kg:30040 [11:34:58]ConnectInit lk.salyk.kg [11:34:58]written 0, free lines is 4095 [11:34:59]Connected sock=11 [11:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 66 F0 06 01 23 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 83 00 00 00 F4 03 04 00 61 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B6 01 00 35 04 06 00 6A AC 7C 74 2A E1 E2 62 91 7C 6C 54 9E C0 [11:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0C 40 47 00 5B 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B6 01 00 F4 03 04 00 EC 66 1B 66 B6 04 01 00 00 CC F3 B3 44 E9 08 4E CF [11:34:59]CommunicateWithHost err = 0 [11:34:59]CheckOFDResponse [11:34:59]1017 (14) - 77093643461234 [11:34:59]1041 (16) - 0000000000875019 [11:34:59]1040 (4) - 112232 [11:34:59]1012 (4) - 14.04.2024 05:17 [11:34:59]1206 (1) - 0 [11:34:59]OFD Sender: Remove packet 112232 [11:34:59]ProducePacketName [11:34:59]name=ofd_packets/00112232 [11:34:59]NVStorageDeleteData [11:34:59]Write to MH i2c: 01 00 00 9C 0B A7 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: 01 07 00 9C 0B 00 00 00 00 00 E0 0C 9A [11:34:59]RasterBufferAndPrint [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]line [11:34:59]written 0, free lines is 3302 [11:34:59]MH_Cut [11:34:59]Write to MH i2c: D1 01 00 A3 0B 01 80 [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 01 00 [11:34:59]MH_I2C_Read... [11:34:59]Read from MH i2c: D1 01 00 A3 0B 00 7F [11:34:59]Write to MH i2c: 01 00 00 A4 0B AF [11:34:59]Write i2c OK [11:34:59]MH_I2C_Read... [11:34:59]OFD Sender: No OFD packet to send [11:34:59]*** Cut start [11:34:59]*** Partial cut [11:34:59]*** CUTSNS_PIN = 1 [11:35:00]*** CUTSNS_PIN = 0 [11:35:00]*** Brake cut motor [11:35:00]Read from MH i2c: 01 [11:35:00]MH_I2C_Read... [11:35:00]*** Stop cut motor [11:35:00]*** Cut end [11:35:00]Read from MH i2c: 01 07 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: 01 07 00 A4 0B 00 00 00 00 00 FF 0F C4 [11:35:00]process_action close_receipt done [11:35:00]requested_data is exist [11:35:00]produce_requested_data [11:35:00]requested_item fm.sn is exist - process it [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 11 00 00 [11:35:00]Write to MH i2c: E2 08 00 A5 0B 80 11 00 00 00 00 00 00 2A [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 17 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 17 00 A5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7B [11:35:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:35:00]wFMCommunicate OK [11:35:00]requested_item fd.num is exist - process it [11:35:00]SAM_PROTO_GetFieldsCounters [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 13 00 00 [11:35:00]Write to MH i2c: E2 08 00 A6 0B 80 13 00 00 00 00 00 00 2D [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 62 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 62 00 A6 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 68 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [11:35:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 68 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:00]wFMCommunicate OK [11:35:00]SAM_PROTO_GetFieldsCounters done [11:35:00]requested_item shift.num is exist - process it [11:35:00]requested_item shift.opened is exist - process it [11:35:00]req_shift_opened [11:35:00]FM_GetShiftState [11:35:00]SAM_PROTO_GetShiftState [11:35:00]wFMCommunicate request_size=4 [11:35:00]MH_SAM_APDU [11:35:00]CAPDU: 80 13 01 00 [11:35:00]Write to MH i2c: E2 08 00 A7 0B 80 13 01 00 00 00 00 00 2F [11:35:00]Write i2c OK [11:35:00]MH_I2C_Read... [11:35:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:00]Read from MH i2c: E2 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 0E 00 [11:35:00]MH_I2C_Read... [11:35:00]Read from MH i2c: E2 0E 00 A7 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C7 [11:35:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:35:00]wFMCommunicate OK [11:35:00]SAM_PROTO_GetShiftState done [11:35:00]FM_GetShiftState done [11:35:00]req_shift_opened done [11:35:00]requested_item shift.open_date is exist - process it [11:35:00]req_shift_open_date [11:35:00]req_shift_open_date done [11:35:00]produce_requested_data done [11:35:00]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112232,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:35:00]process_action_free close_receipt [11:35:00]json_value_free [11:35:00]json_value_free done [11:35:00]process_json_proto returns [11:35:00]Send response to host [11:35:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112232,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:35:00]free response buf [11:35:00]execute_script done [11:35:00]execute_script returns [11:35:00]free content buf [11:35:00]Sock 9.Close socket [11:35:00]Sock 9.Thread stoped [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]accept exits with 7 [11:36:19]New connection [11:36:19]New thread 3067198820 created [11:36:19]Thread 3067342180 joined [11:36:19]Waiting for new connection... [11:36:19] Sock 7.Parse request [11:36:19]Sock 7.Check first char [11:36:19]Sock 7.First char is OK [11:36:19]request: POST /json_proto HTTP/1.0 [11:36:19]Method: POST [11:36:19]URL: /json_proto [11:36:19]Method is POST - this is cgi request [11:36:19]url: /json_proto [11:36:19]query_string will be loaded in cgi processing [11:36:19]execute_cgi json_proto POST (null) [11:36:19]execute_cgi path=json_proto method=POST [11:36:19]POST find Content-Length [11:36:19]Host: 172.17.96.197:8080 [11:36:19]Content-Length: 676 [11:36:19]Content-Type: application/json [11:36:19] [11:36:19]POST finish read [11:36:19]Found Content-Length = 676 [11:36:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:36:19]execute_script... [11:36: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)48549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:36:19]POST & json_proto [11:36:19]process_json_proto [11:36:19]json parsed OK: [11:36:19]protocol is kg_v1.0 [11:36:19]action value=close_receipt [11:36:19]process_action close_receipt [11:36:19]cmd_close_receipt [11:36:19]MH_GetDate [11:36:19]Write to MH i2c: F0 00 00 A8 0B A2 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: F0 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: F0 09 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: F0 09 00 A8 0B 00 B4 BF 1B 66 E0 85 7F 64 E7 [11:36:19]GetLastDocTimeStamp 1713094497 [11:36:19]current date 1713094580 [11:36:19]FM_GetShiftState [11:36:19]SAM_PROTO_GetShiftState [11:36:19]wFMCommunicate request_size=4 [11:36:19]MH_SAM_APDU [11:36:19]CAPDU: 80 13 01 00 [11:36:19]Write to MH i2c: E2 08 00 A9 0B 80 13 01 00 00 00 00 00 31 [11:36:19]Write i2c OK [11:36:19]MH_I2C_Read... [11:36:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:19]Read from MH i2c: E2 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 0E 00 [11:36:19]MH_I2C_Read... [11:36:19]Read from MH i2c: E2 0E 00 A9 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C9 [11:36:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:36:19]wFMCommunicate OK [11:36:19]SAM_PROTO_GetShiftState done [11:36:19]FM_GetShiftState done [11:36:19]opened in 1713054696 [11:36:19]opened+sec_in_day 1713141096 [11:36:19]quantity*price = 50025 [11:36:19]sum+1 = 50026 [11:36:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 132 14.04.2024 11:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112233 ФПД: 238637719281188 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112233&fm=238637719281188&tin=02508201610067®Number=0000000000094237&sum=50000 [11:36:20]StoreToDocumentArchive [11:36:20]shift 357 fd 112233 [11:36:20]save to /storage/0357/doc_00112233 [11:36:20]save last doc name /storage/0357/doc_00112233 to /storage/kkm_last_doc_name [11:36:20]save OK [11:36:20]Clear old archive folders... [11:36:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:20]tlvbuf is 0177A650 [11:36:20]SAM_PROTO_ClearQueue [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 09 00 00 [11:36:20]Write to MH i2c: E2 08 00 B6 0B 80 09 00 00 00 00 00 00 33 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 03 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 03 00 B6 0B 00 90 00 35 [11:36:20]RAPDU: 90 00 [11:36:20]wFMCommunicate OK [11:36:20]SAM_PROTO_ClearQueue done [11:36:20]KKMCreateOFDPacket [11:36:20]OFDProtocolAddRootSTLVToBuf [11:36:20]FM_MakeSignedData [11:36:20]FM_MakeSignedData [11:36:20]SAM_PROTO_SignData [11:36:20]wFMCommunicate request_size=4 [11:36:20]MH_SAM_APDU [11:36:20]CAPDU: 80 0D 01 02 [11:36:20]Write to MH i2c: E2 08 00 B7 0B 80 0D 01 02 00 00 00 00 3B [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:20]Read from MH i2c: E2 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 03 00 [11:36:20]MH_I2C_Read... [11:36:20]Read from MH i2c: E2 03 00 B7 0B 00 90 00 36 [11:36:20]RAPDU: 90 00 [11:36:20]wFMCommunicate OK [11:36:20]wFMCommunicate request_size=255 [11:36:20]MH_SAM_APDU [11:36:20]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 84 00 00 00 F4 03 04 00 B4 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B6 01 00 35 04 06 00 D9 [11:36:20]Write to MH i2c: E2 02 01 B8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 84 00 00 00 F4 03 04 00 B4 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B6 01 00 35 04 06 00 D9 00 00 B5 [11:36:20]Write i2c OK [11:36:20]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 03 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [11:36:21]RAPDU: 90 00 [11:36:21]wFMCommunicate OK [11:36:21]wFMCommunicate request_size=10 [11:36:21]MH_SAM_APDU [11:36:21]CAPDU: 80 0D 02 02 05 0A 2C 7C DE 24 [11:36:21]Write to MH i2c: E2 0D 00 B9 0B 80 0D 02 02 05 00 0A 2C 7C DE 24 00 00 FC [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 03 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [11:36:21]RAPDU: 90 00 [11:36:21]wFMCommunicate OK [11:36:21]wFMCommunicate request_size=4 [11:36:21]MH_SAM_APDU [11:36:21]CAPDU: 80 0D 03 02 [11:36:21]Write to MH i2c: E2 08 00 BA 0B 80 0D 03 02 00 00 00 00 40 [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 0B 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 0B 00 BA 0B 00 47 6D D0 7B 12 4E 7F 7C 90 00 9B [11:36:21]RAPDU: 47 6D D0 7B 12 4E 7F 7C 90 00 [11:36:21]wFMCommunicate OK [11:36:21]SAM_PROTO_SignData done [11:36:21]FM_MakeSignedData done [11:36:21]CreateOFDProtocolMessage [11:36:21]wFMCommunicate request_size=4 [11:36:21]MH_SAM_APDU [11:36:21]CAPDU: 80 11 00 00 [11:36:21]Write to MH i2c: E2 08 00 BB 0B 80 11 00 00 00 00 00 00 40 [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:21]Read from MH i2c: E2 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 17 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: E2 17 00 BB 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 91 [11:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:36:21]wFMCommunicate OK [11:36:21]CreateOFDProtocolMessage done [11:36:21]OFDSenderStorePacket 112233 [11:36:21]StoreOFDPacket docnum=112233 [11:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 29 AF 07 01 22 72 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 84 00 00 00 F4 03 04 00 B4 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B6 01 00 35 04 06 00 D9 0A 2C 7C DE 24 47 6D D0 7B 12 4E 7F 7C [11:36:21]CheckFolder [11:36:21]dirname=/storage/ofd_packets [11:36:21]CheckFolder done [11:36:21]ProducePacketName [11:36:21]name=ofd_packets/00112233 [11:36:21]NVStorageSaveData ofd_packets/00112233 [11:36:21]File name is /storage/ofd_packets/00112233 [11:36:21]Write 301 bytes [11:36:21]NVStorageSaveData done [11:36:21]OFDSenderStorePacket done [11:36:21]KKMCreateOFDPacket done [11:36:21]NVStorageSaveData kkm_last_timestamp [11:36:21]File name is /storage/kkm_last_timestamp [11:36:21]Write 4 bytes [11:36:21]NVStorageSaveData done [11:36:21]ExternCall_PrintAddStr [11:36:21]wPrintStart [11:36:21]Write to MH i2c: 01 00 00 BC 0B C7 [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 07 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 07 00 BC 0B 00 00 00 00 00 FF 0F DC [11:36:21]RasterBufferAndPrint [11:36:21]line Счет N : (1)48549 [11:36:21]line ИНН: 02508201610067 [11:36:21]line Контрольно-Кассовый Чек [11:36:21]line ПРОДАЖА [11:36:21]line ТРК (МРК, ГНК) : 11 [11:36:21]line Товар: 2710124130 [11:36:21]line Аи-92-К-5 [11:36:21]line 7.780 * 64.30 [11:36:21]line = 500.25 [11:36:21]line НДС 12% НСП 1% [11:36:21]line > о реализуемом товаре [11:36:21]line ОКРУГЛЕНИЕ: -0.25 [11:36:21]line ИТОГО: 500.00 [11:36:21]line Внесено: 500.00 [11:36:21]line СДАЧА: 0.00 [11:36:21]line НСП 1% : 4.43 [11:36:21]line НДС 12% : 53.12 [11:36:21]line Наличными: 500.00 [11:36:21]line Безнал.: 0.00 [11:36:21]line Место: АЗС № 47 "Партнер Нефть" [11:36:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:36:21]line СНО: Общий режим [11:36:21]line Чек 132 14.04.2024 11:36 [11:36:21]line Смена: 357 ФФД: 1.0 [11:36:21]line ЗНМ: 0300000138 [11:36:21]line РНМ: 0000000000094237 [11:36:21]line Версия ККМ: 001 [11:36:21]line ФМ: 0000000000875019 [11:36:21]line ФД: 112233 [11:36:21]line ФПД: 238637719281188 [11:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T113620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112233&fm=238637719281188&tin=02508201610067®Number=0000000000094237&sum=50000 [11:36:21]OFD Sender: Processing packet 112233 [packets to send 71, broken 70] [11:36:21]ProducePacketName [11:36:21]name=ofd_packets/00112233 [11:36:21]OFD Sender: To server: pG, [11:36:21]CommunicateWithHost lk.salyk.kg:30040 [11:36:21]ConnectInit lk.salyk.kg [11:36:21]written 0, free lines is 4095 [11:36:21]Connected sock=10 [11:36:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 29 AF 07 01 22 72 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 84 00 00 00 F4 03 04 00 B4 BF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B6 01 00 35 04 06 00 D9 0A 2C 7C DE 24 47 6D D0 7B 12 4E 7F 7C [11:36:21]Write to MH i2c: 01 00 00 E7 0B F2 [11:36:21]Write i2c OK [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 07 00 [11:36:21]MH_I2C_Read... [11:36:21]Read from MH i2c: 01 07 00 E7 0B 00 00 00 00 00 DC 0C E1 [11:36:21]RasterBufferAndPrint [11:36:21]line [11:36:21]line [11:36:21]line [11:36:21]line [11:36:21]line [11:36:21]written 0, free lines is 3298 [11:36:21]MH_Cut [11:36:21]Write to MH i2c: D1 01 00 EE 0B 01 CB [11:36:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5C 64 47 00 F9 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B6 01 00 F4 03 04 00 3F 67 1B 66 B6 04 01 00 00 55 78 0F 11 C5 69 CA 23 [11:36:21]CommunicateWithHost err = 0 [11:36:21]CheckOFDResponse [11:36:21]1017 (14) - 77093643461234 [11:36:21]1041 (16) - 0000000000875019 [11:36:21]1040 (4) - 112233 [11:36:21]1012 (4) - 14.04.2024 05:18 [11:36:21]1206 (1) - 0 [11:36:21]OFD Sender: Remove packet 112233 [11:36:21]ProducePacketName [11:36:21]name=ofd_packets/00112233 [11:36:21]NVStorageDeleteData [11:36:22]Write i2c OK [11:36:22]MH_I2C_Read... [11:36:22]Read from MH i2c: D1 [11:36:22]MH_I2C_Read... [11:36:22]Read from MH i2c: D1 01 00 [11:36:22]MH_I2C_Read... [11:36:22]Read from MH i2c: D1 01 00 EE 0B 00 CA [11:36:22]Write to MH i2c: 01 00 00 EF 0B FA [11:36:22]Write i2c OK [11:36:22]MH_I2C_Read... [11:36:22]OFD Sender: No OFD packet to send [11:36:22]*** Cut start [11:36:22]*** Partial cut [11:36:22]*** CUTSNS_PIN = 1 [11:36:22]*** CUTSNS_PIN = 0 [11:36:22]*** Brake cut motor [11:36:23]Read from MH i2c: 01 [11:36:23]MH_I2C_Read... [11:36:23]*** Stop cut motor [11:36:23]*** Cut end [11:36:23]Read from MH i2c: 01 07 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: 01 07 00 EF 0B 00 00 00 00 00 FF 0F 0F [11:36:23]process_action close_receipt done [11:36:23]requested_data is exist [11:36:23]produce_requested_data [11:36:23]requested_item fm.sn is exist - process it [11:36:23]wFMCommunicate request_size=4 [11:36:23]MH_SAM_APDU [11:36:23]CAPDU: 80 11 00 00 [11:36:23]Write to MH i2c: E2 08 00 F0 0B 80 11 00 00 00 00 00 00 75 [11:36:23]Write i2c OK [11:36:23]MH_I2C_Read... [11:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:23]Read from MH i2c: E2 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 17 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 17 00 F0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C6 [11:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:36:23]wFMCommunicate OK [11:36:23]requested_item fd.num is exist - process it [11:36:23]SAM_PROTO_GetFieldsCounters [11:36:23]wFMCommunicate request_size=4 [11:36:23]MH_SAM_APDU [11:36:23]CAPDU: 80 13 00 00 [11:36:23]Write to MH i2c: E2 08 00 F1 0B 80 13 00 00 00 00 00 00 78 [11:36:23]Write i2c OK [11:36:23]MH_I2C_Read... [11:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:23]Read from MH i2c: E2 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 62 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 62 00 F1 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 69 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [11:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 69 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:36:23]wFMCommunicate OK [11:36:23]SAM_PROTO_GetFieldsCounters done [11:36:23]requested_item shift.num is exist - process it [11:36:23]requested_item shift.opened is exist - process it [11:36:23]req_shift_opened [11:36:23]FM_GetShiftState [11:36:23]SAM_PROTO_GetShiftState [11:36:23]wFMCommunicate request_size=4 [11:36:23]MH_SAM_APDU [11:36:23]CAPDU: 80 13 01 00 [11:36:23]Write to MH i2c: E2 08 00 F2 0B 80 13 01 00 00 00 00 00 7A [11:36:23]Write i2c OK [11:36:23]MH_I2C_Read... [11:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:23]Read from MH i2c: E2 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 0E 00 [11:36:23]MH_I2C_Read... [11:36:23]Read from MH i2c: E2 0E 00 F2 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 12 [11:36:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:36:23]wFMCommunicate OK [11:36:23]SAM_PROTO_GetShiftState done [11:36:23]FM_GetShiftState done [11:36:23]req_shift_opened done [11:36:23]requested_item shift.open_date is exist - process it [11:36:23]req_shift_open_date [11:36:23]req_shift_open_date done [11:36:23]produce_requested_data done [11:36:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112233,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:36:23]process_action_free close_receipt [11:36:23]json_value_free [11:36:23]json_value_free done [11:36:23]process_json_proto returns [11:36:23]Send response to host [11:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112233,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:36:23]free response buf [11:36:23]execute_script done [11:36:23]execute_script returns [11:36:23]free content buf [11:36:23]Sock 7.Close socket [11:36:23]Sock 7.Thread stoped [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:07]OFD Sender: No OFD packet to send [11:38:12]OFD Sender: No OFD packet to send [11:38:17]OFD Sender: No OFD packet to send [11:38:22]OFD Sender: No OFD packet to send [11:38:27]OFD Sender: No OFD packet to send [11:38:32]OFD Sender: No OFD packet to send [11:38:37]OFD Sender: No OFD packet to send [11:38:42]OFD Sender: No OFD packet to send [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:40:02]OFD Sender: No OFD packet to send [11:40:07]OFD Sender: No OFD packet to send [11:40:12]OFD Sender: No OFD packet to send [11:40:13]accept exits with 9 [11:40:13]New connection [11:40:13]New thread 3067342180 created [11:40:13]Thread 3067198820 joined [11:40:13]Waiting for new connection... [11:40:13] Sock 9.Parse request [11:40:13]Sock 9.Check first char [11:40:13]Sock 9.First char is OK [11:40:13]request: POST /json_proto HTTP/1.0 [11:40:13]Method: POST [11:40:13]URL: /json_proto [11:40:13]Method is POST - this is cgi request [11:40:13]url: /json_proto [11:40:13]query_string will be loaded in cgi processing [11:40:13]execute_cgi json_proto POST (null) [11:40:13]execute_cgi path=json_proto method=POST [11:40:13]POST find Content-Length [11:40:13]Host: 172.17.96.197:8080 [11:40:13]Content-Length: 670 [11:40:13]Content-Type: application/json [11:40:13] [11:40:13]POST finish read [11:40:13]Found Content-Length = 670 [11:40:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48550", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:40:13]execute_script... [11:40: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)48550", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [11:40:13]POST & json_proto [11:40:13]process_json_proto [11:40:13]json parsed OK: [11:40:13]protocol is kg_v1.0 [11:40:13]action value=close_receipt [11:40:13]process_action close_receipt [11:40:13]cmd_close_receipt [11:40:13]MH_GetDate [11:40:13]Write to MH i2c: F0 00 00 F3 0B ED [11:40:13]Write i2c OK [11:40:13]MH_I2C_Read... [11:40:13]Read from MH i2c: F0 [11:40:13]MH_I2C_Read... [11:40:13]Read from MH i2c: F0 09 00 [11:40:13]MH_I2C_Read... [11:40:13]Read from MH i2c: F0 09 00 F3 0B 00 9E C0 1B 66 E0 85 7F 64 1D [11:40:13]GetLastDocTimeStamp 1713094580 [11:40:13]current date 1713094814 [11:40:13]FM_GetShiftState [11:40:13]SAM_PROTO_GetShiftState [11:40:13]wFMCommunicate request_size=4 [11:40:13]MH_SAM_APDU [11:40:13]CAPDU: 80 13 01 00 [11:40:13]Write to MH i2c: E2 08 00 F4 0B 80 13 01 00 00 00 00 00 7C [11:40:13]Write i2c OK [11:40:13]MH_I2C_Read... [11:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:13]Read from MH i2c: E2 [11:40:13]MH_I2C_Read... [11:40:13]Read from MH i2c: E2 0E 00 [11:40:13]MH_I2C_Read... [11:40:13]Read from MH i2c: E2 0E 00 F4 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 14 [11:40:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:40:13]wFMCommunicate OK [11:40:13]SAM_PROTO_GetShiftState done [11:40:13]FM_GetShiftState done [11:40:13]opened in 1713054696 [11:40:13]opened+sec_in_day 1713141096 [11:40:13]quantity*price = 70001 [11:40:13]sum+1 = 70003 [11:40:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 133 14.04.2024 11:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112234 ФПД: 57089435896641 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114014&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112234&fm=57089435896641&tin=02508201610067®Number=0000000000094237&sum=70000 [11:40:14]StoreToDocumentArchive [11:40:14]shift 357 fd 112234 [11:40:14]save to /storage/0357/doc_00112234 [11:40:14]save last doc name /storage/0357/doc_00112234 to /storage/kkm_last_doc_name [11:40:14]save OK [11:40:14]Clear old archive folders... [11:40:14]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:40:14]tlvbuf is 0175C920 [11:40:14]SAM_PROTO_ClearQueue [11:40:14]wFMCommunicate request_size=4 [11:40:14]MH_SAM_APDU [11:40:14]CAPDU: 80 09 00 00 [11:40:14]Write to MH i2c: E2 08 00 01 0C 80 09 00 00 00 00 00 00 7F [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:14]Read from MH i2c: E2 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 03 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 03 00 01 0C 00 90 00 81 [11:40:14]RAPDU: 90 00 [11:40:14]wFMCommunicate OK [11:40:14]SAM_PROTO_ClearQueue done [11:40:14]KKMCreateOFDPacket [11:40:14]OFDProtocolAddRootSTLVToBuf [11:40:14]FM_MakeSignedData [11:40:14]FM_MakeSignedData [11:40:14]SAM_PROTO_SignData [11:40:14]wFMCommunicate request_size=4 [11:40:14]MH_SAM_APDU [11:40:14]CAPDU: 80 0D 01 02 [11:40:14]Write to MH i2c: E2 08 00 02 0C 80 0D 01 02 00 00 00 00 87 [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:14]Read from MH i2c: E2 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 03 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 03 00 02 0C 00 90 00 82 [11:40:14]RAPDU: 90 00 [11:40:14]wFMCommunicate OK [11:40:14]wFMCommunicate request_size=255 [11:40:14]MH_SAM_APDU [11:40: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 85 00 00 00 F4 03 04 00 9E C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B6 01 00 35 04 06 00 [11:40:14]Write to MH i2c: E2 02 01 03 0C 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 85 00 00 00 F4 03 04 00 9E C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B6 01 00 35 04 06 00 00 00 D7 [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:15]Read from MH i2c: E2 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 03 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 03 00 03 0C 00 90 00 83 [11:40:15]RAPDU: 90 00 [11:40:15]wFMCommunicate OK [11:40:15]wFMCommunicate request_size=11 [11:40:15]MH_SAM_APDU [11:40:15]CAPDU: 80 0D 02 02 06 33 EC 2B 8C 0B 41 [11:40:15]Write to MH i2c: E2 0E 00 04 0C 80 0D 02 02 06 00 33 EC 2B 8C 0B 41 00 00 B8 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:15]Read from MH i2c: E2 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 03 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 03 00 04 0C 00 90 00 84 [11:40:15]RAPDU: 90 00 [11:40:15]wFMCommunicate OK [11:40:15]wFMCommunicate request_size=4 [11:40:15]MH_SAM_APDU [11:40:15]CAPDU: 80 0D 03 02 [11:40:15]Write to MH i2c: E2 08 00 05 0C 80 0D 03 02 00 00 00 00 8C [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:15]Read from MH i2c: E2 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 0B 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 0B 00 05 0C 00 69 62 E3 C9 6E 48 F2 1F 90 00 CB [11:40:15]RAPDU: 69 62 E3 C9 6E 48 F2 1F 90 00 [11:40:15]wFMCommunicate OK [11:40:15]SAM_PROTO_SignData done [11:40:15]FM_MakeSignedData done [11:40:15]CreateOFDProtocolMessage [11:40:15]wFMCommunicate request_size=4 [11:40:15]MH_SAM_APDU [11:40:15]CAPDU: 80 11 00 00 [11:40:15]Write to MH i2c: E2 08 00 06 0C 80 11 00 00 00 00 00 00 8C [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:15]Read from MH i2c: E2 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 17 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: E2 17 00 06 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DD [11:40:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:40:15]wFMCommunicate OK [11:40:15]CreateOFDProtocolMessage done [11:40:15]OFDSenderStorePacket 112234 [11:40:15]StoreOFDPacket docnum=112234 [11:40:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 6C 14 08 01 C2 C1 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 85 00 00 00 F4 03 04 00 9E C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B6 01 00 35 04 06 00 33 EC 2B 8C 0B 41 69 62 E3 C9 6E 48 F2 1F [11:40:15]CheckFolder [11:40:15]dirname=/storage/ofd_packets [11:40:15]CheckFolder done [11:40:15]ProducePacketName [11:40:15]name=ofd_packets/00112234 [11:40:15]NVStorageSaveData ofd_packets/00112234 [11:40:15]File name is /storage/ofd_packets/00112234 [11:40:15]Write 302 bytes [11:40:15]NVStorageSaveData done [11:40:15]OFDSenderStorePacket done [11:40:15]KKMCreateOFDPacket done [11:40:15]NVStorageSaveData kkm_last_timestamp [11:40:15]File name is /storage/kkm_last_timestamp [11:40:15]Write 4 bytes [11:40:15]NVStorageSaveData done [11:40:15]ExternCall_PrintAddStr [11:40:15]wPrintStart [11:40:15]Write to MH i2c: 01 00 00 07 0C 13 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 07 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 07 00 07 0C 00 00 00 00 00 FF 0F 28 [11:40:15]RasterBufferAndPrint [11:40:15]line Счет N : (1)48550 [11:40:15]line ИНН: 02508201610067 [11:40:15]line Контрольно-Кассовый Чек [11:40:15]line ПРОДАЖА [11:40:15]line ТРК (МРК, ГНК) : 31 [11:40:15]line Товар: 2710124130 [11:40:15]line SUPER 92-К-5 [11:40:15]line 10.720 * 65.30 [11:40:15]line = 700.02 [11:40:15]line НДС 12% НСП 1% [11:40:15]line > о реализуемом товаре [11:40:15]line ОКРУГЛЕНИЕ: -0.02 [11:40:15]line ИТОГО: 700.00 [11:40:15]line Внесено: 700.00 [11:40:15]line СДАЧА: 0.00 [11:40:15]line НСП 1% : 6.19 [11:40:15]line НДС 12% : 74.34 [11:40:15]line Наличными: 700.00 [11:40:15]line Безнал.: 0.00 [11:40:15]line Место: АЗС № 47 "Партнер Нефть" [11:40:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:40:15]line СНО: Общий режим [11:40:15]line Чек 133 14.04.2024 11:40 [11:40:15]line Смена: 357 ФФД: 1.0 [11:40:15]line ЗНМ: 0300000138 [11:40:15]line РНМ: 0000000000094237 [11:40:15]line Версия ККМ: 001 [11:40:15]line ФМ: 0000000000875019 [11:40:15]line ФД: 112234 [11:40:15]line ФПД: 57089435896641 [11:40:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114014&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112234&fm=57089435896641&tin=02508201610067®Number=0000000000094237&sum=70000 [11:40:15]written 0, free lines is 4095 [11:40:15]OFD Sender: Processing packet 112234 [packets to send 71, broken 70] [11:40:15]ProducePacketName [11:40:15]name=ofd_packets/00112234 [11:40:15]OFD Sender: To server: pG, [11:40:15]CommunicateWithHost lk.salyk.kg:30040 [11:40:15]ConnectInit lk.salyk.kg [11:40:15]Connected sock=10 [11:40:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 6C 14 08 01 C2 C1 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 85 00 00 00 F4 03 04 00 9E C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B6 01 00 35 04 06 00 33 EC 2B 8C 0B 41 69 62 E3 C9 6E 48 F2 1F [11:40:15]Write to MH i2c: 01 00 00 32 0C 3E [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 07 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: 01 07 00 32 0C 00 00 00 00 00 EF 0C 40 [11:40:15]RasterBufferAndPrint [11:40:15]line [11:40:15]line [11:40:15]line [11:40:15]line [11:40:15]line [11:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3C BF 47 00 15 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 38 37 35 30 31 39 10 04 04 00 6A B6 01 00 F4 03 04 00 29 68 1B 66 B6 04 01 00 00 E9 E4 48 A0 85 89 6E C0 [11:40:15]CommunicateWithHost err = 0 [11:40:15]CheckOFDResponse [11:40:15]1017 (14) - 77093643461234 [11:40:15]1041 (16) - 0000000000875019 [11:40:15]1040 (4) - 112234 [11:40:15]1012 (4) - 14.04.2024 05:22 [11:40:15]1206 (1) - 0 [11:40:15]OFD Sender: Remove packet 112234 [11:40:15]ProducePacketName [11:40:15]name=ofd_packets/00112234 [11:40:15]NVStorageDeleteData [11:40:15]written 0, free lines is 3317 [11:40:15]MH_Cut [11:40:15]Write to MH i2c: D1 01 00 39 0C 01 17 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: D1 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: D1 01 00 [11:40:15]MH_I2C_Read... [11:40:15]Read from MH i2c: D1 01 00 39 0C 00 16 [11:40:15]Write to MH i2c: 01 00 00 3A 0C 46 [11:40:15]Write i2c OK [11:40:15]MH_I2C_Read... [11:40:16]OFD Sender: No OFD packet to send [11:40:16]*** Cut start [11:40:16]*** Partial cut [11:40:16]*** CUTSNS_PIN = 1 [11:40:16]*** CUTSNS_PIN = 0 [11:40:16]*** Brake cut motor [11:40:17]Read from MH i2c: 01 [11:40:17]MH_I2C_Read... [11:40:17]*** Stop cut motor [11:40:17]*** Cut end [11:40:17]Read from MH i2c: 01 07 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: 01 07 00 3A 0C 00 00 00 00 00 FF 0F 5B [11:40:17]process_action close_receipt done [11:40:17]requested_data is exist [11:40:17]produce_requested_data [11:40:17]requested_item fm.sn is exist - process it [11:40:17]wFMCommunicate request_size=4 [11:40:17]MH_SAM_APDU [11:40:17]CAPDU: 80 11 00 00 [11:40:17]Write to MH i2c: E2 08 00 3B 0C 80 11 00 00 00 00 00 00 C1 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 17 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 17 00 3B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 12 [11:40:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:40:17]wFMCommunicate OK [11:40:17]requested_item fd.num is exist - process it [11:40:17]SAM_PROTO_GetFieldsCounters [11:40:17]wFMCommunicate request_size=4 [11:40:17]MH_SAM_APDU [11:40:17]CAPDU: 80 13 00 00 [11:40:17]Write to MH i2c: E2 08 00 3C 0C 80 13 00 00 00 00 00 00 C4 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 62 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 62 00 3C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [11:40:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:17]wFMCommunicate OK [11:40:17]SAM_PROTO_GetFieldsCounters done [11:40:17]requested_item shift.num is exist - process it [11:40:17]requested_item shift.opened is exist - process it [11:40:17]req_shift_opened [11:40:17]FM_GetShiftState [11:40:17]SAM_PROTO_GetShiftState [11:40:17]wFMCommunicate request_size=4 [11:40:17]MH_SAM_APDU [11:40:17]CAPDU: 80 13 01 00 [11:40:17]Write to MH i2c: E2 08 00 3D 0C 80 13 01 00 00 00 00 00 C6 [11:40:17]Write i2c OK [11:40:17]MH_I2C_Read... [11:40:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:17]Read from MH i2c: E2 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 0E 00 [11:40:17]MH_I2C_Read... [11:40:17]Read from MH i2c: E2 0E 00 3D 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5E [11:40:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:40:17]wFMCommunicate OK [11:40:17]SAM_PROTO_GetShiftState done [11:40:17]FM_GetShiftState done [11:40:17]req_shift_opened done [11:40:17]requested_item shift.open_date is exist - process it [11:40:17]req_shift_open_date [11:40:17]req_shift_open_date done [11:40:17]produce_requested_data done [11:40:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112234,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:40:17]process_action_free close_receipt [11:40:17]json_value_free [11:40:17]json_value_free done [11:40:17]process_json_proto returns [11:40:17]Send response to host [11:40:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112234,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:40:17]free response buf [11:40:17]execute_script done [11:40:17]execute_script returns [11:40:17]free content buf [11:40:17]Sock 9.Close socket [11:40:17]Sock 9.Thread stoped [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: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:45]accept exits with 7 [11:41:45]New connection [11:41:45]New thread 3067198820 created [11:41:45]Thread 3067342180 joined [11:41:45]Waiting for new connection... [11:41:45] Sock 7.Parse request [11:41:45]Sock 7.Check first char [11:41:45]Sock 7.First char is OK [11:41:45]request: POST /json_proto HTTP/1.0 [11:41:45]Method: POST [11:41:45]URL: /json_proto [11:41:45]Method is POST - this is cgi request [11:41:45]url: /json_proto [11:41:45]query_string will be loaded in cgi processing [11:41:45]execute_cgi json_proto POST (null) [11:41:45]execute_cgi path=json_proto method=POST [11:41:45]POST find Content-Length [11:41:45]Host: 172.17.96.197:8080 [11:41:45]Content-Length: 676 [11:41:45]Content-Type: application/json [11:41:45] [11:41:45]POST finish read [11:41:45]Found Content-Length = 676 [11:41:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:41:45]execute_script... [11:41:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:41:45]POST & json_proto [11:41:45]process_json_proto [11:41:45]json parsed OK: [11:41:45]protocol is kg_v1.0 [11:41:45]action value=close_receipt [11:41:45]process_action close_receipt [11:41:45]cmd_close_receipt [11:41:45]MH_GetDate [11:41:45]Write to MH i2c: F0 00 00 3E 0C 39 [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 09 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: F0 09 00 3E 0C 00 FA C0 1B 66 E0 85 7F 64 C5 [11:41:45]GetLastDocTimeStamp 1713094814 [11:41:45]current date 1713094906 [11:41:45]FM_GetShiftState [11:41:45]SAM_PROTO_GetShiftState [11:41:45]wFMCommunicate request_size=4 [11:41:45]MH_SAM_APDU [11:41:45]CAPDU: 80 13 01 00 [11:41:45]Write to MH i2c: E2 08 00 3F 0C 80 13 01 00 00 00 00 00 C8 [11:41:45]Write i2c OK [11:41:45]MH_I2C_Read... [11:41:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:45]Read from MH i2c: E2 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0E 00 [11:41:45]MH_I2C_Read... [11:41:45]Read from MH i2c: E2 0E 00 3F 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 60 [11:41:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:41:45]wFMCommunicate OK [11:41:45]SAM_PROTO_GetShiftState done [11:41:45]FM_GetShiftState done [11:41:45]opened in 1713054696 [11:41:45]opened+sec_in_day 1713141096 [11:41:45]quantity*price = 50025 [11:41:45]sum+1 = 50026 [11:41:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 134 14.04.2024 11:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112235 ФПД: 147882902224349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114146&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112235&fm=147882902224349&tin=02508201610067®Number=0000000000094237&sum=50000 [11:41:46]StoreToDocumentArchive [11:41:46]shift 357 fd 112235 [11:41:46]save to /storage/0357/doc_00112235 [11:41:46]save last doc name /storage/0357/doc_00112235 to /storage/kkm_last_doc_name [11:41:46]save OK [11:41:46]Clear old archive folders... [11:41:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:46]tlvbuf is 0177A470 [11:41:46]SAM_PROTO_ClearQueue [11:41:46]wFMCommunicate request_size=4 [11:41:46]MH_SAM_APDU [11:41:46]CAPDU: 80 09 00 00 [11:41:46]Write to MH i2c: E2 08 00 4C 0C 80 09 00 00 00 00 00 00 CA [11:41:46]Write i2c OK [11:41:46]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_ClearQueue done [11:41:47]KKMCreateOFDPacket [11:41:47]OFDProtocolAddRootSTLVToBuf [11:41:47]FM_MakeSignedData [11:41:47]FM_MakeSignedData [11:41:47]SAM_PROTO_SignData [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 01 02 [11:41:47]Write to MH i2c: E2 08 00 4D 0C 80 0D 01 02 00 00 00 00 D2 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 4D 0C 00 90 00 CD [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=255 [11:41:47]MH_SAM_APDU [11:41: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 86 00 00 00 F4 03 04 00 FA C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B6 01 00 35 04 06 00 86 [11:41:47]Write to MH i2c: E2 02 01 4E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 86 00 00 00 F4 03 04 00 FA C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B6 01 00 35 04 06 00 86 00 00 44 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 4E 0C 00 90 00 CE [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=10 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 02 02 05 7F AB DA FD DD [11:41:47]Write to MH i2c: E2 0D 00 4F 0C 80 0D 02 02 05 00 7F AB DA FD DD 00 00 BD [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 03 00 4F 0C 00 90 00 CF [11:41:47]RAPDU: 90 00 [11:41:47]wFMCommunicate OK [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 0D 03 02 [11:41:47]Write to MH i2c: E2 08 00 50 0C 80 0D 03 02 00 00 00 00 D7 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0B 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 0B 00 50 0C 00 58 DA C5 A7 B1 C7 E7 9F 90 00 74 [11:41:47]RAPDU: 58 DA C5 A7 B1 C7 E7 9F 90 00 [11:41:47]wFMCommunicate OK [11:41:47]SAM_PROTO_SignData done [11:41:47]FM_MakeSignedData done [11:41:47]CreateOFDProtocolMessage [11:41:47]wFMCommunicate request_size=4 [11:41:47]MH_SAM_APDU [11:41:47]CAPDU: 80 11 00 00 [11:41:47]Write to MH i2c: E2 08 00 51 0C 80 11 00 00 00 00 00 00 D7 [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:47]Read from MH i2c: E2 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: E2 17 00 51 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [11:41:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:41:47]wFMCommunicate OK [11:41:47]CreateOFDProtocolMessage done [11:41:47]OFDSenderStorePacket 112235 [11:41:47]StoreOFDPacket docnum=112235 [11:41:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C6 54 07 01 2E FE 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 86 00 00 00 F4 03 04 00 FA C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B6 01 00 35 04 06 00 86 7F AB DA FD DD 58 DA C5 A7 B1 C7 E7 9F [11:41:47]CheckFolder [11:41:47]dirname=/storage/ofd_packets [11:41:47]CheckFolder done [11:41:47]ProducePacketName [11:41:47]name=ofd_packets/00112235 [11:41:47]NVStorageSaveData ofd_packets/00112235 [11:41:47]File name is /storage/ofd_packets/00112235 [11:41:47]Write 301 bytes [11:41:47]NVStorageSaveData done [11:41:47]OFDSenderStorePacket done [11:41:47]KKMCreateOFDPacket done [11:41:47]NVStorageSaveData kkm_last_timestamp [11:41:47]File name is /storage/kkm_last_timestamp [11:41:47]Write 4 bytes [11:41:47]NVStorageSaveData done [11:41:47]ExternCall_PrintAddStr [11:41:47]wPrintStart [11:41:47]Write to MH i2c: 01 00 00 52 0C 5E [11:41:47]Write i2c OK [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 [11:41:47]MH_I2C_Read... [11:41:47]Read from MH i2c: 01 07 00 52 0C 00 00 00 00 00 FF 0F 73 [11:41:47]RasterBufferAndPrint [11:41:47]line Счет N : (1)48551 [11:41:47]line ИНН: 02508201610067 [11:41:47]line Контрольно-Кассовый Чек [11:41:47]line ПРОДАЖА [11:41:47]line ТРК (МРК, ГНК) : 11 [11:41:47]line Товар: 2710124130 [11:41:47]line Аи-92-К-5 [11:41:47]line 7.780 * 64.30 [11:41:47]line = 500.25 [11:41:47]line НДС 12% НСП 1% [11:41:47]line > о реализуемом товаре [11:41:47]line ОКРУГЛЕНИЕ: -0.25 [11:41:47]line ИТОГО: 500.00 [11:41:47]line Внесено: 500.00 [11:41:47]line СДАЧА: 0.00 [11:41:47]line НСП 1% : 4.43 [11:41:47]line НДС 12% : 53.12 [11:41:47]line Наличными: 500.00 [11:41:47]line Безнал.: 0.00 [11:41:47]line Место: АЗС № 47 "Партнер Нефть" [11:41:47]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:41:47]line СНО: Общий режим [11:41:47]line Чек 134 14.04.2024 11:41 [11:41:47]line Смена: 357 ФФД: 1.0 [11:41:47]line ЗНМ: 0300000138 [11:41:47]line РНМ: 0000000000094237 [11:41:47]line Версия ККМ: 001 [11:41:47]line ФМ: 0000000000875019 [11:41:47]line ФД: 112235 [11:41:47]line ФПД: 147882902224349 [11:41:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114146&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112235&fm=147882902224349&tin=02508201610067®Number=0000000000094237&sum=50000 [11:41:47]written 0, free lines is 4095 [11:41:47]OFD Sender: Processing packet 112235 [packets to send 71, broken 70] [11:41:47]ProducePacketName [11:41:47]name=ofd_packets/00112235 [11:41:47]OFD Sender: To server: pG, [11:41:47]CommunicateWithHost lk.salyk.kg:30040 [11:41:47]ConnectInit lk.salyk.kg [11:41:47]Connected sock=10 [11:41:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C6 54 07 01 2E FE 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 86 00 00 00 F4 03 04 00 FA C0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B6 01 00 35 04 06 00 86 7F AB DA FD DD 58 DA C5 A7 B1 C7 E7 9F [11:41:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9E 1D 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 38 37 35 30 31 39 10 04 04 00 6B B6 01 00 F4 03 04 00 86 68 1B 66 B6 04 01 00 00 C5 92 EC E8 51 BE 57 7E [11:41:48]CommunicateWithHost err = 0 [11:41:48]CheckOFDResponse [11:41:48]1017 (14) - 77093643461234 [11:41:48]1041 (16) - 0000000000875019 [11:41:48]1040 (4) - 112235 [11:41:48]1012 (4) - 14.04.2024 05:24 [11:41:48]1206 (1) - 0 [11:41:48]OFD Sender: Remove packet 112235 [11:41:48]ProducePacketName [11:41:48]name=ofd_packets/00112235 [11:41:48]NVStorageDeleteData [11:41:48]Write to MH i2c: 01 00 00 7D 0C 89 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: 01 07 00 7D 0C 00 00 00 00 00 DF 0C 7B [11:41:48]RasterBufferAndPrint [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]line [11:41:48]written 0, free lines is 3301 [11:41:48]MH_Cut [11:41:48]Write to MH i2c: D1 01 00 84 0C 01 62 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 01 00 [11:41:48]MH_I2C_Read... [11:41:48]Read from MH i2c: D1 01 00 84 0C 00 61 [11:41:48]Write to MH i2c: 01 00 00 85 0C 91 [11:41:48]Write i2c OK [11:41:48]MH_I2C_Read... [11:41:48]OFD Sender: No OFD packet to send [11:41:49]*** Cut start [11:41:49]*** Partial cut [11:41:49]*** CUTSNS_PIN = 1 [11:41:49]*** CUTSNS_PIN = 0 [11:41:49]*** Brake cut motor [11:41:49]Read from MH i2c: 01 [11:41:49]MH_I2C_Read... [11:41:49]*** Stop cut motor [11:41:49]*** Cut end [11:41:49]Read from MH i2c: 01 07 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: 01 07 00 85 0C 00 00 00 00 00 FF 0F A6 [11:41:49]process_action close_receipt done [11:41:49]requested_data is exist [11:41:49]produce_requested_data [11:41:49]requested_item fm.sn is exist - process it [11:41:49]wFMCommunicate request_size=4 [11:41:49]MH_SAM_APDU [11:41:49]CAPDU: 80 11 00 00 [11:41:49]Write to MH i2c: E2 08 00 86 0C 80 11 00 00 00 00 00 00 0C [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:49]Read from MH i2c: E2 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 17 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 17 00 86 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5D [11:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:41:49]wFMCommunicate OK [11:41:49]requested_item fd.num is exist - process it [11:41:49]SAM_PROTO_GetFieldsCounters [11:41:49]wFMCommunicate request_size=4 [11:41:49]MH_SAM_APDU [11:41:49]CAPDU: 80 13 00 00 [11:41:49]Write to MH i2c: E2 08 00 87 0C 80 13 00 00 00 00 00 00 0F [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:49]Read from MH i2c: E2 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 62 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 62 00 87 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:41:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:49]wFMCommunicate OK [11:41:49]SAM_PROTO_GetFieldsCounters done [11:41:49]requested_item shift.num is exist - process it [11:41:49]requested_item shift.opened is exist - process it [11:41:49]req_shift_opened [11:41:49]FM_GetShiftState [11:41:49]SAM_PROTO_GetShiftState [11:41:49]wFMCommunicate request_size=4 [11:41:49]MH_SAM_APDU [11:41:49]CAPDU: 80 13 01 00 [11:41:49]Write to MH i2c: E2 08 00 88 0C 80 13 01 00 00 00 00 00 11 [11:41:49]Write i2c OK [11:41:49]MH_I2C_Read... [11:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:49]Read from MH i2c: E2 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 0E 00 [11:41:49]MH_I2C_Read... [11:41:49]Read from MH i2c: E2 0E 00 88 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A9 [11:41:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:41:49]wFMCommunicate OK [11:41:49]SAM_PROTO_GetShiftState done [11:41:49]FM_GetShiftState done [11:41:49]req_shift_opened done [11:41:49]requested_item shift.open_date is exist - process it [11:41:49]req_shift_open_date [11:41:49]req_shift_open_date done [11:41:49]produce_requested_data done [11:41:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112235,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:41:49]process_action_free close_receipt [11:41:49]json_value_free [11:41:49]json_value_free done [11:41:49]process_json_proto returns [11:41:49]Send response to host [11:41:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112235,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:41:49]free response buf [11:41:49]execute_script done [11:41:49]execute_script returns [11:41:49]free content buf [11:41:49]Sock 7.Close socket [11:41:49]Sock 7.Thread stoped [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:31]accept exits with 9 [11:48:31]New connection [11:48:31]New thread 3067342180 created [11:48:31]Thread 3067198820 joined [11:48:31]Waiting for new connection... [11:48:31] Sock 9.Parse request [11:48:31]Sock 9.Check first char [11:48:31]Sock 9.First char is OK [11:48:31]request: POST /json_proto HTTP/1.0 [11:48:31]Method: POST [11:48:31]URL: /json_proto [11:48:31]Method is POST - this is cgi request [11:48:31]url: /json_proto [11:48:31]query_string will be loaded in cgi processing [11:48:31]execute_cgi json_proto POST (null) [11:48:31]execute_cgi path=json_proto method=POST [11:48:31]POST find Content-Length [11:48:31]Host: 172.17.96.197:8080 [11:48:31]Content-Length: 680 [11:48:31]Content-Type: application/json [11:48:31] [11:48:31]POST finish read [11:48:31]Found Content-Length = 680 [11:48:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:48:31]execute_script... [11:48: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)48552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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:48:31]POST & json_proto [11:48:31]process_json_proto [11:48:31]json parsed OK: [11:48:31]protocol is kg_v1.0 [11:48:31]action value=close_receipt [11:48:31]process_action close_receipt [11:48:31]cmd_close_receipt [11:48:31]MH_GetDate [11:48:31]Write to MH i2c: F0 00 00 89 0C 84 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: F0 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: F0 09 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: F0 09 00 89 0C 00 90 C2 1B 66 E0 85 7F 64 A8 [11:48:31]GetLastDocTimeStamp 1713094906 [11:48:31]current date 1713095312 [11:48:31]FM_GetShiftState [11:48:31]SAM_PROTO_GetShiftState [11:48:31]wFMCommunicate request_size=4 [11:48:31]MH_SAM_APDU [11:48:31]CAPDU: 80 13 01 00 [11:48:31]Write to MH i2c: E2 08 00 8A 0C 80 13 01 00 00 00 00 00 13 [11:48:31]Write i2c OK [11:48:31]MH_I2C_Read... [11:48:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:31]Read from MH i2c: E2 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0E 00 [11:48:31]MH_I2C_Read... [11:48:31]Read from MH i2c: E2 0E 00 8A 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AB [11:48:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:48:31]wFMCommunicate OK [11:48:31]SAM_PROTO_GetShiftState done [11:48:31]FM_GetShiftState done [11:48:31]opened in 1713054696 [11:48:31]opened+sec_in_day 1713141096 [11:48:31]quantity*price = 50031 [11:48:31]sum+1 = 50032 [11:48:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 135 14.04.2024 11:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112236 ФПД: 150924047559548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114832&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112236&fm=150924047559548&tin=02508201610067®Number=0000000000094237&sum=50000 [11:48:32]StoreToDocumentArchive [11:48:32]shift 357 fd 112236 [11:48:32]save to /storage/0357/doc_00112236 [11:48:32]save last doc name /storage/0357/doc_00112236 to /storage/kkm_last_doc_name [11:48:32]save OK [11:48:32]Clear old archive folders... [11:48:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:48:32]tlvbuf is 0177A6D0 [11:48:32]SAM_PROTO_ClearQueue [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 09 00 00 [11:48:32]Write to MH i2c: E2 08 00 97 0C 80 09 00 00 00 00 00 00 15 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:32]Read from MH i2c: E2 03 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 97 0C 00 90 00 17 [11:48:32]RAPDU: 90 00 [11:48:32]wFMCommunicate OK [11:48:32]SAM_PROTO_ClearQueue done [11:48:32]KKMCreateOFDPacket [11:48:32]OFDProtocolAddRootSTLVToBuf [11:48:32]FM_MakeSignedData [11:48:32]FM_MakeSignedData [11:48:32]SAM_PROTO_SignData [11:48:32]wFMCommunicate request_size=4 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 0D 01 02 [11:48:32]Write to MH i2c: E2 08 00 98 0C 80 0D 01 02 00 00 00 00 1D [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:32]Read from MH i2c: E2 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 [11:48:32]MH_I2C_Read... [11:48:32]Read from MH i2c: E2 03 00 98 0C 00 90 00 18 [11:48:32]RAPDU: 90 00 [11:48:32]wFMCommunicate OK [11:48:32]wFMCommunicate request_size=255 [11:48:32]MH_SAM_APDU [11:48:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 90 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B6 01 00 35 04 06 00 89 43 [11:48:32]Write to MH i2c: E2 02 01 99 0C 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 90 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B6 01 00 35 04 06 00 89 43 00 00 35 [11:48:32]Write i2c OK [11:48:32]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 03 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 03 00 99 0C 00 90 00 19 [11:48:33]RAPDU: 90 00 [11:48:33]wFMCommunicate OK [11:48:33]wFMCommunicate request_size=9 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 0D 02 02 04 BE 3E 2B 7C [11:48:33]Write to MH i2c: E2 0C 00 9A 0C 80 0D 02 02 04 00 BE 3E 2B 7C 00 00 CB [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 03 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 03 00 9A 0C 00 90 00 1A [11:48:33]RAPDU: 90 00 [11:48:33]wFMCommunicate OK [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 0D 03 02 [11:48:33]Write to MH i2c: E2 08 00 9B 0C 80 0D 03 02 00 00 00 00 22 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0B 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 0B 00 9B 0C 00 E9 10 89 D3 E3 44 9F 66 90 00 A4 [11:48:33]RAPDU: E9 10 89 D3 E3 44 9F 66 90 00 [11:48:33]wFMCommunicate OK [11:48:33]SAM_PROTO_SignData done [11:48:33]FM_MakeSignedData done [11:48:33]CreateOFDProtocolMessage [11:48:33]wFMCommunicate request_size=4 [11:48:33]MH_SAM_APDU [11:48:33]CAPDU: 80 11 00 00 [11:48:33]Write to MH i2c: E2 08 00 9C 0C 80 11 00 00 00 00 00 00 22 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:33]Read from MH i2c: E2 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: E2 17 00 9C 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 73 [11:48:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:48:33]wFMCommunicate OK [11:48:33]CreateOFDProtocolMessage done [11:48:33]OFDSenderStorePacket 112236 [11:48:33]StoreOFDPacket docnum=112236 [11:48:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 97 DF 06 01 1A 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 90 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B6 01 00 35 04 06 00 89 43 BE 3E 2B 7C E9 10 89 D3 E3 44 9F 66 [11:48:33]CheckFolder [11:48:33]dirname=/storage/ofd_packets [11:48:33]CheckFolder done [11:48:33]ProducePacketName [11:48:33]name=ofd_packets/00112236 [11:48:33]NVStorageSaveData ofd_packets/00112236 [11:48:33]File name is /storage/ofd_packets/00112236 [11:48:33]Write 300 bytes [11:48:33]NVStorageSaveData done [11:48:33]OFDSenderStorePacket done [11:48:33]KKMCreateOFDPacket done [11:48:33]NVStorageSaveData kkm_last_timestamp [11:48:33]File name is /storage/kkm_last_timestamp [11:48:33]Write 4 bytes [11:48:33]NVStorageSaveData done [11:48:33]ExternCall_PrintAddStr [11:48:33]wPrintStart [11:48:33]Write to MH i2c: 01 00 00 9D 0C A9 [11:48:33]Write i2c OK [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 [11:48:33]MH_I2C_Read... [11:48:33]Read from MH i2c: 01 07 00 9D 0C 00 00 00 00 00 FF 0F BE [11:48:33]RasterBufferAndPrint [11:48:33]line Счет N : (1)48552 [11:48:33]line ИНН: 02508201610067 [11:48:33]line Контрольно-Кассовый Чек [11:48:33]line ПРОДАЖА [11:48:33]line ТРК (МРК, ГНК) : 72 [11:48:33]line Товар: 2711190000 [11:48:33]line ГАЗ-К-5 [11:48:33]line 15.300 * 32.70 [11:48:33]line = 500.31 [11:48:33]line НДС 12% НСП 1% [11:48:33]line > о реализуемом товаре [11:48:33]line ОКРУГЛЕНИЕ: -0.31 [11:48:33]line ИТОГО: 500.00 [11:48:33]line Внесено: 500.00 [11:48:33]line СДАЧА: 0.00 [11:48:33]line НСП 1% : 4.43 [11:48:33]line НДС 12% : 53.13 [11:48:33]line Наличными: 500.00 [11:48:33]line Безнал.: 0.00 [11:48:33]line Место: АЗС № 47 "Партнер Нефть" [11:48:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:48:33]line СНО: Общий режим [11:48:33]line Чек 135 14.04.2024 11:48 [11:48:33]line Смена: 357 ФФД: 1.0 [11:48:33]line ЗНМ: 0300000138 [11:48:33]line РНМ: 0000000000094237 [11:48:33]line Версия ККМ: 001 [11:48:33]line ФМ: 0000000000875019 [11:48:33]line ФД: 112236 [11:48:33]line ФПД: 150924047559548 [11:48:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114832&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112236&fm=150924047559548&tin=02508201610067®Number=0000000000094237&sum=50000 [11:48:33]written 0, free lines is 4095 [11:48:33]OFD Sender: Processing packet 112236 [packets to send 71, broken 70] [11:48:33]ProducePacketName [11:48:33]name=ofd_packets/00112236 [11:48:33]OFD Sender: To server: pG, [11:48:33]CommunicateWithHost lk.salyk.kg:30040 [11:48:33]ConnectInit lk.salyk.kg [11:48:33]Connected sock=10 [11:48:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 97 DF 06 01 1A 04 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 90 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B6 01 00 35 04 06 00 89 43 BE 3E 2B 7C E9 10 89 D3 E3 44 9F 66 [11:48:34]Write to MH i2c: 01 00 00 C8 0C D4 [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 07 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: 01 07 00 C8 0C 00 00 00 00 00 DC 0C C3 [11:48:34]RasterBufferAndPrint [11:48:34]line [11:48:34]line [11:48:34]line [11:48:34]line [11:48:34]line [11:48:34]written 0, free lines is 3299 [11:48:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 90 DC 47 00 4D A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B6 01 00 F4 03 04 00 1B 6A 1B 66 B6 04 01 00 00 E0 4D 5A 0D E2 0D 15 50 [11:48:34]CommunicateWithHost err = 0 [11:48:34]CheckOFDResponse [11:48:34]1017 (14) - 77093643461234 [11:48:34]1041 (16) - 0000000000875019 [11:48:34]1040 (4) - 112236 [11:48:34]1012 (4) - 14.04.2024 05:31 [11:48:34]1206 (1) - 0 [11:48:34]OFD Sender: Remove packet 112236 [11:48:34]ProducePacketName [11:48:34]name=ofd_packets/00112236 [11:48:34]NVStorageDeleteData [11:48:34]MH_Cut [11:48:34]Write to MH i2c: D1 01 00 CF 0C 01 AD [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: D1 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: D1 01 00 [11:48:34]MH_I2C_Read... [11:48:34]Read from MH i2c: D1 01 00 CF 0C 00 AC [11:48:34]Write to MH i2c: 01 00 00 D0 0C DC [11:48:34]Write i2c OK [11:48:34]MH_I2C_Read... [11:48:34]OFD Sender: No OFD packet to send [11:48:34]*** Cut start [11:48:34]*** Partial cut [11:48:34]*** CUTSNS_PIN = 1 [11:48:34]*** CUTSNS_PIN = 0 [11:48:35]*** Brake cut motor [11:48:35]Read from MH i2c: 01 [11:48:35]MH_I2C_Read... [11:48:35]*** Stop cut motor [11:48:35]*** Cut end [11:48:35]Read from MH i2c: 01 07 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [11:48:35]process_action close_receipt done [11:48:35]requested_data is exist [11:48:35]produce_requested_data [11:48:35]requested_item fm.sn is exist - process it [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 11 00 00 [11:48:35]Write to MH i2c: E2 08 00 D1 0C 80 11 00 00 00 00 00 00 57 [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:35]Read from MH i2c: E2 17 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 17 00 D1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A8 [11:48:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:48:35]wFMCommunicate OK [11:48:35]requested_item fd.num is exist - process it [11:48:35]SAM_PROTO_GetFieldsCounters [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 13 00 00 [11:48:35]Write to MH i2c: E2 08 00 D2 0C 80 13 00 00 00 00 00 00 5A [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 62 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 62 00 D2 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [11:48:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:35]wFMCommunicate OK [11:48:35]SAM_PROTO_GetFieldsCounters done [11:48:35]requested_item shift.num is exist - process it [11:48:35]requested_item shift.opened is exist - process it [11:48:35]req_shift_opened [11:48:35]FM_GetShiftState [11:48:35]SAM_PROTO_GetShiftState [11:48:35]wFMCommunicate request_size=4 [11:48:35]MH_SAM_APDU [11:48:35]CAPDU: 80 13 01 00 [11:48:35]Write to MH i2c: E2 08 00 D3 0C 80 13 01 00 00 00 00 00 5C [11:48:35]Write i2c OK [11:48:35]MH_I2C_Read... [11:48:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:35]Read from MH i2c: E2 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 [11:48:35]MH_I2C_Read... [11:48:35]Read from MH i2c: E2 0E 00 D3 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F4 [11:48:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:48:35]wFMCommunicate OK [11:48:35]SAM_PROTO_GetShiftState done [11:48:35]FM_GetShiftState done [11:48:35]req_shift_opened done [11:48:35]requested_item shift.open_date is exist - process it [11:48:35]req_shift_open_date [11:48:35]req_shift_open_date done [11:48:35]produce_requested_data done [11:48:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112236,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:48:35]process_action_free close_receipt [11:48:35]json_value_free [11:48:35]json_value_free done [11:48:35]process_json_proto returns [11:48:35]Send response to host [11:48:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112236,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:48:35]free response buf [11:48:35]execute_script done [11:48:35]execute_script returns [11:48:35]free content buf [11:48:35]Sock 9.Close socket [11:48:35]Sock 9.Thread stoped [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:30]accept exits with 7 [11:49:30]New connection [11:49:30]New thread 3067198820 created [11:49:30]Thread 3067342180 joined [11:49:30]Waiting for new connection... [11:49:30] Sock 7.Parse request [11:49:30]Sock 7.Check first char [11:49:30]Sock 7.First char is OK [11:49:30]request: POST /json_proto HTTP/1.0 [11:49:30]Method: POST [11:49:30]URL: /json_proto [11:49:30]Method is POST - this is cgi request [11:49:30]url: /json_proto [11:49:30]query_string will be loaded in cgi processing [11:49:30]execute_cgi json_proto POST (null) [11:49:30]execute_cgi path=json_proto method=POST [11:49:30]POST find Content-Length [11:49:30]Host: 172.17.96.197:8080 [11:49:30]Content-Length: 818 [11:49:30]Content-Type: application/json [11:49:30] [11:49:30]POST finish read [11:49:30]Found Content-Length = 818 [11:49:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:30]execute_script... [11:49: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)48553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:30]POST & json_proto [11:49:30]process_json_proto [11:49:30]json parsed OK: [11:49:30]protocol is kg_v1.0 [11:49:30]action value=close_receipt [11:49:30]process_action close_receipt [11:49:30]cmd_close_receipt [11:49:30]MH_GetDate [11:49:30]Write to MH i2c: F0 00 00 D4 0C CF [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: F0 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: F0 09 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: F0 09 00 D4 0C 00 CB C2 1B 66 E0 85 7F 64 2E [11:49:30]GetLastDocTimeStamp 1713095312 [11:49:30]current date 1713095371 [11:49:30]FM_GetShiftState [11:49:30]SAM_PROTO_GetShiftState [11:49:30]wFMCommunicate request_size=4 [11:49:30]MH_SAM_APDU [11:49:30]CAPDU: 80 13 01 00 [11:49:30]Write to MH i2c: E2 08 00 D5 0C 80 13 01 00 00 00 00 00 5E [11:49:30]Write i2c OK [11:49:30]MH_I2C_Read... [11:49:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:30]Read from MH i2c: E2 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0E 00 [11:49:30]MH_I2C_Read... [11:49:30]Read from MH i2c: E2 0E 00 D5 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F6 [11:49:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:49:30]wFMCommunicate OK [11:49:30]SAM_PROTO_GetShiftState done [11:49:30]FM_GetShiftState done [11:49:30]opened in 1713054696 [11:49:30]opened+sec_in_day 1713141096 [11:49:30]quantity*price = 100050 [11:49:30]sum+1 = 100051 [11:49:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.50 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.50 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 136 14.04.2024 11:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112237 ФПД: 38458894505828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114931&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112237&fm=38458894505828&tin=02508201610067®Number=0000000000094237&sum=100050 [11:49:32]StoreToDocumentArchive [11:49:32]shift 357 fd 112237 [11:49:32]save to /storage/0357/doc_00112237 [11:49:32]save last doc name /storage/0357/doc_00112237 to /storage/kkm_last_doc_name [11:49:32]save OK [11:49:32]Clear old archive folders... [11:49:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:32]tlvbuf is 01817460 [11:49:32]SAM_PROTO_ClearQueue [11:49:32]wFMCommunicate request_size=4 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 09 00 00 [11:49:32]Write to MH i2c: E2 08 00 E2 0C 80 09 00 00 00 00 00 00 60 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:32]Read from MH i2c: E2 03 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 E2 0C 00 90 00 62 [11:49:32]RAPDU: 90 00 [11:49:32]wFMCommunicate OK [11:49:32]SAM_PROTO_ClearQueue done [11:49:32]KKMCreateOFDPacket [11:49:32]OFDProtocolAddRootSTLVToBuf [11:49:32]FM_MakeSignedData [11:49:32]FM_MakeSignedData [11:49:32]SAM_PROTO_SignData [11:49:32]wFMCommunicate request_size=4 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 0D 01 02 [11:49:32]Write to MH i2c: E2 08 00 E3 0C 80 0D 01 02 00 00 00 00 68 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 E3 0C 00 90 00 63 [11:49:32]RAPDU: 90 00 [11:49:32]wFMCommunicate OK [11:49:32]wFMCommunicate request_size=255 [11:49:32]MH_SAM_APDU [11:49:32]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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CB C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B6 01 00 35 04 06 00 22 [11:49:32]Write to MH i2c: E2 02 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CB C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B6 01 00 35 04 06 00 22 00 00 6E [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 E4 0C 00 90 00 64 [11:49:32]RAPDU: 90 00 [11:49:32]wFMCommunicate OK [11:49:32]wFMCommunicate request_size=10 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 0D 02 02 05 FA 68 BE D7 64 [11:49:32]Write to MH i2c: E2 0D 00 E5 0C 80 0D 02 02 05 00 FA 68 BE D7 64 00 00 D0 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 03 00 E5 0C 00 90 00 65 [11:49:32]RAPDU: 90 00 [11:49:32]wFMCommunicate OK [11:49:32]wFMCommunicate request_size=4 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 0D 03 02 [11:49:32]Write to MH i2c: E2 08 00 E6 0C 80 0D 03 02 00 00 00 00 6D [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 0B 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 0B 00 E6 0C 00 24 12 9C 26 3E 4B 96 89 90 00 0E [11:49:32]RAPDU: 24 12 9C 26 3E 4B 96 89 90 00 [11:49:32]wFMCommunicate OK [11:49:32]SAM_PROTO_SignData done [11:49:32]FM_MakeSignedData done [11:49:32]CreateOFDProtocolMessage [11:49:32]wFMCommunicate request_size=4 [11:49:32]MH_SAM_APDU [11:49:32]CAPDU: 80 11 00 00 [11:49:32]Write to MH i2c: E2 08 00 E7 0C 80 11 00 00 00 00 00 00 6D [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:32]Read from MH i2c: E2 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 17 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: E2 17 00 E7 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BE [11:49:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:49:32]wFMCommunicate OK [11:49:32]CreateOFDProtocolMessage done [11:49:32]OFDSenderStorePacket 112237 [11:49:32]StoreOFDPacket docnum=112237 [11:49:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 22 7C 07 01 6C 2A 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CB C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B6 01 00 35 04 06 00 22 FA 68 BE D7 64 24 12 9C 26 3E 4B 96 89 [11:49:32]CheckFolder [11:49:32]dirname=/storage/ofd_packets [11:49:32]CheckFolder done [11:49:32]ProducePacketName [11:49:32]name=ofd_packets/00112237 [11:49:32]NVStorageSaveData ofd_packets/00112237 [11:49:32]File name is /storage/ofd_packets/00112237 [11:49:32]Write 301 bytes [11:49:32]NVStorageSaveData done [11:49:32]OFDSenderStorePacket done [11:49:32]KKMCreateOFDPacket done [11:49:32]NVStorageSaveData kkm_last_timestamp [11:49:32]File name is /storage/kkm_last_timestamp [11:49:32]Write 4 bytes [11:49:32]NVStorageSaveData done [11:49:32]ExternCall_PrintAddStr [11:49:32]wPrintStart [11:49:32]Write to MH i2c: 01 00 00 E8 0C F4 [11:49:32]Write i2c OK [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 [11:49:32]MH_I2C_Read... [11:49:32]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [11:49:32]RasterBufferAndPrint [11:49:32]line Счет N : (1)48553 [11:49:32]line ИНН: 02508201610067 [11:49:32]line Контрольно-Кассовый Чек [11:49:32]line ПРОДАЖА [11:49:32]line ТРК (МРК, ГНК) : 12 [11:49:32]line Товар: 2710124500 [11:49:32]line Аи-95-К-5 [11:49:32]line 13.800 * 72.50 [11:49:32]line = 1000.50 [11:49:32]line НДС 12% НСП 1% [11:49:32]line > о реализуемом товаре [11:49:32]line ИТОГО: 1000.50 [11:49:32]line НСП 1% : 8.85 [11:49:32]line НДС 12% : 106.25 [11:49:32]line Наличными: 0.00 [11:49:32]line Безнал.: 1000.50 [11:49:32]line Место: АЗС № 47 "Партнер Нефть" [11:49:32]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:49:32]line СНО: Общий режим [11:49:32]line Чек 136 14.04.2024 11:49 [11:49:32]line Смена: 357 ФФД: 1.0 [11:49:32]line ЗНМ: 0300000138 [11:49:32]line РНМ: 0000000000094237 [11:49:32]line Версия ККМ: 001 [11:49:32]line Платежная система: Бакай Банк [11:49:32]line ФМ: 0000000000875019 [11:49:32]line ФД: 112237 [11:49:32]line ФПД: 38458894505828 [11:49:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114931&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112237&fm=38458894505828&tin=02508201610067®Number=0000000000094237&sum=100050 [11:49:32]written 0, free lines is 4095 [11:49:32]OFD Sender: Processing packet 112237 [packets to send 71, broken 70] [11:49:32]ProducePacketName [11:49:32]name=ofd_packets/00112237 [11:49:32]OFD Sender: To server: pG, [11:49:32]CommunicateWithHost lk.salyk.kg:30040 [11:49:32]ConnectInit lk.salyk.kg [11:49:33]Connected sock=10 [11:49:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 22 7C 07 01 6C 2A 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D2 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 D2 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 CB C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B6 01 00 35 04 06 00 22 FA 68 BE D7 64 24 12 9C 26 3E 4B 96 89 [11:49:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 87 4F 47 00 61 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B6 01 00 F4 03 04 00 57 6A 1B 66 B6 04 01 00 00 E7 BA C2 24 F1 A2 37 6F [11:49:33]CommunicateWithHost err = 0 [11:49:33]CheckOFDResponse [11:49:33]1017 (14) - 77093643461234 [11:49:33]1041 (16) - 0000000000875019 [11:49:33]1040 (4) - 112237 [11:49:33]1012 (4) - 14.04.2024 05:32 [11:49:33]1206 (1) - 0 [11:49:33]OFD Sender: Remove packet 112237 [11:49:33]ProducePacketName [11:49:33]name=ofd_packets/00112237 [11:49:33]NVStorageDeleteData [11:49:33]Write to MH i2c: 01 00 00 12 0D 1F [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: 01 07 00 12 0D 00 00 00 00 00 03 0D 36 [11:49:33]RasterBufferAndPrint [11:49:33]line [11:49:33]line [11:49:33]line [11:49:33]line [11:49:33]line [11:49:33]written 0, free lines is 3337 [11:49:33]MH_Cut [11:49:33]Write to MH i2c: D1 01 00 19 0D 01 F8 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: D1 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: D1 01 00 [11:49:33]MH_I2C_Read... [11:49:33]Read from MH i2c: D1 01 00 19 0D 00 F7 [11:49:33]Write to MH i2c: 01 00 00 1A 0D 27 [11:49:33]Write i2c OK [11:49:33]MH_I2C_Read... [11:49:33]OFD Sender: No OFD packet to send [11:49:34]*** Cut start [11:49:34]*** Partial cut [11:49:34]*** CUTSNS_PIN = 1 [11:49:34]*** CUTSNS_PIN = 0 [11:49:34]*** Brake cut motor [11:49:34]Read from MH i2c: 01 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: 01 07 00 [11:49:34]MH_I2C_Read... [11:49:34]*** Stop cut motor [11:49:34]*** Cut end [11:49:34]Read from MH i2c: 01 07 00 1A 0D 00 00 00 00 00 FF 0F 3C [11:49:34]process_action close_receipt done [11:49:34]requested_data is exist [11:49:34]produce_requested_data [11:49:34]requested_item fm.sn is exist - process it [11:49:34]wFMCommunicate request_size=4 [11:49:34]MH_SAM_APDU [11:49:34]CAPDU: 80 11 00 00 [11:49:34]Write to MH i2c: E2 08 00 1B 0D 80 11 00 00 00 00 00 00 A2 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 [11:49:34]MH_I2C_Read... [11:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:34]Read from MH i2c: E2 17 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 17 00 1B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [11:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:49:34]wFMCommunicate OK [11:49:34]requested_item fd.num is exist - process it [11:49:34]SAM_PROTO_GetFieldsCounters [11:49:34]wFMCommunicate request_size=4 [11:49:34]MH_SAM_APDU [11:49:34]CAPDU: 80 13 00 00 [11:49:34]Write to MH i2c: E2 08 00 1C 0D 80 13 00 00 00 00 00 00 A5 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:34]Read from MH i2c: E2 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 62 00 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 62 00 1C 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [11:49:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:34]wFMCommunicate OK [11:49:34]SAM_PROTO_GetFieldsCounters done [11:49:34]requested_item shift.num is exist - process it [11:49:34]requested_item shift.opened is exist - process it [11:49:34]req_shift_opened [11:49:34]FM_GetShiftState [11:49:34]SAM_PROTO_GetShiftState [11:49:34]wFMCommunicate request_size=4 [11:49:34]MH_SAM_APDU [11:49:34]CAPDU: 80 13 01 00 [11:49:34]Write to MH i2c: E2 08 00 1D 0D 80 13 01 00 00 00 00 00 A7 [11:49:34]Write i2c OK [11:49:34]MH_I2C_Read... [11:49:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:34]Read from MH i2c: E2 [11:49:34]MH_I2C_Read... [11:49:34]Read from MH i2c: E2 0E 00 [11:49:34]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 0E 00 1D 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3F [11:49:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:49:35]wFMCommunicate OK [11:49:35]SAM_PROTO_GetShiftState done [11:49:35]FM_GetShiftState done [11:49:35]req_shift_opened done [11:49:35]requested_item shift.open_date is exist - process it [11:49:35]req_shift_open_date [11:49:35]req_shift_open_date done [11:49:35]produce_requested_data done [11:49:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112237,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:49:35]process_action_free close_receipt [11:49:35]json_value_free [11:49:35]json_value_free done [11:49:35]process_json_proto returns [11:49:35]Send response to host [11:49:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112237,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:49:35]free response buf [11:49:35]execute_script done [11:49:35]execute_script returns [11:49:35]free content buf [11:49:35]Sock 7.Close socket [11:49:35]Sock 7.Thread stoped [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:54]accept exits with 9 [11:49:54]New connection [11:49:54]New thread 3067342180 created [11:49:54]Thread 3067198820 joined [11:49:54]Waiting for new connection... [11:49:54] Sock 9.Parse request [11:49:54]Sock 9.Check first char [11:49:54]Sock 9.First char is OK [11:49:54]request: POST /json_proto HTTP/1.0 [11:49:54]Method: POST [11:49:54]URL: /json_proto [11:49:54]Method is POST - this is cgi request [11:49:54]url: /json_proto [11:49:54]query_string will be loaded in cgi processing [11:49:54]execute_cgi json_proto POST (null) [11:49:54]execute_cgi path=json_proto method=POST [11:49:54]POST find Content-Length [11:49:54]Host: 172.17.96.197:8080 [11:49:54]Content-Length: 819 [11:49:54]Content-Type: application/json [11:49:54] [11:49:54]POST finish read [11:49:54]Found Content-Length = 819 [11:49:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:54]execute_script... [11:49: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)48554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:54]POST & json_proto [11:49:54]process_json_proto [11:49:54]json parsed OK: [11:49:54]protocol is kg_v1.0 [11:49:54]action value=close_receipt [11:49:54]process_action close_receipt [11:49:54]cmd_close_receipt [11:49:54]MH_GetDate [11:49:54]Write to MH i2c: F0 00 00 1E 0D 1A [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 09 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: F0 09 00 1E 0D 00 E3 C2 1B 66 E0 85 7F 64 91 [11:49:54]GetLastDocTimeStamp 1713095371 [11:49:54]current date 1713095395 [11:49:54]FM_GetShiftState [11:49:54]SAM_PROTO_GetShiftState [11:49:54]wFMCommunicate request_size=4 [11:49:54]MH_SAM_APDU [11:49:54]CAPDU: 80 13 01 00 [11:49:54]Write to MH i2c: E2 08 00 1F 0D 80 13 01 00 00 00 00 00 A9 [11:49:54]Write i2c OK [11:49:54]MH_I2C_Read... [11:49:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:54]Read from MH i2c: E2 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 0E 00 [11:49:54]MH_I2C_Read... [11:49:54]Read from MH i2c: E2 0E 00 1F 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [11:49:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:49:54]wFMCommunicate OK [11:49:54]SAM_PROTO_GetShiftState done [11:49:54]FM_GetShiftState done [11:49:54]opened in 1713054696 [11:49:54]opened+sec_in_day 1713141096 [11:49:54]quantity*price = 50031 [11:49:54]sum+1 = 50032 [11:49:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.31 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.31 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 137 14.04.2024 11:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112238 ФПД: 45108793365269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114955&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112238&fm=45108793365269&tin=02508201610067®Number=0000000000094237&sum=50031 [11:49:55]StoreToDocumentArchive [11:49:55]shift 357 fd 112238 [11:49:55]save to /storage/0357/doc_00112238 [11:49:55]save last doc name /storage/0357/doc_00112238 to /storage/kkm_last_doc_name [11:49:55]save OK [11:49:55]Clear old archive folders... [11:49:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:49:55]tlvbuf is 017C8D70 [11:49:55]SAM_PROTO_ClearQueue [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 09 00 00 [11:49:55]Write to MH i2c: E2 08 00 2C 0D 80 09 00 00 00 00 00 00 AB [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 2C 0D 00 90 00 AD [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]SAM_PROTO_ClearQueue done [11:49:55]KKMCreateOFDPacket [11:49:55]OFDProtocolAddRootSTLVToBuf [11:49:55]FM_MakeSignedData [11:49:55]FM_MakeSignedData [11:49:55]SAM_PROTO_SignData [11:49:55]wFMCommunicate request_size=4 [11:49:55]MH_SAM_APDU [11:49:55]CAPDU: 80 0D 01 02 [11:49:55]Write to MH i2c: E2 08 00 2D 0D 80 0D 01 02 00 00 00 00 B3 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:55]Read from MH i2c: E2 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 [11:49:55]MH_I2C_Read... [11:49:55]Read from MH i2c: E2 03 00 2D 0D 00 90 00 AE [11:49:55]RAPDU: 90 00 [11:49:55]wFMCommunicate OK [11:49:55]wFMCommunicate request_size=255 [11:49:55]MH_SAM_APDU [11:49: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E3 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B6 01 00 35 04 06 00 29 06 [11:49:55]Write to MH i2c: E2 02 01 2E 0D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E3 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B6 01 00 35 04 06 00 29 06 00 00 C3 [11:49:55]Write i2c OK [11:49:55]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 2E 0D 00 90 00 AF [11:49:56]RAPDU: 90 00 [11:49:56]wFMCommunicate OK [11:49:56]wFMCommunicate request_size=9 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 0D 02 02 04 B5 9A D3 15 [11:49:56]Write to MH i2c: E2 0C 00 2F 0D 80 0D 02 02 04 00 B5 9A D3 15 00 00 F5 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 03 00 2F 0D 00 90 00 B0 [11:49:56]RAPDU: 90 00 [11:49:56]wFMCommunicate OK [11:49:56]wFMCommunicate request_size=4 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 0D 03 02 [11:49:56]Write to MH i2c: E2 08 00 30 0D 80 0D 03 02 00 00 00 00 B8 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 0B 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 0B 00 30 0D 00 17 E1 B8 51 D3 6C E9 E4 90 00 C6 [11:49:56]RAPDU: 17 E1 B8 51 D3 6C E9 E4 90 00 [11:49:56]wFMCommunicate OK [11:49:56]SAM_PROTO_SignData done [11:49:56]FM_MakeSignedData done [11:49:56]CreateOFDProtocolMessage [11:49:56]wFMCommunicate request_size=4 [11:49:56]MH_SAM_APDU [11:49:56]CAPDU: 80 11 00 00 [11:49:56]Write to MH i2c: E2 08 00 31 0D 80 11 00 00 00 00 00 00 B8 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:56]Read from MH i2c: E2 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 17 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: E2 17 00 31 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 09 [11:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:49:56]wFMCommunicate OK [11:49:56]CreateOFDProtocolMessage done [11:49:56]OFDSenderStorePacket 112238 [11:49:56]StoreOFDPacket docnum=112238 [11:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A3 6A 06 01 24 0D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E3 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B6 01 00 35 04 06 00 29 06 B5 9A D3 15 17 E1 B8 51 D3 6C E9 E4 [11:49:56]CheckFolder [11:49:56]dirname=/storage/ofd_packets [11:49:56]CheckFolder done [11:49:56]ProducePacketName [11:49:56]name=ofd_packets/00112238 [11:49:56]NVStorageSaveData ofd_packets/00112238 [11:49:56]File name is /storage/ofd_packets/00112238 [11:49:56]Write 300 bytes [11:49:56]NVStorageSaveData done [11:49:56]OFDSenderStorePacket done [11:49:56]KKMCreateOFDPacket done [11:49:56]NVStorageSaveData kkm_last_timestamp [11:49:56]File name is /storage/kkm_last_timestamp [11:49:56]Write 4 bytes [11:49:56]NVStorageSaveData done [11:49:56]ExternCall_PrintAddStr [11:49:56]wPrintStart [11:49:56]Write to MH i2c: 01 00 00 32 0D 3F [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 FF 0F 54 [11:49:56]RasterBufferAndPrint [11:49:56]line Счет N : (1)48554 [11:49:56]line ИНН: 02508201610067 [11:49:56]line Контрольно-Кассовый Чек [11:49:56]line ПРОДАЖА [11:49:56]line ТРК (МРК, ГНК) : 71 [11:49:56]line Товар: 2711190000 [11:49:56]line ГАЗ-К-5 [11:49:56]line 15.300 * 32.70 [11:49:56]line = 500.31 [11:49:56]line НДС 12% НСП 1% [11:49:56]line > о реализуемом товаре [11:49:56]line ИТОГО: 500.31 [11:49:56]line НСП 1% : 4.43 [11:49:56]line НДС 12% : 53.13 [11:49:56]line Наличными: 0.00 [11:49:56]line Безнал.: 500.31 [11:49:56]line Место: АЗС № 47 "Партнер Нефть" [11:49:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:49:56]line СНО: Общий режим [11:49:56]line Чек 137 14.04.2024 11:49 [11:49:56]line Смена: 357 ФФД: 1.0 [11:49:56]line ЗНМ: 0300000138 [11:49:56]line РНМ: 0000000000094237 [11:49:56]line Версия ККМ: 001 [11:49:56]line Платежная система: Бакай Банк [11:49:56]line ФМ: 0000000000875019 [11:49:56]line ФД: 112238 [11:49:56]line ФПД: 45108793365269 [11:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T114955&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112238&fm=45108793365269&tin=02508201610067®Number=0000000000094237&sum=50031 [11:49:56]OFD Sender: Processing packet 112238 [packets to send 71, broken 70] [11:49:56]ProducePacketName [11:49:56]name=ofd_packets/00112238 [11:49:56]OFD Sender: To server: pG, [11:49:56]CommunicateWithHost lk.salyk.kg:30040 [11:49:56]ConnectInit lk.salyk.kg [11:49:56]written 0, free lines is 4095 [11:49:56]Connected sock=10 [11:49:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A3 6A 06 01 24 0D 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 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 6F C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 E3 C2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B6 01 00 35 04 06 00 29 06 B5 9A D3 15 17 E1 B8 51 D3 6C E9 E4 [11:49:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A2 8B 47 00 F8 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B6 01 00 F4 03 04 00 6E 6A 1B 66 B6 04 01 00 00 EA 67 31 FB A6 9C BC 28 [11:49:56]CommunicateWithHost err = 0 [11:49:56]CheckOFDResponse [11:49:56]1017 (14) - 77093643461234 [11:49:56]1041 (16) - 0000000000875019 [11:49:56]1040 (4) - 112238 [11:49:56]1012 (4) - 14.04.2024 05:32 [11:49:56]1206 (1) - 0 [11:49:56]OFD Sender: Remove packet 112238 [11:49:56]ProducePacketName [11:49:56]name=ofd_packets/00112238 [11:49:56]NVStorageDeleteData [11:49:56]Write to MH i2c: 01 00 00 5C 0D 69 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: 01 07 00 5C 0D 00 00 00 00 00 FA 0C 76 [11:49:56]RasterBufferAndPrint [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]line [11:49:56]written 0, free lines is 3328 [11:49:56]MH_Cut [11:49:56]Write to MH i2c: D1 01 00 63 0D 01 42 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 [11:49:56]MH_I2C_Read... [11:49:56]Read from MH i2c: D1 01 00 63 0D 00 41 [11:49:56]Write to MH i2c: 01 00 00 64 0D 71 [11:49:56]Write i2c OK [11:49:56]MH_I2C_Read... [11:49:57]OFD Sender: No OFD packet to send [11:49:57]*** Cut start [11:49:57]*** Partial cut [11:49:57]*** CUTSNS_PIN = 1 [11:49:57]*** CUTSNS_PIN = 0 [11:49:57]*** Brake cut motor [11:49:58]Read from MH i2c: 01 [11:49:58]MH_I2C_Read... [11:49:58]*** Stop cut motor [11:49:58]*** Cut end [11:49:58]Read from MH i2c: 01 07 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: 01 07 00 64 0D 00 00 00 00 00 FF 0F 86 [11:49:58]process_action close_receipt done [11:49:58]requested_data is exist [11:49:58]produce_requested_data [11:49:58]requested_item fm.sn is exist - process it [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 11 00 00 [11:49:58]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3D [11:49:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:49:58]wFMCommunicate OK [11:49:58]requested_item fd.num is exist - process it [11:49:58]SAM_PROTO_GetFieldsCounters [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 00 00 [11:49:58]Write to MH i2c: E2 08 00 66 0D 80 13 00 00 00 00 00 00 EF [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 62 00 66 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [11:49:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetFieldsCounters done [11:49:58]requested_item shift.num is exist - process it [11:49:58]requested_item shift.opened is exist - process it [11:49:58]req_shift_opened [11:49:58]FM_GetShiftState [11:49:58]SAM_PROTO_GetShiftState [11:49:58]wFMCommunicate request_size=4 [11:49:58]MH_SAM_APDU [11:49:58]CAPDU: 80 13 01 00 [11:49:58]Write to MH i2c: E2 08 00 67 0D 80 13 01 00 00 00 00 00 F1 [11:49:58]Write i2c OK [11:49:58]MH_I2C_Read... [11:49:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:58]Read from MH i2c: E2 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 [11:49:58]MH_I2C_Read... [11:49:58]Read from MH i2c: E2 0E 00 67 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 89 [11:49:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:49:58]wFMCommunicate OK [11:49:58]SAM_PROTO_GetShiftState done [11:49:58]FM_GetShiftState done [11:49:58]req_shift_opened done [11:49:58]requested_item shift.open_date is exist - process it [11:49:58]req_shift_open_date [11:49:58]req_shift_open_date done [11:49:58]produce_requested_data done [11:49:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112238,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:49:58]process_action_free close_receipt [11:49:58]json_value_free [11:49:58]json_value_free done [11:49:58]process_json_proto returns [11:49:58]Send response to host [11:49:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112238,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:49:58]free response buf [11:49:58]execute_script done [11:49:58]execute_script returns [11:49:58]free content buf [11:49:58]Sock 9.Close socket [11:49:58]Sock 9.Thread stoped [11:50:02]OFD Sender: No OFD packet to send [11:50:07]OFD Sender: No OFD packet to send [11:50:12]OFD Sender: No OFD packet to send [11:50:17]OFD Sender: No OFD packet to send [11:50:22]OFD Sender: No OFD packet to send [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:26]accept exits with 7 [11:51:26]New connection [11:51:26]New thread 3067198820 created [11:51:26]Thread 3067342180 joined [11:51:26]Waiting for new connection... [11:51:26] Sock 7.Parse request [11:51:26]Sock 7.Check first char [11:51:26]Sock 7.First char is OK [11:51:26]request: POST /json_proto HTTP/1.0 [11:51:26]Method: POST [11:51:26]URL: /json_proto [11:51:26]Method is POST - this is cgi request [11:51:26]url: /json_proto [11:51:26]query_string will be loaded in cgi processing [11:51:26]execute_cgi json_proto POST (null) [11:51:26]execute_cgi path=json_proto method=POST [11:51:26]POST find Content-Length [11:51:26]Host: 172.17.96.197:8080 [11:51:26]Content-Length: 643 [11:51:26]Content-Type: application/json [11:51:26] [11:51:26]POST finish read [11:51:26]Found Content-Length = 643 [11:51:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10416", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:26]execute_script... [11:51:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10416", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:26]POST & json_proto [11:51:26]process_json_proto [11:51:26]json parsed OK: [11:51:26]protocol is kg_v1.0 [11:51:26]action value=close_receipt [11:51:26]process_action close_receipt [11:51:26]cmd_close_receipt [11:51:26]MH_GetDate [11:51:26]Write to MH i2c: F0 00 00 68 0D 64 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: F0 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: F0 09 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: F0 09 00 68 0D 00 3E C3 1B 66 E0 85 7F 64 37 [11:51:26]GetLastDocTimeStamp 1713095395 [11:51:26]current date 1713095486 [11:51:26]FM_GetShiftState [11:51:26]SAM_PROTO_GetShiftState [11:51:26]wFMCommunicate request_size=4 [11:51:26]MH_SAM_APDU [11:51:26]CAPDU: 80 13 01 00 [11:51:26]Write to MH i2c: E2 08 00 69 0D 80 13 01 00 00 00 00 00 F3 [11:51:26]Write i2c OK [11:51:26]MH_I2C_Read... [11:51:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:26]Read from MH i2c: E2 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0E 00 [11:51:26]MH_I2C_Read... [11:51:26]Read from MH i2c: E2 0E 00 69 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8B [11:51:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:51:26]wFMCommunicate OK [11:51:26]SAM_PROTO_GetShiftState done [11:51:26]FM_GetShiftState done [11:51:26]opened in 1713054696 [11:51:26]opened+sec_in_day 1713141096 [11:51:26]quantity*price = 11500 [11:51:26]sum+1 = 11501 [11:51:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 138 14.04.2024 11:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112239 ФПД: 138459005206594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115126&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112239&fm=138459005206594&tin=02508201610067®Number=0000000000094237&sum=11500 0 [11:51:27]StoreToDocumentArchive [11:51:27]shift 357 fd 112239 [11:51:27]save to /storage/0357/doc_00112239 [11:51:27]save last doc name /storage/0357/doc_00112239 to /storage/kkm_last_doc_name [11:51:27]save OK [11:51:27]Clear old archive folders... [11:51:27]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:51:27]tlvbuf is 017DC0F0 [11:51:27]SAM_PROTO_ClearQueue [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 09 00 00 [11:51:27]Write to MH i2c: E2 08 00 76 0D 80 09 00 00 00 00 00 00 F5 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_ClearQueue done [11:51:27]KKMCreateOFDPacket [11:51:27]OFDProtocolAddRootSTLVToBuf [11:51:27]FM_MakeSignedData [11:51:27]FM_MakeSignedData [11:51:27]SAM_PROTO_SignData [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 01 02 [11:51:27]Write to MH i2c: E2 08 00 77 0D 80 0D 01 02 00 00 00 00 FD [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 77 0D 00 90 00 F8 [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]wFMCommunicate request_size=255 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3E C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 [11:51:27]Write to MH i2c: E2 02 01 78 0D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3E C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 00 00 AF [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]OFD Sender: No OFD packet to send [11:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 78 0D 00 90 00 F9 [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]wFMCommunicate request_size=39 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B6 01 00 35 04 06 00 7D ED 7F D2 40 42 [11:51:27]Write to MH i2c: E2 2A 00 79 0D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B6 01 00 35 04 06 00 7D ED 7F D2 40 42 00 00 1C [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 03 00 79 0D 00 90 00 FA [11:51:27]RAPDU: 90 00 [11:51:27]wFMCommunicate OK [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 0D 03 02 [11:51:27]Write to MH i2c: E2 08 00 7A 0D 80 0D 03 02 00 00 00 00 02 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0B 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 0B 00 7A 0D 00 C7 3B E2 9D C1 5C 60 B2 90 00 B3 [11:51:27]RAPDU: C7 3B E2 9D C1 5C 60 B2 90 00 [11:51:27]wFMCommunicate OK [11:51:27]SAM_PROTO_SignData done [11:51:27]FM_MakeSignedData done [11:51:27]CreateOFDProtocolMessage [11:51:27]wFMCommunicate request_size=4 [11:51:27]MH_SAM_APDU [11:51:27]CAPDU: 80 11 00 00 [11:51:27]Write to MH i2c: E2 08 00 7B 0D 80 11 00 00 00 00 00 00 02 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:27]Read from MH i2c: E2 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: E2 17 00 7B 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 53 [11:51:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:51:27]wFMCommunicate OK [11:51:27]CreateOFDProtocolMessage done [11:51:27]OFDSenderStorePacket 112239 [11:51:27]StoreOFDPacket docnum=112239 [11:51:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 1F 6B 24 01 D0 C2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3E C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B6 01 00 35 04 06 00 7D ED 7F D2 40 42 C7 3B E2 9D C1 5C 60 B2 [11:51:27]CheckFolder [11:51:27]dirname=/storage/ofd_packets [11:51:27]CheckFolder done [11:51:27]ProducePacketName [11:51:27]name=ofd_packets/00112239 [11:51:27]NVStorageSaveData ofd_packets/00112239 [11:51:27]File name is /storage/ofd_packets/00112239 [11:51:27]Write 330 bytes [11:51:27]NVStorageSaveData done [11:51:27]OFDSenderStorePacket done [11:51:27]KKMCreateOFDPacket done [11:51:27]NVStorageSaveData kkm_last_timestamp [11:51:27]File name is /storage/kkm_last_timestamp [11:51:27]Write 4 bytes [11:51:27]NVStorageSaveData done [11:51:27]ExternCall_PrintAddStr [11:51:27]wPrintStart [11:51:27]Write to MH i2c: 01 00 00 7C 0D 89 [11:51:27]Write i2c OK [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 [11:51:27]MH_I2C_Read... [11:51:27]Read from MH i2c: 01 07 00 7C 0D 00 00 00 00 00 FF 0F 9E [11:51:27]RasterBufferAndPrint [11:51:27]line Счет N : (3)10416 [11:51:27]line ИНН: 02508201610067 [11:51:27]line Контрольно-Кассовый Чек [11:51:27]line ПРОДАЖА [11:51:27]line Товар: 2000036210013 [11:51:27]line Кофе Капучино (GABB TRADE) [11:51:27]line 1.000 * 115.00 [11:51:27]line = 115.00 [11:51:27]line НДС 12% НСП 1% [11:51:27]line > о реализуемом товаре [11:51:27]line ИТОГО: 115.00 [11:51:27]line НСП 1% : 1.02 [11:51:27]line НДС 12% : 12.21 [11:51:27]line Наличными: 115.00 [11:51:27]line Безнал.: 0.00 [11:51:27]line Место: АЗС № 47 "Партнер Нефть" [11:51:27]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:51:27]line СНО: Общий режим [11:51:27]line Чек 138 14.04.2024 11:51 [11:51:27]line Смена: 357 ФФД: 1.0 [11:51:27]line ЗНМ: 0300000138 [11:51:27]line РНМ: 0000000000094237 [11:51:27]line Версия ККМ: 001 [11:51:27]line ФМ: 0000000000875019 [11:51:27]line ФД: 112239 [11:51:27]line ФПД: 138459005206594 [11:51:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115126&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112239&fm=138459005206594&tin=02508201610067®Number=0000000000094237&sum=11500 [11:51:28]line 0 [11:51:28]OFD Sender: Processing packet 112239 [packets to send 71, broken 70] [11:51:28]ProducePacketName [11:51:28]name=ofd_packets/00112239 [11:51:28]OFD Sender: To server: pG, [11:51:28]CommunicateWithHost lk.salyk.kg:30040 [11:51:28]ConnectInit lk.salyk.kg [11:51:28]written 0, free lines is 4095 [11:51:28]Connected sock=10 [11:51:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 1F 6B 24 01 D0 C2 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 3E C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B6 01 00 35 04 06 00 7D ED 7F D2 40 42 C7 3B E2 9D C1 5C 60 B2 [11:51:28]Write to MH i2c: 01 00 00 A4 0D B1 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 07 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: 01 07 00 A4 0D 00 00 00 00 00 17 0D DC [11:51:28]RasterBufferAndPrint [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]line [11:51:28]written 0, free lines is 3357 [11:51:28]MH_Cut [11:51:28]Write to MH i2c: D1 01 00 AB 0D 01 8A [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 01 00 [11:51:28]MH_I2C_Read... [11:51:28]Read from MH i2c: D1 01 00 AB 0D 00 89 [11:51:28]Write to MH i2c: 01 00 00 AC 0D B9 [11:51:28]Write i2c OK [11:51:28]MH_I2C_Read... [11:51:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 37 50 47 00 B8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B6 01 00 F4 03 04 00 CA 6A 1B 66 B6 04 01 00 00 D4 1D B6 A4 98 4D 48 8E [11:51:28]CommunicateWithHost err = 0 [11:51:28]CheckOFDResponse [11:51:28]1017 (14) - 77093643461234 [11:51:28]1041 (16) - 0000000000875019 [11:51:28]1040 (4) - 112239 [11:51:28]1012 (4) - 14.04.2024 05:34 [11:51:28]1206 (1) - 0 [11:51:28]OFD Sender: Remove packet 112239 [11:51:28]ProducePacketName [11:51:28]name=ofd_packets/00112239 [11:51:28]NVStorageDeleteData [11:51:29]OFD Sender: No OFD packet to send [11:51:29]*** Cut start [11:51:29]*** Partial cut [11:51:29]*** CUTSNS_PIN = 1 [11:51:29]*** CUTSNS_PIN = 0 [11:51:29]*** Brake cut motor [11:51:30]Read from MH i2c: 01 [11:51:30]MH_I2C_Read... [11:51:30]*** Stop cut motor [11:51:30]*** Cut end [11:51:30]Read from MH i2c: 01 07 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: 01 07 00 AC 0D 00 00 00 00 00 FF 0F CE [11:51:30]process_action close_receipt done [11:51:30]requested_data is exist [11:51:30]produce_requested_data [11:51:30]requested_item fm.sn is exist - process it [11:51:30]wFMCommunicate request_size=4 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 11 00 00 [11:51:30]Write to MH i2c: E2 08 00 AD 0D 80 11 00 00 00 00 00 00 34 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 17 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 17 00 AD 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 85 [11:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:51:30]wFMCommunicate OK [11:51:30]requested_item fd.num is exist - process it [11:51:30]SAM_PROTO_GetFieldsCounters [11:51:30]wFMCommunicate request_size=4 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 13 00 00 [11:51:30]Write to MH i2c: E2 08 00 AE 0D 80 13 00 00 00 00 00 00 37 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 62 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 62 00 AE 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [11:51:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:30]wFMCommunicate OK [11:51:30]SAM_PROTO_GetFieldsCounters done [11:51:30]requested_item shift.num is exist - process it [11:51:30]requested_item shift.opened is exist - process it [11:51:30]req_shift_opened [11:51:30]FM_GetShiftState [11:51:30]SAM_PROTO_GetShiftState [11:51:30]wFMCommunicate request_size=4 [11:51:30]MH_SAM_APDU [11:51:30]CAPDU: 80 13 01 00 [11:51:30]Write to MH i2c: E2 08 00 AF 0D 80 13 01 00 00 00 00 00 39 [11:51:30]Write i2c OK [11:51:30]MH_I2C_Read... [11:51:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:30]Read from MH i2c: E2 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 0E 00 [11:51:30]MH_I2C_Read... [11:51:30]Read from MH i2c: E2 0E 00 AF 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D1 [11:51:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:51:30]wFMCommunicate OK [11:51:30]SAM_PROTO_GetShiftState done [11:51:30]FM_GetShiftState done [11:51:30]req_shift_opened done [11:51:30]requested_item shift.open_date is exist - process it [11:51:30]req_shift_open_date [11:51:30]req_shift_open_date done [11:51:30]produce_requested_data done [11:51:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112239,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:51:30]process_action_free close_receipt [11:51:30]json_value_free [11:51:30]json_value_free done [11:51:30]process_json_proto returns [11:51:30]Send response to host [11:51:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112239,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:51:30]free response buf [11:51:30]execute_script done [11:51:30]execute_script returns [11:51:30]free content buf [11:51:30]Sock 7.Close socket [11:51:30]Sock 7.Thread stoped [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:42]accept exits with 9 [11:53:42]New connection [11:53:42]New thread 3067342180 created [11:53:42]Thread 3067198820 joined [11:53:42]Waiting for new connection... [11:53:42] Sock 9.Parse request [11:53:42]Sock 9.Check first char [11:53:42]Sock 9.First char is OK [11:53:42]request: POST /json_proto HTTP/1.0 [11:53:42]Method: POST [11:53:42]URL: /json_proto [11:53:42]Method is POST - this is cgi request [11:53:42]url: /json_proto [11:53:42]query_string will be loaded in cgi processing [11:53:42]execute_cgi json_proto POST (null) [11:53:42]execute_cgi path=json_proto method=POST [11:53:42]POST find Content-Length [11:53:42]Host: 172.17.96.197:8080 [11:53:42]Content-Length: 821 [11:53:42]Content-Type: application/json [11:53:42] [11:53:42]POST finish read [11:53:42]Found Content-Length = 821 [11:53:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:42]execute_script... [11:53: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)48555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:42]POST & json_proto [11:53:42]process_json_proto [11:53:42]json parsed OK: [11:53:42]protocol is kg_v1.0 [11:53:42]action value=close_receipt [11:53:42]process_action close_receipt [11:53:42]cmd_close_receipt [11:53:42]MH_GetDate [11:53:42]Write to MH i2c: F0 00 00 B0 0D AC [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: F0 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: F0 09 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: F0 09 00 B0 0D 00 C7 C3 1B 66 E0 85 7F 64 08 [11:53:42]GetLastDocTimeStamp 1713095486 [11:53:42]current date 1713095623 [11:53:42]FM_GetShiftState [11:53:42]SAM_PROTO_GetShiftState [11:53:42]wFMCommunicate request_size=4 [11:53:42]MH_SAM_APDU [11:53:42]CAPDU: 80 13 01 00 [11:53:42]Write to MH i2c: E2 08 00 B1 0D 80 13 01 00 00 00 00 00 3B [11:53:42]Write i2c OK [11:53:42]MH_I2C_Read... [11:53:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:42]Read from MH i2c: E2 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0E 00 [11:53:42]MH_I2C_Read... [11:53:42]Read from MH i2c: E2 0E 00 B1 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [11:53:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:53:42]wFMCommunicate OK [11:53:42]SAM_PROTO_GetShiftState done [11:53:42]FM_GetShiftState done [11:53:42]opened in 1713054696 [11:53:42]opened+sec_in_day 1713141096 [11:53:42]quantity*price = 150027 [11:53:42]sum+1 = 150029 [11:53:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 139 14.04.2024 11:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112240 ФПД: 159945952017058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115343&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112240&fm=159945952017058&tin=02508201610067®Number=0000000000094237&sum=150028 [11:53:43]StoreToDocumentArchive [11:53:43]shift 357 fd 112240 [11:53:43]save to /storage/0357/doc_00112240 [11:53:43]save last doc name /storage/0357/doc_00112240 to /storage/kkm_last_doc_name [11:53:43]save OK [11:53:43]Clear old archive folders... [11:53:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:53:43]tlvbuf is 018326E0 [11:53:43]SAM_PROTO_ClearQueue [11:53:43]wFMCommunicate request_size=4 [11:53:43]MH_SAM_APDU [11:53:43]CAPDU: 80 09 00 00 [11:53:43]Write to MH i2c: E2 08 00 BE 0D 80 09 00 00 00 00 00 00 3D [11:53:43]Write i2c OK [11:53:43]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 BE 0D 00 90 00 3F [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 BF 0D 80 0D 01 02 00 00 00 00 45 [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 BF 0D 00 90 00 40 [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 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 C7 C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B6 01 00 35 04 06 00 91 78 [11:53:43]Write to MH i2c: E2 02 01 C0 0D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 C7 C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B6 01 00 35 04 06 00 91 78 00 00 94 [11:53:43]Write i2c OK [11:53:43]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 03 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [11:53:44]RAPDU: 90 00 [11:53:44]wFMCommunicate OK [11:53:44]wFMCommunicate request_size=9 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 0D 02 02 04 51 A7 3A A2 [11:53:44]Write to MH i2c: E2 0C 00 C1 0D 80 0D 02 02 04 00 51 A7 3A A2 00 00 24 [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:44]Read from MH i2c: E2 03 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 03 00 C1 0D 00 90 00 42 [11:53:44]RAPDU: 90 00 [11:53:44]wFMCommunicate OK [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 0D 03 02 [11:53:44]Write to MH i2c: E2 08 00 C2 0D 80 0D 03 02 00 00 00 00 4A [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0B 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 0B 00 C2 0D 00 35 74 D9 8E 86 DC 21 F0 90 00 CE [11:53:44]RAPDU: 35 74 D9 8E 86 DC 21 F0 90 00 [11:53:44]wFMCommunicate OK [11:53:44]SAM_PROTO_SignData done [11:53:44]FM_MakeSignedData done [11:53:44]CreateOFDProtocolMessage [11:53:44]wFMCommunicate request_size=4 [11:53:44]MH_SAM_APDU [11:53:44]CAPDU: 80 11 00 00 [11:53:44]Write to MH i2c: E2 08 00 C3 0D 80 11 00 00 00 00 00 00 4A [11:53:44]Write i2c OK [11:53:44]MH_I2C_Read... [11:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:44]Read from MH i2c: E2 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 [11:53:44]MH_I2C_Read... [11:53:44]Read from MH i2c: E2 17 00 C3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9B [11:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:53:44]wFMCommunicate OK [11:53:44]CreateOFDProtocolMessage done [11:53:44]OFDSenderStorePacket 112240 [11:53:44]StoreOFDPacket docnum=112240 [11:53:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A5 7B 06 01 DD 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 C7 C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B6 01 00 35 04 06 00 91 78 51 A7 3A A2 35 74 D9 8E 86 DC 21 F0 [11:53:44]CheckFolder [11:53:44]dirname=/storage/ofd_packets [11:53:44]CheckFolder done [11:53:44]ProducePacketName [11:53:44]name=ofd_packets/00112240 [11:53:44]NVStorageSaveData ofd_packets/00112240 [11:53:44]File name is /storage/ofd_packets/00112240 [11:53:44]Write 300 bytes [11:53:44]NVStorageSaveData done [11:53:44]OFDSenderStorePacket done [11:53:44]KKMCreateOFDPacket done [11:53:44]NVStorageSaveData kkm_last_timestamp [11:53:44]File name is /storage/kkm_last_timestamp [11:53:44]Write 4 bytes [11:53:44]NVStorageSaveData done [11:53:44]ExternCall_PrintAddStr [11:53:44]wPrintStart [11:53:44]Write to MH i2c: 01 00 00 C4 0D D1 [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 C4 0D 00 00 00 00 00 FF 0F E6 [11:53:44]RasterBufferAndPrint [11:53:44]line Счет N : (1)48555 [11:53:44]line ИНН: 02508201610067 [11:53:44]line Контрольно-Кассовый Чек [11:53:44]line ПРОДАЖА [11:53:44]line ТРК (МРК, ГНК) : 72 [11:53:44]line Товар: 2711190000 [11:53:44]line ГАЗ-К-5 [11:53:44]line 45.880 * 32.70 [11:53:44]line = 1500.28 [11:53:44]line НДС 12% НСП 1% [11:53:44]line > о реализуемом товаре [11:53:44]line ИТОГО: 1500.28 [11:53:44]line НСП 1% : 13.28 [11:53:44]line НДС 12% : 159.32 [11:53:44]line Наличными: 0.00 [11:53:44]line Безнал.: 1500.28 [11:53:44]line Место: АЗС № 47 "Партнер Нефть" [11:53:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:53:44]line СНО: Общий режим [11:53:44]line Чек 139 14.04.2024 11:53 [11:53:44]line Смена: 357 ФФД: 1.0 [11:53:44]line ЗНМ: 0300000138 [11:53:44]line РНМ: 0000000000094237 [11:53:44]line Версия ККМ: 001 [11:53:44]line Платежная система: Бакай Банк [11:53:44]line ФМ: 0000000000875019 [11:53:44]line ФД: 112240 [11:53:44]line ФПД: 159945952017058 [11:53:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115343&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112240&fm=159945952017058&tin=02508201610067®Number=0000000000094237&sum=150028 [11:53:44]written 0, free lines is 4095 [11:53:44]OFD Sender: Processing packet 112240 [packets to send 71, broken 70] [11:53:44]ProducePacketName [11:53:44]name=ofd_packets/00112240 [11:53:44]OFD Sender: To server: pG, [11:53:44]CommunicateWithHost lk.salyk.kg:30040 [11:53:44]ConnectInit lk.salyk.kg [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 38 37 35 30 31 39 0E 01 00 00 A5 7B 06 01 DD 5A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 C7 C3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B6 01 00 35 04 06 00 91 78 51 A7 3A A2 35 74 D9 8E 86 DC 21 F0 [11:53:44]Write to MH i2c: 01 00 00 EE 0D FB [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 EE 0D 00 00 00 00 00 F4 0C 02 [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 3322 [11:53:44]MH_Cut [11:53:44]Write to MH i2c: D1 01 00 F5 0D 01 D4 [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 F5 0D 00 D3 [11:53:44]Write to MH i2c: 01 00 00 F6 0D 03 [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 38 37 35 30 31 39 4F 00 00 00 A0 3B 47 00 50 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B6 01 00 F4 03 04 00 52 6B 1B 66 B6 04 01 00 00 32 7B AB CF 4E A7 BE 3F [11:53:44]CommunicateWithHost err = 0 [11:53:44]CheckOFDResponse [11:53:44]1017 (14) - 77093643461234 [11:53:44]1041 (16) - 0000000000875019 [11:53:44]1040 (4) - 112240 [11:53:44]1012 (4) - 14.04.2024 05:36 [11:53:44]1206 (1) - 0 [11:53:44]OFD Sender: Remove packet 112240 [11:53:44]ProducePacketName [11:53:44]name=ofd_packets/00112240 [11:53:44]NVStorageDeleteData [11:53:45]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:46]Read from MH i2c: 01 [11:53:46]MH_I2C_Read... [11:53:46]*** Stop cut motor [11:53:46]*** Cut end [11:53:46]Read from MH i2c: 01 07 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 FF 0F 18 [11:53:46]process_action close_receipt done [11:53:46]requested_data is exist [11:53:46]produce_requested_data [11:53:46]requested_item fm.sn is exist - process it [11:53:46]wFMCommunicate request_size=4 [11:53:46]MH_SAM_APDU [11:53:46]CAPDU: 80 11 00 00 [11:53:46]Write to MH i2c: E2 08 00 F7 0D 80 11 00 00 00 00 00 00 7E [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:46]Read from MH i2c: E2 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 17 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 17 00 F7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [11:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:53:46]wFMCommunicate OK [11:53:46]requested_item fd.num is exist - process it [11:53:46]SAM_PROTO_GetFieldsCounters [11:53:46]wFMCommunicate request_size=4 [11:53:46]MH_SAM_APDU [11:53:46]CAPDU: 80 13 00 00 [11:53:46]Write to MH i2c: E2 08 00 F8 0D 80 13 00 00 00 00 00 00 81 [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:46]Read from MH i2c: E2 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 62 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 62 00 F8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 70 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [11:53:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 70 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:46]wFMCommunicate OK [11:53:46]SAM_PROTO_GetFieldsCounters done [11:53:46]requested_item shift.num is exist - process it [11:53:46]requested_item shift.opened is exist - process it [11:53:46]req_shift_opened [11:53:46]FM_GetShiftState [11:53:46]SAM_PROTO_GetShiftState [11:53:46]wFMCommunicate request_size=4 [11:53:46]MH_SAM_APDU [11:53:46]CAPDU: 80 13 01 00 [11:53:46]Write to MH i2c: E2 08 00 F9 0D 80 13 01 00 00 00 00 00 83 [11:53:46]Write i2c OK [11:53:46]MH_I2C_Read... [11:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:46]Read from MH i2c: E2 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 0E 00 [11:53:46]MH_I2C_Read... [11:53:46]Read from MH i2c: E2 0E 00 F9 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1B [11:53:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:53:46]wFMCommunicate OK [11:53:46]SAM_PROTO_GetShiftState done [11:53:46]FM_GetShiftState done [11:53:46]req_shift_opened done [11:53:46]requested_item shift.open_date is exist - process it [11:53:46]req_shift_open_date [11:53:46]req_shift_open_date done [11:53:46]produce_requested_data done [11:53:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112240,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:53:46]process_action_free close_receipt [11:53:46]json_value_free [11:53:46]json_value_free done [11:53:46]process_json_proto returns [11:53:46]Send response to host [11:53:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112240,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:53:46]free response buf [11:53:46]execute_script done [11:53:46]execute_script returns [11:53:46]free content buf [11:53:46]Sock 9.Close socket [11:53:46]Sock 9.Thread stoped [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]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:35]accept exits with 7 [11:57:35]New connection [11:57:35]New thread 3067198820 created [11:57:35]Thread 3067342180 joined [11:57:35]Waiting for new connection... [11:57:35] Sock 7.Parse request [11:57:35]Sock 7.Check first char [11:57:35]Sock 7.First char is OK [11:57:35]request: POST /json_proto HTTP/1.0 [11:57:35]Method: POST [11:57:35]URL: /json_proto [11:57:35]Method is POST - this is cgi request [11:57:35]url: /json_proto [11:57:35]query_string will be loaded in cgi processing [11:57:35]execute_cgi json_proto POST (null) [11:57:35]execute_cgi path=json_proto method=POST [11:57:35]POST find Content-Length [11:57:35]Host: 172.17.96.197:8080 [11:57:35]Content-Length: 812 [11:57:35]Content-Type: application/json [11:57:35] [11:57:35]POST finish read [11:57:35]Found Content-Length = 812 [11:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48556", "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.40, "quantity" : 8.290, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]execute_script... [11:57: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)48556", "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.40, "quantity" : 8.290, "sum" : 600.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:35]POST & json_proto [11:57:35]process_json_proto [11:57:35]json parsed OK: [11:57:35]protocol is kg_v1.0 [11:57:35]action value=close_receipt [11:57:35]process_action close_receipt [11:57:35]cmd_close_receipt [11:57:35]MH_GetDate [11:57:35]Write to MH i2c: F0 00 00 FA 0D F6 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: F0 09 00 FA 0D 00 AF C4 1B 66 E0 85 7F 64 3B [11:57:35]GetLastDocTimeStamp 1713095623 [11:57:35]current date 1713095855 [11:57:35]FM_GetShiftState [11:57:35]SAM_PROTO_GetShiftState [11:57:35]wFMCommunicate request_size=4 [11:57:35]MH_SAM_APDU [11:57:35]CAPDU: 80 13 01 00 [11:57:35]Write to MH i2c: E2 08 00 FB 0D 80 13 01 00 00 00 00 00 85 [11:57:35]Write i2c OK [11:57:35]MH_I2C_Read... [11:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:35]Read from MH i2c: E2 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 [11:57:35]MH_I2C_Read... [11:57:35]Read from MH i2c: E2 0E 00 FB 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1D [11:57:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:57:35]wFMCommunicate OK [11:57:35]SAM_PROTO_GetShiftState done [11:57:35]FM_GetShiftState done [11:57:35]opened in 1713054696 [11:57:35]opened+sec_in_day 1713141096 [11:57:35]quantity*price = 60019 [11:57:35]sum+1 = 60021 [11:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.20 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 0.00 Безнал.: 600.20 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 140 14.04.2024 11:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112241 ФПД: 13839818110324 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115736&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112241&fm=13839818110324&tin=02508201610067®Number=0000000000094237&sum=60020 [11:57:36]StoreToDocumentArchive [11:57:36]shift 357 fd 112241 [11:57:36]save to /storage/0357/doc_00112241 [11:57:36]save last doc name /storage/0357/doc_00112241 to /storage/kkm_last_doc_name [11:57:36]save OK [11:57:36]Clear old archive folders... [11:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:57:36]tlvbuf is 017DF060 [11:57:36]SAM_PROTO_ClearQueue [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 09 00 00 [11:57:36]Write to MH i2c: E2 08 00 08 0E 80 09 00 00 00 00 00 00 88 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_ClearQueue done [11:57:36]KKMCreateOFDPacket [11:57:36]OFDProtocolAddRootSTLVToBuf [11:57:36]FM_MakeSignedData [11:57:36]FM_MakeSignedData [11:57:36]SAM_PROTO_SignData [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 01 02 [11:57:36]Write to MH i2c: E2 08 00 09 0E 80 0D 01 02 00 00 00 00 90 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=255 [11:57:36]MH_SAM_APDU [11:57:36]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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B0 C4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B6 01 00 35 04 06 00 0C 96 55 71 [11:57:36]Write to MH i2c: E2 02 01 0A 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B0 C4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B6 01 00 35 04 06 00 0C 96 55 71 00 00 75 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=7 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 02 02 02 35 74 [11:57:36]Write to MH i2c: E2 0A 00 0B 0E 80 0D 02 02 02 00 35 74 00 00 40 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [11:57:36]RAPDU: 90 00 [11:57:36]wFMCommunicate OK [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 0D 03 02 [11:57:36]Write to MH i2c: E2 08 00 0C 0E 80 0D 03 02 00 00 00 00 95 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 0B 00 0C 0E 00 FA 15 0B E9 55 70 DB 09 90 00 42 [11:57:36]RAPDU: FA 15 0B E9 55 70 DB 09 90 00 [11:57:36]wFMCommunicate OK [11:57:36]SAM_PROTO_SignData done [11:57:36]FM_MakeSignedData done [11:57:36]CreateOFDProtocolMessage [11:57:36]wFMCommunicate request_size=4 [11:57:36]MH_SAM_APDU [11:57:36]CAPDU: 80 11 00 00 [11:57:36]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:36]Read from MH i2c: E2 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E6 [11:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:57:36]wFMCommunicate OK [11:57:36]CreateOFDProtocolMessage done [11:57:36]OFDSenderStorePacket 112241 [11:57:36]StoreOFDPacket docnum=112241 [11:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 86 5F 04 01 0B 9F 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B0 C4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B6 01 00 35 04 06 00 0C 96 55 71 35 74 FA 15 0B E9 55 70 DB 09 [11:57:36]CheckFolder [11:57:36]dirname=/storage/ofd_packets [11:57:36]CheckFolder done [11:57:36]ProducePacketName [11:57:36]name=ofd_packets/00112241 [11:57:36]NVStorageSaveData ofd_packets/00112241 [11:57:36]File name is /storage/ofd_packets/00112241 [11:57:36]Write 298 bytes [11:57:36]NVStorageSaveData done [11:57:36]OFDSenderStorePacket done [11:57:36]KKMCreateOFDPacket done [11:57:36]NVStorageSaveData kkm_last_timestamp [11:57:36]File name is /storage/kkm_last_timestamp [11:57:36]Write 4 bytes [11:57:36]NVStorageSaveData done [11:57:36]ExternCall_PrintAddStr [11:57:36]wPrintStart [11:57:36]Write to MH i2c: 01 00 00 0E 0E 1C [11:57:36]Write i2c OK [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 [11:57:36]MH_I2C_Read... [11:57:36]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 FF 0F 31 [11:57:36]RasterBufferAndPrint [11:57:36]line Счет N : (1)48556 [11:57:36]line ИНН: 02508201610067 [11:57:36]line Контрольно-Кассовый Чек [11:57:36]line ПРОДАЖА [11:57:36]line ТРК (МРК, ГНК) : 61 [11:57:36]line Товар: 2710194210 [11:57:36]line ДТ-К-5 [11:57:36]line 8.290 * 72.40 [11:57:36]line = 600.20 [11:57:36]line НДС 12% НСП 1% [11:57:36]line > о реализуемом товаре [11:57:36]line ИТОГО: 600.20 [11:57:36]line НСП 1% : 5.31 [11:57:36]line НДС 12% : 63.74 [11:57:36]line Наличными: 0.00 [11:57:36]line Безнал.: 600.20 [11:57:36]line Место: АЗС № 47 "Партнер Нефть" [11:57:36]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:57:36]line СНО: Общий режим [11:57:36]line Чек 140 14.04.2024 11:57 [11:57:36]line Смена: 357 ФФД: 1.0 [11:57:36]line ЗНМ: 0300000138 [11:57:36]line РНМ: 0000000000094237 [11:57:36]line Версия ККМ: 001 [11:57:36]line Платежная система: Бакай Банк [11:57:36]line ФМ: 0000000000875019 [11:57:36]line ФД: 112241 [11:57:36]line ФПД: 13839818110324 [11:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115736&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112241&fm=13839818110324&tin=02508201610067®Number=0000000000094237&sum=60020 [11:57:37]OFD Sender: Processing packet 112241 [packets to send 71, broken 70] [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00112241 [11:57:37]OFD Sender: To server: pG, [11:57:37]CommunicateWithHost lk.salyk.kg:30040 [11:57:37]ConnectInit lk.salyk.kg [11:57:37]written 0, free lines is 4095 [11:57:37]Connected sock=10 [11:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 86 5F 04 01 0B 9F 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 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 E6 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 74 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 B0 C4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B6 01 00 35 04 06 00 0C 96 55 71 35 74 FA 15 0B E9 55 70 DB 09 [11:57:37]Write to MH i2c: 01 00 00 38 0E 46 [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: 01 [11:57:37]MH_I2C_Read... [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 38 0E 00 00 00 00 00 EE 0C 47 [11:57:37]RasterBufferAndPrint [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]line [11:57:37]written 0, free lines is 3317 [11:57:37]MH_Cut [11:57:37]Write to MH i2c: D1 01 00 3F 0E 01 1F [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 [11:57:37]MH_I2C_Read... [11:57:37]Read from MH i2c: D1 01 00 3F 0E 00 1E [11:57:37]Write to MH i2c: 01 00 00 40 0E 4E [11:57:37]Write i2c OK [11:57:37]MH_I2C_Read... [11:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 44 A1 47 00 9F 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B6 01 00 F4 03 04 00 3B 6C 1B 66 B6 04 01 00 00 3B EF BA 36 57 EC 4E EC [11:57:37]CommunicateWithHost err = 0 [11:57:37]CheckOFDResponse [11:57:37]1017 (14) - 77093643461234 [11:57:37]1041 (16) - 0000000000875019 [11:57:37]1040 (4) - 112241 [11:57:37]1012 (4) - 14.04.2024 05:40 [11:57:37]1206 (1) - 0 [11:57:37]OFD Sender: Remove packet 112241 [11:57:37]ProducePacketName [11:57:37]name=ofd_packets/00112241 [11:57:37]NVStorageDeleteData [11:57:38]OFD Sender: No OFD packet to send [11:57:38]*** Cut start [11:57:38]*** Partial cut [11:57:38]*** CUTSNS_PIN = 1 [11:57:38]*** CUTSNS_PIN = 0 [11:57:38]*** Brake cut motor [11:57:39]Read from MH i2c: 01 [11:57:39]MH_I2C_Read... [11:57:39]*** Stop cut motor [11:57:39]*** Cut end [11:57:39]Read from MH i2c: 01 07 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: 01 07 00 40 0E 00 00 00 00 00 FF 0F 63 [11:57:39]process_action close_receipt done [11:57:39]requested_data is exist [11:57:39]produce_requested_data [11:57:39]requested_item fm.sn is exist - process it [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 11 00 00 [11:57:39]Write to MH i2c: E2 08 00 41 0E 80 11 00 00 00 00 00 00 C9 [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 17 00 41 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1A [11:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:57:39]wFMCommunicate OK [11:57:39]requested_item fd.num is exist - process it [11:57:39]SAM_PROTO_GetFieldsCounters [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 13 00 00 [11:57:39]Write to MH i2c: E2 08 00 42 0E 80 13 00 00 00 00 00 00 CC [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 62 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 62 00 42 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 71 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [11:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 71 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_GetFieldsCounters done [11:57:39]requested_item shift.num is exist - process it [11:57:39]requested_item shift.opened is exist - process it [11:57:39]req_shift_opened [11:57:39]FM_GetShiftState [11:57:39]SAM_PROTO_GetShiftState [11:57:39]wFMCommunicate request_size=4 [11:57:39]MH_SAM_APDU [11:57:39]CAPDU: 80 13 01 00 [11:57:39]Write to MH i2c: E2 08 00 43 0E 80 13 01 00 00 00 00 00 CE [11:57:39]Write i2c OK [11:57:39]MH_I2C_Read... [11:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:39]Read from MH i2c: E2 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0E 00 [11:57:39]MH_I2C_Read... [11:57:39]Read from MH i2c: E2 0E 00 43 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 66 [11:57:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:57:39]wFMCommunicate OK [11:57:39]SAM_PROTO_GetShiftState done [11:57:39]FM_GetShiftState done [11:57:39]req_shift_opened done [11:57:39]requested_item shift.open_date is exist - process it [11:57:39]req_shift_open_date [11:57:39]req_shift_open_date done [11:57:39]produce_requested_data done [11:57:39]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112241,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:57:39]process_action_free close_receipt [11:57:39]json_value_free [11:57:39]json_value_free done [11:57:39]process_json_proto returns [11:57:39]Send response to host [11:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112241,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:57:39]free response buf [11:57:39]execute_script done [11:57:39]execute_script returns [11:57:39]free content buf [11:57:39]Sock 7.Close socket [11:57:39]Sock 7.Thread stoped [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:53]OFD Sender: No OFD packet to send [11:57:58]OFD Sender: No OFD packet to send [11:58:03]OFD Sender: No OFD packet to send [11:58:08]OFD Sender: No OFD packet to send [11:58:13]OFD Sender: No OFD packet to send [11:58:18]OFD Sender: No OFD packet to send [11:58:23]OFD Sender: No OFD packet to send [11:58:28]OFD Sender: No OFD packet to send [11:58:33]OFD Sender: No OFD packet to send [11:58:38]OFD Sender: No OFD packet to send [11:58:43]OFD Sender: No OFD packet to send [11:58:48]OFD Sender: No OFD packet to send [11:58:53]OFD Sender: No OFD packet to send [11:58:58]OFD Sender: No OFD packet to send [11:59:03]OFD Sender: No OFD packet to send [11:59:08]OFD Sender: No OFD packet to send [11:59:13]OFD Sender: No OFD packet to send [11:59:15]accept exits with 9 [11:59:15]New connection [11:59:15]New thread 3067342180 created [11:59:15]Thread 3067198820 joined [11:59:15]Waiting for new connection... [11:59:15] Sock 9.Parse request [11:59:15]Sock 9.Check first char [11:59:15]Sock 9.First char is OK [11:59:15]request: POST /json_proto HTTP/1.0 [11:59:15]Method: POST [11:59:15]URL: /json_proto [11:59:15]Method is POST - this is cgi request [11:59:15]url: /json_proto [11:59:15]query_string will be loaded in cgi processing [11:59:15]execute_cgi json_proto POST (null) [11:59:15]execute_cgi path=json_proto method=POST [11:59:15]POST find Content-Length [11:59:15]Host: 172.17.96.197:8080 [11:59:15]Content-Length: 669 [11:59:15]Content-Type: application/json [11:59:15] [11:59:15]POST finish read [11:59:15]Found Content-Length = 669 [11:59:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48557", "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.30, "quantity" : 5.670, "sum" : 370.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:15]execute_script... [11:59: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)48557", "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.30, "quantity" : 5.670, "sum" : 370.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:15]POST & json_proto [11:59:15]process_json_proto [11:59:15]json parsed OK: [11:59:15]protocol is kg_v1.0 [11:59:15]action value=close_receipt [11:59:15]process_action close_receipt [11:59:15]cmd_close_receipt [11:59:15]MH_GetDate [11:59:15]Write to MH i2c: F0 00 00 44 0E 41 [11:59:15]Write i2c OK [11:59:15]MH_I2C_Read... [11:59:15]Read from MH i2c: F0 [11:59:15]MH_I2C_Read... [11:59:15]Read from MH i2c: F0 09 00 [11:59:15]MH_I2C_Read... [11:59:15]Read from MH i2c: F0 09 00 44 0E 00 14 C5 1B 66 E0 85 7F 64 EC [11:59:15]GetLastDocTimeStamp 1713095856 [11:59:15]current date 1713095956 [11:59:15]FM_GetShiftState [11:59:15]SAM_PROTO_GetShiftState [11:59:15]wFMCommunicate request_size=4 [11:59:15]MH_SAM_APDU [11:59:15]CAPDU: 80 13 01 00 [11:59:15]Write to MH i2c: E2 08 00 45 0E 80 13 01 00 00 00 00 00 D0 [11:59:15]Write i2c OK [11:59:15]MH_I2C_Read... [11:59:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:15]Read from MH i2c: E2 [11:59:15]MH_I2C_Read... [11:59:15]Read from MH i2c: E2 0E 00 [11:59:15]MH_I2C_Read... [11:59:15]Read from MH i2c: E2 0E 00 45 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 68 [11:59:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:59:15]wFMCommunicate OK [11:59:15]SAM_PROTO_GetShiftState done [11:59:15]FM_GetShiftState done [11:59:15]opened in 1713054696 [11:59:15]opened+sec_in_day 1713141096 [11:59:15]quantity*price = 37025 [11:59:15]sum+1 = 37026 [11:59:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.32 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 141 14.04.2024 11:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112242 ФПД: 80991478473681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115916&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112242&fm=80991478473681&tin=02508201610067®Number=0000000000094237&sum=37000 [11:59:16]StoreToDocumentArchive [11:59:16]shift 357 fd 112242 [11:59:16]save to /storage/0357/doc_00112242 [11:59:16]save last doc name /storage/0357/doc_00112242 to /storage/kkm_last_doc_name [11:59:16]save OK [11:59:16]Clear old archive folders... [11:59:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:59:16]tlvbuf is 018174C0 [11:59:16]SAM_PROTO_ClearQueue [11:59:16]wFMCommunicate request_size=4 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 09 00 00 [11:59:16]Write to MH i2c: E2 08 00 52 0E 80 09 00 00 00 00 00 00 D2 [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:16]Read from MH i2c: E2 03 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [11:59:16]RAPDU: 90 00 [11:59:16]wFMCommunicate OK [11:59:16]SAM_PROTO_ClearQueue done [11:59:16]KKMCreateOFDPacket [11:59:16]OFDProtocolAddRootSTLVToBuf [11:59:16]FM_MakeSignedData [11:59:16]FM_MakeSignedData [11:59:16]SAM_PROTO_SignData [11:59:16]wFMCommunicate request_size=4 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 0D 01 02 [11:59:16]Write to MH i2c: E2 08 00 53 0E 80 0D 01 02 00 00 00 00 DA [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 03 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [11:59:16]RAPDU: 90 00 [11:59:16]wFMCommunicate OK [11:59:16]wFMCommunicate request_size=255 [11:59:16]MH_SAM_APDU [11:59: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 A1 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 14 C5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B6 01 00 35 04 06 00 [11:59:16]Write to MH i2c: E2 02 01 54 0E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 A1 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 14 C5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B6 01 00 35 04 06 00 00 00 E1 [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:16]Read from MH i2c: E2 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 03 00 [11:59:16]MH_I2C_Read... [11:59:16]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [11:59:16]RAPDU: 90 00 [11:59:16]wFMCommunicate OK [11:59:16]wFMCommunicate request_size=11 [11:59:16]MH_SAM_APDU [11:59:16]CAPDU: 80 0D 02 02 06 49 A9 4C 4D E3 D1 [11:59:16]Write to MH i2c: E2 0E 00 55 0E 80 0D 02 02 06 00 49 A9 4C 4D E3 D1 00 00 28 [11:59:16]Write i2c OK [11:59:16]MH_I2C_Read... [11:59:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:17]Read from MH i2c: E2 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 03 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 03 00 55 0E 00 90 00 D7 [11:59:17]RAPDU: 90 00 [11:59:17]wFMCommunicate OK [11:59:17]wFMCommunicate request_size=4 [11:59:17]MH_SAM_APDU [11:59:17]CAPDU: 80 0D 03 02 [11:59:17]Write to MH i2c: E2 08 00 56 0E 80 0D 03 02 00 00 00 00 DF [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:17]Read from MH i2c: E2 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 0B 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 0B 00 56 0E 00 B3 46 4E B9 61 69 4C EA 90 00 E0 [11:59:17]RAPDU: B3 46 4E B9 61 69 4C EA 90 00 [11:59:17]wFMCommunicate OK [11:59:17]SAM_PROTO_SignData done [11:59:17]FM_MakeSignedData done [11:59:17]CreateOFDProtocolMessage [11:59:17]wFMCommunicate request_size=4 [11:59:17]MH_SAM_APDU [11:59:17]CAPDU: 80 11 00 00 [11:59:17]Write to MH i2c: E2 08 00 57 0E 80 11 00 00 00 00 00 00 DF [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:17]Read from MH i2c: E2 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 17 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: E2 17 00 57 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 30 [11:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:59:17]wFMCommunicate OK [11:59:17]CreateOFDProtocolMessage done [11:59:17]OFDSenderStorePacket 112242 [11:59:17]StoreOFDPacket docnum=112242 [11:59:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 3E 8C 08 01 74 72 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 A1 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 14 C5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B6 01 00 35 04 06 00 49 A9 4C 4D E3 D1 B3 46 4E B9 61 69 4C EA [11:59:17]CheckFolder [11:59:17]dirname=/storage/ofd_packets [11:59:17]CheckFolder done [11:59:17]ProducePacketName [11:59:17]name=ofd_packets/00112242 [11:59:17]NVStorageSaveData ofd_packets/00112242 [11:59:17]File name is /storage/ofd_packets/00112242 [11:59:17]Write 302 bytes [11:59:17]NVStorageSaveData done [11:59:17]OFDSenderStorePacket done [11:59:17]KKMCreateOFDPacket done [11:59:17]NVStorageSaveData kkm_last_timestamp [11:59:17]File name is /storage/kkm_last_timestamp [11:59:17]Write 4 bytes [11:59:17]NVStorageSaveData done [11:59:17]ExternCall_PrintAddStr [11:59:17]wPrintStart [11:59:17]Write to MH i2c: 01 00 00 58 0E 66 [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 07 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 07 00 58 0E 00 00 00 00 00 FF 0F 7B [11:59:17]RasterBufferAndPrint [11:59:17]line Счет N : (1)48557 [11:59:17]line ИНН: 02508201610067 [11:59:17]line Контрольно-Кассовый Чек [11:59:17]line ПРОДАЖА [11:59:17]line ТРК (МРК, ГНК) : 31 [11:59:17]line Товар: 2710124130 [11:59:17]line SUPER 92-К-5 [11:59:17]line 5.670 * 65.30 [11:59:17]line = 370.25 [11:59:17]line НДС 12% НСП 1% [11:59:17]line > о реализуемом товаре [11:59:17]line ОКРУГЛЕНИЕ: -0.25 [11:59:17]line ИТОГО: 370.00 [11:59:17]line Внесено: 370.00 [11:59:17]line СДАЧА: 0.00 [11:59:17]line НСП 1% : 3.28 [11:59:17]line НДС 12% : 39.32 [11:59:17]line Наличными: 370.00 [11:59:17]line Безнал.: 0.00 [11:59:17]line Место: АЗС № 47 "Партнер Нефть" [11:59:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [11:59:17]line СНО: Общий режим [11:59:17]line Чек 141 14.04.2024 11:59 [11:59:17]line Смена: 357 ФФД: 1.0 [11:59:17]line ЗНМ: 0300000138 [11:59:17]line РНМ: 0000000000094237 [11:59:17]line Версия ККМ: 001 [11:59:17]line ФМ: 0000000000875019 [11:59:17]line ФД: 112242 [11:59:17]line ФПД: 80991478473681 [11:59:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T115916&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112242&fm=80991478473681&tin=02508201610067®Number=0000000000094237&sum=37000 [11:59:17]OFD Sender: Processing packet 112242 [packets to send 71, broken 70] [11:59:17]ProducePacketName [11:59:17]name=ofd_packets/00112242 [11:59:17]OFD Sender: To server: pG, [11:59:17]CommunicateWithHost lk.salyk.kg:30040 [11:59:17]ConnectInit lk.salyk.kg [11:59:17]written 0, free lines is 4095 [11:59:17]Connected sock=10 [11:59:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 3E 8C 08 01 74 72 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 26 16 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 A1 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 14 C5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B6 01 00 35 04 06 00 49 A9 4C 4D E3 D1 B3 46 4E B9 61 69 4C EA [11:59:17]Write to MH i2c: 01 00 00 83 0E 91 [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 07 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: 01 07 00 83 0E 00 00 00 00 00 E6 0C 8A [11:59:17]RasterBufferAndPrint [11:59:17]line [11:59:17]line [11:59:17]line [11:59:17]line [11:59:17]line [11:59:17]written 0, free lines is 3308 [11:59:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C0 80 47 00 22 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B6 01 00 F4 03 04 00 9F 6C 1B 66 B6 04 01 00 00 44 77 60 52 99 18 8F 63 [11:59:17]CommunicateWithHost err = 0 [11:59:17]CheckOFDResponse [11:59:17]1017 (14) - 77093643461234 [11:59:17]1041 (16) - 0000000000875019 [11:59:17]1040 (4) - 112242 [11:59:17]1012 (4) - 14.04.2024 05:41 [11:59:17]1206 (1) - 0 [11:59:17]OFD Sender: Remove packet 112242 [11:59:17]ProducePacketName [11:59:17]name=ofd_packets/00112242 [11:59:17]NVStorageDeleteData [11:59:17]MH_Cut [11:59:17]Write to MH i2c: D1 01 00 8A 0E 01 6A [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: D1 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: D1 01 00 [11:59:17]MH_I2C_Read... [11:59:17]Read from MH i2c: D1 01 00 8A 0E 00 69 [11:59:17]Write to MH i2c: 01 00 00 8B 0E 99 [11:59:17]Write i2c OK [11:59:17]MH_I2C_Read... [11:59:18]OFD Sender: No OFD packet to send [11:59:18]*** Cut start [11:59:18]*** Partial cut [11:59:18]*** CUTSNS_PIN = 1 [11:59:18]*** CUTSNS_PIN = 0 [11:59:18]*** Brake cut motor [11:59:19]Read from MH i2c: 01 [11:59:19]MH_I2C_Read... [11:59:19]*** Stop cut motor [11:59:19]*** Cut end [11:59:19]Read from MH i2c: 01 07 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: 01 07 00 8B 0E 00 00 00 00 00 FF 0F AE [11:59:19]process_action close_receipt done [11:59:19]requested_data is exist [11:59:19]produce_requested_data [11:59:19]requested_item fm.sn is exist - process it [11:59:19]wFMCommunicate request_size=4 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 11 00 00 [11:59:19]Write to MH i2c: E2 08 00 8C 0E 80 11 00 00 00 00 00 00 14 [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:19]Read from MH i2c: E2 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 17 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 17 00 8C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [11:59:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [11:59:19]wFMCommunicate OK [11:59:19]requested_item fd.num is exist - process it [11:59:19]SAM_PROTO_GetFieldsCounters [11:59:19]wFMCommunicate request_size=4 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 13 00 00 [11:59:19]Write to MH i2c: E2 08 00 8D 0E 80 13 00 00 00 00 00 00 17 [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:19]Read from MH i2c: E2 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 62 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 62 00 8D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [11:59:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:19]wFMCommunicate OK [11:59:19]SAM_PROTO_GetFieldsCounters done [11:59:19]requested_item shift.num is exist - process it [11:59:19]requested_item shift.opened is exist - process it [11:59:19]req_shift_opened [11:59:19]FM_GetShiftState [11:59:19]SAM_PROTO_GetShiftState [11:59:19]wFMCommunicate request_size=4 [11:59:19]MH_SAM_APDU [11:59:19]CAPDU: 80 13 01 00 [11:59:19]Write to MH i2c: E2 08 00 8E 0E 80 13 01 00 00 00 00 00 19 [11:59:19]Write i2c OK [11:59:19]MH_I2C_Read... [11:59:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:19]Read from MH i2c: E2 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 0E 00 [11:59:19]MH_I2C_Read... [11:59:19]Read from MH i2c: E2 0E 00 8E 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B1 [11:59:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [11:59:19]wFMCommunicate OK [11:59:19]SAM_PROTO_GetShiftState done [11:59:19]FM_GetShiftState done [11:59:19]req_shift_opened done [11:59:19]requested_item shift.open_date is exist - process it [11:59:19]req_shift_open_date [11:59:19]req_shift_open_date done [11:59:19]produce_requested_data done [11:59:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112242,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [11:59:19]process_action_free close_receipt [11:59:19]json_value_free [11:59:19]json_value_free done [11:59:19]process_json_proto returns [11:59:19]Send response to host [11:59:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112242,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [11:59:19]free response buf [11:59:19]execute_script done [11:59:19]execute_script returns [11:59:19]free content buf [11:59:19]Sock 9.Close socket [11:59:19]Sock 9.Thread stoped [11:59:23]OFD Sender: No OFD packet to send [11:59:28]OFD Sender: No OFD packet to send [11:59:33]OFD Sender: No OFD packet to send [11:59:38]OFD Sender: No OFD packet to send [11:59:43]OFD Sender: No OFD packet to send [11:59:48]OFD Sender: No OFD packet to send [11:59:53]OFD Sender: No OFD packet to send [11:59:58]OFD Sender: No OFD packet to send [12:00:03]OFD Sender: No OFD packet to send [12:00:08]OFD Sender: No OFD packet to send [12:00:13]OFD Sender: No OFD packet to send [12:00:18]OFD Sender: No OFD packet to send [12:00:23]OFD Sender: No OFD packet to send [12:00:28]OFD Sender: No OFD packet to send [12:00:33]OFD Sender: No OFD packet to send [12:00:38]OFD Sender: No OFD packet to send [12:00:43]OFD Sender: No OFD packet to send [12:00:48]OFD Sender: No OFD packet to send [12:00:53]OFD Sender: No OFD packet to send [12:00:58]OFD Sender: No OFD packet to send [12:01:03]OFD Sender: No OFD packet to send [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]OFD Sender: No OFD packet to send [12:01:38]OFD Sender: No OFD packet to send [12:01:43]OFD Sender: No OFD packet to send [12:01:48]OFD Sender: No OFD packet to send [12:01:53]OFD Sender: No OFD packet to send [12:01:58]OFD Sender: No OFD packet to send [12:02:03]OFD Sender: No OFD packet to send [12:02:08]OFD Sender: No OFD packet to send [12:02:13]OFD Sender: No OFD packet to send [12:02:18]OFD Sender: No OFD packet to send [12:02:23]OFD Sender: No OFD packet to send [12:02:28]OFD Sender: No OFD packet to send [12:02:33]OFD Sender: No OFD packet to send [12:02:38]OFD Sender: No OFD packet to send [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:11]accept exits with 7 [12:03:11]New connection [12:03:11]New thread 3067198820 created [12:03:11]Thread 3067342180 joined [12:03:11]Waiting for new connection... [12:03:11] Sock 7.Parse request [12:03:11]Sock 7.Check first char [12:03:11]Sock 7.First char is OK [12:03:11]request: POST /json_proto HTTP/1.0 [12:03:11]Method: POST [12:03:11]URL: /json_proto [12:03:11]Method is POST - this is cgi request [12:03:11]url: /json_proto [12:03:11]query_string will be loaded in cgi processing [12:03:11]execute_cgi json_proto POST (null) [12:03:11]execute_cgi path=json_proto method=POST [12:03:11]POST find Content-Length [12:03:11]Host: 172.17.96.197:8080 [12:03:11]Content-Length: 681 [12:03:11]Content-Type: application/json [12:03:11] [12:03:11]POST finish read [12:03:11]Found Content-Length = 681 [12:03:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:03:11]execute_script... [12:03: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)48558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:03:11]POST & json_proto [12:03:11]process_json_proto [12:03:11]json parsed OK: [12:03:11]protocol is kg_v1.0 [12:03:11]action value=close_receipt [12:03:11]process_action close_receipt [12:03:11]cmd_close_receipt [12:03:11]MH_GetDate [12:03:11]Write to MH i2c: F0 00 00 8F 0E 8C [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 09 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: F0 09 00 8F 0E 00 00 C6 1B 66 E0 85 7F 64 24 [12:03:11]GetLastDocTimeStamp 1713095956 [12:03:11]current date 1713096192 [12:03:11]FM_GetShiftState [12:03:11]SAM_PROTO_GetShiftState [12:03:11]wFMCommunicate request_size=4 [12:03:11]MH_SAM_APDU [12:03:11]CAPDU: 80 13 01 00 [12:03:11]Write to MH i2c: E2 08 00 90 0E 80 13 01 00 00 00 00 00 1B [12:03:11]Write i2c OK [12:03:11]MH_I2C_Read... [12:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:11]Read from MH i2c: E2 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 [12:03:11]MH_I2C_Read... [12:03:11]Read from MH i2c: E2 0E 00 90 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B3 [12:03:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:03:11]wFMCommunicate OK [12:03:11]SAM_PROTO_GetShiftState done [12:03:11]FM_GetShiftState done [12:03:11]opened in 1713054696 [12:03:11]opened+sec_in_day 1713141096 [12:03:11]quantity*price = 100050 [12:03:11]sum+1 = 100052 [12:03:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 142 14.04.2024 12:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112243 ФПД: 81109974186072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120312&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112243&fm=81109974186072&tin=02508201610067®Number=0000000000094237&sum=100000 [12:03:12]StoreToDocumentArchive [12:03:12]shift 357 fd 112243 [12:03:12]save to /storage/0357/doc_00112243 [12:03:12]save last doc name /storage/0357/doc_00112243 to /storage/kkm_last_doc_name [12:03:12]save OK [12:03:12]Clear old archive folders... [12:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:12]tlvbuf is 0178F5A0 [12:03:12]SAM_PROTO_ClearQueue [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 09 00 00 [12:03:12]Write to MH i2c: E2 08 00 9D 0E 80 09 00 00 00 00 00 00 1D [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [12:03:12]RAPDU: 90 00 [12:03:12]wFMCommunicate OK [12:03:12]SAM_PROTO_ClearQueue done [12:03:12]KKMCreateOFDPacket [12:03:12]OFDProtocolAddRootSTLVToBuf [12:03:12]FM_MakeSignedData [12:03:12]FM_MakeSignedData [12:03:12]SAM_PROTO_SignData [12:03:12]wFMCommunicate request_size=4 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 0D 01 02 [12:03:12]Write to MH i2c: E2 08 00 9E 0E 80 0D 01 02 00 00 00 00 25 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [12:03:12]RAPDU: 90 00 [12:03:12]wFMCommunicate OK [12:03:12]wFMCommunicate request_size=255 [12:03:12]MH_SAM_APDU [12:03: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 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 3C 00 00 00 00 00 37 04 06 00 1E 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 8E 00 00 00 F4 03 04 00 00 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B6 01 00 35 04 06 00 49 [12:03:12]Write to MH i2c: E2 02 01 9F 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 8E 00 00 00 F4 03 04 00 00 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B6 01 00 35 04 06 00 49 00 00 E0 [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:12]Read from MH i2c: E2 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 [12:03:12]MH_I2C_Read... [12:03:12]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [12:03:12]RAPDU: 90 00 [12:03:12]wFMCommunicate OK [12:03:12]wFMCommunicate request_size=10 [12:03:12]MH_SAM_APDU [12:03:12]CAPDU: 80 0D 02 02 05 C4 E3 32 F8 58 [12:03:12]Write to MH i2c: E2 0D 00 A0 0E 80 0D 02 02 05 00 C4 E3 32 F8 58 00 00 5B [12:03:12]Write i2c OK [12:03:12]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [12:03:13]RAPDU: 90 00 [12:03:13]wFMCommunicate OK [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 0D 03 02 [12:03:13]Write to MH i2c: E2 08 00 A1 0E 80 0D 03 02 00 00 00 00 2A [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0B 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 0B 00 A1 0E 00 95 3E EC 55 3C F2 D1 81 90 00 BF [12:03:13]RAPDU: 95 3E EC 55 3C F2 D1 81 90 00 [12:03:13]wFMCommunicate OK [12:03:13]SAM_PROTO_SignData done [12:03:13]FM_MakeSignedData done [12:03:13]CreateOFDProtocolMessage [12:03:13]wFMCommunicate request_size=4 [12:03:13]MH_SAM_APDU [12:03:13]CAPDU: 80 11 00 00 [12:03:13]Write to MH i2c: E2 08 00 A2 0E 80 11 00 00 00 00 00 00 2A [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:13]Read from MH i2c: E2 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: E2 17 00 A2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7B [12:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:03:13]wFMCommunicate OK [12:03:13]CreateOFDProtocolMessage done [12:03:13]OFDSenderStorePacket 112243 [12:03:13]StoreOFDPacket docnum=112243 [12:03:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FF F8 07 01 3B 01 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 3C 00 00 00 00 00 37 04 06 00 1E 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 8E 00 00 00 F4 03 04 00 00 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B6 01 00 35 04 06 00 49 C4 E3 32 F8 58 95 3E EC 55 3C F2 D1 81 [12:03:13]CheckFolder [12:03:13]dirname=/storage/ofd_packets [12:03:13]CheckFolder done [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00112243 [12:03:13]NVStorageSaveData ofd_packets/00112243 [12:03:13]File name is /storage/ofd_packets/00112243 [12:03:13]Write 301 bytes [12:03:13]NVStorageSaveData done [12:03:13]OFDSenderStorePacket done [12:03:13]KKMCreateOFDPacket done [12:03:13]NVStorageSaveData kkm_last_timestamp [12:03:13]File name is /storage/kkm_last_timestamp [12:03:13]Write 4 bytes [12:03:13]NVStorageSaveData done [12:03:13]OFD Sender: Processing packet 112243 [packets to send 71, broken 70] [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00112243 [12:03:13]OFD Sender: To server: pG, [12:03:13]CommunicateWithHost lk.salyk.kg:30040 [12:03:13]ConnectInit lk.salyk.kg [12:03:13]ExternCall_PrintAddStr [12:03:13]wPrintStart [12:03:13]Write to MH i2c: 01 00 00 A3 0E B1 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 A3 0E 00 00 00 00 00 FF 0F C6 [12:03:13]RasterBufferAndPrint [12:03:13]line Счет N : (1)48558 [12:03:13]line ИНН: 02508201610067 [12:03:13]line Контрольно-Кассовый Чек [12:03:13]line ПРОДАЖА [12:03:13]line ТРК (МРК, ГНК) : 21 [12:03:13]line Товар: 2710124130 [12:03:13]line Аи-92-К-5 [12:03:13]line 15.560 * 64.30 [12:03:13]line = 1000.51 [12:03:13]line НДС 12% НСП 1% [12:03:13]line > о реализуемом товаре [12:03:13]line ОКРУГЛЕНИЕ: -0.51 [12:03:13]line ИТОГО: 1000.00 [12:03:13]line Внесено: 1000.00 [12:03:13]line СДАЧА: 0.00 [12:03:13]line НСП 1% : 8.85 [12:03:13]line НДС 12% : 106.25 [12:03:13]line Наличными: 1000.00 [12:03:13]line Безнал.: 0.00 [12:03:13]line Место: АЗС № 47 "Партнер Нефть" [12:03:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:03:13]line СНО: Общий режим [12:03:13]line Чек 142 14.04.2024 12:03 [12:03:13]line Смена: 357 ФФД: 1.0 [12:03:13]line ЗНМ: 0300000138 [12:03:13]line РНМ: 0000000000094237 [12:03:13]line Версия ККМ: 001 [12:03:13]line ФМ: 0000000000875019 [12:03:13]line ФД: 112243 [12:03:13]line ФПД: 81109974186072 [12:03:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120312&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112243&fm=81109974186072&tin=02508201610067®Number=0000000000094237&sum=100000 [12:03:13]Connected sock=11 [12:03:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FF F8 07 01 3B 01 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 3C 00 00 00 00 00 37 04 06 00 1E 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 8E 00 00 00 F4 03 04 00 00 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B6 01 00 35 04 06 00 49 C4 E3 32 F8 58 95 3E EC 55 3C F2 D1 81 [12:03:13]written 0, free lines is 4095 [12:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A5 7A 47 00 5C C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B6 01 00 F4 03 04 00 8B 6D 1B 66 B6 04 01 00 00 99 9B 1E 30 55 E4 7A 1B [12:03:13]CommunicateWithHost err = 0 [12:03:13]CheckOFDResponse [12:03:13]1017 (14) - 77093643461234 [12:03:13]1041 (16) - 0000000000875019 [12:03:13]1040 (4) - 112243 [12:03:13]1012 (4) - 14.04.2024 05:45 [12:03:13]1206 (1) - 0 [12:03:13]OFD Sender: Remove packet 112243 [12:03:13]ProducePacketName [12:03:13]name=ofd_packets/00112243 [12:03:13]NVStorageDeleteData [12:03:13]Write to MH i2c: 01 00 00 CE 0E DC [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: 01 07 00 CE 0E 00 00 00 00 00 E9 0C D8 [12:03:13]RasterBufferAndPrint [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]line [12:03:13]written 0, free lines is 3311 [12:03:13]MH_Cut [12:03:13]Write to MH i2c: D1 01 00 D5 0E 01 B5 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 01 00 [12:03:13]MH_I2C_Read... [12:03:13]Read from MH i2c: D1 01 00 D5 0E 00 B4 [12:03:13]Write to MH i2c: 01 00 00 D6 0E E4 [12:03:13]Write i2c OK [12:03:13]MH_I2C_Read... [12:03:14]OFD Sender: No OFD packet to send [12:03:14]*** Cut start [12:03:14]*** Partial cut [12:03:14]*** CUTSNS_PIN = 1 [12:03:14]*** CUTSNS_PIN = 0 [12:03:14]*** Brake cut motor [12:03:15]Read from MH i2c: 01 [12:03:15]MH_I2C_Read... [12:03:15]*** Stop cut motor [12:03:15]*** Cut end [12:03:15]Read from MH i2c: 01 07 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: 01 07 00 D6 0E 00 00 00 00 00 FF 0F F9 [12:03:15]process_action close_receipt done [12:03:15]requested_data is exist [12:03:15]produce_requested_data [12:03:15]requested_item fm.sn is exist - process it [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 11 00 00 [12:03:15]Write to MH i2c: E2 08 00 D7 0E 80 11 00 00 00 00 00 00 5F [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 17 00 D7 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B0 [12:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:03:15]wFMCommunicate OK [12:03:15]requested_item fd.num is exist - process it [12:03:15]SAM_PROTO_GetFieldsCounters [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 00 00 [12:03:15]Write to MH i2c: E2 08 00 D8 0E 80 13 00 00 00 00 00 00 62 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 62 00 D8 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [12:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetFieldsCounters done [12:03:15]requested_item shift.num is exist - process it [12:03:15]requested_item shift.opened is exist - process it [12:03:15]req_shift_opened [12:03:15]FM_GetShiftState [12:03:15]SAM_PROTO_GetShiftState [12:03:15]wFMCommunicate request_size=4 [12:03:15]MH_SAM_APDU [12:03:15]CAPDU: 80 13 01 00 [12:03:15]Write to MH i2c: E2 08 00 D9 0E 80 13 01 00 00 00 00 00 64 [12:03:15]Write i2c OK [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 [12:03:15]MH_I2C_Read... [12:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:15]Read from MH i2c: E2 0E 00 [12:03:15]MH_I2C_Read... [12:03:15]Read from MH i2c: E2 0E 00 D9 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FC [12:03:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:03:15]wFMCommunicate OK [12:03:15]SAM_PROTO_GetShiftState done [12:03:15]FM_GetShiftState done [12:03:15]req_shift_opened done [12:03:15]requested_item shift.open_date is exist - process it [12:03:15]req_shift_open_date [12:03:15]req_shift_open_date done [12:03:15]produce_requested_data done [12:03:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112243,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:03:15]process_action_free close_receipt [12:03:15]json_value_free [12:03:15]json_value_free done [12:03:15]process_json_proto returns [12:03:15]Send response to host [12:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112243,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:03:15]free response buf [12:03:15]execute_script done [12:03:15]execute_script returns [12:03:15]free content buf [12:03:15]Sock 7.Close socket [12:03:15]Sock 7.Thread stoped [12:03:19]OFD Sender: No OFD packet to send [12:03:24]OFD Sender: No OFD packet to send [12:03:29]OFD Sender: No OFD packet to send [12:03:34]OFD Sender: No OFD packet to send [12:03:39]OFD Sender: No OFD packet to send [12:03:44]OFD Sender: No OFD packet to send [12:03:49]OFD Sender: No OFD packet to send [12:03:54]OFD Sender: No OFD packet to send [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:12]accept exits with 9 [12:05:12]New connection [12:05:12]New thread 3067342180 created [12:05:12]Thread 3067198820 joined [12:05:12]Waiting for new connection... [12:05:12] Sock 9.Parse request [12:05:12]Sock 9.Check first char [12:05:12]Sock 9.First char is OK [12:05:12]request: POST /json_proto HTTP/1.0 [12:05:12]Method: POST [12:05:12]URL: /json_proto [12:05:12]Method is POST - this is cgi request [12:05:12]url: /json_proto [12:05:12]query_string will be loaded in cgi processing [12:05:12]execute_cgi json_proto POST (null) [12:05:12]execute_cgi path=json_proto method=POST [12:05:12]POST find Content-Length [12:05:12]Host: 172.17.96.197:8080 [12:05:12]Content-Length: 678 [12:05:12]Content-Type: application/json [12:05:12] [12:05:12]POST finish read [12:05:12]Found Content-Length = 678 [12:05:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48559", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [12:05:12]execute_script... [12:05: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)48559", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [12:05:12]POST & json_proto [12:05:12]process_json_proto [12:05:12]json parsed OK: [12:05:12]protocol is kg_v1.0 [12:05:12]action value=close_receipt [12:05:12]process_action close_receipt [12:05:12]cmd_close_receipt [12:05:12]MH_GetDate [12:05:12]Write to MH i2c: F0 00 00 DA 0E D7 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: F0 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: F0 09 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: F0 09 00 DA 0E 00 78 C6 1B 66 E0 85 7F 64 E7 [12:05:12]GetLastDocTimeStamp 1713096192 [12:05:12]current date 1713096312 [12:05:12]FM_GetShiftState [12:05:12]SAM_PROTO_GetShiftState [12:05:12]wFMCommunicate request_size=4 [12:05:12]MH_SAM_APDU [12:05:12]CAPDU: 80 13 01 00 [12:05:12]Write to MH i2c: E2 08 00 DB 0E 80 13 01 00 00 00 00 00 66 [12:05:12]Write i2c OK [12:05:12]MH_I2C_Read... [12:05:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:12]Read from MH i2c: E2 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 0E 00 [12:05:12]MH_I2C_Read... [12:05:12]Read from MH i2c: E2 0E 00 DB 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FE [12:05:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:05:12]wFMCommunicate OK [12:05:12]SAM_PROTO_GetShiftState done [12:05:12]FM_GetShiftState done [12:05:12]opened in 1713054696 [12:05:12]opened+sec_in_day 1713141096 [12:05:12]quantity*price = 200041 [12:05:12]sum+1 = 200042 [12:05:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 143 14.04.2024 12:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112244 ФПД: 113294793409000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120512&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112244&fm=113294793409000&tin=02508201610067®Number=0000000000094237&sum=200000 [12:05:13]StoreToDocumentArchive [12:05:13]shift 357 fd 112244 [12:05:13]save to /storage/0357/doc_00112244 [12:05:13]save last doc name /storage/0357/doc_00112244 to /storage/kkm_last_doc_name [12:05:13]save OK [12:05:13]Clear old archive folders... [12:05:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:05:13]tlvbuf is 0177D330 [12:05:13]SAM_PROTO_ClearQueue [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 09 00 00 [12:05:13]Write to MH i2c: E2 08 00 E8 0E 80 09 00 00 00 00 00 00 68 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [12:05:13]RAPDU: 90 00 [12:05:13]wFMCommunicate OK [12:05:13]SAM_PROTO_ClearQueue done [12:05:13]KKMCreateOFDPacket [12:05:13]OFDProtocolAddRootSTLVToBuf [12:05:13]FM_MakeSignedData [12:05:13]FM_MakeSignedData [12:05:13]SAM_PROTO_SignData [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 0D 01 02 [12:05:13]Write to MH i2c: E2 08 00 E9 0E 80 0D 01 02 00 00 00 00 70 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [12:05:13]RAPDU: 90 00 [12:05:13]wFMCommunicate OK [12:05:13]wFMCommunicate request_size=255 [12:05:13]MH_SAM_APDU [12:05: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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 8F 00 00 00 F4 03 04 00 78 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B6 01 00 35 04 06 00 67 0A 7F EA [12:05:13]Write to MH i2c: E2 02 01 EA 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 8F 00 00 00 F4 03 04 00 78 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B6 01 00 35 04 06 00 67 0A 7F EA 00 00 97 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [12:05:13]RAPDU: 90 00 [12:05:13]wFMCommunicate OK [12:05:13]wFMCommunicate request_size=7 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 0D 02 02 02 81 E8 [12:05:13]Write to MH i2c: E2 0A 00 EB 0E 80 0D 02 02 02 00 81 E8 00 00 E0 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 03 00 EB 0E 00 90 00 6D [12:05:13]RAPDU: 90 00 [12:05:13]wFMCommunicate OK [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 0D 03 02 [12:05:13]Write to MH i2c: E2 08 00 EC 0E 80 0D 03 02 00 00 00 00 75 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 0B 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 0B 00 EC 0E 00 1C 6B 62 2F 87 7C 43 4A 90 00 1E [12:05:13]RAPDU: 1C 6B 62 2F 87 7C 43 4A 90 00 [12:05:13]wFMCommunicate OK [12:05:13]SAM_PROTO_SignData done [12:05:13]FM_MakeSignedData done [12:05:13]CreateOFDProtocolMessage [12:05:13]wFMCommunicate request_size=4 [12:05:13]MH_SAM_APDU [12:05:13]CAPDU: 80 11 00 00 [12:05:13]Write to MH i2c: E2 08 00 ED 0E 80 11 00 00 00 00 00 00 75 [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:13]Read from MH i2c: E2 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 17 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: E2 17 00 ED 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C6 [12:05:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:05:13]wFMCommunicate OK [12:05:13]CreateOFDProtocolMessage done [12:05:13]OFDSenderStorePacket 112244 [12:05:13]StoreOFDPacket docnum=112244 [12:05:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 04 39 04 01 43 A8 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 8F 00 00 00 F4 03 04 00 78 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B6 01 00 35 04 06 00 67 0A 7F EA 81 E8 1C 6B 62 2F 87 7C 43 4A [12:05:13]CheckFolder [12:05:13]dirname=/storage/ofd_packets [12:05:13]CheckFolder done [12:05:13]ProducePacketName [12:05:13]name=ofd_packets/00112244 [12:05:13]NVStorageSaveData ofd_packets/00112244 [12:05:13]File name is /storage/ofd_packets/00112244 [12:05:13]Write 298 bytes [12:05:13]NVStorageSaveData done [12:05:13]OFDSenderStorePacket done [12:05:13]KKMCreateOFDPacket done [12:05:13]NVStorageSaveData kkm_last_timestamp [12:05:13]File name is /storage/kkm_last_timestamp [12:05:13]Write 4 bytes [12:05:13]NVStorageSaveData done [12:05:13]ExternCall_PrintAddStr [12:05:13]wPrintStart [12:05:13]Write to MH i2c: 01 00 00 EE 0E FC [12:05:13]Write i2c OK [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: 01 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: 01 07 00 [12:05:13]MH_I2C_Read... [12:05:13]Read from MH i2c: 01 07 00 EE 0E 00 00 00 00 00 FF 0F 11 [12:05:13]RasterBufferAndPrint [12:05:13]line Счет N : (1)48559 [12:05:13]line ИНН: 02508201610067 [12:05:13]line Контрольно-Кассовый Чек [12:05:13]line ПРОДАЖА [12:05:13]line ТРК (МРК, ГНК) : 51 [12:05:13]line Товар: 2710194210 [12:05:13]line ДТ-К-5 [12:05:13]line 27.630 * 72.40 [12:05:13]line = 2000.41 [12:05:13]line НДС 12% НСП 1% [12:05:13]line > о реализуемом товаре [12:05:13]line ОКРУГЛЕНИЕ: -0.41 [12:05:13]line ИТОГО: 2000.00 [12:05:13]line Внесено: 2000.00 [12:05:13]line СДАЧА: 0.00 [12:05:13]line НСП 1% : 17.70 [12:05:13]line НДС 12% : 212.43 [12:05:13]line Наличными: 2000.00 [12:05:13]line Безнал.: 0.00 [12:05:13]line Место: АЗС № 47 "Партнер Нефть" [12:05:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:05:13]line СНО: Общий режим [12:05:13]line Чек 143 14.04.2024 12:05 [12:05:13]line Смена: 357 ФФД: 1.0 [12:05:13]line ЗНМ: 0300000138 [12:05:13]line РНМ: 0000000000094237 [12:05:13]line Версия ККМ: 001 [12:05:13]line ФМ: 0000000000875019 [12:05:13]line ФД: 112244 [12:05:13]line ФПД: 113294793409000 [12:05:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120512&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112244&fm=113294793409000&tin=02508201610067®Number=0000000000094237&sum=200000 [12:05:14]OFD Sender: Processing packet 112244 [packets to send 71, broken 70] [12:05:14]ProducePacketName [12:05:14]name=ofd_packets/00112244 [12:05:14]OFD Sender: To server: pG, [12:05:14]CommunicateWithHost lk.salyk.kg:30040 [12:05:14]ConnectInit lk.salyk.kg [12:05:14]written 0, free lines is 4095 [12:05:14]Connected sock=10 [12:05:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 04 39 04 01 43 A8 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 8F 00 00 00 F4 03 04 00 78 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B6 01 00 35 04 06 00 67 0A 7F EA 81 E8 1C 6B 62 2F 87 7C 43 4A [12:05:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4E 89 47 00 5A DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B6 01 00 F4 03 04 00 04 6E 1B 66 B6 04 01 00 00 16 62 43 5E D4 31 2D 3D [12:05:14]CommunicateWithHost err = 0 [12:05:14]CheckOFDResponse [12:05:14]1017 (14) - 77093643461234 [12:05:14]1041 (16) - 0000000000875019 [12:05:14]1040 (4) - 112244 [12:05:14]1012 (4) - 14.04.2024 05:47 [12:05:14]1206 (1) - 0 [12:05:14]OFD Sender: Remove packet 112244 [12:05:14]ProducePacketName [12:05:14]name=ofd_packets/00112244 [12:05:14]NVStorageDeleteData [12:05:14]Write to MH i2c: 01 00 00 19 0F 28 [12:05:14]Write i2c OK [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: 01 [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: 01 07 00 [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: 01 07 00 19 0F 00 00 00 00 00 E8 0C 23 [12:05:14]RasterBufferAndPrint [12:05:14]line [12:05:14]line [12:05:14]line [12:05:14]line [12:05:14]line [12:05:14]written 0, free lines is 3310 [12:05:14]MH_Cut [12:05:14]Write to MH i2c: D1 01 00 20 0F 01 01 [12:05:14]Write i2c OK [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: D1 [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: D1 01 00 [12:05:14]MH_I2C_Read... [12:05:14]Read from MH i2c: D1 01 00 20 0F 00 00 [12:05:14]Write to MH i2c: 01 00 00 21 0F 30 [12:05:14]Write i2c OK [12:05:14]MH_I2C_Read... [12:05:15]OFD Sender: No OFD packet to send [12:05:15]*** Cut start [12:05:15]*** Partial cut [12:05:15]*** CUTSNS_PIN = 1 [12:05:15]*** CUTSNS_PIN = 0 [12:05:15]*** Brake cut motor [12:05:16]Read from MH i2c: 01 [12:05:16]MH_I2C_Read... [12:05:16]*** Stop cut motor [12:05:16]*** Cut end [12:05:16]Read from MH i2c: 01 07 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: 01 07 00 21 0F 00 00 00 00 00 FF 0F 45 [12:05:16]process_action close_receipt done [12:05:16]requested_data is exist [12:05:16]produce_requested_data [12:05:16]requested_item fm.sn is exist - process it [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 11 00 00 [12:05:16]Write to MH i2c: E2 08 00 22 0F 80 11 00 00 00 00 00 00 AB [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 17 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 17 00 22 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FC [12:05:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:05:16]wFMCommunicate OK [12:05:16]requested_item fd.num is exist - process it [12:05:16]SAM_PROTO_GetFieldsCounters [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 13 00 00 [12:05:16]Write to MH i2c: E2 08 00 23 0F 80 13 00 00 00 00 00 00 AE [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 62 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 62 00 23 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [12:05:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:16]wFMCommunicate OK [12:05:16]SAM_PROTO_GetFieldsCounters done [12:05:16]requested_item shift.num is exist - process it [12:05:16]requested_item shift.opened is exist - process it [12:05:16]req_shift_opened [12:05:16]FM_GetShiftState [12:05:16]SAM_PROTO_GetShiftState [12:05:16]wFMCommunicate request_size=4 [12:05:16]MH_SAM_APDU [12:05:16]CAPDU: 80 13 01 00 [12:05:16]Write to MH i2c: E2 08 00 24 0F 80 13 01 00 00 00 00 00 B0 [12:05:16]Write i2c OK [12:05:16]MH_I2C_Read... [12:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:16]Read from MH i2c: E2 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 0E 00 [12:05:16]MH_I2C_Read... [12:05:16]Read from MH i2c: E2 0E 00 24 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 48 [12:05:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:05:16]wFMCommunicate OK [12:05:16]SAM_PROTO_GetShiftState done [12:05:16]FM_GetShiftState done [12:05:16]req_shift_opened done [12:05:16]requested_item shift.open_date is exist - process it [12:05:16]req_shift_open_date [12:05:16]req_shift_open_date done [12:05:16]produce_requested_data done [12:05:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112244,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:05:16]process_action_free close_receipt [12:05:16]json_value_free [12:05:16]json_value_free done [12:05:16]process_json_proto returns [12:05:16]Send response to host [12:05:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112244,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:05:16]free response buf [12:05:16]execute_script done [12:05:16]execute_script returns [12:05:16]free content buf [12:05:16]Sock 9.Close socket [12:05:16]Sock 9.Thread stoped [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:32]accept exits with 7 [12:06:32]New connection [12:06:32]New thread 3067198820 created [12:06:32]Thread 3067342180 joined [12:06:32]Waiting for new connection... [12:06:32] Sock 7.Parse request [12:06:32]Sock 7.Check first char [12:06:32]Sock 7.First char is OK [12:06:32]request: POST /json_proto HTTP/1.0 [12:06:32]Method: POST [12:06:32]URL: /json_proto [12:06:32]Method is POST - this is cgi request [12:06:32]url: /json_proto [12:06:32]query_string will be loaded in cgi processing [12:06:32]execute_cgi json_proto POST (null) [12:06:32]execute_cgi path=json_proto method=POST [12:06:32]POST find Content-Length [12:06:32]Host: 172.17.96.197:8080 [12:06:32]Content-Length: 678 [12:06:32]Content-Type: application/json [12:06:32] [12:06:32]POST finish read [12:06:32]Found Content-Length = 678 [12:06:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48560", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:06:32]execute_script... [12:06: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)48560", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:06:32]POST & json_proto [12:06:32]process_json_proto [12:06:32]json parsed OK: [12:06:32]protocol is kg_v1.0 [12:06:32]action value=close_receipt [12:06:32]process_action close_receipt [12:06:32]cmd_close_receipt [12:06:32]MH_GetDate [12:06:32]Write to MH i2c: F0 00 00 25 0F 23 [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: F0 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: F0 09 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: F0 09 00 25 0F 00 C9 C6 1B 66 E0 85 7F 64 84 [12:06:32]GetLastDocTimeStamp 1713096312 [12:06:32]current date 1713096393 [12:06:32]FM_GetShiftState [12:06:32]SAM_PROTO_GetShiftState [12:06:32]wFMCommunicate request_size=4 [12:06:32]MH_SAM_APDU [12:06:32]CAPDU: 80 13 01 00 [12:06:32]Write to MH i2c: E2 08 00 26 0F 80 13 01 00 00 00 00 00 B2 [12:06:32]Write i2c OK [12:06:32]MH_I2C_Read... [12:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:32]Read from MH i2c: E2 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 0E 00 [12:06:32]MH_I2C_Read... [12:06:32]Read from MH i2c: E2 0E 00 26 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4A [12:06:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:06:32]wFMCommunicate OK [12:06:32]SAM_PROTO_GetShiftState done [12:06:32]FM_GetShiftState done [12:06:32]opened in 1713054696 [12:06:32]opened+sec_in_day 1713141096 [12:06:32]quantity*price = 100056 [12:06:32]sum+1 = 100058 [12:06:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 144 14.04.2024 12:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112245 ФПД: 53236932574281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120633&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112245&fm=53236932574281&tin=02508201610067®Number=0000000000094237&sum=100000 [12:06:33]StoreToDocumentArchive [12:06:33]shift 357 fd 112245 [12:06:33]save to /storage/0357/doc_00112245 [12:06:33]save last doc name /storage/0357/doc_00112245 to /storage/kkm_last_doc_name [12:06:33]save OK [12:06:33]Clear old archive folders... [12:06:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:06:33]tlvbuf is 01779F60 [12:06:33]SAM_PROTO_ClearQueue [12:06:33]wFMCommunicate request_size=4 [12:06:33]MH_SAM_APDU [12:06:33]CAPDU: 80 09 00 00 [12:06:33]Write to MH i2c: E2 08 00 33 0F 80 09 00 00 00 00 00 00 B4 [12:06:33]Write i2c OK [12:06:33]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_ClearQueue done [12:06:34]KKMCreateOFDPacket [12:06:34]OFDProtocolAddRootSTLVToBuf [12:06:34]FM_MakeSignedData [12:06:34]FM_MakeSignedData [12:06:34]SAM_PROTO_SignData [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 0D 01 02 [12:06:34]Write to MH i2c: E2 08 00 34 0F 80 0D 01 02 00 00 00 00 BC [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]wFMCommunicate request_size=255 [12:06:34]MH_SAM_APDU [12:06:34]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 90 00 00 00 F4 03 04 00 C9 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B6 01 00 35 04 06 00 30 6B 30 74 [12:06:34]Write to MH i2c: E2 02 01 35 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 90 00 00 00 F4 03 04 00 C9 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B6 01 00 35 04 06 00 30 6B 30 74 00 00 ED [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 35 0F 00 90 00 B8 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]wFMCommunicate request_size=7 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 0D 02 02 02 7C 49 [12:06:34]Write to MH i2c: E2 0A 00 36 0F 80 0D 02 02 02 00 7C 49 00 00 88 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 03 00 36 0F 00 90 00 B9 [12:06:34]RAPDU: 90 00 [12:06:34]wFMCommunicate OK [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 0D 03 02 [12:06:34]Write to MH i2c: E2 08 00 37 0F 80 0D 03 02 00 00 00 00 C1 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0B 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 0B 00 37 0F 00 C6 44 0D 6B 48 78 36 12 90 00 4C [12:06:34]RAPDU: C6 44 0D 6B 48 78 36 12 90 00 [12:06:34]wFMCommunicate OK [12:06:34]SAM_PROTO_SignData done [12:06:34]FM_MakeSignedData done [12:06:34]CreateOFDProtocolMessage [12:06:34]wFMCommunicate request_size=4 [12:06:34]MH_SAM_APDU [12:06:34]CAPDU: 80 11 00 00 [12:06:34]Write to MH i2c: E2 08 00 38 0F 80 11 00 00 00 00 00 00 C1 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:34]Read from MH i2c: E2 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 17 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: E2 17 00 38 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 12 [12:06:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:06:34]wFMCommunicate OK [12:06:34]CreateOFDProtocolMessage done [12:06:34]OFDSenderStorePacket 112245 [12:06:34]StoreOFDPacket docnum=112245 [12:06:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 86 DB 04 01 68 E8 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 90 00 00 00 F4 03 04 00 C9 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B6 01 00 35 04 06 00 30 6B 30 74 7C 49 C6 44 0D 6B 48 78 36 12 [12:06:34]CheckFolder [12:06:34]dirname=/storage/ofd_packets [12:06:34]CheckFolder done [12:06:34]ProducePacketName [12:06:34]name=ofd_packets/00112245 [12:06:34]NVStorageSaveData ofd_packets/00112245 [12:06:34]File name is /storage/ofd_packets/00112245 [12:06:34]Write 298 bytes [12:06:34]NVStorageSaveData done [12:06:34]OFDSenderStorePacket done [12:06:34]KKMCreateOFDPacket done [12:06:34]NVStorageSaveData kkm_last_timestamp [12:06:34]File name is /storage/kkm_last_timestamp [12:06:34]Write 4 bytes [12:06:34]NVStorageSaveData done [12:06:34]ExternCall_PrintAddStr [12:06:34]wPrintStart [12:06:34]Write to MH i2c: 01 00 00 39 0F 48 [12:06:34]Write i2c OK [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: 01 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: 01 07 00 [12:06:34]MH_I2C_Read... [12:06:34]Read from MH i2c: 01 07 00 39 0F 00 00 00 00 00 FF 0F 5D [12:06:34]RasterBufferAndPrint [12:06:34]line Счет N : (1)48560 [12:06:34]line ИНН: 02508201610067 [12:06:34]line Контрольно-Кассовый Чек [12:06:34]line ПРОДАЖА [12:06:34]line ТРК (МРК, ГНК) : 51 [12:06:34]line Товар: 2710194210 [12:06:34]line ДТ-К-5 [12:06:34]line 13.820 * 72.40 [12:06:34]line = 1000.57 [12:06:34]line НДС 12% НСП 1% [12:06:34]line > о реализуемом товаре [12:06:34]line ОКРУГЛЕНИЕ: -0.57 [12:06:34]line ИТОГО: 1000.00 [12:06:34]line Внесено: 1000.00 [12:06:34]line СДАЧА: 0.00 [12:06:34]line НСП 1% : 8.85 [12:06:34]line НДС 12% : 106.25 [12:06:34]line Наличными: 1000.00 [12:06:34]line Безнал.: 0.00 [12:06:34]line Место: АЗС № 47 "Партнер Нефть" [12:06:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:06:34]line СНО: Общий режим [12:06:34]line Чек 144 14.04.2024 12:06 [12:06:34]line Смена: 357 ФФД: 1.0 [12:06:34]line ЗНМ: 0300000138 [12:06:34]line РНМ: 0000000000094237 [12:06:34]line Версия ККМ: 001 [12:06:34]line ФМ: 0000000000875019 [12:06:34]line ФД: 112245 [12:06:34]line ФПД: 53236932574281 [12:06:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T120633&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112245&fm=53236932574281&tin=02508201610067®Number=0000000000094237&sum=100000 [12:06:34]OFD Sender: Processing packet 112245 [packets to send 71, broken 70] [12:06:34]ProducePacketName [12:06:34]name=ofd_packets/00112245 [12:06:34]OFD Sender: To server: pG, [12:06:34]CommunicateWithHost lk.salyk.kg:30040 [12:06:34]ConnectInit lk.salyk.kg [12:06:34]written 0, free lines is 4095 [12:06:35]Connected sock=10 [12:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 86 DB 04 01 68 E8 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 90 00 00 00 F4 03 04 00 C9 C6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B6 01 00 35 04 06 00 30 6B 30 74 7C 49 C6 44 0D 6B 48 78 36 12 [12:06:35]Write to MH i2c: 01 00 00 64 0F 73 [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 07 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: 01 07 00 64 0F 00 00 00 00 00 EA 0C 70 [12:06:35]RasterBufferAndPrint [12:06:35]line [12:06:35]line [12:06:35]line [12:06:35]line [12:06:35]line [12:06:35]written 0, free lines is 3312 [12:06:35]MH_Cut [12:06:35]Write to MH i2c: D1 01 00 6B 0F 01 4C [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: D1 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: D1 01 00 [12:06:35]MH_I2C_Read... [12:06:35]Read from MH i2c: D1 01 00 6B 0F 00 4B [12:06:35]Write to MH i2c: 01 00 00 6C 0F 7B [12:06:35]Write i2c OK [12:06:35]MH_I2C_Read... [12:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C1 F6 47 00 13 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B6 01 00 F4 03 04 00 55 6E 1B 66 B6 04 01 00 00 EE 36 AC 5B C1 DD 9B 70 [12:06:35]CommunicateWithHost err = 0 [12:06:35]CheckOFDResponse [12:06:35]1017 (14) - 77093643461234 [12:06:35]1041 (16) - 0000000000875019 [12:06:35]1040 (4) - 112245 [12:06:35]1012 (4) - 14.04.2024 05:49 [12:06:35]1206 (1) - 0 [12:06:35]OFD Sender: Remove packet 112245 [12:06:35]ProducePacketName [12:06:35]name=ofd_packets/00112245 [12:06:35]NVStorageDeleteData [12:06:35]OFD Sender: No OFD packet to send [12:06:36]*** Cut start [12:06:36]*** Partial cut [12:06:36]*** CUTSNS_PIN = 1 [12:06:36]*** CUTSNS_PIN = 0 [12:06:36]*** Brake cut motor [12:06:36]Read from MH i2c: 01 [12:06:36]MH_I2C_Read... [12:06:36]*** Stop cut motor [12:06:36]*** Cut end [12:06:36]Read from MH i2c: 01 07 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: 01 07 00 6C 0F 00 00 00 00 00 FF 0F 90 [12:06:36]process_action close_receipt done [12:06:36]requested_data is exist [12:06:36]produce_requested_data [12:06:36]requested_item fm.sn is exist - process it [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 11 00 00 [12:06:36]Write to MH i2c: E2 08 00 6D 0F 80 11 00 00 00 00 00 00 F6 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 17 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 17 00 6D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 47 [12:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:06:36]wFMCommunicate OK [12:06:36]requested_item fd.num is exist - process it [12:06:36]SAM_PROTO_GetFieldsCounters [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 13 00 00 [12:06:36]Write to MH i2c: E2 08 00 6E 0F 80 13 00 00 00 00 00 00 F9 [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 62 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 62 00 6E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 75 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [12:06:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 75 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_GetFieldsCounters done [12:06:36]requested_item shift.num is exist - process it [12:06:36]requested_item shift.opened is exist - process it [12:06:36]req_shift_opened [12:06:36]FM_GetShiftState [12:06:36]SAM_PROTO_GetShiftState [12:06:36]wFMCommunicate request_size=4 [12:06:36]MH_SAM_APDU [12:06:36]CAPDU: 80 13 01 00 [12:06:36]Write to MH i2c: E2 08 00 6F 0F 80 13 01 00 00 00 00 00 FB [12:06:36]Write i2c OK [12:06:36]MH_I2C_Read... [12:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:36]Read from MH i2c: E2 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0E 00 [12:06:36]MH_I2C_Read... [12:06:36]Read from MH i2c: E2 0E 00 6F 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 93 [12:06:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:06:36]wFMCommunicate OK [12:06:36]SAM_PROTO_GetShiftState done [12:06:36]FM_GetShiftState done [12:06:36]req_shift_opened done [12:06:36]requested_item shift.open_date is exist - process it [12:06:36]req_shift_open_date [12:06:36]req_shift_open_date done [12:06:36]produce_requested_data done [12:06:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112245,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:06:36]process_action_free close_receipt [12:06:36]json_value_free [12:06:36]json_value_free done [12:06:36]process_json_proto returns [12:06:36]Send response to host [12:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112245,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:06:36]free response buf [12:06:36]execute_script done [12:06:36]execute_script returns [12:06:36]free content buf [12:06:36]Sock 7.Close socket [12:06:36]Sock 7.Thread stoped [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:37]accept exits with 9 [12:15:37]New connection [12:15:37]New thread 3067342180 created [12:15:37]Thread 3067198820 joined [12:15:37]Waiting for new connection... [12:15:37] Sock 9.Parse request [12:15:37]Sock 9.Check first char [12:15:37]Sock 9.First char is OK [12:15:37]request: POST /json_proto HTTP/1.0 [12:15:37]Method: POST [12:15:37]URL: /json_proto [12:15:37]Method is POST - this is cgi request [12:15:37]url: /json_proto [12:15:37]query_string will be loaded in cgi processing [12:15:37]execute_cgi json_proto POST (null) [12:15:37]execute_cgi path=json_proto method=POST [12:15:37]POST find Content-Length [12:15:37]Host: 172.17.96.197:8080 [12:15:37]Content-Length: 676 [12:15:37]Content-Type: application/json [12:15:37] [12:15:37]POST finish read [12:15:37]Found Content-Length = 676 [12:15:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.660, "sum" : 700.35, "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" ] } } [12:15:37]execute_script... [12:15: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)48561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.660, "sum" : 700.35, "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" ] } } [12:15:37]POST & json_proto [12:15:37]process_json_proto [12:15:37]json parsed OK: [12:15:37]protocol is kg_v1.0 [12:15:37]action value=close_receipt [12:15:37]process_action close_receipt [12:15:37]cmd_close_receipt [12:15:37]MH_GetDate [12:15:37]Write to MH i2c: F0 00 00 70 0F 6E [12:15:37]Write i2c OK [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 09 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: F0 09 00 70 0F 00 EA C8 1B 66 E0 85 7F 64 F2 [12:15:37]GetLastDocTimeStamp 1713096393 [12:15:37]current date 1713096938 [12:15:37]FM_GetShiftState [12:15:37]SAM_PROTO_GetShiftState [12:15:37]wFMCommunicate request_size=4 [12:15:37]MH_SAM_APDU [12:15:37]CAPDU: 80 13 01 00 [12:15:37]Write to MH i2c: E2 08 00 71 0F 80 13 01 00 00 00 00 00 FD [12:15:37]Write i2c OK [12:15:37]MH_I2C_Read... [12:15:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:37]Read from MH i2c: E2 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 [12:15:37]MH_I2C_Read... [12:15:37]Read from MH i2c: E2 0E 00 71 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 95 [12:15:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:15:37]wFMCommunicate OK [12:15:37]SAM_PROTO_GetShiftState done [12:15:37]FM_GetShiftState done [12:15:37]opened in 1713054696 [12:15:37]opened+sec_in_day 1713141096 [12:15:37]quantity*price = 70035 [12:15:37]sum+1 = 70036 [12:15:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 145 14.04.2024 12:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112246 ФПД: 71902962849767 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121538&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112246&fm=71902962849767&tin=02508201610067®Number=0000000000094237&sum=70000 [12:15:38]StoreToDocumentArchive [12:15:38]shift 357 fd 112246 [12:15:38]save to /storage/0357/doc_00112246 [12:15:38]save last doc name /storage/0357/doc_00112246 to /storage/kkm_last_doc_name [12:15:38]save OK [12:15:38]Clear old archive folders... [12:15:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:15:38]tlvbuf is 0182BAC0 [12:15:38]SAM_PROTO_ClearQueue [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 09 00 00 [12:15:38]Write to MH i2c: E2 08 00 7E 0F 80 09 00 00 00 00 00 00 FF [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]SAM_PROTO_ClearQueue done [12:15:38]KKMCreateOFDPacket [12:15:38]OFDProtocolAddRootSTLVToBuf [12:15:38]FM_MakeSignedData [12:15:38]FM_MakeSignedData [12:15:38]SAM_PROTO_SignData [12:15:38]wFMCommunicate request_size=4 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 01 02 [12:15:38]Write to MH i2c: E2 08 00 7F 0F 80 0D 01 02 00 00 00 00 07 [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]wFMCommunicate request_size=255 [12:15:38]MH_SAM_APDU [12:15: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 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 91 00 00 00 F4 03 04 00 EA C8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B6 01 00 35 04 06 00 41 [12:15:38]Write to MH i2c: E2 02 01 80 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 91 00 00 00 F4 03 04 00 EA C8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B6 01 00 35 04 06 00 41 00 00 3B [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:38]Read from MH i2c: E2 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 [12:15:38]MH_I2C_Read... [12:15:38]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [12:15:38]RAPDU: 90 00 [12:15:38]wFMCommunicate OK [12:15:38]wFMCommunicate request_size=10 [12:15:38]MH_SAM_APDU [12:15:38]CAPDU: 80 0D 02 02 05 65 36 8F 17 E7 [12:15:38]Write to MH i2c: E2 0D 00 81 0F 80 0D 02 02 05 00 65 36 8F 17 E7 00 00 3C [12:15:38]Write i2c OK [12:15:38]MH_I2C_Read... [12:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:39]Read from MH i2c: E2 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 03 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 03 00 81 0F 00 90 00 04 [12:15:39]RAPDU: 90 00 [12:15:39]wFMCommunicate OK [12:15:39]wFMCommunicate request_size=4 [12:15:39]MH_SAM_APDU [12:15:39]CAPDU: 80 0D 03 02 [12:15:39]Write to MH i2c: E2 08 00 82 0F 80 0D 03 02 00 00 00 00 0C [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:39]Read from MH i2c: E2 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 0B 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 0B 00 82 0F 00 3A A1 6B BE 15 EF 1F BF 90 00 F3 [12:15:39]RAPDU: 3A A1 6B BE 15 EF 1F BF 90 00 [12:15:39]wFMCommunicate OK [12:15:39]SAM_PROTO_SignData done [12:15:39]FM_MakeSignedData done [12:15:39]CreateOFDProtocolMessage [12:15:39]wFMCommunicate request_size=4 [12:15:39]MH_SAM_APDU [12:15:39]CAPDU: 80 11 00 00 [12:15:39]Write to MH i2c: E2 08 00 83 0F 80 11 00 00 00 00 00 00 0C [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:39]Read from MH i2c: E2 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 17 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: E2 17 00 83 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5D [12:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:15:39]wFMCommunicate OK [12:15:39]CreateOFDProtocolMessage done [12:15:39]OFDSenderStorePacket 112246 [12:15:39]StoreOFDPacket docnum=112246 [12:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CB CA 07 01 2F 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 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 91 00 00 00 F4 03 04 00 EA C8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B6 01 00 35 04 06 00 41 65 36 8F 17 E7 3A A1 6B BE 15 EF 1F BF [12:15:39]CheckFolder [12:15:39]dirname=/storage/ofd_packets [12:15:39]CheckFolder done [12:15:39]ProducePacketName [12:15:39]name=ofd_packets/00112246 [12:15:39]NVStorageSaveData ofd_packets/00112246 [12:15:39]File name is /storage/ofd_packets/00112246 [12:15:39]Write 301 bytes [12:15:39]NVStorageSaveData done [12:15:39]OFDSenderStorePacket done [12:15:39]KKMCreateOFDPacket done [12:15:39]NVStorageSaveData kkm_last_timestamp [12:15:39]File name is /storage/kkm_last_timestamp [12:15:39]Write 4 bytes [12:15:39]NVStorageSaveData done [12:15:39]ExternCall_PrintAddStr [12:15:39]wPrintStart [12:15:39]Write to MH i2c: 01 00 00 84 0F 93 [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 FF 0F A8 [12:15:39]RasterBufferAndPrint [12:15:39]line Счет N : (1)48561 [12:15:39]line ИНН: 02508201610067 [12:15:39]line Контрольно-Кассовый Чек [12:15:39]line ПРОДАЖА [12:15:39]line ТРК (МРК, ГНК) : 22 [12:15:39]line Товар: 2710124500 [12:15:39]line Аи-95-К-5 [12:15:39]line 9.660 * 72.50 [12:15:39]line = 700.35 [12:15:39]line НДС 12% НСП 1% [12:15:39]line > о реализуемом товаре [12:15:39]line ОКРУГЛЕНИЕ: -0.35 [12:15:39]line ИТОГО: 700.00 [12:15:39]line Внесено: 700.00 [12:15:39]line СДАЧА: 0.00 [12:15:39]line НСП 1% : 6.20 [12:15:39]line НДС 12% : 74.37 [12:15:39]line Наличными: 700.00 [12:15:39]line Безнал.: 0.00 [12:15:39]line Место: АЗС № 47 "Партнер Нефть" [12:15:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:15:39]line СНО: Общий режим [12:15:39]line Чек 145 14.04.2024 12:15 [12:15:39]line Смена: 357 ФФД: 1.0 [12:15:39]line ЗНМ: 0300000138 [12:15:39]line РНМ: 0000000000094237 [12:15:39]line Версия ККМ: 001 [12:15:39]line ФМ: 0000000000875019 [12:15:39]line ФД: 112246 [12:15:39]line ФПД: 71902962849767 [12:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121538&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112246&fm=71902962849767&tin=02508201610067®Number=0000000000094237&sum=70000 [12:15:39]OFD Sender: Processing packet 112246 [packets to send 71, broken 70] [12:15:39]ProducePacketName [12:15:39]name=ofd_packets/00112246 [12:15:39]OFD Sender: To server: pG, [12:15:39]CommunicateWithHost lk.salyk.kg:30040 [12:15:39]ConnectInit lk.salyk.kg [12:15:39]written 0, free lines is 4095 [12:15:39]Connected sock=10 [12:15:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CB CA 07 01 2F 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 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 91 00 00 00 F4 03 04 00 EA C8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B6 01 00 35 04 06 00 41 65 36 8F 17 E7 3A A1 6B BE 15 EF 1F BF [12:15:39]Write to MH i2c: 01 00 00 AF 0F BE [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: 01 07 00 AF 0F 00 00 00 00 00 E0 0C B1 [12:15:39]RasterBufferAndPrint [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]line [12:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9E 22 47 00 3D 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B6 01 00 F4 03 04 00 75 70 1B 66 B6 04 01 00 00 73 8B E5 AC 8F 97 24 36 [12:15:39]CommunicateWithHost err = 0 [12:15:39]CheckOFDResponse [12:15:39]1017 (14) - 77093643461234 [12:15:39]1041 (16) - 0000000000875019 [12:15:39]1040 (4) - 112246 [12:15:39]1012 (4) - 14.04.2024 05:58 [12:15:39]1206 (1) - 0 [12:15:39]OFD Sender: Remove packet 112246 [12:15:39]ProducePacketName [12:15:39]name=ofd_packets/00112246 [12:15:39]NVStorageDeleteData [12:15:39]written 0, free lines is 3302 [12:15:39]MH_Cut [12:15:39]Write to MH i2c: D1 01 00 B6 0F 01 97 [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 01 00 [12:15:39]MH_I2C_Read... [12:15:39]Read from MH i2c: D1 01 00 B6 0F 00 96 [12:15:39]Write to MH i2c: 01 00 00 B7 0F C6 [12:15:39]Write i2c OK [12:15:39]MH_I2C_Read... [12:15:40]OFD Sender: No OFD packet to send [12:15:40]*** Cut start [12:15:40]*** Partial cut [12:15:40]*** CUTSNS_PIN = 1 [12:15:40]*** CUTSNS_PIN = 0 [12:15:40]*** Brake cut motor [12:15:41]Read from MH i2c: 01 [12:15:41]MH_I2C_Read... [12:15:41]*** Stop cut motor [12:15:41]*** Cut end [12:15:41]Read from MH i2c: 01 07 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: 01 07 00 B7 0F 00 00 00 00 00 FF 0F DB [12:15:41]process_action close_receipt done [12:15:41]requested_data is exist [12:15:41]produce_requested_data [12:15:41]requested_item fm.sn is exist - process it [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 11 00 00 [12:15:41]Write to MH i2c: E2 08 00 B8 0F 80 11 00 00 00 00 00 00 41 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 17 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 17 00 B8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 92 [12:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:15:41]wFMCommunicate OK [12:15:41]requested_item fd.num is exist - process it [12:15:41]SAM_PROTO_GetFieldsCounters [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 13 00 00 [12:15:41]Write to MH i2c: E2 08 00 B9 0F 80 13 00 00 00 00 00 00 44 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 62 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 62 00 B9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 76 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [12:15:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 76 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:41]wFMCommunicate OK [12:15:41]SAM_PROTO_GetFieldsCounters done [12:15:41]requested_item shift.num is exist - process it [12:15:41]requested_item shift.opened is exist - process it [12:15:41]req_shift_opened [12:15:41]FM_GetShiftState [12:15:41]SAM_PROTO_GetShiftState [12:15:41]wFMCommunicate request_size=4 [12:15:41]MH_SAM_APDU [12:15:41]CAPDU: 80 13 01 00 [12:15:41]Write to MH i2c: E2 08 00 BA 0F 80 13 01 00 00 00 00 00 46 [12:15:41]Write i2c OK [12:15:41]MH_I2C_Read... [12:15:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:41]Read from MH i2c: E2 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 [12:15:41]MH_I2C_Read... [12:15:41]Read from MH i2c: E2 0E 00 BA 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DE [12:15:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:15:41]wFMCommunicate OK [12:15:41]SAM_PROTO_GetShiftState done [12:15:41]FM_GetShiftState done [12:15:41]req_shift_opened done [12:15:41]requested_item shift.open_date is exist - process it [12:15:41]req_shift_open_date [12:15:41]req_shift_open_date done [12:15:41]produce_requested_data done [12:15:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112246,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:15:41]process_action_free close_receipt [12:15:41]json_value_free [12:15:41]json_value_free done [12:15:41]process_json_proto returns [12:15:41]Send response to host [12:15:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112246,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:15:41]free response buf [12:15:41]execute_script done [12:15:41]execute_script returns [12:15:41]free content buf [12:15:41]Sock 9.Close socket [12:15:41]Sock 9.Thread stoped [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:16:57]accept exits with 7 [12:16:57]New connection [12:16:57]New thread 3067198820 created [12:16:57]Thread 3067342180 joined [12:16:57]Waiting for new connection... [12:16:57] Sock 7.Parse request [12:16:57]Sock 7.Check first char [12:16:57]Sock 7.First char is OK [12:16:57]request: POST /json_proto HTTP/1.0 [12:16:57]Method: POST [12:16:57]URL: /json_proto [12:16:57]Method is POST - this is cgi request [12:16:57]url: /json_proto [12:16:57]query_string will be loaded in cgi processing [12:16:57]execute_cgi json_proto POST (null) [12:16:57]execute_cgi path=json_proto method=POST [12:16:57]POST find Content-Length [12:16:57]Host: 172.17.96.197:8080 [12:16:57]Content-Length: 680 [12:16:57]Content-Type: application/json [12:16:57] [12:16:57]POST finish read [12:16:57]Found Content-Length = 680 [12:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.710, "sum" : 350.22, "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" ] } } [12:16:57]execute_script... [12:16: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)48562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 10.710, "sum" : 350.22, "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" ] } } [12:16:57]POST & json_proto [12:16:57]process_json_proto [12:16:57]json parsed OK: [12:16:57]protocol is kg_v1.0 [12:16:57]action value=close_receipt [12:16:57]process_action close_receipt [12:16:57]cmd_close_receipt [12:16:57]MH_GetDate [12:16:57]Write to MH i2c: F0 00 00 BB 0F B9 [12:16:57]Write i2c OK [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: F0 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: F0 09 00 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: F0 09 00 BB 0F 00 3A C9 1B 66 E0 85 7F 64 8E [12:16:57]GetLastDocTimeStamp 1713096938 [12:16:57]current date 1713097018 [12:16:57]FM_GetShiftState [12:16:57]SAM_PROTO_GetShiftState [12:16:57]wFMCommunicate request_size=4 [12:16:57]MH_SAM_APDU [12:16:57]CAPDU: 80 13 01 00 [12:16:57]Write to MH i2c: E2 08 00 BC 0F 80 13 01 00 00 00 00 00 48 [12:16:57]Write i2c OK [12:16:57]MH_I2C_Read... [12:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:57]Read from MH i2c: E2 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: E2 0E 00 [12:16:57]MH_I2C_Read... [12:16:57]Read from MH i2c: E2 0E 00 BC 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E0 [12:16:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:16:57]wFMCommunicate OK [12:16:57]SAM_PROTO_GetShiftState done [12:16:57]FM_GetShiftState done [12:16:57]opened in 1713054696 [12:16:57]opened+sec_in_day 1713141096 [12:16:57]quantity*price = 35021 [12:16:57]sum+1 = 35023 [12:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 146 14.04.2024 12:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112247 ФПД: 264321261242906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112247&fm=264321261242906&tin=02508201610067®Number=0000000000094237&sum=35000 [12:16:59]StoreToDocumentArchive [12:16:59]shift 357 fd 112247 [12:16:59]save to /storage/0357/doc_00112247 [12:16:59]save last doc name /storage/0357/doc_00112247 to /storage/kkm_last_doc_name [12:16:59]save OK [12:16:59]Clear old archive folders... [12:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:16:59]tlvbuf is 01824BD0 [12:16:59]SAM_PROTO_ClearQueue [12:16:59]wFMCommunicate request_size=4 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 09 00 00 [12:16:59]Write to MH i2c: E2 08 00 C9 0F 80 09 00 00 00 00 00 00 4A [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [12:16:59]RAPDU: 90 00 [12:16:59]wFMCommunicate OK [12:16:59]SAM_PROTO_ClearQueue done [12:16:59]KKMCreateOFDPacket [12:16:59]OFDProtocolAddRootSTLVToBuf [12:16:59]FM_MakeSignedData [12:16:59]FM_MakeSignedData [12:16:59]SAM_PROTO_SignData [12:16:59]wFMCommunicate request_size=4 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 0D 01 02 [12:16:59]Write to MH i2c: E2 08 00 CA 0F 80 0D 01 02 00 00 00 00 52 [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [12:16:59]RAPDU: 90 00 [12:16:59]wFMCommunicate OK [12:16:59]wFMCommunicate request_size=255 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 CE 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 87 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 92 00 00 00 F4 03 04 00 3A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B6 01 00 35 04 06 00 F0 66 [12:16:59]Write to MH i2c: E2 02 01 CB 0F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 CE 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 87 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 92 00 00 00 F4 03 04 00 3A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B6 01 00 35 04 06 00 F0 66 00 00 74 [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [12:16:59]RAPDU: 90 00 [12:16:59]wFMCommunicate OK [12:16:59]wFMCommunicate request_size=9 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 0D 02 02 04 16 E2 0A 1A [12:16:59]Write to MH i2c: E2 0C 00 CC 0F 80 0D 02 02 04 00 16 E2 0A 1A 00 00 79 [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:59]Read from MH i2c: E2 03 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 03 00 CC 0F 00 90 00 4F [12:16:59]RAPDU: 90 00 [12:16:59]wFMCommunicate OK [12:16:59]wFMCommunicate request_size=4 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 0D 03 02 [12:16:59]Write to MH i2c: E2 08 00 CD 0F 80 0D 03 02 00 00 00 00 57 [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 0B 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 0B 00 CD 0F 00 73 66 66 11 E3 8C 4C 1D 90 00 80 [12:16:59]RAPDU: 73 66 66 11 E3 8C 4C 1D 90 00 [12:16:59]wFMCommunicate OK [12:16:59]SAM_PROTO_SignData done [12:16:59]FM_MakeSignedData done [12:16:59]CreateOFDProtocolMessage [12:16:59]wFMCommunicate request_size=4 [12:16:59]MH_SAM_APDU [12:16:59]CAPDU: 80 11 00 00 [12:16:59]Write to MH i2c: E2 08 00 CE 0F 80 11 00 00 00 00 00 00 57 [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:59]Read from MH i2c: E2 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 17 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: E2 17 00 CE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A8 [12:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:16:59]wFMCommunicate OK [12:16:59]CreateOFDProtocolMessage done [12:16:59]OFDSenderStorePacket 112247 [12:16:59]StoreOFDPacket docnum=112247 [12:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 18 27 06 01 B9 B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 CE 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 87 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 92 00 00 00 F4 03 04 00 3A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B6 01 00 35 04 06 00 F0 66 16 E2 0A 1A 73 66 66 11 E3 8C 4C 1D [12:16:59]CheckFolder [12:16:59]dirname=/storage/ofd_packets [12:16:59]CheckFolder done [12:16:59]ProducePacketName [12:16:59]name=ofd_packets/00112247 [12:16:59]NVStorageSaveData ofd_packets/00112247 [12:16:59]File name is /storage/ofd_packets/00112247 [12:16:59]Write 300 bytes [12:16:59]NVStorageSaveData done [12:16:59]OFDSenderStorePacket done [12:16:59]KKMCreateOFDPacket done [12:16:59]NVStorageSaveData kkm_last_timestamp [12:16:59]File name is /storage/kkm_last_timestamp [12:16:59]Write 4 bytes [12:16:59]NVStorageSaveData done [12:16:59]ExternCall_PrintAddStr [12:16:59]wPrintStart [12:16:59]Write to MH i2c: 01 00 00 CF 0F DE [12:16:59]Write i2c OK [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: 01 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: 01 07 00 [12:16:59]MH_I2C_Read... [12:16:59]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 FF 0F F3 [12:16:59]RasterBufferAndPrint [12:16:59]line Счет N : (1)48562 [12:16:59]line ИНН: 02508201610067 [12:16:59]line Контрольно-Кассовый Чек [12:16:59]line ПРОДАЖА [12:16:59]line ТРК (МРК, ГНК) : 71 [12:16:59]line Товар: 2711190000 [12:16:59]line ГАЗ-К-5 [12:16:59]line 10.710 * 32.70 [12:16:59]line = 350.22 [12:16:59]line НДС 12% НСП 1% [12:16:59]line > о реализуемом товаре [12:16:59]line ОКРУГЛЕНИЕ: -0.22 [12:16:59]line ИТОГО: 350.00 [12:16:59]line Внесено: 350.00 [12:16:59]line СДАЧА: 0.00 [12:16:59]line НСП 1% : 3.10 [12:16:59]line НДС 12% : 37.19 [12:16:59]line Наличными: 350.00 [12:16:59]line Безнал.: 0.00 [12:16:59]line Место: АЗС № 47 "Партнер Нефть" [12:16:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:16:59]line СНО: Общий режим [12:16:59]line Чек 146 14.04.2024 12:16 [12:16:59]line Смена: 357 ФФД: 1.0 [12:16:59]line ЗНМ: 0300000138 [12:16:59]line РНМ: 0000000000094237 [12:16:59]line Версия ККМ: 001 [12:16:59]line ФМ: 0000000000875019 [12:16:59]line ФД: 112247 [12:16:59]line ФПД: 264321261242906 [12:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112247&fm=264321261242906&tin=02508201610067®Number=0000000000094237&sum=35000 [12:16:59]OFD Sender: Processing packet 112247 [packets to send 71, broken 70] [12:16:59]ProducePacketName [12:16:59]name=ofd_packets/00112247 [12:16:59]OFD Sender: To server: pG, [12:16:59]CommunicateWithHost lk.salyk.kg:30040 [12:16:59]ConnectInit lk.salyk.kg [12:16:59]written 0, free lines is 4095 [12:17:00]Connected sock=10 [12:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 18 27 06 01 B9 B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D6 29 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 CE 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 87 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 92 00 00 00 F4 03 04 00 3A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B6 01 00 35 04 06 00 F0 66 16 E2 0A 1A 73 66 66 11 E3 8C 4C 1D [12:17:00]Write to MH i2c: 01 00 00 FA 0F 09 [12:17:00]Write i2c OK [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: 01 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: 01 07 00 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: 01 07 00 FA 0F 00 00 00 00 00 CF 0C EB [12:17:00]RasterBufferAndPrint [12:17:00]line [12:17:00]line [12:17:00]line [12:17:00]line [12:17:00]line [12:17:00]written 0, free lines is 3287 [12:17:00]MH_Cut [12:17:00]Write to MH i2c: D1 01 00 01 10 01 E3 [12:17:00]Write i2c OK [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: D1 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: D1 01 00 [12:17:00]MH_I2C_Read... [12:17:00]Read from MH i2c: D1 01 00 01 10 00 E2 [12:17:00]Write to MH i2c: 01 00 00 02 10 12 [12:17:00]Write i2c OK [12:17:00]MH_I2C_Read... [12:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BC EE 47 00 9D 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B6 01 00 F4 03 04 00 C6 70 1B 66 B6 04 01 00 00 AB A7 A9 0A 4B 93 B4 20 [12:17:00]CommunicateWithHost err = 0 [12:17:00]CheckOFDResponse [12:17:00]1017 (14) - 77093643461234 [12:17:00]1041 (16) - 0000000000875019 [12:17:00]1040 (4) - 112247 [12:17:00]1012 (4) - 14.04.2024 05:59 [12:17:00]1206 (1) - 0 [12:17:00]OFD Sender: Remove packet 112247 [12:17:00]ProducePacketName [12:17:00]name=ofd_packets/00112247 [12:17:00]NVStorageDeleteData [12:17:00]OFD Sender: No OFD packet to send [12:17:01]*** Cut start [12:17:01]*** Partial cut [12:17:01]*** CUTSNS_PIN = 1 [12:17:01]*** CUTSNS_PIN = 0 [12:17:01]*** Brake cut motor [12:17:01]Read from MH i2c: 01 [12:17:01]MH_I2C_Read... [12:17:01]*** Stop cut motor [12:17:01]*** Cut end [12:17:01]Read from MH i2c: 01 07 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: 01 07 00 02 10 00 00 00 00 00 FF 0F 27 [12:17:01]process_action close_receipt done [12:17:01]requested_data is exist [12:17:01]produce_requested_data [12:17:01]requested_item fm.sn is exist - process it [12:17:01]wFMCommunicate request_size=4 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 11 00 00 [12:17:01]Write to MH i2c: E2 08 00 03 10 80 11 00 00 00 00 00 00 8D [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:01]Read from MH i2c: E2 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 17 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 17 00 03 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DE [12:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:17:01]wFMCommunicate OK [12:17:01]requested_item fd.num is exist - process it [12:17:01]SAM_PROTO_GetFieldsCounters [12:17:01]wFMCommunicate request_size=4 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 13 00 00 [12:17:01]Write to MH i2c: E2 08 00 04 10 80 13 00 00 00 00 00 00 90 [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:01]Read from MH i2c: E2 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 62 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 62 00 04 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 77 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [12:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 77 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:01]wFMCommunicate OK [12:17:01]SAM_PROTO_GetFieldsCounters done [12:17:01]requested_item shift.num is exist - process it [12:17:01]requested_item shift.opened is exist - process it [12:17:01]req_shift_opened [12:17:01]FM_GetShiftState [12:17:01]SAM_PROTO_GetShiftState [12:17:01]wFMCommunicate request_size=4 [12:17:01]MH_SAM_APDU [12:17:01]CAPDU: 80 13 01 00 [12:17:01]Write to MH i2c: E2 08 00 05 10 80 13 01 00 00 00 00 00 92 [12:17:01]Write i2c OK [12:17:01]MH_I2C_Read... [12:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:01]Read from MH i2c: E2 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 0E 00 [12:17:01]MH_I2C_Read... [12:17:01]Read from MH i2c: E2 0E 00 05 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2A [12:17:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:17:01]wFMCommunicate OK [12:17:01]SAM_PROTO_GetShiftState done [12:17:01]FM_GetShiftState done [12:17:01]req_shift_opened done [12:17:01]requested_item shift.open_date is exist - process it [12:17:01]req_shift_open_date [12:17:01]req_shift_open_date done [12:17:01]produce_requested_data done [12:17:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112247,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:17:01]process_action_free close_receipt [12:17:01]json_value_free [12:17:01]json_value_free done [12:17:01]process_json_proto returns [12:17:01]Send response to host [12:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112247,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:17:01]free response buf [12:17:01]execute_script done [12:17:01]execute_script returns [12:17:01]free content buf [12:17:01]Sock 7.Close socket [12:17:01]Sock 7.Thread stoped [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:54]accept exits with 9 [12:17:54]New connection [12:17:54]New thread 3067342180 created [12:17:54]Thread 3067198820 joined [12:17:54]Waiting for new connection... [12:17:54] Sock 9.Parse request [12:17:54]Sock 9.Check first char [12:17:54]Sock 9.First char is OK [12:17:54]request: POST /json_proto HTTP/1.0 [12:17:54]Method: POST [12:17:54]URL: /json_proto [12:17:54]Method is POST - this is cgi request [12:17:54]url: /json_proto [12:17:54]query_string will be loaded in cgi processing [12:17:54]execute_cgi json_proto POST (null) [12:17:54]execute_cgi path=json_proto method=POST [12:17:54]POST find Content-Length [12:17:54]Host: 172.17.96.197:8080 [12:17:54]Content-Length: 811 [12:17:54]Content-Type: application/json [12:17:54] [12:17:54]POST finish read [12:17:54]Found Content-Length = 811 [12:17:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48563", "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.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:54]execute_script... [12:17: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)48563", "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.30, "quantity" : 30.630, "sum" : 2000.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.14 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:54]POST & json_proto [12:17:54]process_json_proto [12:17:54]json parsed OK: [12:17:54]protocol is kg_v1.0 [12:17:54]action value=close_receipt [12:17:54]process_action close_receipt [12:17:54]cmd_close_receipt [12:17:54]MH_GetDate [12:17:54]Write to MH i2c: F0 00 00 06 10 05 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 09 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: F0 09 00 06 10 00 73 C9 1B 66 E0 85 7F 64 13 [12:17:54]GetLastDocTimeStamp 1713097018 [12:17:54]current date 1713097075 [12:17:54]FM_GetShiftState [12:17:54]SAM_PROTO_GetShiftState [12:17:54]wFMCommunicate request_size=4 [12:17:54]MH_SAM_APDU [12:17:54]CAPDU: 80 13 01 00 [12:17:54]Write to MH i2c: E2 08 00 07 10 80 13 01 00 00 00 00 00 94 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:54]Read from MH i2c: E2 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: E2 0E 00 07 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2C [12:17:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:17:54]wFMCommunicate OK [12:17:54]SAM_PROTO_GetShiftState done [12:17:54]FM_GetShiftState done [12:17:54]opened in 1713054696 [12:17:54]opened+sec_in_day 1713141096 [12:17:54]quantity*price = 200013 [12:17:54]sum+1 = 200015 [12:17:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.14 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 0.00 Безнал.: 2000.14 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 147 14.04.2024 12:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112248 ФПД: 198639835337432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121755&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112248&fm=198639835337432&tin=02508201610067®Number=0000000000094237&sum=200014 [12:17:55]StoreToDocumentArchive [12:17:55]shift 357 fd 112248 [12:17:55]save to /storage/0357/doc_00112248 [12:17:55]save last doc name /storage/0357/doc_00112248 to /storage/kkm_last_doc_name [12:17:55]save OK [12:17:55]Clear old archive folders... [12:17:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:17:55]tlvbuf is 0177C390 [12:17:55]SAM_PROTO_ClearQueue [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 09 00 00 [12:17:55]Write to MH i2c: E2 08 00 14 10 80 09 00 00 00 00 00 00 96 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 14 10 00 90 00 98 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]SAM_PROTO_ClearQueue done [12:17:55]KKMCreateOFDPacket [12:17:55]OFDProtocolAddRootSTLVToBuf [12:17:55]FM_MakeSignedData [12:17:55]FM_MakeSignedData [12:17:55]SAM_PROTO_SignData [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 01 02 [12:17:55]Write to MH i2c: E2 08 00 15 10 80 0D 01 02 00 00 00 00 9E [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=255 [12:17:55]MH_SAM_APDU [12:17:55]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 73 C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B6 01 00 35 04 06 00 [12:17:55]Write to MH i2c: E2 02 01 16 10 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 73 C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B6 01 00 35 04 06 00 00 00 34 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]OFD Sender: No OFD packet to send [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 16 10 00 90 00 9A [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=11 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 02 02 06 B4 A9 70 D2 D2 D8 [12:17:55]Write to MH i2c: E2 0E 00 17 10 80 0D 02 02 06 00 B4 A9 70 D2 D2 D8 00 00 F6 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:55]Read from MH i2c: E2 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: E2 03 00 17 10 00 90 00 9B [12:17:55]RAPDU: 90 00 [12:17:55]wFMCommunicate OK [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 0D 03 02 [12:17:55]Write to MH i2c: E2 08 00 18 10 80 0D 03 02 00 00 00 00 A3 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0B 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0B 00 18 10 00 E4 C5 13 EB 2D 9B 1D 06 90 00 36 [12:17:56]RAPDU: E4 C5 13 EB 2D 9B 1D 06 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_SignData done [12:17:56]FM_MakeSignedData done [12:17:56]CreateOFDProtocolMessage [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 11 00 00 [12:17:56]Write to MH i2c: E2 08 00 19 10 80 11 00 00 00 00 00 00 A3 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 19 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F4 [12:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:17:56]wFMCommunicate OK [12:17:56]CreateOFDProtocolMessage done [12:17:56]OFDSenderStorePacket 112248 [12:17:56]StoreOFDPacket docnum=112248 [12:17:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 9F 08 01 FE 59 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 73 C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B6 01 00 35 04 06 00 B4 A9 70 D2 D2 D8 E4 C5 13 EB 2D 9B 1D 06 [12:17:56]CheckFolder [12:17:56]dirname=/storage/ofd_packets [12:17:56]CheckFolder done [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00112248 [12:17:56]NVStorageSaveData ofd_packets/00112248 [12:17:56]File name is /storage/ofd_packets/00112248 [12:17:56]Write 302 bytes [12:17:56]NVStorageSaveData done [12:17:56]OFDSenderStorePacket done [12:17:56]KKMCreateOFDPacket done [12:17:56]NVStorageSaveData kkm_last_timestamp [12:17:56]File name is /storage/kkm_last_timestamp [12:17:56]Write 4 bytes [12:17:56]NVStorageSaveData done [12:17:56]ExternCall_PrintAddStr [12:17:56]wPrintStart [12:17:56]Write to MH i2c: 01 00 00 1A 10 2A [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 1A 10 00 00 00 00 00 FF 0F 3F [12:17:56]RasterBufferAndPrint [12:17:56]line Счет N : (1)48563 [12:17:56]line ИНН: 02508201610067 [12:17:56]line Контрольно-Кассовый Чек [12:17:56]line ПРОДАЖА [12:17:56]line ТРК (МРК, ГНК) : 41 [12:17:56]line Товар: 2710124130 [12:17:56]line SUPER 92-К-5 [12:17:56]line 30.630 * 65.30 [12:17:56]line = 2000.14 [12:17:56]line НДС 12% НСП 1% [12:17:56]line > о реализуемом товаре [12:17:56]line ИТОГО: 2000.14 [12:17:56]line НСП 1% : 17.70 [12:17:56]line НДС 12% : 212.40 [12:17:56]line Наличными: 0.00 [12:17:56]line Безнал.: 2000.14 [12:17:56]line Место: АЗС № 47 "Партнер Нефть" [12:17:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:17:56]line СНО: Общий режим [12:17:56]line Чек 147 14.04.2024 12:17 [12:17:56]line Смена: 357 ФФД: 1.0 [12:17:56]line ЗНМ: 0300000138 [12:17:56]line РНМ: 0000000000094237 [12:17:56]line Версия ККМ: 001 [12:17:56]line Платежная система: Бакай Банк [12:17:56]line ФМ: 0000000000875019 [12:17:56]line ФД: 112248 [12:17:56]line ФПД: 198639835337432 [12:17:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121755&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112248&fm=198639835337432&tin=02508201610067®Number=0000000000094237&sum=200014 [12:17:56]OFD Sender: Processing packet 112248 [packets to send 71, broken 70] [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00112248 [12:17:56]OFD Sender: To server: pG, [12:17:56]CommunicateWithHost lk.salyk.kg:30040 [12:17:56]ConnectInit lk.salyk.kg [12:17:56]written 0, free lines is 4095 [12:17:56]Connected sock=10 [12:17:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 9F 08 01 FE 59 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4E 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4E 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 73 C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B6 01 00 35 04 06 00 B4 A9 70 D2 D2 D8 E4 C5 13 EB 2D 9B 1D 06 [12:17:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EC 24 47 00 1E 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B6 01 00 F4 03 04 00 FE 70 1B 66 B6 04 01 00 00 FF D4 0F B6 84 09 42 1F [12:17:56]CommunicateWithHost err = 0 [12:17:56]CheckOFDResponse [12:17:56]1017 (14) - 77093643461234 [12:17:56]1041 (16) - 0000000000875019 [12:17:56]1040 (4) - 112248 [12:17:56]1012 (4) - 14.04.2024 06:00 [12:17:56]1206 (1) - 0 [12:17:56]OFD Sender: Remove packet 112248 [12:17:56]ProducePacketName [12:17:56]name=ofd_packets/00112248 [12:17:56]NVStorageDeleteData [12:17:56]Write to MH i2c: 01 00 00 44 10 54 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: 01 07 00 44 10 00 00 00 00 00 EF 0C 56 [12:17:56]RasterBufferAndPrint [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]line [12:17:56]written 0, free lines is 3318 [12:17:56]MH_Cut [12:17:56]Write to MH i2c: D1 01 00 4B 10 01 2D [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: D1 01 00 4B 10 00 2C [12:17:56]Write to MH i2c: 01 00 00 4C 10 5C [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:57]OFD Sender: No OFD packet to send [12:17:57]*** Cut start [12:17:57]*** Partial cut [12:17:57]*** CUTSNS_PIN = 1 [12:17:57]*** CUTSNS_PIN = 0 [12:17:57]*** Brake cut motor [12:17:58]Read from MH i2c: 01 [12:17:58]MH_I2C_Read... [12:17:58]*** Stop cut motor [12:17:58]*** Cut end [12:17:58]Read from MH i2c: 01 07 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: 01 07 00 4C 10 00 00 00 00 00 FF 0F 71 [12:17:58]process_action close_receipt done [12:17:58]requested_data is exist [12:17:58]produce_requested_data [12:17:58]requested_item fm.sn is exist - process it [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 11 00 00 [12:17:58]Write to MH i2c: E2 08 00 4D 10 80 11 00 00 00 00 00 00 D7 [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 17 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 17 00 4D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [12:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:17:58]wFMCommunicate OK [12:17:58]requested_item fd.num is exist - process it [12:17:58]SAM_PROTO_GetFieldsCounters [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 00 00 [12:17:58]Write to MH i2c: E2 08 00 4E 10 80 13 00 00 00 00 00 00 DA [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 62 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 62 00 4E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 78 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:17:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 78 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetFieldsCounters done [12:17:58]requested_item shift.num is exist - process it [12:17:58]requested_item shift.opened is exist - process it [12:17:58]req_shift_opened [12:17:58]FM_GetShiftState [12:17:58]SAM_PROTO_GetShiftState [12:17:58]wFMCommunicate request_size=4 [12:17:58]MH_SAM_APDU [12:17:58]CAPDU: 80 13 01 00 [12:17:58]Write to MH i2c: E2 08 00 4F 10 80 13 01 00 00 00 00 00 DC [12:17:58]Write i2c OK [12:17:58]MH_I2C_Read... [12:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:58]Read from MH i2c: E2 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 [12:17:58]MH_I2C_Read... [12:17:58]Read from MH i2c: E2 0E 00 4F 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [12:17:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:17:58]wFMCommunicate OK [12:17:58]SAM_PROTO_GetShiftState done [12:17:58]FM_GetShiftState done [12:17:58]req_shift_opened done [12:17:58]requested_item shift.open_date is exist - process it [12:17:58]req_shift_open_date [12:17:58]req_shift_open_date done [12:17:58]produce_requested_data done [12:17:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112248,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:17:58]process_action_free close_receipt [12:17:58]json_value_free [12:17:58]json_value_free done [12:17:58]process_json_proto returns [12:17:58]Send response to host [12:17:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112248,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:17:58]free response buf [12:17:58]execute_script done [12:17:58]execute_script returns [12:17:58]free content buf [12:17:58]Sock 9.Close socket [12:17:58]Sock 9.Thread stoped [12:18:01]accept exits with 7 [12:18:01]New connection [12:18:01]New thread 3067198820 created [12:18:01]Thread 3067342180 joined [12:18:01]Waiting for new connection... [12:18:01] Sock 7.Parse request [12:18:01]Sock 7.Check first char [12:18:01]Sock 7.First char is OK [12:18:01]request: POST /json_proto HTTP/1.0 [12:18:01]Method: POST [12:18:01]URL: /json_proto [12:18:01]Method is POST - this is cgi request [12:18:01]url: /json_proto [12:18:01]query_string will be loaded in cgi processing [12:18:01]execute_cgi json_proto POST (null) [12:18:01]execute_cgi path=json_proto method=POST [12:18:01]POST find Content-Length [12:18:01]Host: 172.17.96.197:8080 [12:18:01]Content-Length: 1081 [12:18:01]Content-Type: application/json [12:18:01] [12:18:01]POST finish read [12:18:01]Found Content-Length = 1081 [12:18:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10417", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:01]execute_script... [12:18:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10417", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 244.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:01]POST & json_proto [12:18:01]process_json_proto [12:18:01]json parsed OK: [12:18:01]protocol is kg_v1.0 [12:18:01]action value=close_receipt [12:18:01]process_action close_receipt [12:18:01]cmd_close_receipt [12:18:01]MH_GetDate [12:18:01]Write to MH i2c: F0 00 00 50 10 4F [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: F0 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: F0 09 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: F0 09 00 50 10 00 7A C9 1B 66 E0 85 7F 64 64 [12:18:01]GetLastDocTimeStamp 1713097075 [12:18:01]current date 1713097082 [12:18:01]FM_GetShiftState [12:18:01]SAM_PROTO_GetShiftState [12:18:01]wFMCommunicate request_size=4 [12:18:01]MH_SAM_APDU [12:18:01]CAPDU: 80 13 01 00 [12:18:01]Write to MH i2c: E2 08 00 51 10 80 13 01 00 00 00 00 00 DE [12:18:01]Write i2c OK [12:18:01]MH_I2C_Read... [12:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:01]Read from MH i2c: E2 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 [12:18:01]MH_I2C_Read... [12:18:01]Read from MH i2c: E2 0E 00 51 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [12:18:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:18:01]wFMCommunicate OK [12:18:01]SAM_PROTO_GetShiftState done [12:18:01]FM_GetShiftState done [12:18:01]opened in 1713054696 [12:18:01]opened+sec_in_day 1713141096 [12:18:01]quantity*price = 18500 [12:18:01]sum+1 = 18501 [12:18:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 244.00 НСП 1% : 2.16 НДС 12% : 25.91 Наличными: 0.00 Безнал.: 244.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 148 14.04.2024 12:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112249 ФПД: 17874759099934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121802&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112249&fm=17874759099934&tin=02508201610067®Number=0000000000094237&sum=24400 0 [12:18:02]StoreToDocumentArchive [12:18:02]shift 357 fd 112249 [12:18:02]save to /storage/0357/doc_00112249 [12:18:02]save last doc name /storage/0357/doc_00112249 to /storage/kkm_last_doc_name [12:18:02]save OK [12:18:02]Clear old archive folders... [12:18:02]ProcessDocumentItem done err = 0, tmpTLVsize=389 [12:18:02]tlvbuf is 01803FC0 [12:18:02]SAM_PROTO_ClearQueue [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 09 00 00 [12:18:02]Write to MH i2c: E2 08 00 5E 10 80 09 00 00 00 00 00 00 E0 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [12:18:02]RAPDU: 90 00 [12:18:02]wFMCommunicate OK [12:18:02]SAM_PROTO_ClearQueue done [12:18:02]KKMCreateOFDPacket [12:18:02]OFDProtocolAddRootSTLVToBuf [12:18:02]FM_MakeSignedData [12:18:02]FM_MakeSignedData [12:18:02]SAM_PROTO_SignData [12:18:02]wFMCommunicate request_size=4 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 0D 01 02 [12:18:02]Write to MH i2c: E2 08 00 5F 10 80 0D 01 02 00 00 00 00 E8 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [12:18:02]RAPDU: 90 00 [12:18:02]wFMCommunicate OK [12:18:02]wFMCommunicate request_size=255 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [12:18:02]Write to MH i2c: E2 02 01 60 10 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 89 [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:02]Read from MH i2c: E2 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 [12:18:02]MH_I2C_Read... [12:18:02]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [12:18:02]RAPDU: 90 00 [12:18:02]wFMCommunicate OK [12:18:02]wFMCommunicate request_size=148 [12:18:02]MH_SAM_APDU [12:18:02]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B6 01 00 35 04 06 00 10 41 CA AA A6 1E [12:18:02]Write to MH i2c: E2 97 00 61 10 80 0D 02 02 8F 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B6 01 00 35 04 06 00 10 41 CA AA A6 1E 00 00 5C [12:18:02]Write i2c OK [12:18:02]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [12:18:03]RAPDU: 90 00 [12:18:03]wFMCommunicate OK [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 0D 03 02 [12:18:03]Write to MH i2c: E2 08 00 62 10 80 0D 03 02 00 00 00 00 ED [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0B 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 0B 00 62 10 00 6B D3 E9 4B 11 87 87 1B 90 00 9A [12:18:03]RAPDU: 6B D3 E9 4B 11 87 87 1B 90 00 [12:18:03]wFMCommunicate OK [12:18:03]SAM_PROTO_SignData done [12:18:03]FM_MakeSignedData done [12:18:03]CreateOFDProtocolMessage [12:18:03]wFMCommunicate request_size=4 [12:18:03]MH_SAM_APDU [12:18:03]CAPDU: 80 11 00 00 [12:18:03]Write to MH i2c: E2 08 00 63 10 80 11 00 00 00 00 00 00 ED [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:03]Read from MH i2c: E2 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: E2 17 00 63 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [12:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:18:03]wFMCommunicate OK [12:18:03]CreateOFDProtocolMessage done [12:18:03]OFDSenderStorePacket 112249 [12:18:03]StoreOFDPacket docnum=112249 [12:18:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 99 01 00 00 B6 BB 91 01 CA 4F 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B6 01 00 35 04 06 00 10 41 CA AA A6 1E 6B D3 E9 4B 11 87 87 1B [12:18:03]CheckFolder [12:18:03]dirname=/storage/ofd_packets [12:18:03]CheckFolder done [12:18:03]ProducePacketName [12:18:03]name=ofd_packets/00112249 [12:18:03]NVStorageSaveData ofd_packets/00112249 [12:18:03]File name is /storage/ofd_packets/00112249 [12:18:03]Write 439 bytes [12:18:03]NVStorageSaveData done [12:18:03]OFDSenderStorePacket done [12:18:03]KKMCreateOFDPacket done [12:18:03]NVStorageSaveData kkm_last_timestamp [12:18:03]File name is /storage/kkm_last_timestamp [12:18:03]Write 4 bytes [12:18:03]NVStorageSaveData done [12:18:03]ExternCall_PrintAddStr [12:18:03]wPrintStart [12:18:03]Write to MH i2c: 01 00 00 64 10 74 [12:18:03]Write i2c OK [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 [12:18:03]MH_I2C_Read... [12:18:03]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 FF 0F 89 [12:18:03]RasterBufferAndPrint [12:18:03]line Счет N : (3)10417 [12:18:03]line ИНН: 02508201610067 [12:18:03]line Контрольно-Кассовый Чек [12:18:03]line ПРОДАЖА [12:18:03]line Товар: 90162602 [12:18:03]line Энерг напиток Red bull 0,25л [12:18:03]line 1.000 * 185.00 [12:18:03]line = 185.00 [12:18:03]line НДС 12% НСП 1% [12:18:03]line > о реализуемом товаре [12:18:03]line Товар: 4607065001445 [12:18:03]line Шок батончик Snickers 50,5г [12:18:03]line 1.000 * 59.00 [12:18:03]line = 59.00 [12:18:03]line НДС 12% НСП 1% [12:18:03]line > о реализуемом товаре [12:18:03]line ИТОГО: 244.00 [12:18:03]line НСП 1% : 2.16 [12:18:03]line НДС 12% : 25.91 [12:18:03]line Наличными: 0.00 [12:18:03]line Безнал.: 244.00 [12:18:03]line Место: АЗС № 47 "Партнер Нефть" [12:18:03]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:18:03]line СНО: Общий режим [12:18:03]line Чек 148 14.04.2024 12:18 [12:18:03]line Смена: 357 ФФД: 1.0 [12:18:03]line ЗНМ: 0300000138 [12:18:03]line РНМ: 0000000000094237 [12:18:03]line Версия ККМ: 001 [12:18:03]line Платежная система: Бакай Банк [12:18:03]line ФМ: 0000000000875019 [12:18:03]line ФД: 112249 [12:18:03]line ФПД: 17874759099934 [12:18:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121802&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112249&fm=17874759099934&tin=02508201610067®Number=0000000000094237&sum=24400 [12:18:03]line 0 [12:18:03]OFD Sender: Processing packet 112249 [packets to send 71, broken 70] [12:18:03]ProducePacketName [12:18:03]name=ofd_packets/00112249 [12:18:03]OFD Sender: To server: pG, [12:18:03]CommunicateWithHost lk.salyk.kg:30040 [12:18:03]ConnectInit lk.salyk.kg [12:18:03]written 0, free lines is 4095 [12:18:03]Connected sock=10 [12:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 99 01 00 00 B6 BB 91 01 CA 4F 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 5F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 5F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 7A C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B6 01 00 35 04 06 00 10 41 CA AA A6 1E 6B D3 E9 4B 11 87 87 1B [12:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1D AE 47 00 EE F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B6 01 00 F4 03 04 00 05 71 1B 66 B6 04 01 00 00 7B BD E6 34 27 41 97 44 [12:18:04]CommunicateWithHost err = 0 [12:18:04]CheckOFDResponse [12:18:04]1017 (14) - 77093643461234 [12:18:04]1041 (16) - 0000000000875019 [12:18:04]1040 (4) - 112249 [12:18:04]1012 (4) - 14.04.2024 06:00 [12:18:04]1206 (1) - 0 [12:18:04]OFD Sender: Remove packet 112249 [12:18:04]ProducePacketName [12:18:04]name=ofd_packets/00112249 [12:18:04]NVStorageDeleteData [12:18:04]Write to MH i2c: 01 00 00 94 10 A4 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: 01 07 00 94 10 00 00 00 00 00 9C 0C 53 [12:18:04]RasterBufferAndPrint [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]line [12:18:04]written 0, free lines is 3240 [12:18:04]MH_Cut [12:18:04]Write to MH i2c: D1 01 00 9B 10 01 7D [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 01 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: D1 01 00 9B 10 00 7C [12:18:04]Write to MH i2c: 01 00 00 9C 10 AC [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]OFD Sender: No OFD packet to send [12:18:04]*** Cut start [12:18:04]*** Partial cut [12:18:04]*** CUTSNS_PIN = 1 [12:18:04]*** CUTSNS_PIN = 0 [12:18:05]*** Brake cut motor [12:18:05]Read from MH i2c: 01 [12:18:05]MH_I2C_Read... [12:18:05]*** Stop cut motor [12:18:05]*** Cut end [12:18:05]Read from MH i2c: 01 07 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: 01 07 00 9C 10 00 00 00 00 00 FF 0F C1 [12:18:05]process_action close_receipt done [12:18:05]requested_data is exist [12:18:05]produce_requested_data [12:18:05]requested_item fm.sn is exist - process it [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 11 00 00 [12:18:05]Write to MH i2c: E2 08 00 9D 10 80 11 00 00 00 00 00 00 27 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 17 00 [12:18:05]MH_I2C_Read... [12:18: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 38 37 35 30 31 39 90 00 78 [12:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:18:05]wFMCommunicate OK [12:18:05]requested_item fd.num is exist - process it [12:18:05]SAM_PROTO_GetFieldsCounters [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 13 00 00 [12:18:05]Write to MH i2c: E2 08 00 9E 10 80 13 00 00 00 00 00 00 2A [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 62 00 [12:18:05]MH_I2C_Read... [12:18: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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 79 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:18:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 79 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:05]wFMCommunicate OK [12:18:05]SAM_PROTO_GetFieldsCounters done [12:18:05]requested_item shift.num is exist - process it [12:18:05]requested_item shift.opened is exist - process it [12:18:05]req_shift_opened [12:18:05]FM_GetShiftState [12:18:05]SAM_PROTO_GetShiftState [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 13 01 00 [12:18:05]Write to MH i2c: E2 08 00 9F 10 80 13 01 00 00 00 00 00 2C [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 0E 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 0E 00 9F 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [12:18:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:18:05]wFMCommunicate OK [12:18:05]SAM_PROTO_GetShiftState done [12:18:05]FM_GetShiftState done [12:18:05]req_shift_opened done [12:18:05]requested_item shift.open_date is exist - process it [12:18:05]req_shift_open_date [12:18:05]req_shift_open_date done [12:18:05]produce_requested_data done [12:18:05]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112249,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:18:05]process_action_free close_receipt [12:18:05]json_value_free [12:18:05]json_value_free done [12:18:05]process_json_proto returns [12:18:05]Send response to host [12:18:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112249,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:18:05]free response buf [12:18:05]execute_script done [12:18:05]execute_script returns [12:18:05]free content buf [12:18:05]Sock 7.Close socket [12:18:05]Sock 7.Thread stoped [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:40]accept exits with 9 [12:19:40]New connection [12:19:40]New thread 3067342180 created [12:19:40]Thread 3067198820 joined [12:19:40]Waiting for new connection... [12:19:40] Sock 9.Parse request [12:19:40]Sock 9.Check first char [12:19:40]Sock 9.First char is OK [12:19:40]request: POST /json_proto HTTP/1.0 [12:19:40]Method: POST [12:19:40]URL: /json_proto [12:19:40]Method is POST - this is cgi request [12:19:40]url: /json_proto [12:19:40]query_string will be loaded in cgi processing [12:19:40]execute_cgi json_proto POST (null) [12:19:40]execute_cgi path=json_proto method=POST [12:19:40]POST find Content-Length [12:19:40]Host: 172.17.96.197:8080 [12:19:40]Content-Length: 681 [12:19:40]Content-Type: application/json [12:19:40] [12:19:40]POST finish read [12:19:40]Found Content-Length = 681 [12:19:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:19:40]execute_script... [12:19: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)48564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:19:40]POST & json_proto [12:19:40]process_json_proto [12:19:40]json parsed OK: [12:19:40]protocol is kg_v1.0 [12:19:40]action value=close_receipt [12:19:40]process_action close_receipt [12:19:40]cmd_close_receipt [12:19:40]MH_GetDate [12:19:40]Write to MH i2c: F0 00 00 A0 10 9F [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 09 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: F0 09 00 A0 10 00 DC C9 1B 66 E0 85 7F 64 16 [12:19:40]GetLastDocTimeStamp 1713097082 [12:19:40]current date 1713097180 [12:19:40]FM_GetShiftState [12:19:40]SAM_PROTO_GetShiftState [12:19:40]wFMCommunicate request_size=4 [12:19:40]MH_SAM_APDU [12:19:40]CAPDU: 80 13 01 00 [12:19:40]Write to MH i2c: E2 08 00 A1 10 80 13 01 00 00 00 00 00 2E [12:19:40]Write i2c OK [12:19:40]MH_I2C_Read... [12:19:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:40]Read from MH i2c: E2 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0E 00 [12:19:40]MH_I2C_Read... [12:19:40]Read from MH i2c: E2 0E 00 A1 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C6 [12:19:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:19:40]wFMCommunicate OK [12:19:40]SAM_PROTO_GetShiftState done [12:19:40]FM_GetShiftState done [12:19:40]opened in 1713054696 [12:19:40]opened+sec_in_day 1713141096 [12:19:40]quantity*price = 100050 [12:19:40]sum+1 = 100052 [12:19:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 149 14.04.2024 12:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112250 ФПД: 168563962806524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121940&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112250&fm=168563962806524&tin=02508201610067®Number=0000000000094237&sum=100000 [12:19:41]StoreToDocumentArchive [12:19:41]shift 357 fd 112250 [12:19:41]save to /storage/0357/doc_00112250 [12:19:41]save last doc name /storage/0357/doc_00112250 to /storage/kkm_last_doc_name [12:19:41]save OK [12:19:41]Clear old archive folders... [12:19:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:19:41]tlvbuf is B6F39640 [12:19:41]SAM_PROTO_ClearQueue [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 09 00 00 [12:19:41]Write to MH i2c: E2 08 00 AE 10 80 09 00 00 00 00 00 00 30 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 AE 10 00 90 00 32 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]SAM_PROTO_ClearQueue done [12:19:41]KKMCreateOFDPacket [12:19:41]OFDProtocolAddRootSTLVToBuf [12:19:41]FM_MakeSignedData [12:19:41]FM_MakeSignedData [12:19:41]SAM_PROTO_SignData [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 01 02 [12:19:41]Write to MH i2c: E2 08 00 AF 10 80 0D 01 02 00 00 00 00 38 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 AF 10 00 90 00 33 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=255 [12:19:41]MH_SAM_APDU [12:19:41]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 3C 00 00 00 00 00 37 04 06 00 1E 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 95 00 00 00 F4 03 04 00 DC C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B6 01 00 35 04 06 00 99 [12:19:41]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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 95 00 00 00 F4 03 04 00 DC C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B6 01 00 35 04 06 00 99 00 00 30 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 B0 10 00 90 00 34 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=10 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 02 02 05 4E DB 20 00 FC [12:19:41]Write to MH i2c: E2 0D 00 B1 10 80 0D 02 02 05 00 4E DB 20 00 FC 00 00 8A [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 03 00 B1 10 00 90 00 35 [12:19:41]RAPDU: 90 00 [12:19:41]wFMCommunicate OK [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 0D 03 02 [12:19:41]Write to MH i2c: E2 08 00 B2 10 80 0D 03 02 00 00 00 00 3D [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0B 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 0B 00 B2 10 00 55 BA BA 46 A7 F1 87 0E 90 00 7A [12:19:41]RAPDU: 55 BA BA 46 A7 F1 87 0E 90 00 [12:19:41]wFMCommunicate OK [12:19:41]SAM_PROTO_SignData done [12:19:41]FM_MakeSignedData done [12:19:41]CreateOFDProtocolMessage [12:19:41]wFMCommunicate request_size=4 [12:19:41]MH_SAM_APDU [12:19:41]CAPDU: 80 11 00 00 [12:19:41]Write to MH i2c: E2 08 00 B3 10 80 11 00 00 00 00 00 00 3D [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:41]Read from MH i2c: E2 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: E2 17 00 B3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [12:19:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:19:41]wFMCommunicate OK [12:19:41]CreateOFDProtocolMessage done [12:19:41]OFDSenderStorePacket 112250 [12:19:41]StoreOFDPacket docnum=112250 [12:19:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CF DF 07 01 6D D4 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 3C 00 00 00 00 00 37 04 06 00 1E 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 95 00 00 00 F4 03 04 00 DC C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B6 01 00 35 04 06 00 99 4E DB 20 00 FC 55 BA BA 46 A7 F1 87 0E [12:19:41]CheckFolder [12:19:41]dirname=/storage/ofd_packets [12:19:41]CheckFolder done [12:19:41]ProducePacketName [12:19:41]name=ofd_packets/00112250 [12:19:41]NVStorageSaveData ofd_packets/00112250 [12:19:41]File name is /storage/ofd_packets/00112250 [12:19:41]Write 301 bytes [12:19:41]NVStorageSaveData done [12:19:41]OFDSenderStorePacket done [12:19:41]KKMCreateOFDPacket done [12:19:41]NVStorageSaveData kkm_last_timestamp [12:19:41]File name is /storage/kkm_last_timestamp [12:19:41]Write 4 bytes [12:19:41]NVStorageSaveData done [12:19:41]ExternCall_PrintAddStr [12:19:41]wPrintStart [12:19:41]Write to MH i2c: 01 00 00 B4 10 C4 [12:19:41]Write i2c OK [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 [12:19:41]MH_I2C_Read... [12:19:41]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 FF 0F D9 [12:19:41]RasterBufferAndPrint [12:19:41]line Счет N : (1)48564 [12:19:41]line ИНН: 02508201610067 [12:19:41]line Контрольно-Кассовый Чек [12:19:41]line ПРОДАЖА [12:19:41]line ТРК (МРК, ГНК) : 21 [12:19:41]line Товар: 2710124130 [12:19:41]line Аи-92-К-5 [12:19:41]line 15.560 * 64.30 [12:19:41]line = 1000.51 [12:19:41]line НДС 12% НСП 1% [12:19:41]line > о реализуемом товаре [12:19:41]line ОКРУГЛЕНИЕ: -0.51 [12:19:41]line ИТОГО: 1000.00 [12:19:41]line Внесено: 1000.00 [12:19:41]line СДАЧА: 0.00 [12:19:41]line НСП 1% : 8.85 [12:19:41]line НДС 12% : 106.25 [12:19:41]line Наличными: 1000.00 [12:19:41]line Безнал.: 0.00 [12:19:41]line Место: АЗС № 47 "Партнер Нефть" [12:19:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:19:41]line СНО: Общий режим [12:19:41]line Чек 149 14.04.2024 12:19 [12:19:41]line Смена: 357 ФФД: 1.0 [12:19:41]line ЗНМ: 0300000138 [12:19:41]line РНМ: 0000000000094237 [12:19:41]line Версия ККМ: 001 [12:19:41]line ФМ: 0000000000875019 [12:19:41]line ФД: 112250 [12:19:41]line ФПД: 168563962806524 [12:19:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T121940&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112250&fm=168563962806524&tin=02508201610067®Number=0000000000094237&sum=100000 [12:19:42]written 0, free lines is 4095 [12:19:42]OFD Sender: Processing packet 112250 [packets to send 71, broken 70] [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00112250 [12:19:42]OFD Sender: To server: pG, [12:19:42]CommunicateWithHost lk.salyk.kg:30040 [12:19:42]ConnectInit lk.salyk.kg [12:19:42]Connected sock=10 [12:19:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CF DF 07 01 6D D4 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 3C 00 00 00 00 00 37 04 06 00 1E 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 95 00 00 00 F4 03 04 00 DC C9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B6 01 00 35 04 06 00 99 4E DB 20 00 FC 55 BA BA 46 A7 F1 87 0E [12:19:42]Write to MH i2c: 01 00 00 DF 10 EF [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: 01 07 00 DF 10 00 00 00 00 00 D8 0C DA [12:19:42]RasterBufferAndPrint [12:19:42]line [12:19:42]line [12:19:42]line [12:19:42]line [12:19:42]line [12:19:42]written 0, free lines is 3293 [12:19:42]MH_Cut [12:19:42]Write to MH i2c: D1 01 00 E6 10 01 C8 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: D1 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: D1 01 00 [12:19:42]MH_I2C_Read... [12:19:42]Read from MH i2c: D1 01 00 E6 10 00 C7 [12:19:42]Write to MH i2c: 01 00 00 E7 10 F7 [12:19:42]Write i2c OK [12:19:42]MH_I2C_Read... [12:19:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 22 86 47 00 99 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B6 01 00 F4 03 04 00 68 71 1B 66 B6 04 01 00 00 DE B2 F2 5B 4B D2 44 51 [12:19:42]CommunicateWithHost err = 0 [12:19:42]CheckOFDResponse [12:19:42]1017 (14) - 77093643461234 [12:19:42]1041 (16) - 0000000000875019 [12:19:42]1040 (4) - 112250 [12:19:42]1012 (4) - 14.04.2024 06:02 [12:19:42]1206 (1) - 0 [12:19:42]OFD Sender: Remove packet 112250 [12:19:42]ProducePacketName [12:19:42]name=ofd_packets/00112250 [12:19:42]NVStorageDeleteData [12:19:43]OFD Sender: No OFD packet to send [12:19:43]*** Cut start [12:19:43]*** Partial cut [12:19:43]*** CUTSNS_PIN = 1 [12:19:43]*** CUTSNS_PIN = 0 [12:19:43]*** Brake cut motor [12:19:44]Read from MH i2c: 01 [12:19:44]MH_I2C_Read... [12:19:44]*** Stop cut motor [12:19:44]*** Cut end [12:19:44]Read from MH i2c: 01 07 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: 01 07 00 E7 10 00 00 00 00 00 FF 0F 0C [12:19:44]process_action close_receipt done [12:19:44]requested_data is exist [12:19:44]produce_requested_data [12:19:44]requested_item fm.sn is exist - process it [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 11 00 00 [12:19:44]Write to MH i2c: E2 08 00 E8 10 80 11 00 00 00 00 00 00 72 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 17 00 E8 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [12:19:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:19:44]wFMCommunicate OK [12:19:44]requested_item fd.num is exist - process it [12:19:44]SAM_PROTO_GetFieldsCounters [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 13 00 00 [12:19:44]Write to MH i2c: E2 08 00 E9 10 80 13 00 00 00 00 00 00 75 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 62 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 62 00 E9 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [12:19:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_GetFieldsCounters done [12:19:44]requested_item shift.num is exist - process it [12:19:44]requested_item shift.opened is exist - process it [12:19:44]req_shift_opened [12:19:44]FM_GetShiftState [12:19:44]SAM_PROTO_GetShiftState [12:19:44]wFMCommunicate request_size=4 [12:19:44]MH_SAM_APDU [12:19:44]CAPDU: 80 13 01 00 [12:19:44]Write to MH i2c: E2 08 00 EA 10 80 13 01 00 00 00 00 00 77 [12:19:44]Write i2c OK [12:19:44]MH_I2C_Read... [12:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:19:44]Read from MH i2c: E2 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 [12:19:44]MH_I2C_Read... [12:19:44]Read from MH i2c: E2 0E 00 EA 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [12:19:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:19:44]wFMCommunicate OK [12:19:44]SAM_PROTO_GetShiftState done [12:19:44]FM_GetShiftState done [12:19:44]req_shift_opened done [12:19:44]requested_item shift.open_date is exist - process it [12:19:44]req_shift_open_date [12:19:44]req_shift_open_date done [12:19:44]produce_requested_data done [12:19:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112250,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:19:44]process_action_free close_receipt [12:19:44]json_value_free [12:19:44]json_value_free done [12:19:44]process_json_proto returns [12:19:44]Send response to host [12:19:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112250,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:19:44]free response buf [12:19:44]execute_script done [12:19:44]execute_script returns [12:19:44]free content buf [12:19:44]Sock 9.Close socket [12:19:44]Sock 9.Thread stoped [12:19:48]OFD Sender: No OFD packet to send [12:19:53]OFD Sender: No OFD packet to send [12:19:58]OFD Sender: No OFD packet to send [12:20:03]OFD Sender: No OFD packet to send [12:20:08]OFD Sender: No OFD packet to send [12:20:13]OFD Sender: No OFD packet to send [12:20:18]OFD Sender: No OFD packet to send [12:20:23]OFD Sender: No OFD packet to send [12:20:28]OFD Sender: No OFD packet to send [12:20:33]OFD Sender: No OFD packet to send [12:20:38]OFD Sender: No OFD packet to send [12:20:43]OFD Sender: No OFD packet to send [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:24]accept exits with 7 [12:23:24]New connection [12:23:24]New thread 3067198820 created [12:23:24]Thread 3067342180 joined [12:23:24]Waiting for new connection... [12:23:24] Sock 7.Parse request [12:23:24]Sock 7.Check first char [12:23:24]Sock 7.First char is OK [12:23:24]request: POST /json_proto HTTP/1.0 [12:23:24]Method: POST [12:23:24]URL: /json_proto [12:23:24]Method is POST - this is cgi request [12:23:24]url: /json_proto [12:23:24]query_string will be loaded in cgi processing [12:23:24]execute_cgi json_proto POST (null) [12:23:24]execute_cgi path=json_proto method=POST [12:23:24]POST find Content-Length [12:23:24]Host: 172.17.96.197:8080 [12:23:24]Content-Length: 669 [12:23:24]Content-Type: application/json [12:23:24] [12:23:24]POST finish read [12:23:24]Found Content-Length = 669 [12:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48565", "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.30, "quantity" : 7.660, "sum" : 500.20, "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:24]execute_script... [12:23: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)48565", "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.30, "quantity" : 7.660, "sum" : 500.20, "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:24]POST & json_proto [12:23:24]process_json_proto [12:23:24]json parsed OK: [12:23:24]protocol is kg_v1.0 [12:23:24]action value=close_receipt [12:23:24]process_action close_receipt [12:23:24]cmd_close_receipt [12:23:24]MH_GetDate [12:23:24]Write to MH i2c: F0 00 00 EB 10 EA [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 09 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: F0 09 00 EB 10 00 BD CA 1B 66 E0 85 7F 64 43 [12:23:24]GetLastDocTimeStamp 1713097180 [12:23:24]current date 1713097405 [12:23:24]FM_GetShiftState [12:23:24]SAM_PROTO_GetShiftState [12:23:24]wFMCommunicate request_size=4 [12:23:24]MH_SAM_APDU [12:23:24]CAPDU: 80 13 01 00 [12:23:24]Write to MH i2c: E2 08 00 EC 10 80 13 01 00 00 00 00 00 79 [12:23:24]Write i2c OK [12:23:24]MH_I2C_Read... [12:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:24]Read from MH i2c: E2 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 [12:23:24]MH_I2C_Read... [12:23:24]Read from MH i2c: E2 0E 00 EC 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [12:23:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:23:24]wFMCommunicate OK [12:23:24]SAM_PROTO_GetShiftState done [12:23:24]FM_GetShiftState done [12:23:24]opened in 1713054696 [12:23:24]opened+sec_in_day 1713141096 [12:23:24]quantity*price = 50019 [12:23:24]sum+1 = 50021 [12:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 150 14.04.2024 12:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112251 ФПД: 188093594273109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122325&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112251&fm=188093594273109&tin=02508201610067®Number=0000000000094237&sum=50000 [12:23:25]StoreToDocumentArchive [12:23:25]shift 357 fd 112251 [12:23:25]save to /storage/0357/doc_00112251 [12:23:25]save last doc name /storage/0357/doc_00112251 to /storage/kkm_last_doc_name [12:23:25]save OK [12:23:25]Clear old archive folders... [12:23:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:23:25]tlvbuf is 0177DA70 [12:23:25]SAM_PROTO_ClearQueue [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 09 00 00 [12:23:25]Write to MH i2c: E2 08 00 F9 10 80 09 00 00 00 00 00 00 7B [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 F9 10 00 90 00 7D [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]SAM_PROTO_ClearQueue done [12:23:25]KKMCreateOFDPacket [12:23:25]OFDProtocolAddRootSTLVToBuf [12:23:25]FM_MakeSignedData [12:23:25]FM_MakeSignedData [12:23:25]SAM_PROTO_SignData [12:23:25]wFMCommunicate request_size=4 [12:23:25]MH_SAM_APDU [12:23:25]CAPDU: 80 0D 01 02 [12:23:25]Write to MH i2c: E2 08 00 FA 10 80 0D 01 02 00 00 00 00 83 [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:23:25]Read from MH i2c: E2 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 [12:23:25]MH_I2C_Read... [12:23:25]Read from MH i2c: E2 03 00 FA 10 00 90 00 7E [12:23:25]RAPDU: 90 00 [12:23:25]wFMCommunicate OK [12:23:25]wFMCommunicate request_size=255 [12:23:25]MH_SAM_APDU [12:23: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 96 00 00 00 F4 03 04 00 BD CA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B6 01 00 35 04 06 00 [12:23:25]Write to MH i2c: E2 02 01 FB 10 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 96 00 00 00 F4 03 04 00 BD CA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B6 01 00 35 04 06 00 00 00 DF [12:23:25]Write i2c OK [12:23:25]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 FB 10 00 90 00 7F [12:23:26]RAPDU: 90 00 [12:23:26]wFMCommunicate OK [12:23:26]wFMCommunicate request_size=11 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 0D 02 02 06 AB 11 F3 DF 05 55 [12:23:26]Write to MH i2c: E2 0E 00 FC 10 80 0D 02 02 06 00 AB 11 F3 DF 05 55 00 00 7A [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 03 00 FC 10 00 90 00 80 [12:23:26]RAPDU: 90 00 [12:23:26]wFMCommunicate OK [12:23:26]wFMCommunicate request_size=4 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 0D 03 02 [12:23:26]Write to MH i2c: E2 08 00 FD 10 80 0D 03 02 00 00 00 00 88 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0B 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 0B 00 FD 10 00 9E 8F 1B 7B 9B E7 15 49 90 00 2C [12:23:26]RAPDU: 9E 8F 1B 7B 9B E7 15 49 90 00 [12:23:26]wFMCommunicate OK [12:23:26]SAM_PROTO_SignData done [12:23:26]FM_MakeSignedData done [12:23:26]CreateOFDProtocolMessage [12:23:26]wFMCommunicate request_size=4 [12:23:26]MH_SAM_APDU [12:23:26]CAPDU: 80 11 00 00 [12:23:26]Write to MH i2c: E2 08 00 FE 10 80 11 00 00 00 00 00 00 88 [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:26]Read from MH i2c: E2 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 17 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: E2 17 00 FE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [12:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:23:26]wFMCommunicate OK [12:23:26]CreateOFDProtocolMessage done [12:23:26]OFDSenderStorePacket 112251 [12:23:26]StoreOFDPacket docnum=112251 [12:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8D FC 08 01 D5 18 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 96 00 00 00 F4 03 04 00 BD CA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B6 01 00 35 04 06 00 AB 11 F3 DF 05 55 9E 8F 1B 7B 9B E7 15 49 [12:23:26]CheckFolder [12:23:26]dirname=/storage/ofd_packets [12:23:26]CheckFolder done [12:23:26]ProducePacketName [12:23:26]name=ofd_packets/00112251 [12:23:26]NVStorageSaveData ofd_packets/00112251 [12:23:26]File name is /storage/ofd_packets/00112251 [12:23:26]Write 302 bytes [12:23:26]NVStorageSaveData done [12:23:26]OFDSenderStorePacket done [12:23:26]KKMCreateOFDPacket done [12:23:26]NVStorageSaveData kkm_last_timestamp [12:23:26]File name is /storage/kkm_last_timestamp [12:23:26]Write 4 bytes [12:23:26]NVStorageSaveData done [12:23:26]ExternCall_PrintAddStr [12:23:26]wPrintStart [12:23:26]Write to MH i2c: 01 00 00 FF 10 0F [12:23:26]Write i2c OK [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 [12:23:26]MH_I2C_Read... [12:23:26]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [12:23:26]RasterBufferAndPrint [12:23:26]line Счет N : (1)48565 [12:23:26]line ИНН: 02508201610067 [12:23:26]line Контрольно-Кассовый Чек [12:23:26]line ПРОДАЖА [12:23:26]line ТРК (МРК, ГНК) : 41 [12:23:26]line Товар: 2710124130 [12:23:26]line SUPER 92-К-5 [12:23:26]line 7.660 * 65.30 [12:23:26]line = 500.20 [12:23:26]line НДС 12% НСП 1% [12:23:26]line > о реализуемом товаре [12:23:26]line ОКРУГЛЕНИЕ: -0.20 [12:23:26]line ИТОГО: 500.00 [12:23:26]line Внесено: 500.00 [12:23:26]line СДАЧА: 0.00 [12:23:26]line НСП 1% : 4.43 [12:23:26]line НДС 12% : 53.12 [12:23:26]line Наличными: 500.00 [12:23:26]line Безнал.: 0.00 [12:23:26]line Место: АЗС № 47 "Партнер Нефть" [12:23:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:23:26]line СНО: Общий режим [12:23:26]line Чек 150 14.04.2024 12:23 [12:23:26]line Смена: 357 ФФД: 1.0 [12:23:26]line ЗНМ: 0300000138 [12:23:26]line РНМ: 0000000000094237 [12:23:26]line Версия ККМ: 001 [12:23:26]line ФМ: 0000000000875019 [12:23:26]line ФД: 112251 [12:23:26]line ФПД: 188093594273109 [12:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122325&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112251&fm=188093594273109&tin=02508201610067®Number=0000000000094237&sum=50000 [12:23:26]OFD Sender: Processing packet 112251 [packets to send 71, broken 70] [12:23:26]ProducePacketName [12:23:26]name=ofd_packets/00112251 [12:23:26]OFD Sender: To server: pG, [12:23:26]CommunicateWithHost lk.salyk.kg:30040 [12:23:26]ConnectInit lk.salyk.kg [12:23:26]written 0, free lines is 4095 [12:23:26]Connected sock=10 [12:23:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8D FC 08 01 D5 18 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 96 00 00 00 F4 03 04 00 BD CA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B6 01 00 35 04 06 00 AB 11 F3 DF 05 55 9E 8F 1B 7B 9B E7 15 49 [12:23:27]Write to MH i2c: 01 00 00 2A 11 3B [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 07 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: 01 07 00 2A 11 00 00 00 00 00 E4 0C 32 [12:23:27]RasterBufferAndPrint [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]line [12:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C3 EF 47 00 B1 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B6 01 00 F4 03 04 00 48 72 1B 66 B6 04 01 00 00 34 06 49 FB 79 CF 27 55 [12:23:27]CommunicateWithHost err = 0 [12:23:27]CheckOFDResponse [12:23:27]1017 (14) - 77093643461234 [12:23:27]1041 (16) - 0000000000875019 [12:23:27]1040 (4) - 112251 [12:23:27]1012 (4) - 14.04.2024 06:06 [12:23:27]1206 (1) - 0 [12:23:27]OFD Sender: Remove packet 112251 [12:23:27]ProducePacketName [12:23:27]name=ofd_packets/00112251 [12:23:27]NVStorageDeleteData [12:23:27]written 0, free lines is 3318 [12:23:27]MH_Cut [12:23:27]Write to MH i2c: D1 01 00 31 11 01 14 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 01 00 [12:23:27]MH_I2C_Read... [12:23:27]Read from MH i2c: D1 01 00 31 11 00 13 [12:23:27]Write to MH i2c: 01 00 00 32 11 43 [12:23:27]Write i2c OK [12:23:27]MH_I2C_Read... [12:23:27]OFD Sender: No OFD packet to send [12:23:27]*** Cut start [12:23:27]*** Partial cut [12:23:27]*** CUTSNS_PIN = 1 [12:23:27]*** CUTSNS_PIN = 0 [12:23:28]*** Brake cut motor [12:23:28]Read from MH i2c: 01 [12:23:28]MH_I2C_Read... [12:23:28]*** Stop cut motor [12:23:28]*** Cut end [12:23:28]Read from MH i2c: 01 07 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: 01 07 00 32 11 00 00 00 00 00 FF 0F 58 [12:23:28]process_action close_receipt done [12:23:28]requested_data is exist [12:23:28]produce_requested_data [12:23:28]requested_item fm.sn is exist - process it [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 11 00 00 [12:23:28]Write to MH i2c: E2 08 00 33 11 80 11 00 00 00 00 00 00 BE [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 17 00 33 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [12:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:23:28]wFMCommunicate OK [12:23:28]requested_item fd.num is exist - process it [12:23:28]SAM_PROTO_GetFieldsCounters [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 13 00 00 [12:23:28]Write to MH i2c: E2 08 00 34 11 80 13 00 00 00 00 00 00 C1 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 62 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 62 00 34 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [12:23:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_GetFieldsCounters done [12:23:28]requested_item shift.num is exist - process it [12:23:28]requested_item shift.opened is exist - process it [12:23:28]req_shift_opened [12:23:28]FM_GetShiftState [12:23:28]SAM_PROTO_GetShiftState [12:23:28]wFMCommunicate request_size=4 [12:23:28]MH_SAM_APDU [12:23:28]CAPDU: 80 13 01 00 [12:23:28]Write to MH i2c: E2 08 00 35 11 80 13 01 00 00 00 00 00 C3 [12:23:28]Write i2c OK [12:23:28]MH_I2C_Read... [12:23:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:23:28]Read from MH i2c: E2 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 [12:23:28]MH_I2C_Read... [12:23:28]Read from MH i2c: E2 0E 00 35 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5B [12:23:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:23:28]wFMCommunicate OK [12:23:28]SAM_PROTO_GetShiftState done [12:23:28]FM_GetShiftState done [12:23:28]req_shift_opened done [12:23:28]requested_item shift.open_date is exist - process it [12:23:28]req_shift_open_date [12:23:28]req_shift_open_date done [12:23:28]produce_requested_data done [12:23:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112251,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:23:28]process_action_free close_receipt [12:23:28]json_value_free [12:23:28]json_value_free done [12:23:28]process_json_proto returns [12:23:28]Send response to host [12:23:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112251,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:23:28]free response buf [12:23:28]execute_script done [12:23:28]execute_script returns [12:23:28]free content buf [12:23:28]Sock 7.Close socket [12:23:28]Sock 7.Thread stoped [12:23:32]OFD Sender: No OFD packet to send [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:36]accept exits with 9 [12:24:36]New connection [12:24:36]New thread 3067342180 created [12:24:36]Thread 3067198820 joined [12:24:36]Waiting for new connection... [12:24:36] Sock 9.Parse request [12:24:36]Sock 9.Check first char [12:24:36]Sock 9.First char is OK [12:24:36]request: POST /json_proto HTTP/1.0 [12:24:36]Method: POST [12:24:36]URL: /json_proto [12:24:36]Method is POST - this is cgi request [12:24:36]url: /json_proto [12:24:36]query_string will be loaded in cgi processing [12:24:36]execute_cgi json_proto POST (null) [12:24:36]execute_cgi path=json_proto method=POST [12:24:36]POST find Content-Length [12:24:36]Host: 172.17.96.197:8080 [12:24:36]Content-Length: 681 [12:24:36]Content-Type: application/json [12:24:36] [12:24:36]POST finish read [12:24:36]Found Content-Length = 681 [12:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:24:36]execute_script... [12:24: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)48566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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:24:36]POST & json_proto [12:24:36]process_json_proto [12:24:36]json parsed OK: [12:24:36]protocol is kg_v1.0 [12:24:36]action value=close_receipt [12:24:36]process_action close_receipt [12:24:36]cmd_close_receipt [12:24:36]MH_GetDate [12:24:36]Write to MH i2c: F0 00 00 36 11 36 [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 09 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: F0 09 00 36 11 00 04 CB 1B 66 E0 85 7F 64 D7 [12:24:36]GetLastDocTimeStamp 1713097405 [12:24:36]current date 1713097476 [12:24:36]FM_GetShiftState [12:24:36]SAM_PROTO_GetShiftState [12:24:36]wFMCommunicate request_size=4 [12:24:36]MH_SAM_APDU [12:24:36]CAPDU: 80 13 01 00 [12:24:36]Write to MH i2c: E2 08 00 37 11 80 13 01 00 00 00 00 00 C5 [12:24:36]Write i2c OK [12:24:36]MH_I2C_Read... [12:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:36]Read from MH i2c: E2 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 [12:24:36]MH_I2C_Read... [12:24:36]Read from MH i2c: E2 0E 00 37 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5D [12:24:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:24:36]wFMCommunicate OK [12:24:36]SAM_PROTO_GetShiftState done [12:24:36]FM_GetShiftState done [12:24:36]opened in 1713054696 [12:24:36]opened+sec_in_day 1713141096 [12:24:36]quantity*price = 100050 [12:24:36]sum+1 = 100052 [12:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 151 14.04.2024 12:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112252 ФПД: 264118190926533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122436&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112252&fm=264118190926533&tin=02508201610067®Number=0000000000094237&sum=100000 [12:24:37]StoreToDocumentArchive [12:24:37]shift 357 fd 112252 [12:24:37]save to /storage/0357/doc_00112252 [12:24:37]save last doc name /storage/0357/doc_00112252 to /storage/kkm_last_doc_name [12:24:37]save OK [12:24:37]Clear old archive folders... [12:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:37]tlvbuf is 017906D0 [12:24:37]SAM_PROTO_ClearQueue [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 09 00 00 [12:24:37]Write to MH i2c: E2 08 00 44 11 80 09 00 00 00 00 00 00 C7 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 44 11 00 90 00 C9 [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]SAM_PROTO_ClearQueue done [12:24:37]KKMCreateOFDPacket [12:24:37]OFDProtocolAddRootSTLVToBuf [12:24:37]FM_MakeSignedData [12:24:37]FM_MakeSignedData [12:24:37]SAM_PROTO_SignData [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 01 02 [12:24:37]Write to MH i2c: E2 08 00 45 11 80 0D 01 02 00 00 00 00 CF [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 45 11 00 90 00 CA [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=255 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 97 00 00 00 F4 03 04 00 04 CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B6 01 00 35 04 06 00 F0 [12:24:37]Write to MH i2c: E2 02 01 46 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 97 00 00 00 F4 03 04 00 04 CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B6 01 00 35 04 06 00 F0 00 00 4C [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 46 11 00 90 00 CB [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=10 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 02 02 05 36 CE F2 EA C5 [12:24:37]Write to MH i2c: E2 0D 00 47 11 80 0D 02 02 05 00 36 CE F2 EA C5 00 00 81 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 03 00 47 11 00 90 00 CC [12:24:37]RAPDU: 90 00 [12:24:37]wFMCommunicate OK [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 0D 03 02 [12:24:37]Write to MH i2c: E2 08 00 48 11 80 0D 03 02 00 00 00 00 D4 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 0B 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 0B 00 48 11 00 3B 7C CC D2 D3 80 A2 46 90 00 65 [12:24:37]RAPDU: 3B 7C CC D2 D3 80 A2 46 90 00 [12:24:37]wFMCommunicate OK [12:24:37]SAM_PROTO_SignData done [12:24:37]FM_MakeSignedData done [12:24:37]CreateOFDProtocolMessage [12:24:37]wFMCommunicate request_size=4 [12:24:37]MH_SAM_APDU [12:24:37]CAPDU: 80 11 00 00 [12:24:37]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:37]Read from MH i2c: E2 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 17 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [12:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:24:37]wFMCommunicate OK [12:24:37]CreateOFDProtocolMessage done [12:24:37]OFDSenderStorePacket 112252 [12:24:37]StoreOFDPacket docnum=112252 [12:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 89 BE 07 01 00 BA 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 3C 00 00 00 00 00 37 04 06 00 1E 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 97 00 00 00 F4 03 04 00 04 CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B6 01 00 35 04 06 00 F0 36 CE F2 EA C5 3B 7C CC D2 D3 80 A2 46 [12:24:37]CheckFolder [12:24:37]dirname=/storage/ofd_packets [12:24:37]CheckFolder done [12:24:37]ProducePacketName [12:24:37]name=ofd_packets/00112252 [12:24:37]NVStorageSaveData ofd_packets/00112252 [12:24:37]File name is /storage/ofd_packets/00112252 [12:24:37]Write 301 bytes [12:24:37]NVStorageSaveData done [12:24:37]OFDSenderStorePacket done [12:24:37]KKMCreateOFDPacket done [12:24:37]NVStorageSaveData kkm_last_timestamp [12:24:37]File name is /storage/kkm_last_timestamp [12:24:37]Write 4 bytes [12:24:37]NVStorageSaveData done [12:24:37]ExternCall_PrintAddStr [12:24:37]wPrintStart [12:24:37]Write to MH i2c: 01 00 00 4A 11 5B [12:24:37]Write i2c OK [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 07 00 [12:24:37]MH_I2C_Read... [12:24:37]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [12:24:37]RasterBufferAndPrint [12:24:37]line Счет N : (1)48566 [12:24:37]line ИНН: 02508201610067 [12:24:37]line Контрольно-Кассовый Чек [12:24:37]line ПРОДАЖА [12:24:37]line ТРК (МРК, ГНК) : 11 [12:24:37]line Товар: 2710124130 [12:24:37]line Аи-92-К-5 [12:24:37]line 15.560 * 64.30 [12:24:37]line = 1000.51 [12:24:37]line НДС 12% НСП 1% [12:24:37]line > о реализуемом товаре [12:24:37]line ОКРУГЛЕНИЕ: -0.51 [12:24:37]line ИТОГО: 1000.00 [12:24:37]line Внесено: 1000.00 [12:24:37]line СДАЧА: 0.00 [12:24:37]line НСП 1% : 8.85 [12:24:37]line НДС 12% : 106.25 [12:24:37]line Наличными: 1000.00 [12:24:37]line Безнал.: 0.00 [12:24:37]line Место: АЗС № 47 "Партнер Нефть" [12:24:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:24:37]line СНО: Общий режим [12:24:37]line Чек 151 14.04.2024 12:24 [12:24:37]line Смена: 357 ФФД: 1.0 [12:24:37]line ЗНМ: 0300000138 [12:24:37]line РНМ: 0000000000094237 [12:24:37]line Версия ККМ: 001 [12:24:37]line ФМ: 0000000000875019 [12:24:37]line ФД: 112252 [12:24:37]line ФПД: 264118190926533 [12:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122436&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112252&fm=264118190926533&tin=02508201610067®Number=0000000000094237&sum=100000 [12:24:38]OFD Sender: Processing packet 112252 [packets to send 71, broken 70] [12:24:38]ProducePacketName [12:24:38]name=ofd_packets/00112252 [12:24:38]OFD Sender: To server: pG, [12:24:38]CommunicateWithHost lk.salyk.kg:30040 [12:24:38]ConnectInit lk.salyk.kg [12:24:38]written 0, free lines is 4095 [12:24:38]Connected sock=10 [12:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 89 BE 07 01 00 BA 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 3C 00 00 00 00 00 37 04 06 00 1E 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 97 00 00 00 F4 03 04 00 04 CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B6 01 00 35 04 06 00 F0 36 CE F2 EA C5 3B 7C CC D2 D3 80 A2 46 [12:24:38]Write to MH i2c: 01 00 00 75 11 86 [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 07 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: 01 07 00 75 11 00 00 00 00 00 D8 0C 71 [12:24:38]RasterBufferAndPrint [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]line [12:24:38]written 0, free lines is 3296 [12:24:38]MH_Cut [12:24:38]Write to MH i2c: D1 01 00 7C 11 01 5F [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 01 00 [12:24:38]MH_I2C_Read... [12:24:38]Read from MH i2c: D1 01 00 7C 11 00 5E [12:24:38]Write to MH i2c: 01 00 00 7D 11 8E [12:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 48 0E 47 00 EC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B6 01 00 F4 03 04 00 90 72 1B 66 B6 04 01 00 00 91 08 6C 1A 75 04 D1 41 [12:24:38]CommunicateWithHost err = 0 [12:24:38]CheckOFDResponse [12:24:38]1017 (14) - 77093643461234 [12:24:38]1041 (16) - 0000000000875019 [12:24:38]1040 (4) - 112252 [12:24:38]1012 (4) - 14.04.2024 06:07 [12:24:38]1206 (1) - 0 [12:24:38]OFD Sender: Remove packet 112252 [12:24:38]ProducePacketName [12:24:38]name=ofd_packets/00112252 [12:24:38]NVStorageDeleteData [12:24:38]Write i2c OK [12:24:38]MH_I2C_Read... [12:24:39]OFD Sender: No OFD packet to send [12:24:39]*** Cut start [12:24:39]*** Partial cut [12:24:39]*** CUTSNS_PIN = 1 [12:24:39]*** CUTSNS_PIN = 0 [12:24:39]*** Brake cut motor [12:24:39]Read from MH i2c: 01 [12:24:39]MH_I2C_Read... [12:24:39]*** Stop cut motor [12:24:39]*** Cut end [12:24:39]Read from MH i2c: 01 07 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: 01 07 00 7D 11 00 00 00 00 00 FF 0F A3 [12:24:39]process_action close_receipt done [12:24:39]requested_data is exist [12:24:39]produce_requested_data [12:24:39]requested_item fm.sn is exist - process it [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 11 00 00 [12:24:39]Write to MH i2c: E2 08 00 7E 11 80 11 00 00 00 00 00 00 09 [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:39]Read from MH i2c: E2 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 17 00 [12:24:39]MH_I2C_Read... [12:24:39]Read from MH i2c: E2 17 00 7E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5A [12:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:24:39]wFMCommunicate OK [12:24:39]requested_item fd.num is exist - process it [12:24:39]SAM_PROTO_GetFieldsCounters [12:24:39]wFMCommunicate request_size=4 [12:24:39]MH_SAM_APDU [12:24:39]CAPDU: 80 13 00 00 [12:24:39]Write to MH i2c: E2 08 00 7F 11 80 13 00 00 00 00 00 00 0C [12:24:39]Write i2c OK [12:24:39]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 62 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 62 00 7F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_GetFieldsCounters done [12:24:40]requested_item shift.num is exist - process it [12:24:40]requested_item shift.opened is exist - process it [12:24:40]req_shift_opened [12:24:40]FM_GetShiftState [12:24:40]SAM_PROTO_GetShiftState [12:24:40]wFMCommunicate request_size=4 [12:24:40]MH_SAM_APDU [12:24:40]CAPDU: 80 13 01 00 [12:24:40]Write to MH i2c: E2 08 00 80 11 80 13 01 00 00 00 00 00 0E [12:24:40]Write i2c OK [12:24:40]MH_I2C_Read... [12:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:40]Read from MH i2c: E2 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 [12:24:40]MH_I2C_Read... [12:24:40]Read from MH i2c: E2 0E 00 80 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A6 [12:24:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:24:40]wFMCommunicate OK [12:24:40]SAM_PROTO_GetShiftState done [12:24:40]FM_GetShiftState done [12:24:40]req_shift_opened done [12:24:40]requested_item shift.open_date is exist - process it [12:24:40]req_shift_open_date [12:24:40]req_shift_open_date done [12:24:40]produce_requested_data done [12:24:40]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112252,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:24:40]process_action_free close_receipt [12:24:40]json_value_free [12:24:40]json_value_free done [12:24:40]process_json_proto returns [12:24:40]Send response to host [12:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112252,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:24:40]free response buf [12:24:40]execute_script done [12:24:40]execute_script returns [12:24:40]free content buf [12:24:40]Sock 9.Close socket [12:24:40]Sock 9.Thread stoped [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]accept exits with 7 [12:28:44]New connection [12:28:44]New thread 3067198820 created [12:28:44]Thread 3067342180 joined [12:28:44]Waiting for new connection... [12:28:44] Sock 7.Parse request [12:28:44]Sock 7.Check first char [12:28:44]Sock 7.First char is OK [12:28:44]request: POST /json_proto HTTP/1.0 [12:28:44]Method: POST [12:28:44]URL: /json_proto [12:28:44]Method is POST - this is cgi request [12:28:44]url: /json_proto [12:28:44]query_string will be loaded in cgi processing [12:28:44]execute_cgi json_proto POST (null) [12:28:44]execute_cgi path=json_proto method=POST [12:28:44]POST find Content-Length [12:28:44]Host: 172.17.96.197:8080 [12:28:44]Content-Length: 669 [12:28:44]Content-Type: application/json [12:28:44] [12:28:44]POST finish read [12:28:44]Found Content-Length = 669 [12:28:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48567", "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.30, "quantity" : 4.600, "sum" : 300.38, "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:28:44]execute_script... [12:28:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48567", "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.30, "quantity" : 4.600, "sum" : 300.38, "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:28:44]POST & json_proto [12:28:44]process_json_proto [12:28:44]json parsed OK: [12:28:44]protocol is kg_v1.0 [12:28:44]action value=close_receipt [12:28:44]process_action close_receipt [12:28:44]cmd_close_receipt [12:28:44]MH_GetDate [12:28:44]Write to MH i2c: F0 00 00 81 11 81 [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: F0 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: F0 09 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: F0 09 00 81 11 00 FD CB 1B 66 E0 85 7F 64 1B [12:28:44]GetLastDocTimeStamp 1713097476 [12:28:44]current date 1713097725 [12:28:44]FM_GetShiftState [12:28:44]SAM_PROTO_GetShiftState [12:28:44]wFMCommunicate request_size=4 [12:28:44]MH_SAM_APDU [12:28:44]CAPDU: 80 13 01 00 [12:28:44]Write to MH i2c: E2 08 00 82 11 80 13 01 00 00 00 00 00 10 [12:28:44]Write i2c OK [12:28:44]MH_I2C_Read... [12:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:44]Read from MH i2c: E2 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 0E 00 [12:28:44]MH_I2C_Read... [12:28:44]Read from MH i2c: E2 0E 00 82 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A8 [12:28:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:28:44]wFMCommunicate OK [12:28:44]SAM_PROTO_GetShiftState done [12:28:44]FM_GetShiftState done [12:28:44]opened in 1713054696 [12:28:44]opened+sec_in_day 1713141096 [12:28:44]quantity*price = 30038 [12:28:44]sum+1 = 30039 [12:28:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 152 14.04.2024 12:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112253 ФПД: 246700100171492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122845&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112253&fm=246700100171492&tin=02508201610067®Number=0000000000094237&sum=30000 [12:28:45]StoreToDocumentArchive [12:28:45]shift 357 fd 112253 [12:28:45]save to /storage/0357/doc_00112253 [12:28:45]save last doc name /storage/0357/doc_00112253 to /storage/kkm_last_doc_name [12:28:45]save OK [12:28:45]Clear old archive folders... [12:28:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:28:45]tlvbuf is 01779840 [12:28:45]SAM_PROTO_ClearQueue [12:28:45]wFMCommunicate request_size=4 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 09 00 00 [12:28:45]Write to MH i2c: E2 08 00 8F 11 80 09 00 00 00 00 00 00 12 [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 8F 11 00 90 00 14 [12:28:45]RAPDU: 90 00 [12:28:45]wFMCommunicate OK [12:28:45]SAM_PROTO_ClearQueue done [12:28:45]KKMCreateOFDPacket [12:28:45]OFDProtocolAddRootSTLVToBuf [12:28:45]FM_MakeSignedData [12:28:45]FM_MakeSignedData [12:28:45]SAM_PROTO_SignData [12:28:45]wFMCommunicate request_size=4 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 0D 01 02 [12:28:45]Write to MH i2c: E2 08 00 90 11 80 0D 01 02 00 00 00 00 1A [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 90 11 00 90 00 15 [12:28:45]RAPDU: 90 00 [12:28:45]wFMCommunicate OK [12:28:45]wFMCommunicate request_size=255 [12:28:45]MH_SAM_APDU [12:28:45]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FD CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B6 01 00 35 04 06 00 [12:28:45]Write to MH i2c: E2 02 01 91 11 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FD CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B6 01 00 35 04 06 00 00 00 80 [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 91 11 00 90 00 16 [12:28:45]RAPDU: 90 00 [12:28:45]wFMCommunicate OK [12:28:45]wFMCommunicate request_size=11 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 0D 02 02 06 E0 5F 57 D6 36 E4 [12:28:45]Write to MH i2c: E2 0E 00 92 11 80 0D 02 02 06 00 E0 5F 57 D6 36 E4 00 00 AF [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 03 00 92 11 00 90 00 17 [12:28:45]RAPDU: 90 00 [12:28:45]wFMCommunicate OK [12:28:45]wFMCommunicate request_size=4 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 0D 03 02 [12:28:45]Write to MH i2c: E2 08 00 93 11 80 0D 03 02 00 00 00 00 1F [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 0B 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 0B 00 93 11 00 D0 2E 98 53 DF 31 30 26 90 00 6F [12:28:45]RAPDU: D0 2E 98 53 DF 31 30 26 90 00 [12:28:45]wFMCommunicate OK [12:28:45]SAM_PROTO_SignData done [12:28:45]FM_MakeSignedData done [12:28:45]CreateOFDProtocolMessage [12:28:45]wFMCommunicate request_size=4 [12:28:45]MH_SAM_APDU [12:28:45]CAPDU: 80 11 00 00 [12:28:45]Write to MH i2c: E2 08 00 94 11 80 11 00 00 00 00 00 00 1F [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:45]Read from MH i2c: E2 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 17 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: E2 17 00 94 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 70 [12:28:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:28:45]wFMCommunicate OK [12:28:45]CreateOFDProtocolMessage done [12:28:45]OFDSenderStorePacket 112253 [12:28:45]StoreOFDPacket docnum=112253 [12:28:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 79 B0 08 01 95 48 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FD CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B6 01 00 35 04 06 00 E0 5F 57 D6 36 E4 D0 2E 98 53 DF 31 30 26 [12:28:45]CheckFolder [12:28:45]dirname=/storage/ofd_packets [12:28:45]CheckFolder done [12:28:45]ProducePacketName [12:28:45]name=ofd_packets/00112253 [12:28:45]NVStorageSaveData ofd_packets/00112253 [12:28:45]File name is /storage/ofd_packets/00112253 [12:28:45]Write 302 bytes [12:28:45]NVStorageSaveData done [12:28:45]OFDSenderStorePacket done [12:28:45]KKMCreateOFDPacket done [12:28:45]NVStorageSaveData kkm_last_timestamp [12:28:45]File name is /storage/kkm_last_timestamp [12:28:45]Write 4 bytes [12:28:45]NVStorageSaveData done [12:28:45]ExternCall_PrintAddStr [12:28:45]wPrintStart [12:28:45]Write to MH i2c: 01 00 00 95 11 A6 [12:28:45]Write i2c OK [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: 01 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: 01 07 00 [12:28:45]MH_I2C_Read... [12:28:45]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [12:28:45]RasterBufferAndPrint [12:28:45]line Счет N : (1)48567 [12:28:45]line ИНН: 02508201610067 [12:28:45]line Контрольно-Кассовый Чек [12:28:45]line ПРОДАЖА [12:28:45]line ТРК (МРК, ГНК) : 41 [12:28:45]line Товар: 2710124130 [12:28:45]line SUPER 92-К-5 [12:28:45]line 4.600 * 65.30 [12:28:45]line = 300.38 [12:28:45]line НДС 12% НСП 1% [12:28:45]line > о реализуемом товаре [12:28:45]line ОКРУГЛЕНИЕ: -0.38 [12:28:45]line ИТОГО: 300.00 [12:28:45]line Внесено: 300.00 [12:28:45]line СДАЧА: 0.00 [12:28:45]line НСП 1% : 2.66 [12:28:45]line НДС 12% : 31.90 [12:28:45]line Наличными: 300.00 [12:28:45]line Безнал.: 0.00 [12:28:45]line Место: АЗС № 47 "Партнер Нефть" [12:28:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:28:45]line СНО: Общий режим [12:28:45]line Чек 152 14.04.2024 12:28 [12:28:45]line Смена: 357 ФФД: 1.0 [12:28:45]line ЗНМ: 0300000138 [12:28:45]line РНМ: 0000000000094237 [12:28:45]line Версия ККМ: 001 [12:28:45]line ФМ: 0000000000875019 [12:28:45]line ФД: 112253 [12:28:45]line ФПД: 246700100171492 [12:28:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T122845&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112253&fm=246700100171492&tin=02508201610067®Number=0000000000094237&sum=30000 [12:28:46]OFD Sender: Processing packet 112253 [packets to send 71, broken 70] [12:28:46]ProducePacketName [12:28:46]name=ofd_packets/00112253 [12:28:46]OFD Sender: To server: pG, [12:28:46]CommunicateWithHost lk.salyk.kg:30040 [12:28:46]ConnectInit lk.salyk.kg [12:28:46]written 0, free lines is 4095 [12:28:46]Connected sock=10 [12:28:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 79 B0 08 01 95 48 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 FD CB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B6 01 00 35 04 06 00 E0 5F 57 D6 36 E4 D0 2E 98 53 DF 31 30 26 [12:28:46]Write to MH i2c: 01 00 00 C0 11 D1 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: 01 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: 01 07 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: 01 07 00 C0 11 00 00 00 00 00 D4 0C B8 [12:28:46]RasterBufferAndPrint [12:28:46]line [12:28:46]line [12:28:46]line [12:28:46]line [12:28:46]line [12:28:46]written 0, free lines is 3292 [12:28:46]MH_Cut [12:28:46]Write to MH i2c: D1 01 00 C7 11 01 AA [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: D1 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: D1 01 00 [12:28:46]MH_I2C_Read... [12:28:46]Read from MH i2c: D1 01 00 C7 11 00 A9 [12:28:46]Write to MH i2c: 01 00 00 C8 11 D9 [12:28:46]Write i2c OK [12:28:46]MH_I2C_Read... [12:28:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FE 77 47 00 0B 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B6 01 00 F4 03 04 00 88 73 1B 66 B6 04 01 00 00 74 BA 52 01 23 18 8F 2B [12:28:46]CommunicateWithHost err = 0 [12:28:46]CheckOFDResponse [12:28:46]1017 (14) - 77093643461234 [12:28:46]1041 (16) - 0000000000875019 [12:28:46]1040 (4) - 112253 [12:28:46]1012 (4) - 14.04.2024 06:11 [12:28:46]1206 (1) - 0 [12:28:46]OFD Sender: Remove packet 112253 [12:28:46]ProducePacketName [12:28:46]name=ofd_packets/00112253 [12:28:46]NVStorageDeleteData [12:28:47]OFD Sender: No OFD packet to send [12:28:47]*** Cut start [12:28:47]*** Partial cut [12:28:47]*** CUTSNS_PIN = 1 [12:28:47]*** CUTSNS_PIN = 0 [12:28:47]*** Brake cut motor [12:28:48]Read from MH i2c: 01 [12:28:48]MH_I2C_Read... [12:28:48]*** Stop cut motor [12:28:48]*** Cut end [12:28:48]Read from MH i2c: 01 07 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: 01 07 00 C8 11 00 00 00 00 00 FF 0F EE [12:28:48]process_action close_receipt done [12:28:48]requested_data is exist [12:28:48]produce_requested_data [12:28:48]requested_item fm.sn is exist - process it [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 11 00 00 [12:28:48]Write to MH i2c: E2 08 00 C9 11 80 11 00 00 00 00 00 00 54 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 17 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 17 00 C9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A5 [12:28:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:28:48]wFMCommunicate OK [12:28:48]requested_item fd.num is exist - process it [12:28:48]SAM_PROTO_GetFieldsCounters [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 13 00 00 [12:28:48]Write to MH i2c: E2 08 00 CA 11 80 13 00 00 00 00 00 00 57 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 62 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 62 00 CA 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [12:28:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_GetFieldsCounters done [12:28:48]requested_item shift.num is exist - process it [12:28:48]requested_item shift.opened is exist - process it [12:28:48]req_shift_opened [12:28:48]FM_GetShiftState [12:28:48]SAM_PROTO_GetShiftState [12:28:48]wFMCommunicate request_size=4 [12:28:48]MH_SAM_APDU [12:28:48]CAPDU: 80 13 01 00 [12:28:48]Write to MH i2c: E2 08 00 CB 11 80 13 01 00 00 00 00 00 59 [12:28:48]Write i2c OK [12:28:48]MH_I2C_Read... [12:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:48]Read from MH i2c: E2 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 [12:28:48]MH_I2C_Read... [12:28:48]Read from MH i2c: E2 0E 00 CB 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F1 [12:28:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:28:48]wFMCommunicate OK [12:28:48]SAM_PROTO_GetShiftState done [12:28:48]FM_GetShiftState done [12:28:48]req_shift_opened done [12:28:48]requested_item shift.open_date is exist - process it [12:28:48]req_shift_open_date [12:28:48]req_shift_open_date done [12:28:48]produce_requested_data done [12:28:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112253,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:28:48]process_action_free close_receipt [12:28:48]json_value_free [12:28:48]json_value_free done [12:28:48]process_json_proto returns [12:28:48]Send response to host [12:28:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112253,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:28:48]free response buf [12:28:48]execute_script done [12:28:48]execute_script returns [12:28:48]free content buf [12:28:48]Sock 7.Close socket [12:28:48]Sock 7.Thread stoped [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:12]OFD Sender: No OFD packet to send [12:38:14]accept exits with 9 [12:38:14]New connection [12:38:14]New thread 3067342180 created [12:38:14]Thread 3067198820 joined [12:38:14]Waiting for new connection... [12:38:14] Sock 9.Parse request [12:38:14]Sock 9.Check first char [12:38:14]Sock 9.First char is OK [12:38:14]request: POST /json_proto HTTP/1.0 [12:38:14]Method: POST [12:38:14]URL: /json_proto [12:38:14]Method is POST - this is cgi request [12:38:14]url: /json_proto [12:38:14]query_string will be loaded in cgi processing [12:38:14]execute_cgi json_proto POST (null) [12:38:14]execute_cgi path=json_proto method=POST [12:38:14]POST find Content-Length [12:38:14]Host: 172.17.96.197:8080 [12:38:14]Content-Length: 676 [12:38:14]Content-Type: application/json [12:38:14] [12:38:14]POST finish read [12:38:14]Found Content-Length = 676 [12:38:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:38:14]execute_script... [12:38: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)48569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:38:14]POST & json_proto [12:38:14]process_json_proto [12:38:14]json parsed OK: [12:38:14]protocol is kg_v1.0 [12:38:14]action value=close_receipt [12:38:14]process_action close_receipt [12:38:14]cmd_close_receipt [12:38:14]MH_GetDate [12:38:14]Write to MH i2c: F0 00 00 CC 11 CC [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 09 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: F0 09 00 CC 11 00 37 CE 1B 66 E0 85 7F 64 A3 [12:38:14]GetLastDocTimeStamp 1713097725 [12:38:14]current date 1713098295 [12:38:14]FM_GetShiftState [12:38:14]SAM_PROTO_GetShiftState [12:38:14]wFMCommunicate request_size=4 [12:38:14]MH_SAM_APDU [12:38:14]CAPDU: 80 13 01 00 [12:38:14]Write to MH i2c: E2 08 00 CD 11 80 13 01 00 00 00 00 00 5B [12:38:14]Write i2c OK [12:38:14]MH_I2C_Read... [12:38:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:14]Read from MH i2c: E2 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: E2 0E 00 [12:38:14]MH_I2C_Read... [12:38:14]Read from MH i2c: E2 0E 00 CD 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F3 [12:38:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:38:14]wFMCommunicate OK [12:38:14]SAM_PROTO_GetShiftState done [12:38:14]FM_GetShiftState done [12:38:14]opened in 1713054696 [12:38:14]opened+sec_in_day 1713141096 [12:38:14]quantity*price = 50025 [12:38:14]sum+1 = 50026 [12:38:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 153 14.04.2024 12:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112254 ФПД: 239691677409051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T123815&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112254&fm=239691677409051&tin=02508201610067®Number=0000000000094237&sum=50000 [12:38:16]StoreToDocumentArchive [12:38:16]shift 357 fd 112254 [12:38:16]save to /storage/0357/doc_00112254 [12:38:16]save last doc name /storage/0357/doc_00112254 to /storage/kkm_last_doc_name [12:38:16]save OK [12:38:16]Clear old archive folders... [12:38:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:16]tlvbuf is 01779870 [12:38:16]SAM_PROTO_ClearQueue [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 09 00 00 [12:38:16]Write to MH i2c: E2 08 00 DA 11 80 09 00 00 00 00 00 00 5D [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:16]Read from MH i2c: E2 03 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 DA 11 00 90 00 5F [12:38:16]RAPDU: 90 00 [12:38:16]wFMCommunicate OK [12:38:16]SAM_PROTO_ClearQueue done [12:38:16]KKMCreateOFDPacket [12:38:16]OFDProtocolAddRootSTLVToBuf [12:38:16]FM_MakeSignedData [12:38:16]FM_MakeSignedData [12:38:16]SAM_PROTO_SignData [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 0D 01 02 [12:38:16]Write to MH i2c: E2 08 00 DB 11 80 0D 01 02 00 00 00 00 65 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 DB 11 00 90 00 60 [12:38:16]RAPDU: 90 00 [12:38:16]wFMCommunicate OK [12:38:16]wFMCommunicate request_size=255 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 99 00 00 00 F4 03 04 00 37 CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B6 01 00 35 04 06 00 D9 [12:38:16]Write to MH i2c: E2 02 01 DC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 99 00 00 00 F4 03 04 00 37 CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B6 01 00 35 04 06 00 D9 00 00 9B [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 DC 11 00 90 00 61 [12:38:16]RAPDU: 90 00 [12:38:16]wFMCommunicate OK [12:38:16]wFMCommunicate request_size=10 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 0D 02 02 05 FF 91 49 9F 1B [12:38:16]Write to MH i2c: E2 0D 00 DD 11 80 0D 02 02 05 00 FF 91 49 9F 1B 00 00 05 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 03 00 DD 11 00 90 00 62 [12:38:16]RAPDU: 90 00 [12:38:16]wFMCommunicate OK [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 0D 03 02 [12:38:16]Write to MH i2c: E2 08 00 DE 11 80 0D 03 02 00 00 00 00 6A [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 0B 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 0B 00 DE 11 00 8D B0 FA 97 EA 60 9F 6A 90 00 8C [12:38:16]RAPDU: 8D B0 FA 97 EA 60 9F 6A 90 00 [12:38:16]wFMCommunicate OK [12:38:16]SAM_PROTO_SignData done [12:38:16]FM_MakeSignedData done [12:38:16]CreateOFDProtocolMessage [12:38:16]wFMCommunicate request_size=4 [12:38:16]MH_SAM_APDU [12:38:16]CAPDU: 80 11 00 00 [12:38:16]Write to MH i2c: E2 08 00 DF 11 80 11 00 00 00 00 00 00 6A [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:16]Read from MH i2c: E2 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 17 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: E2 17 00 DF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BB [12:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:38:16]wFMCommunicate OK [12:38:16]CreateOFDProtocolMessage done [12:38:16]OFDSenderStorePacket 112254 [12:38:16]StoreOFDPacket docnum=112254 [12:38:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 44 A8 07 01 74 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 99 00 00 00 F4 03 04 00 37 CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B6 01 00 35 04 06 00 D9 FF 91 49 9F 1B 8D B0 FA 97 EA 60 9F 6A [12:38:16]CheckFolder [12:38:16]dirname=/storage/ofd_packets [12:38:16]CheckFolder done [12:38:16]ProducePacketName [12:38:16]name=ofd_packets/00112254 [12:38:16]NVStorageSaveData ofd_packets/00112254 [12:38:16]File name is /storage/ofd_packets/00112254 [12:38:16]Write 301 bytes [12:38:16]NVStorageSaveData done [12:38:16]OFDSenderStorePacket done [12:38:16]KKMCreateOFDPacket done [12:38:16]NVStorageSaveData kkm_last_timestamp [12:38:16]File name is /storage/kkm_last_timestamp [12:38:16]Write 4 bytes [12:38:16]NVStorageSaveData done [12:38:16]ExternCall_PrintAddStr [12:38:16]wPrintStart [12:38:16]Write to MH i2c: 01 00 00 E0 11 F1 [12:38:16]Write i2c OK [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 07 00 [12:38:16]MH_I2C_Read... [12:38:16]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [12:38:16]RasterBufferAndPrint [12:38:16]line Счет N : (1)48569 [12:38:16]line ИНН: 02508201610067 [12:38:16]line Контрольно-Кассовый Чек [12:38:16]line ПРОДАЖА [12:38:16]line ТРК (МРК, ГНК) : 21 [12:38:16]line Товар: 2710124130 [12:38:16]line Аи-92-К-5 [12:38:16]line 7.780 * 64.30 [12:38:16]line = 500.25 [12:38:16]line НДС 12% НСП 1% [12:38:16]line > о реализуемом товаре [12:38:16]line ОКРУГЛЕНИЕ: -0.25 [12:38:16]line ИТОГО: 500.00 [12:38:16]line Внесено: 500.00 [12:38:16]line СДАЧА: 0.00 [12:38:16]line НСП 1% : 4.43 [12:38:16]line НДС 12% : 53.12 [12:38:16]line Наличными: 500.00 [12:38:16]line Безнал.: 0.00 [12:38:16]line Место: АЗС № 47 "Партнер Нефть" [12:38:16]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:38:16]line СНО: Общий режим [12:38:16]line Чек 153 14.04.2024 12:38 [12:38:16]line Смена: 357 ФФД: 1.0 [12:38:16]line ЗНМ: 0300000138 [12:38:16]line РНМ: 0000000000094237 [12:38:16]line Версия ККМ: 001 [12:38:16]line ФМ: 0000000000875019 [12:38:16]line ФД: 112254 [12:38:16]line ФПД: 239691677409051 [12:38:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T123815&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112254&fm=239691677409051&tin=02508201610067®Number=0000000000094237&sum=50000 [12:38:16]OFD Sender: Processing packet 112254 [packets to send 71, broken 70] [12:38:16]ProducePacketName [12:38:16]name=ofd_packets/00112254 [12:38:16]OFD Sender: To server: pG, [12:38:16]CommunicateWithHost lk.salyk.kg:30040 [12:38:16]ConnectInit lk.salyk.kg [12:38:16]written 0, free lines is 4095 [12:38:17]Connected sock=10 [12:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 44 A8 07 01 74 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 99 00 00 00 F4 03 04 00 37 CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B6 01 00 35 04 06 00 D9 FF 91 49 9F 1B 8D B0 FA 97 EA 60 9F 6A [12:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 68 72 47 00 81 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B6 01 00 F4 03 04 00 C3 75 1B 66 B6 04 01 00 00 DF 70 83 0B A3 D3 E4 78 [12:38:17]CommunicateWithHost err = 0 [12:38:17]CheckOFDResponse [12:38:17]1017 (14) - 77093643461234 [12:38:17]1041 (16) - 0000000000875019 [12:38:17]1040 (4) - 112254 [12:38:17]1012 (4) - 14.04.2024 06:20 [12:38:17]1206 (1) - 0 [12:38:17]OFD Sender: Remove packet 112254 [12:38:17]ProducePacketName [12:38:17]name=ofd_packets/00112254 [12:38:17]NVStorageDeleteData [12:38:17]Write to MH i2c: 01 00 00 0B 12 1D [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 07 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: 01 07 00 0B 12 00 00 00 00 00 DE 0C 0E [12:38:17]RasterBufferAndPrint [12:38:17]line [12:38:17]line [12:38:17]line [12:38:17]line [12:38:17]line [12:38:17]written 0, free lines is 3300 [12:38:17]MH_Cut [12:38:17]Write to MH i2c: D1 01 00 12 12 01 F6 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: D1 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: D1 01 00 [12:38:17]MH_I2C_Read... [12:38:17]Read from MH i2c: D1 01 00 12 12 00 F5 [12:38:17]Write to MH i2c: 01 00 00 13 12 25 [12:38:17]Write i2c OK [12:38:17]MH_I2C_Read... [12:38:17]OFD Sender: No OFD packet to send [12:38:18]*** Cut start [12:38:18]*** Partial cut [12:38:18]*** CUTSNS_PIN = 1 [12:38:18]*** CUTSNS_PIN = 0 [12:38:18]*** Brake cut motor [12:38:18]Read from MH i2c: 01 [12:38:18]MH_I2C_Read... [12:38:18]*** Stop cut motor [12:38:18]*** Cut end [12:38:18]Read from MH i2c: 01 07 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: 01 07 00 13 12 00 00 00 00 00 FF 0F 3A [12:38:18]process_action close_receipt done [12:38:18]requested_data is exist [12:38:18]produce_requested_data [12:38:18]requested_item fm.sn is exist - process it [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 11 00 00 [12:38:18]Write to MH i2c: E2 08 00 14 12 80 11 00 00 00 00 00 00 A0 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 17 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 17 00 14 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F1 [12:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:38:18]wFMCommunicate OK [12:38:18]requested_item fd.num is exist - process it [12:38:18]SAM_PROTO_GetFieldsCounters [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 00 00 [12:38:18]Write to MH i2c: E2 08 00 15 12 80 13 00 00 00 00 00 00 A3 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:18]Read from MH i2c: E2 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 62 00 [12:38:18]MH_I2C_Read... [12:38:18]Read from MH i2c: E2 62 00 15 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [12:38:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:18]wFMCommunicate OK [12:38:18]SAM_PROTO_GetFieldsCounters done [12:38:18]requested_item shift.num is exist - process it [12:38:18]requested_item shift.opened is exist - process it [12:38:18]req_shift_opened [12:38:18]FM_GetShiftState [12:38:18]SAM_PROTO_GetShiftState [12:38:18]wFMCommunicate request_size=4 [12:38:18]MH_SAM_APDU [12:38:18]CAPDU: 80 13 01 00 [12:38:18]Write to MH i2c: E2 08 00 16 12 80 13 01 00 00 00 00 00 A5 [12:38:18]Write i2c OK [12:38:18]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0E 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0E 00 16 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3D [12:38:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:38:19]wFMCommunicate OK [12:38:19]SAM_PROTO_GetShiftState done [12:38:19]FM_GetShiftState done [12:38:19]req_shift_opened done [12:38:19]requested_item shift.open_date is exist - process it [12:38:19]req_shift_open_date [12:38:19]req_shift_open_date done [12:38:19]produce_requested_data done [12:38:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112254,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:38:19]process_action_free close_receipt [12:38:19]json_value_free [12:38:19]json_value_free done [12:38:19]process_json_proto returns [12:38:19]Send response to host [12:38:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112254,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:38:19]free response buf [12:38:19]execute_script done [12:38:19]execute_script returns [12:38:19]free content buf [12:38:19]Sock 9.Close socket [12:38:19]Sock 9.Thread stoped [12:38:19]accept exits with 7 [12:38:19]New connection [12:38:19]New thread 3067198820 created [12:38:19]Thread 3067342180 joined [12:38:19]Waiting for new connection... [12:38:19] Sock 7.Parse request [12:38:19]Sock 7.Check first char [12:38:19]Sock 7.First char is OK [12:38:19]request: POST /json_proto HTTP/1.0 [12:38:19]Method: POST [12:38:19]URL: /json_proto [12:38:19]Method is POST - this is cgi request [12:38:19]url: /json_proto [12:38:19]query_string will be loaded in cgi processing [12:38:19]execute_cgi json_proto POST (null) [12:38:19]execute_cgi path=json_proto method=POST [12:38:19]POST find Content-Length [12:38:19]Host: 172.17.96.197:8080 [12:38:19]Content-Length: 681 [12:38:19]Content-Type: application/json [12:38:19] [12:38:19]POST finish read [12:38:19]Found Content-Length = 681 [12:38:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [12:38:19]execute_script... [12:38: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)48568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [12:38:19]POST & json_proto [12:38:19]process_json_proto [12:38:19]json parsed OK: [12:38:19]protocol is kg_v1.0 [12:38:19]action value=close_receipt [12:38:19]process_action close_receipt [12:38:19]cmd_close_receipt [12:38:19]MH_GetDate [12:38:19]Write to MH i2c: F0 00 00 17 12 18 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: F0 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: F0 09 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: F0 09 00 17 12 00 3C CE 1B 66 E0 85 7F 64 F4 [12:38:19]GetLastDocTimeStamp 1713098295 [12:38:19]current date 1713098300 [12:38:19]FM_GetShiftState [12:38:19]SAM_PROTO_GetShiftState [12:38:19]wFMCommunicate request_size=4 [12:38:19]MH_SAM_APDU [12:38:19]CAPDU: 80 13 01 00 [12:38:19]Write to MH i2c: E2 08 00 18 12 80 13 01 00 00 00 00 00 A7 [12:38:19]Write i2c OK [12:38:19]MH_I2C_Read... [12:38:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:19]Read from MH i2c: E2 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0E 00 [12:38:19]MH_I2C_Read... [12:38:19]Read from MH i2c: E2 0E 00 18 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3F [12:38:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:38:19]wFMCommunicate OK [12:38:19]SAM_PROTO_GetShiftState done [12:38:19]FM_GetShiftState done [12:38:19]opened in 1713054696 [12:38:19]opened+sec_in_day 1713141096 [12:38:19]quantity*price = 200037 [12:38:19]sum+1 = 200038 [12:38:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 154 14.04.2024 12:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112255 ФПД: 233177753979658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T123820&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112255&fm=233177753979658&tin=02508201610067®Number=0000000000094237&sum=200000 [12:38:20]StoreToDocumentArchive [12:38:20]shift 357 fd 112255 [12:38:20]save to /storage/0357/doc_00112255 [12:38:20]save last doc name /storage/0357/doc_00112255 to /storage/kkm_last_doc_name [12:38:20]save OK [12:38:20]Clear old archive folders... [12:38:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:20]tlvbuf is 017B2A30 [12:38:20]SAM_PROTO_ClearQueue [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 09 00 00 [12:38:20]Write to MH i2c: E2 08 00 25 12 80 09 00 00 00 00 00 00 A9 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 25 12 00 90 00 AB [12:38:20]RAPDU: 90 00 [12:38:20]wFMCommunicate OK [12:38:20]SAM_PROTO_ClearQueue done [12:38:20]KKMCreateOFDPacket [12:38:20]OFDProtocolAddRootSTLVToBuf [12:38:20]FM_MakeSignedData [12:38:20]FM_MakeSignedData [12:38:20]SAM_PROTO_SignData [12:38:20]wFMCommunicate request_size=4 [12:38:20]MH_SAM_APDU [12:38:20]CAPDU: 80 0D 01 02 [12:38:20]Write to MH i2c: E2 08 00 26 12 80 0D 01 02 00 00 00 00 B1 [12:38:20]Write i2c OK [12:38:20]MH_I2C_Read... [12:38:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:20]Read from MH i2c: E2 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 [12:38:20]MH_I2C_Read... [12:38:20]Read from MH i2c: E2 03 00 26 12 00 90 00 AC [12:38:20]RAPDU: 90 00 [12:38:20]wFMCommunicate OK [12:38:20]wFMCommunicate request_size=255 [12:38:20]MH_SAM_APDU [12:38:20]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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 9A 00 00 00 F4 03 04 00 3C CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B6 01 00 35 04 06 00 D4 [12:38:20]Write to MH i2c: E2 02 01 27 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 9A 00 00 00 F4 03 04 00 3C CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B6 01 00 35 04 06 00 D4 00 00 D6 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 03 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 03 00 27 12 00 90 00 AD [12:38:21]RAPDU: 90 00 [12:38:21]wFMCommunicate OK [12:38:21]wFMCommunicate request_size=10 [12:38:21]MH_SAM_APDU [12:38:21]CAPDU: 80 0D 02 02 05 12 ED 32 0B 0A [12:38:21]Write to MH i2c: E2 0D 00 28 12 80 0D 02 02 05 00 12 ED 32 0B 0A 00 00 04 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 03 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 03 00 28 12 00 90 00 AE [12:38:21]RAPDU: 90 00 [12:38:21]wFMCommunicate OK [12:38:21]wFMCommunicate request_size=4 [12:38:21]MH_SAM_APDU [12:38:21]CAPDU: 80 0D 03 02 [12:38:21]Write to MH i2c: E2 08 00 29 12 80 0D 03 02 00 00 00 00 B6 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0B 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 0B 00 29 12 00 DD 1F 46 F8 61 E1 AF C0 90 00 A2 [12:38:21]RAPDU: DD 1F 46 F8 61 E1 AF C0 90 00 [12:38:21]wFMCommunicate OK [12:38:21]SAM_PROTO_SignData done [12:38:21]FM_MakeSignedData done [12:38:21]CreateOFDProtocolMessage [12:38:21]wFMCommunicate request_size=4 [12:38:21]MH_SAM_APDU [12:38:21]CAPDU: 80 11 00 00 [12:38:21]Write to MH i2c: E2 08 00 2A 12 80 11 00 00 00 00 00 00 B6 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:21]Read from MH i2c: E2 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 17 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: E2 17 00 2A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 07 [12:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:38:21]wFMCommunicate OK [12:38:21]CreateOFDProtocolMessage done [12:38:21]OFDSenderStorePacket 112255 [12:38:21]StoreOFDPacket docnum=112255 [12:38:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3B B8 07 01 B3 49 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 9A 00 00 00 F4 03 04 00 3C CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B6 01 00 35 04 06 00 D4 12 ED 32 0B 0A DD 1F 46 F8 61 E1 AF C0 [12:38:21]CheckFolder [12:38:21]dirname=/storage/ofd_packets [12:38:21]CheckFolder done [12:38:21]ProducePacketName [12:38:21]name=ofd_packets/00112255 [12:38:21]NVStorageSaveData ofd_packets/00112255 [12:38:21]File name is /storage/ofd_packets/00112255 [12:38:21]Write 301 bytes [12:38:21]NVStorageSaveData done [12:38:21]OFDSenderStorePacket done [12:38:21]KKMCreateOFDPacket done [12:38:21]NVStorageSaveData kkm_last_timestamp [12:38:21]File name is /storage/kkm_last_timestamp [12:38:21]Write 4 bytes [12:38:21]NVStorageSaveData done [12:38:21]ExternCall_PrintAddStr [12:38:21]wPrintStart [12:38:21]Write to MH i2c: 01 00 00 2B 12 3D [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 07 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FF 0F 52 [12:38:21]RasterBufferAndPrint [12:38:21]line Счет N : (1)48568 [12:38:21]line ИНН: 02508201610067 [12:38:21]line Контрольно-Кассовый Чек [12:38:21]line ПРОДАЖА [12:38:21]line ТРК (МРК, ГНК) : 11 [12:38:21]line Товар: 2710124130 [12:38:21]line Аи-92-К-5 [12:38:21]line 31.110 * 64.30 [12:38:21]line = 2000.37 [12:38:21]line НДС 12% НСП 1% [12:38:21]line > о реализуемом товаре [12:38:21]line ОКРУГЛЕНИЕ: -0.37 [12:38:21]line ИТОГО: 2000.00 [12:38:21]line Внесено: 2000.00 [12:38:21]line СДАЧА: 0.00 [12:38:21]line НСП 1% : 17.70 [12:38:21]line НДС 12% : 212.43 [12:38:21]line Наличными: 2000.00 [12:38:21]line Безнал.: 0.00 [12:38:21]line Место: АЗС № 47 "Партнер Нефть" [12:38:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:38:21]line СНО: Общий режим [12:38:21]line Чек 154 14.04.2024 12:38 [12:38:21]line Смена: 357 ФФД: 1.0 [12:38:21]line ЗНМ: 0300000138 [12:38:21]line РНМ: 0000000000094237 [12:38:21]line Версия ККМ: 001 [12:38:21]line ФМ: 0000000000875019 [12:38:21]line ФД: 112255 [12:38:21]line ФПД: 233177753979658 [12:38:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T123820&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112255&fm=233177753979658&tin=02508201610067®Number=0000000000094237&sum=200000 [12:38:21]written 0, free lines is 4095 [12:38:21]OFD Sender: Processing packet 112255 [packets to send 71, broken 70] [12:38:21]ProducePacketName [12:38:21]name=ofd_packets/00112255 [12:38:21]OFD Sender: To server: pG, [12:38:21]CommunicateWithHost lk.salyk.kg:30040 [12:38:21]ConnectInit lk.salyk.kg [12:38:21]Connected sock=10 [12:38:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3B B8 07 01 B3 49 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 9A 00 00 00 F4 03 04 00 3C CE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B6 01 00 35 04 06 00 D4 12 ED 32 0B 0A DD 1F 46 F8 61 E1 AF C0 [12:38:21]Write to MH i2c: 01 00 00 56 12 68 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 07 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: 01 07 00 56 12 00 00 00 00 00 EF 0C 6A [12:38:21]RasterBufferAndPrint [12:38:21]line [12:38:21]line [12:38:21]line [12:38:21]line [12:38:21]line [12:38:21]written 0, free lines is 3323 [12:38:21]MH_Cut [12:38:21]Write to MH i2c: D1 01 00 5D 12 01 41 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: D1 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: D1 01 00 [12:38:21]MH_I2C_Read... [12:38:21]Read from MH i2c: D1 01 00 5D 12 00 40 [12:38:21]Write to MH i2c: 01 00 00 5E 12 70 [12:38:21]Write i2c OK [12:38:21]MH_I2C_Read... [12:38:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 10 A5 47 00 FA 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B6 01 00 F4 03 04 00 C7 75 1B 66 B6 04 01 00 00 93 60 C6 1A 0E 23 30 78 [12:38:21]CommunicateWithHost err = 0 [12:38:21]CheckOFDResponse [12:38:21]1017 (14) - 77093643461234 [12:38:21]1041 (16) - 0000000000875019 [12:38:21]1040 (4) - 112255 [12:38:21]1012 (4) - 14.04.2024 06:20 [12:38:21]1206 (1) - 0 [12:38:21]OFD Sender: Remove packet 112255 [12:38:21]ProducePacketName [12:38:21]name=ofd_packets/00112255 [12:38:21]NVStorageDeleteData [12:38:22]OFD Sender: No OFD packet to send [12:38:22]*** Cut start [12:38:22]*** Partial cut [12:38:22]*** CUTSNS_PIN = 1 [12:38:22]*** CUTSNS_PIN = 0 [12:38:22]*** Brake cut motor [12:38:23]Read from MH i2c: 01 [12:38:23]MH_I2C_Read... [12:38:23]*** Stop cut motor [12:38:23]*** Cut end [12:38:23]Read from MH i2c: 01 07 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 FF 0F 85 [12:38:23]process_action close_receipt done [12:38:23]requested_data is exist [12:38:23]produce_requested_data [12:38:23]requested_item fm.sn is exist - process it [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 11 00 00 [12:38:23]Write to MH i2c: E2 08 00 5F 12 80 11 00 00 00 00 00 00 EB [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 17 00 5F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3C [12:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:38:23]wFMCommunicate OK [12:38:23]requested_item fd.num is exist - process it [12:38:23]SAM_PROTO_GetFieldsCounters [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 13 00 00 [12:38:23]Write to MH i2c: E2 08 00 60 12 80 13 00 00 00 00 00 00 EE [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 62 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 62 00 60 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [12:38:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_GetFieldsCounters done [12:38:23]requested_item shift.num is exist - process it [12:38:23]requested_item shift.opened is exist - process it [12:38:23]req_shift_opened [12:38:23]FM_GetShiftState [12:38:23]SAM_PROTO_GetShiftState [12:38:23]wFMCommunicate request_size=4 [12:38:23]MH_SAM_APDU [12:38:23]CAPDU: 80 13 01 00 [12:38:23]Write to MH i2c: E2 08 00 61 12 80 13 01 00 00 00 00 00 F0 [12:38:23]Write i2c OK [12:38:23]MH_I2C_Read... [12:38:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:23]Read from MH i2c: E2 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 [12:38:23]MH_I2C_Read... [12:38:23]Read from MH i2c: E2 0E 00 61 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 88 [12:38:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:38:23]wFMCommunicate OK [12:38:23]SAM_PROTO_GetShiftState done [12:38:23]FM_GetShiftState done [12:38:23]req_shift_opened done [12:38:23]requested_item shift.open_date is exist - process it [12:38:23]req_shift_open_date [12:38:23]req_shift_open_date done [12:38:23]produce_requested_data done [12:38:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112255,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:38:23]process_action_free close_receipt [12:38:23]json_value_free [12:38:23]json_value_free done [12:38:23]process_json_proto returns [12:38:23]Send response to host [12:38:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112255,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:38:23]free response buf [12:38:23]execute_script done [12:38:23]execute_script returns [12:38:23]free content buf [12:38:23]Sock 7.Close socket [12:38:23]Sock 7.Thread stoped [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:03]accept exits with 9 [12:46:03]New connection [12:46:03]New thread 3067342180 created [12:46:03]Thread 3067198820 joined [12:46:03]Waiting for new connection... [12:46:03] Sock 9.Parse request [12:46:03]Sock 9.Check first char [12:46:03]Sock 9.First char is OK [12:46:03]request: POST /json_proto HTTP/1.0 [12:46:03]Method: POST [12:46:03]URL: /json_proto [12:46:03]Method is POST - this is cgi request [12:46:03]url: /json_proto [12:46:03]query_string will be loaded in cgi processing [12:46:03]execute_cgi json_proto POST (null) [12:46:03]execute_cgi path=json_proto method=POST [12:46:03]POST find Content-Length [12:46:03]Host: 172.17.96.197:8080 [12:46:03]Content-Length: 674 [12:46:03]Content-Type: application/json [12:46:03] [12:46:03]POST finish read [12:46:03]Found Content-Length = 674 [12:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48570", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [12:46:03]execute_script... [12:46:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48570", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [12:46:03]POST & json_proto [12:46:03]process_json_proto [12:46:03]json parsed OK: [12:46:03]protocol is kg_v1.0 [12:46:03]action value=close_receipt [12:46:03]process_action close_receipt [12:46:03]cmd_close_receipt [12:46:03]MH_GetDate [12:46:03]Write to MH i2c: F0 00 00 62 12 63 [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: F0 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: F0 09 00 [12:46:03]MH_I2C_Read... [12:46:03]Read from MH i2c: F0 09 00 62 12 00 0C D0 1B 66 E0 85 7F 64 11 [12:46:03]GetLastDocTimeStamp 1713098300 [12:46:03]current date 1713098764 [12:46:03]FM_GetShiftState [12:46:03]SAM_PROTO_GetShiftState [12:46:03]wFMCommunicate request_size=4 [12:46:03]MH_SAM_APDU [12:46:03]CAPDU: 80 13 01 00 [12:46:03]Write to MH i2c: E2 08 00 63 12 80 13 01 00 00 00 00 00 F2 [12:46:03]Write i2c OK [12:46:03]MH_I2C_Read... [12:46:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:04]Read from MH i2c: E2 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 0E 00 [12:46:04]MH_I2C_Read... [12:46:04]Read from MH i2c: E2 0E 00 63 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8A [12:46:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:46:04]wFMCommunicate OK [12:46:04]SAM_PROTO_GetShiftState done [12:46:04]FM_GetShiftState done [12:46:04]opened in 1713054696 [12:46:04]opened+sec_in_day 1713141096 [12:46:04]quantity*price = 200013 [12:46:04]sum+1 = 200015 [12:46:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 155 14.04.2024 12:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112256 ФПД: 150264829277956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T124604&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112256&fm=150264829277956&tin=02508201610067®Number=0000000000094237&sum=200000 [12:46:05]StoreToDocumentArchive [12:46:05]shift 357 fd 112256 [12:46:05]save to /storage/0357/doc_00112256 [12:46:05]save last doc name /storage/0357/doc_00112256 to /storage/kkm_last_doc_name [12:46:05]save OK [12:46:05]Clear old archive folders... [12:46:05]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:46:05]tlvbuf is B6F07BF0 [12:46:05]SAM_PROTO_ClearQueue [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 09 00 00 [12:46:05]Write to MH i2c: E2 08 00 70 12 80 09 00 00 00 00 00 00 F4 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 70 12 00 90 00 F6 [12:46:05]RAPDU: 90 00 [12:46:05]wFMCommunicate OK [12:46:05]SAM_PROTO_ClearQueue done [12:46:05]KKMCreateOFDPacket [12:46:05]OFDProtocolAddRootSTLVToBuf [12:46:05]FM_MakeSignedData [12:46:05]FM_MakeSignedData [12:46:05]SAM_PROTO_SignData [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 0D 01 02 [12:46:05]Write to MH i2c: E2 08 00 71 12 80 0D 01 02 00 00 00 00 FC [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 71 12 00 90 00 F7 [12:46:05]RAPDU: 90 00 [12:46:05]wFMCommunicate OK [12:46:05]wFMCommunicate request_size=255 [12:46:05]MH_SAM_APDU [12:46:05]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0C D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B6 01 00 35 04 06 00 [12:46:05]Write to MH i2c: E2 02 01 72 12 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0C D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B6 01 00 35 04 06 00 00 00 26 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 72 12 00 90 00 F8 [12:46:05]RAPDU: 90 00 [12:46:05]wFMCommunicate OK [12:46:05]wFMCommunicate request_size=11 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 0D 02 02 06 88 AA 41 C5 77 04 [12:46:05]Write to MH i2c: E2 0E 00 73 12 80 0D 02 02 06 00 88 AA 41 C5 77 04 00 00 BE [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 03 00 73 12 00 90 00 F9 [12:46:05]RAPDU: 90 00 [12:46:05]wFMCommunicate OK [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 0D 03 02 [12:46:05]Write to MH i2c: E2 08 00 74 12 80 0D 03 02 00 00 00 00 01 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0B 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 0B 00 74 12 00 2A 43 90 11 FB F3 82 2E 90 00 AE [12:46:05]RAPDU: 2A 43 90 11 FB F3 82 2E 90 00 [12:46:05]wFMCommunicate OK [12:46:05]SAM_PROTO_SignData done [12:46:05]FM_MakeSignedData done [12:46:05]CreateOFDProtocolMessage [12:46:05]wFMCommunicate request_size=4 [12:46:05]MH_SAM_APDU [12:46:05]CAPDU: 80 11 00 00 [12:46:05]Write to MH i2c: E2 08 00 75 12 80 11 00 00 00 00 00 00 01 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:05]Read from MH i2c: E2 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 17 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: E2 17 00 75 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 52 [12:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:46:05]wFMCommunicate OK [12:46:05]CreateOFDProtocolMessage done [12:46:05]OFDSenderStorePacket 112256 [12:46:05]StoreOFDPacket docnum=112256 [12:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 80 92 08 01 53 BB 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0C D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B6 01 00 35 04 06 00 88 AA 41 C5 77 04 2A 43 90 11 FB F3 82 2E [12:46:05]CheckFolder [12:46:05]dirname=/storage/ofd_packets [12:46:05]CheckFolder done [12:46:05]ProducePacketName [12:46:05]name=ofd_packets/00112256 [12:46:05]NVStorageSaveData ofd_packets/00112256 [12:46:05]File name is /storage/ofd_packets/00112256 [12:46:05]Write 302 bytes [12:46:05]NVStorageSaveData done [12:46:05]OFDSenderStorePacket done [12:46:05]KKMCreateOFDPacket done [12:46:05]NVStorageSaveData kkm_last_timestamp [12:46:05]File name is /storage/kkm_last_timestamp [12:46:05]Write 4 bytes [12:46:05]NVStorageSaveData done [12:46:05]ExternCall_PrintAddStr [12:46:05]wPrintStart [12:46:05]Write to MH i2c: 01 00 00 76 12 88 [12:46:05]Write i2c OK [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: 01 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: 01 07 00 [12:46:05]MH_I2C_Read... [12:46:05]Read from MH i2c: 01 07 00 76 12 00 00 00 00 00 FF 0F 9D [12:46:05]RasterBufferAndPrint [12:46:05]line Счет N : (1)48570 [12:46:05]line ИНН: 02508201610067 [12:46:05]line Контрольно-Кассовый Чек [12:46:05]line ПРОДАЖА [12:46:05]line ТРК (МРК, ГНК) : 31 [12:46:05]line Товар: 2710124130 [12:46:05]line SUPER 92-К-5 [12:46:05]line 30.630 * 65.30 [12:46:05]line = 2000.14 [12:46:05]line НДС 12% НСП 1% [12:46:05]line > о реализуемом товаре [12:46:05]line ОКРУГЛЕНИЕ: -0.14 [12:46:05]line ИТОГО: 2000.00 [12:46:05]line Внесено: 2000.00 [12:46:05]line СДАЧА: 0.00 [12:46:05]line НСП 1% : 17.70 [12:46:05]line НДС 12% : 212.40 [12:46:05]line Наличными: 2000.00 [12:46:05]line Безнал.: 0.00 [12:46:05]line Место: АЗС № 47 "Партнер Нефть" [12:46:05]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:46:05]line СНО: Общий режим [12:46:05]line Чек 155 14.04.2024 12:46 [12:46:05]line Смена: 357 ФФД: 1.0 [12:46:05]line ЗНМ: 0300000138 [12:46:05]line РНМ: 0000000000094237 [12:46:05]line Версия ККМ: 001 [12:46:05]line ФМ: 0000000000875019 [12:46:05]line ФД: 112256 [12:46:05]line ФПД: 150264829277956 [12:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T124604&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112256&fm=150264829277956&tin=02508201610067®Number=0000000000094237&sum=200000 [12:46:06]OFD Sender: Processing packet 112256 [packets to send 71, broken 70] [12:46:06]ProducePacketName [12:46:06]name=ofd_packets/00112256 [12:46:06]OFD Sender: To server: pG, [12:46:06]CommunicateWithHost lk.salyk.kg:30040 [12:46:06]ConnectInit lk.salyk.kg [12:46:06]written 0, free lines is 4095 [12:46:06]Connected sock=10 [12:46:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 80 92 08 01 53 BB 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0C D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B6 01 00 35 04 06 00 88 AA 41 C5 77 04 2A 43 90 11 FB F3 82 2E [12:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C5 13 47 00 78 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B6 01 00 F4 03 04 00 98 77 1B 66 B6 04 01 00 00 08 7E 8F 7E C4 1A DE D6 [12:46:06]CommunicateWithHost err = 0 [12:46:06]CheckOFDResponse [12:46:06]1017 (14) - 77093643461234 [12:46:06]1041 (16) - 0000000000875019 [12:46:06]1040 (4) - 112256 [12:46:06]1012 (4) - 14.04.2024 06:28 [12:46:06]1206 (1) - 0 [12:46:06]OFD Sender: Remove packet 112256 [12:46:06]ProducePacketName [12:46:06]name=ofd_packets/00112256 [12:46:06]NVStorageDeleteData [12:46:06]Write to MH i2c: 01 00 00 A1 12 B3 [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: 01 07 00 A1 12 00 00 00 00 00 F6 0C BC [12:46:06]RasterBufferAndPrint [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]line [12:46:06]written 0, free lines is 3324 [12:46:06]MH_Cut [12:46:06]Write to MH i2c: D1 01 00 A8 12 01 8C [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D1 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D1 01 00 [12:46:06]MH_I2C_Read... [12:46:06]Read from MH i2c: D1 01 00 A8 12 00 8B [12:46:06]Write to MH i2c: 01 00 00 A9 12 BB [12:46:06]Write i2c OK [12:46:06]MH_I2C_Read... [12:46:06]OFD Sender: No OFD packet to send [12:46:07]*** Cut start [12:46:07]*** Partial cut [12:46:07]*** CUTSNS_PIN = 1 [12:46:07]*** CUTSNS_PIN = 0 [12:46:07]*** Brake cut motor [12:46:07]Read from MH i2c: 01 [12:46:07]MH_I2C_Read... [12:46:07]*** Stop cut motor [12:46:07]*** Cut end [12:46:07]Read from MH i2c: 01 07 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: 01 07 00 A9 12 00 00 00 00 00 FF 0F D0 [12:46:07]process_action close_receipt done [12:46:07]requested_data is exist [12:46:07]produce_requested_data [12:46:07]requested_item fm.sn is exist - process it [12:46:07]wFMCommunicate request_size=4 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 11 00 00 [12:46:07]Write to MH i2c: E2 08 00 AA 12 80 11 00 00 00 00 00 00 36 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:07]Read from MH i2c: E2 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 17 00 [12:46:07]MH_I2C_Read... [12:46:07]Read from MH i2c: E2 17 00 AA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 87 [12:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:46:07]wFMCommunicate OK [12:46:07]requested_item fd.num is exist - process it [12:46:07]SAM_PROTO_GetFieldsCounters [12:46:07]wFMCommunicate request_size=4 [12:46:07]MH_SAM_APDU [12:46:07]CAPDU: 80 13 00 00 [12:46:07]Write to MH i2c: E2 08 00 AB 12 80 13 00 00 00 00 00 00 39 [12:46:07]Write i2c OK [12:46:07]MH_I2C_Read... [12:46:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:08]Read from MH i2c: E2 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 62 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 62 00 AB 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 80 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [12:46:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 80 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:08]wFMCommunicate OK [12:46:08]SAM_PROTO_GetFieldsCounters done [12:46:08]requested_item shift.num is exist - process it [12:46:08]requested_item shift.opened is exist - process it [12:46:08]req_shift_opened [12:46:08]FM_GetShiftState [12:46:08]SAM_PROTO_GetShiftState [12:46:08]wFMCommunicate request_size=4 [12:46:08]MH_SAM_APDU [12:46:08]CAPDU: 80 13 01 00 [12:46:08]Write to MH i2c: E2 08 00 AC 12 80 13 01 00 00 00 00 00 3B [12:46:08]Write i2c OK [12:46:08]MH_I2C_Read... [12:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:08]Read from MH i2c: E2 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 0E 00 [12:46:08]MH_I2C_Read... [12:46:08]Read from MH i2c: E2 0E 00 AC 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [12:46:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:46:08]wFMCommunicate OK [12:46:08]SAM_PROTO_GetShiftState done [12:46:08]FM_GetShiftState done [12:46:08]req_shift_opened done [12:46:08]requested_item shift.open_date is exist - process it [12:46:08]req_shift_open_date [12:46:08]req_shift_open_date done [12:46:08]produce_requested_data done [12:46:08]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112256,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:46:08]process_action_free close_receipt [12:46:08]json_value_free [12:46:08]json_value_free done [12:46:08]process_json_proto returns [12:46:08]Send response to host [12:46:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112256,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:46:08]free response buf [12:46:08]execute_script done [12:46:08]execute_script returns [12:46:08]free content buf [12:46:08]Sock 9.Close socket [12:46:08]Sock 9.Thread stoped [12:46:11]OFD Sender: No OFD packet to send [12:46:16]OFD Sender: No OFD packet to send [12:46:21]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:42]accept exits with 7 [12:46:42]New connection [12:46:42]New thread 3067198820 created [12:46:42]Thread 3067342180 joined [12:46:42]Waiting for new connection... [12:46:42] Sock 7.Parse request [12:46:42]Sock 7.Check first char [12:46:42]Sock 7.First char is OK [12:46:42]request: POST /json_proto HTTP/1.0 [12:46:42]Method: POST [12:46:42]URL: /json_proto [12:46:42]Method is POST - this is cgi request [12:46:42]url: /json_proto [12:46:42]query_string will be loaded in cgi processing [12:46:42]execute_cgi json_proto POST (null) [12:46:42]execute_cgi path=json_proto method=POST [12:46:42]POST find Content-Length [12:46:42]Host: 172.17.96.197:8080 [12:46:42]Content-Length: 818 [12:46:42]Content-Type: application/json [12:46:42] [12:46:42]POST finish read [12:46:42]Found Content-Length = 818 [12:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48571", "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.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:42]execute_script... [12:46: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)48571", "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.30, "quantity" : 31.110, "sum" : 2000.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:46:42]POST & json_proto [12:46:42]process_json_proto [12:46:42]json parsed OK: [12:46:42]protocol is kg_v1.0 [12:46:42]action value=close_receipt [12:46:42]process_action close_receipt [12:46:42]cmd_close_receipt [12:46:42]MH_GetDate [12:46:42]Write to MH i2c: F0 00 00 AD 12 AE [12:46:42]Write i2c OK [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 09 00 [12:46:42]MH_I2C_Read... [12:46:42]Read from MH i2c: F0 09 00 AD 12 00 33 D0 1B 66 E0 85 7F 64 83 [12:46:42]GetLastDocTimeStamp 1713098764 [12:46:42]current date 1713098803 [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 AE 12 80 13 01 00 00 00 00 00 3D [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 AE 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [12:46:42]RAPDU: 09 00 01 E8 23 1B 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]opened in 1713054696 [12:46:42]opened+sec_in_day 1713141096 [12:46:42]quantity*price = 200037 [12:46:42]sum+1 = 200038 [12:46:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.37 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.37 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 156 14.04.2024 12:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112257 ФПД: 100943511187881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T124643&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112257&fm=100943511187881&tin=02508201610067®Number=0000000000094237&sum=200037 [12:46:43]StoreToDocumentArchive [12:46:43]shift 357 fd 112257 [12:46:43]save to /storage/0357/doc_00112257 [12:46:43]save last doc name /storage/0357/doc_00112257 to /storage/kkm_last_doc_name [12:46:43]save OK [12:46:43]Clear old archive folders... [12:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:46:43]tlvbuf is 0177D280 [12:46:43]SAM_PROTO_ClearQueue [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 09 00 00 [12:46:43]Write to MH i2c: E2 08 00 BB 12 80 09 00 00 00 00 00 00 3F [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 BB 12 00 90 00 41 [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]SAM_PROTO_ClearQueue done [12:46:43]KKMCreateOFDPacket [12:46:43]OFDProtocolAddRootSTLVToBuf [12:46:43]FM_MakeSignedData [12:46:43]FM_MakeSignedData [12:46:43]SAM_PROTO_SignData [12:46:43]wFMCommunicate request_size=4 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 01 02 [12:46:43]Write to MH i2c: E2 08 00 BC 12 80 0D 01 02 00 00 00 00 47 [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 BC 12 00 90 00 42 [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=255 [12:46:43]MH_SAM_APDU [12:46: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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 33 D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B6 01 00 35 04 06 00 5B [12:46:43]Write to MH i2c: E2 02 01 BD 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 33 D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B6 01 00 35 04 06 00 5B 00 00 3A [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:43]Read from MH i2c: E2 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 [12:46:43]MH_I2C_Read... [12:46:43]Read from MH i2c: E2 03 00 BD 12 00 90 00 43 [12:46:43]RAPDU: 90 00 [12:46:43]wFMCommunicate OK [12:46:43]wFMCommunicate request_size=10 [12:46:43]MH_SAM_APDU [12:46:43]CAPDU: 80 0D 02 02 05 CE BE 20 71 A9 [12:46:43]Write to MH i2c: E2 0D 00 BE 12 80 0D 02 02 05 00 CE BE 20 71 A9 00 00 1A [12:46:43]Write i2c OK [12:46:43]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 03 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 03 00 BE 12 00 90 00 44 [12:46:44]RAPDU: 90 00 [12:46:44]wFMCommunicate OK [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 0D 03 02 [12:46:44]Write to MH i2c: E2 08 00 BF 12 80 0D 03 02 00 00 00 00 4C [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 0B 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 0B 00 BF 12 00 61 48 B8 F4 CF 0F B8 8B 90 00 C3 [12:46:44]RAPDU: 61 48 B8 F4 CF 0F B8 8B 90 00 [12:46:44]wFMCommunicate OK [12:46:44]SAM_PROTO_SignData done [12:46:44]FM_MakeSignedData done [12:46:44]CreateOFDProtocolMessage [12:46:44]wFMCommunicate request_size=4 [12:46:44]MH_SAM_APDU [12:46:44]CAPDU: 80 11 00 00 [12:46:44]Write to MH i2c: E2 08 00 C0 12 80 11 00 00 00 00 00 00 4C [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:44]Read from MH i2c: E2 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 17 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: E2 17 00 C0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9D [12:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:46:44]wFMCommunicate OK [12:46:44]CreateOFDProtocolMessage done [12:46:44]OFDSenderStorePacket 112257 [12:46:44]StoreOFDPacket docnum=112257 [12:46:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 05 7F 07 01 C4 04 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 33 D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B6 01 00 35 04 06 00 5B CE BE 20 71 A9 61 48 B8 F4 CF 0F B8 8B [12:46:44]CheckFolder [12:46:44]dirname=/storage/ofd_packets [12:46:44]CheckFolder done [12:46:44]ProducePacketName [12:46:44]name=ofd_packets/00112257 [12:46:44]NVStorageSaveData ofd_packets/00112257 [12:46:44]File name is /storage/ofd_packets/00112257 [12:46:44]Write 301 bytes [12:46:44]NVStorageSaveData done [12:46:44]OFDSenderStorePacket done [12:46:44]KKMCreateOFDPacket done [12:46:44]NVStorageSaveData kkm_last_timestamp [12:46:44]File name is /storage/kkm_last_timestamp [12:46:44]Write 4 bytes [12:46:44]NVStorageSaveData done [12:46:44]ExternCall_PrintAddStr [12:46:44]wPrintStart [12:46:44]Write to MH i2c: 01 00 00 C1 12 D3 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 C1 12 00 00 00 00 00 FF 0F E8 [12:46:44]RasterBufferAndPrint [12:46:44]line Счет N : (1)48571 [12:46:44]line ИНН: 02508201610067 [12:46:44]line Контрольно-Кассовый Чек [12:46:44]line ПРОДАЖА [12:46:44]line ТРК (МРК, ГНК) : 42 [12:46:44]line Товар: 2710124130 [12:46:44]line Аи-92-К-5 [12:46:44]line 31.110 * 64.30 [12:46:44]line = 2000.37 [12:46:44]line НДС 12% НСП 1% [12:46:44]line > о реализуемом товаре [12:46:44]line ИТОГО: 2000.37 [12:46:44]line НСП 1% : 17.70 [12:46:44]line НДС 12% : 212.43 [12:46:44]line Наличными: 0.00 [12:46:44]line Безнал.: 2000.37 [12:46:44]line Место: АЗС № 47 "Партнер Нефть" [12:46:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:46:44]line СНО: Общий режим [12:46:44]line Чек 156 14.04.2024 12:46 [12:46:44]line Смена: 357 ФФД: 1.0 [12:46:44]line ЗНМ: 0300000138 [12:46:44]line РНМ: 0000000000094237 [12:46:44]line Версия ККМ: 001 [12:46:44]line Платежная система: Бакай Банк [12:46:44]line ФМ: 0000000000875019 [12:46:44]line ФД: 112257 [12:46:44]line ФПД: 100943511187881 [12:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T124643&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112257&fm=100943511187881&tin=02508201610067®Number=0000000000094237&sum=200037 [12:46:44]written 0, free lines is 4095 [12:46:44]OFD Sender: Processing packet 112257 [packets to send 71, broken 70] [12:46:44]ProducePacketName [12:46:44]name=ofd_packets/00112257 [12:46:44]OFD Sender: To server: pG, [12:46:44]CommunicateWithHost lk.salyk.kg:30040 [12:46:44]ConnectInit lk.salyk.kg [12:46:44]Connected sock=10 [12:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 05 7F 07 01 C4 04 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 65 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 65 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 33 D0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B6 01 00 35 04 06 00 5B CE BE 20 71 A9 61 48 B8 F4 CF 0F B8 8B [12:46:44]Write to MH i2c: 01 00 00 EB 12 FD [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 E1 0C F1 [12:46:44]RasterBufferAndPrint [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]line [12:46:44]written 0, free lines is 3303 [12:46:44]MH_Cut [12:46:44]Write to MH i2c: D1 01 00 F2 12 01 D6 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 01 00 [12:46:44]MH_I2C_Read... [12:46:44]Read from MH i2c: D1 01 00 F2 12 00 D5 [12:46:44]Write to MH i2c: 01 00 00 F3 12 05 [12:46:44]Write i2c OK [12:46:44]MH_I2C_Read... [12:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EC F6 47 00 48 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B6 01 00 F4 03 04 00 BE 77 1B 66 B6 04 01 00 00 FE BB 0F 8F 0D 77 AD 67 [12:46:44]CommunicateWithHost err = 0 [12:46:44]CheckOFDResponse [12:46:44]1017 (14) - 77093643461234 [12:46:44]1041 (16) - 0000000000875019 [12:46:44]1040 (4) - 112257 [12:46:44]1012 (4) - 14.04.2024 06:29 [12:46:44]1206 (1) - 0 [12:46:44]OFD Sender: Remove packet 112257 [12:46:44]ProducePacketName [12:46:44]name=ofd_packets/00112257 [12:46:44]NVStorageDeleteData [12:46:45]OFD Sender: No OFD packet to send [12:46:45]*** Cut start [12:46:45]*** Partial cut [12:46:45]*** CUTSNS_PIN = 1 [12:46:45]*** CUTSNS_PIN = 0 [12:46:45]*** Brake cut motor [12:46:46]Read from MH i2c: 01 [12:46:46]MH_I2C_Read... [12:46:46]*** Stop cut motor [12:46:46]*** Cut end [12:46:46]Read from MH i2c: 01 07 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: 01 07 00 F3 12 00 00 00 00 00 FF 0F 1A [12:46:46]process_action close_receipt done [12:46:46]requested_data is exist [12:46:46]produce_requested_data [12:46:46]requested_item fm.sn is exist - process it [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 11 00 00 [12:46:46]Write to MH i2c: E2 08 00 F4 12 80 11 00 00 00 00 00 00 80 [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 17 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 17 00 F4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D1 [12:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:46:46]wFMCommunicate OK [12:46:46]requested_item fd.num is exist - process it [12:46:46]SAM_PROTO_GetFieldsCounters [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 13 00 00 [12:46:46]Write to MH i2c: E2 08 00 F5 12 80 13 00 00 00 00 00 00 83 [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 62 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 62 00 F5 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 81 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [12:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 81 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_GetFieldsCounters done [12:46:46]requested_item shift.num is exist - process it [12:46:46]requested_item shift.opened is exist - process it [12:46:46]req_shift_opened [12:46:46]FM_GetShiftState [12:46:46]SAM_PROTO_GetShiftState [12:46:46]wFMCommunicate request_size=4 [12:46:46]MH_SAM_APDU [12:46:46]CAPDU: 80 13 01 00 [12:46:46]Write to MH i2c: E2 08 00 F6 12 80 13 01 00 00 00 00 00 85 [12:46:46]Write i2c OK [12:46:46]MH_I2C_Read... [12:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:46:46]Read from MH i2c: E2 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 [12:46:46]MH_I2C_Read... [12:46:46]Read from MH i2c: E2 0E 00 F6 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1D [12:46:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:46:46]wFMCommunicate OK [12:46:46]SAM_PROTO_GetShiftState done [12:46:46]FM_GetShiftState done [12:46:46]req_shift_opened done [12:46:46]requested_item shift.open_date is exist - process it [12:46:46]req_shift_open_date [12:46:46]req_shift_open_date done [12:46:46]produce_requested_data done [12:46:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112257,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:46:46]process_action_free close_receipt [12:46:46]json_value_free [12:46:46]json_value_free done [12:46:46]process_json_proto returns [12:46:46]Send response to host [12:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112257,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:46:46]free response buf [12:46:46]execute_script done [12:46:46]execute_script returns [12:46:46]free content buf [12:46:46]Sock 7.Close socket [12:46:46]Sock 7.Thread stoped [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:40]OFD Sender: No OFD packet to send [12:50:45]OFD Sender: No OFD packet to send [12:50:50]OFD Sender: No OFD packet to send [12:50:55]OFD Sender: No OFD packet to send [12:51:00]OFD Sender: No OFD packet to send [12:51:05]OFD Sender: No OFD packet to send [12:51:10]OFD Sender: No OFD packet to send [12:51:15]OFD Sender: No OFD packet to send [12:51:20]OFD Sender: No OFD packet to send [12:51:25]OFD Sender: No OFD packet to send [12:51:30]OFD Sender: No OFD packet to send [12:51:35]OFD Sender: No OFD packet to send [12:51:40]OFD Sender: No OFD packet to send [12:51:45]OFD Sender: No OFD packet to send [12:51:50]OFD Sender: No OFD packet to send [12:51:55]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:13]accept exits with 9 [12:53:13]New connection [12:53:13]New thread 3067342180 created [12:53:13]Thread 3067198820 joined [12:53:13]Waiting for new connection... [12:53:13] Sock 9.Parse request [12:53:13]Sock 9.Check first char [12:53:13]Sock 9.First char is OK [12:53:13]request: POST /json_proto HTTP/1.0 [12:53:13]Method: POST [12:53:13]URL: /json_proto [12:53:13]Method is POST - this is cgi request [12:53:13]url: /json_proto [12:53:13]query_string will be loaded in cgi processing [12:53:13]execute_cgi json_proto POST (null) [12:53:13]execute_cgi path=json_proto method=POST [12:53:13]POST find Content-Length [12:53:13]Host: 172.17.96.197:8080 [12:53:13]Content-Length: 676 [12:53:13]Content-Type: application/json [12:53:13] [12:53:13]POST finish read [12:53:13]Found Content-Length = 676 [12:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48573", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [12:53:13]execute_script... [12:53: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)48573", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [12:53:13]POST & json_proto [12:53:13]process_json_proto [12:53:13]json parsed OK: [12:53:13]protocol is kg_v1.0 [12:53:13]action value=close_receipt [12:53:13]process_action close_receipt [12:53:13]cmd_close_receipt [12:53:13]MH_GetDate [12:53:13]Write to MH i2c: F0 00 00 F7 12 F8 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: F0 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: F0 09 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: F0 09 00 F7 12 00 BA D1 1B 66 E0 85 7F 64 55 [12:53:13]GetLastDocTimeStamp 1713098803 [12:53:13]current date 1713099194 [12:53:13]FM_GetShiftState [12:53:13]SAM_PROTO_GetShiftState [12:53:13]wFMCommunicate request_size=4 [12:53:13]MH_SAM_APDU [12:53:13]CAPDU: 80 13 01 00 [12:53:13]Write to MH i2c: E2 08 00 F8 12 80 13 01 00 00 00 00 00 87 [12:53:13]Write i2c OK [12:53:13]MH_I2C_Read... [12:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:13]Read from MH i2c: E2 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 0E 00 [12:53:13]MH_I2C_Read... [12:53:13]Read from MH i2c: E2 0E 00 F8 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1F [12:53:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:53:13]wFMCommunicate OK [12:53:13]SAM_PROTO_GetShiftState done [12:53:13]FM_GetShiftState done [12:53:13]opened in 1713054696 [12:53:13]opened+sec_in_day 1713141096 [12:53:13]quantity*price = 60056 [12:53:13]sum+1 = 60057 [12:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 157 14.04.2024 12:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112258 ФПД: 255550288932675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125314&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112258&fm=255550288932675&tin=02508201610067®Number=0000000000094237&sum=60000 [12:53:14]StoreToDocumentArchive [12:53:14]shift 357 fd 112258 [12:53:14]save to /storage/0357/doc_00112258 [12:53:14]save last doc name /storage/0357/doc_00112258 to /storage/kkm_last_doc_name [12:53:14]save OK [12:53:14]Clear old archive folders... [12:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:53:14]tlvbuf is 0177D560 [12:53:14]SAM_PROTO_ClearQueue [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 09 00 00 [12:53:14]Write to MH i2c: E2 08 00 05 13 80 09 00 00 00 00 00 00 8A [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 05 13 00 90 00 8C [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]SAM_PROTO_ClearQueue done [12:53:14]KKMCreateOFDPacket [12:53:14]OFDProtocolAddRootSTLVToBuf [12:53:14]FM_MakeSignedData [12:53:14]FM_MakeSignedData [12:53:14]SAM_PROTO_SignData [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 01 02 [12:53:14]Write to MH i2c: E2 08 00 06 13 80 0D 01 02 00 00 00 00 92 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 06 13 00 90 00 8D [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=255 [12:53:14]MH_SAM_APDU [12:53:14]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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 9D 00 00 00 F4 03 04 00 BA D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B6 01 00 35 04 06 00 E8 [12:53:14]Write to MH i2c: E2 02 01 07 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 9D 00 00 00 F4 03 04 00 BA D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B6 01 00 35 04 06 00 E8 00 00 CE [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 07 13 00 90 00 8E [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=10 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 02 02 05 6B F0 31 AF 43 [12:53:14]Write to MH i2c: E2 0D 00 08 13 80 0D 02 02 05 00 6B F0 31 AF 43 00 00 1D [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:14]Read from MH i2c: E2 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 [12:53:14]MH_I2C_Read... [12:53:14]Read from MH i2c: E2 03 00 08 13 00 90 00 8F [12:53:14]RAPDU: 90 00 [12:53:14]wFMCommunicate OK [12:53:14]wFMCommunicate request_size=4 [12:53:14]MH_SAM_APDU [12:53:14]CAPDU: 80 0D 03 02 [12:53:14]Write to MH i2c: E2 08 00 09 13 80 0D 03 02 00 00 00 00 97 [12:53:14]Write i2c OK [12:53:14]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0B 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 0B 00 09 13 00 48 9B D1 9F 2D 33 69 4F 90 00 03 [12:53:15]RAPDU: 48 9B D1 9F 2D 33 69 4F 90 00 [12:53:15]wFMCommunicate OK [12:53:15]SAM_PROTO_SignData done [12:53:15]FM_MakeSignedData done [12:53:15]CreateOFDProtocolMessage [12:53:15]wFMCommunicate request_size=4 [12:53:15]MH_SAM_APDU [12:53:15]CAPDU: 80 11 00 00 [12:53:15]Write to MH i2c: E2 08 00 0A 13 80 11 00 00 00 00 00 00 97 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:15]Read from MH i2c: E2 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 17 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: E2 17 00 0A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [12:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:53:15]wFMCommunicate OK [12:53:15]CreateOFDProtocolMessage done [12:53:15]OFDSenderStorePacket 112258 [12:53:15]StoreOFDPacket docnum=112258 [12:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 48 86 07 01 EB F4 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 9D 00 00 00 F4 03 04 00 BA D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B6 01 00 35 04 06 00 E8 6B F0 31 AF 43 48 9B D1 9F 2D 33 69 4F [12:53:15]CheckFolder [12:53:15]dirname=/storage/ofd_packets [12:53:15]CheckFolder done [12:53:15]ProducePacketName [12:53:15]name=ofd_packets/00112258 [12:53:15]NVStorageSaveData ofd_packets/00112258 [12:53:15]File name is /storage/ofd_packets/00112258 [12:53:15]Write 301 bytes [12:53:15]NVStorageSaveData done [12:53:15]OFDSenderStorePacket done [12:53:15]KKMCreateOFDPacket done [12:53:15]NVStorageSaveData kkm_last_timestamp [12:53:15]File name is /storage/kkm_last_timestamp [12:53:15]Write 4 bytes [12:53:15]NVStorageSaveData done [12:53:15]ExternCall_PrintAddStr [12:53:15]wPrintStart [12:53:15]Write to MH i2c: 01 00 00 0B 13 1E [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [12:53:15]RasterBufferAndPrint [12:53:15]line Счет N : (1)48573 [12:53:15]line ИНН: 02508201610067 [12:53:15]line Контрольно-Кассовый Чек [12:53:15]line ПРОДАЖА [12:53:15]line ТРК (МРК, ГНК) : 32 [12:53:15]line Товар: 2710124130 [12:53:15]line Аи-92-К-5 [12:53:15]line 9.340 * 64.30 [12:53:15]line = 600.56 [12:53:15]line НДС 12% НСП 1% [12:53:15]line > о реализуемом товаре [12:53:15]line ОКРУГЛЕНИЕ: -0.56 [12:53:15]line ИТОГО: 600.00 [12:53:15]line Внесено: 600.00 [12:53:15]line СДАЧА: 0.00 [12:53:15]line НСП 1% : 5.31 [12:53:15]line НДС 12% : 63.78 [12:53:15]line Наличными: 600.00 [12:53:15]line Безнал.: 0.00 [12:53:15]line Место: АЗС № 47 "Партнер Нефть" [12:53:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:53:15]line СНО: Общий режим [12:53:15]line Чек 157 14.04.2024 12:53 [12:53:15]line Смена: 357 ФФД: 1.0 [12:53:15]line ЗНМ: 0300000138 [12:53:15]line РНМ: 0000000000094237 [12:53:15]line Версия ККМ: 001 [12:53:15]line ФМ: 0000000000875019 [12:53:15]line ФД: 112258 [12:53:15]line ФПД: 255550288932675 [12:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125314&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112258&fm=255550288932675&tin=02508201610067®Number=0000000000094237&sum=60000 [12:53:15]OFD Sender: Processing packet 112258 [packets to send 71, broken 70] [12:53:15]ProducePacketName [12:53:15]name=ofd_packets/00112258 [12:53:15]OFD Sender: To server: pG, [12:53:15]CommunicateWithHost lk.salyk.kg:30040 [12:53:15]ConnectInit lk.salyk.kg [12:53:15]written 0, free lines is 4095 [12:53:15]Connected sock=10 [12:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 48 86 07 01 EB F4 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 9D 00 00 00 F4 03 04 00 BA D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B6 01 00 35 04 06 00 E8 6B F0 31 AF 43 48 9B D1 9F 2D 33 69 4F [12:53:15]Write to MH i2c: 01 00 00 36 13 49 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: 01 07 00 36 13 00 00 00 00 00 D4 0C 30 [12:53:15]RasterBufferAndPrint [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]line [12:53:15]written 0, free lines is 3292 [12:53:15]MH_Cut [12:53:15]Write to MH i2c: D1 01 00 3D 13 01 22 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: D1 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: D1 01 00 [12:53:15]MH_I2C_Read... [12:53:15]Read from MH i2c: D1 01 00 3D 13 00 21 [12:53:15]Write to MH i2c: 01 00 00 3E 13 51 [12:53:15]Write i2c OK [12:53:15]MH_I2C_Read... [12:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9D 65 47 00 F4 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B6 01 00 F4 03 04 00 45 79 1B 66 B6 04 01 00 00 72 C8 5C 73 C9 6E 65 AA [12:53:15]CommunicateWithHost err = 0 [12:53:15]CheckOFDResponse [12:53:15]1017 (14) - 77093643461234 [12:53:15]1041 (16) - 0000000000875019 [12:53:15]1040 (4) - 112258 [12:53:15]1012 (4) - 14.04.2024 06:35 [12:53:15]1206 (1) - 0 [12:53:15]OFD Sender: Remove packet 112258 [12:53:15]ProducePacketName [12:53:15]name=ofd_packets/00112258 [12:53:15]NVStorageDeleteData [12:53:16]OFD Sender: No OFD packet to send [12:53:16]*** Cut start [12:53:16]*** Partial cut [12:53:16]*** CUTSNS_PIN = 1 [12:53:16]*** CUTSNS_PIN = 0 [12:53:16]*** Brake cut motor [12:53:17]Read from MH i2c: 01 [12:53:17]MH_I2C_Read... [12:53:17]*** Stop cut motor [12:53:17]*** Cut end [12:53:17]Read from MH i2c: 01 07 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: 01 07 00 3E 13 00 00 00 00 00 FF 0F 66 [12:53:17]process_action close_receipt done [12:53:17]requested_data is exist [12:53:17]produce_requested_data [12:53:17]requested_item fm.sn is exist - process it [12:53:17]wFMCommunicate request_size=4 [12:53:17]MH_SAM_APDU [12:53:17]CAPDU: 80 11 00 00 [12:53:17]Write to MH i2c: E2 08 00 3F 13 80 11 00 00 00 00 00 00 CC [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:17]Read from MH i2c: E2 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 17 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 17 00 3F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1D [12:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:53:17]wFMCommunicate OK [12:53:17]requested_item fd.num is exist - process it [12:53:17]SAM_PROTO_GetFieldsCounters [12:53:17]wFMCommunicate request_size=4 [12:53:17]MH_SAM_APDU [12:53:17]CAPDU: 80 13 00 00 [12:53:17]Write to MH i2c: E2 08 00 40 13 80 13 00 00 00 00 00 00 CF [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:17]Read from MH i2c: E2 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 62 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 62 00 40 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 82 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [12:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 82 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:17]wFMCommunicate OK [12:53:17]SAM_PROTO_GetFieldsCounters done [12:53:17]requested_item shift.num is exist - process it [12:53:17]requested_item shift.opened is exist - process it [12:53:17]req_shift_opened [12:53:17]FM_GetShiftState [12:53:17]SAM_PROTO_GetShiftState [12:53:17]wFMCommunicate request_size=4 [12:53:17]MH_SAM_APDU [12:53:17]CAPDU: 80 13 01 00 [12:53:17]Write to MH i2c: E2 08 00 41 13 80 13 01 00 00 00 00 00 D1 [12:53:17]Write i2c OK [12:53:17]MH_I2C_Read... [12:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:17]Read from MH i2c: E2 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 0E 00 [12:53:17]MH_I2C_Read... [12:53:17]Read from MH i2c: E2 0E 00 41 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 69 [12:53:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:53:17]wFMCommunicate OK [12:53:17]SAM_PROTO_GetShiftState done [12:53:17]FM_GetShiftState done [12:53:17]req_shift_opened done [12:53:17]requested_item shift.open_date is exist - process it [12:53:17]req_shift_open_date [12:53:17]req_shift_open_date done [12:53:17]produce_requested_data done [12:53:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112258,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:53:17]process_action_free close_receipt [12:53:17]json_value_free [12:53:17]json_value_free done [12:53:17]process_json_proto returns [12:53:17]Send response to host [12:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112258,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:53:17]free response buf [12:53:17]execute_script done [12:53:17]execute_script returns [12:53:17]free content buf [12:53:17]Sock 9.Close socket [12:53:17]Sock 9.Thread stoped [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:44]accept exits with 7 [12:53:44]New connection [12:53:44]New thread 3067198820 created [12:53:44]Thread 3067342180 joined [12:53:44]Waiting for new connection... [12:53:44] Sock 7.Parse request [12:53:44]Sock 7.Check first char [12:53:44]Sock 7.First char is OK [12:53:44]request: POST /json_proto HTTP/1.0 [12:53:44]Method: POST [12:53:44]URL: /json_proto [12:53:44]Method is POST - this is cgi request [12:53:44]url: /json_proto [12:53:44]query_string will be loaded in cgi processing [12:53:44]execute_cgi json_proto POST (null) [12:53:44]execute_cgi path=json_proto method=POST [12:53:44]POST find Content-Length [12:53:44]Host: 172.17.96.197:8080 [12:53:44]Content-Length: 680 [12:53:44]Content-Type: application/json [12:53:44] [12:53:44]POST finish read [12:53:44]Found Content-Length = 680 [12:53:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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" ] } } [12:53:44]execute_script... [12:53:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "sum" : 700.11, "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" ] } } [12:53:44]POST & json_proto [12:53:44]process_json_proto [12:53:44]json parsed OK: [12:53:44]protocol is kg_v1.0 [12:53:44]action value=close_receipt [12:53:44]process_action close_receipt [12:53:44]cmd_close_receipt [12:53:44]MH_GetDate [12:53:44]Write to MH i2c: F0 00 00 42 13 44 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 09 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: F0 09 00 42 13 00 D9 D1 1B 66 E0 85 7F 64 C0 [12:53:44]GetLastDocTimeStamp 1713099194 [12:53:44]current date 1713099225 [12:53:44]FM_GetShiftState [12:53:44]SAM_PROTO_GetShiftState [12:53:44]wFMCommunicate request_size=4 [12:53:44]MH_SAM_APDU [12:53:44]CAPDU: 80 13 01 00 [12:53:44]Write to MH i2c: E2 08 00 43 13 80 13 01 00 00 00 00 00 D3 [12:53:44]Write i2c OK [12:53:44]MH_I2C_Read... [12:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:44]Read from MH i2c: E2 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 [12:53:44]MH_I2C_Read... [12:53:44]Read from MH i2c: E2 0E 00 43 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6B [12:53:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:53:44]wFMCommunicate OK [12:53:44]SAM_PROTO_GetShiftState done [12:53:44]FM_GetShiftState done [12:53:44]opened in 1713054696 [12:53:44]opened+sec_in_day 1713141096 [12:53:44]quantity*price = 70010 [12:53:44]sum+1 = 70012 [12:53:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 158 14.04.2024 12:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112259 ФПД: 84440127908622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125345&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112259&fm=84440127908622&tin=02508201610067®Number=0000000000094237&sum=70000 [12:53:45]StoreToDocumentArchive [12:53:45]shift 357 fd 112259 [12:53:45]save to /storage/0357/doc_00112259 [12:53:45]save last doc name /storage/0357/doc_00112259 to /storage/kkm_last_doc_name [12:53:45]save OK [12:53:45]Clear old archive folders... [12:53:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:53:45]tlvbuf is 017DC640 [12:53:45]SAM_PROTO_ClearQueue [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 09 00 00 [12:53:45]Write to MH i2c: E2 08 00 50 13 80 09 00 00 00 00 00 00 D5 [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 50 13 00 90 00 D7 [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]SAM_PROTO_ClearQueue done [12:53:45]KKMCreateOFDPacket [12:53:45]OFDProtocolAddRootSTLVToBuf [12:53:45]FM_MakeSignedData [12:53:45]FM_MakeSignedData [12:53:45]SAM_PROTO_SignData [12:53:45]wFMCommunicate request_size=4 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 01 02 [12:53:45]Write to MH i2c: E2 08 00 51 13 80 0D 01 02 00 00 00 00 DD [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:45]Read from MH i2c: E2 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 [12:53:45]MH_I2C_Read... [12:53:45]Read from MH i2c: E2 03 00 51 13 00 90 00 D8 [12:53:45]RAPDU: 90 00 [12:53:45]wFMCommunicate OK [12:53:45]wFMCommunicate request_size=255 [12:53:45]MH_SAM_APDU [12:53:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 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 0B 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 9E 00 00 00 F4 03 04 00 D9 D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B6 01 00 35 04 06 00 4C CC [12:53:45]Write to MH i2c: E2 02 01 52 13 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 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 0B 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 9E 00 00 00 F4 03 04 00 D9 D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B6 01 00 35 04 06 00 4C CC 00 00 FB [12:53:45]Write i2c OK [12:53:45]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 52 13 00 90 00 D9 [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=9 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 02 02 04 3F D4 2B 0E [12:53:46]Write to MH i2c: E2 0C 00 53 13 80 0D 02 02 04 00 3F D4 2B 0E 00 00 34 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 03 00 53 13 00 90 00 DA [12:53:46]RAPDU: 90 00 [12:53:46]wFMCommunicate OK [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 0D 03 02 [12:53:46]Write to MH i2c: E2 08 00 54 13 80 0D 03 02 00 00 00 00 E2 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 0B 00 54 13 00 AD E4 2D 62 95 5C 7C B0 90 00 20 [12:53:46]RAPDU: AD E4 2D 62 95 5C 7C B0 90 00 [12:53:46]wFMCommunicate OK [12:53:46]SAM_PROTO_SignData done [12:53:46]FM_MakeSignedData done [12:53:46]CreateOFDProtocolMessage [12:53:46]wFMCommunicate request_size=4 [12:53:46]MH_SAM_APDU [12:53:46]CAPDU: 80 11 00 00 [12:53:46]Write to MH i2c: E2 08 00 55 13 80 11 00 00 00 00 00 00 E2 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:46]Read from MH i2c: E2 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: E2 17 00 55 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 33 [12:53:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:53:46]wFMCommunicate OK [12:53:46]CreateOFDProtocolMessage done [12:53:46]OFDSenderStorePacket 112259 [12:53:46]StoreOFDPacket docnum=112259 [12:53:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 7F D6 06 01 40 EE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 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 0B 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 9E 00 00 00 F4 03 04 00 D9 D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B6 01 00 35 04 06 00 4C CC 3F D4 2B 0E AD E4 2D 62 95 5C 7C B0 [12:53:46]CheckFolder [12:53:46]dirname=/storage/ofd_packets [12:53:46]CheckFolder done [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00112259 [12:53:46]NVStorageSaveData ofd_packets/00112259 [12:53:46]File name is /storage/ofd_packets/00112259 [12:53:46]Write 300 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFDSenderStorePacket done [12:53:46]KKMCreateOFDPacket done [12:53:46]NVStorageSaveData kkm_last_timestamp [12:53:46]File name is /storage/kkm_last_timestamp [12:53:46]Write 4 bytes [12:53:46]NVStorageSaveData done [12:53:46]OFD Sender: Processing packet 112259 [packets to send 71, broken 70] [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00112259 [12:53:46]OFD Sender: To server: pG, [12:53:46]CommunicateWithHost lk.salyk.kg:30040 [12:53:46]ConnectInit lk.salyk.kg [12:53:46]ExternCall_PrintAddStr [12:53:46]wPrintStart [12:53:46]Write to MH i2c: 01 00 00 56 13 69 [12:53:46]Write i2c OK [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 [12:53:46]MH_I2C_Read... [12:53:46]Read from MH i2c: 01 07 00 56 13 00 00 00 00 00 FF 0F 7E [12:53:46]RasterBufferAndPrint [12:53:46]line Счет N : (1)48572 [12:53:46]line ИНН: 02508201610067 [12:53:46]line Контрольно-Кассовый Чек [12:53:46]line ПРОДАЖА [12:53:46]line ТРК (МРК, ГНК) : 72 [12:53:46]line Товар: 2711190000 [12:53:46]line ГАЗ-К-5 [12:53:46]line 21.410 * 32.70 [12:53:46]line = 700.11 [12:53:46]line НДС 12% НСП 1% [12:53:46]line > о реализуемом товаре [12:53:46]line ОКРУГЛЕНИЕ: -0.11 [12:53:46]line ИТОГО: 700.00 [12:53:46]line Внесено: 700.00 [12:53:46]line СДАЧА: 0.00 [12:53:46]line НСП 1% : 6.20 [12:53:46]line НДС 12% : 74.35 [12:53:46]line Наличными: 700.00 [12:53:46]line Безнал.: 0.00 [12:53:46]line Место: АЗС № 47 "Партнер Нефть" [12:53:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:53:46]line СНО: Общий режим [12:53:46]line Чек 158 14.04.2024 12:53 [12:53:46]line Смена: 357 ФФД: 1.0 [12:53:46]line ЗНМ: 0300000138 [12:53:46]line РНМ: 0000000000094237 [12:53:46]line Версия ККМ: 001 [12:53:46]line ФМ: 0000000000875019 [12:53:46]line ФД: 112259 [12:53:46]line ФПД: 84440127908622 [12:53:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125345&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112259&fm=84440127908622&tin=02508201610067®Number=0000000000094237&sum=70000 [12:53:46]Connected sock=11 [12:53:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 7F D6 06 01 40 EE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 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 0B 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 9E 00 00 00 F4 03 04 00 D9 D1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B6 01 00 35 04 06 00 4C CC 3F D4 2B 0E AD E4 2D 62 95 5C 7C B0 [12:53:46]written 0, free lines is 4095 [12:53:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 82 6E 47 00 D0 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 38 37 35 30 31 39 10 04 04 00 83 B6 01 00 F4 03 04 00 64 79 1B 66 B6 04 01 00 00 C0 82 22 36 FE BD 35 F9 [12:53:46]CommunicateWithHost err = 0 [12:53:46]CheckOFDResponse [12:53:46]1017 (14) - 77093643461234 [12:53:46]1041 (16) - 0000000000875019 [12:53:46]1040 (4) - 112259 [12:53:46]1012 (4) - 14.04.2024 06:36 [12:53:46]1206 (1) - 0 [12:53:46]OFD Sender: Remove packet 112259 [12:53:46]ProducePacketName [12:53:46]name=ofd_packets/00112259 [12:53:46]NVStorageDeleteData [12:53:47]Write to MH i2c: 01 00 00 81 13 94 [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: 01 07 00 81 13 00 00 00 00 00 CC 0C 73 [12:53:47]RasterBufferAndPrint [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]line [12:53:47]written 0, free lines is 3285 [12:53:47]MH_Cut [12:53:47]Write to MH i2c: D1 01 00 88 13 01 6D [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 [12:53:47]MH_I2C_Read... [12:53:47]Read from MH i2c: D1 01 00 88 13 00 6C [12:53:47]Write to MH i2c: 01 00 00 89 13 9C [12:53:47]Write i2c OK [12:53:47]MH_I2C_Read... [12:53:47]OFD Sender: No OFD packet to send [12:53:47]*** Cut start [12:53:47]*** Partial cut [12:53:47]*** CUTSNS_PIN = 1 [12:53:47]*** CUTSNS_PIN = 0 [12:53:48]*** Brake cut motor [12:53:48]Read from MH i2c: 01 [12:53:48]MH_I2C_Read... [12:53:48]*** Stop cut motor [12:53:48]*** Cut end [12:53:48]Read from MH i2c: 01 07 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: 01 07 00 89 13 00 00 00 00 00 FF 0F B1 [12:53:48]process_action close_receipt done [12:53:48]requested_data is exist [12:53:48]produce_requested_data [12:53:48]requested_item fm.sn is exist - process it [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 11 00 00 [12:53:48]Write to MH i2c: E2 08 00 8A 13 80 11 00 00 00 00 00 00 17 [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 17 00 8A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 68 [12:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:53:48]wFMCommunicate OK [12:53:48]requested_item fd.num is exist - process it [12:53:48]SAM_PROTO_GetFieldsCounters [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 00 00 [12:53:48]Write to MH i2c: E2 08 00 8B 13 80 13 00 00 00 00 00 00 1A [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 62 00 8B 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 83 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:53:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 83 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetFieldsCounters done [12:53:48]requested_item shift.num is exist - process it [12:53:48]requested_item shift.opened is exist - process it [12:53:48]req_shift_opened [12:53:48]FM_GetShiftState [12:53:48]SAM_PROTO_GetShiftState [12:53:48]wFMCommunicate request_size=4 [12:53:48]MH_SAM_APDU [12:53:48]CAPDU: 80 13 01 00 [12:53:48]Write to MH i2c: E2 08 00 8C 13 80 13 01 00 00 00 00 00 1C [12:53:48]Write i2c OK [12:53:48]MH_I2C_Read... [12:53:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:48]Read from MH i2c: E2 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 [12:53:48]MH_I2C_Read... [12:53:48]Read from MH i2c: E2 0E 00 8C 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B4 [12:53:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:53:48]wFMCommunicate OK [12:53:48]SAM_PROTO_GetShiftState done [12:53:48]FM_GetShiftState done [12:53:48]req_shift_opened done [12:53:48]requested_item shift.open_date is exist - process it [12:53:48]req_shift_open_date [12:53:48]req_shift_open_date done [12:53:48]produce_requested_data done [12:53:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112259,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:53:48]process_action_free close_receipt [12:53:48]json_value_free [12:53:48]json_value_free done [12:53:48]process_json_proto returns [12:53:48]Send response to host [12:53:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112259,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:53:48]free response buf [12:53:48]execute_script done [12:53:48]execute_script returns [12:53:48]free content buf [12:53:48]Sock 7.Close socket [12:53:48]Sock 7.Thread stoped [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:51]accept exits with 9 [12:54:51]New connection [12:54:51]New thread 3067342180 created [12:54:51]Thread 3067198820 joined [12:54:51]Waiting for new connection... [12:54:51] Sock 9.Parse request [12:54:51]Sock 9.Check first char [12:54:51]Sock 9.First char is OK [12:54:51]request: POST /json_proto HTTP/1.0 [12:54:51]Method: POST [12:54:51]URL: /json_proto [12:54:51]Method is POST - this is cgi request [12:54:51]url: /json_proto [12:54:51]query_string will be loaded in cgi processing [12:54:51]execute_cgi json_proto POST (null) [12:54:51]execute_cgi path=json_proto method=POST [12:54:51]POST find Content-Length [12:54:51]Host: 172.17.96.197:8080 [12:54:51]Content-Length: 676 [12:54:51]Content-Type: application/json [12:54:51] [12:54:51]POST finish read [12:54:51]Found Content-Length = 676 [12:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:54:51]execute_script... [12:54: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)48574", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:54:51]POST & json_proto [12:54:51]process_json_proto [12:54:51]json parsed OK: [12:54:51]protocol is kg_v1.0 [12:54:51]action value=close_receipt [12:54:51]process_action close_receipt [12:54:51]cmd_close_receipt [12:54:51]MH_GetDate [12:54:51]Write to MH i2c: F0 00 00 8D 13 8F [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: F0 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: F0 09 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: F0 09 00 8D 13 00 1C D2 1B 66 E0 85 7F 64 4F [12:54:51]GetLastDocTimeStamp 1713099225 [12:54:51]current date 1713099292 [12:54:51]FM_GetShiftState [12:54:51]SAM_PROTO_GetShiftState [12:54:51]wFMCommunicate request_size=4 [12:54:51]MH_SAM_APDU [12:54:51]CAPDU: 80 13 01 00 [12:54:51]Write to MH i2c: E2 08 00 8E 13 80 13 01 00 00 00 00 00 1E [12:54:51]Write i2c OK [12:54:51]MH_I2C_Read... [12:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:51]Read from MH i2c: E2 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 [12:54:51]MH_I2C_Read... [12:54:51]Read from MH i2c: E2 0E 00 8E 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B6 [12:54:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:54:51]wFMCommunicate OK [12:54:51]SAM_PROTO_GetShiftState done [12:54:51]FM_GetShiftState done [12:54:51]opened in 1713054696 [12:54:51]opened+sec_in_day 1713141096 [12:54:51]quantity*price = 50025 [12:54:51]sum+1 = 50026 [12:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 159 14.04.2024 12:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112260 ФПД: 269567579399580 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125452&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112260&fm=269567579399580&tin=02508201610067®Number=0000000000094237&sum=50000 [12:54:52]StoreToDocumentArchive [12:54:52]shift 357 fd 112260 [12:54:52]save to /storage/0357/doc_00112260 [12:54:52]save last doc name /storage/0357/doc_00112260 to /storage/kkm_last_doc_name [12:54:52]save OK [12:54:52]Clear old archive folders... [12:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:54:52]tlvbuf is 0184A800 [12:54:52]SAM_PROTO_ClearQueue [12:54:52]wFMCommunicate request_size=4 [12:54:52]MH_SAM_APDU [12:54:52]CAPDU: 80 09 00 00 [12:54:52]Write to MH i2c: E2 08 00 9B 13 80 09 00 00 00 00 00 00 20 [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:54:52]Read from MH i2c: E2 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 03 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 03 00 9B 13 00 90 00 22 [12:54:52]RAPDU: 90 00 [12:54:52]wFMCommunicate OK [12:54:52]SAM_PROTO_ClearQueue done [12:54:52]KKMCreateOFDPacket [12:54:52]OFDProtocolAddRootSTLVToBuf [12:54:52]FM_MakeSignedData [12:54:52]FM_MakeSignedData [12:54:52]SAM_PROTO_SignData [12:54:52]wFMCommunicate request_size=4 [12:54:52]MH_SAM_APDU [12:54:52]CAPDU: 80 0D 01 02 [12:54:52]Write to MH i2c: E2 08 00 9C 13 80 0D 01 02 00 00 00 00 28 [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:54:52]Read from MH i2c: E2 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 03 00 [12:54:52]MH_I2C_Read... [12:54:52]Read from MH i2c: E2 03 00 9C 13 00 90 00 23 [12:54:52]RAPDU: 90 00 [12:54:52]wFMCommunicate OK [12:54:52]wFMCommunicate request_size=255 [12:54:52]MH_SAM_APDU [12:54: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 9F 00 00 00 F4 03 04 00 1C D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B6 01 00 35 04 06 00 F5 [12:54:52]Write to MH i2c: E2 02 01 9D 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 9F 00 00 00 F4 03 04 00 1C D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B6 01 00 35 04 06 00 F5 00 00 6F [12:54:52]Write i2c OK [12:54:52]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 03 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 03 00 9D 13 00 90 00 24 [12:54:53]RAPDU: 90 00 [12:54:53]wFMCommunicate OK [12:54:53]wFMCommunicate request_size=10 [12:54:53]MH_SAM_APDU [12:54:53]CAPDU: 80 0D 02 02 05 2B 97 D0 25 9C [12:54:53]Write to MH i2c: E2 0D 00 9E 13 80 0D 02 02 05 00 2B 97 D0 25 9C 00 00 88 [12:54:53]Write i2c OK [12:54:53]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 03 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 03 00 9E 13 00 90 00 25 [12:54:53]RAPDU: 90 00 [12:54:53]wFMCommunicate OK [12:54:53]wFMCommunicate request_size=4 [12:54:53]MH_SAM_APDU [12:54:53]CAPDU: 80 0D 03 02 [12:54:53]Write to MH i2c: E2 08 00 9F 13 80 0D 03 02 00 00 00 00 2D [12:54:53]Write i2c OK [12:54:53]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 0B 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 0B 00 9F 13 00 47 AF 76 5A 8C 4C 2B 11 90 00 08 [12:54:53]RAPDU: 47 AF 76 5A 8C 4C 2B 11 90 00 [12:54:53]wFMCommunicate OK [12:54:53]SAM_PROTO_SignData done [12:54:53]FM_MakeSignedData done [12:54:53]CreateOFDProtocolMessage [12:54:53]wFMCommunicate request_size=4 [12:54:53]MH_SAM_APDU [12:54:53]CAPDU: 80 11 00 00 [12:54:53]Write to MH i2c: E2 08 00 A0 13 80 11 00 00 00 00 00 00 2D [12:54:53]Write i2c OK [12:54:53]MH_I2C_Read... [12:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:53]Read from MH i2c: E2 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 17 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: E2 17 00 A0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7E [12:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:54:53]wFMCommunicate OK [12:54:53]CreateOFDProtocolMessage done [12:54:53]OFDSenderStorePacket 112260 [12:54:53]StoreOFDPacket docnum=112260 [12:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CC 57 07 01 36 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 9F 00 00 00 F4 03 04 00 1C D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B6 01 00 35 04 06 00 F5 2B 97 D0 25 9C 47 AF 76 5A 8C 4C 2B 11 [12:54:53]CheckFolder [12:54:53]dirname=/storage/ofd_packets [12:54:53]CheckFolder done [12:54:53]ProducePacketName [12:54:53]name=ofd_packets/00112260 [12:54:53]NVStorageSaveData ofd_packets/00112260 [12:54:53]File name is /storage/ofd_packets/00112260 [12:54:53]Write 301 bytes [12:54:53]NVStorageSaveData done [12:54:53]OFDSenderStorePacket done [12:54:53]KKMCreateOFDPacket done [12:54:53]NVStorageSaveData kkm_last_timestamp [12:54:53]File name is /storage/kkm_last_timestamp [12:54:53]Write 4 bytes [12:54:53]NVStorageSaveData done [12:54:53]ExternCall_PrintAddStr [12:54:53]wPrintStart [12:54:53]Write to MH i2c: 01 00 00 A1 13 B4 [12:54:53]Write i2c OK [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: 01 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: 01 07 00 [12:54:53]MH_I2C_Read... [12:54:53]Read from MH i2c: 01 07 00 A1 13 00 00 00 00 00 FF 0F C9 [12:54:53]RasterBufferAndPrint [12:54:53]line Счет N : (1)48574 [12:54:53]line ИНН: 02508201610067 [12:54:53]line Контрольно-Кассовый Чек [12:54:53]line ПРОДАЖА [12:54:53]line ТРК (МРК, ГНК) : 11 [12:54:53]line Товар: 2710124130 [12:54:53]line Аи-92-К-5 [12:54:53]line 7.780 * 64.30 [12:54:53]line = 500.25 [12:54:53]line НДС 12% НСП 1% [12:54:53]line > о реализуемом товаре [12:54:53]line ОКРУГЛЕНИЕ: -0.25 [12:54:53]line ИТОГО: 500.00 [12:54:53]line Внесено: 500.00 [12:54:53]line СДАЧА: 0.00 [12:54:53]line НСП 1% : 4.43 [12:54:53]line НДС 12% : 53.12 [12:54:53]line Наличными: 500.00 [12:54:53]line Безнал.: 0.00 [12:54:53]line Место: АЗС № 47 "Партнер Нефть" [12:54:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:54:53]line СНО: Общий режим [12:54:53]line Чек 159 14.04.2024 12:54 [12:54:53]line Смена: 357 ФФД: 1.0 [12:54:53]line ЗНМ: 0300000138 [12:54:53]line РНМ: 0000000000094237 [12:54:53]line Версия ККМ: 001 [12:54:53]line ФМ: 0000000000875019 [12:54:53]line ФД: 112260 [12:54:53]line ФПД: 269567579399580 [12:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125452&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112260&fm=269567579399580&tin=02508201610067®Number=0000000000094237&sum=50000 [12:54:53]OFD Sender: Processing packet 112260 [packets to send 71, broken 70] [12:54:53]ProducePacketName [12:54:53]name=ofd_packets/00112260 [12:54:53]OFD Sender: To server: pG, [12:54:53]CommunicateWithHost lk.salyk.kg:30040 [12:54:53]ConnectInit lk.salyk.kg [12:54:53]written 0, free lines is 4095 [12:54:53]Connected sock=10 [12:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CC 57 07 01 36 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 9F 00 00 00 F4 03 04 00 1C D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B6 01 00 35 04 06 00 F5 2B 97 D0 25 9C 47 AF 76 5A 8C 4C 2B 11 [12:54:54]Write to MH i2c: 01 00 00 CC 13 DF [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: 01 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: 01 07 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: 01 07 00 CC 13 00 00 00 00 00 DC 0C CE [12:54:54]RasterBufferAndPrint [12:54:54]line [12:54:54]line [12:54:54]line [12:54:54]line [12:54:54]line [12:54:54]written 0, free lines is 3298 [12:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 49 33 47 00 CE 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 38 37 35 30 31 39 10 04 04 00 84 B6 01 00 F4 03 04 00 A8 79 1B 66 B6 04 01 00 00 0D F3 75 E9 B4 DD DB E5 [12:54:54]CommunicateWithHost err = 0 [12:54:54]CheckOFDResponse [12:54:54]1017 (14) - 77093643461234 [12:54:54]1041 (16) - 0000000000875019 [12:54:54]1040 (4) - 112260 [12:54:54]1012 (4) - 14.04.2024 06:37 [12:54:54]1206 (1) - 0 [12:54:54]OFD Sender: Remove packet 112260 [12:54:54]ProducePacketName [12:54:54]name=ofd_packets/00112260 [12:54:54]NVStorageDeleteData [12:54:54]MH_Cut [12:54:54]Write to MH i2c: D1 01 00 D3 13 01 B8 [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: D1 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: D1 01 00 [12:54:54]MH_I2C_Read... [12:54:54]Read from MH i2c: D1 01 00 D3 13 00 B7 [12:54:54]Write to MH i2c: 01 00 00 D4 13 E7 [12:54:54]Write i2c OK [12:54:54]MH_I2C_Read... [12:54:54]OFD Sender: No OFD packet to send [12:54:54]*** Cut start [12:54:54]*** Partial cut [12:54:54]*** CUTSNS_PIN = 1 [12:54:54]*** CUTSNS_PIN = 0 [12:54:55]*** Brake cut motor [12:54:55]Read from MH i2c: 01 [12:54:55]MH_I2C_Read... [12:54:55]*** Stop cut motor [12:54:55]*** Cut end [12:54:55]Read from MH i2c: 01 07 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: 01 07 00 D4 13 00 00 00 00 00 FF 0F FC [12:54:55]process_action close_receipt done [12:54:55]requested_data is exist [12:54:55]produce_requested_data [12:54:55]requested_item fm.sn is exist - process it [12:54:55]wFMCommunicate request_size=4 [12:54:55]MH_SAM_APDU [12:54:55]CAPDU: 80 11 00 00 [12:54:55]Write to MH i2c: E2 08 00 D5 13 80 11 00 00 00 00 00 00 62 [12:54:55]Write i2c OK [12:54:55]MH_I2C_Read... [12:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:55]Read from MH i2c: E2 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 17 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 17 00 D5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B3 [12:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:54:55]wFMCommunicate OK [12:54:55]requested_item fd.num is exist - process it [12:54:55]SAM_PROTO_GetFieldsCounters [12:54:55]wFMCommunicate request_size=4 [12:54:55]MH_SAM_APDU [12:54:55]CAPDU: 80 13 00 00 [12:54:55]Write to MH i2c: E2 08 00 D6 13 80 13 00 00 00 00 00 00 65 [12:54:55]Write i2c OK [12:54:55]MH_I2C_Read... [12:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:55]Read from MH i2c: E2 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 62 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 62 00 D6 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 84 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [12:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 84 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:54:55]wFMCommunicate OK [12:54:55]SAM_PROTO_GetFieldsCounters done [12:54:55]requested_item shift.num is exist - process it [12:54:55]requested_item shift.opened is exist - process it [12:54:55]req_shift_opened [12:54:55]FM_GetShiftState [12:54:55]SAM_PROTO_GetShiftState [12:54:55]wFMCommunicate request_size=4 [12:54:55]MH_SAM_APDU [12:54:55]CAPDU: 80 13 01 00 [12:54:55]Write to MH i2c: E2 08 00 D7 13 80 13 01 00 00 00 00 00 67 [12:54:55]Write i2c OK [12:54:55]MH_I2C_Read... [12:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:55]Read from MH i2c: E2 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 0E 00 [12:54:55]MH_I2C_Read... [12:54:55]Read from MH i2c: E2 0E 00 D7 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FF [12:54:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:54:55]wFMCommunicate OK [12:54:55]SAM_PROTO_GetShiftState done [12:54:55]FM_GetShiftState done [12:54:55]req_shift_opened done [12:54:55]requested_item shift.open_date is exist - process it [12:54:55]req_shift_open_date [12:54:55]req_shift_open_date done [12:54:55]produce_requested_data done [12:54:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112260,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:54:55]process_action_free close_receipt [12:54:55]json_value_free [12:54:55]json_value_free done [12:54:55]process_json_proto returns [12:54:55]Send response to host [12:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112260,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:54:55]free response buf [12:54:55]execute_script done [12:54:55]execute_script returns [12:54:55]free content buf [12:54:55]Sock 9.Close socket [12:54:55]Sock 9.Thread stoped [12:54:59]OFD Sender: No OFD packet to send [12:55:04]OFD Sender: No OFD packet to send [12:55:09]OFD Sender: No OFD packet to send [12:55:14]OFD Sender: No OFD packet to send [12:55:19]OFD Sender: No OFD packet to send [12:55:24]OFD Sender: No OFD packet to send [12:55:29]OFD Sender: No OFD packet to send [12:55:34]OFD Sender: No OFD packet to send [12:55:39]OFD Sender: No OFD packet to send [12:55:42]accept exits with 7 [12:55:42]New connection [12:55:42]New thread 3067198820 created [12:55:42]Thread 3067342180 joined [12:55:42]Waiting for new connection... [12:55:42] Sock 7.Parse request [12:55:42]Sock 7.Check first char [12:55:42]Sock 7.First char is OK [12:55:42]request: POST /json_proto HTTP/1.0 [12:55:42]Method: POST [12:55:42]URL: /json_proto [12:55:42]Method is POST - this is cgi request [12:55:42]url: /json_proto [12:55:42]query_string will be loaded in cgi processing [12:55:42]execute_cgi json_proto POST (null) [12:55:42]execute_cgi path=json_proto method=POST [12:55:42]POST find Content-Length [12:55:42]Host: 172.17.96.197:8080 [12:55:42]Content-Length: 629 [12:55:42]Content-Type: application/json [12:55:42] [12:55:42]POST finish read [12:55:42]Found Content-Length = 629 [12:55:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10418", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:42]execute_script... [12:55:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10418", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:55:42]POST & json_proto [12:55:42]process_json_proto [12:55:42]json parsed OK: [12:55:42]protocol is kg_v1.0 [12:55:42]action value=close_receipt [12:55:42]process_action close_receipt [12:55:42]cmd_close_receipt [12:55:42]MH_GetDate [12:55:42]Write to MH i2c: F0 00 00 D8 13 DA [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 09 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: F0 09 00 D8 13 00 4F D2 1B 66 E0 85 7F 64 CD [12:55:42]GetLastDocTimeStamp 1713099292 [12:55:42]current date 1713099343 [12:55:42]FM_GetShiftState [12:55:42]SAM_PROTO_GetShiftState [12:55:42]wFMCommunicate request_size=4 [12:55:42]MH_SAM_APDU [12:55:42]CAPDU: 80 13 01 00 [12:55:42]Write to MH i2c: E2 08 00 D9 13 80 13 01 00 00 00 00 00 69 [12:55:42]Write i2c OK [12:55:42]MH_I2C_Read... [12:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:42]Read from MH i2c: E2 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: E2 0E 00 [12:55:42]MH_I2C_Read... [12:55:42]Read from MH i2c: E2 0E 00 D9 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 01 [12:55:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:55:42]wFMCommunicate OK [12:55:42]SAM_PROTO_GetShiftState done [12:55:42]FM_GetShiftState done [12:55:42]opened in 1713054696 [12:55:42]opened+sec_in_day 1713141096 [12:55:42]quantity*price = 5000 [12:55:42]sum+1 = 5001 [12:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 160 14.04.2024 12:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112261 ФПД: 89256785639971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112261&fm=89256785639971&tin=02508201610067®Number=0000000000094237&sum=5000 0 [12:55:44]StoreToDocumentArchive [12:55:44]shift 357 fd 112261 [12:55:44]save to /storage/0357/doc_00112261 [12:55:44]save last doc name /storage/0357/doc_00112261 to /storage/kkm_last_doc_name [12:55:44]save OK [12:55:44]Clear old archive folders... [12:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:55:44]tlvbuf is 01822330 [12:55:44]SAM_PROTO_ClearQueue [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 09 00 00 [12:55:44]Write to MH i2c: E2 08 00 E6 13 80 09 00 00 00 00 00 00 6B [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 E6 13 00 90 00 6D [12:55:44]RAPDU: 90 00 [12:55:44]wFMCommunicate OK [12:55:44]SAM_PROTO_ClearQueue done [12:55:44]KKMCreateOFDPacket [12:55:44]OFDProtocolAddRootSTLVToBuf [12:55:44]FM_MakeSignedData [12:55:44]FM_MakeSignedData [12:55:44]SAM_PROTO_SignData [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 0D 01 02 [12:55:44]Write to MH i2c: E2 08 00 E7 13 80 0D 01 02 00 00 00 00 73 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 E7 13 00 90 00 6E [12:55:44]RAPDU: 90 00 [12:55:44]wFMCommunicate OK [12:55:44]wFMCommunicate request_size=255 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 4F D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [12:55:44]Write to MH i2c: E2 02 01 E8 13 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 4F D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 32 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 E8 13 00 90 00 6F [12:55:44]RAPDU: 90 00 [12:55:44]wFMCommunicate OK [12:55:44]wFMCommunicate request_size=28 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 0D 02 02 17 37 35 30 31 39 10 04 04 00 85 B6 01 00 35 04 06 00 51 2D B7 00 7A 23 [12:55:44]Write to MH i2c: E2 1F 00 E9 13 80 0D 02 02 17 00 37 35 30 31 39 10 04 04 00 85 B6 01 00 35 04 06 00 51 2D B7 00 7A 23 00 00 0F [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 03 00 E9 13 00 90 00 70 [12:55:44]RAPDU: 90 00 [12:55:44]wFMCommunicate OK [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 0D 03 02 [12:55:44]Write to MH i2c: E2 08 00 EA 13 80 0D 03 02 00 00 00 00 78 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0B 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 0B 00 EA 13 00 55 F6 AC 77 F0 CC D6 7D 90 00 F6 [12:55:44]RAPDU: 55 F6 AC 77 F0 CC D6 7D 90 00 [12:55:44]wFMCommunicate OK [12:55:44]SAM_PROTO_SignData done [12:55:44]FM_MakeSignedData done [12:55:44]CreateOFDProtocolMessage [12:55:44]wFMCommunicate request_size=4 [12:55:44]MH_SAM_APDU [12:55:44]CAPDU: 80 11 00 00 [12:55:44]Write to MH i2c: E2 08 00 EB 13 80 11 00 00 00 00 00 00 78 [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:44]Read from MH i2c: E2 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 17 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: E2 17 00 EB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C9 [12:55:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:55:44]wFMCommunicate OK [12:55:44]CreateOFDProtocolMessage done [12:55:44]OFDSenderStorePacket 112261 [12:55:44]StoreOFDPacket docnum=112261 [12:55:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 21 01 00 00 63 2F 19 01 3D 0A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 4F D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B6 01 00 35 04 06 00 51 2D B7 00 7A 23 55 F6 AC 77 F0 CC D6 7D [12:55:44]CheckFolder [12:55:44]dirname=/storage/ofd_packets [12:55:44]CheckFolder done [12:55:44]ProducePacketName [12:55:44]name=ofd_packets/00112261 [12:55:44]NVStorageSaveData ofd_packets/00112261 [12:55:44]File name is /storage/ofd_packets/00112261 [12:55:44]Write 319 bytes [12:55:44]NVStorageSaveData done [12:55:44]OFDSenderStorePacket done [12:55:44]KKMCreateOFDPacket done [12:55:44]NVStorageSaveData kkm_last_timestamp [12:55:44]File name is /storage/kkm_last_timestamp [12:55:44]Write 4 bytes [12:55:44]NVStorageSaveData done [12:55:44]ExternCall_PrintAddStr [12:55:44]wPrintStart [12:55:44]Write to MH i2c: 01 00 00 EC 13 FF [12:55:44]Write i2c OK [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 [12:55:44]MH_I2C_Read... [12:55:44]Read from MH i2c: 01 07 00 EC 13 00 00 00 00 00 FF 0F 14 [12:55:44]RasterBufferAndPrint [12:55:44]line Счет N : (3)10418 [12:55:44]line ИНН: 02508201610067 [12:55:44]line Контрольно-Кассовый Чек [12:55:44]line ПРОДАЖА [12:55:44]line Товар: 4700000160358 [12:55:44]line Вода Легенда 1л [12:55:44]line 1.000 * 50.00 [12:55:44]line = 50.00 [12:55:44]line НДС 12% НСП 1% [12:55:44]line > о реализуемом товаре [12:55:44]line ИТОГО: 50.00 [12:55:44]line НСП 1% : 0.44 [12:55:44]line НДС 12% : 5.31 [12:55:44]line Наличными: 50.00 [12:55:44]line Безнал.: 0.00 [12:55:44]line Место: АЗС № 47 "Партнер Нефть" [12:55:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:55:44]line СНО: Общий режим [12:55:44]line Чек 160 14.04.2024 12:55 [12:55:44]line Смена: 357 ФФД: 1.0 [12:55:44]line ЗНМ: 0300000138 [12:55:44]line РНМ: 0000000000094237 [12:55:44]line Версия ККМ: 001 [12:55:44]line ФМ: 0000000000875019 [12:55:44]line ФД: 112261 [12:55:44]line ФПД: 89256785639971 [12:55:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112261&fm=89256785639971&tin=02508201610067®Number=0000000000094237&sum=5000 [12:55:44]line 0 [12:55:44]OFD Sender: Processing packet 112261 [packets to send 71, broken 70] [12:55:44]ProducePacketName [12:55:44]name=ofd_packets/00112261 [12:55:44]OFD Sender: To server: pG, [12:55:44]CommunicateWithHost lk.salyk.kg:30040 [12:55:44]ConnectInit lk.salyk.kg [12:55:44]written 0, free lines is 4095 [12:55:45]Connected sock=10 [12:55:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 21 01 00 00 63 2F 19 01 3D 0A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 4F D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B6 01 00 35 04 06 00 51 2D B7 00 7A 23 55 F6 AC 77 F0 CC D6 7D [12:55:45]Write to MH i2c: 01 00 00 14 14 28 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 07 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: 01 07 00 14 14 00 00 00 00 00 F9 0C 34 [12:55:45]RasterBufferAndPrint [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]line [12:55:45]written 0, free lines is 3327 [12:55:45]MH_Cut [12:55:45]Write to MH i2c: D1 01 00 1B 14 01 01 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 01 00 [12:55:45]MH_I2C_Read... [12:55:45]Read from MH i2c: D1 01 00 1B 14 00 00 [12:55:45]Write to MH i2c: 01 00 00 1C 14 30 [12:55:45]Write i2c OK [12:55:45]MH_I2C_Read... [12:55:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A2 B4 47 00 1E 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B6 01 00 F4 03 04 00 DB 79 1B 66 B6 04 01 00 00 23 ED 30 A6 FB BA 70 E7 [12:55:45]CommunicateWithHost err = 0 [12:55:45]CheckOFDResponse [12:55:45]1017 (14) - 77093643461234 [12:55:45]1041 (16) - 0000000000875019 [12:55:45]1040 (4) - 112261 [12:55:45]1012 (4) - 14.04.2024 06:38 [12:55:45]1206 (1) - 0 [12:55:45]OFD Sender: Remove packet 112261 [12:55:45]ProducePacketName [12:55:45]name=ofd_packets/00112261 [12:55:45]NVStorageDeleteData [12:55:45]OFD Sender: No OFD packet to send [12:55:46]*** Cut start [12:55:46]*** Partial cut [12:55:46]*** CUTSNS_PIN = 1 [12:55:46]*** CUTSNS_PIN = 0 [12:55:46]*** Brake cut motor [12:55:46]Read from MH i2c: 01 [12:55:46]MH_I2C_Read... [12:55:46]*** Stop cut motor [12:55:46]*** Cut end [12:55:46]Read from MH i2c: 01 07 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: 01 07 00 1C 14 00 00 00 00 00 FF 0F 45 [12:55:46]process_action close_receipt done [12:55:46]requested_data is exist [12:55:46]produce_requested_data [12:55:46]requested_item fm.sn is exist - process it [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 11 00 00 [12:55:46]Write to MH i2c: E2 08 00 1D 14 80 11 00 00 00 00 00 00 AB [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 17 00 1D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FC [12:55:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:55:46]wFMCommunicate OK [12:55:46]requested_item fd.num is exist - process it [12:55:46]SAM_PROTO_GetFieldsCounters [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 13 00 00 [12:55:46]Write to MH i2c: E2 08 00 1E 14 80 13 00 00 00 00 00 00 AE [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 62 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 62 00 1E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 85 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 85 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:46]wFMCommunicate OK [12:55:46]SAM_PROTO_GetFieldsCounters done [12:55:46]requested_item shift.num is exist - process it [12:55:46]requested_item shift.opened is exist - process it [12:55:46]req_shift_opened [12:55:46]FM_GetShiftState [12:55:46]SAM_PROTO_GetShiftState [12:55:46]wFMCommunicate request_size=4 [12:55:46]MH_SAM_APDU [12:55:46]CAPDU: 80 13 01 00 [12:55:46]Write to MH i2c: E2 08 00 1F 14 80 13 01 00 00 00 00 00 B0 [12:55:46]Write i2c OK [12:55:46]MH_I2C_Read... [12:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:46]Read from MH i2c: E2 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 0E 00 [12:55:46]MH_I2C_Read... [12:55:46]Read from MH i2c: E2 0E 00 1F 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 48 [12:55:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:55:46]wFMCommunicate OK [12:55:46]SAM_PROTO_GetShiftState done [12:55:46]FM_GetShiftState done [12:55:46]req_shift_opened done [12:55:46]requested_item shift.open_date is exist - process it [12:55:46]req_shift_open_date [12:55:46]req_shift_open_date done [12:55:46]produce_requested_data done [12:55:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112261,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:55:46]process_action_free close_receipt [12:55:46]json_value_free [12:55:46]json_value_free done [12:55:46]process_json_proto returns [12:55:46]Send response to host [12:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112261,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:55:46]free response buf [12:55:46]execute_script done [12:55:46]execute_script returns [12:55:46]free content buf [12:55:46]Sock 7.Close socket [12:55:46]Sock 7.Thread stoped [12:55:50]OFD Sender: No OFD packet to send [12:55:52]accept exits with 9 [12:55:52]New connection [12:55:52]New thread 3067342180 created [12:55:52]Thread 3067198820 joined [12:55:52]Waiting for new connection... [12:55:52] Sock 9.Parse request [12:55:52]Sock 9.Check first char [12:55:52]Sock 9.First char is OK [12:55:52]request: POST /json_proto HTTP/1.0 [12:55:52]Method: POST [12:55:52]URL: /json_proto [12:55:52]Method is POST - this is cgi request [12:55:52]url: /json_proto [12:55:52]query_string will be loaded in cgi processing [12:55:52]execute_cgi json_proto POST (null) [12:55:52]execute_cgi path=json_proto method=POST [12:55:52]POST find Content-Length [12:55:52]Host: 172.17.96.197:8080 [12:55:52]Content-Length: 669 [12:55:52]Content-Type: application/json [12:55:52] [12:55:52]POST finish read [12:55:52]Found Content-Length = 669 [12:55:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:55:52]execute_script... [12:55: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)48575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 7.660, "sum" : 500.20, "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:55:52]POST & json_proto [12:55:52]process_json_proto [12:55:52]json parsed OK: [12:55:52]protocol is kg_v1.0 [12:55:52]action value=close_receipt [12:55:52]process_action close_receipt [12:55:52]cmd_close_receipt [12:55:52]MH_GetDate [12:55:52]Write to MH i2c: F0 00 00 20 14 23 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: F0 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: F0 09 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: F0 09 00 20 14 00 59 D2 1B 66 E0 85 7F 64 20 [12:55:52]GetLastDocTimeStamp 1713099343 [12:55:52]current date 1713099353 [12:55:52]FM_GetShiftState [12:55:52]SAM_PROTO_GetShiftState [12:55:52]wFMCommunicate request_size=4 [12:55:52]MH_SAM_APDU [12:55:52]CAPDU: 80 13 01 00 [12:55:52]Write to MH i2c: E2 08 00 21 14 80 13 01 00 00 00 00 00 B2 [12:55:52]Write i2c OK [12:55:52]MH_I2C_Read... [12:55:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:52]Read from MH i2c: E2 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 [12:55:52]MH_I2C_Read... [12:55:52]Read from MH i2c: E2 0E 00 21 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4A [12:55:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:55:52]wFMCommunicate OK [12:55:52]SAM_PROTO_GetShiftState done [12:55:52]FM_GetShiftState done [12:55:52]opened in 1713054696 [12:55:52]opened+sec_in_day 1713141096 [12:55:52]quantity*price = 50019 [12:55:52]sum+1 = 50021 [12:55:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 161 14.04.2024 12:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112262 ФПД: 59320231804496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125553&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112262&fm=59320231804496&tin=02508201610067®Number=0000000000094237&sum=50000 [12:55:53]StoreToDocumentArchive [12:55:53]shift 357 fd 112262 [12:55:53]save to /storage/0357/doc_00112262 [12:55:53]save last doc name /storage/0357/doc_00112262 to /storage/kkm_last_doc_name [12:55:53]save OK [12:55:53]Clear old archive folders... [12:55:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:55:53]tlvbuf is 017C36D0 [12:55:53]SAM_PROTO_ClearQueue [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 09 00 00 [12:55:53]Write to MH i2c: E2 08 00 2E 14 80 09 00 00 00 00 00 00 B4 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [12:55:53]RAPDU: 90 00 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_ClearQueue done [12:55:53]KKMCreateOFDPacket [12:55:53]OFDProtocolAddRootSTLVToBuf [12:55:53]FM_MakeSignedData [12:55:53]FM_MakeSignedData [12:55:53]SAM_PROTO_SignData [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 0D 01 02 [12:55:53]Write to MH i2c: E2 08 00 2F 14 80 0D 01 02 00 00 00 00 BC [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [12:55:53]RAPDU: 90 00 [12:55:53]wFMCommunicate OK [12:55:53]wFMCommunicate request_size=255 [12:55:53]MH_SAM_APDU [12:55: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 A1 00 00 00 F4 03 04 00 59 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B6 01 00 35 04 06 00 [12:55:53]Write to MH i2c: E2 02 01 30 14 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 A1 00 00 00 F4 03 04 00 59 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B6 01 00 35 04 06 00 00 00 D2 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 30 14 00 90 00 B8 [12:55:53]RAPDU: 90 00 [12:55:53]wFMCommunicate OK [12:55:53]wFMCommunicate request_size=11 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 0D 02 02 06 35 F3 91 58 3E 50 [12:55:53]Write to MH i2c: E2 0E 00 31 14 80 0D 02 02 06 00 35 F3 91 58 3E 50 00 00 6A [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 03 00 31 14 00 90 00 B9 [12:55:53]RAPDU: 90 00 [12:55:53]wFMCommunicate OK [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 0D 03 02 [12:55:53]Write to MH i2c: E2 08 00 32 14 80 0D 03 02 00 00 00 00 C1 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0B 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 0B 00 32 14 00 66 38 1E 15 19 AE C3 3D 90 00 5A [12:55:53]RAPDU: 66 38 1E 15 19 AE C3 3D 90 00 [12:55:53]wFMCommunicate OK [12:55:53]SAM_PROTO_SignData done [12:55:53]FM_MakeSignedData done [12:55:53]CreateOFDProtocolMessage [12:55:53]wFMCommunicate request_size=4 [12:55:53]MH_SAM_APDU [12:55:53]CAPDU: 80 11 00 00 [12:55:53]Write to MH i2c: E2 08 00 33 14 80 11 00 00 00 00 00 00 C1 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:53]Read from MH i2c: E2 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: E2 17 00 33 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 12 [12:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:55:53]wFMCommunicate OK [12:55:53]CreateOFDProtocolMessage done [12:55:53]OFDSenderStorePacket 112262 [12:55:53]StoreOFDPacket docnum=112262 [12:55:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 1A 97 08 01 AF A5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 A1 00 00 00 F4 03 04 00 59 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B6 01 00 35 04 06 00 35 F3 91 58 3E 50 66 38 1E 15 19 AE C3 3D [12:55:53]CheckFolder [12:55:53]dirname=/storage/ofd_packets [12:55:53]CheckFolder done [12:55:53]ProducePacketName [12:55:53]name=ofd_packets/00112262 [12:55:53]NVStorageSaveData ofd_packets/00112262 [12:55:53]File name is /storage/ofd_packets/00112262 [12:55:53]Write 302 bytes [12:55:53]NVStorageSaveData done [12:55:53]OFDSenderStorePacket done [12:55:53]KKMCreateOFDPacket done [12:55:53]NVStorageSaveData kkm_last_timestamp [12:55:53]File name is /storage/kkm_last_timestamp [12:55:53]Write 4 bytes [12:55:53]NVStorageSaveData done [12:55:53]ExternCall_PrintAddStr [12:55:53]wPrintStart [12:55:53]Write to MH i2c: 01 00 00 34 14 48 [12:55:53]Write i2c OK [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 [12:55:53]MH_I2C_Read... [12:55:53]Read from MH i2c: 01 07 00 34 14 00 00 00 00 00 FF 0F 5D [12:55:53]RasterBufferAndPrint [12:55:53]line Счет N : (1)48575 [12:55:53]line ИНН: 02508201610067 [12:55:53]line Контрольно-Кассовый Чек [12:55:53]line ПРОДАЖА [12:55:53]line ТРК (МРК, ГНК) : 52 [12:55:53]line Товар: 2710124130 [12:55:53]line SUPER 92-К-5 [12:55:53]line 7.660 * 65.30 [12:55:53]line = 500.20 [12:55:53]line НДС 12% НСП 1% [12:55:53]line > о реализуемом товаре [12:55:53]line ОКРУГЛЕНИЕ: -0.20 [12:55:53]line ИТОГО: 500.00 [12:55:53]line Внесено: 500.00 [12:55:53]line СДАЧА: 0.00 [12:55:53]line НСП 1% : 4.43 [12:55:53]line НДС 12% : 53.12 [12:55:53]line Наличными: 500.00 [12:55:53]line Безнал.: 0.00 [12:55:53]line Место: АЗС № 47 "Партнер Нефть" [12:55:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:55:53]line СНО: Общий режим [12:55:53]line Чек 161 14.04.2024 12:55 [12:55:53]line Смена: 357 ФФД: 1.0 [12:55:53]line ЗНМ: 0300000138 [12:55:53]line РНМ: 0000000000094237 [12:55:53]line Версия ККМ: 001 [12:55:53]line ФМ: 0000000000875019 [12:55:53]line ФД: 112262 [12:55:53]line ФПД: 59320231804496 [12:55:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125553&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112262&fm=59320231804496&tin=02508201610067®Number=0000000000094237&sum=50000 [12:55:53]written 0, free lines is 4095 [12:55:53]OFD Sender: Processing packet 112262 [packets to send 71, broken 70] [12:55:53]ProducePacketName [12:55:53]name=ofd_packets/00112262 [12:55:53]OFD Sender: To server: pG, [12:55:53]CommunicateWithHost lk.salyk.kg:30040 [12:55:53]ConnectInit lk.salyk.kg [12:55:54]Connected sock=11 [12:55:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 1A 97 08 01 AF A5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 A1 00 00 00 F4 03 04 00 59 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B6 01 00 35 04 06 00 35 F3 91 58 3E 50 66 38 1E 15 19 AE C3 3D [12:55:54]Write to MH i2c: 01 00 00 5F 14 73 [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: 01 07 00 5F 14 00 00 00 00 00 EE 0C 74 [12:55:54]RasterBufferAndPrint [12:55:54]line [12:55:54]line [12:55:54]line [12:55:54]line [12:55:54]line [12:55:54]written 0, free lines is 3319 [12:55:54]MH_Cut [12:55:54]Write to MH i2c: D1 01 00 66 14 01 4C [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: D1 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: D1 01 00 [12:55:54]MH_I2C_Read... [12:55:54]Read from MH i2c: D1 01 00 66 14 00 4B [12:55:54]Write to MH i2c: 01 00 00 67 14 7B [12:55:54]Write i2c OK [12:55:54]MH_I2C_Read... [12:55:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 98 3C 47 00 AB 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B6 01 00 F4 03 04 00 E4 79 1B 66 B6 04 01 00 00 ED 5F 1C 5D 20 6C EA 88 [12:55:54]CommunicateWithHost err = 0 [12:55:54]CheckOFDResponse [12:55:54]1017 (14) - 77093643461234 [12:55:54]1041 (16) - 0000000000875019 [12:55:54]1040 (4) - 112262 [12:55:54]1012 (4) - 14.04.2024 06:38 [12:55:54]1206 (1) - 0 [12:55:54]OFD Sender: Remove packet 112262 [12:55:54]ProducePacketName [12:55:54]name=ofd_packets/00112262 [12:55:54]NVStorageDeleteData [12:55:54]OFD Sender: No OFD packet to send [12:55:55]*** Cut start [12:55:55]*** Partial cut [12:55:55]*** CUTSNS_PIN = 1 [12:55:55]*** CUTSNS_PIN = 0 [12:55:55]*** Brake cut motor [12:55:55]Read from MH i2c: 01 [12:55:55]MH_I2C_Read... [12:55:55]*** Stop cut motor [12:55:55]*** Cut end [12:55:55]Read from MH i2c: 01 07 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: 01 07 00 67 14 00 00 00 00 00 FF 0F 90 [12:55:55]process_action close_receipt done [12:55:55]requested_data is exist [12:55:55]produce_requested_data [12:55:55]requested_item fm.sn is exist - process it [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 11 00 00 [12:55:55]Write to MH i2c: E2 08 00 68 14 80 11 00 00 00 00 00 00 F6 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 17 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 17 00 68 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 47 [12:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:55:55]wFMCommunicate OK [12:55:55]requested_item fd.num is exist - process it [12:55:55]SAM_PROTO_GetFieldsCounters [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 13 00 00 [12:55:55]Write to MH i2c: E2 08 00 69 14 80 13 00 00 00 00 00 00 F9 [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 62 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 62 00 69 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 86 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [12:55:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 86 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:55:55]wFMCommunicate OK [12:55:55]SAM_PROTO_GetFieldsCounters done [12:55:55]requested_item shift.num is exist - process it [12:55:55]requested_item shift.opened is exist - process it [12:55:55]req_shift_opened [12:55:55]FM_GetShiftState [12:55:55]SAM_PROTO_GetShiftState [12:55:55]wFMCommunicate request_size=4 [12:55:55]MH_SAM_APDU [12:55:55]CAPDU: 80 13 01 00 [12:55:55]Write to MH i2c: E2 08 00 6A 14 80 13 01 00 00 00 00 00 FB [12:55:55]Write i2c OK [12:55:55]MH_I2C_Read... [12:55:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:55:55]Read from MH i2c: E2 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 0E 00 [12:55:55]MH_I2C_Read... [12:55:55]Read from MH i2c: E2 0E 00 6A 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 93 [12:55:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:55:55]wFMCommunicate OK [12:55:55]SAM_PROTO_GetShiftState done [12:55:55]FM_GetShiftState done [12:55:55]req_shift_opened done [12:55:55]requested_item shift.open_date is exist - process it [12:55:55]req_shift_open_date [12:55:55]req_shift_open_date done [12:55:55]produce_requested_data done [12:55:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112262,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:55:55]process_action_free close_receipt [12:55:55]json_value_free [12:55:55]json_value_free done [12:55:55]process_json_proto returns [12:55:55]Send response to host [12:55:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112262,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:55:55]free response buf [12:55:55]execute_script done [12:55:55]execute_script returns [12:55:55]free content buf [12:55:55]Sock 9.Close socket [12:55:55]Sock 9.Thread stoped [12:55:59]OFD Sender: No OFD packet to send [12:56:04]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:44]accept exits with 7 [12:57:44]New connection [12:57:44]New thread 3067198820 created [12:57:44]Thread 3067342180 joined [12:57:44]Waiting for new connection... [12:57:44] Sock 7.Parse request [12:57:44]Sock 7.Check first char [12:57:44]Sock 7.First char is OK [12:57:44]request: POST /json_proto HTTP/1.0 [12:57:44]Method: POST [12:57:44]URL: /json_proto [12:57:44]Method is POST - this is cgi request [12:57:44]url: /json_proto [12:57:44]query_string will be loaded in cgi processing [12:57:44]execute_cgi json_proto POST (null) [12:57:44]execute_cgi path=json_proto method=POST [12:57:44]POST find Content-Length [12:57:44]Host: 172.17.96.197:8080 [12:57:44]Content-Length: 678 [12:57:44]Content-Type: application/json [12:57:44] [12:57:44]POST finish read [12:57:44]Found Content-Length = 678 [12:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48576", "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.40, "quantity" : 23.490, "sum" : 1700.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:44]execute_script... [12:57:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48576", "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.40, "quantity" : 23.490, "sum" : 1700.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1700.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:44]POST & json_proto [12:57:44]process_json_proto [12:57:44]json parsed OK: [12:57:44]protocol is kg_v1.0 [12:57:44]action value=close_receipt [12:57:44]process_action close_receipt [12:57:44]cmd_close_receipt [12:57:44]MH_GetDate [12:57:44]Write to MH i2c: F0 00 00 6B 14 6E [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: F0 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: F0 09 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: F0 09 00 6B 14 00 C9 D2 1B 66 E0 85 7F 64 DB [12:57:44]GetLastDocTimeStamp 1713099353 [12:57:44]current date 1713099465 [12:57:44]FM_GetShiftState [12:57:44]SAM_PROTO_GetShiftState [12:57:44]wFMCommunicate request_size=4 [12:57:44]MH_SAM_APDU [12:57:44]CAPDU: 80 13 01 00 [12:57:44]Write to MH i2c: E2 08 00 6C 14 80 13 01 00 00 00 00 00 FD [12:57:44]Write i2c OK [12:57:44]MH_I2C_Read... [12:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:44]Read from MH i2c: E2 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0E 00 [12:57:44]MH_I2C_Read... [12:57:44]Read from MH i2c: E2 0E 00 6C 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 95 [12:57:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:57:44]wFMCommunicate OK [12:57:44]SAM_PROTO_GetShiftState done [12:57:44]FM_GetShiftState done [12:57:44]opened in 1713054696 [12:57:44]opened+sec_in_day 1713141096 [12:57:44]quantity*price = 170067 [12:57:44]sum+1 = 170069 [12:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1700.00 Внесено: 1700.00 СДАЧА: 0.00 НСП 1% : 15.05 НДС 12% : 180.60 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 162 14.04.2024 12:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112263 ФПД: 217424350896498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112263&fm=217424350896498&tin=02508201610067®Number=0000000000094237&sum=170000 [12:57:45]StoreToDocumentArchive [12:57:45]shift 357 fd 112263 [12:57:45]save to /storage/0357/doc_00112263 [12:57:45]save last doc name /storage/0357/doc_00112263 to /storage/kkm_last_doc_name [12:57:45]save OK [12:57:45]Clear old archive folders... [12:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:57:45]tlvbuf is 0181F890 [12:57:45]SAM_PROTO_ClearQueue [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 09 00 00 [12:57:45]Write to MH i2c: E2 08 00 79 14 80 09 00 00 00 00 00 00 FF [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 03 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [12:57:45]RAPDU: 90 00 [12:57:45]wFMCommunicate OK [12:57:45]SAM_PROTO_ClearQueue done [12:57:45]KKMCreateOFDPacket [12:57:45]OFDProtocolAddRootSTLVToBuf [12:57:45]FM_MakeSignedData [12:57:45]FM_MakeSignedData [12:57:45]SAM_PROTO_SignData [12:57:45]wFMCommunicate request_size=4 [12:57:45]MH_SAM_APDU [12:57:45]CAPDU: 80 0D 01 02 [12:57:45]Write to MH i2c: E2 08 00 7A 14 80 0D 01 02 00 00 00 00 07 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:45]Read from MH i2c: E2 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 03 00 [12:57:45]MH_I2C_Read... [12:57:45]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [12:57:45]RAPDU: 90 00 [12:57:45]wFMCommunicate OK [12:57:45]wFMCommunicate request_size=255 [12:57:45]MH_SAM_APDU [12:57:45]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 C2 5B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 54 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B6 01 00 35 04 06 00 C5 BF 0D 33 [12:57:45]Write to MH i2c: E2 02 01 7B 14 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 C2 5B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 54 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B6 01 00 35 04 06 00 C5 BF 0D 33 00 00 03 [12:57:45]Write i2c OK [12:57:45]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [12:57:46]RAPDU: 90 00 [12:57:46]wFMCommunicate OK [12:57:46]wFMCommunicate request_size=7 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 0D 02 02 02 61 72 [12:57:46]Write to MH i2c: E2 0A 00 7C 14 80 0D 02 02 02 00 61 72 00 00 E1 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 03 00 7C 14 00 90 00 04 [12:57:46]RAPDU: 90 00 [12:57:46]wFMCommunicate OK [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 0D 03 02 [12:57:46]Write to MH i2c: E2 08 00 7D 14 80 0D 03 02 00 00 00 00 0C [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0B 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 0B 00 7D 14 00 A2 F4 E9 D6 94 F9 E3 D3 90 00 A5 [12:57:46]RAPDU: A2 F4 E9 D6 94 F9 E3 D3 90 00 [12:57:46]wFMCommunicate OK [12:57:46]SAM_PROTO_SignData done [12:57:46]FM_MakeSignedData done [12:57:46]CreateOFDProtocolMessage [12:57:46]wFMCommunicate request_size=4 [12:57:46]MH_SAM_APDU [12:57:46]CAPDU: 80 11 00 00 [12:57:46]Write to MH i2c: E2 08 00 7E 14 80 11 00 00 00 00 00 00 0C [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:46]Read from MH i2c: E2 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: E2 17 00 [12:57:46]MH_I2C_Read... [12:57: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 38 37 35 30 31 39 90 00 5D [12:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:57:46]wFMCommunicate OK [12:57:46]CreateOFDProtocolMessage done [12:57:46]OFDSenderStorePacket 112263 [12:57:46]StoreOFDPacket docnum=112263 [12:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B9 A3 04 01 F3 D1 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 C2 5B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 54 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B6 01 00 35 04 06 00 C5 BF 0D 33 61 72 A2 F4 E9 D6 94 F9 E3 D3 [12:57:46]CheckFolder [12:57:46]dirname=/storage/ofd_packets [12:57:46]CheckFolder done [12:57:46]ProducePacketName [12:57:46]name=ofd_packets/00112263 [12:57:46]NVStorageSaveData ofd_packets/00112263 [12:57:46]File name is /storage/ofd_packets/00112263 [12:57:46]Write 298 bytes [12:57:46]NVStorageSaveData done [12:57:46]OFDSenderStorePacket done [12:57:46]KKMCreateOFDPacket done [12:57:46]NVStorageSaveData kkm_last_timestamp [12:57:46]File name is /storage/kkm_last_timestamp [12:57:46]Write 4 bytes [12:57:46]NVStorageSaveData done [12:57:46]ExternCall_PrintAddStr [12:57:46]wPrintStart [12:57:46]Write to MH i2c: 01 00 00 7F 14 93 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 07 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 07 00 7F 14 00 00 00 00 00 FF 0F A8 [12:57:46]RasterBufferAndPrint [12:57:46]line Счет N : (1)48576 [12:57:46]line ИНН: 02508201610067 [12:57:46]line Контрольно-Кассовый Чек [12:57:46]line ПРОДАЖА [12:57:46]line ТРК (МРК, ГНК) : 51 [12:57:46]line Товар: 2710194210 [12:57:46]line ДТ-К-5 [12:57:46]line 23.490 * 72.40 [12:57:46]line = 1700.68 [12:57:46]line НДС 12% НСП 1% [12:57:46]line > о реализуемом товаре [12:57:46]line ОКРУГЛЕНИЕ: -0.68 [12:57:46]line ИТОГО: 1700.00 [12:57:46]line Внесено: 1700.00 [12:57:46]line СДАЧА: 0.00 [12:57:46]line НСП 1% : 15.05 [12:57:46]line НДС 12% : 180.60 [12:57:46]line Наличными: 1700.00 [12:57:46]line Безнал.: 0.00 [12:57:46]line Место: АЗС № 47 "Партнер Нефть" [12:57:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:57:46]line СНО: Общий режим [12:57:46]line Чек 162 14.04.2024 12:57 [12:57:46]line Смена: 357 ФФД: 1.0 [12:57:46]line ЗНМ: 0300000138 [12:57:46]line РНМ: 0000000000094237 [12:57:46]line Версия ККМ: 001 [12:57:46]line ФМ: 0000000000875019 [12:57:46]line ФД: 112263 [12:57:46]line ФПД: 217424350896498 [12:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112263&fm=217424350896498&tin=02508201610067®Number=0000000000094237&sum=170000 [12:57:46]OFD Sender: Processing packet 112263 [packets to send 71, broken 70] [12:57:46]ProducePacketName [12:57:46]name=ofd_packets/00112263 [12:57:46]OFD Sender: To server: pG, [12:57:46]CommunicateWithHost lk.salyk.kg:30040 [12:57:46]ConnectInit lk.salyk.kg [12:57:46]written 0, free lines is 4095 [12:57:46]Connected sock=10 [12:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B9 A3 04 01 F3 D1 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 C2 5B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 54 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 C9 D2 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B6 01 00 35 04 06 00 C5 BF 0D 33 61 72 A2 F4 E9 D6 94 F9 E3 D3 [12:57:46]Write to MH i2c: 01 00 00 AA 14 BE [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 07 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: 01 07 00 AA 14 00 00 00 00 00 E4 0C B5 [12:57:46]RasterBufferAndPrint [12:57:46]line [12:57:46]line [12:57:46]line [12:57:46]line [12:57:46]line [12:57:46]written 0, free lines is 3306 [12:57:46]MH_Cut [12:57:46]Write to MH i2c: D1 01 00 B1 14 01 97 [12:57:46]Write i2c OK [12:57:46]MH_I2C_Read... [12:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 35 6D 47 00 3E 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B6 01 00 F4 03 04 00 54 7A 1B 66 B6 04 01 00 00 88 28 82 91 D7 32 E6 DF [12:57:46]CommunicateWithHost err = 0 [12:57:46]CheckOFDResponse [12:57:46]1017 (14) - 77093643461234 [12:57:46]1041 (16) - 0000000000875019 [12:57:46]1040 (4) - 112263 [12:57:46]1012 (4) - 14.04.2024 06:40 [12:57:46]1206 (1) - 0 [12:57:46]OFD Sender: Remove packet 112263 [12:57:46]ProducePacketName [12:57:46]name=ofd_packets/00112263 [12:57:46]NVStorageDeleteData [12:57:46]Read from MH i2c: D1 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: D1 01 00 [12:57:46]MH_I2C_Read... [12:57:46]Read from MH i2c: D1 01 00 B1 14 00 96 [12:57:46]Write to MH i2c: 01 00 00 B2 14 C6 [12:57:47]Write i2c OK [12:57:47]MH_I2C_Read... [12:57:47]OFD Sender: No OFD packet to send [12:57:47]*** Cut start [12:57:47]*** Partial cut [12:57:47]*** CUTSNS_PIN = 1 [12:57:47]*** CUTSNS_PIN = 0 [12:57:47]*** Brake cut motor [12:57:48]Read from MH i2c: 01 [12:57:48]MH_I2C_Read... [12:57:48]*** Stop cut motor [12:57:48]*** Cut end [12:57:48]Read from MH i2c: 01 07 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: 01 07 00 B2 14 00 00 00 00 00 FF 0F DB [12:57:48]process_action close_receipt done [12:57:48]requested_data is exist [12:57:48]produce_requested_data [12:57:48]requested_item fm.sn is exist - process it [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 11 00 00 [12:57:48]Write to MH i2c: E2 08 00 B3 14 80 11 00 00 00 00 00 00 41 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 17 00 B3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 92 [12:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:57:48]wFMCommunicate OK [12:57:48]requested_item fd.num is exist - process it [12:57:48]SAM_PROTO_GetFieldsCounters [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 13 00 00 [12:57:48]Write to MH i2c: E2 08 00 B4 14 80 13 00 00 00 00 00 00 44 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 62 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 62 00 B4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 87 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [12:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 87 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:48]wFMCommunicate OK [12:57:48]SAM_PROTO_GetFieldsCounters done [12:57:48]requested_item shift.num is exist - process it [12:57:48]requested_item shift.opened is exist - process it [12:57:48]req_shift_opened [12:57:48]FM_GetShiftState [12:57:48]SAM_PROTO_GetShiftState [12:57:48]wFMCommunicate request_size=4 [12:57:48]MH_SAM_APDU [12:57:48]CAPDU: 80 13 01 00 [12:57:48]Write to MH i2c: E2 08 00 B5 14 80 13 01 00 00 00 00 00 46 [12:57:48]Write i2c OK [12:57:48]MH_I2C_Read... [12:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:48]Read from MH i2c: E2 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0E 00 [12:57:48]MH_I2C_Read... [12:57:48]Read from MH i2c: E2 0E 00 B5 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DE [12:57:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:57:48]wFMCommunicate OK [12:57:48]SAM_PROTO_GetShiftState done [12:57:48]FM_GetShiftState done [12:57:48]req_shift_opened done [12:57:48]requested_item shift.open_date is exist - process it [12:57:48]req_shift_open_date [12:57:48]req_shift_open_date done [12:57:48]produce_requested_data done [12:57:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112263,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:57:48]process_action_free close_receipt [12:57:48]json_value_free [12:57:48]json_value_free done [12:57:48]process_json_proto returns [12:57:48]Send response to host [12:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112263,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:57:48]free response buf [12:57:48]execute_script done [12:57:48]execute_script returns [12:57:48]free content buf [12:57:48]Sock 7.Close socket [12:57:48]Sock 7.Thread stoped [12:57:52]OFD Sender: No OFD packet to send [12:57:57]OFD Sender: No OFD packet to send [12:58:02]OFD Sender: No OFD packet to send [12:58:07]OFD Sender: No OFD packet to send [12:58:12]OFD Sender: No OFD packet to send [12:58:17]OFD Sender: No OFD packet to send [12:58:22]OFD Sender: No OFD packet to send [12:58:27]OFD Sender: No OFD packet to send [12:58:32]OFD Sender: No OFD packet to send [12:58:37]OFD Sender: No OFD packet to send [12:58:41]accept exits with 9 [12:58:41]New connection [12:58:41]New thread 3067342180 created [12:58:41]Thread 3067198820 joined [12:58:41]Waiting for new connection... [12:58:41] Sock 9.Parse request [12:58:41]Sock 9.Check first char [12:58:41]Sock 9.First char is OK [12:58:41]request: POST /json_proto HTTP/1.0 [12:58:41]Method: POST [12:58:41]URL: /json_proto [12:58:41]Method is POST - this is cgi request [12:58:41]url: /json_proto [12:58:41]query_string will be loaded in cgi processing [12:58:41]execute_cgi json_proto POST (null) [12:58:41]execute_cgi path=json_proto method=POST [12:58:41]POST find Content-Length [12:58:41]Host: 172.17.96.197:8080 [12:58:41]Content-Length: 676 [12:58:41]Content-Type: application/json [12:58:41] [12:58:41]POST finish read [12:58:41]Found Content-Length = 676 [12:58:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:58:41]execute_script... [12:58: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)48577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:58:41]POST & json_proto [12:58:41]process_json_proto [12:58:41]json parsed OK: [12:58:41]protocol is kg_v1.0 [12:58:41]action value=close_receipt [12:58:41]process_action close_receipt [12:58:41]cmd_close_receipt [12:58:41]MH_GetDate [12:58:41]Write to MH i2c: F0 00 00 B6 14 B9 [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 [12:58:41]MH_I2C_Read... [12:58:41]Read from MH i2c: F0 09 00 B6 14 00 02 D3 1B 66 E0 85 7F 64 60 [12:58:41]GetLastDocTimeStamp 1713099465 [12:58:41]current date 1713099522 [12:58:41]FM_GetShiftState [12:58:41]SAM_PROTO_GetShiftState [12:58:41]wFMCommunicate request_size=4 [12:58:41]MH_SAM_APDU [12:58:41]CAPDU: 80 13 01 00 [12:58:41]Write to MH i2c: E2 08 00 B7 14 80 13 01 00 00 00 00 00 48 [12:58:41]Write i2c OK [12:58:41]MH_I2C_Read... [12:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:42]Read from MH i2c: E2 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 [12:58:42]MH_I2C_Read... [12:58:42]Read from MH i2c: E2 0E 00 B7 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E0 [12:58:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:58:42]wFMCommunicate OK [12:58:42]SAM_PROTO_GetShiftState done [12:58:42]FM_GetShiftState done [12:58:42]opened in 1713054696 [12:58:42]opened+sec_in_day 1713141096 [12:58:42]quantity*price = 50025 [12:58:42]sum+1 = 50026 [12:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 163 14.04.2024 12:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112264 ФПД: 32427690488743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112264&fm=32427690488743&tin=02508201610067®Number=0000000000094237&sum=50000 [12:58:43]StoreToDocumentArchive [12:58:43]shift 357 fd 112264 [12:58:43]save to /storage/0357/doc_00112264 [12:58:43]save last doc name /storage/0357/doc_00112264 to /storage/kkm_last_doc_name [12:58:43]save OK [12:58:43]Clear old archive folders... [12:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:58:43]tlvbuf is 01779CC0 [12:58:43]SAM_PROTO_ClearQueue [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 09 00 00 [12:58:43]Write to MH i2c: E2 08 00 C4 14 80 09 00 00 00 00 00 00 4A [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_ClearQueue done [12:58:43]KKMCreateOFDPacket [12:58:43]OFDProtocolAddRootSTLVToBuf [12:58:43]FM_MakeSignedData [12:58:43]FM_MakeSignedData [12:58:43]SAM_PROTO_SignData [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 01 02 [12:58:43]Write to MH i2c: E2 08 00 C5 14 80 0D 01 02 00 00 00 00 52 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=255 [12:58:43]MH_SAM_APDU [12:58: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 A3 00 00 00 F4 03 04 00 02 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B6 01 00 35 04 06 00 1D [12:58:43]Write to MH i2c: E2 02 01 C6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 A3 00 00 00 F4 03 04 00 02 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B6 01 00 35 04 06 00 1D 00 00 B0 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=10 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 02 02 05 7E 28 F8 F3 A7 [12:58:43]Write to MH i2c: E2 0D 00 C7 14 80 0D 02 02 05 00 7E 28 F8 F3 A7 00 00 97 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 03 00 C7 14 00 90 00 4F [12:58:43]RAPDU: 90 00 [12:58:43]wFMCommunicate OK [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 0D 03 02 [12:58:43]Write to MH i2c: E2 08 00 C8 14 80 0D 03 02 00 00 00 00 57 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 0B 00 C8 14 00 1B BA E0 AF DD 37 E3 90 90 00 43 [12:58:43]RAPDU: 1B BA E0 AF DD 37 E3 90 90 00 [12:58:43]wFMCommunicate OK [12:58:43]SAM_PROTO_SignData done [12:58:43]FM_MakeSignedData done [12:58:43]CreateOFDProtocolMessage [12:58:43]wFMCommunicate request_size=4 [12:58:43]MH_SAM_APDU [12:58:43]CAPDU: 80 11 00 00 [12:58:43]Write to MH i2c: E2 08 00 C9 14 80 11 00 00 00 00 00 00 57 [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:43]Read from MH i2c: E2 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: E2 17 00 C9 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A8 [12:58:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:58:43]wFMCommunicate OK [12:58:43]CreateOFDProtocolMessage done [12:58:43]OFDSenderStorePacket 112264 [12:58:43]StoreOFDPacket docnum=112264 [12:58:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FE BB 07 01 FC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 A3 00 00 00 F4 03 04 00 02 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B6 01 00 35 04 06 00 1D 7E 28 F8 F3 A7 1B BA E0 AF DD 37 E3 90 [12:58:43]CheckFolder [12:58:43]dirname=/storage/ofd_packets [12:58:43]CheckFolder done [12:58:43]ProducePacketName [12:58:43]name=ofd_packets/00112264 [12:58:43]NVStorageSaveData ofd_packets/00112264 [12:58:43]File name is /storage/ofd_packets/00112264 [12:58:43]Write 301 bytes [12:58:43]NVStorageSaveData done [12:58:43]OFDSenderStorePacket done [12:58:43]KKMCreateOFDPacket done [12:58:43]NVStorageSaveData kkm_last_timestamp [12:58:43]File name is /storage/kkm_last_timestamp [12:58:43]Write 4 bytes [12:58:43]NVStorageSaveData done [12:58:43]ExternCall_PrintAddStr [12:58:43]wPrintStart [12:58:43]Write to MH i2c: 01 00 00 CA 14 DE [12:58:43]Write i2c OK [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 [12:58:43]MH_I2C_Read... [12:58:43]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [12:58:43]RasterBufferAndPrint [12:58:43]line Счет N : (1)48577 [12:58:43]line ИНН: 02508201610067 [12:58:43]line Контрольно-Кассовый Чек [12:58:43]line ПРОДАЖА [12:58:43]line ТРК (МРК, ГНК) : 11 [12:58:43]line Товар: 2710124130 [12:58:43]line Аи-92-К-5 [12:58:43]line 7.780 * 64.30 [12:58:43]line = 500.25 [12:58:43]line НДС 12% НСП 1% [12:58:43]line > о реализуемом товаре [12:58:43]line ОКРУГЛЕНИЕ: -0.25 [12:58:43]line ИТОГО: 500.00 [12:58:43]line Внесено: 500.00 [12:58:43]line СДАЧА: 0.00 [12:58:43]line НСП 1% : 4.43 [12:58:43]line НДС 12% : 53.12 [12:58:43]line Наличными: 500.00 [12:58:43]line Безнал.: 0.00 [12:58:43]line Место: АЗС № 47 "Партнер Нефть" [12:58:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [12:58:43]line СНО: Общий режим [12:58:43]line Чек 163 14.04.2024 12:58 [12:58:43]line Смена: 357 ФФД: 1.0 [12:58:43]line ЗНМ: 0300000138 [12:58:43]line РНМ: 0000000000094237 [12:58:43]line Версия ККМ: 001 [12:58:43]line ФМ: 0000000000875019 [12:58:43]line ФД: 112264 [12:58:43]line ФПД: 32427690488743 [12:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T125842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112264&fm=32427690488743&tin=02508201610067®Number=0000000000094237&sum=50000 [12:58:44]OFD Sender: Processing packet 112264 [packets to send 71, broken 70] [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00112264 [12:58:44]OFD Sender: To server: pG, [12:58:44]CommunicateWithHost lk.salyk.kg:30040 [12:58:44]ConnectInit lk.salyk.kg [12:58:44]written 0, free lines is 4095 [12:58:44]Connected sock=10 [12:58:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FE BB 07 01 FC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 A3 00 00 00 F4 03 04 00 02 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B6 01 00 35 04 06 00 1D 7E 28 F8 F3 A7 1B BA E0 AF DD 37 E3 90 [12:58:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 ED F4 47 00 E9 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B6 01 00 F4 03 04 00 8E 7A 1B 66 B6 04 01 00 00 FF 90 50 8E DF 98 C6 98 [12:58:44]CommunicateWithHost err = 0 [12:58:44]CheckOFDResponse [12:58:44]1017 (14) - 77093643461234 [12:58:44]1041 (16) - 0000000000875019 [12:58:44]1040 (4) - 112264 [12:58:44]1012 (4) - 14.04.2024 06:41 [12:58:44]1206 (1) - 0 [12:58:44]OFD Sender: Remove packet 112264 [12:58:44]ProducePacketName [12:58:44]name=ofd_packets/00112264 [12:58:44]NVStorageDeleteData [12:58:44]Write to MH i2c: 01 00 00 F5 14 09 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: 01 07 00 F5 14 00 00 00 00 00 E9 0C 05 [12:58:44]RasterBufferAndPrint [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]line [12:58:44]written 0, free lines is 3311 [12:58:44]MH_Cut [12:58:44]Write to MH i2c: D1 01 00 FC 14 01 E2 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 [12:58:44]MH_I2C_Read... [12:58:44]Read from MH i2c: D1 01 00 FC 14 00 E1 [12:58:44]Write to MH i2c: 01 00 00 FD 14 11 [12:58:44]Write i2c OK [12:58:44]MH_I2C_Read... [12:58:44]OFD Sender: No OFD packet to send [12:58:45]*** Cut start [12:58:45]*** Partial cut [12:58:45]*** CUTSNS_PIN = 1 [12:58:45]*** CUTSNS_PIN = 0 [12:58:45]*** Brake cut motor [12:58:45]Read from MH i2c: 01 [12:58:45]MH_I2C_Read... [12:58:45]*** Stop cut motor [12:58:45]*** Cut end [12:58:45]Read from MH i2c: 01 07 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: 01 07 00 FD 14 00 00 00 00 00 FF 0F 26 [12:58:45]process_action close_receipt done [12:58:45]requested_data is exist [12:58:45]produce_requested_data [12:58:45]requested_item fm.sn is exist - process it [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 11 00 00 [12:58:45]Write to MH i2c: E2 08 00 FE 14 80 11 00 00 00 00 00 00 8C [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:45]Read from MH i2c: E2 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 [12:58:45]MH_I2C_Read... [12:58:45]Read from MH i2c: E2 17 00 FE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DD [12:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [12:58:45]wFMCommunicate OK [12:58:45]requested_item fd.num is exist - process it [12:58:45]SAM_PROTO_GetFieldsCounters [12:58:45]wFMCommunicate request_size=4 [12:58:45]MH_SAM_APDU [12:58:45]CAPDU: 80 13 00 00 [12:58:45]Write to MH i2c: E2 08 00 FF 14 80 13 00 00 00 00 00 00 8F [12:58:45]Write i2c OK [12:58:45]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 62 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 62 00 FF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 88 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [12:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 88 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_GetFieldsCounters done [12:58:46]requested_item shift.num is exist - process it [12:58:46]requested_item shift.opened is exist - process it [12:58:46]req_shift_opened [12:58:46]FM_GetShiftState [12:58:46]SAM_PROTO_GetShiftState [12:58:46]wFMCommunicate request_size=4 [12:58:46]MH_SAM_APDU [12:58:46]CAPDU: 80 13 01 00 [12:58:46]Write to MH i2c: E2 08 00 00 15 80 13 01 00 00 00 00 00 92 [12:58:46]Write i2c OK [12:58:46]MH_I2C_Read... [12:58:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:46]Read from MH i2c: E2 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0E 00 [12:58:46]MH_I2C_Read... [12:58:46]Read from MH i2c: E2 0E 00 00 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2A [12:58:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [12:58:46]wFMCommunicate OK [12:58:46]SAM_PROTO_GetShiftState done [12:58:46]FM_GetShiftState done [12:58:46]req_shift_opened done [12:58:46]requested_item shift.open_date is exist - process it [12:58:46]req_shift_open_date [12:58:46]req_shift_open_date done [12:58:46]produce_requested_data done [12:58:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112264,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [12:58:46]process_action_free close_receipt [12:58:46]json_value_free [12:58:46]json_value_free done [12:58:46]process_json_proto returns [12:58:46]Send response to host [12:58:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112264,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [12:58:46]free response buf [12:58:46]execute_script done [12:58:46]execute_script returns [12:58:46]free content buf [12:58:46]Sock 9.Close socket [12:58:46]Sock 9.Thread stoped [12:58:49]OFD Sender: No OFD packet to send [12:58:54]OFD Sender: No OFD packet to send [12:58:59]OFD Sender: No OFD packet to send [12:59:04]OFD Sender: No OFD packet to send [12:59:09]OFD Sender: No OFD packet to send [12:59:14]OFD Sender: No OFD packet to send [12:59:19]OFD Sender: No OFD packet to send [12:59:24]OFD Sender: No OFD packet to send [12:59:29]OFD Sender: No OFD packet to send [12:59:34]OFD Sender: No OFD packet to send [12:59:39]OFD Sender: No OFD packet to send [12:59:44]OFD Sender: No OFD packet to send [12:59:49]OFD Sender: No OFD packet to send [12:59:54]OFD Sender: No OFD packet to send [12:59:59]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:15]OFD Sender: No OFD packet to send [13:01:20]OFD Sender: No OFD packet to send [13:01:21]accept exits with 7 [13:01:21]New connection [13:01:21]New thread 3067198820 created [13:01:21]Thread 3067342180 joined [13:01:21]Waiting for new connection... [13:01:21] Sock 7.Parse request [13:01:21]Sock 7.Check first char [13:01:21]Sock 7.First char is OK [13:01:21]request: POST /json_proto HTTP/1.0 [13:01:21]Method: POST [13:01:21]URL: /json_proto [13:01:21]Method is POST - this is cgi request [13:01:21]url: /json_proto [13:01:21]query_string will be loaded in cgi processing [13:01:21]execute_cgi json_proto POST (null) [13:01:21]execute_cgi path=json_proto method=POST [13:01:21]POST find Content-Length [13:01:21]Host: 172.17.96.197:8080 [13:01:21]Content-Length: 816 [13:01:21]Content-Type: application/json [13:01:21] [13:01:21]POST finish read [13:01:21]Found Content-Length = 816 [13:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48578", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:21]execute_script... [13:01: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)48578", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:21]POST & json_proto [13:01:21]process_json_proto [13:01:21]json parsed OK: [13:01:21]protocol is kg_v1.0 [13:01:21]action value=close_receipt [13:01:21]process_action close_receipt [13:01:21]cmd_close_receipt [13:01:21]MH_GetDate [13:01:21]Write to MH i2c: F0 00 00 01 15 05 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: F0 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: F0 09 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: F0 09 00 01 15 00 A2 D3 1B 66 E0 85 7F 64 4C [13:01:21]GetLastDocTimeStamp 1713099522 [13:01:21]current date 1713099682 [13:01:21]FM_GetShiftState [13:01:21]SAM_PROTO_GetShiftState [13:01:21]wFMCommunicate request_size=4 [13:01:21]MH_SAM_APDU [13:01:21]CAPDU: 80 13 01 00 [13:01:21]Write to MH i2c: E2 08 00 02 15 80 13 01 00 00 00 00 00 94 [13:01:21]Write i2c OK [13:01:21]MH_I2C_Read... [13:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:21]Read from MH i2c: E2 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 0E 00 [13:01:21]MH_I2C_Read... [13:01:21]Read from MH i2c: E2 0E 00 02 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2C [13:01:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:01:21]wFMCommunicate OK [13:01:21]SAM_PROTO_GetShiftState done [13:01:21]FM_GetShiftState done [13:01:21]opened in 1713054696 [13:01:21]opened+sec_in_day 1713141096 [13:01:21]quantity*price = 64300 [13:01:21]sum+1 = 64301 [13:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 164 14.04.2024 13:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112265 ФПД: 194970466499041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130122&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112265&fm=194970466499041&tin=02508201610067®Number=0000000000094237&sum=64300 [13:01:22]StoreToDocumentArchive [13:01:22]shift 357 fd 112265 [13:01:22]save to /storage/0357/doc_00112265 [13:01:22]save last doc name /storage/0357/doc_00112265 to /storage/kkm_last_doc_name [13:01:22]save OK [13:01:22]Clear old archive folders... [13:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:22]tlvbuf is 0177D730 [13:01:22]SAM_PROTO_ClearQueue [13:01:22]wFMCommunicate request_size=4 [13:01:22]MH_SAM_APDU [13:01:22]CAPDU: 80 09 00 00 [13:01:22]Write to MH i2c: E2 08 00 0F 15 80 09 00 00 00 00 00 00 96 [13:01:22]Write i2c OK [13:01:22]MH_I2C_Read... [13:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [13:01:23]RAPDU: 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_ClearQueue done [13:01:23]KKMCreateOFDPacket [13:01:23]OFDProtocolAddRootSTLVToBuf [13:01:23]FM_MakeSignedData [13:01:23]FM_MakeSignedData [13:01:23]SAM_PROTO_SignData [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 0D 01 02 [13:01:23]Write to MH i2c: E2 08 00 10 15 80 0D 01 02 00 00 00 00 9E [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [13:01:23]RAPDU: 90 00 [13:01:23]wFMCommunicate OK [13:01:23]wFMCommunicate request_size=255 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 A2 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B6 01 00 35 04 06 00 B1 [13:01:23]Write to MH i2c: E2 02 01 11 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 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 A2 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B6 01 00 35 04 06 00 B1 00 00 7B [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [13:01:23]RAPDU: 90 00 [13:01:23]wFMCommunicate OK [13:01:23]wFMCommunicate request_size=10 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 0D 02 02 05 53 19 65 B9 E1 [13:01:23]Write to MH i2c: E2 0D 00 12 15 80 0D 02 02 05 00 53 19 65 B9 E1 00 00 16 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 03 00 12 15 00 90 00 9B [13:01:23]RAPDU: 90 00 [13:01:23]wFMCommunicate OK [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 0D 03 02 [13:01:23]Write to MH i2c: E2 08 00 13 15 80 0D 03 02 00 00 00 00 A3 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0B 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 0B 00 13 15 00 75 3A B2 E3 A7 CA 19 38 90 00 AA [13:01:23]RAPDU: 75 3A B2 E3 A7 CA 19 38 90 00 [13:01:23]wFMCommunicate OK [13:01:23]SAM_PROTO_SignData done [13:01:23]FM_MakeSignedData done [13:01:23]CreateOFDProtocolMessage [13:01:23]wFMCommunicate request_size=4 [13:01:23]MH_SAM_APDU [13:01:23]CAPDU: 80 11 00 00 [13:01:23]Write to MH i2c: E2 08 00 14 15 80 11 00 00 00 00 00 00 A3 [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:23]Read from MH i2c: E2 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 17 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: E2 17 00 14 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F4 [13:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:01:23]wFMCommunicate OK [13:01:23]CreateOFDProtocolMessage done [13:01:23]OFDSenderStorePacket 112265 [13:01:23]StoreOFDPacket docnum=112265 [13:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 42 07 01 BA 46 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 A2 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B6 01 00 35 04 06 00 B1 53 19 65 B9 E1 75 3A B2 E3 A7 CA 19 38 [13:01:23]CheckFolder [13:01:23]dirname=/storage/ofd_packets [13:01:23]CheckFolder done [13:01:23]ProducePacketName [13:01:23]name=ofd_packets/00112265 [13:01:23]NVStorageSaveData ofd_packets/00112265 [13:01:23]File name is /storage/ofd_packets/00112265 [13:01:23]Write 301 bytes [13:01:23]NVStorageSaveData done [13:01:23]OFDSenderStorePacket done [13:01:23]KKMCreateOFDPacket done [13:01:23]NVStorageSaveData kkm_last_timestamp [13:01:23]File name is /storage/kkm_last_timestamp [13:01:23]Write 4 bytes [13:01:23]NVStorageSaveData done [13:01:23]ExternCall_PrintAddStr [13:01:23]wPrintStart [13:01:23]Write to MH i2c: 01 00 00 15 15 2A [13:01:23]Write i2c OK [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: 01 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: 01 07 00 [13:01:23]MH_I2C_Read... [13:01:23]Read from MH i2c: 01 07 00 15 15 00 00 00 00 00 FF 0F 3F [13:01:23]RasterBufferAndPrint [13:01:23]line Счет N : (1)48578 [13:01:23]line ИНН: 02508201610067 [13:01:23]line Контрольно-Кассовый Чек [13:01:23]line ПРОДАЖА [13:01:23]line ТРК (МРК, ГНК) : 32 [13:01:23]line Товар: 2710124130 [13:01:23]line Аи-92-К-5 [13:01:23]line 10.000 * 64.30 [13:01:23]line = 643.00 [13:01:23]line НДС 12% НСП 1% [13:01:23]line > о реализуемом товаре [13:01:23]line ИТОГО: 643.00 [13:01:23]line НСП 1% : 5.69 [13:01:23]line НДС 12% : 68.28 [13:01:23]line Наличными: 0.00 [13:01:23]line Безнал.: 643.00 [13:01:23]line Место: АЗС № 47 "Партнер Нефть" [13:01:23]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:01:23]line СНО: Общий режим [13:01:23]line Чек 164 14.04.2024 13:01 [13:01:23]line Смена: 357 ФФД: 1.0 [13:01:23]line ЗНМ: 0300000138 [13:01:23]line РНМ: 0000000000094237 [13:01:23]line Версия ККМ: 001 [13:01:23]line Платежная система: Бакай Банк [13:01:23]line ФМ: 0000000000875019 [13:01:23]line ФД: 112265 [13:01:23]line ФПД: 194970466499041 [13:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130122&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112265&fm=194970466499041&tin=02508201610067®Number=0000000000094237&sum=64300 [13:01:23]written 0, free lines is 4095 [13:01:23]OFD Sender: Processing packet 112265 [packets to send 71, broken 70] [13:01:23]ProducePacketName [13:01:23]name=ofd_packets/00112265 [13:01:23]OFD Sender: To server: pG, [13:01:23]CommunicateWithHost lk.salyk.kg:30040 [13:01:23]ConnectInit lk.salyk.kg [13:01:24]Connected sock=11 [13:01:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 42 07 01 BA 46 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 A2 D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B6 01 00 35 04 06 00 B1 53 19 65 B9 E1 75 3A B2 E3 A7 CA 19 38 [13:01:24]Write to MH i2c: 01 00 00 3F 15 54 [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: 01 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: 01 07 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 EE 0C 55 [13:01:24]RasterBufferAndPrint [13:01:24]line [13:01:24]line [13:01:24]line [13:01:24]line [13:01:24]line [13:01:24]written 0, free lines is 3314 [13:01:24]MH_Cut [13:01:24]Write to MH i2c: D1 01 00 46 15 01 2D [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: D1 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: D1 01 00 [13:01:24]MH_I2C_Read... [13:01:24]Read from MH i2c: D1 01 00 46 15 00 2C [13:01:24]Write to MH i2c: 01 00 00 47 15 5C [13:01:24]Write i2c OK [13:01:24]MH_I2C_Read... [13:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3F B3 47 00 AA 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B6 01 00 F4 03 04 00 2E 7B 1B 66 B6 04 01 00 00 B6 DA 8B 48 CA BE 99 94 [13:01:24]CommunicateWithHost err = 0 [13:01:24]CheckOFDResponse [13:01:24]1017 (14) - 77093643461234 [13:01:24]1041 (16) - 0000000000875019 [13:01:24]1040 (4) - 112265 [13:01:24]1012 (4) - 14.04.2024 06:43 [13:01:24]1206 (1) - 0 [13:01:24]OFD Sender: Remove packet 112265 [13:01:24]ProducePacketName [13:01:24]name=ofd_packets/00112265 [13:01:24]NVStorageDeleteData [13:01:24]OFD Sender: No OFD packet to send [13:01:25]*** Cut start [13:01:25]*** Partial cut [13:01:25]*** CUTSNS_PIN = 1 [13:01:25]*** CUTSNS_PIN = 0 [13:01:25]*** Brake cut motor [13:01:25]Read from MH i2c: 01 [13:01:25]MH_I2C_Read... [13:01:25]*** Stop cut motor [13:01:25]*** Cut end [13:01:25]Read from MH i2c: 01 07 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [13:01:25]process_action close_receipt done [13:01:25]requested_data is exist [13:01:25]produce_requested_data [13:01:25]requested_item fm.sn is exist - process it [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 11 00 00 [13:01:25]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [13:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:01:25]wFMCommunicate OK [13:01:25]requested_item fd.num is exist - process it [13:01:25]SAM_PROTO_GetFieldsCounters [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 13 00 00 [13:01:25]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 62 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 62 00 49 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 89 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [13:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 89 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_GetFieldsCounters done [13:01:25]requested_item shift.num is exist - process it [13:01:25]requested_item shift.opened is exist - process it [13:01:25]req_shift_opened [13:01:25]FM_GetShiftState [13:01:25]SAM_PROTO_GetShiftState [13:01:25]wFMCommunicate request_size=4 [13:01:25]MH_SAM_APDU [13:01:25]CAPDU: 80 13 01 00 [13:01:25]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [13:01:25]Write i2c OK [13:01:25]MH_I2C_Read... [13:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:25]Read from MH i2c: E2 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0E 00 [13:01:25]MH_I2C_Read... [13:01:25]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [13:01:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:01:25]wFMCommunicate OK [13:01:25]SAM_PROTO_GetShiftState done [13:01:25]FM_GetShiftState done [13:01:25]req_shift_opened done [13:01:25]requested_item shift.open_date is exist - process it [13:01:25]req_shift_open_date [13:01:25]req_shift_open_date done [13:01:25]produce_requested_data done [13:01:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112265,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:01:25]process_action_free close_receipt [13:01:25]json_value_free [13:01:25]json_value_free done [13:01:25]process_json_proto returns [13:01:25]Send response to host [13:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112265,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:01:25]free response buf [13:01:25]execute_script done [13:01:25]execute_script returns [13:01:25]free content buf [13:01:25]Sock 7.Close socket [13:01:25]Sock 7.Thread stoped [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:51]accept exits with 9 [13:02:51]New connection [13:02:51]New thread 3067342180 created [13:02:51]Thread 3067198820 joined [13:02:51]Waiting for new connection... [13:02:51] Sock 9.Parse request [13:02:51]Sock 9.Check first char [13:02:51]Sock 9.First char is OK [13:02:51]request: POST /json_proto HTTP/1.0 [13:02:51]Method: POST [13:02:51]URL: /json_proto [13:02:51]Method is POST - this is cgi request [13:02:51]url: /json_proto [13:02:51]query_string will be loaded in cgi processing [13:02:51]execute_cgi json_proto POST (null) [13:02:51]execute_cgi path=json_proto method=POST [13:02:51]POST find Content-Length [13:02:51]Host: 172.17.96.197:8080 [13:02:51]Content-Length: 678 [13:02:51]Content-Type: application/json [13:02:51] [13:02:51]POST finish read [13:02:51]Found Content-Length = 678 [13:02:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48580", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:02:51]execute_script... [13:02:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48580", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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:02:51]POST & json_proto [13:02:51]process_json_proto [13:02:51]json parsed OK: [13:02:51]protocol is kg_v1.0 [13:02:51]action value=close_receipt [13:02:51]process_action close_receipt [13:02:51]cmd_close_receipt [13:02:51]MH_GetDate [13:02:51]Write to MH i2c: F0 00 00 4B 15 4F [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: F0 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: F0 09 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: F0 09 00 4B 15 00 FC D3 1B 66 E0 85 7F 64 F0 [13:02:51]GetLastDocTimeStamp 1713099682 [13:02:51]current date 1713099772 [13:02:51]FM_GetShiftState [13:02:51]SAM_PROTO_GetShiftState [13:02:51]wFMCommunicate request_size=4 [13:02:51]MH_SAM_APDU [13:02:51]CAPDU: 80 13 01 00 [13:02:51]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [13:02:51]Write i2c OK [13:02:51]MH_I2C_Read... [13:02:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:51]Read from MH i2c: E2 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 [13:02:51]MH_I2C_Read... [13:02:51]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [13:02:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:02:51]wFMCommunicate OK [13:02:51]SAM_PROTO_GetShiftState done [13:02:51]FM_GetShiftState done [13:02:51]opened in 1713054696 [13:02:51]opened+sec_in_day 1713141096 [13:02:51]quantity*price = 100056 [13:02:51]sum+1 = 100058 [13:02:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 165 14.04.2024 13:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112266 ФПД: 276570354523943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130252&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112266&fm=276570354523943&tin=02508201610067®Number=0000000000094237&sum=100000 [13:02:53]StoreToDocumentArchive [13:02:53]shift 357 fd 112266 [13:02:53]save to /storage/0357/doc_00112266 [13:02:53]save last doc name /storage/0357/doc_00112266 to /storage/kkm_last_doc_name [13:02:53]save OK [13:02:53]Clear old archive folders... [13:02:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:02:53]tlvbuf is 017D40F0 [13:02:53]SAM_PROTO_ClearQueue [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 09 00 00 [13:02:53]Write to MH i2c: E2 08 00 59 15 80 09 00 00 00 00 00 00 E0 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_ClearQueue done [13:02:53]KKMCreateOFDPacket [13:02:53]OFDProtocolAddRootSTLVToBuf [13:02:53]FM_MakeSignedData [13:02:53]FM_MakeSignedData [13:02:53]SAM_PROTO_SignData [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 0D 01 02 [13:02:53]Write to MH i2c: E2 08 00 5A 15 80 0D 01 02 00 00 00 00 E8 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=255 [13:02:53]MH_SAM_APDU [13:02: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 A5 00 00 00 F4 03 04 00 FC D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B6 01 00 35 04 06 00 FB 8A 0D BC [13:02:53]Write to MH i2c: E2 02 01 5B 15 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 A5 00 00 00 F4 03 04 00 FC D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B6 01 00 35 04 06 00 FB 8A 0D BC 00 00 92 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=7 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 0D 02 02 02 9F 27 [13:02:53]Write to MH i2c: E2 0A 00 5C 15 80 0D 02 02 02 00 9F 27 00 00 B5 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [13:02:53]RAPDU: 90 00 [13:02:53]wFMCommunicate OK [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 0D 03 02 [13:02:53]Write to MH i2c: E2 08 00 5D 15 80 0D 03 02 00 00 00 00 ED [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 0B 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 0B 00 5D 15 00 25 8E EA 24 AD 66 FC DA 90 00 98 [13:02:53]RAPDU: 25 8E EA 24 AD 66 FC DA 90 00 [13:02:53]wFMCommunicate OK [13:02:53]SAM_PROTO_SignData done [13:02:53]FM_MakeSignedData done [13:02:53]CreateOFDProtocolMessage [13:02:53]wFMCommunicate request_size=4 [13:02:53]MH_SAM_APDU [13:02:53]CAPDU: 80 11 00 00 [13:02:53]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:53]Read from MH i2c: E2 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 17 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [13:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:02:53]wFMCommunicate OK [13:02:53]CreateOFDProtocolMessage done [13:02:53]OFDSenderStorePacket 112266 [13:02:53]StoreOFDPacket docnum=112266 [13:02:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 2E 76 04 01 C3 4A 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 A5 00 00 00 F4 03 04 00 FC D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B6 01 00 35 04 06 00 FB 8A 0D BC 9F 27 25 8E EA 24 AD 66 FC DA [13:02:53]CheckFolder [13:02:53]dirname=/storage/ofd_packets [13:02:53]CheckFolder done [13:02:53]ProducePacketName [13:02:53]name=ofd_packets/00112266 [13:02:53]NVStorageSaveData ofd_packets/00112266 [13:02:53]File name is /storage/ofd_packets/00112266 [13:02:53]Write 298 bytes [13:02:53]NVStorageSaveData done [13:02:53]OFDSenderStorePacket done [13:02:53]KKMCreateOFDPacket done [13:02:53]NVStorageSaveData kkm_last_timestamp [13:02:53]File name is /storage/kkm_last_timestamp [13:02:53]Write 4 bytes [13:02:53]NVStorageSaveData done [13:02:53]ExternCall_PrintAddStr [13:02:53]wPrintStart [13:02:53]Write to MH i2c: 01 00 00 5F 15 74 [13:02:53]Write i2c OK [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 07 00 [13:02:53]MH_I2C_Read... [13:02:53]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [13:02:53]RasterBufferAndPrint [13:02:53]line Счет N : (1)48580 [13:02:53]line ИНН: 02508201610067 [13:02:53]line Контрольно-Кассовый Чек [13:02:53]line ПРОДАЖА [13:02:53]line ТРК (МРК, ГНК) : 61 [13:02:53]line Товар: 2710194210 [13:02:53]line ДТ-К-5 [13:02:53]line 13.820 * 72.40 [13:02:53]line = 1000.57 [13:02:53]line НДС 12% НСП 1% [13:02:53]line > о реализуемом товаре [13:02:53]line ОКРУГЛЕНИЕ: -0.57 [13:02:53]line ИТОГО: 1000.00 [13:02:53]line Внесено: 1000.00 [13:02:53]line СДАЧА: 0.00 [13:02:53]line НСП 1% : 8.85 [13:02:53]line НДС 12% : 106.25 [13:02:53]line Наличными: 1000.00 [13:02:53]line Безнал.: 0.00 [13:02:53]line Место: АЗС № 47 "Партнер Нефть" [13:02:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:02:53]line СНО: Общий режим [13:02:53]line Чек 165 14.04.2024 13:02 [13:02:53]line Смена: 357 ФФД: 1.0 [13:02:53]line ЗНМ: 0300000138 [13:02:53]line РНМ: 0000000000094237 [13:02:53]line Версия ККМ: 001 [13:02:53]line ФМ: 0000000000875019 [13:02:53]line ФД: 112266 [13:02:53]line ФПД: 276570354523943 [13:02:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130252&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112266&fm=276570354523943&tin=02508201610067®Number=0000000000094237&sum=100000 [13:02:53]OFD Sender: Processing packet 112266 [packets to send 71, broken 70] [13:02:53]ProducePacketName [13:02:53]name=ofd_packets/00112266 [13:02:53]OFD Sender: To server: pG, [13:02:53]CommunicateWithHost lk.salyk.kg:30040 [13:02:53]ConnectInit lk.salyk.kg [13:02:53]written 0, free lines is 4095 [13:02:54]Connected sock=10 [13:02:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 2E 76 04 01 C3 4A 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 A5 00 00 00 F4 03 04 00 FC D3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B6 01 00 35 04 06 00 FB 8A 0D BC 9F 27 25 8E EA 24 AD 66 FC DA [13:02:54]Write to MH i2c: 01 00 00 8A 15 9F [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 E4 0C 96 [13:02:54]RasterBufferAndPrint [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]line [13:02:54]written 0, free lines is 3306 [13:02:54]MH_Cut [13:02:54]Write to MH i2c: D1 01 00 91 15 01 78 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 01 00 [13:02:54]MH_I2C_Read... [13:02:54]Read from MH i2c: D1 01 00 91 15 00 77 [13:02:54]Write to MH i2c: 01 00 00 92 15 A7 [13:02:54]Write i2c OK [13:02:54]MH_I2C_Read... [13:02:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B8 E9 47 00 CC 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B6 01 00 F4 03 04 00 88 7B 1B 66 B6 04 01 00 00 BB CB CA BD 60 99 0E D4 [13:02:54]CommunicateWithHost err = 0 [13:02:54]CheckOFDResponse [13:02:54]1017 (14) - 77093643461234 [13:02:54]1041 (16) - 0000000000875019 [13:02:54]1040 (4) - 112266 [13:02:54]1012 (4) - 14.04.2024 06:45 [13:02:54]1206 (1) - 0 [13:02:54]OFD Sender: Remove packet 112266 [13:02:54]ProducePacketName [13:02:54]name=ofd_packets/00112266 [13:02:54]NVStorageDeleteData [13:02:54]OFD Sender: No OFD packet to send [13:02:55]*** Cut start [13:02:55]*** Partial cut [13:02:55]*** CUTSNS_PIN = 1 [13:02:55]*** CUTSNS_PIN = 0 [13:02:55]*** Brake cut motor [13:02:55]Read from MH i2c: 01 [13:02:55]MH_I2C_Read... [13:02:55]*** Stop cut motor [13:02:55]*** Cut end [13:02:55]Read from MH i2c: 01 07 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 FF 0F BC [13:02:55]process_action close_receipt done [13:02:55]requested_data is exist [13:02:55]produce_requested_data [13:02:55]requested_item fm.sn is exist - process it [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 11 00 00 [13:02:55]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 73 [13:02:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:02:55]wFMCommunicate OK [13:02:55]requested_item fd.num is exist - process it [13:02:55]SAM_PROTO_GetFieldsCounters [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 13 00 00 [13:02:55]Write to MH i2c: E2 08 00 94 15 80 13 00 00 00 00 00 00 25 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 62 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 62 00 94 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [13:02:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_GetFieldsCounters done [13:02:55]requested_item shift.num is exist - process it [13:02:55]requested_item shift.opened is exist - process it [13:02:55]req_shift_opened [13:02:55]FM_GetShiftState [13:02:55]SAM_PROTO_GetShiftState [13:02:55]wFMCommunicate request_size=4 [13:02:55]MH_SAM_APDU [13:02:55]CAPDU: 80 13 01 00 [13:02:55]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [13:02:55]Write i2c OK [13:02:55]MH_I2C_Read... [13:02:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:02:55]Read from MH i2c: E2 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 [13:02:55]MH_I2C_Read... [13:02:55]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BF [13:02:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:02:55]wFMCommunicate OK [13:02:55]SAM_PROTO_GetShiftState done [13:02:55]FM_GetShiftState done [13:02:55]req_shift_opened done [13:02:55]requested_item shift.open_date is exist - process it [13:02:55]req_shift_open_date [13:02:55]req_shift_open_date done [13:02:55]produce_requested_data done [13:02:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112266,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:02:55]process_action_free close_receipt [13:02:55]json_value_free [13:02:55]json_value_free done [13:02:55]process_json_proto returns [13:02:55]Send response to host [13:02:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112266,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:02:55]free response buf [13:02:55]execute_script done [13:02:55]execute_script returns [13:02:55]free content buf [13:02:55]Sock 9.Close socket [13:02:55]Sock 9.Thread stoped [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:07:00]OFD Sender: No OFD packet to send [13:07:05]OFD Sender: No OFD packet to send [13:07:10]OFD Sender: No OFD packet to send [13:07:15]OFD Sender: No OFD packet to send [13:07:20]OFD Sender: No OFD packet to send [13:07:25]OFD Sender: No OFD packet to send [13:07:30]OFD Sender: No OFD packet to send [13:07:35]OFD Sender: No OFD packet to send [13:07:40]OFD Sender: No OFD packet to send [13:07:45]OFD Sender: No OFD packet to send [13:07:46]accept exits with 7 [13:07:46]New connection [13:07:46]New thread 3067198820 created [13:07:46]Thread 3067342180 joined [13:07:46]Waiting for new connection... [13:07:46] Sock 7.Parse request [13:07:46]Sock 7.Check first char [13:07:46]Sock 7.First char is OK [13:07:46]request: POST /json_proto HTTP/1.0 [13:07:46]Method: POST [13:07:46]URL: /json_proto [13:07:46]Method is POST - this is cgi request [13:07:46]url: /json_proto [13:07:46]query_string will be loaded in cgi processing [13:07:46]execute_cgi json_proto POST (null) [13:07:46]execute_cgi path=json_proto method=POST [13:07:46]POST find Content-Length [13:07:46]Host: 172.17.96.197:8080 [13:07:46]Content-Length: 871 [13:07:46]Content-Type: application/json [13:07:46] [13:07:46]POST finish read [13:07:46]Found Content-Length = 871 [13:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10419", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:46]execute_script... [13:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10419", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.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" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:46]POST & json_proto [13:07:46]process_json_proto [13:07:46]json parsed OK: [13:07:46]protocol is kg_v1.0 [13:07:46]action value=close_receipt [13:07:46]process_action close_receipt [13:07:46]cmd_close_receipt [13:07:46]MH_GetDate [13:07:46]Write to MH i2c: F0 00 00 96 15 9A [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: F0 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: F0 09 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: F0 09 00 96 15 00 23 D5 1B 66 E0 85 7F 64 64 [13:07:46]GetLastDocTimeStamp 1713099772 [13:07:46]current date 1713100067 [13:07:46]FM_GetShiftState [13:07:46]SAM_PROTO_GetShiftState [13:07:46]wFMCommunicate request_size=4 [13:07:46]MH_SAM_APDU [13:07:46]CAPDU: 80 13 01 00 [13:07:46]Write to MH i2c: E2 08 00 97 15 80 13 01 00 00 00 00 00 29 [13:07:46]Write i2c OK [13:07:46]MH_I2C_Read... [13:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:46]Read from MH i2c: E2 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 [13:07:46]MH_I2C_Read... [13:07:46]Read from MH i2c: E2 0E 00 97 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C1 [13:07:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:07:46]wFMCommunicate OK [13:07:46]SAM_PROTO_GetShiftState done [13:07:46]FM_GetShiftState done [13:07:46]opened in 1713054696 [13:07:46]opened+sec_in_day 1713141096 [13:07:46]quantity*price = 8900 [13:07:46]sum+1 = 8901 [13:07:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 0.00 Безнал.: 89.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 166 14.04.2024 13:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112267 ФПД: 66676315150703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130747&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112267&fm=66676315150703&tin=02508201610067®Number=0000000000094237&sum=8900 0 [13:07:47]StoreToDocumentArchive [13:07:47]shift 357 fd 112267 [13:07:47]save to /storage/0357/doc_00112267 [13:07:47]save last doc name /storage/0357/doc_00112267 to /storage/kkm_last_doc_name [13:07:47]save OK [13:07:47]Clear old archive folders... [13:07:47]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:07:47]tlvbuf is 0177C930 [13:07:47]SAM_PROTO_ClearQueue [13:07:47]wFMCommunicate request_size=4 [13:07:47]MH_SAM_APDU [13:07:47]CAPDU: 80 09 00 00 [13:07:47]Write to MH i2c: E2 08 00 A4 15 80 09 00 00 00 00 00 00 2B [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:47]Read from MH i2c: E2 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 03 00 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [13:07:47]RAPDU: 90 00 [13:07:47]wFMCommunicate OK [13:07:47]SAM_PROTO_ClearQueue done [13:07:47]KKMCreateOFDPacket [13:07:47]OFDProtocolAddRootSTLVToBuf [13:07:47]FM_MakeSignedData [13:07:47]FM_MakeSignedData [13:07:47]SAM_PROTO_SignData [13:07:47]wFMCommunicate request_size=4 [13:07:47]MH_SAM_APDU [13:07:47]CAPDU: 80 0D 01 02 [13:07:47]Write to MH i2c: E2 08 00 A5 15 80 0D 01 02 00 00 00 00 33 [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:47]Read from MH i2c: E2 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 03 00 [13:07:47]MH_I2C_Read... [13:07:47]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [13:07:47]RAPDU: 90 00 [13:07:47]wFMCommunicate OK [13:07:47]wFMCommunicate request_size=255 [13:07:47]MH_SAM_APDU [13:07:47]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:07:47]Write to MH i2c: E2 02 01 A6 15 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 F4 [13:07:47]Write i2c OK [13:07:47]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [13:07:48]RAPDU: 90 00 [13:07:48]wFMCommunicate OK [13:07:48]wFMCommunicate request_size=53 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B6 01 00 35 04 06 00 3C A4 4A 14 59 6F [13:07:48]Write to MH i2c: E2 38 00 A7 15 80 0D 02 02 30 00 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B6 01 00 35 04 06 00 3C A4 4A 14 59 6F 00 00 71 [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [13:07:48]RAPDU: 90 00 [13:07:48]wFMCommunicate OK [13:07:48]wFMCommunicate request_size=4 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 0D 03 02 [13:07:48]Write to MH i2c: E2 08 00 A8 15 80 0D 03 02 00 00 00 00 38 [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 0B 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 0B 00 A8 15 00 9C 25 B6 0C 93 43 8F 81 90 00 A2 [13:07:48]RAPDU: 9C 25 B6 0C 93 43 8F 81 90 00 [13:07:48]wFMCommunicate OK [13:07:48]SAM_PROTO_SignData done [13:07:48]FM_MakeSignedData done [13:07:48]CreateOFDProtocolMessage [13:07:48]wFMCommunicate request_size=4 [13:07:48]MH_SAM_APDU [13:07:48]CAPDU: 80 11 00 00 [13:07:48]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:48]Read from MH i2c: E2 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 17 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [13:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:07:48]wFMCommunicate OK [13:07:48]CreateOFDProtocolMessage done [13:07:48]OFDSenderStorePacket 112267 [13:07:48]StoreOFDPacket docnum=112267 [13:07:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3A 01 00 00 8D 19 32 01 F4 9C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B6 01 00 35 04 06 00 3C A4 4A 14 59 6F 9C 25 B6 0C 93 43 8F 81 [13:07:48]CheckFolder [13:07:48]dirname=/storage/ofd_packets [13:07:48]CheckFolder done [13:07:48]ProducePacketName [13:07:48]name=ofd_packets/00112267 [13:07:48]NVStorageSaveData ofd_packets/00112267 [13:07:48]File name is /storage/ofd_packets/00112267 [13:07:48]Write 344 bytes [13:07:48]NVStorageSaveData done [13:07:48]OFDSenderStorePacket done [13:07:48]KKMCreateOFDPacket done [13:07:48]NVStorageSaveData kkm_last_timestamp [13:07:48]File name is /storage/kkm_last_timestamp [13:07:48]Write 4 bytes [13:07:48]NVStorageSaveData done [13:07:48]ExternCall_PrintAddStr [13:07:48]wPrintStart [13:07:48]Write to MH i2c: 01 00 00 AA 15 BF [13:07:48]Write i2c OK [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: 01 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: 01 07 00 [13:07:48]MH_I2C_Read... [13:07:48]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [13:07:48]RasterBufferAndPrint [13:07:48]line Счет N : (3)10419 [13:07:48]line ИНН: 02508201610067 [13:07:48]line Контрольно-Кассовый Чек [13:07:48]line ПРОДАЖА [13:07:48]line Товар: 5000159381178 [13:07:48]line Шок Батончик Баунти Трио 82,5г [13:07:48]line 1.000 * 89.00 [13:07:48]line = 89.00 [13:07:48]line НДС 12% НСП 1% [13:07:48]line > о реализуемом товаре [13:07:48]line ИТОГО: 89.00 [13:07:48]line НСП 1% : 0.79 [13:07:48]line НДС 12% : 9.45 [13:07:48]line Наличными: 0.00 [13:07:48]line Безнал.: 89.00 [13:07:48]line Место: АЗС № 47 "Партнер Нефть" [13:07:48]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:07:48]line СНО: Общий режим [13:07:48]line Чек 166 14.04.2024 13:07 [13:07:48]line Смена: 357 ФФД: 1.0 [13:07:48]line ЗНМ: 0300000138 [13:07:48]line РНМ: 0000000000094237 [13:07:48]line Версия ККМ: 001 [13:07:48]line Платежная система: Бакай Банк [13:07:48]line ФМ: 0000000000875019 [13:07:48]line ФД: 112267 [13:07:48]line ФПД: 66676315150703 [13:07:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130747&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112267&fm=66676315150703&tin=02508201610067®Number=0000000000094237&sum=8900 [13:07:48]line 0 [13:07:48]OFD Sender: Processing packet 112267 [packets to send 71, broken 70] [13:07:48]ProducePacketName [13:07:48]name=ofd_packets/00112267 [13:07:48]OFD Sender: To server: pG, [13:07:48]CommunicateWithHost lk.salyk.kg:30040 [13:07:48]ConnectInit lk.salyk.kg [13:07:48]written 0, free lines is 4095 [13:07:48]Connected sock=10 [13:07:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3A 01 00 00 8D 19 32 01 F4 9C 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C4 22 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 23 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B6 01 00 35 04 06 00 3C A4 4A 14 59 6F 9C 25 B6 0C 93 43 8F 81 [13:07:49]Write to MH i2c: 01 00 00 D5 15 EA [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 C9 0C C6 [13:07:49]RasterBufferAndPrint [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]line [13:07:49]written 0, free lines is 3280 [13:07:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E1 E9 47 00 71 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B6 01 00 F4 03 04 00 AF 7C 1B 66 B6 04 01 00 00 35 37 01 F3 49 6C 71 C2 [13:07:49]CommunicateWithHost err = 0 [13:07:49]CheckOFDResponse [13:07:49]1017 (14) - 77093643461234 [13:07:49]1041 (16) - 0000000000875019 [13:07:49]1040 (4) - 112267 [13:07:49]1012 (4) - 14.04.2024 06:50 [13:07:49]1206 (1) - 0 [13:07:49]OFD Sender: Remove packet 112267 [13:07:49]ProducePacketName [13:07:49]name=ofd_packets/00112267 [13:07:49]NVStorageDeleteData [13:07:49]MH_Cut [13:07:49]Write to MH i2c: D1 01 00 DC 15 01 C3 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 01 00 [13:07:49]MH_I2C_Read... [13:07:49]Read from MH i2c: D1 01 00 DC 15 00 C2 [13:07:49]Write to MH i2c: 01 00 00 DD 15 F2 [13:07:49]Write i2c OK [13:07:49]MH_I2C_Read... [13:07:49]OFD Sender: No OFD packet to send [13:07:49]*** Cut start [13:07:49]*** Partial cut [13:07:49]*** CUTSNS_PIN = 1 [13:07:49]*** CUTSNS_PIN = 0 [13:07:50]*** Brake cut motor [13:07:50]Read from MH i2c: 01 [13:07:50]MH_I2C_Read... [13:07:50]*** Stop cut motor [13:07:50]*** Cut end [13:07:50]Read from MH i2c: 01 07 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FF 0F 07 [13:07:50]process_action close_receipt done [13:07:50]requested_data is exist [13:07:50]produce_requested_data [13:07:50]requested_item fm.sn is exist - process it [13:07:50]wFMCommunicate request_size=4 [13:07:50]MH_SAM_APDU [13:07:50]CAPDU: 80 11 00 00 [13:07:50]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [13:07:50]Write i2c OK [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 [13:07:50]MH_I2C_Read... [13:07:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:50]Read from MH i2c: E2 17 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BE [13:07:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:07:50]wFMCommunicate OK [13:07:50]requested_item fd.num is exist - process it [13:07:50]SAM_PROTO_GetFieldsCounters [13:07:50]wFMCommunicate request_size=4 [13:07:50]MH_SAM_APDU [13:07:50]CAPDU: 80 13 00 00 [13:07:50]Write to MH i2c: E2 08 00 DF 15 80 13 00 00 00 00 00 00 70 [13:07:50]Write i2c OK [13:07:50]MH_I2C_Read... [13:07:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:50]Read from MH i2c: E2 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 62 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 62 00 DF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [13:07:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:50]wFMCommunicate OK [13:07:50]SAM_PROTO_GetFieldsCounters done [13:07:50]requested_item shift.num is exist - process it [13:07:50]requested_item shift.opened is exist - process it [13:07:50]req_shift_opened [13:07:50]FM_GetShiftState [13:07:50]SAM_PROTO_GetShiftState [13:07:50]wFMCommunicate request_size=4 [13:07:50]MH_SAM_APDU [13:07:50]CAPDU: 80 13 01 00 [13:07:50]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [13:07:50]Write i2c OK [13:07:50]MH_I2C_Read... [13:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:50]Read from MH i2c: E2 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 0E 00 [13:07:50]MH_I2C_Read... [13:07:50]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0A [13:07:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:07:50]wFMCommunicate OK [13:07:50]SAM_PROTO_GetShiftState done [13:07:50]FM_GetShiftState done [13:07:50]req_shift_opened done [13:07:50]requested_item shift.open_date is exist - process it [13:07:50]req_shift_open_date [13:07:50]req_shift_open_date done [13:07:50]produce_requested_data done [13:07:50]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112267,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:07:50]process_action_free close_receipt [13:07:50]json_value_free [13:07:50]json_value_free done [13:07:50]process_json_proto returns [13:07:50]Send response to host [13:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112267,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:07:50]free response buf [13:07:50]execute_script done [13:07:50]execute_script returns [13:07:50]free content buf [13:07:50]Sock 7.Close socket [13:07:50]Sock 7.Thread stoped [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:39]accept exits with 9 [13:08:39]New connection [13:08:39]New thread 3067342180 created [13:08:39]Thread 3067198820 joined [13:08:39]Waiting for new connection... [13:08:39] Sock 9.Parse request [13:08:39]Sock 9.Check first char [13:08:39]Sock 9.First char is OK [13:08:39]request: POST /json_proto HTTP/1.0 [13:08:39]Method: POST [13:08:39]URL: /json_proto [13:08:39]Method is POST - this is cgi request [13:08:39]url: /json_proto [13:08:39]query_string will be loaded in cgi processing [13:08:39]execute_cgi json_proto POST (null) [13:08:39]execute_cgi path=json_proto method=POST [13:08:39]POST find Content-Length [13:08:39]Host: 172.17.96.197:8080 [13:08:39]Content-Length: 676 [13:08:39]Content-Type: application/json [13:08:39] [13:08:39]POST finish read [13:08:39]Found Content-Length = 676 [13:08:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48582", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [13:08:39]execute_script... [13:08: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)48582", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [13:08:39]POST & json_proto [13:08:39]process_json_proto [13:08:39]json parsed OK: [13:08:39]protocol is kg_v1.0 [13:08:39]action value=close_receipt [13:08:39]process_action close_receipt [13:08:39]cmd_close_receipt [13:08:39]MH_GetDate [13:08:39]Write to MH i2c: F0 00 00 E1 15 E5 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 09 00 [13:08:39]MH_I2C_Read... [13:08:39]Read from MH i2c: F0 09 00 E1 15 00 58 D5 1B 66 E0 85 7F 64 E4 [13:08:39]GetLastDocTimeStamp 1713100067 [13:08:39]current date 1713100120 [13:08:39]FM_GetShiftState [13:08:39]SAM_PROTO_GetShiftState [13:08:39]wFMCommunicate request_size=4 [13:08:39]MH_SAM_APDU [13:08:39]CAPDU: 80 13 01 00 [13:08:39]Write to MH i2c: E2 08 00 E2 15 80 13 01 00 00 00 00 00 74 [13:08:39]Write i2c OK [13:08:39]MH_I2C_Read... [13:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:40]Read from MH i2c: E2 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 [13:08:40]MH_I2C_Read... [13:08:40]Read from MH i2c: E2 0E 00 E2 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0C [13:08:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:08:40]wFMCommunicate OK [13:08:40]SAM_PROTO_GetShiftState done [13:08:40]FM_GetShiftState done [13:08:40]opened in 1713054696 [13:08:40]opened+sec_in_day 1713141096 [13:08:40]quantity*price = 40058 [13:08:40]sum+1 = 40060 [13:08:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 167 14.04.2024 13:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112268 ФПД: 64161013358518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130840&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112268&fm=64161013358518&tin=02508201610067®Number=0000000000094237&sum=40000 [13:08:41]StoreToDocumentArchive [13:08:41]shift 357 fd 112268 [13:08:41]save to /storage/0357/doc_00112268 [13:08:41]save last doc name /storage/0357/doc_00112268 to /storage/kkm_last_doc_name [13:08:41]save OK [13:08:41]Clear old archive folders... [13:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:08:41]tlvbuf is 0181FA50 [13:08:41]SAM_PROTO_ClearQueue [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 09 00 00 [13:08:41]Write to MH i2c: E2 08 00 EF 15 80 09 00 00 00 00 00 00 76 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_ClearQueue done [13:08:41]KKMCreateOFDPacket [13:08:41]OFDProtocolAddRootSTLVToBuf [13:08:41]FM_MakeSignedData [13:08:41]FM_MakeSignedData [13:08:41]SAM_PROTO_SignData [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 01 02 [13:08:41]Write to MH i2c: E2 08 00 F0 15 80 0D 01 02 00 00 00 00 7E [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=255 [13:08:41]MH_SAM_APDU [13:08:41]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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 A7 00 00 00 F4 03 04 00 58 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B6 01 00 35 04 06 00 3A [13:08:41]Write to MH i2c: E2 02 01 F1 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 A7 00 00 00 F4 03 04 00 58 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B6 01 00 35 04 06 00 3A 00 00 43 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 F1 15 00 90 00 7A [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=10 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 02 02 05 5A A6 68 DF B6 [13:08:41]Write to MH i2c: E2 0D 00 F2 15 80 0D 02 02 05 00 5A A6 68 DF B6 00 00 88 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 03 00 F2 15 00 90 00 7B [13:08:41]RAPDU: 90 00 [13:08:41]wFMCommunicate OK [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 0D 03 02 [13:08:41]Write to MH i2c: E2 08 00 F3 15 80 0D 03 02 00 00 00 00 83 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 0B 00 F3 15 00 CA B9 51 C3 E8 F3 7C 22 90 00 94 [13:08:41]RAPDU: CA B9 51 C3 E8 F3 7C 22 90 00 [13:08:41]wFMCommunicate OK [13:08:41]SAM_PROTO_SignData done [13:08:41]FM_MakeSignedData done [13:08:41]CreateOFDProtocolMessage [13:08:41]wFMCommunicate request_size=4 [13:08:41]MH_SAM_APDU [13:08:41]CAPDU: 80 11 00 00 [13:08:41]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:41]Read from MH i2c: E2 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 17 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D4 [13:08:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:08:41]wFMCommunicate OK [13:08:41]CreateOFDProtocolMessage done [13:08:41]OFDSenderStorePacket 112268 [13:08:41]StoreOFDPacket docnum=112268 [13:08:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DD 85 07 01 CC ED 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 A7 00 00 00 F4 03 04 00 58 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B6 01 00 35 04 06 00 3A 5A A6 68 DF B6 CA B9 51 C3 E8 F3 7C 22 [13:08:41]CheckFolder [13:08:41]dirname=/storage/ofd_packets [13:08:41]CheckFolder done [13:08:41]ProducePacketName [13:08:41]name=ofd_packets/00112268 [13:08:41]NVStorageSaveData ofd_packets/00112268 [13:08:41]File name is /storage/ofd_packets/00112268 [13:08:41]Write 301 bytes [13:08:41]NVStorageSaveData done [13:08:41]OFDSenderStorePacket done [13:08:41]KKMCreateOFDPacket done [13:08:41]NVStorageSaveData kkm_last_timestamp [13:08:41]File name is /storage/kkm_last_timestamp [13:08:41]Write 4 bytes [13:08:41]NVStorageSaveData done [13:08:41]ExternCall_PrintAddStr [13:08:41]wPrintStart [13:08:41]Write to MH i2c: 01 00 00 F5 15 0A [13:08:41]Write i2c OK [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 [13:08:41]MH_I2C_Read... [13:08:41]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [13:08:41]RasterBufferAndPrint [13:08:41]line Счет N : (1)48582 [13:08:41]line ИНН: 02508201610067 [13:08:41]line Контрольно-Кассовый Чек [13:08:41]line ПРОДАЖА [13:08:41]line ТРК (МРК, ГНК) : 32 [13:08:41]line Товар: 2710124130 [13:08:41]line Аи-92-К-5 [13:08:41]line 6.230 * 64.30 [13:08:41]line = 400.59 [13:08:41]line НДС 12% НСП 1% [13:08:41]line > о реализуемом товаре [13:08:41]line ОКРУГЛЕНИЕ: -0.59 [13:08:41]line ИТОГО: 400.00 [13:08:41]line Внесено: 400.00 [13:08:41]line СДАЧА: 0.00 [13:08:41]line НСП 1% : 3.54 [13:08:41]line НДС 12% : 42.54 [13:08:41]line Наличными: 400.00 [13:08:41]line Безнал.: 0.00 [13:08:41]line Место: АЗС № 47 "Партнер Нефть" [13:08:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:08:41]line СНО: Общий режим [13:08:41]line Чек 167 14.04.2024 13:08 [13:08:41]line Смена: 357 ФФД: 1.0 [13:08:41]line ЗНМ: 0300000138 [13:08:41]line РНМ: 0000000000094237 [13:08:41]line Версия ККМ: 001 [13:08:41]line ФМ: 0000000000875019 [13:08:41]line ФД: 112268 [13:08:41]line ФПД: 64161013358518 [13:08:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130840&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112268&fm=64161013358518&tin=02508201610067®Number=0000000000094237&sum=40000 [13:08:41]written 0, free lines is 4095 [13:08:41]OFD Sender: Processing packet 112268 [packets to send 71, broken 70] [13:08:41]ProducePacketName [13:08:41]name=ofd_packets/00112268 [13:08:41]OFD Sender: To server: pG, [13:08:41]CommunicateWithHost lk.salyk.kg:30040 [13:08:41]ConnectInit lk.salyk.kg [13:08:41]Connected sock=10 [13:08:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DD 85 07 01 CC ED 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 A7 00 00 00 F4 03 04 00 58 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B6 01 00 35 04 06 00 3A 5A A6 68 DF B6 CA B9 51 C3 E8 F3 7C 22 [13:08:42]Write to MH i2c: 01 00 00 20 16 36 [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 EF 0C 38 [13:08:42]RasterBufferAndPrint [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]line [13:08:42]written 0, free lines is 3317 [13:08:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A9 43 47 00 E0 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B6 01 00 F4 03 04 00 E4 7C 1B 66 B6 04 01 00 00 81 DA B4 C4 E0 C7 E4 3F [13:08:42]CommunicateWithHost err = 0 [13:08:42]CheckOFDResponse [13:08:42]1017 (14) - 77093643461234 [13:08:42]1041 (16) - 0000000000875019 [13:08:42]1040 (4) - 112268 [13:08:42]1012 (4) - 14.04.2024 06:51 [13:08:42]1206 (1) - 0 [13:08:42]OFD Sender: Remove packet 112268 [13:08:42]ProducePacketName [13:08:42]name=ofd_packets/00112268 [13:08:42]NVStorageDeleteData [13:08:42]MH_Cut [13:08:42]Write to MH i2c: D1 01 00 27 16 01 0F [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 01 00 [13:08:42]MH_I2C_Read... [13:08:42]Read from MH i2c: D1 01 00 27 16 00 0E [13:08:42]Write to MH i2c: 01 00 00 28 16 3E [13:08:42]Write i2c OK [13:08:42]MH_I2C_Read... [13:08:42]OFD Sender: No OFD packet to send [13:08:42]*** Cut start [13:08:42]*** Partial cut [13:08:42]*** CUTSNS_PIN = 1 [13:08:42]*** CUTSNS_PIN = 0 [13:08:43]*** Brake cut motor [13:08:43]Read from MH i2c: 01 [13:08:43]MH_I2C_Read... [13:08:43]*** Stop cut motor [13:08:43]*** Cut end [13:08:43]Read from MH i2c: 01 07 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 FF 0F 53 [13:08:43]process_action close_receipt done [13:08:43]requested_data is exist [13:08:43]produce_requested_data [13:08:43]requested_item fm.sn is exist - process it [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 11 00 00 [13:08:43]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0A [13:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:08:43]wFMCommunicate OK [13:08:43]requested_item fd.num is exist - process it [13:08:43]SAM_PROTO_GetFieldsCounters [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 13 00 00 [13:08:43]Write to MH i2c: E2 08 00 2A 16 80 13 00 00 00 00 00 00 BC [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 62 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 62 00 2A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [13:08:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:43]wFMCommunicate OK [13:08:43]SAM_PROTO_GetFieldsCounters done [13:08:43]requested_item shift.num is exist - process it [13:08:43]requested_item shift.opened is exist - process it [13:08:43]req_shift_opened [13:08:43]FM_GetShiftState [13:08:43]SAM_PROTO_GetShiftState [13:08:43]wFMCommunicate request_size=4 [13:08:43]MH_SAM_APDU [13:08:43]CAPDU: 80 13 01 00 [13:08:43]Write to MH i2c: E2 08 00 2B 16 80 13 01 00 00 00 00 00 BE [13:08:43]Write i2c OK [13:08:43]MH_I2C_Read... [13:08:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:43]Read from MH i2c: E2 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 0E 00 [13:08:43]MH_I2C_Read... [13:08:43]Read from MH i2c: E2 0E 00 2B 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 56 [13:08:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:08:43]wFMCommunicate OK [13:08:43]SAM_PROTO_GetShiftState done [13:08:43]FM_GetShiftState done [13:08:43]req_shift_opened done [13:08:43]requested_item shift.open_date is exist - process it [13:08:43]req_shift_open_date [13:08:43]req_shift_open_date done [13:08:43]produce_requested_data done [13:08:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112268,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:08:43]process_action_free close_receipt [13:08:43]json_value_free [13:08:43]json_value_free done [13:08:43]process_json_proto returns [13:08:43]Send response to host [13:08:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112268,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:08:43]free response buf [13:08:43]execute_script done [13:08:43]execute_script returns [13:08:43]free content buf [13:08:43]Sock 9.Close socket [13:08:43]Sock 9.Thread stoped [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]accept exits with 7 [13:09:07]New connection [13:09:07]New thread 3067198820 created [13:09:07]Thread 3067342180 joined [13:09:07]Waiting for new connection... [13:09:07] Sock 7.Parse request [13:09:07]Sock 7.Check first char [13:09:07]Sock 7.First char is OK [13:09:07]request: POST /json_proto HTTP/1.0 [13:09:07]Method: POST [13:09:07]URL: /json_proto [13:09:07]Method is POST - this is cgi request [13:09:07]url: /json_proto [13:09:07]query_string will be loaded in cgi processing [13:09:07]execute_cgi json_proto POST (null) [13:09:07]execute_cgi path=json_proto method=POST [13:09:07]POST find Content-Length [13:09:07]Host: 172.17.96.197:8080 [13:09:07]Content-Length: 676 [13:09:07]Content-Type: application/json [13:09:07] [13:09:07]POST finish read [13:09:07]Found Content-Length = 676 [13:09:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48583", "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.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:07]execute_script... [13:09:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48583", "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.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:07]POST & json_proto [13:09:07]process_json_proto [13:09:07]json parsed OK: [13:09:07]protocol is kg_v1.0 [13:09:07]action value=close_receipt [13:09:07]process_action close_receipt [13:09:07]cmd_close_receipt [13:09:07]MH_GetDate [13:09:07]Write to MH i2c: F0 00 00 2C 16 31 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 09 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: F0 09 00 2C 16 00 74 D5 1B 66 E0 85 7F 64 4C [13:09:07]GetLastDocTimeStamp 1713100120 [13:09:07]current date 1713100148 [13:09:07]FM_GetShiftState [13:09:07]SAM_PROTO_GetShiftState [13:09:07]wFMCommunicate request_size=4 [13:09:07]MH_SAM_APDU [13:09:07]CAPDU: 80 13 01 00 [13:09:07]Write to MH i2c: E2 08 00 2D 16 80 13 01 00 00 00 00 00 C0 [13:09:07]Write i2c OK [13:09:07]MH_I2C_Read... [13:09:07]OFD Sender: No OFD packet to send [13:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:07]Read from MH i2c: E2 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0E 00 [13:09:07]MH_I2C_Read... [13:09:07]Read from MH i2c: E2 0E 00 2D 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [13:09:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:09:07]wFMCommunicate OK [13:09:07]SAM_PROTO_GetShiftState done [13:09:07]FM_GetShiftState done [13:09:07]opened in 1713054696 [13:09:07]opened+sec_in_day 1713141096 [13:09:07]quantity*price = 30028 [13:09:07]sum+1 = 30029 [13:09:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 168 14.04.2024 13:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112269 ФПД: 120944772250412 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130908&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112269&fm=120944772250412&tin=02508201610067®Number=0000000000094237&sum=30000 [13:09:08]StoreToDocumentArchive [13:09:08]shift 357 fd 112269 [13:09:08]save to /storage/0357/doc_00112269 [13:09:08]save last doc name /storage/0357/doc_00112269 to /storage/kkm_last_doc_name [13:09:08]save OK [13:09:08]Clear old archive folders... [13:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:09:08]tlvbuf is 017D34B0 [13:09:08]SAM_PROTO_ClearQueue [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 09 00 00 [13:09:08]Write to MH i2c: E2 08 00 3A 16 80 09 00 00 00 00 00 00 C2 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 3A 16 00 90 00 C4 [13:09:08]RAPDU: 90 00 [13:09:08]wFMCommunicate OK [13:09:08]SAM_PROTO_ClearQueue done [13:09:08]KKMCreateOFDPacket [13:09:08]OFDProtocolAddRootSTLVToBuf [13:09:08]FM_MakeSignedData [13:09:08]FM_MakeSignedData [13:09:08]SAM_PROTO_SignData [13:09:08]wFMCommunicate request_size=4 [13:09:08]MH_SAM_APDU [13:09:08]CAPDU: 80 0D 01 02 [13:09:08]Write to MH i2c: E2 08 00 3B 16 80 0D 01 02 00 00 00 00 CA [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:08]Read from MH i2c: E2 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 [13:09:08]MH_I2C_Read... [13:09:08]Read from MH i2c: E2 03 00 3B 16 00 90 00 C5 [13:09:08]RAPDU: 90 00 [13:09:08]wFMCommunicate OK [13:09:08]wFMCommunicate request_size=255 [13:09:08]MH_SAM_APDU [13:09: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 A8 00 00 00 F4 03 04 00 74 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B6 01 00 35 04 06 00 6D [13:09:08]Write to MH i2c: E2 02 01 3C 16 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 A8 00 00 00 F4 03 04 00 74 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B6 01 00 35 04 06 00 6D 00 00 79 [13:09:08]Write i2c OK [13:09:08]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 3C 16 00 90 00 C6 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=10 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 02 02 05 FF A6 2F FB 2C [13:09:09]Write to MH i2c: E2 0D 00 3D 16 80 0D 02 02 05 00 FF A6 2F FB 2C 00 00 D2 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [13:09:09]RAPDU: 90 00 [13:09:09]wFMCommunicate OK [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 0D 03 02 [13:09:09]Write to MH i2c: E2 08 00 3E 16 80 0D 03 02 00 00 00 00 CF [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 0B 00 3E 16 00 AC 08 37 CD ED AB 89 C5 90 00 6E [13:09:09]RAPDU: AC 08 37 CD ED AB 89 C5 90 00 [13:09:09]wFMCommunicate OK [13:09:09]SAM_PROTO_SignData done [13:09:09]FM_MakeSignedData done [13:09:09]CreateOFDProtocolMessage [13:09:09]wFMCommunicate request_size=4 [13:09:09]MH_SAM_APDU [13:09:09]CAPDU: 80 11 00 00 [13:09:09]Write to MH i2c: E2 08 00 3F 16 80 11 00 00 00 00 00 00 CF [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:09]Read from MH i2c: E2 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: E2 17 00 3F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 20 [13:09:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:09:09]wFMCommunicate OK [13:09:09]CreateOFDProtocolMessage done [13:09:09]OFDSenderStorePacket 112269 [13:09:09]StoreOFDPacket docnum=112269 [13:09:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 05 07 01 05 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 A8 00 00 00 F4 03 04 00 74 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B6 01 00 35 04 06 00 6D FF A6 2F FB 2C AC 08 37 CD ED AB 89 C5 [13:09:09]CheckFolder [13:09:09]dirname=/storage/ofd_packets [13:09:09]CheckFolder done [13:09:09]ProducePacketName [13:09:09]name=ofd_packets/00112269 [13:09:09]NVStorageSaveData ofd_packets/00112269 [13:09:09]File name is /storage/ofd_packets/00112269 [13:09:09]Write 301 bytes [13:09:09]NVStorageSaveData done [13:09:09]OFDSenderStorePacket done [13:09:09]KKMCreateOFDPacket done [13:09:09]NVStorageSaveData kkm_last_timestamp [13:09:09]File name is /storage/kkm_last_timestamp [13:09:09]Write 4 bytes [13:09:09]NVStorageSaveData done [13:09:09]ExternCall_PrintAddStr [13:09:09]wPrintStart [13:09:09]Write to MH i2c: 01 00 00 40 16 56 [13:09:09]Write i2c OK [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 [13:09:09]MH_I2C_Read... [13:09:09]Read from MH i2c: 01 07 00 40 16 00 00 00 00 00 FF 0F 6B [13:09:09]RasterBufferAndPrint [13:09:09]line Счет N : (1)48583 [13:09:09]line ИНН: 02508201610067 [13:09:09]line Контрольно-Кассовый Чек [13:09:09]line ПРОДАЖА [13:09:09]line ТРК (МРК, ГНК) : 42 [13:09:09]line Товар: 2710124130 [13:09:09]line Аи-92-К-5 [13:09:09]line 4.670 * 64.30 [13:09:09]line = 300.28 [13:09:09]line НДС 12% НСП 1% [13:09:09]line > о реализуемом товаре [13:09:09]line ОКРУГЛЕНИЕ: -0.28 [13:09:09]line ИТОГО: 300.00 [13:09:09]line Внесено: 300.00 [13:09:09]line СДАЧА: 0.00 [13:09:09]line НСП 1% : 2.66 [13:09:09]line НДС 12% : 31.89 [13:09:09]line Наличными: 300.00 [13:09:09]line Безнал.: 0.00 [13:09:09]line Место: АЗС № 47 "Партнер Нефть" [13:09:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:09:09]line СНО: Общий режим [13:09:09]line Чек 168 14.04.2024 13:09 [13:09:09]line Смена: 357 ФФД: 1.0 [13:09:09]line ЗНМ: 0300000138 [13:09:09]line РНМ: 0000000000094237 [13:09:09]line Версия ККМ: 001 [13:09:09]line ФМ: 0000000000875019 [13:09:09]line ФД: 112269 [13:09:09]line ФПД: 120944772250412 [13:09:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T130908&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112269&fm=120944772250412&tin=02508201610067®Number=0000000000094237&sum=30000 [13:09:09]OFD Sender: Processing packet 112269 [packets to send 71, broken 70] [13:09:09]ProducePacketName [13:09:09]name=ofd_packets/00112269 [13:09:09]OFD Sender: To server: pG, [13:09:09]CommunicateWithHost lk.salyk.kg:30040 [13:09:09]ConnectInit lk.salyk.kg [13:09:09]written 0, free lines is 4095 [13:09:09]Connected sock=10 [13:09:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 05 07 01 05 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 A8 00 00 00 F4 03 04 00 74 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B6 01 00 35 04 06 00 6D FF A6 2F FB 2C AC 08 37 CD ED AB 89 C5 [13:09:10]Write to MH i2c: 01 00 00 6B 16 81 [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 D9 0C 6D [13:09:10]RasterBufferAndPrint [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]line [13:09:10]written 0, free lines is 3294 [13:09:10]MH_Cut [13:09:10]Write to MH i2c: D1 01 00 72 16 01 5A [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 [13:09:10]MH_I2C_Read... [13:09:10]Read from MH i2c: D1 01 00 72 16 00 59 [13:09:10]Write to MH i2c: 01 00 00 73 16 89 [13:09:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 38 F0 47 00 C6 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B6 01 00 F4 03 04 00 00 7D 1B 66 B6 04 01 00 00 BF 92 16 07 57 78 0E 6F [13:09:10]CommunicateWithHost err = 0 [13:09:10]CheckOFDResponse [13:09:10]1017 (14) - 77093643461234 [13:09:10]1041 (16) - 0000000000875019 [13:09:10]1040 (4) - 112269 [13:09:10]1012 (4) - 14.04.2024 06:51 [13:09:10]1206 (1) - 0 [13:09:10]OFD Sender: Remove packet 112269 [13:09:10]ProducePacketName [13:09:10]name=ofd_packets/00112269 [13:09:10]NVStorageDeleteData [13:09:10]Write i2c OK [13:09:10]MH_I2C_Read... [13:09:10]OFD Sender: No OFD packet to send [13:09:10]*** Cut start [13:09:10]*** Partial cut [13:09:10]*** CUTSNS_PIN = 1 [13:09:10]*** CUTSNS_PIN = 0 [13:09:11]*** Brake cut motor [13:09:11]Read from MH i2c: 01 [13:09:11]MH_I2C_Read... [13:09:11]*** Stop cut motor [13:09:11]*** Cut end [13:09:11]Read from MH i2c: 01 07 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 FF 0F 9E [13:09:11]process_action close_receipt done [13:09:11]requested_data is exist [13:09:11]produce_requested_data [13:09:11]requested_item fm.sn is exist - process it [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 11 00 00 [13:09:11]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 17 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [13:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:09:11]wFMCommunicate OK [13:09:11]requested_item fd.num is exist - process it [13:09:11]SAM_PROTO_GetFieldsCounters [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 13 00 00 [13:09:11]Write to MH i2c: E2 08 00 75 16 80 13 00 00 00 00 00 00 07 [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 62 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 62 00 75 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:11]wFMCommunicate OK [13:09:11]SAM_PROTO_GetFieldsCounters done [13:09:11]requested_item shift.num is exist - process it [13:09:11]requested_item shift.opened is exist - process it [13:09:11]req_shift_opened [13:09:11]FM_GetShiftState [13:09:11]SAM_PROTO_GetShiftState [13:09:11]wFMCommunicate request_size=4 [13:09:11]MH_SAM_APDU [13:09:11]CAPDU: 80 13 01 00 [13:09:11]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [13:09:11]Write i2c OK [13:09:11]MH_I2C_Read... [13:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:11]Read from MH i2c: E2 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 0E 00 [13:09:11]MH_I2C_Read... [13:09:11]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A1 [13:09:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:09:11]wFMCommunicate OK [13:09:11]SAM_PROTO_GetShiftState done [13:09:11]FM_GetShiftState done [13:09:11]req_shift_opened done [13:09:11]requested_item shift.open_date is exist - process it [13:09:11]req_shift_open_date [13:09:11]req_shift_open_date done [13:09:11]produce_requested_data done [13:09:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112269,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:09:11]process_action_free close_receipt [13:09:11]json_value_free [13:09:11]json_value_free done [13:09:11]process_json_proto returns [13:09:11]Send response to host [13:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112269,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:09:11]free response buf [13:09:11]execute_script done [13:09:11]execute_script returns [13:09:11]free content buf [13:09:11]Sock 7.Close socket [13:09:11]Sock 7.Thread stoped [13:09:12]accept exits with 9 [13:09:12]New connection [13:09:12]New thread 3067342180 created [13:09:12]Thread 3067198820 joined [13:09:12]Waiting for new connection... [13:09:12] Sock 9.Parse request [13:09:12]Sock 9.Check first char [13:09:12]Sock 9.First char is OK [13:09:12]request: POST /json_proto HTTP/1.0 [13:09:12]Method: POST [13:09:12]URL: /json_proto [13:09:12]Method is POST - this is cgi request [13:09:12]url: /json_proto [13:09:12]query_string will be loaded in cgi processing [13:09:12]execute_cgi json_proto POST (null) [13:09:12]execute_cgi path=json_proto method=POST [13:09:12]POST find Content-Length [13:09:12]Host: 172.17.96.197:8080 [13:09:12]Content-Length: 1208 [13:09:12]Content-Type: application/json [13:09:12] [13:09:12]POST finish read [13:09:12]Found Content-Length = 1208 [13:09:12]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48581\u000A14.04.2024 12:48\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3215.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\u000A43218\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:12]execute_script... [13:09:12]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48581\u000A14.04.2024 12:48\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 50.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 3215.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\u000A43218\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:12]POST & json_proto [13:09:12]process_json_proto [13:09:12]json parsed OK: [13:09:12]protocol is kg_v1.0 [13:09:12]action value=print_text [13:09:12]process_action print_text [13:09:12]cmd_print_text [13:09:12]ExternCall_PrintAddStr [13:09:12]wPrintStart [13:09:12]Write to MH i2c: 01 00 00 77 16 8D [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 77 16 00 00 00 00 00 FF 0F A2 [13:09:12]RasterBufferAndPrint [13:09:12]line *****ТОВАРНЫЙ ЧЕК***** [13:09:12]line АЗС 47 [13:09:12]line Партнер нефть [13:09:12]line 02508201610067 [13:09:12]line Кассир : Таалайбек к. П. [13:09:12]line Счет N : (1)48581 [13:09:12]line 14.04.2024 12:48 [13:09:12]line ПРОДАЖА [13:09:12]line ТРК (МРК, ГНК): 11 [13:09:12]line Вид ГСМ : 2710124130 [13:09:12]line Аи-92-К-5 [13:09:12]line 50.000 x 64.30 [13:09:12]line ИТОГ: 3215.00 [13:09:12]line Тип оплаты: Талоны: Топливная Карта [13:09:12]line 43218 [13:09:12]line ______________________ [13:09:12]line (подпись) [13:09:12]written 0, free lines is 4095 [13:09:12]Write to MH i2c: 01 00 00 8C 16 A2 [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: 01 07 00 8C 16 00 00 00 00 00 F3 0D A9 [13:09:12]RasterBufferAndPrint [13:09:12]line [13:09:12]line [13:09:12]line [13:09:12]line [13:09:12]line [13:09:12]written 0, free lines is 3574 [13:09:12]MH_Cut [13:09:12]Write to MH i2c: D1 01 00 93 16 01 7B [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: D1 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: D1 01 00 [13:09:12]MH_I2C_Read... [13:09:12]Read from MH i2c: D1 01 00 93 16 00 7A [13:09:12]Write to MH i2c: 01 00 00 94 16 AA [13:09:12]Write i2c OK [13:09:12]MH_I2C_Read... [13:09:12]*** Cut start [13:09:12]*** Partial cut [13:09:12]*** CUTSNS_PIN = 1 [13:09:12]*** CUTSNS_PIN = 0 [13:09:13]*** Brake cut motor [13:09:13]Read from MH i2c: 01 [13:09:13]MH_I2C_Read... [13:09:13]*** Stop cut motor [13:09:13]*** Cut end [13:09:13]Read from MH i2c: 01 07 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: 01 07 00 94 16 00 00 00 00 00 FF 0F BF [13:09:13]process_action print_text done [13:09:13]requested_data is exist [13:09:13]produce_requested_data [13:09:13]requested_item fm.sn is exist - process it [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 11 00 00 [13:09:13]Write to MH i2c: E2 08 00 95 16 80 11 00 00 00 00 00 00 25 [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 17 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 17 00 95 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 76 [13:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:09:13]wFMCommunicate OK [13:09:13]requested_item fd.num is exist - process it [13:09:13]SAM_PROTO_GetFieldsCounters [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 13 00 00 [13:09:13]Write to MH i2c: E2 08 00 96 16 80 13 00 00 00 00 00 00 28 [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 62 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 62 00 96 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [13:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:13]wFMCommunicate OK [13:09:13]SAM_PROTO_GetFieldsCounters done [13:09:13]requested_item shift.num is exist - process it [13:09:13]requested_item shift.opened is exist - process it [13:09:13]req_shift_opened [13:09:13]FM_GetShiftState [13:09:13]SAM_PROTO_GetShiftState [13:09:13]wFMCommunicate request_size=4 [13:09:13]MH_SAM_APDU [13:09:13]CAPDU: 80 13 01 00 [13:09:13]Write to MH i2c: E2 08 00 97 16 80 13 01 00 00 00 00 00 2A [13:09:13]Write i2c OK [13:09:13]MH_I2C_Read... [13:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:13]Read from MH i2c: E2 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 0E 00 [13:09:13]MH_I2C_Read... [13:09:13]Read from MH i2c: E2 0E 00 97 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C2 [13:09:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:09:13]wFMCommunicate OK [13:09:13]SAM_PROTO_GetShiftState done [13:09:13]FM_GetShiftState done [13:09:13]req_shift_opened done [13:09:13]requested_item shift.open_date is exist - process it [13:09:13]req_shift_open_date [13:09:13]req_shift_open_date done [13:09:13]produce_requested_data done [13:09:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112269,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:09:13]process_action_free print_text [13:09:13]json_value_free [13:09:13]json_value_free done [13:09:13]process_json_proto returns [13:09:13]Send response to host [13:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112269,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:09:13]free response buf [13:09:13]execute_script done [13:09:13]execute_script returns [13:09:13]free content buf [13:09:13]Sock 9.Close socket [13:09:13]Sock 9.Thread stoped [13:09:15]OFD Sender: No OFD packet to send [13:09:20]OFD Sender: No OFD packet to send [13:09:25]OFD Sender: No OFD packet to send [13:09:30]OFD Sender: No OFD packet to send [13:09:35]OFD Sender: No OFD packet to send [13:09:40]OFD Sender: No OFD packet to send [13:09:45]OFD Sender: No OFD packet to send [13:09:50]OFD Sender: No OFD packet to send [13:09:55]OFD Sender: No OFD packet to send [13:10:00]OFD Sender: No OFD packet to send [13:10:05]OFD Sender: No OFD packet to send [13:10:10]OFD Sender: No OFD packet to send [13:10:15]OFD Sender: No OFD packet to send [13:10:20]OFD Sender: No OFD packet to send [13:10:25]OFD Sender: No OFD packet to send [13:10:30]OFD Sender: No OFD packet to send [13:10:35]OFD Sender: No OFD packet to send [13:10:40]OFD Sender: No OFD packet to send [13:10:45]OFD Sender: No OFD packet to send [13:10:50]OFD Sender: No OFD packet to send [13:10:55]OFD Sender: No OFD packet to send [13:11:00]accept exits with 7 [13:11:00]New connection [13:11:00]New thread 3067198820 created [13:11:00]Thread 3067342180 joined [13:11:00]Waiting for new connection... [13:11:00] Sock 7.Parse request [13:11:00]Sock 7.Check first char [13:11:00]Sock 7.First char is OK [13:11:00]request: POST /json_proto HTTP/1.0 [13:11:00]Method: POST [13:11:00]URL: /json_proto [13:11:00]Method is POST - this is cgi request [13:11:00]url: /json_proto [13:11:00]query_string will be loaded in cgi processing [13:11:00]execute_cgi json_proto POST (null) [13:11:00]execute_cgi path=json_proto method=POST [13:11:00]POST find Content-Length [13:11:00]Host: 172.17.96.197:8080 [13:11:00]Content-Length: 676 [13:11:00]Content-Type: application/json [13:11:00] [13:11:00]POST finish read [13:11:00]Found Content-Length = 676 [13:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48584", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [13:11:00]execute_script... [13:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48584", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [13:11:00]POST & json_proto [13:11:00]process_json_proto [13:11:00]json parsed OK: [13:11:00]protocol is kg_v1.0 [13:11:00]action value=close_receipt [13:11:00]process_action close_receipt [13:11:00]cmd_close_receipt [13:11:00]MH_GetDate [13:11:00]Write to MH i2c: F0 00 00 98 16 9D [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 09 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: F0 09 00 98 16 00 E5 D5 1B 66 E0 85 7F 64 29 [13:11:00]GetLastDocTimeStamp 1713100148 [13:11:00]current date 1713100261 [13:11:00]FM_GetShiftState [13:11:00]SAM_PROTO_GetShiftState [13:11:00]wFMCommunicate request_size=4 [13:11:00]MH_SAM_APDU [13:11:00]CAPDU: 80 13 01 00 [13:11:00]Write to MH i2c: E2 08 00 99 16 80 13 01 00 00 00 00 00 2C [13:11:00]Write i2c OK [13:11:00]MH_I2C_Read... [13:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:00]Read from MH i2c: E2 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 [13:11:00]MH_I2C_Read... [13:11:00]Read from MH i2c: E2 0E 00 99 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [13:11:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:11:00]wFMCommunicate OK [13:11:00]SAM_PROTO_GetShiftState done [13:11:00]FM_GetShiftState done [13:11:00]opened in 1713054696 [13:11:00]opened+sec_in_day 1713141096 [13:11:00]quantity*price = 60056 [13:11:00]sum+1 = 60057 [13:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 169 14.04.2024 13:11 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112270 ФПД: 249355779154906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131101&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112270&fm=249355779154906&tin=02508201610067®Number=0000000000094237&sum=60000 [13:11:01]StoreToDocumentArchive [13:11:01]shift 357 fd 112270 [13:11:01]save to /storage/0357/doc_00112270 [13:11:01]save last doc name /storage/0357/doc_00112270 to /storage/kkm_last_doc_name [13:11:01]save OK [13:11:01]Clear old archive folders... [13:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:11:01]tlvbuf is 0184A1E0 [13:11:01]SAM_PROTO_ClearQueue [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 09 00 00 [13:11:01]Write to MH i2c: E2 08 00 A6 16 80 09 00 00 00 00 00 00 2E [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]SAM_PROTO_ClearQueue done [13:11:01]KKMCreateOFDPacket [13:11:01]OFDProtocolAddRootSTLVToBuf [13:11:01]FM_MakeSignedData [13:11:01]FM_MakeSignedData [13:11:01]SAM_PROTO_SignData [13:11:01]wFMCommunicate request_size=4 [13:11:01]MH_SAM_APDU [13:11:01]CAPDU: 80 0D 01 02 [13:11:01]Write to MH i2c: E2 08 00 A7 16 80 0D 01 02 00 00 00 00 36 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 [13:11:01]MH_I2C_Read... [13:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:01]Read from MH i2c: E2 03 00 [13:11:01]MH_I2C_Read... [13:11:01]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [13:11:01]RAPDU: 90 00 [13:11:01]wFMCommunicate OK [13:11:01]wFMCommunicate request_size=255 [13:11:01]MH_SAM_APDU [13:11:01]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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 A9 00 00 00 F4 03 04 00 E5 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B6 01 00 35 04 06 00 E2 [13:11:01]Write to MH i2c: E2 02 01 A8 16 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 A9 00 00 00 F4 03 04 00 E5 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B6 01 00 35 04 06 00 E2 00 00 B3 [13:11:01]Write i2c OK [13:11:01]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=10 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 02 02 05 C9 AA A3 A3 DA [13:11:02]Write to MH i2c: E2 0D 00 A9 16 80 0D 02 02 05 00 C9 AA A3 A3 DA 00 00 D6 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 03 00 A9 16 00 90 00 33 [13:11:02]RAPDU: 90 00 [13:11:02]wFMCommunicate OK [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 0D 03 02 [13:11:02]Write to MH i2c: E2 08 00 AA 16 80 0D 03 02 00 00 00 00 3B [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 0B 00 AA 16 00 55 D4 03 32 51 6E 7A D7 90 00 AA [13:11:02]RAPDU: 55 D4 03 32 51 6E 7A D7 90 00 [13:11:02]wFMCommunicate OK [13:11:02]SAM_PROTO_SignData done [13:11:02]FM_MakeSignedData done [13:11:02]CreateOFDProtocolMessage [13:11:02]wFMCommunicate request_size=4 [13:11:02]MH_SAM_APDU [13:11:02]CAPDU: 80 11 00 00 [13:11:02]Write to MH i2c: E2 08 00 AB 16 80 11 00 00 00 00 00 00 3B [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:02]Read from MH i2c: E2 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: E2 17 00 AB 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8C [13:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:11:02]wFMCommunicate OK [13:11:02]CreateOFDProtocolMessage done [13:11:02]OFDSenderStorePacket 112270 [13:11:02]StoreOFDPacket docnum=112270 [13:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 55 31 07 01 82 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 A9 00 00 00 F4 03 04 00 E5 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B6 01 00 35 04 06 00 E2 C9 AA A3 A3 DA 55 D4 03 32 51 6E 7A D7 [13:11:02]CheckFolder [13:11:02]dirname=/storage/ofd_packets [13:11:02]CheckFolder done [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00112270 [13:11:02]NVStorageSaveData ofd_packets/00112270 [13:11:02]File name is /storage/ofd_packets/00112270 [13:11:02]Write 301 bytes [13:11:02]NVStorageSaveData done [13:11:02]OFDSenderStorePacket done [13:11:02]KKMCreateOFDPacket done [13:11:02]NVStorageSaveData kkm_last_timestamp [13:11:02]File name is /storage/kkm_last_timestamp [13:11:02]Write 4 bytes [13:11:02]NVStorageSaveData done [13:11:02]ExternCall_PrintAddStr [13:11:02]wPrintStart [13:11:02]Write to MH i2c: 01 00 00 AC 16 C2 [13:11:02]Write i2c OK [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 [13:11:02]MH_I2C_Read... [13:11:02]Read from MH i2c: 01 07 00 AC 16 00 00 00 00 00 FF 0F D7 [13:11:02]RasterBufferAndPrint [13:11:02]line Счет N : (1)48584 [13:11:02]line ИНН: 02508201610067 [13:11:02]line Контрольно-Кассовый Чек [13:11:02]line ПРОДАЖА [13:11:02]line ТРК (МРК, ГНК) : 32 [13:11:02]line Товар: 2710124130 [13:11:02]line Аи-92-К-5 [13:11:02]line 9.340 * 64.30 [13:11:02]line = 600.56 [13:11:02]line НДС 12% НСП 1% [13:11:02]line > о реализуемом товаре [13:11:02]line ОКРУГЛЕНИЕ: -0.56 [13:11:02]line ИТОГО: 600.00 [13:11:02]line Внесено: 600.00 [13:11:02]line СДАЧА: 0.00 [13:11:02]line НСП 1% : 5.31 [13:11:02]line НДС 12% : 63.78 [13:11:02]line Наличными: 600.00 [13:11:02]line Безнал.: 0.00 [13:11:02]line Место: АЗС № 47 "Партнер Нефть" [13:11:02]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:11:02]line СНО: Общий режим [13:11:02]line Чек 169 14.04.2024 13:11 [13:11:02]line Смена: 357 ФФД: 1.0 [13:11:02]line ЗНМ: 0300000138 [13:11:02]line РНМ: 0000000000094237 [13:11:02]line Версия ККМ: 001 [13:11:02]line ФМ: 0000000000875019 [13:11:02]line ФД: 112270 [13:11:02]line ФПД: 249355779154906 [13:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131101&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112270&fm=249355779154906&tin=02508201610067®Number=0000000000094237&sum=60000 [13:11:02]OFD Sender: Processing packet 112270 [packets to send 71, broken 70] [13:11:02]ProducePacketName [13:11:02]name=ofd_packets/00112270 [13:11:02]OFD Sender: To server: pG, [13:11:02]CommunicateWithHost lk.salyk.kg:30040 [13:11:02]ConnectInit lk.salyk.kg [13:11:02]written 0, free lines is 4095 [13:11:03]Write to MH i2c: 01 00 00 D7 16 ED [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: 01 07 00 D7 16 00 00 00 00 00 DC 0C DC [13:11:03]RasterBufferAndPrint [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]line [13:11:03]written 0, free lines is 3299 [13:11:03]MH_Cut [13:11:03]Write to MH i2c: D1 01 00 DE 16 01 C6 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 [13:11:03]MH_I2C_Read... [13:11:03]Read from MH i2c: D1 01 00 DE 16 00 C5 [13:11:03]Write to MH i2c: 01 00 00 DF 16 F5 [13:11:03]Write i2c OK [13:11:03]MH_I2C_Read... [13:11:03]*** Cut start [13:11:03]*** Partial cut [13:11:03]*** CUTSNS_PIN = 1 [13:11:03]*** CUTSNS_PIN = 0 [13:11:04]*** Brake cut motor [13:11:04]Read from MH i2c: 01 [13:11:04]MH_I2C_Read... [13:11:04]*** Stop cut motor [13:11:04]*** Cut end [13:11:04]Read from MH i2c: 01 07 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: 01 07 00 DF 16 00 00 00 00 00 FF 0F 0A [13:11:04]process_action close_receipt done [13:11:04]requested_data is exist [13:11:04]produce_requested_data [13:11:04]requested_item fm.sn is exist - process it [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 11 00 00 [13:11:04]Write to MH i2c: E2 08 00 E0 16 80 11 00 00 00 00 00 00 70 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 17 00 E0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C1 [13:11:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:11:04]wFMCommunicate OK [13:11:04]requested_item fd.num is exist - process it [13:11:04]SAM_PROTO_GetFieldsCounters [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 00 00 [13:11:04]Write to MH i2c: E2 08 00 E1 16 80 13 00 00 00 00 00 00 73 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 62 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 62 00 E1 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [13:11:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetFieldsCounters done [13:11:04]requested_item shift.num is exist - process it [13:11:04]requested_item shift.opened is exist - process it [13:11:04]req_shift_opened [13:11:04]FM_GetShiftState [13:11:04]SAM_PROTO_GetShiftState [13:11:04]wFMCommunicate request_size=4 [13:11:04]MH_SAM_APDU [13:11:04]CAPDU: 80 13 01 00 [13:11:04]Write to MH i2c: E2 08 00 E2 16 80 13 01 00 00 00 00 00 75 [13:11:04]Write i2c OK [13:11:04]MH_I2C_Read... [13:11:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:04]Read from MH i2c: E2 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 [13:11:04]MH_I2C_Read... [13:11:04]Read from MH i2c: E2 0E 00 E2 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0D [13:11:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:11:04]wFMCommunicate OK [13:11:04]SAM_PROTO_GetShiftState done [13:11:04]FM_GetShiftState done [13:11:04]req_shift_opened done [13:11:04]requested_item shift.open_date is exist - process it [13:11:04]req_shift_open_date [13:11:04]req_shift_open_date done [13:11:04]produce_requested_data done [13:11:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112270,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:11:04]process_action_free close_receipt [13:11:04]json_value_free [13:11:04]json_value_free done [13:11:04]process_json_proto returns [13:11:04]Send response to host [13:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112270,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:11:04]free response buf [13:11:04]execute_script done [13:11:04]execute_script returns [13:11:04]free content buf [13:11:04]Sock 7.Close socket [13:11:04]Sock 7.Thread stoped [13:13:16]ConnectInit Can't connect to host [13:13:16]CommunicateWithHost connect error [13:13:16]CommunicateWithHost err = -1 [13:13:16]OFD Sender: Server communicate error [13:13:21]OFD Sender: Processing packet 112270 [packets to send 71, broken 70] [13:13:21]ProducePacketName [13:13:21]name=ofd_packets/00112270 [13:13:21]OFD Sender: To server: pG, [13:13:21]CommunicateWithHost lk.salyk.kg:30040 [13:13:21]ConnectInit lk.salyk.kg [13:13:21]Connected sock=7 [13:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 55 31 07 01 82 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 A9 00 00 00 F4 03 04 00 E5 D5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B6 01 00 35 04 06 00 E2 C9 AA A3 A3 DA 55 D4 03 32 51 6E 7A D7 [13:13:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 07 9C 47 00 0B D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B6 01 00 F4 03 04 00 FB 7D 1B 66 B6 04 01 00 00 25 42 01 63 BE D9 45 97 [13:13:22]CommunicateWithHost err = 0 [13:13:22]CheckOFDResponse [13:13:22]1017 (14) - 77093643461234 [13:13:22]1041 (16) - 0000000000875019 [13:13:22]1040 (4) - 112270 [13:13:22]1012 (4) - 14.04.2024 06:55 [13:13:22]1206 (1) - 0 [13:13:22]OFD Sender: Remove packet 112270 [13:13:22]ProducePacketName [13:13:22]name=ofd_packets/00112270 [13:13:22]NVStorageDeleteData [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:41]accept exits with 9 [13:14:41]New connection [13:14:41]New thread 3067342180 created [13:14:41]Thread 3067198820 joined [13:14:41]Waiting for new connection... [13:14:41] Sock 9.Parse request [13:14:41]Sock 9.Check first char [13:14:41]Sock 9.First char is OK [13:14:41]request: POST /json_proto HTTP/1.0 [13:14:41]Method: POST [13:14:41]URL: /json_proto [13:14:41]Method is POST - this is cgi request [13:14:41]url: /json_proto [13:14:41]query_string will be loaded in cgi processing [13:14:41]execute_cgi json_proto POST (null) [13:14:41]execute_cgi path=json_proto method=POST [13:14:41]POST find Content-Length [13:14:41]Host: 172.17.96.197:8080 [13:14:41]Content-Length: 816 [13:14:41]Content-Type: application/json [13:14:41] [13:14:41]POST finish read [13:14:41]Found Content-Length = 816 [13:14:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:41]execute_script... [13:14: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)48585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:14:41]POST & json_proto [13:14:41]process_json_proto [13:14:41]json parsed OK: [13:14:41]protocol is kg_v1.0 [13:14:41]action value=close_receipt [13:14:41]process_action close_receipt [13:14:41]cmd_close_receipt [13:14:41]MH_GetDate [13:14:41]Write to MH i2c: F0 00 00 E3 16 E8 [13:14:41]Write i2c OK [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: F0 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: F0 09 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: F0 09 00 E3 16 00 C2 D6 1B 66 E0 85 7F 64 52 [13:14:41]GetLastDocTimeStamp 1713100261 [13:14:41]current date 1713100482 [13:14:41]FM_GetShiftState [13:14:41]SAM_PROTO_GetShiftState [13:14:41]wFMCommunicate request_size=4 [13:14:41]MH_SAM_APDU [13:14:41]CAPDU: 80 13 01 00 [13:14:41]Write to MH i2c: E2 08 00 E4 16 80 13 01 00 00 00 00 00 77 [13:14:41]Write i2c OK [13:14:41]MH_I2C_Read... [13:14:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:41]Read from MH i2c: E2 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 0E 00 [13:14:41]MH_I2C_Read... [13:14:41]Read from MH i2c: E2 0E 00 E4 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [13:14:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:14:41]wFMCommunicate OK [13:14:41]SAM_PROTO_GetShiftState done [13:14:41]FM_GetShiftState done [13:14:41]opened in 1713054696 [13:14:41]opened+sec_in_day 1713141096 [13:14:41]quantity*price = 64300 [13:14:41]sum+1 = 64301 [13:14:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 170 14.04.2024 13:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112271 ФПД: 184877078832586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112271&fm=184877078832586&tin=02508201610067®Number=0000000000094237&sum=64300 [13:14:42]StoreToDocumentArchive [13:14:42]shift 357 fd 112271 [13:14:42]save to /storage/0357/doc_00112271 [13:14:42]save last doc name /storage/0357/doc_00112271 to /storage/kkm_last_doc_name [13:14:42]save OK [13:14:42]Clear old archive folders... [13:14:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:14:42]tlvbuf is 017C5A70 [13:14:42]SAM_PROTO_ClearQueue [13:14:42]wFMCommunicate request_size=4 [13:14:42]MH_SAM_APDU [13:14:42]CAPDU: 80 09 00 00 [13:14:42]Write to MH i2c: E2 08 00 F1 16 80 09 00 00 00 00 00 00 79 [13:14:42]Write i2c OK [13:14:42]MH_I2C_Read... [13:14:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [13:14:43]RAPDU: 90 00 [13:14:43]wFMCommunicate OK [13:14:43]SAM_PROTO_ClearQueue done [13:14:43]KKMCreateOFDPacket [13:14:43]OFDProtocolAddRootSTLVToBuf [13:14:43]FM_MakeSignedData [13:14:43]FM_MakeSignedData [13:14:43]SAM_PROTO_SignData [13:14:43]wFMCommunicate request_size=4 [13:14:43]MH_SAM_APDU [13:14:43]CAPDU: 80 0D 01 02 [13:14:43]Write to MH i2c: E2 08 00 F2 16 80 0D 01 02 00 00 00 00 81 [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [13:14:43]RAPDU: 90 00 [13:14:43]wFMCommunicate OK [13:14:43]wFMCommunicate request_size=255 [13:14:43]MH_SAM_APDU [13:14: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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B6 01 00 35 04 06 00 A8 [13:14:43]Write to MH i2c: E2 02 01 F3 16 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B6 01 00 35 04 06 00 A8 00 00 84 [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [13:14:43]RAPDU: 90 00 [13:14:43]wFMCommunicate OK [13:14:43]wFMCommunicate request_size=10 [13:14:43]MH_SAM_APDU [13:14:43]CAPDU: 80 0D 02 02 05 25 0C 9C 65 CA [13:14:43]Write to MH i2c: E2 0D 00 F4 16 80 0D 02 02 05 00 25 0C 9C 65 CA 00 00 8A [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 03 00 F4 16 00 90 00 7E [13:14:43]RAPDU: 90 00 [13:14:43]wFMCommunicate OK [13:14:43]wFMCommunicate request_size=4 [13:14:43]MH_SAM_APDU [13:14:43]CAPDU: 80 0D 03 02 [13:14:43]Write to MH i2c: E2 08 00 F5 16 80 0D 03 02 00 00 00 00 86 [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 0B 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 0B 00 F5 16 00 3D 14 C8 B7 C6 FB A9 80 90 00 41 [13:14:43]RAPDU: 3D 14 C8 B7 C6 FB A9 80 90 00 [13:14:43]wFMCommunicate OK [13:14:43]SAM_PROTO_SignData done [13:14:43]FM_MakeSignedData done [13:14:43]CreateOFDProtocolMessage [13:14:43]wFMCommunicate request_size=4 [13:14:43]MH_SAM_APDU [13:14:43]CAPDU: 80 11 00 00 [13:14:43]Write to MH i2c: E2 08 00 F6 16 80 11 00 00 00 00 00 00 86 [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:43]Read from MH i2c: E2 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 17 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: E2 17 00 F6 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D7 [13:14:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:14:43]wFMCommunicate OK [13:14:43]CreateOFDProtocolMessage done [13:14:43]OFDSenderStorePacket 112271 [13:14:43]StoreOFDPacket docnum=112271 [13:14:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1F 0A 07 01 44 03 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B6 01 00 35 04 06 00 A8 25 0C 9C 65 CA 3D 14 C8 B7 C6 FB A9 80 [13:14:43]CheckFolder [13:14:43]dirname=/storage/ofd_packets [13:14:43]CheckFolder done [13:14:43]ProducePacketName [13:14:43]name=ofd_packets/00112271 [13:14:43]NVStorageSaveData ofd_packets/00112271 [13:14:43]File name is /storage/ofd_packets/00112271 [13:14:43]Write 301 bytes [13:14:43]NVStorageSaveData done [13:14:43]OFDSenderStorePacket done [13:14:43]KKMCreateOFDPacket done [13:14:43]NVStorageSaveData kkm_last_timestamp [13:14:43]File name is /storage/kkm_last_timestamp [13:14:43]Write 4 bytes [13:14:43]NVStorageSaveData done [13:14:43]ExternCall_PrintAddStr [13:14:43]wPrintStart [13:14:43]Write to MH i2c: 01 00 00 F7 16 0D [13:14:43]Write i2c OK [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: 01 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: 01 07 00 [13:14:43]MH_I2C_Read... [13:14:43]Read from MH i2c: 01 07 00 F7 16 00 00 00 00 00 FF 0F 22 [13:14:43]RasterBufferAndPrint [13:14:43]line Счет N : (1)48585 [13:14:43]line ИНН: 02508201610067 [13:14:43]line Контрольно-Кассовый Чек [13:14:43]line ПРОДАЖА [13:14:43]line ТРК (МРК, ГНК) : 11 [13:14:43]line Товар: 2710124130 [13:14:43]line Аи-92-К-5 [13:14:43]line 10.000 * 64.30 [13:14:43]line = 643.00 [13:14:43]line НДС 12% НСП 1% [13:14:43]line > о реализуемом товаре [13:14:43]line ИТОГО: 643.00 [13:14:43]line НСП 1% : 5.69 [13:14:43]line НДС 12% : 68.28 [13:14:43]line Наличными: 0.00 [13:14:43]line Безнал.: 643.00 [13:14:43]line Место: АЗС № 47 "Партнер Нефть" [13:14:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:14:43]line СНО: Общий режим [13:14:43]line Чек 170 14.04.2024 13:14 [13:14:43]line Смена: 357 ФФД: 1.0 [13:14:43]line ЗНМ: 0300000138 [13:14:43]line РНМ: 0000000000094237 [13:14:43]line Версия ККМ: 001 [13:14:43]line Платежная система: Бакай Банк [13:14:43]line ФМ: 0000000000875019 [13:14:43]line ФД: 112271 [13:14:43]line ФПД: 184877078832586 [13:14:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131442&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112271&fm=184877078832586&tin=02508201610067®Number=0000000000094237&sum=64300 [13:14:43]OFD Sender: Processing packet 112271 [packets to send 71, broken 70] [13:14:43]ProducePacketName [13:14:43]name=ofd_packets/00112271 [13:14:43]OFD Sender: To server: pG, [13:14:43]CommunicateWithHost lk.salyk.kg:30040 [13:14:43]ConnectInit lk.salyk.kg [13:14:43]written 0, free lines is 4095 [13:14:44]Connected sock=10 [13:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1F 0A 07 01 44 03 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C2 D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B6 01 00 35 04 06 00 A8 25 0C 9C 65 CA 3D 14 C8 B7 C6 FB A9 80 [13:14:44]Write to MH i2c: 01 00 00 21 17 38 [13:14:44]Write i2c OK [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: 01 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: 01 07 00 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 F0 0C 3B [13:14:44]RasterBufferAndPrint [13:14:44]line [13:14:44]line [13:14:44]line [13:14:44]line [13:14:44]line [13:14:44]written 0, free lines is 3319 [13:14:44]MH_Cut [13:14:44]Write to MH i2c: D1 01 00 28 17 01 11 [13:14:44]Write i2c OK [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: D1 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: D1 01 00 [13:14:44]MH_I2C_Read... [13:14:44]Read from MH i2c: D1 01 00 28 17 00 10 [13:14:44]Write to MH i2c: 01 00 00 29 17 40 [13:14:44]Write i2c OK [13:14:44]MH_I2C_Read... [13:14:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BF F9 47 00 E0 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B6 01 00 F4 03 04 00 4E 7E 1B 66 B6 04 01 00 00 96 93 28 78 9B 6B 51 AC [13:14:44]CommunicateWithHost err = 0 [13:14:44]CheckOFDResponse [13:14:44]1017 (14) - 77093643461234 [13:14:44]1041 (16) - 0000000000875019 [13:14:44]1040 (4) - 112271 [13:14:44]1012 (4) - 14.04.2024 06:57 [13:14:44]1206 (1) - 0 [13:14:44]OFD Sender: Remove packet 112271 [13:14:44]ProducePacketName [13:14:44]name=ofd_packets/00112271 [13:14:44]NVStorageDeleteData [13:14:44]OFD Sender: No OFD packet to send [13:14:45]*** Cut start [13:14:45]*** Partial cut [13:14:45]*** CUTSNS_PIN = 1 [13:14:45]*** CUTSNS_PIN = 0 [13:14:45]*** Brake cut motor [13:14:45]Read from MH i2c: 01 [13:14:45]MH_I2C_Read... [13:14:45]*** Stop cut motor [13:14:45]*** Cut end [13:14:45]Read from MH i2c: 01 07 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 FF 0F 55 [13:14:45]process_action close_receipt done [13:14:45]requested_data is exist [13:14:45]produce_requested_data [13:14:45]requested_item fm.sn is exist - process it [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 11 00 00 [13:14:45]Write to MH i2c: E2 08 00 2A 17 80 11 00 00 00 00 00 00 BB [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 17 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 17 00 2A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0C [13:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:14:45]wFMCommunicate OK [13:14:45]requested_item fd.num is exist - process it [13:14:45]SAM_PROTO_GetFieldsCounters [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 13 00 00 [13:14:45]Write to MH i2c: E2 08 00 2B 17 80 13 00 00 00 00 00 00 BE [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 62 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 62 00 2B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [13:14:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:14:45]wFMCommunicate OK [13:14:45]SAM_PROTO_GetFieldsCounters done [13:14:45]requested_item shift.num is exist - process it [13:14:45]requested_item shift.opened is exist - process it [13:14:45]req_shift_opened [13:14:45]FM_GetShiftState [13:14:45]SAM_PROTO_GetShiftState [13:14:45]wFMCommunicate request_size=4 [13:14:45]MH_SAM_APDU [13:14:45]CAPDU: 80 13 01 00 [13:14:45]Write to MH i2c: E2 08 00 2C 17 80 13 01 00 00 00 00 00 C0 [13:14:45]Write i2c OK [13:14:45]MH_I2C_Read... [13:14:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:14:45]Read from MH i2c: E2 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 0E 00 [13:14:45]MH_I2C_Read... [13:14:45]Read from MH i2c: E2 0E 00 2C 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [13:14:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:14:45]wFMCommunicate OK [13:14:45]SAM_PROTO_GetShiftState done [13:14:45]FM_GetShiftState done [13:14:45]req_shift_opened done [13:14:45]requested_item shift.open_date is exist - process it [13:14:45]req_shift_open_date [13:14:45]req_shift_open_date done [13:14:45]produce_requested_data done [13:14:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112271,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:14:45]process_action_free close_receipt [13:14:45]json_value_free [13:14:45]json_value_free done [13:14:45]process_json_proto returns [13:14:45]Send response to host [13:14:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112271,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:14:45]free response buf [13:14:45]execute_script done [13:14:45]execute_script returns [13:14:45]free content buf [13:14:45]Sock 9.Close socket [13:14:45]Sock 9.Thread stoped [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:40]accept exits with 7 [13:15:40]New connection [13:15:40]New thread 3067198820 created [13:15:40]Thread 3067342180 joined [13:15:40]Waiting for new connection... [13:15:40] Sock 7.Parse request [13:15:40]Sock 7.Check first char [13:15:40]Sock 7.First char is OK [13:15:40]request: POST /json_proto HTTP/1.0 [13:15:40]Method: POST [13:15:40]URL: /json_proto [13:15:40]Method is POST - this is cgi request [13:15:40]url: /json_proto [13:15:40]query_string will be loaded in cgi processing [13:15:40]execute_cgi json_proto POST (null) [13:15:40]execute_cgi path=json_proto method=POST [13:15:40]POST find Content-Length [13:15:40]Host: 172.17.96.197:8080 [13:15:40]Content-Length: 676 [13:15:40]Content-Type: application/json [13:15:40] [13:15:40]POST finish read [13:15:40]Found Content-Length = 676 [13:15:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [13:15:40]execute_script... [13:15: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)48586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [13:15:40]POST & json_proto [13:15:40]process_json_proto [13:15:40]json parsed OK: [13:15:40]protocol is kg_v1.0 [13:15:40]action value=close_receipt [13:15:40]process_action close_receipt [13:15:40]cmd_close_receipt [13:15:40]MH_GetDate [13:15:40]Write to MH i2c: F0 00 00 2D 17 33 [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: F0 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: F0 09 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: F0 09 00 2D 17 00 FD D6 1B 66 E0 85 7F 64 D8 [13:15:40]GetLastDocTimeStamp 1713100482 [13:15:40]current date 1713100541 [13:15:40]FM_GetShiftState [13:15:40]SAM_PROTO_GetShiftState [13:15:40]wFMCommunicate request_size=4 [13:15:40]MH_SAM_APDU [13:15:40]CAPDU: 80 13 01 00 [13:15:40]Write to MH i2c: E2 08 00 2E 17 80 13 01 00 00 00 00 00 C2 [13:15:40]Write i2c OK [13:15:40]MH_I2C_Read... [13:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:40]Read from MH i2c: E2 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 [13:15:40]MH_I2C_Read... [13:15:40]Read from MH i2c: E2 0E 00 2E 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [13:15:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:15:40]wFMCommunicate OK [13:15:40]SAM_PROTO_GetShiftState done [13:15:40]FM_GetShiftState done [13:15:40]opened in 1713054696 [13:15:40]opened+sec_in_day 1713141096 [13:15:40]quantity*price = 20061 [13:15:40]sum+1 = 20063 [13:15:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 171 14.04.2024 13:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112272 ФПД: 101689570470643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131541&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112272&fm=101689570470643&tin=02508201610067®Number=0000000000094237&sum=20000 [13:15:41]StoreToDocumentArchive [13:15:41]shift 357 fd 112272 [13:15:41]save to /storage/0357/doc_00112272 [13:15:41]save last doc name /storage/0357/doc_00112272 to /storage/kkm_last_doc_name [13:15:41]save OK [13:15:41]Clear old archive folders... [13:15:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:15:41]tlvbuf is 0184A3D0 [13:15:41]SAM_PROTO_ClearQueue [13:15:41]wFMCommunicate request_size=4 [13:15:41]MH_SAM_APDU [13:15:41]CAPDU: 80 09 00 00 [13:15:41]Write to MH i2c: E2 08 00 3B 17 80 09 00 00 00 00 00 00 C4 [13:15:41]Write i2c OK [13:15:41]MH_I2C_Read... [13:15:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:15:41]Read from MH i2c: E2 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 03 00 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [13:15:41]RAPDU: 90 00 [13:15:41]wFMCommunicate OK [13:15:41]SAM_PROTO_ClearQueue done [13:15:41]KKMCreateOFDPacket [13:15:41]OFDProtocolAddRootSTLVToBuf [13:15:41]FM_MakeSignedData [13:15:41]FM_MakeSignedData [13:15:41]SAM_PROTO_SignData [13:15:41]wFMCommunicate request_size=4 [13:15:41]MH_SAM_APDU [13:15:41]CAPDU: 80 0D 01 02 [13:15:41]Write to MH i2c: E2 08 00 3C 17 80 0D 01 02 00 00 00 00 CC [13:15:41]Write i2c OK [13:15:41]MH_I2C_Read... [13:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:15:41]Read from MH i2c: E2 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 03 00 [13:15:41]MH_I2C_Read... [13:15:41]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [13:15:41]RAPDU: 90 00 [13:15:41]wFMCommunicate OK [13:15:41]wFMCommunicate request_size=255 [13:15:41]MH_SAM_APDU [13:15:41]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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 AB 00 00 00 F4 03 04 00 FD D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B6 01 00 35 04 06 00 5C [13:15:41]Write to MH i2c: E2 02 01 3D 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 AB 00 00 00 F4 03 04 00 FD D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B6 01 00 35 04 06 00 5C 00 00 E2 [13:15:41]Write i2c OK [13:15:41]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [13:15:42]RAPDU: 90 00 [13:15:42]wFMCommunicate OK [13:15:42]wFMCommunicate request_size=10 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 0D 02 02 05 7C 72 B9 AA F3 [13:15:42]Write to MH i2c: E2 0D 00 3E 17 80 0D 02 02 05 00 7C 72 B9 AA F3 00 00 1D [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 03 00 3E 17 00 90 00 C9 [13:15:42]RAPDU: 90 00 [13:15:42]wFMCommunicate OK [13:15:42]wFMCommunicate request_size=4 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 0D 03 02 [13:15:42]Write to MH i2c: E2 08 00 3F 17 80 0D 03 02 00 00 00 00 D1 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 0B 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 0B 00 3F 17 00 B1 95 BE B5 F8 2D A4 A4 90 00 F8 [13:15:42]RAPDU: B1 95 BE B5 F8 2D A4 A4 90 00 [13:15:42]wFMCommunicate OK [13:15:42]SAM_PROTO_SignData done [13:15:42]FM_MakeSignedData done [13:15:42]CreateOFDProtocolMessage [13:15:42]wFMCommunicate request_size=4 [13:15:42]MH_SAM_APDU [13:15:42]CAPDU: 80 11 00 00 [13:15:42]Write to MH i2c: E2 08 00 40 17 80 11 00 00 00 00 00 00 D1 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:42]Read from MH i2c: E2 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 17 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: E2 17 00 40 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 22 [13:15:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:15:42]wFMCommunicate OK [13:15:42]CreateOFDProtocolMessage done [13:15:42]OFDSenderStorePacket 112272 [13:15:42]StoreOFDPacket docnum=112272 [13:15:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 7B 07 01 1A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 AB 00 00 00 F4 03 04 00 FD D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B6 01 00 35 04 06 00 5C 7C 72 B9 AA F3 B1 95 BE B5 F8 2D A4 A4 [13:15:42]CheckFolder [13:15:42]dirname=/storage/ofd_packets [13:15:42]CheckFolder done [13:15:42]ProducePacketName [13:15:42]name=ofd_packets/00112272 [13:15:42]NVStorageSaveData ofd_packets/00112272 [13:15:42]File name is /storage/ofd_packets/00112272 [13:15:42]Write 301 bytes [13:15:42]NVStorageSaveData done [13:15:42]OFDSenderStorePacket done [13:15:42]KKMCreateOFDPacket done [13:15:42]NVStorageSaveData kkm_last_timestamp [13:15:42]File name is /storage/kkm_last_timestamp [13:15:42]Write 4 bytes [13:15:42]NVStorageSaveData done [13:15:42]ExternCall_PrintAddStr [13:15:42]wPrintStart [13:15:42]Write to MH i2c: 01 00 00 41 17 58 [13:15:42]Write i2c OK [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: 01 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: 01 07 00 [13:15:42]MH_I2C_Read... [13:15:42]Read from MH i2c: 01 07 00 41 17 00 00 00 00 00 FF 0F 6D [13:15:42]RasterBufferAndPrint [13:15:42]line Счет N : (1)48586 [13:15:42]line ИНН: 02508201610067 [13:15:42]line Контрольно-Кассовый Чек [13:15:42]line ПРОДАЖА [13:15:42]line ТРК (МРК, ГНК) : 21 [13:15:42]line Товар: 2710124130 [13:15:42]line Аи-92-К-5 [13:15:42]line 3.120 * 64.30 [13:15:42]line = 200.62 [13:15:42]line НДС 12% НСП 1% [13:15:42]line > о реализуемом товаре [13:15:42]line ОКРУГЛЕНИЕ: -0.62 [13:15:42]line ИТОГО: 200.00 [13:15:42]line Внесено: 200.00 [13:15:42]line СДАЧА: 0.00 [13:15:42]line НСП 1% : 1.77 [13:15:42]line НДС 12% : 21.30 [13:15:42]line Наличными: 200.00 [13:15:42]line Безнал.: 0.00 [13:15:42]line Место: АЗС № 47 "Партнер Нефть" [13:15:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:15:42]line СНО: Общий режим [13:15:42]line Чек 171 14.04.2024 13:15 [13:15:42]line Смена: 357 ФФД: 1.0 [13:15:42]line ЗНМ: 0300000138 [13:15:42]line РНМ: 0000000000094237 [13:15:42]line Версия ККМ: 001 [13:15:42]line ФМ: 0000000000875019 [13:15:42]line ФД: 112272 [13:15:42]line ФПД: 101689570470643 [13:15:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131541&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112272&fm=101689570470643&tin=02508201610067®Number=0000000000094237&sum=20000 [13:15:42]written 0, free lines is 4095 [13:15:42]OFD Sender: Processing packet 112272 [packets to send 71, broken 70] [13:15:42]ProducePacketName [13:15:42]name=ofd_packets/00112272 [13:15:42]OFD Sender: To server: pG, [13:15:42]CommunicateWithHost lk.salyk.kg:30040 [13:15:42]ConnectInit lk.salyk.kg [13:15:42]Connected sock=10 [13:15:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 7B 07 01 1A 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 AB 00 00 00 F4 03 04 00 FD D6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B6 01 00 35 04 06 00 5C 7C 72 B9 AA F3 B1 95 BE B5 F8 2D A4 A4 [13:15:43]Write to MH i2c: 01 00 00 6C 17 83 [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 07 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: 01 07 00 6C 17 00 00 00 00 00 D0 0C 66 [13:15:43]RasterBufferAndPrint [13:15:43]line [13:15:43]line [13:15:43]line [13:15:43]line [13:15:43]line [13:15:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2C 9A 47 00 D3 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 38 37 35 30 31 39 10 04 04 00 90 B6 01 00 F4 03 04 00 89 7E 1B 66 B6 04 01 00 00 29 7B A6 06 0D E9 DB 0F [13:15:43]CommunicateWithHost err = 0 [13:15:43]CheckOFDResponse [13:15:43]1017 (14) - 77093643461234 [13:15:43]1041 (16) - 0000000000875019 [13:15:43]1040 (4) - 112272 [13:15:43]1012 (4) - 14.04.2024 06:58 [13:15:43]1206 (1) - 0 [13:15:43]OFD Sender: Remove packet 112272 [13:15:43]ProducePacketName [13:15:43]name=ofd_packets/00112272 [13:15:43]NVStorageDeleteData [13:15:43]written 0, free lines is 3304 [13:15:43]MH_Cut [13:15:43]Write to MH i2c: D1 01 00 73 17 01 5C [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: D1 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: D1 01 00 [13:15:43]MH_I2C_Read... [13:15:43]Read from MH i2c: D1 01 00 73 17 00 5B [13:15:43]Write to MH i2c: 01 00 00 74 17 8B [13:15:43]Write i2c OK [13:15:43]MH_I2C_Read... [13:15:43]OFD Sender: No OFD packet to send [13:15:43]*** Cut start [13:15:43]*** Partial cut [13:15:43]*** CUTSNS_PIN = 1 [13:15:43]*** CUTSNS_PIN = 0 [13:15:44]*** Brake cut motor [13:15:44]Read from MH i2c: 01 [13:15:44]MH_I2C_Read... [13:15:44]*** Stop cut motor [13:15:44]*** Cut end [13:15:44]Read from MH i2c: 01 07 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: 01 07 00 74 17 00 00 00 00 00 FF 0F A0 [13:15:44]process_action close_receipt done [13:15:44]requested_data is exist [13:15:44]produce_requested_data [13:15:44]requested_item fm.sn is exist - process it [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 11 00 00 [13:15:44]Write to MH i2c: E2 08 00 75 17 80 11 00 00 00 00 00 00 06 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 17 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 17 00 75 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 57 [13:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:15:44]wFMCommunicate OK [13:15:44]requested_item fd.num is exist - process it [13:15:44]SAM_PROTO_GetFieldsCounters [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 13 00 00 [13:15:44]Write to MH i2c: E2 08 00 76 17 80 13 00 00 00 00 00 00 09 [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 62 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 62 00 76 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 90 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:15:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 90 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:15:44]wFMCommunicate OK [13:15:44]SAM_PROTO_GetFieldsCounters done [13:15:44]requested_item shift.num is exist - process it [13:15:44]requested_item shift.opened is exist - process it [13:15:44]req_shift_opened [13:15:44]FM_GetShiftState [13:15:44]SAM_PROTO_GetShiftState [13:15:44]wFMCommunicate request_size=4 [13:15:44]MH_SAM_APDU [13:15:44]CAPDU: 80 13 01 00 [13:15:44]Write to MH i2c: E2 08 00 77 17 80 13 01 00 00 00 00 00 0B [13:15:44]Write i2c OK [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 [13:15:44]MH_I2C_Read... [13:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:15:44]Read from MH i2c: E2 0E 00 [13:15:44]MH_I2C_Read... [13:15:44]Read from MH i2c: E2 0E 00 77 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [13:15:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:15:44]wFMCommunicate OK [13:15:44]SAM_PROTO_GetShiftState done [13:15:44]FM_GetShiftState done [13:15:44]req_shift_opened done [13:15:44]requested_item shift.open_date is exist - process it [13:15:44]req_shift_open_date [13:15:44]req_shift_open_date done [13:15:44]produce_requested_data done [13:15:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112272,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:15:44]process_action_free close_receipt [13:15:44]json_value_free [13:15:44]json_value_free done [13:15:44]process_json_proto returns [13:15:44]Send response to host [13:15:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112272,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:15:44]free response buf [13:15:44]execute_script done [13:15:44]execute_script returns [13:15:44]free content buf [13:15:44]Sock 7.Close socket [13:15:44]Sock 7.Thread stoped [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:06]accept exits with 9 [13:16:06]New connection [13:16:06]New thread 3067342180 created [13:16:06]Thread 3067198820 joined [13:16:06]Waiting for new connection... [13:16:06] Sock 9.Parse request [13:16:06]Sock 9.Check first char [13:16:06]Sock 9.First char is OK [13:16:06]request: POST /json_proto HTTP/1.0 [13:16:06]Method: POST [13:16:06]URL: /json_proto [13:16:06]Method is POST - this is cgi request [13:16:06]url: /json_proto [13:16:06]query_string will be loaded in cgi processing [13:16:06]execute_cgi json_proto POST (null) [13:16:06]execute_cgi path=json_proto method=POST [13:16:06]POST find Content-Length [13:16:06]Host: 172.17.96.197:8080 [13:16:06]Content-Length: 677 [13:16:06]Content-Type: application/json [13:16:06] [13:16:06]POST finish read [13:16:06]Found Content-Length = 677 [13:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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:16:06]execute_script... [13:16: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)48587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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:16:06]POST & json_proto [13:16:06]process_json_proto [13:16:06]json parsed OK: [13:16:06]protocol is kg_v1.0 [13:16:06]action value=close_receipt [13:16:06]process_action close_receipt [13:16:06]cmd_close_receipt [13:16:06]MH_GetDate [13:16:06]Write to MH i2c: F0 00 00 78 17 7E [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 09 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 09 00 78 17 00 17 D7 1B 66 E0 85 7F 64 3E [13:16:06]GetLastDocTimeStamp 1713100541 [13:16:06]current date 1713100567 [13:16:06]FM_GetShiftState [13:16:06]SAM_PROTO_GetShiftState [13:16:06]wFMCommunicate request_size=4 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 13 01 00 [13:16:06]Write to MH i2c: E2 08 00 79 17 80 13 01 00 00 00 00 00 0D [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 79 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [13:16:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:16:06]wFMCommunicate OK [13:16:06]SAM_PROTO_GetShiftState done [13:16:06]FM_GetShiftState done [13:16:06]opened in 1713054696 [13:16:06]opened+sec_in_day 1713141096 [13:16:06]quantity*price = 80053 [13:16:06]sum+1 = 80055 [13:16:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 172 14.04.2024 13:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112273 ФПД: 210524929428240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131607&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112273&fm=210524929428240&tin=02508201610067®Number=0000000000094237&sum=80000 [13:16:07]StoreToDocumentArchive [13:16:07]shift 357 fd 112273 [13:16:07]save to /storage/0357/doc_00112273 [13:16:07]save last doc name /storage/0357/doc_00112273 to /storage/kkm_last_doc_name [13:16:07]save OK [13:16:07]Clear old archive folders... [13:16:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:07]tlvbuf is 0184A440 [13:16:07]SAM_PROTO_ClearQueue [13:16:07]wFMCommunicate request_size=4 [13:16:07]MH_SAM_APDU [13:16:07]CAPDU: 80 09 00 00 [13:16:07]Write to MH i2c: E2 08 00 86 17 80 09 00 00 00 00 00 00 0F [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:07]Read from MH i2c: E2 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [13:16:07]RAPDU: 90 00 [13:16:07]wFMCommunicate OK [13:16:07]SAM_PROTO_ClearQueue done [13:16:07]KKMCreateOFDPacket [13:16:07]OFDProtocolAddRootSTLVToBuf [13:16:07]FM_MakeSignedData [13:16:07]FM_MakeSignedData [13:16:07]SAM_PROTO_SignData [13:16:07]wFMCommunicate request_size=4 [13:16:07]MH_SAM_APDU [13:16:07]CAPDU: 80 0D 01 02 [13:16:07]Write to MH i2c: E2 08 00 87 17 80 0D 01 02 00 00 00 00 17 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:07]Read from MH i2c: E2 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 87 17 00 90 00 12 [13:16:07]RAPDU: 90 00 [13:16:07]wFMCommunicate OK [13:16:07]wFMCommunicate request_size=255 [13:16:07]MH_SAM_APDU [13:16: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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 AC 00 00 00 F4 03 04 00 17 D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B6 01 00 35 04 06 00 BF [13:16:07]Write to MH i2c: E2 02 01 88 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 AC 00 00 00 F4 03 04 00 17 D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B6 01 00 35 04 06 00 BF 00 00 2D [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 88 17 00 90 00 13 [13:16:08]RAPDU: 90 00 [13:16:08]wFMCommunicate OK [13:16:08]wFMCommunicate request_size=10 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 0D 02 02 05 78 A7 A2 8B 10 [13:16:08]Write to MH i2c: E2 0D 00 89 17 80 0D 02 02 05 00 78 A7 A2 8B 10 00 00 80 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 89 17 00 90 00 14 [13:16:08]RAPDU: 90 00 [13:16:08]wFMCommunicate OK [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 0D 03 02 [13:16:08]Write to MH i2c: E2 08 00 8A 17 80 0D 03 02 00 00 00 00 1C [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0B 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0B 00 8A 17 00 13 D4 8E 68 FB DB E1 5C 90 00 0D [13:16:08]RAPDU: 13 D4 8E 68 FB DB E1 5C 90 00 [13:16:08]wFMCommunicate OK [13:16:08]SAM_PROTO_SignData done [13:16:08]FM_MakeSignedData done [13:16:08]CreateOFDProtocolMessage [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 11 00 00 [13:16:08]Write to MH i2c: E2 08 00 8B 17 80 11 00 00 00 00 00 00 1C [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 8B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6D [13:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:16:08]wFMCommunicate OK [13:16:08]CreateOFDProtocolMessage done [13:16:08]OFDSenderStorePacket 112273 [13:16:08]StoreOFDPacket docnum=112273 [13:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DD 83 07 01 77 7D 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 AC 00 00 00 F4 03 04 00 17 D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B6 01 00 35 04 06 00 BF 78 A7 A2 8B 10 13 D4 8E 68 FB DB E1 5C [13:16:08]CheckFolder [13:16:08]dirname=/storage/ofd_packets [13:16:08]CheckFolder done [13:16:08]ProducePacketName [13:16:08]name=ofd_packets/00112273 [13:16:08]NVStorageSaveData ofd_packets/00112273 [13:16:08]File name is /storage/ofd_packets/00112273 [13:16:08]Write 301 bytes [13:16:08]NVStorageSaveData done [13:16:08]OFDSenderStorePacket done [13:16:08]KKMCreateOFDPacket done [13:16:08]NVStorageSaveData kkm_last_timestamp [13:16:08]File name is /storage/kkm_last_timestamp [13:16:08]Write 4 bytes [13:16:08]NVStorageSaveData done [13:16:08]ExternCall_PrintAddStr [13:16:08]wPrintStart [13:16:08]Write to MH i2c: 01 00 00 8C 17 A3 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 8C 17 00 00 00 00 00 FF 0F B8 [13:16:08]RasterBufferAndPrint [13:16:08]line Счет N : (1)48587 [13:16:08]line ИНН: 02508201610067 [13:16:08]line Контрольно-Кассовый Чек [13:16:08]line ПРОДАЖА [13:16:08]line ТРК (МРК, ГНК) : 11 [13:16:08]line Товар: 2710124130 [13:16:08]line Аи-92-К-5 [13:16:08]line 12.450 * 64.30 [13:16:08]line = 800.54 [13:16:08]line НДС 12% НСП 1% [13:16:08]line > о реализуемом товаре [13:16:08]line ОКРУГЛЕНИЕ: -0.54 [13:16:08]line ИТОГО: 800.00 [13:16:08]line Внесено: 800.00 [13:16:08]line СДАЧА: 0.00 [13:16:08]line НСП 1% : 7.08 [13:16:08]line НДС 12% : 85.01 [13:16:08]line Наличными: 800.00 [13:16:08]line Безнал.: 0.00 [13:16:08]line Место: АЗС № 47 "Партнер Нефть" [13:16:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:16:08]line СНО: Общий режим [13:16:08]line Чек 172 14.04.2024 13:16 [13:16:08]line Смена: 357 ФФД: 1.0 [13:16:08]line ЗНМ: 0300000138 [13:16:08]line РНМ: 0000000000094237 [13:16:08]line Версия ККМ: 001 [13:16:08]line ФМ: 0000000000875019 [13:16:08]line ФД: 112273 [13:16:08]line ФПД: 210524929428240 [13:16:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131607&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112273&fm=210524929428240&tin=02508201610067®Number=0000000000094237&sum=80000 [13:16:08]written 0, free lines is 4095 [13:16:08]OFD Sender: Processing packet 112273 [packets to send 71, broken 70] [13:16:08]ProducePacketName [13:16:08]name=ofd_packets/00112273 [13:16:08]OFD Sender: To server: pG, [13:16:08]CommunicateWithHost lk.salyk.kg:30040 [13:16:08]ConnectInit lk.salyk.kg [13:16:08]Connected sock=7 [13:16:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 DD 83 07 01 77 7D 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 AC 00 00 00 F4 03 04 00 17 D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B6 01 00 35 04 06 00 BF 78 A7 A2 8B 10 13 D4 8E 68 FB DB E1 5C [13:16:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 68 C0 47 00 2C 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B6 01 00 F4 03 04 00 A3 7E 1B 66 B6 04 01 00 00 CF 0D 10 BD C5 2D AD 07 [13:16:09]CommunicateWithHost err = 0 [13:16:09]CheckOFDResponse [13:16:09]1017 (14) - 77093643461234 [13:16:09]1041 (16) - 0000000000875019 [13:16:09]1040 (4) - 112273 [13:16:09]1012 (4) - 14.04.2024 06:58 [13:16:09]1206 (1) - 0 [13:16:09]OFD Sender: Remove packet 112273 [13:16:09]ProducePacketName [13:16:09]name=ofd_packets/00112273 [13:16:09]NVStorageDeleteData [13:16:09]Write to MH i2c: 01 00 00 B7 17 CE [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 E9 0C CA [13:16:09]RasterBufferAndPrint [13:16:09]line [13:16:09]line [13:16:09]line [13:16:09]line [13:16:09]line [13:16:09]written 0, free lines is 3311 [13:16:09]MH_Cut [13:16:09]Write to MH i2c: D1 01 00 BE 17 01 A7 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: D1 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: D1 01 00 [13:16:09]MH_I2C_Read... [13:16:09]Read from MH i2c: D1 01 00 BE 17 00 A6 [13:16:09]Write to MH i2c: 01 00 00 BF 17 D6 [13:16:09]Write i2c OK [13:16:09]MH_I2C_Read... [13:16:09]OFD Sender: No OFD packet to send [13:16:09]*** Cut start [13:16:09]*** Partial cut [13:16:09]*** CUTSNS_PIN = 1 [13:16:09]*** CUTSNS_PIN = 0 [13:16:10]*** Brake cut motor [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]*** Stop cut motor [13:16:10]*** Cut end [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 BF 17 00 00 00 00 00 FF 0F EB [13:16:10]process_action close_receipt done [13:16:10]requested_data is exist [13:16:10]produce_requested_data [13:16:10]requested_item fm.sn is exist - process it [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 11 00 00 [13:16:10]Write to MH i2c: E2 08 00 C0 17 80 11 00 00 00 00 00 00 51 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 17 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 17 00 C0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A2 [13:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:16:10]wFMCommunicate OK [13:16:10]requested_item fd.num is exist - process it [13:16:10]SAM_PROTO_GetFieldsCounters [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 13 00 00 [13:16:10]Write to MH i2c: E2 08 00 C1 17 80 13 00 00 00 00 00 00 54 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 62 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 62 00 C1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 91 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [13:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 91 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:10]wFMCommunicate OK [13:16:10]SAM_PROTO_GetFieldsCounters done [13:16:10]requested_item shift.num is exist - process it [13:16:10]requested_item shift.opened is exist - process it [13:16:10]req_shift_opened [13:16:10]FM_GetShiftState [13:16:10]SAM_PROTO_GetShiftState [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 13 01 00 [13:16:10]Write to MH i2c: E2 08 00 C2 17 80 13 01 00 00 00 00 00 56 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:10]Read from MH i2c: E2 0E 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 0E 00 C2 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [13:16:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:16:10]wFMCommunicate OK [13:16:10]SAM_PROTO_GetShiftState done [13:16:10]FM_GetShiftState done [13:16:10]req_shift_opened done [13:16:10]requested_item shift.open_date is exist - process it [13:16:10]req_shift_open_date [13:16:10]req_shift_open_date done [13:16:10]produce_requested_data done [13:16:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112273,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:16:10]process_action_free close_receipt [13:16:10]json_value_free [13:16:10]json_value_free done [13:16:10]process_json_proto returns [13:16:10]Send response to host [13:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112273,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:16:10]free response buf [13:16:10]execute_script done [13:16:10]execute_script returns [13:16:10]free content buf [13:16:10]Sock 9.Close socket [13:16:10]Sock 9.Thread stoped [13:16:14]OFD Sender: No OFD packet to send [13:16:19]OFD Sender: No OFD packet to send [13:16:24]OFD Sender: No OFD packet to send [13:16:29]OFD Sender: No OFD packet to send [13:16:34]OFD Sender: No OFD packet to send [13:16:39]OFD Sender: No OFD packet to send [13:16:44]OFD Sender: No OFD packet to send [13:16:49]OFD Sender: No OFD packet to send [13:16:54]OFD Sender: No OFD packet to send [13:16:59]OFD Sender: No OFD packet to send [13:17:04]OFD Sender: No OFD packet to send [13:17:09]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:38]accept exits with 10 [13:19:38]New connection [13:19:38]New thread 3067198820 created [13:19:38]Thread 3067342180 joined [13:19:38]Waiting for new connection... [13:19:38] Sock 10.Parse request [13:19:38]Sock 10.Check first char [13:19:38]Sock 10.First char is OK [13:19:38]request: POST /json_proto HTTP/1.0 [13:19:38]Method: POST [13:19:38]URL: /json_proto [13:19:38]Method is POST - this is cgi request [13:19:38]url: /json_proto [13:19:38]query_string will be loaded in cgi processing [13:19:38]execute_cgi json_proto POST (null) [13:19:38]execute_cgi path=json_proto method=POST [13:19:38]POST find Content-Length [13:19:38]Host: 172.17.96.197:8080 [13:19:38]Content-Length: 821 [13:19:38]Content-Type: application/json [13:19:38] [13:19:38]POST finish read [13:19:38]Found Content-Length = 821 [13:19:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:38]execute_script... [13:19:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:38]POST & json_proto [13:19:38]process_json_proto [13:19:38]json parsed OK: [13:19:38]protocol is kg_v1.0 [13:19:38]action value=close_receipt [13:19:38]process_action close_receipt [13:19:38]cmd_close_receipt [13:19:38]MH_GetDate [13:19:38]Write to MH i2c: F0 00 00 C3 17 C9 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 09 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: F0 09 00 C3 17 00 EB D7 1B 66 E0 85 7F 64 5D [13:19:38]GetLastDocTimeStamp 1713100567 [13:19:38]current date 1713100779 [13:19:38]FM_GetShiftState [13:19:38]SAM_PROTO_GetShiftState [13:19:38]wFMCommunicate request_size=4 [13:19:38]MH_SAM_APDU [13:19:38]CAPDU: 80 13 01 00 [13:19:38]Write to MH i2c: E2 08 00 C4 17 80 13 01 00 00 00 00 00 58 [13:19:38]Write i2c OK [13:19:38]MH_I2C_Read... [13:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:38]Read from MH i2c: E2 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 [13:19:38]MH_I2C_Read... [13:19:38]Read from MH i2c: E2 0E 00 C4 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [13:19:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:19:38]wFMCommunicate OK [13:19:38]SAM_PROTO_GetShiftState done [13:19:38]FM_GetShiftState done [13:19:38]opened in 1713054696 [13:19:38]opened+sec_in_day 1713141096 [13:19:38]quantity*price = 100029 [13:19:38]sum+1 = 100030 [13:19:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 173 14.04.2024 13:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112274 ФПД: 17385090353231 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131939&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112274&fm=17385090353231&tin=02508201610067®Number=0000000000094237&sum=100029 [13:19:39]StoreToDocumentArchive [13:19:39]shift 357 fd 112274 [13:19:39]save to /storage/0357/doc_00112274 [13:19:39]save last doc name /storage/0357/doc_00112274 to /storage/kkm_last_doc_name [13:19:39]save OK [13:19:39]Clear old archive folders... [13:19:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:19:39]tlvbuf is B6F072E0 [13:19:39]SAM_PROTO_ClearQueue [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 09 00 00 [13:19:39]Write to MH i2c: E2 08 00 D1 17 80 09 00 00 00 00 00 00 5A [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]SAM_PROTO_ClearQueue done [13:19:39]KKMCreateOFDPacket [13:19:39]OFDProtocolAddRootSTLVToBuf [13:19:39]FM_MakeSignedData [13:19:39]FM_MakeSignedData [13:19:39]SAM_PROTO_SignData [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 01 02 [13:19:39]Write to MH i2c: E2 08 00 D2 17 80 0D 01 02 00 00 00 00 62 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 D2 17 00 90 00 5D [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=255 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EB D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 92 B6 01 00 35 04 06 00 0F CF [13:19:39]Write to MH i2c: E2 02 01 D3 17 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EB D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 92 B6 01 00 35 04 06 00 0F CF 00 00 40 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 D3 17 00 90 00 5E [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=9 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 02 02 04 C8 22 88 4F [13:19:39]Write to MH i2c: E2 0C 00 D4 17 80 0D 02 02 04 00 C8 22 88 4F 00 00 2E [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]OFD Sender: No OFD packet to send [13:19:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 03 00 D4 17 00 90 00 5F [13:19:39]RAPDU: 90 00 [13:19:39]wFMCommunicate OK [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 0D 03 02 [13:19:39]Write to MH i2c: E2 08 00 D5 17 80 0D 03 02 00 00 00 00 67 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 0B 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 0B 00 D5 17 00 B6 58 84 C4 1B DF 10 B2 90 00 7A [13:19:39]RAPDU: B6 58 84 C4 1B DF 10 B2 90 00 [13:19:39]wFMCommunicate OK [13:19:39]SAM_PROTO_SignData done [13:19:39]FM_MakeSignedData done [13:19:39]CreateOFDProtocolMessage [13:19:39]wFMCommunicate request_size=4 [13:19:39]MH_SAM_APDU [13:19:39]CAPDU: 80 11 00 00 [13:19:39]Write to MH i2c: E2 08 00 D6 17 80 11 00 00 00 00 00 00 67 [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:39]Read from MH i2c: E2 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 17 00 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: E2 17 00 D6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B8 [13:19:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:19:39]wFMCommunicate OK [13:19:39]CreateOFDProtocolMessage done [13:19:39]OFDSenderStorePacket 112274 [13:19:39]StoreOFDPacket docnum=112274 [13:19:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A9 11 06 01 06 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EB D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 92 B6 01 00 35 04 06 00 0F CF C8 22 88 4F B6 58 84 C4 1B DF 10 B2 [13:19:39]CheckFolder [13:19:39]dirname=/storage/ofd_packets [13:19:39]CheckFolder done [13:19:39]ProducePacketName [13:19:39]name=ofd_packets/00112274 [13:19:39]NVStorageSaveData ofd_packets/00112274 [13:19:39]File name is /storage/ofd_packets/00112274 [13:19:39]Write 300 bytes [13:19:39]NVStorageSaveData done [13:19:39]OFDSenderStorePacket done [13:19:39]KKMCreateOFDPacket done [13:19:39]NVStorageSaveData kkm_last_timestamp [13:19:39]File name is /storage/kkm_last_timestamp [13:19:39]Write 4 bytes [13:19:39]NVStorageSaveData done [13:19:39]ExternCall_PrintAddStr [13:19:39]wPrintStart [13:19:39]Write to MH i2c: 01 00 00 D7 17 EE [13:19:39]Write i2c OK [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: 01 [13:19:39]MH_I2C_Read... [13:19:39]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 D7 17 00 00 00 00 00 FF 0F 03 [13:19:40]RasterBufferAndPrint [13:19:40]line Счет N : (1)48588 [13:19:40]line ИНН: 02508201610067 [13:19:40]line Контрольно-Кассовый Чек [13:19:40]line ПРОДАЖА [13:19:40]line ТРК (МРК, ГНК) : 72 [13:19:40]line Товар: 2711190000 [13:19:40]line ГАЗ-К-5 [13:19:40]line 30.590 * 32.70 [13:19:40]line = 1000.29 [13:19:40]line НДС 12% НСП 1% [13:19:40]line > о реализуемом товаре [13:19:40]line ИТОГО: 1000.29 [13:19:40]line НСП 1% : 8.85 [13:19:40]line НДС 12% : 106.22 [13:19:40]line Наличными: 0.00 [13:19:40]line Безнал.: 1000.29 [13:19:40]line Место: АЗС № 47 "Партнер Нефть" [13:19:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:19:40]line СНО: Общий режим [13:19:40]line Чек 173 14.04.2024 13:19 [13:19:40]line Смена: 357 ФФД: 1.0 [13:19:40]line ЗНМ: 0300000138 [13:19:40]line РНМ: 0000000000094237 [13:19:40]line Версия ККМ: 001 [13:19:40]line Платежная система: Бакай Банк [13:19:40]line ФМ: 0000000000875019 [13:19:40]line ФД: 112274 [13:19:40]line ФПД: 17385090353231 [13:19:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T131939&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112274&fm=17385090353231&tin=02508201610067®Number=0000000000094237&sum=100029 [13:19:40]written 0, free lines is 4095 [13:19:40]OFD Sender: Processing packet 112274 [packets to send 71, broken 70] [13:19:40]ProducePacketName [13:19:40]name=ofd_packets/00112274 [13:19:40]OFD Sender: To server: pG, [13:19:40]CommunicateWithHost lk.salyk.kg:30040 [13:19:40]ConnectInit lk.salyk.kg [13:19:40]Connected sock=9 [13:19:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A9 11 06 01 06 34 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 EB D7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 92 B6 01 00 35 04 06 00 0F CF C8 22 88 4F B6 58 84 C4 1B DF 10 B2 [13:19:40]Write to MH i2c: 01 00 00 01 18 19 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: 01 07 00 01 18 00 00 00 00 00 E1 0C 0D [13:19:40]RasterBufferAndPrint [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]line [13:19:40]written 0, free lines is 3303 [13:19:40]MH_Cut [13:19:40]Write to MH i2c: D1 01 00 08 18 01 F2 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 [13:19:40]MH_I2C_Read... [13:19:40]Read from MH i2c: D1 01 00 08 18 00 F1 [13:19:40]Write to MH i2c: 01 00 00 09 18 21 [13:19:40]Write i2c OK [13:19:40]MH_I2C_Read... [13:19:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 51 81 47 00 8A DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 92 B6 01 00 F4 03 04 00 76 7F 1B 66 B6 04 01 00 00 03 3D 9B D2 E0 99 93 3F [13:19:40]CommunicateWithHost err = 0 [13:19:40]CheckOFDResponse [13:19:40]1017 (14) - 77093643461234 [13:19:40]1041 (16) - 0000000000875019 [13:19:40]1040 (4) - 112274 [13:19:40]1012 (4) - 14.04.2024 07:02 [13:19:40]1206 (1) - 0 [13:19:40]OFD Sender: Remove packet 112274 [13:19:40]ProducePacketName [13:19:40]name=ofd_packets/00112274 [13:19:40]NVStorageDeleteData [13:19:41]OFD Sender: No OFD packet to send [13:19:41]*** Cut start [13:19:41]*** Partial cut [13:19:41]*** CUTSNS_PIN = 1 [13:19:41]*** CUTSNS_PIN = 0 [13:19:41]*** Brake cut motor [13:19:42]Read from MH i2c: 01 [13:19:42]MH_I2C_Read... [13:19:42]*** Stop cut motor [13:19:42]*** Cut end [13:19:42]Read from MH i2c: 01 07 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: 01 07 00 09 18 00 00 00 00 00 FF 0F 36 [13:19:42]process_action close_receipt done [13:19:42]requested_data is exist [13:19:42]produce_requested_data [13:19:42]requested_item fm.sn is exist - process it [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 11 00 00 [13:19:42]Write to MH i2c: E2 08 00 0A 18 80 11 00 00 00 00 00 00 9C [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 17 00 0A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [13:19:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:19:42]wFMCommunicate OK [13:19:42]requested_item fd.num is exist - process it [13:19:42]SAM_PROTO_GetFieldsCounters [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 00 00 [13:19:42]Write to MH i2c: E2 08 00 0B 18 80 13 00 00 00 00 00 00 9F [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 62 00 0B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 92 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [13:19:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 92 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetFieldsCounters done [13:19:42]requested_item shift.num is exist - process it [13:19:42]requested_item shift.opened is exist - process it [13:19:42]req_shift_opened [13:19:42]FM_GetShiftState [13:19:42]SAM_PROTO_GetShiftState [13:19:42]wFMCommunicate request_size=4 [13:19:42]MH_SAM_APDU [13:19:42]CAPDU: 80 13 01 00 [13:19:42]Write to MH i2c: E2 08 00 0C 18 80 13 01 00 00 00 00 00 A1 [13:19:42]Write i2c OK [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 [13:19:42]MH_I2C_Read... [13:19:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:42]Read from MH i2c: E2 0E 00 [13:19:42]MH_I2C_Read... [13:19:42]Read from MH i2c: E2 0E 00 0C 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 39 [13:19:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:19:42]wFMCommunicate OK [13:19:42]SAM_PROTO_GetShiftState done [13:19:42]FM_GetShiftState done [13:19:42]req_shift_opened done [13:19:42]requested_item shift.open_date is exist - process it [13:19:42]req_shift_open_date [13:19:42]req_shift_open_date done [13:19:42]produce_requested_data done [13:19:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112274,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:19:42]process_action_free close_receipt [13:19:42]json_value_free [13:19:42]json_value_free done [13:19:42]process_json_proto returns [13:19:42]Send response to host [13:19:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112274,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:19:42]free response buf [13:19:42]execute_script done [13:19:42]execute_script returns [13:19:42]free content buf [13:19:42]Sock 10.Close socket [13:19:42]Sock 10.Thread stoped [13:19:46]OFD Sender: No OFD packet to send [13:19:51]OFD Sender: No OFD packet to send [13:19:56]OFD Sender: No OFD packet to send [13:20:01]OFD Sender: No OFD packet to send [13:20:06]OFD Sender: No OFD packet to send [13:20:11]OFD Sender: No OFD packet to send [13:20:16]OFD Sender: No OFD packet to send [13:20:21]OFD Sender: No OFD packet to send [13:20:26]OFD Sender: No OFD packet to send [13:20:31]OFD Sender: No OFD packet to send [13:20:36]OFD Sender: No OFD packet to send [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:56]OFD Sender: No OFD packet to send [13:21:01]OFD Sender: No OFD packet to send [13:21:06]OFD Sender: No OFD packet to send [13:21:11]OFD Sender: No OFD packet to send [13:21:16]OFD Sender: No OFD packet to send [13:21:21]OFD Sender: No OFD packet to send [13:21:26]OFD Sender: No OFD packet to send [13:21:31]OFD Sender: No OFD packet to send [13:21:36]OFD Sender: No OFD packet to send [13:21:41]OFD Sender: No OFD packet to send [13:21:46]OFD Sender: No OFD packet to send [13:21:51]OFD Sender: No OFD packet to send [13:21:56]OFD Sender: No OFD packet to send [13:22:01]OFD Sender: No OFD packet to send [13:22:06]OFD Sender: No OFD packet to send [13:22:11]OFD Sender: No OFD packet to send [13:22:16]OFD Sender: No OFD packet to send [13:22:21]OFD Sender: No OFD packet to send [13:22:26]OFD Sender: No OFD packet to send [13:22:31]OFD Sender: No OFD packet to send [13:22:36]OFD Sender: No OFD packet to send [13:22:41]OFD Sender: No OFD packet to send [13:22:46]OFD Sender: No OFD packet to send [13:22:51]OFD Sender: No OFD packet to send [13:22:56]OFD Sender: No OFD packet to send [13:23:01]OFD Sender: No OFD packet to send [13:23:06]OFD Sender: No OFD packet to send [13:23:11]OFD Sender: No OFD packet to send [13:23:16]OFD Sender: No OFD packet to send [13:23:21]OFD Sender: No OFD packet to send [13:23:26]OFD Sender: No OFD packet to send [13:23:31]OFD Sender: No OFD packet to send [13:23:36]OFD Sender: No OFD packet to send [13:23:41]OFD Sender: No OFD packet to send [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:01]OFD Sender: No OFD packet to send [13:24:06]OFD Sender: No OFD packet to send [13:24:11]OFD Sender: No OFD packet to send [13:24:16]OFD Sender: No OFD packet to send [13:24:21]OFD Sender: No OFD packet to send [13:24:26]OFD Sender: No OFD packet to send [13:24:31]OFD Sender: No OFD packet to send [13:24:36]OFD Sender: No OFD packet to send [13:24:41]OFD Sender: No OFD packet to send [13:24:46]OFD Sender: No OFD packet to send [13:24:51]OFD Sender: No OFD packet to send [13:24:56]OFD Sender: No OFD packet to send [13:25:01]OFD Sender: No OFD packet to send [13:25:06]OFD Sender: No OFD packet to send [13:25:11]OFD Sender: No OFD packet to send [13:25:16]OFD Sender: No OFD packet to send [13:25:21]OFD Sender: No OFD packet to send [13:25:26]OFD Sender: No OFD packet to send [13:25:31]OFD Sender: No OFD packet to send [13:25:36]OFD Sender: No OFD packet to send [13:25:41]OFD Sender: No OFD packet to send [13:25:46]OFD Sender: No OFD packet to send [13:25:51]OFD Sender: No OFD packet to send [13:25:56]OFD Sender: No OFD packet to send [13:26:01]OFD Sender: No OFD packet to send [13:26:06]OFD Sender: No OFD packet to send [13:26:11]accept exits with 7 [13:26:11]New connection [13:26:11]New thread 3067342180 created [13:26:11]Thread 3067198820 joined [13:26:11]Waiting for new connection... [13:26:11] Sock 7.Parse request [13:26:11]Sock 7.Check first char [13:26:11]Sock 7.First char is OK [13:26:11]request: POST /json_proto HTTP/1.0 [13:26:11]Method: POST [13:26:11]URL: /json_proto [13:26:11]Method is POST - this is cgi request [13:26:11]url: /json_proto [13:26:11]query_string will be loaded in cgi processing [13:26:11]execute_cgi json_proto POST (null) [13:26:11]execute_cgi path=json_proto method=POST [13:26:11]POST find Content-Length [13:26:11]Host: 172.17.96.197:8080 [13:26:11]Content-Length: 673 [13:26:11]Content-Type: application/json [13:26:11] [13:26:11]POST finish read [13:26:11]Found Content-Length = 673 [13:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48590", "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.40, "quantity" : 9.670, "sum" : 700.11, "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" ] } } [13:26:11]execute_script... [13:26: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)48590", "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.40, "quantity" : 9.670, "sum" : 700.11, "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" ] } } [13:26:11]POST & json_proto [13:26:11]process_json_proto [13:26:11]json parsed OK: [13:26:11]protocol is kg_v1.0 [13:26:11]action value=close_receipt [13:26:11]process_action close_receipt [13:26:11]cmd_close_receipt [13:26:11]MH_GetDate [13:26:11]Write to MH i2c: F0 00 00 0D 18 14 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: F0 09 00 0D 18 00 74 D9 1B 66 E0 85 7F 64 33 [13:26:11]GetLastDocTimeStamp 1713100779 [13:26:11]current date 1713101172 [13:26:11]FM_GetShiftState [13:26:11]SAM_PROTO_GetShiftState [13:26:11]wFMCommunicate request_size=4 [13:26:11]MH_SAM_APDU [13:26:11]CAPDU: 80 13 01 00 [13:26:11]Write to MH i2c: E2 08 00 0E 18 80 13 01 00 00 00 00 00 A3 [13:26:11]Write i2c OK [13:26:11]MH_I2C_Read... [13:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:11]Read from MH i2c: E2 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 [13:26:11]MH_I2C_Read... [13:26:11]Read from MH i2c: E2 0E 00 0E 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3B [13:26:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:26:11]wFMCommunicate OK [13:26:11]SAM_PROTO_GetShiftState done [13:26:11]FM_GetShiftState done [13:26:11]opened in 1713054696 [13:26:11]opened+sec_in_day 1713141096 [13:26:11]quantity*price = 70010 [13:26:11]sum+1 = 70012 [13:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 174 14.04.2024 13:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112275 ФПД: 270480451301205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T132612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112275&fm=270480451301205&tin=02508201610067®Number=0000000000094237&sum=70000 [13:26:12]StoreToDocumentArchive [13:26:12]shift 357 fd 112275 [13:26:12]save to /storage/0357/doc_00112275 [13:26:12]save last doc name /storage/0357/doc_00112275 to /storage/kkm_last_doc_name [13:26:12]save OK [13:26:12]Clear old archive folders... [13:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:26:12]tlvbuf is B6E079C0 [13:26:12]SAM_PROTO_ClearQueue [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 09 00 00 [13:26:12]Write to MH i2c: E2 08 00 1B 18 80 09 00 00 00 00 00 00 A5 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_ClearQueue done [13:26:12]KKMCreateOFDPacket [13:26:12]OFDProtocolAddRootSTLVToBuf [13:26:12]FM_MakeSignedData [13:26:12]FM_MakeSignedData [13:26:12]SAM_PROTO_SignData [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 01 02 [13:26:12]Write to MH i2c: E2 08 00 1C 18 80 0D 01 02 00 00 00 00 AD [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 1C 18 00 90 00 A8 [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=255 [13:26:12]MH_SAM_APDU [13:26:12]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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 AE 00 00 00 F4 03 04 00 74 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 93 B6 01 00 35 04 06 00 F6 00 23 37 [13:26:12]Write to MH i2c: E2 02 01 1D 18 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 AE 00 00 00 F4 03 04 00 74 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 93 B6 01 00 35 04 06 00 F6 00 23 37 00 00 FA [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 1D 18 00 90 00 A9 [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=7 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 02 02 02 EF 55 [13:26:12]Write to MH i2c: E2 0A 00 1E 18 80 0D 02 02 02 00 EF 55 00 00 F8 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 03 00 1E 18 00 90 00 AA [13:26:12]RAPDU: 90 00 [13:26:12]wFMCommunicate OK [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 0D 03 02 [13:26:12]Write to MH i2c: E2 08 00 1F 18 80 0D 03 02 00 00 00 00 B2 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:12]Read from MH i2c: E2 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 [13:26:12]MH_I2C_Read... [13:26:12]Read from MH i2c: E2 0B 00 1F 18 00 6A 33 6D 34 90 A4 F2 8B 90 00 A2 [13:26:12]RAPDU: 6A 33 6D 34 90 A4 F2 8B 90 00 [13:26:12]wFMCommunicate OK [13:26:12]SAM_PROTO_SignData done [13:26:12]FM_MakeSignedData done [13:26:12]CreateOFDProtocolMessage [13:26:12]wFMCommunicate request_size=4 [13:26:12]MH_SAM_APDU [13:26:12]CAPDU: 80 11 00 00 [13:26:12]Write to MH i2c: E2 08 00 20 18 80 11 00 00 00 00 00 00 B2 [13:26:12]Write i2c OK [13:26:12]MH_I2C_Read... [13:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:13]Read from MH i2c: E2 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: E2 17 00 20 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 03 [13:26:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:26:13]wFMCommunicate OK [13:26:13]CreateOFDProtocolMessage done [13:26:13]OFDSenderStorePacket 112275 [13:26:13]StoreOFDPacket docnum=112275 [13:26:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5A 5E 04 01 E3 1D 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 AE 00 00 00 F4 03 04 00 74 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 93 B6 01 00 35 04 06 00 F6 00 23 37 EF 55 6A 33 6D 34 90 A4 F2 8B [13:26:13]CheckFolder [13:26:13]dirname=/storage/ofd_packets [13:26:13]CheckFolder done [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00112275 [13:26:13]NVStorageSaveData ofd_packets/00112275 [13:26:13]File name is /storage/ofd_packets/00112275 [13:26:13]Write 298 bytes [13:26:13]NVStorageSaveData done [13:26:13]OFDSenderStorePacket done [13:26:13]KKMCreateOFDPacket done [13:26:13]NVStorageSaveData kkm_last_timestamp [13:26:13]File name is /storage/kkm_last_timestamp [13:26:13]Write 4 bytes [13:26:13]NVStorageSaveData done [13:26:13]ExternCall_PrintAddStr [13:26:13]wPrintStart [13:26:13]Write to MH i2c: 01 00 00 21 18 39 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 21 18 00 00 00 00 00 FF 0F 4E [13:26:13]RasterBufferAndPrint [13:26:13]line Счет N : (1)48590 [13:26:13]line ИНН: 02508201610067 [13:26:13]line Контрольно-Кассовый Чек [13:26:13]line ПРОДАЖА [13:26:13]line ТРК (МРК, ГНК) : 51 [13:26:13]line Товар: 2710194210 [13:26:13]line ДТ-К-5 [13:26:13]line 9.670 * 72.40 [13:26:13]line = 700.11 [13:26:13]line НДС 12% НСП 1% [13:26:13]line > о реализуемом товаре [13:26:13]line ОКРУГЛЕНИЕ: -0.11 [13:26:13]line ИТОГО: 700.00 [13:26:13]line Внесено: 700.00 [13:26:13]line СДАЧА: 0.00 [13:26:13]line НСП 1% : 6.20 [13:26:13]line НДС 12% : 74.35 [13:26:13]line Наличными: 700.00 [13:26:13]line Безнал.: 0.00 [13:26:13]line Место: АЗС № 47 "Партнер Нефть" [13:26:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:26:13]line СНО: Общий режим [13:26:13]line Чек 174 14.04.2024 13:26 [13:26:13]line Смена: 357 ФФД: 1.0 [13:26:13]line ЗНМ: 0300000138 [13:26:13]line РНМ: 0000000000094237 [13:26:13]line Версия ККМ: 001 [13:26:13]line ФМ: 0000000000875019 [13:26:13]line ФД: 112275 [13:26:13]line ФПД: 270480451301205 [13:26:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T132612&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112275&fm=270480451301205&tin=02508201610067®Number=0000000000094237&sum=70000 [13:26:13]OFD Sender: Processing packet 112275 [packets to send 71, broken 70] [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00112275 [13:26:13]OFD Sender: To server: pG, [13:26:13]CommunicateWithHost lk.salyk.kg:30040 [13:26:13]ConnectInit lk.salyk.kg [13:26:13]written 0, free lines is 4095 [13:26:13]Connected sock=10 [13:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5A 5E 04 01 E3 1D 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 C6 25 00 00 00 00 00 37 04 06 00 48 1C 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 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 0B 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 AE 00 00 00 F4 03 04 00 74 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 93 B6 01 00 35 04 06 00 F6 00 23 37 EF 55 6A 33 6D 34 90 A4 F2 8B [13:26:13]Write to MH i2c: 01 00 00 4C 18 64 [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 C9 0C 40 [13:26:13]RasterBufferAndPrint [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]line [13:26:13]written 0, free lines is 3280 [13:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 01 AA 47 00 81 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 93 B6 01 00 F4 03 04 00 FF 80 1B 66 B6 04 01 00 00 DF 2F AE C4 4C D7 7C 5D [13:26:13]CommunicateWithHost err = 0 [13:26:13]CheckOFDResponse [13:26:13]1017 (14) - 77093643461234 [13:26:13]1041 (16) - 0000000000875019 [13:26:13]1040 (4) - 112275 [13:26:13]1012 (4) - 14.04.2024 07:08 [13:26:13]1206 (1) - 0 [13:26:13]OFD Sender: Remove packet 112275 [13:26:13]ProducePacketName [13:26:13]name=ofd_packets/00112275 [13:26:13]NVStorageDeleteData [13:26:13]MH_Cut [13:26:13]Write to MH i2c: D1 01 00 53 18 01 3D [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 01 00 [13:26:13]MH_I2C_Read... [13:26:13]Read from MH i2c: D1 01 00 53 18 00 3C [13:26:13]Write to MH i2c: 01 00 00 54 18 6C [13:26:13]Write i2c OK [13:26:13]MH_I2C_Read... [13:26:14]OFD Sender: No OFD packet to send [13:26:14]*** Cut start [13:26:14]*** Partial cut [13:26:14]*** CUTSNS_PIN = 1 [13:26:14]*** CUTSNS_PIN = 0 [13:26:14]*** Brake cut motor [13:26:15]Read from MH i2c: 01 [13:26:15]MH_I2C_Read... [13:26:15]*** Stop cut motor [13:26:15]*** Cut end [13:26:15]Read from MH i2c: 01 07 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 FF 0F 81 [13:26:15]process_action close_receipt done [13:26:15]requested_data is exist [13:26:15]produce_requested_data [13:26:15]requested_item fm.sn is exist - process it [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 11 00 00 [13:26:15]Write to MH i2c: E2 08 00 55 18 80 11 00 00 00 00 00 00 E7 [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 17 00 55 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 38 [13:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:26:15]wFMCommunicate OK [13:26:15]requested_item fd.num is exist - process it [13:26:15]SAM_PROTO_GetFieldsCounters [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 00 00 [13:26:15]Write to MH i2c: E2 08 00 56 18 80 13 00 00 00 00 00 00 EA [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 62 00 56 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 93 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 93 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetFieldsCounters done [13:26:15]requested_item shift.num is exist - process it [13:26:15]requested_item shift.opened is exist - process it [13:26:15]req_shift_opened [13:26:15]FM_GetShiftState [13:26:15]SAM_PROTO_GetShiftState [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 01 00 [13:26:15]Write to MH i2c: E2 08 00 57 18 80 13 01 00 00 00 00 00 EC [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 57 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 84 [13:26:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetShiftState done [13:26:15]FM_GetShiftState done [13:26:15]req_shift_opened done [13:26:15]requested_item shift.open_date is exist - process it [13:26:15]req_shift_open_date [13:26:15]req_shift_open_date done [13:26:15]produce_requested_data done [13:26:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112275,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:26:15]process_action_free close_receipt [13:26:15]json_value_free [13:26:15]json_value_free done [13:26:15]process_json_proto returns [13:26:15]Send response to host [13:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112275,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:26:15]free response buf [13:26:15]execute_script done [13:26:15]execute_script returns [13:26:15]free content buf [13:26:15]Sock 7.Close socket [13:26:15]Sock 7.Thread stoped [13:26:15]accept exits with 9 [13:26:15]New connection [13:26:15]New thread 3067198820 created [13:26:15]Thread 3067342180 joined [13:26:15]Waiting for new connection... [13:26:15] Sock 9.Parse request [13:26:15]Sock 9.Check first char [13:26:15]Sock 9.First char is OK [13:26:15]request: POST /json_proto HTTP/1.0 [13:26:15]Method: POST [13:26:15]URL: /json_proto [13:26:15]Method is POST - this is cgi request [13:26:15]url: /json_proto [13:26:15]query_string will be loaded in cgi processing [13:26:15]execute_cgi json_proto POST (null) [13:26:15]execute_cgi path=json_proto method=POST [13:26:15]POST find Content-Length [13:26:15]Host: 172.17.96.197:8080 [13:26:15]Content-Length: 681 [13:26:15]Content-Type: application/json [13:26:15] [13:26:15]POST finish read [13:26:15]Found Content-Length = 681 [13:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48589", "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.30, "quantity" : 77.770, "sum" : 5000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:15]execute_script... [13:26: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)48589", "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.30, "quantity" : 77.770, "sum" : 5000.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:15]POST & json_proto [13:26:15]process_json_proto [13:26:15]json parsed OK: [13:26:15]protocol is kg_v1.0 [13:26:15]action value=close_receipt [13:26:15]process_action close_receipt [13:26:15]cmd_close_receipt [13:26:15]MH_GetDate [13:26:15]Write to MH i2c: F0 00 00 58 18 5F [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 09 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: F0 09 00 58 18 00 78 D9 1B 66 E0 85 7F 64 82 [13:26:15]GetLastDocTimeStamp 1713101172 [13:26:15]current date 1713101176 [13:26:15]FM_GetShiftState [13:26:15]SAM_PROTO_GetShiftState [13:26:15]wFMCommunicate request_size=4 [13:26:15]MH_SAM_APDU [13:26:15]CAPDU: 80 13 01 00 [13:26:15]Write to MH i2c: E2 08 00 59 18 80 13 01 00 00 00 00 00 EE [13:26:15]Write i2c OK [13:26:15]MH_I2C_Read... [13:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:15]Read from MH i2c: E2 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 [13:26:15]MH_I2C_Read... [13:26:15]Read from MH i2c: E2 0E 00 59 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 86 [13:26:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:26:15]wFMCommunicate OK [13:26:15]SAM_PROTO_GetShiftState done [13:26:15]FM_GetShiftState done [13:26:15]opened in 1713054696 [13:26:15]opened+sec_in_day 1713141096 [13:26:15]quantity*price = 500061 [13:26:15]sum+1 = 500062 [13:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 175 14.04.2024 13:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112276 ФПД: 107975700171989 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T132616&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112276&fm=107975700171989&tin=02508201610067®Number=0000000000094237&sum=500000 [13:26:17]StoreToDocumentArchive [13:26:17]shift 357 fd 112276 [13:26:17]save to /storage/0357/doc_00112276 [13:26:17]save last doc name /storage/0357/doc_00112276 to /storage/kkm_last_doc_name [13:26:17]save OK [13:26:17]Clear old archive folders... [13:26:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:26:17]tlvbuf is 0177DC90 [13:26:17]SAM_PROTO_ClearQueue [13:26:17]wFMCommunicate request_size=4 [13:26:17]MH_SAM_APDU [13:26:17]CAPDU: 80 09 00 00 [13:26:17]Write to MH i2c: E2 08 00 66 18 80 09 00 00 00 00 00 00 F0 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [13:26:17]RAPDU: 90 00 [13:26:17]wFMCommunicate OK [13:26:17]SAM_PROTO_ClearQueue done [13:26:17]KKMCreateOFDPacket [13:26:17]OFDProtocolAddRootSTLVToBuf [13:26:17]FM_MakeSignedData [13:26:17]FM_MakeSignedData [13:26:17]SAM_PROTO_SignData [13:26:17]wFMCommunicate request_size=4 [13:26:17]MH_SAM_APDU [13:26:17]CAPDU: 80 0D 01 02 [13:26:17]Write to MH i2c: E2 08 00 67 18 80 0D 01 02 00 00 00 00 F8 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [13:26:17]RAPDU: 90 00 [13:26:17]wFMCommunicate OK [13:26:17]wFMCommunicate request_size=255 [13:26:17]MH_SAM_APDU [13:26:17]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 CA 2F 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 78 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 94 B6 01 00 35 04 06 00 62 [13:26:17]Write to MH i2c: E2 02 01 68 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 CA 2F 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 78 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 94 B6 01 00 35 04 06 00 62 00 00 F3 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [13:26:17]RAPDU: 90 00 [13:26:17]wFMCommunicate OK [13:26:17]wFMCommunicate request_size=10 [13:26:17]MH_SAM_APDU [13:26:17]CAPDU: 80 0D 02 02 05 34 0D 40 CC D5 [13:26:17]Write to MH i2c: E2 0D 00 69 18 80 0D 02 02 05 00 34 0D 40 CC D5 00 00 27 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [13:26:17]RAPDU: 90 00 [13:26:17]wFMCommunicate OK [13:26:17]wFMCommunicate request_size=4 [13:26:17]MH_SAM_APDU [13:26:17]CAPDU: 80 0D 03 02 [13:26:17]Write to MH i2c: E2 08 00 6A 18 80 0D 03 02 00 00 00 00 FD [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 0B 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 0B 00 6A 18 00 8F A2 29 8C 7D A1 0C F0 90 00 FE [13:26:17]RAPDU: 8F A2 29 8C 7D A1 0C F0 90 00 [13:26:17]wFMCommunicate OK [13:26:17]SAM_PROTO_SignData done [13:26:17]FM_MakeSignedData done [13:26:17]CreateOFDProtocolMessage [13:26:17]wFMCommunicate request_size=4 [13:26:17]MH_SAM_APDU [13:26:17]CAPDU: 80 11 00 00 [13:26:17]Write to MH i2c: E2 08 00 6B 18 80 11 00 00 00 00 00 00 FD [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:17]Read from MH i2c: E2 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 17 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: E2 17 00 6B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4E [13:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:26:17]wFMCommunicate OK [13:26:17]CreateOFDProtocolMessage done [13:26:17]OFDSenderStorePacket 112276 [13:26:17]StoreOFDPacket docnum=112276 [13:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 51 03 07 01 D7 B0 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 CA 2F 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 78 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 94 B6 01 00 35 04 06 00 62 34 0D 40 CC D5 8F A2 29 8C 7D A1 0C F0 [13:26:17]CheckFolder [13:26:17]dirname=/storage/ofd_packets [13:26:17]CheckFolder done [13:26:17]ProducePacketName [13:26:17]name=ofd_packets/00112276 [13:26:17]NVStorageSaveData ofd_packets/00112276 [13:26:17]File name is /storage/ofd_packets/00112276 [13:26:17]Write 301 bytes [13:26:17]NVStorageSaveData done [13:26:17]OFDSenderStorePacket done [13:26:17]KKMCreateOFDPacket done [13:26:17]NVStorageSaveData kkm_last_timestamp [13:26:17]File name is /storage/kkm_last_timestamp [13:26:17]Write 4 bytes [13:26:17]NVStorageSaveData done [13:26:17]ExternCall_PrintAddStr [13:26:17]wPrintStart [13:26:17]Write to MH i2c: 01 00 00 6C 18 84 [13:26:17]Write i2c OK [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 07 00 [13:26:17]MH_I2C_Read... [13:26:17]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 FF 0F 99 [13:26:17]RasterBufferAndPrint [13:26:17]line Счет N : (1)48589 [13:26:17]line ИНН: 02508201610067 [13:26:17]line Контрольно-Кассовый Чек [13:26:17]line ПРОДАЖА [13:26:17]line ТРК (МРК, ГНК) : 32 [13:26:17]line Товар: 2710124130 [13:26:17]line Аи-92-К-5 [13:26:17]line 77.770 * 64.30 [13:26:17]line = 5000.61 [13:26:17]line НДС 12% НСП 1% [13:26:17]line > о реализуемом товаре [13:26:17]line ОКРУГЛЕНИЕ: -0.61 [13:26:17]line ИТОГО: 5000.00 [13:26:17]line Внесено: 5000.00 [13:26:17]line СДАЧА: 0.00 [13:26:17]line НСП 1% : 44.25 [13:26:17]line НДС 12% : 531.04 [13:26:17]line Наличными: 5000.00 [13:26:17]line Безнал.: 0.00 [13:26:17]line Место: АЗС № 47 "Партнер Нефть" [13:26:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:26:17]line СНО: Общий режим [13:26:17]line Чек 175 14.04.2024 13:26 [13:26:17]line Смена: 357 ФФД: 1.0 [13:26:17]line ЗНМ: 0300000138 [13:26:17]line РНМ: 0000000000094237 [13:26:17]line Версия ККМ: 001 [13:26:18]line ФМ: 0000000000875019 [13:26:18]line ФД: 112276 [13:26:18]line ФПД: 107975700171989 [13:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T132616&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112276&fm=107975700171989&tin=02508201610067®Number=0000000000094237&sum=500000 [13:26:18]OFD Sender: Processing packet 112276 [packets to send 71, broken 70] [13:26:18]ProducePacketName [13:26:18]name=ofd_packets/00112276 [13:26:18]OFD Sender: To server: pG, [13:26:18]CommunicateWithHost lk.salyk.kg:30040 [13:26:18]ConnectInit lk.salyk.kg [13:26:18]written 0, free lines is 4095 [13:26:18]Connected sock=10 [13:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 51 03 07 01 D7 B0 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 CA 2F 01 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5D A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 78 D9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 94 B6 01 00 35 04 06 00 62 34 0D 40 CC D5 8F A2 29 8C 7D A1 0C F0 [13:26:18]Write to MH i2c: 01 00 00 97 18 AF [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 07 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 07 00 97 18 00 00 00 00 00 D9 0C 9B [13:26:18]RasterBufferAndPrint [13:26:18]line [13:26:18]line [13:26:18]line [13:26:18]line [13:26:18]line [13:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3A C2 47 00 AF 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 38 37 35 30 31 39 10 04 04 00 94 B6 01 00 F4 03 04 00 04 81 1B 66 B6 04 01 00 00 02 16 33 F3 5F 87 14 C1 [13:26:18]CommunicateWithHost err = 0 [13:26:18]CheckOFDResponse [13:26:18]1017 (14) - 77093643461234 [13:26:18]1041 (16) - 0000000000875019 [13:26:18]1040 (4) - 112276 [13:26:18]1012 (4) - 14.04.2024 07:08 [13:26:18]1206 (1) - 0 [13:26:18]OFD Sender: Remove packet 112276 [13:26:18]ProducePacketName [13:26:18]name=ofd_packets/00112276 [13:26:18]NVStorageDeleteData [13:26:18]written 0, free lines is 3302 [13:26:18]MH_Cut [13:26:18]Write to MH i2c: D1 01 00 9E 18 01 88 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: D1 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: D1 01 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: D1 01 00 9E 18 00 87 [13:26:18]Write to MH i2c: 01 00 00 9F 18 B7 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:19]OFD Sender: No OFD packet to send [13:26:19]*** Cut start [13:26:19]*** Partial cut [13:26:19]*** CUTSNS_PIN = 1 [13:26:19]*** CUTSNS_PIN = 0 [13:26:19]*** Brake cut motor [13:26:19]Read from MH i2c: 01 [13:26:19]MH_I2C_Read... [13:26:19]*** Stop cut motor [13:26:19]*** Cut end [13:26:19]Read from MH i2c: 01 07 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: 01 07 00 9F 18 00 00 00 00 00 FF 0F CC [13:26:19]process_action close_receipt done [13:26:19]requested_data is exist [13:26:19]produce_requested_data [13:26:19]requested_item fm.sn is exist - process it [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 11 00 00 [13:26:19]Write to MH i2c: E2 08 00 A0 18 80 11 00 00 00 00 00 00 32 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 17 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 17 00 A0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 83 [13:26:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:26:20]wFMCommunicate OK [13:26:20]requested_item fd.num is exist - process it [13:26:20]SAM_PROTO_GetFieldsCounters [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 13 00 00 [13:26:20]Write to MH i2c: E2 08 00 A1 18 80 13 00 00 00 00 00 00 35 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 62 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 62 00 A1 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 94 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:26:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 94 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:20]wFMCommunicate OK [13:26:20]SAM_PROTO_GetFieldsCounters done [13:26:20]requested_item shift.num is exist - process it [13:26:20]requested_item shift.opened is exist - process it [13:26:20]req_shift_opened [13:26:20]FM_GetShiftState [13:26:20]SAM_PROTO_GetShiftState [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 13 01 00 [13:26:20]Write to MH i2c: E2 08 00 A2 18 80 13 01 00 00 00 00 00 37 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0E 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 0E 00 A2 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CF [13:26:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:26:20]wFMCommunicate OK [13:26:20]SAM_PROTO_GetShiftState done [13:26:20]FM_GetShiftState done [13:26:20]req_shift_opened done [13:26:20]requested_item shift.open_date is exist - process it [13:26:20]req_shift_open_date [13:26:20]req_shift_open_date done [13:26:20]produce_requested_data done [13:26:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112276,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:26:20]process_action_free close_receipt [13:26:20]json_value_free [13:26:20]json_value_free done [13:26:20]process_json_proto returns [13:26:20]Send response to host [13:26:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112276,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:26:20]free response buf [13:26:20]execute_script done [13:26:20]execute_script returns [13:26:20]free content buf [13:26:20]Sock 9.Close socket [13:26:20]Sock 9.Thread stoped [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:16]accept exits with 7 [13:30:16]New connection [13:30:16]New thread 3067342180 created [13:30:16]Thread 3067198820 joined [13:30:16]Waiting for new connection... [13:30:16] Sock 7.Parse request [13:30:16]Sock 7.Check first char [13:30:16]Sock 7.First char is OK [13:30:16]request: POST /json_proto HTTP/1.0 [13:30:16]Method: POST [13:30:16]URL: /json_proto [13:30:16]Method is POST - this is cgi request [13:30:16]url: /json_proto [13:30:16]query_string will be loaded in cgi processing [13:30:16]execute_cgi json_proto POST (null) [13:30:16]execute_cgi path=json_proto method=POST [13:30:16]POST find Content-Length [13:30:16]Host: 172.17.96.197:8080 [13:30:16]Content-Length: 676 [13:30:16]Content-Type: application/json [13:30:16] [13:30:16]POST finish read [13:30:16]Found Content-Length = 676 [13:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48591", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [13:30:16]execute_script... [13:30: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)48591", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [13:30:16]POST & json_proto [13:30:16]process_json_proto [13:30:16]json parsed OK: [13:30:16]protocol is kg_v1.0 [13:30:16]action value=close_receipt [13:30:16]process_action close_receipt [13:30:16]cmd_close_receipt [13:30:16]MH_GetDate [13:30:16]Write to MH i2c: F0 00 00 A3 18 AA [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 09 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: F0 09 00 A3 18 00 69 DA 1B 66 E0 85 7F 64 BF [13:30:16]GetLastDocTimeStamp 1713101176 [13:30:16]current date 1713101417 [13:30:16]FM_GetShiftState [13:30:16]SAM_PROTO_GetShiftState [13:30:16]wFMCommunicate request_size=4 [13:30:16]MH_SAM_APDU [13:30:16]CAPDU: 80 13 01 00 [13:30:16]Write to MH i2c: E2 08 00 A4 18 80 13 01 00 00 00 00 00 39 [13:30:16]Write i2c OK [13:30:16]MH_I2C_Read... [13:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:16]Read from MH i2c: E2 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 [13:30:16]MH_I2C_Read... [13:30:16]Read from MH i2c: E2 0E 00 A4 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D1 [13:30:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:30:16]wFMCommunicate OK [13:30:16]SAM_PROTO_GetShiftState done [13:30:16]FM_GetShiftState done [13:30:16]opened in 1713054696 [13:30:16]opened+sec_in_day 1713141096 [13:30:16]quantity*price = 20061 [13:30:16]sum+1 = 20063 [13:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 176 14.04.2024 13:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112277 ФПД: 161229603379874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112277&fm=161229603379874&tin=02508201610067®Number=0000000000094237&sum=20000 [13:30:17]StoreToDocumentArchive [13:30:17]shift 357 fd 112277 [13:30:17]save to /storage/0357/doc_00112277 [13:30:17]save last doc name /storage/0357/doc_00112277 to /storage/kkm_last_doc_name [13:30:17]save OK [13:30:17]Clear old archive folders... [13:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:30:17]tlvbuf is 0181FC50 [13:30:17]SAM_PROTO_ClearQueue [13:30:17]wFMCommunicate request_size=4 [13:30:17]MH_SAM_APDU [13:30:17]CAPDU: 80 09 00 00 [13:30:17]Write to MH i2c: E2 08 00 B1 18 80 09 00 00 00 00 00 00 3B [13:30:17]Write i2c OK [13:30:17]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [13:30:18]RAPDU: 90 00 [13:30:18]wFMCommunicate OK [13:30:18]SAM_PROTO_ClearQueue done [13:30:18]KKMCreateOFDPacket [13:30:18]OFDProtocolAddRootSTLVToBuf [13:30:18]FM_MakeSignedData [13:30:18]FM_MakeSignedData [13:30:18]SAM_PROTO_SignData [13:30:18]wFMCommunicate request_size=4 [13:30:18]MH_SAM_APDU [13:30:18]CAPDU: 80 0D 01 02 [13:30:18]Write to MH i2c: E2 08 00 B2 18 80 0D 01 02 00 00 00 00 43 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 B2 18 00 90 00 3E [13:30:18]RAPDU: 90 00 [13:30:18]wFMCommunicate OK [13:30:18]wFMCommunicate request_size=255 [13:30:18]MH_SAM_APDU [13:30: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 B0 00 00 00 F4 03 04 00 69 DA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 95 B6 01 00 35 04 06 00 92 [13:30:18]Write to MH i2c: E2 02 01 B3 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 B0 00 00 00 F4 03 04 00 69 DA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 95 B6 01 00 35 04 06 00 92 00 00 09 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 B3 18 00 90 00 3F [13:30:18]RAPDU: 90 00 [13:30:18]wFMCommunicate OK [13:30:18]wFMCommunicate request_size=10 [13:30:18]MH_SAM_APDU [13:30:18]CAPDU: 80 0D 02 02 05 A3 31 3C 9A A2 [13:30:18]Write to MH i2c: E2 0D 00 B4 18 80 0D 02 02 05 00 A3 31 3C 9A A2 00 00 9C [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 03 00 B4 18 00 90 00 40 [13:30:18]RAPDU: 90 00 [13:30:18]wFMCommunicate OK [13:30:18]wFMCommunicate request_size=4 [13:30:18]MH_SAM_APDU [13:30:18]CAPDU: 80 0D 03 02 [13:30:18]Write to MH i2c: E2 08 00 B5 18 80 0D 03 02 00 00 00 00 48 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 0B 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 0B 00 B5 18 00 23 16 19 C1 FF D1 1C AC 90 00 F4 [13:30:18]RAPDU: 23 16 19 C1 FF D1 1C AC 90 00 [13:30:18]wFMCommunicate OK [13:30:18]SAM_PROTO_SignData done [13:30:18]FM_MakeSignedData done [13:30:18]CreateOFDProtocolMessage [13:30:18]wFMCommunicate request_size=4 [13:30:18]MH_SAM_APDU [13:30:18]CAPDU: 80 11 00 00 [13:30:18]Write to MH i2c: E2 08 00 B6 18 80 11 00 00 00 00 00 00 48 [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:18]Read from MH i2c: E2 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 17 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: E2 17 00 B6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 99 [13:30:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:30:18]wFMCommunicate OK [13:30:18]CreateOFDProtocolMessage done [13:30:18]OFDSenderStorePacket 112277 [13:30:18]StoreOFDPacket docnum=112277 [13:30:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 64 DD 07 01 34 E7 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 B0 00 00 00 F4 03 04 00 69 DA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 95 B6 01 00 35 04 06 00 92 A3 31 3C 9A A2 23 16 19 C1 FF D1 1C AC [13:30:18]CheckFolder [13:30:18]dirname=/storage/ofd_packets [13:30:18]CheckFolder done [13:30:18]ProducePacketName [13:30:18]name=ofd_packets/00112277 [13:30:18]NVStorageSaveData ofd_packets/00112277 [13:30:18]File name is /storage/ofd_packets/00112277 [13:30:18]Write 301 bytes [13:30:18]NVStorageSaveData done [13:30:18]OFDSenderStorePacket done [13:30:18]KKMCreateOFDPacket done [13:30:18]NVStorageSaveData kkm_last_timestamp [13:30:18]File name is /storage/kkm_last_timestamp [13:30:18]Write 4 bytes [13:30:18]NVStorageSaveData done [13:30:18]ExternCall_PrintAddStr [13:30:18]wPrintStart [13:30:18]Write to MH i2c: 01 00 00 B7 18 CF [13:30:18]Write i2c OK [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 [13:30:18]MH_I2C_Read... [13:30:18]Read from MH i2c: 01 07 00 B7 18 00 00 00 00 00 FF 0F E4 [13:30:18]RasterBufferAndPrint [13:30:18]line Счет N : (1)48591 [13:30:18]line ИНН: 02508201610067 [13:30:18]line Контрольно-Кассовый Чек [13:30:18]line ПРОДАЖА [13:30:18]line ТРК (МРК, ГНК) : 42 [13:30:18]line Товар: 2710124130 [13:30:18]line Аи-92-К-5 [13:30:18]line 3.120 * 64.30 [13:30:18]line = 200.62 [13:30:18]line НДС 12% НСП 1% [13:30:18]line > о реализуемом товаре [13:30:18]line ОКРУГЛЕНИЕ: -0.62 [13:30:18]line ИТОГО: 200.00 [13:30:18]line Внесено: 200.00 [13:30:18]line СДАЧА: 0.00 [13:30:18]line НСП 1% : 1.77 [13:30:18]line НДС 12% : 21.30 [13:30:18]line Наличными: 200.00 [13:30:18]line Безнал.: 0.00 [13:30:18]line Место: АЗС № 47 "Партнер Нефть" [13:30:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:30:18]line СНО: Общий режим [13:30:18]line Чек 176 14.04.2024 13:30 [13:30:18]line Смена: 357 ФФД: 1.0 [13:30:18]line ЗНМ: 0300000138 [13:30:18]line РНМ: 0000000000094237 [13:30:18]line Версия ККМ: 001 [13:30:18]line ФМ: 0000000000875019 [13:30:18]line ФД: 112277 [13:30:18]line ФПД: 161229603379874 [13:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112277&fm=161229603379874&tin=02508201610067®Number=0000000000094237&sum=20000 [13:30:18]written 0, free lines is 4095 [13:30:18]OFD Sender: Processing packet 112277 [packets to send 71, broken 70] [13:30:18]ProducePacketName [13:30:18]name=ofd_packets/00112277 [13:30:18]OFD Sender: To server: pG, [13:30:18]CommunicateWithHost lk.salyk.kg:30040 [13:30:18]ConnectInit lk.salyk.kg [13:30:19]Connected sock=10 [13:30:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 64 DD 07 01 34 E7 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 B0 00 00 00 F4 03 04 00 69 DA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 95 B6 01 00 35 04 06 00 92 A3 31 3C 9A A2 23 16 19 C1 FF D1 1C AC [13:30:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 63 E5 47 00 84 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 95 B6 01 00 F4 03 04 00 F5 81 1B 66 B6 04 01 00 00 5A 8F 63 2E 34 6A CA AC [13:30:19]CommunicateWithHost err = 0 [13:30:19]CheckOFDResponse [13:30:19]1017 (14) - 77093643461234 [13:30:19]1041 (16) - 0000000000875019 [13:30:19]1040 (4) - 112277 [13:30:19]1012 (4) - 14.04.2024 07:12 [13:30:19]1206 (1) - 0 [13:30:19]OFD Sender: Remove packet 112277 [13:30:19]ProducePacketName [13:30:19]name=ofd_packets/00112277 [13:30:19]NVStorageDeleteData [13:30:19]Write to MH i2c: 01 00 00 E2 18 FA [13:30:19]Write i2c OK [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: 01 [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: 01 07 00 [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: 01 07 00 E2 18 00 00 00 00 00 E0 0C ED [13:30:19]RasterBufferAndPrint [13:30:19]line [13:30:19]line [13:30:19]line [13:30:19]line [13:30:19]line [13:30:19]written 0, free lines is 3301 [13:30:19]MH_Cut [13:30:19]Write to MH i2c: D1 01 00 E9 18 01 D3 [13:30:19]Write i2c OK [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: D1 [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: D1 01 00 [13:30:19]MH_I2C_Read... [13:30:19]Read from MH i2c: D1 01 00 E9 18 00 D2 [13:30:19]Write to MH i2c: 01 00 00 EA 18 02 [13:30:19]Write i2c OK [13:30:19]MH_I2C_Read... [13:30:19]OFD Sender: No OFD packet to send [13:30:20]*** Cut start [13:30:20]*** Partial cut [13:30:20]*** CUTSNS_PIN = 1 [13:30:20]*** CUTSNS_PIN = 0 [13:30:20]*** Brake cut motor [13:30:20]Read from MH i2c: 01 [13:30:20]MH_I2C_Read... [13:30:20]*** Stop cut motor [13:30:20]*** Cut end [13:30:20]Read from MH i2c: 01 07 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: 01 07 00 EA 18 00 00 00 00 00 FF 0F 17 [13:30:20]process_action close_receipt done [13:30:20]requested_data is exist [13:30:20]produce_requested_data [13:30:20]requested_item fm.sn is exist - process it [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 11 00 00 [13:30:20]Write to MH i2c: E2 08 00 EB 18 80 11 00 00 00 00 00 00 7D [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 17 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 17 00 EB 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CE [13:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:30:20]wFMCommunicate OK [13:30:20]requested_item fd.num is exist - process it [13:30:20]SAM_PROTO_GetFieldsCounters [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 13 00 00 [13:30:20]Write to MH i2c: E2 08 00 EC 18 80 13 00 00 00 00 00 00 80 [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 62 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 62 00 EC 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 95 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 95 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:30:20]wFMCommunicate OK [13:30:20]SAM_PROTO_GetFieldsCounters done [13:30:20]requested_item shift.num is exist - process it [13:30:20]requested_item shift.opened is exist - process it [13:30:20]req_shift_opened [13:30:20]FM_GetShiftState [13:30:20]SAM_PROTO_GetShiftState [13:30:20]wFMCommunicate request_size=4 [13:30:20]MH_SAM_APDU [13:30:20]CAPDU: 80 13 01 00 [13:30:20]Write to MH i2c: E2 08 00 ED 18 80 13 01 00 00 00 00 00 82 [13:30:20]Write i2c OK [13:30:20]MH_I2C_Read... [13:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:30:20]Read from MH i2c: E2 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 0E 00 [13:30:20]MH_I2C_Read... [13:30:20]Read from MH i2c: E2 0E 00 ED 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1A [13:30:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:30:20]wFMCommunicate OK [13:30:20]SAM_PROTO_GetShiftState done [13:30:20]FM_GetShiftState done [13:30:20]req_shift_opened done [13:30:20]requested_item shift.open_date is exist - process it [13:30:20]req_shift_open_date [13:30:20]req_shift_open_date done [13:30:20]produce_requested_data done [13:30:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112277,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:30:20]process_action_free close_receipt [13:30:20]json_value_free [13:30:20]json_value_free done [13:30:20]process_json_proto returns [13:30:20]Send response to host [13:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112277,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:30:20]free response buf [13:30:20]execute_script done [13:30:20]execute_script returns [13:30:20]free content buf [13:30:20]Sock 7.Close socket [13:30:20]Sock 7.Thread stoped [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:57]accept exits with 9 [13:32:57]New connection [13:32:57]New thread 3067198820 created [13:32:57]Thread 3067342180 joined [13:32:57]Waiting for new connection... [13:32:57] Sock 9.Parse request [13:32:57]Sock 9.Check first char [13:32:57]Sock 9.First char is OK [13:32:57]request: POST /json_proto HTTP/1.0 [13:32:57]Method: POST [13:32:57]URL: /json_proto [13:32:57]Method is POST - this is cgi request [13:32:57]url: /json_proto [13:32:57]query_string will be loaded in cgi processing [13:32:57]execute_cgi json_proto POST (null) [13:32:57]execute_cgi path=json_proto method=POST [13:32:57]POST find Content-Length [13:32:57]Host: 172.17.96.197:8080 [13:32:57]Content-Length: 679 [13:32:57]Content-Type: application/json [13:32:57] [13:32:57]POST finish read [13:32:57]Found Content-Length = 679 [13:32:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 6.120, "sum" : 200.12, "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" ] } } [13:32:57]execute_script... [13:32: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)48592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 6.120, "sum" : 200.12, "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" ] } } [13:32:57]POST & json_proto [13:32:57]process_json_proto [13:32:57]json parsed OK: [13:32:57]protocol is kg_v1.0 [13:32:57]action value=close_receipt [13:32:57]process_action close_receipt [13:32:57]cmd_close_receipt [13:32:57]MH_GetDate [13:32:57]Write to MH i2c: F0 00 00 EE 18 F5 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: F0 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: F0 09 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: F0 09 00 EE 18 00 0A DB 1B 66 E0 85 7F 64 AC [13:32:57]GetLastDocTimeStamp 1713101417 [13:32:57]current date 1713101578 [13:32:57]FM_GetShiftState [13:32:57]SAM_PROTO_GetShiftState [13:32:57]wFMCommunicate request_size=4 [13:32:57]MH_SAM_APDU [13:32:57]CAPDU: 80 13 01 00 [13:32:57]Write to MH i2c: E2 08 00 EF 18 80 13 01 00 00 00 00 00 84 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:57]Read from MH i2c: E2 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: E2 0E 00 EF 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1C [13:32:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:32:57]wFMCommunicate OK [13:32:57]SAM_PROTO_GetShiftState done [13:32:57]FM_GetShiftState done [13:32:57]opened in 1713054696 [13:32:57]opened+sec_in_day 1713141096 [13:32:57]quantity*price = 20012 [13:32:57]sum+1 = 20013 [13:32:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.25 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 177 14.04.2024 13:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112278 ФПД: 275199569387487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133258&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112278&fm=275199569387487&tin=02508201610067®Number=0000000000094237&sum=20000 [13:32:58]StoreToDocumentArchive [13:32:58]shift 357 fd 112278 [13:32:58]save to /storage/0357/doc_00112278 [13:32:58]save last doc name /storage/0357/doc_00112278 to /storage/kkm_last_doc_name [13:32:58]save OK [13:32:58]Clear old archive folders... [13:32:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:32:58]tlvbuf is 0177CE60 [13:32:58]SAM_PROTO_ClearQueue [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 09 00 00 [13:32:58]Write to MH i2c: E2 08 00 FC 18 80 09 00 00 00 00 00 00 86 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 FC 18 00 90 00 88 [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_ClearQueue done [13:32:58]KKMCreateOFDPacket [13:32:58]OFDProtocolAddRootSTLVToBuf [13:32:58]FM_MakeSignedData [13:32:58]FM_MakeSignedData [13:32:58]SAM_PROTO_SignData [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 01 02 [13:32:58]Write to MH i2c: E2 08 00 FD 18 80 0D 01 02 00 00 00 00 8E [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 FD 18 00 90 00 89 [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=255 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C 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 4D 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 B1 00 00 00 F4 03 04 00 0A DB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 96 B6 01 00 35 04 06 00 FA 4A [13:32:58]Write to MH i2c: E2 02 01 FE 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C 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 4D 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 B1 00 00 00 F4 03 04 00 0A DB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 96 B6 01 00 35 04 06 00 FA 4A 00 00 78 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 FE 18 00 90 00 8A [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=9 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 02 02 04 E4 93 5F DF [13:32:58]Write to MH i2c: E2 0C 00 FF 18 80 0D 02 02 04 00 E4 93 5F DF 00 00 4E [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 03 00 FF 18 00 90 00 8B [13:32:58]RAPDU: 90 00 [13:32:58]wFMCommunicate OK [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 0D 03 02 [13:32:58]Write to MH i2c: E2 08 00 00 19 80 0D 03 02 00 00 00 00 94 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 0B 00 00 19 00 EF 64 37 B3 94 DF A6 23 90 00 0E [13:32:58]RAPDU: EF 64 37 B3 94 DF A6 23 90 00 [13:32:58]wFMCommunicate OK [13:32:58]SAM_PROTO_SignData done [13:32:58]FM_MakeSignedData done [13:32:58]CreateOFDProtocolMessage [13:32:58]wFMCommunicate request_size=4 [13:32:58]MH_SAM_APDU [13:32:58]CAPDU: 80 11 00 00 [13:32:58]Write to MH i2c: E2 08 00 01 19 80 11 00 00 00 00 00 00 94 [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:58]Read from MH i2c: E2 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: E2 17 00 01 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E5 [13:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:32:58]wFMCommunicate OK [13:32:58]CreateOFDProtocolMessage done [13:32:58]OFDSenderStorePacket 112278 [13:32:58]StoreOFDPacket docnum=112278 [13:32:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A3 41 06 01 13 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C 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 4D 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 B1 00 00 00 F4 03 04 00 0A DB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 96 B6 01 00 35 04 06 00 FA 4A E4 93 5F DF EF 64 37 B3 94 DF A6 23 [13:32:58]CheckFolder [13:32:58]dirname=/storage/ofd_packets [13:32:58]CheckFolder done [13:32:58]ProducePacketName [13:32:58]name=ofd_packets/00112278 [13:32:58]NVStorageSaveData ofd_packets/00112278 [13:32:58]File name is /storage/ofd_packets/00112278 [13:32:58]Write 300 bytes [13:32:58]NVStorageSaveData done [13:32:58]OFDSenderStorePacket done [13:32:58]KKMCreateOFDPacket done [13:32:58]NVStorageSaveData kkm_last_timestamp [13:32:58]File name is /storage/kkm_last_timestamp [13:32:58]Write 4 bytes [13:32:58]NVStorageSaveData done [13:32:58]ExternCall_PrintAddStr [13:32:58]wPrintStart [13:32:58]Write to MH i2c: 01 00 00 02 19 1B [13:32:58]Write i2c OK [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 [13:32:58]MH_I2C_Read... [13:32:58]Read from MH i2c: 01 07 00 02 19 00 00 00 00 00 FF 0F 30 [13:32:58]RasterBufferAndPrint [13:32:58]line Счет N : (1)48592 [13:32:58]line ИНН: 02508201610067 [13:32:58]line Контрольно-Кассовый Чек [13:32:58]line ПРОДАЖА [13:32:58]line ТРК (МРК, ГНК) : 72 [13:32:58]line Товар: 2711190000 [13:32:58]line ГАЗ-К-5 [13:32:58]line 6.120 * 32.70 [13:32:58]line = 200.12 [13:32:58]line НДС 12% НСП 1% [13:32:58]line > о реализуемом товаре [13:32:58]line ОКРУГЛЕНИЕ: -0.12 [13:32:58]line ИТОГО: 200.00 [13:32:58]line Внесено: 200.00 [13:32:58]line СДАЧА: 0.00 [13:32:58]line НСП 1% : 1.77 [13:32:58]line НДС 12% : 21.25 [13:32:58]line Наличными: 200.00 [13:32:58]line Безнал.: 0.00 [13:32:58]line Место: АЗС № 47 "Партнер Нефть" [13:32:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:32:58]line СНО: Общий режим [13:32:58]line Чек 177 14.04.2024 13:32 [13:32:58]line Смена: 357 ФФД: 1.0 [13:32:58]line ЗНМ: 0300000138 [13:32:58]line РНМ: 0000000000094237 [13:32:58]line Версия ККМ: 001 [13:32:58]line ФМ: 0000000000875019 [13:32:58]line ФД: 112278 [13:32:58]line ФПД: 275199569387487 [13:32:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133258&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112278&fm=275199569387487&tin=02508201610067®Number=0000000000094237&sum=20000 [13:32:59]written 0, free lines is 4095 [13:32:59]OFD Sender: Processing packet 112278 [packets to send 71, broken 70] [13:32:59]ProducePacketName [13:32:59]name=ofd_packets/00112278 [13:32:59]OFD Sender: To server: pG, [13:32:59]CommunicateWithHost lk.salyk.kg:30040 [13:32:59]ConnectInit lk.salyk.kg [13:32:59]Connected sock=10 [13:32:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A3 41 06 01 13 96 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 E8 17 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C 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 4D 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 B1 00 00 00 F4 03 04 00 0A DB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 96 B6 01 00 35 04 06 00 FA 4A E4 93 5F DF EF 64 37 B3 94 DF A6 23 [13:32:59]Write to MH i2c: 01 00 00 2D 19 46 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 2D 19 00 00 00 00 00 D9 0C 32 [13:32:59]RasterBufferAndPrint [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]line [13:32:59]written 0, free lines is 3296 [13:32:59]MH_Cut [13:32:59]Write to MH i2c: D1 01 00 34 19 01 1F [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 01 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: D1 01 00 34 19 00 1E [13:32:59]Write to MH i2c: 01 00 00 35 19 4E [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 98 18 47 00 8F 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 96 B6 01 00 F4 03 04 00 95 82 1B 66 B6 04 01 00 00 B7 F4 F2 C4 70 A3 D5 2B [13:32:59]CommunicateWithHost err = 0 [13:32:59]CheckOFDResponse [13:32:59]1017 (14) - 77093643461234 [13:32:59]1041 (16) - 0000000000875019 [13:32:59]1040 (4) - 112278 [13:32:59]1012 (4) - 14.04.2024 07:15 [13:32:59]1206 (1) - 0 [13:32:59]OFD Sender: Remove packet 112278 [13:32:59]ProducePacketName [13:32:59]name=ofd_packets/00112278 [13:32:59]NVStorageDeleteData [13:33:00]OFD Sender: No OFD packet to send [13:33:00]*** Cut start [13:33:00]*** Partial cut [13:33:00]*** CUTSNS_PIN = 1 [13:33:00]*** CUTSNS_PIN = 0 [13:33:00]*** Brake cut motor [13:33:01]Read from MH i2c: 01 [13:33:01]MH_I2C_Read... [13:33:01]*** Stop cut motor [13:33:01]*** Cut end [13:33:01]Read from MH i2c: 01 07 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: 01 07 00 35 19 00 00 00 00 00 FF 0F 63 [13:33:01]process_action close_receipt done [13:33:01]requested_data is exist [13:33:01]produce_requested_data [13:33:01]requested_item fm.sn is exist - process it [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 11 00 00 [13:33:01]Write to MH i2c: E2 08 00 36 19 80 11 00 00 00 00 00 00 C9 [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 17 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 17 00 36 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1A [13:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:33:01]wFMCommunicate OK [13:33:01]requested_item fd.num is exist - process it [13:33:01]SAM_PROTO_GetFieldsCounters [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 13 00 00 [13:33:01]Write to MH i2c: E2 08 00 37 19 80 13 00 00 00 00 00 00 CC [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 62 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 62 00 37 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 96 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:33:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 96 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:01]wFMCommunicate OK [13:33:01]SAM_PROTO_GetFieldsCounters done [13:33:01]requested_item shift.num is exist - process it [13:33:01]requested_item shift.opened is exist - process it [13:33:01]req_shift_opened [13:33:01]FM_GetShiftState [13:33:01]SAM_PROTO_GetShiftState [13:33:01]wFMCommunicate request_size=4 [13:33:01]MH_SAM_APDU [13:33:01]CAPDU: 80 13 01 00 [13:33:01]Write to MH i2c: E2 08 00 38 19 80 13 01 00 00 00 00 00 CE [13:33:01]Write i2c OK [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 [13:33:01]MH_I2C_Read... [13:33:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:01]Read from MH i2c: E2 0E 00 [13:33:01]MH_I2C_Read... [13:33:01]Read from MH i2c: E2 0E 00 38 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 66 [13:33:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:33:01]wFMCommunicate OK [13:33:01]SAM_PROTO_GetShiftState done [13:33:01]FM_GetShiftState done [13:33:01]req_shift_opened done [13:33:01]requested_item shift.open_date is exist - process it [13:33:01]req_shift_open_date [13:33:01]req_shift_open_date done [13:33:01]produce_requested_data done [13:33:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112278,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:33:01]process_action_free close_receipt [13:33:01]json_value_free [13:33:01]json_value_free done [13:33:01]process_json_proto returns [13:33:01]Send response to host [13:33:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112278,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:33:01]free response buf [13:33:01]execute_script done [13:33:01]execute_script returns [13:33:01]free content buf [13:33:01]Sock 9.Close socket [13:33:01]Sock 9.Thread stoped [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:29]accept exits with 7 [13:39:29]New connection [13:39:29]New thread 3067342180 created [13:39:29]Thread 3067198820 joined [13:39:29]Waiting for new connection... [13:39:29] Sock 7.Parse request [13:39:29]Sock 7.Check first char [13:39:29]Sock 7.First char is OK [13:39:29]request: POST /json_proto HTTP/1.0 [13:39:29]Method: POST [13:39:29]URL: /json_proto [13:39:29]Method is POST - this is cgi request [13:39:29]url: /json_proto [13:39:29]query_string will be loaded in cgi processing [13:39:29]execute_cgi json_proto POST (null) [13:39:29]execute_cgi path=json_proto method=POST [13:39:29]POST find Content-Length [13:39:29]Host: 172.17.96.197:8080 [13:39:29]Content-Length: 1998 [13:39:29]Content-Type: application/json [13:39:29] [13:39:29]POST finish read [13:39:29]Found Content-Length = 1998 [13:39:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10420", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021192926", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0410\u0440\u0430\u0445\u0438\u0441", "price" : 91.00, "quantity" : 1.000, "sum" : 91.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" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:29]execute_script... [13:39:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10420", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "50173372", "name": "\u0416\u0435\u0432 Orbit \u0434\u043B\u044F \u0434\u0435\u0442\u0435\u0439 Classic", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000032760017", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043C\u044F\u0441\u043E110\u0433", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021192926", "name": "48 \u041A\u043E\u043F\u0435\u0435\u043A \u0441\u0442\u0430\u043A\u0430\u043D \u0410\u0440\u0430\u0445\u0438\u0441", "price" : 91.00, "quantity" : 1.000, "sum" : 91.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" : 381.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:29]POST & json_proto [13:39:29]process_json_proto [13:39:29]json parsed OK: [13:39:29]protocol is kg_v1.0 [13:39:29]action value=close_receipt [13:39:29]process_action close_receipt [13:39:29]cmd_close_receipt [13:39:29]MH_GetDate [13:39:29]Write to MH i2c: F0 00 00 39 19 41 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: F0 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: F0 09 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: F0 09 00 39 19 00 92 DC 1B 66 E0 85 7F 64 81 [13:39:29]GetLastDocTimeStamp 1713101578 [13:39:29]current date 1713101970 [13:39:29]FM_GetShiftState [13:39:29]SAM_PROTO_GetShiftState [13:39:29]wFMCommunicate request_size=4 [13:39:29]MH_SAM_APDU [13:39:29]CAPDU: 80 13 01 00 [13:39:29]Write to MH i2c: E2 08 00 3A 19 80 13 01 00 00 00 00 00 D0 [13:39:29]Write i2c OK [13:39:29]MH_I2C_Read... [13:39:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:29]Read from MH i2c: E2 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 [13:39:29]MH_I2C_Read... [13:39:29]Read from MH i2c: E2 0E 00 3A 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 68 [13:39:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:39:29]wFMCommunicate OK [13:39:29]SAM_PROTO_GetShiftState done [13:39:29]FM_GetShiftState done [13:39:29]opened in 1713054696 [13:39:29]opened+sec_in_day 1713141096 [13:39:29]quantity*price = 6500 [13:39:29]sum+1 = 6501 [13:39:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse персик 1л 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 50173372 Жев Orbit для детей Classic 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000032760017 Слойка DC треугольная мясо110г 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021192926 48 Копеек стакан Арахис 1.000 * 91.00 = 91.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 381.00 НСП 1% : 3.35 НДС 12% : 40.45 Наличными: 0.00 Безнал.: 381.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 178 14.04.2024 13:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112279 ФПД: 9596252243046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133930&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112279&fm=9596252243046&tin=02508201610067®Number=0000000000094237&sum=38100 0 [13:39:30]StoreToDocumentArchive [13:39:30]shift 357 fd 112279 [13:39:30]save to /storage/0357/doc_00112279 [13:39:30]save last doc name /storage/0357/doc_00112279 to /storage/kkm_last_doc_name [13:39:30]save OK [13:39:30]Clear old archive folders... [13:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=754 [13:39:30]tlvbuf is 01820300 [13:39:30]SAM_PROTO_ClearQueue [13:39:30]wFMCommunicate request_size=4 [13:39:30]MH_SAM_APDU [13:39:30]CAPDU: 80 09 00 00 [13:39:30]Write to MH i2c: E2 08 00 47 19 80 09 00 00 00 00 00 00 D2 [13:39:30]Write i2c OK [13:39:30]MH_I2C_Read... [13:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:30]Read from MH i2c: E2 [13:39:30]MH_I2C_Read... [13:39:30]Read from MH i2c: E2 03 00 [13:39:30]MH_I2C_Read... [13:39:30]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [13:39:30]RAPDU: 90 00 [13:39:30]wFMCommunicate OK [13:39:30]SAM_PROTO_ClearQueue done [13:39:30]KKMCreateOFDPacket [13:39:30]OFDProtocolAddRootSTLVToBuf [13:39:30]FM_MakeSignedData [13:39:30]FM_MakeSignedData [13:39:30]SAM_PROTO_SignData [13:39:30]wFMCommunicate request_size=4 [13:39:30]MH_SAM_APDU [13:39:30]CAPDU: 80 0D 01 02 [13:39:30]Write to MH i2c: E2 08 00 48 19 80 0D 01 02 00 00 00 00 DA [13:39:30]Write i2c OK [13:39:30]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [13:39:31]RAPDU: 90 00 [13:39:31]wFMCommunicate OK [13:39:31]wFMCommunicate request_size=255 [13:39:31]MH_SAM_APDU [13:39:31]CAPDU: 80 0D 02 02 FA 03 00 F2 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 [13:39:31]Write to MH i2c: E2 02 01 49 19 80 0D 02 02 FA 00 03 00 F2 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 00 9D [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [13:39:31]RAPDU: 90 00 [13:39:31]wFMCommunicate OK [13:39:31]wFMCommunicate request_size=255 [13:39:31]MH_SAM_APDU [13:39:31]CAPDU: 80 0D 02 02 FA 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 32 [13:39:31]Write to MH i2c: E2 02 01 4A 19 80 0D 02 02 FA 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 32 00 00 16 [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:31]Read from MH i2c: E2 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 [13:39:31]MH_I2C_Read... [13:39:31]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [13:39:31]RAPDU: 90 00 [13:39:31]wFMCommunicate OK [13:39:31]wFMCommunicate request_size=255 [13:39:31]MH_SAM_APDU [13:39:31]CAPDU: 80 0D 02 02 FA 36 06 04 29 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 23 00 00 00 00 13 04 06 00 8C 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 92 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 97 B6 01 00 35 04 [13:39:31]Write to MH i2c: E2 02 01 4B 19 80 0D 02 02 FA 00 36 06 04 29 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 23 00 00 00 00 13 04 06 00 8C 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 92 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 97 B6 01 00 35 04 00 00 33 [13:39:31]Write i2c OK [13:39:31]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 03 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [13:39:32]RAPDU: 90 00 [13:39:32]wFMCommunicate OK [13:39:32]wFMCommunicate request_size=13 [13:39:32]MH_SAM_APDU [13:39:32]CAPDU: 80 0D 02 02 08 06 00 08 BA 4D 34 C4 66 [13:39:32]Write to MH i2c: E2 10 00 4C 19 80 0D 02 02 08 00 06 00 08 BA 4D 34 C4 66 00 00 62 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 03 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 03 00 4C 19 00 90 00 D9 [13:39:32]RAPDU: 90 00 [13:39:32]wFMCommunicate OK [13:39:32]wFMCommunicate request_size=4 [13:39:32]MH_SAM_APDU [13:39:32]CAPDU: 80 0D 03 02 [13:39:32]Write to MH i2c: E2 08 00 4D 19 80 0D 03 02 00 00 00 00 E1 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0B 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 0B 00 4D 19 00 F7 22 C0 18 D0 4A 7E 53 90 00 BE [13:39:32]RAPDU: F7 22 C0 18 D0 4A 7E 53 90 00 [13:39:32]wFMCommunicate OK [13:39:32]SAM_PROTO_SignData done [13:39:32]FM_MakeSignedData done [13:39:32]CreateOFDProtocolMessage [13:39:32]wFMCommunicate request_size=4 [13:39:32]MH_SAM_APDU [13:39:32]CAPDU: 80 11 00 00 [13:39:32]Write to MH i2c: E2 08 00 4E 19 80 11 00 00 00 00 00 00 E1 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:32]Read from MH i2c: E2 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 17 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: E2 17 00 4E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 32 [13:39:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:39:32]wFMCommunicate OK [13:39:32]CreateOFDProtocolMessage done [13:39:32]OFDSenderStorePacket 112279 [13:39:32]StoreOFDPacket docnum=112279 [13:39:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 06 03 00 00 B2 D8 FE 02 3C DB 5A 03 01 00 03 00 F2 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 32 36 06 04 29 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 23 00 00 00 00 13 04 06 00 8C 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 92 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 97 B6 01 00 35 04 06 00 08 BA 4D 34 C4 66 F7 22 C0 18 D0 4A 7E 53 [13:39:32]CheckFolder [13:39:32]dirname=/storage/ofd_packets [13:39:32]CheckFolder done [13:39:32]ProducePacketName [13:39:32]name=ofd_packets/00112279 [13:39:32]NVStorageSaveData ofd_packets/00112279 [13:39:32]File name is /storage/ofd_packets/00112279 [13:39:32]Write 804 bytes [13:39:32]NVStorageSaveData done [13:39:32]OFDSenderStorePacket done [13:39:32]KKMCreateOFDPacket done [13:39:32]NVStorageSaveData kkm_last_timestamp [13:39:32]File name is /storage/kkm_last_timestamp [13:39:32]Write 4 bytes [13:39:32]NVStorageSaveData done [13:39:32]ExternCall_PrintAddStr [13:39:32]wPrintStart [13:39:32]Write to MH i2c: 01 00 00 4F 19 68 [13:39:32]Write i2c OK [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: 01 [13:39:32]MH_I2C_Read... [13:39:32]OFD Sender: Processing packet 112279 [packets to send 71, broken 70] [13:39:32]ProducePacketName [13:39:32]name=ofd_packets/00112279 [13:39:32]OFD Sender: To server: pG, [13:39:32]CommunicateWithHost lk.salyk.kg:30040 [13:39:32]ConnectInit lk.salyk.kg [13:39:32]Read from MH i2c: 01 07 00 [13:39:32]MH_I2C_Read... [13:39:32]Read from MH i2c: 01 07 00 4F 19 00 00 00 00 00 FF 0F 7D [13:39:32]RasterBufferAndPrint [13:39:32]line Счет N : (3)10420 [13:39:32]line ИНН: 02508201610067 [13:39:32]line Контрольно-Кассовый Чек [13:39:32]line ПРОДАЖА [13:39:32]line Товар: 5449000027450 [13:39:32]line Напиток FuzeTea чай манго,ром 0,5л [13:39:32]line 1.000 * 65.00 [13:39:32]line = 65.00 [13:39:32]line НДС 12% НСП 1% [13:39:32]line > о реализуемом товаре [13:39:32]line Товар: 5449000189332 [13:39:32]line Холодный чай Fuse персик 1л [13:39:32]line 1.000 * 120.00 [13:39:32]line = 120.00 [13:39:32]line НДС 12% НСП 1% [13:39:32]line > о реализуемом товаре [13:39:32]line Товар: 50173372 [13:39:32]line Жев Orbit для детей Classic [13:39:32]line 1.000 * 40.00 [13:39:32]line = 40.00 [13:39:32]line НДС 12% НСП 1% [13:39:32]line > о реализуемом товаре [13:39:32]line Товар: 2000032760017 [13:39:32]line Слойка DC треугольная мясо110г [13:39:32]line 1.000 * 65.00 [13:39:32]line = 65.00 [13:39:32]line НДС 12% НСП 1% [13:39:32]line > о реализуемом товаре [13:39:32]line Товар: 4620021192926 [13:39:32]line 48 Копеек стакан Арахис [13:39:32]line 1.000 * 91.00 [13:39:32]line = 91.00 [13:39:32]line НДС 12% НСП 1% [13:39:32]line > о реализуемом товаре [13:39:32]line ИТОГО: 381.00 [13:39:32]line НСП 1% : 3.35 [13:39:32]line НДС 12% : 40.45 [13:39:32]line Наличными: 0.00 [13:39:32]line Безнал.: 381.00 [13:39:32]line Место: АЗС № 47 "Партнер Нефть" [13:39:32]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:39:32]line СНО: Общий режим [13:39:32]line Чек 178 14.04.2024 13:39 [13:39:32]line Смена: 357 ФФД: 1.0 [13:39:32]line ЗНМ: 0300000138 [13:39:32]line РНМ: 0000000000094237 [13:39:32]line Версия ККМ: 001 [13:39:32]line Платежная система: Бакай Банк [13:39:32]line ФМ: 0000000000875019 [13:39:32]line ФД: 112279 [13:39:32]line ФПД: 9596252243046 [13:39:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133930&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112279&fm=9596252243046&tin=02508201610067®Number=0000000000094237&sum=38100 [13:39:32]Connected sock=10 [13:39:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 06 03 00 00 B2 D8 FE 02 3C DB 5A 03 01 00 03 00 F2 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 30 31 37 33 33 37 32 06 04 26 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B4 D0 BB D1 8F 20 D0 B4 D0 B5 D1 82 D0 B5 D0 B9 20 43 6C 61 73 73 69 63 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 32 30 30 30 30 33 32 37 36 30 30 31 37 06 04 34 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 81 D0 BE 31 31 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 line 0 [13:39:32]BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 32 39 32 36 06 04 29 00 34 38 20 D0 9A D0 BE D0 BF D0 B5 D0 B5 D0 BA 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 written 0, free lines is 4095 [13:39:32]D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 23 00 00 00 00 13 04 06 00 8C 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 94 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 92 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 97 B6 01 00 35 04 06 00 08 BA 4D 34 C4 66 F7 22 C0 18 D0 4A 7E 53 [13:39:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 88 02 47 00 8C 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 38 37 35 30 31 39 10 04 04 00 97 B6 01 00 F4 03 04 00 1E 84 1B 66 B6 04 01 00 00 72 57 D1 93 4A 40 96 83 [13:39:33]CommunicateWithHost err = 0 [13:39:33]CheckOFDResponse [13:39:33]1017 (14) - 77093643461234 [13:39:33]1041 (16) - 0000000000875019 [13:39:33]1040 (4) - 112279 [13:39:33]1012 (4) - 14.04.2024 07:22 [13:39:33]1206 (1) - 0 [13:39:33]OFD Sender: Remove packet 112279 [13:39:33]ProducePacketName [13:39:33]name=ofd_packets/00112279 [13:39:33]NVStorageDeleteData [13:39:33]Write to MH i2c: 01 00 00 93 19 AC [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 43 0B 01 [13:39:33]RasterBufferAndPrint [13:39:33]line [13:39:33]line [13:39:33]line [13:39:33]line [13:39:33]line [13:39:33]written 0, free lines is 2891 [13:39:33]MH_Cut [13:39:33]Write to MH i2c: D1 01 00 9A 19 01 85 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: D1 [13:39:33]MH_I2C_Read... [13:39:33]OFD Sender: No OFD packet to send [13:39:33]Read from MH i2c: D1 01 00 [13:39:33]MH_I2C_Read... [13:39:33]Read from MH i2c: D1 01 00 9A 19 00 84 [13:39:33]Write to MH i2c: 01 00 00 9B 19 B4 [13:39:33]Write i2c OK [13:39:33]MH_I2C_Read... [13:39:34]*** Cut start [13:39:34]*** Partial cut [13:39:34]*** CUTSNS_PIN = 1 [13:39:34]*** CUTSNS_PIN = 0 [13:39:34]*** Brake cut motor [13:39:35]Read from MH i2c: 01 [13:39:35]MH_I2C_Read... [13:39:35]*** Stop cut motor [13:39:35]*** Cut end [13:39:35]Read from MH i2c: 01 07 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: 01 07 00 9B 19 00 00 00 00 00 FF 0F C9 [13:39:35]process_action close_receipt done [13:39:35]requested_data is exist [13:39:35]produce_requested_data [13:39:35]requested_item fm.sn is exist - process it [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 11 00 00 [13:39:35]Write to MH i2c: E2 08 00 9C 19 80 11 00 00 00 00 00 00 2F [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 17 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 17 00 9C 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 80 [13:39:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:39:35]wFMCommunicate OK [13:39:35]requested_item fd.num is exist - process it [13:39:35]SAM_PROTO_GetFieldsCounters [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 13 00 00 [13:39:35]Write to MH i2c: E2 08 00 9D 19 80 13 00 00 00 00 00 00 32 [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 62 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 62 00 9D 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 97 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [13:39:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 97 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:39:35]wFMCommunicate OK [13:39:35]SAM_PROTO_GetFieldsCounters done [13:39:35]requested_item shift.num is exist - process it [13:39:35]requested_item shift.opened is exist - process it [13:39:35]req_shift_opened [13:39:35]FM_GetShiftState [13:39:35]SAM_PROTO_GetShiftState [13:39:35]wFMCommunicate request_size=4 [13:39:35]MH_SAM_APDU [13:39:35]CAPDU: 80 13 01 00 [13:39:35]Write to MH i2c: E2 08 00 9E 19 80 13 01 00 00 00 00 00 34 [13:39:35]Write i2c OK [13:39:35]MH_I2C_Read... [13:39:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:35]Read from MH i2c: E2 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 0E 00 [13:39:35]MH_I2C_Read... [13:39:35]Read from MH i2c: E2 0E 00 9E 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CC [13:39:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:39:35]wFMCommunicate OK [13:39:35]SAM_PROTO_GetShiftState done [13:39:35]FM_GetShiftState done [13:39:35]req_shift_opened done [13:39:35]requested_item shift.open_date is exist - process it [13:39:35]req_shift_open_date [13:39:35]req_shift_open_date done [13:39:35]produce_requested_data done [13:39:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112279,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:39:35]process_action_free close_receipt [13:39:35]json_value_free [13:39:35]json_value_free done [13:39:35]process_json_proto returns [13:39:35]Send response to host [13:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112279,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:39:35]free response buf [13:39:35]execute_script done [13:39:35]execute_script returns [13:39:35]free content buf [13:39:35]Sock 7.Close socket [13:39:35]Sock 7.Thread stoped [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:49]accept exits with 9 [13:39:49]New connection [13:39:49]New thread 3067198820 created [13:39:49]Thread 3067342180 joined [13:39:49]Waiting for new connection... [13:39:49] Sock 9.Parse request [13:39:49]Sock 9.Check first char [13:39:49]Sock 9.First char is OK [13:39:49]request: POST /json_proto HTTP/1.0 [13:39:49]Method: POST [13:39:49]URL: /json_proto [13:39:49]Method is POST - this is cgi request [13:39:49]url: /json_proto [13:39:49]query_string will be loaded in cgi processing [13:39:49]execute_cgi json_proto POST (null) [13:39:49]execute_cgi path=json_proto method=POST [13:39:49]POST find Content-Length [13:39:49]Host: 172.17.96.197:8080 [13:39:49]Content-Length: 818 [13:39:49]Content-Type: application/json [13:39:49] [13:39:49]POST finish read [13:39:49]Found Content-Length = 818 [13:39:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48593", "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.30, "quantity" : 20.000, "sum" : 1286.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" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:49]execute_script... [13:39:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48593", "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.30, "quantity" : 20.000, "sum" : 1286.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" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:39:49]POST & json_proto [13:39:49]process_json_proto [13:39:49]json parsed OK: [13:39:49]protocol is kg_v1.0 [13:39:49]action value=close_receipt [13:39:49]process_action close_receipt [13:39:49]cmd_close_receipt [13:39:49]MH_GetDate [13:39:49]Write to MH i2c: F0 00 00 9F 19 A7 [13:39:49]Write i2c OK [13:39:49]MH_I2C_Read... [13:39:49]Read from MH i2c: F0 [13:39:49]MH_I2C_Read... [13:39:49]Read from MH i2c: F0 09 00 [13:39:49]MH_I2C_Read... [13:39:49]Read from MH i2c: F0 09 00 9F 19 00 A6 DC 1B 66 E0 85 7F 64 FB [13:39:49]GetLastDocTimeStamp 1713101970 [13:39:49]current date 1713101990 [13:39:49]FM_GetShiftState [13:39:49]SAM_PROTO_GetShiftState [13:39:49]wFMCommunicate request_size=4 [13:39:49]MH_SAM_APDU [13:39:49]CAPDU: 80 13 01 00 [13:39:49]Write to MH i2c: E2 08 00 A0 19 80 13 01 00 00 00 00 00 36 [13:39:49]Write i2c OK [13:39:49]MH_I2C_Read... [13:39:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:39:49]Read from MH i2c: E2 [13:39:49]MH_I2C_Read... [13:39:49]Read from MH i2c: E2 0E 00 [13:39:49]MH_I2C_Read... [13:39:49]Read from MH i2c: E2 0E 00 A0 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CE [13:39:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:39:49]wFMCommunicate OK [13:39:49]SAM_PROTO_GetShiftState done [13:39:49]FM_GetShiftState done [13:39:49]opened in 1713054696 [13:39:49]opened+sec_in_day 1713141096 [13:39:49]quantity*price = 128600 [13:39:49]sum+1 = 128601 [13:39:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 0.00 Безнал.: 1286.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 179 14.04.2024 13:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112280 ФПД: 160747950238142 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133950&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112280&fm=160747950238142&tin=02508201610067®Number=0000000000094237&sum=128600 [13:39:50]StoreToDocumentArchive [13:39:50]shift 357 fd 112280 [13:39:50]save to /storage/0357/doc_00112280 [13:39:50]save last doc name /storage/0357/doc_00112280 to /storage/kkm_last_doc_name [13:39:50]save OK [13:39:50]Clear old archive folders... [13:39:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:39:50]tlvbuf is 0177D140 [13:39:50]SAM_PROTO_ClearQueue [13:39:50]wFMCommunicate request_size=4 [13:39:50]MH_SAM_APDU [13:39:50]CAPDU: 80 09 00 00 [13:39:50]Write to MH i2c: E2 08 00 AD 19 80 09 00 00 00 00 00 00 38 [13:39:50]Write i2c OK [13:39:50]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 AD 19 00 90 00 3A [13:39:51]RAPDU: 90 00 [13:39:51]wFMCommunicate OK [13:39:51]SAM_PROTO_ClearQueue done [13:39:51]KKMCreateOFDPacket [13:39:51]OFDProtocolAddRootSTLVToBuf [13:39:51]FM_MakeSignedData [13:39:51]FM_MakeSignedData [13:39:51]SAM_PROTO_SignData [13:39:51]wFMCommunicate request_size=4 [13:39:51]MH_SAM_APDU [13:39:51]CAPDU: 80 0D 01 02 [13:39:51]Write to MH i2c: E2 08 00 AE 19 80 0D 01 02 00 00 00 00 40 [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 AE 19 00 90 00 3B [13:39:51]RAPDU: 90 00 [13:39:51]wFMCommunicate OK [13:39:51]wFMCommunicate request_size=255 [13:39:51]MH_SAM_APDU [13:39:51]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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A6 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 98 B6 01 00 35 04 06 00 92 [13:39:51]Write to MH i2c: E2 02 01 AF 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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A6 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 98 B6 01 00 35 04 06 00 92 00 00 DB [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 AF 19 00 90 00 3C [13:39:51]RAPDU: 90 00 [13:39:51]wFMCommunicate OK [13:39:51]wFMCommunicate request_size=10 [13:39:51]MH_SAM_APDU [13:39:51]CAPDU: 80 0D 02 02 05 33 0C 78 E9 BE [13:39:51]Write to MH i2c: E2 0D 00 B0 19 80 0D 02 02 05 00 33 0C 78 E9 BE 00 00 AB [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 03 00 B0 19 00 90 00 3D [13:39:51]RAPDU: 90 00 [13:39:51]wFMCommunicate OK [13:39:51]wFMCommunicate request_size=4 [13:39:51]MH_SAM_APDU [13:39:51]CAPDU: 80 0D 03 02 [13:39:51]Write to MH i2c: E2 08 00 B1 19 80 0D 03 02 00 00 00 00 45 [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 0B 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 0B 00 B1 19 00 50 AD E7 0C 63 22 E6 CE 90 00 6F [13:39:51]RAPDU: 50 AD E7 0C 63 22 E6 CE 90 00 [13:39:51]wFMCommunicate OK [13:39:51]SAM_PROTO_SignData done [13:39:51]FM_MakeSignedData done [13:39:51]CreateOFDProtocolMessage [13:39:51]wFMCommunicate request_size=4 [13:39:51]MH_SAM_APDU [13:39:51]CAPDU: 80 11 00 00 [13:39:51]Write to MH i2c: E2 08 00 B2 19 80 11 00 00 00 00 00 00 45 [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:39:51]Read from MH i2c: E2 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 17 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: E2 17 00 B2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 96 [13:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:39:51]wFMCommunicate OK [13:39:51]CreateOFDProtocolMessage done [13:39:51]OFDSenderStorePacket 112280 [13:39:51]StoreOFDPacket docnum=112280 [13:39:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E6 B1 07 01 E1 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A6 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 98 B6 01 00 35 04 06 00 92 33 0C 78 E9 BE 50 AD E7 0C 63 22 E6 CE [13:39:51]CheckFolder [13:39:51]dirname=/storage/ofd_packets [13:39:51]CheckFolder done [13:39:51]ProducePacketName [13:39:51]name=ofd_packets/00112280 [13:39:51]NVStorageSaveData ofd_packets/00112280 [13:39:51]File name is /storage/ofd_packets/00112280 [13:39:51]Write 301 bytes [13:39:51]NVStorageSaveData done [13:39:51]OFDSenderStorePacket done [13:39:51]KKMCreateOFDPacket done [13:39:51]NVStorageSaveData kkm_last_timestamp [13:39:51]File name is /storage/kkm_last_timestamp [13:39:51]Write 4 bytes [13:39:51]NVStorageSaveData done [13:39:51]ExternCall_PrintAddStr [13:39:51]wPrintStart [13:39:51]Write to MH i2c: 01 00 00 B3 19 CC [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: 01 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: 01 07 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: 01 07 00 B3 19 00 00 00 00 00 FF 0F E1 [13:39:51]RasterBufferAndPrint [13:39:51]line Счет N : (1)48593 [13:39:51]line ИНН: 02508201610067 [13:39:51]line Контрольно-Кассовый Чек [13:39:51]line ПРОДАЖА [13:39:51]line ТРК (МРК, ГНК) : 42 [13:39:51]line Товар: 2710124130 [13:39:51]line Аи-92-К-5 [13:39:51]line 20.000 * 64.30 [13:39:51]line = 1286.00 [13:39:51]line НДС 12% НСП 1% [13:39:51]line > о реализуемом товаре [13:39:51]line ИТОГО: 1286.00 [13:39:51]line НСП 1% : 11.38 [13:39:51]line НДС 12% : 136.57 [13:39:51]line Наличными: 0.00 [13:39:51]line Безнал.: 1286.00 [13:39:51]line Место: АЗС № 47 "Партнер Нефть" [13:39:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:39:51]line СНО: Общий режим [13:39:51]line Чек 179 14.04.2024 13:39 [13:39:51]line Смена: 357 ФФД: 1.0 [13:39:51]line ЗНМ: 0300000138 [13:39:51]line РНМ: 0000000000094237 [13:39:51]line Версия ККМ: 001 [13:39:51]line Платежная система: Бакай Банк [13:39:51]line ФМ: 0000000000875019 [13:39:51]line ФД: 112280 [13:39:51]line ФПД: 160747950238142 [13:39:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T133950&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112280&fm=160747950238142&tin=02508201610067®Number=0000000000094237&sum=128600 [13:39:51]written 0, free lines is 4095 [13:39:51]OFD Sender: Processing packet 112280 [packets to send 71, broken 70] [13:39:51]ProducePacketName [13:39:51]name=ofd_packets/00112280 [13:39:51]OFD Sender: To server: pG, [13:39:51]CommunicateWithHost lk.salyk.kg:30040 [13:39:51]ConnectInit lk.salyk.kg [13:39:51]int [13:39:51]Write to MH i2c: 01 00 00 D8 19 F1 [13:39:51]*** FLAG_PRN_PAP2 set [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]Write i2c OK [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: DD [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: DD [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: DD 01 00 [13:39:51]MH_I2C_Read... [13:39:51]Read from MH i2c: DD 01 00 [13:39:51]answer for other command [DD] [13:39:51]MH Int Process stopped [13:39:51]Read from MH i2c: DD 01 00 D8 19 05 D3 [13:39:51]answer with wrong packet_num 19D8 - expected 19D9 [13:39:51]process_action_free close_receipt [13:39:51]json_value_free [13:39:51]json_value_free done [13:39:51]process_json_proto returns [13:39:51]Send response to host [13:39:51]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [13:39:51]free response buf [13:39:51]execute_script done [13:39:51]execute_script returns [13:39:51]free content buf [13:39:51]Sock 9.Close socket [13:39:51]Sock 9.Thread stoped [13:39:51]Connected sock=10 [13:39:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E6 B1 07 01 E1 C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 F6 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 A6 DC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 98 B6 01 00 35 04 06 00 92 33 0C 78 E9 BE 50 AD E7 0C 63 22 E6 CE [13:39:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 65 CB 47 00 5D 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 98 B6 01 00 F4 03 04 00 32 84 1B 66 B6 04 01 00 00 49 C6 03 AA 26 0B 5F C5 [13:39:52]CommunicateWithHost err = 0 [13:39:52]CheckOFDResponse [13:39:52]1017 (14) - 77093643461234 [13:39:52]1041 (16) - 0000000000875019 [13:39:52]1040 (4) - 112280 [13:39:52]1012 (4) - 14.04.2024 07:22 [13:39:52]1206 (1) - 0 [13:39:52]OFD Sender: Remove packet 112280 [13:39:52]ProducePacketName [13:39:52]name=ofd_packets/00112280 [13:39:52]NVStorageDeleteData [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 [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]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 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6A [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [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 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 54000000005725C5 (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: 27023102+1686078944=1713102046 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x220ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [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 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 6B [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [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 DF DC 1B 66 E0 85 7F 64 83 [13:40:47]Current date/time: 14.04.2024 13:40 [13:40:47]FM_Init [13:40:47]wFMConnect [13:40:47]MH_SAM_On [13:40:47]Write to MH i2c: E0 00 00 08 00 E7 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_init finished! [13:40:47]*** atr: [13:40:47]*** 0F 3B D5 18 FF 81 91 FE [13:40:47]*** 1F C3 80 73 C8 21 10 0A [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]*** 00 00 00 00 00 00 00 00 [13:40:47]Read from MH i2c: E0 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E0 10 00 [13:40:47]MH_I2C_Read... [13:40:47]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 [13:40:47]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:40:47]wFMCommunicate request_size=10 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:40:47]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 11 00 00 [13:40:47]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [13:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:40:47]wFMCommunicate OK [13:40:47]Detected FM SN is 0000000000875019 [13:40:47]Stored FM SN is 0000000000875019 [13:40:47]wFMCommunicate request_size=9 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 16 00 00 04 70 BB 00 00 [13:40:47]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 70 BB 00 00 00 00 BD [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]FM PIN OK [13:40:47]wFMCommunicate request_size=8 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 14 04 00 03 02 00 01 [13:40:47]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]wFMCommunicate request_size=13 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:40:47]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 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:40:47]RAPDU: 90 00 [13:40:47]wFMCommunicate OK [13:40:47]wFMCommunicate request_size=4 [13:40:47]MH_SAM_APDU [13:40:47]CAPDU: 80 11 00 00 [13:40:47]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:47]Read from MH i2c: E2 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [13:40:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:40:47]wFMCommunicate OK [13:40:47]DocumentArchiveInit [13:40:47]Start Httpd... [13:40:47]Httpd thread 3067112804 created [13:40:47]Write to MH i2c: 01 00 00 0F 00 0F [13:40:47]Write i2c OK [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 [13:40:47]MH_I2C_Read... [13:40:47]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:40:47]MH Int Process started [13:40:47]Allocated Socket 7 [13:40:47]Bind OK [13:40:47]Listen OK [13:40:47]httpd running on port 8080 [13:40:47]Waiting for new connection... [13:40:47]OFD Sender: No OFD packet to send [13:40:48]accept exits with 9 [13:40:48]New connection [13:40:48]New thread 3066826084 created [13:40:48]Waiting for new connection... [13:40:48] Sock 9.Parse request [13:40:48]Sock 9.Check first char [13:40:48]Sock 9.First char is OK [13:40:48]request: POST /json_proto HTTP/1.0 [13:40:48]Method: POST [13:40:48]URL: /json_proto [13:40:48]Method is POST - this is cgi request [13:40:48]url: /json_proto [13:40:48]query_string will be loaded in cgi processing [13:40:48]execute_cgi json_proto POST (null) [13:40:48]execute_cgi path=json_proto method=POST [13:40:48]POST find Content-Length [13:40:48]Host: 172.17.96.197:8080 [13:40:48]Content-Length: 215 [13:40:48]Content-Type: application/json [13:40:48] [13:40:48]POST finish read [13:40:48]Found Content-Length = 215 [13:40:48]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" ] } } [13:40:48]execute_script... [13:40:48]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" ] } } [13:40:48]POST & json_proto [13:40:48]process_json_proto [13:40:48]json parsed OK: [13:40:48]protocol is kg_v1.0 [13:40:48]action value=get_value [13:40:48]process_action get_value [13:40:48]cmd_get_value [13:40:48]process_action get_value done [13:40:48]requested_data is exist [13:40:48]produce_requested_data [13:40:48]requested_item kkm.sn is exist - process it [13:40:48]requested_item kkm.ver is exist - process it [13:40:48]requested_item fm.sn is exist - process it [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 11 00 00 [13:40:48]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:48]Read from MH i2c: E2 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 [13:40:48]MH_I2C_Read... [13:40:48]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DB [13:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:40:48]wFMCommunicate OK [13:40:48]requested_item fd.num is exist - process it [13:40:48]SAM_PROTO_GetFieldsCounters [13:40:48]wFMCommunicate request_size=4 [13:40:48]MH_SAM_APDU [13:40:48]CAPDU: 80 13 00 00 [13:40:48]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:40:48]Write i2c OK [13:40:48]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 62 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 98 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [13:40:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 98 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:49]wFMCommunicate OK [13:40:49]SAM_PROTO_GetFieldsCounters done [13:40:49]requested_item shift.num is exist - process it [13:40:49]requested_item shift.opened is exist - process it [13:40:49]req_shift_opened [13:40:49]FM_GetShiftState [13:40:49]SAM_PROTO_GetShiftState [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 13 01 00 [13:40:49]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 0E 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 27 [13:40:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:40:49]wFMCommunicate OK [13:40:49]SAM_PROTO_GetShiftState done [13:40:49]FM_GetShiftState done [13:40:49]req_shift_opened done [13:40:49]requested_item shift.open_date is exist - process it [13:40:49]req_shift_open_date [13:40:49]req_shift_open_date done [13:40:49]produce_requested_data done [13:40:49]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112280,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:40:49]process_action_free get_value [13:40:49]json_value_free [13:40:49]json_value_free done [13:40:49]process_json_proto returns [13:40:49]Send response to host [13:40:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112280,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:40:49]free response buf [13:40:49]execute_script done [13:40:49]execute_script returns [13:40:49]free content buf [13:40:49]Sock 9.Close socket [13:40:49]Sock 9.Thread stoped [13:40:49]accept exits with 8 [13:40:49]New connection [13:40:49]New thread 3066682724 created [13:40:49]Thread 3066826084 joined [13:40:49]Waiting for new connection... [13:40:49] Sock 8.Parse request [13:40:49]Sock 8.Check first char [13:40:49]Sock 8.First char is OK [13:40:49]request: POST /json_proto HTTP/1.0 [13:40:49]Method: POST [13:40:49]URL: /json_proto [13:40:49]Method is POST - this is cgi request [13:40:49]url: /json_proto [13:40:49]query_string will be loaded in cgi processing [13:40:49]execute_cgi json_proto POST (null) [13:40:49]execute_cgi path=json_proto method=POST [13:40:49]POST find Content-Length [13:40:49]Host: 172.17.96.197:8080 [13:40:49]Content-Length: 331 [13:40:49]Content-Type: application/json [13:40:49] [13:40:49]POST finish read [13:40:49]Found Content-Length = 331 [13:40:49]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" ] } } [13:40:49]execute_script... [13:40:49]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" ] } } [13:40:49]POST & json_proto [13:40:49]process_json_proto [13:40:49]json parsed OK: [13:40:49]protocol is kg_v1.0 [13:40:49]action value=get_value [13:40:49]process_action get_value [13:40:49]cmd_get_value [13:40:49]process_action get_value done [13:40:49]requested_data is exist [13:40:49]produce_requested_data [13:40:49]requested_item fm.sale.total is exist - process it [13:40:49]SAM_PROTO_GetFMData [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 13 03 00 [13:40:49]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:40:49]Read from MH i2c: E2 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 FD 00 [13:40:49]MH_I2C_Read... [13:40:49]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 CE B3 01 00 69 04 A3 00 6F 04 04 00 56 AE 01 00 B1 04 05 00 52 BD 5A C8 01 70 04 05 00 BA D8 77 87 01 72 04 04 00 98 E4 E2 40 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 AA E6 79 30 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 8A 05 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 C0 [13:40:49]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CE B3 01 00 69 04 A3 00 6F 04 04 00 56 AE 01 00 B1 04 05 00 52 BD 5A C8 01 70 04 05 00 BA D8 77 87 01 72 04 04 00 98 E4 E2 40 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 AA E6 79 30 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 8A 05 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [13:40:49]wFMCommunicate OK [13:40:49]wFMCommunicate request_size=4 [13:40:49]MH_SAM_APDU [13:40:49]CAPDU: 80 17 00 00 [13:40:49]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:40:49]Write i2c OK [13:40:49]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 14 00 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [13:40:50]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 17 00 00 [13:40:50]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [13:40:50]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 17 00 00 [13:40:50]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [13:40:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:40:50]wFMCommunicate OK [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 17 00 00 [13:40:50]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [13:40:50]Read from MH i2c: E2 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 E5 00 [13:40:50]MH_I2C_Read... [13:40:50]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:40:50]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:40:50]wFMCommunicate OK [13:40:50]SAM_PROTO_GetFMData done [13:40:50]requested_item fm.sale_refund.total is exist - process it [13:40:50]requested_item fm.buy.total is exist - process it [13:40:50]requested_item shift.sale.total is exist - process it [13:40:50]SAM_PROTO_GetShiftData [13:40:50]wFMCommunicate request_size=4 [13:40:50]MH_SAM_APDU [13:40:50]CAPDU: 80 13 02 00 [13:40:50]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:40:50]Write i2c OK [13:40:50]MH_I2C_Read... [13:40:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:40:51]Read from MH i2c: E2 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 18 00 00 B9 04 AA 04 B5 04 6E 04 04 00 B3 00 00 00 69 04 9C 00 6F 04 04 00 B1 00 00 00 B1 04 03 00 9E E3 BA 70 04 03 00 50 BD 97 72 04 03 00 4E 26 23 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 6B DA 13 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 7D A7 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 3B [13:40:51]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B3 00 00 00 69 04 9C 00 6F 04 04 00 B1 00 00 00 B1 04 03 00 9E E3 BA 70 04 03 00 50 BD 97 72 04 03 00 4E 26 23 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 6B DA 13 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 7D A7 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:40:51]wFMCommunicate OK [13:40:51]wFMCommunicate request_size=4 [13:40:51]MH_SAM_APDU [13:40:51]CAPDU: 80 17 00 00 [13:40:51]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:51]Read from MH i2c: E2 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 19 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 43 [13:40:51]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:40:51]wFMCommunicate OK [13:40:51]wFMCommunicate request_size=4 [13:40:51]MH_SAM_APDU [13:40:51]CAPDU: 80 17 00 00 [13:40:51]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:40:51]Write i2c OK [13:40:51]MH_I2C_Read... [13:40:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:51]Read from MH i2c: E2 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 [13:40:51]MH_I2C_Read... [13:40:51]Read from MH i2c: E2 FD 00 1A 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C2 [13:40:52]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:40:52]wFMCommunicate OK [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 17 00 00 [13:40:52]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 FD 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 FD 00 1B 00 00 EF 03 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 90 00 13 [13:40:52]RAPDU: EF 03 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 90 00 [13:40:52]wFMCommunicate OK [13:40:52]wFMCommunicate request_size=4 [13:40:52]MH_SAM_APDU [13:40:52]CAPDU: 80 17 00 00 [13:40:52]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:40:52]Write i2c OK [13:40:52]MH_I2C_Read... [13:40:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:40:52]Read from MH i2c: E2 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 D6 00 [13:40:52]MH_I2C_Read... [13:40:52]Read from MH i2c: E2 D6 00 1C 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 7E [13:40:52]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [13:40:52]03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:40:52]wFMCommunicate OK [13:40:52]SAM_PROTO_GetShiftData done [13:40:52]requested_item shift.sale.total_cash is exist - process it [13:40:52]requested_item shift.sale_refund.total is exist - process it [13:40:52]requested_item shift.sale_refund.total_cash is exist - process it [13:40:52]requested_item shift.buy.total is exist - process it [13:40:52]requested_item shift.buy.total_cash is exist - process it [13:40:52]produce_requested_data done [13:40:52]produce_requested_data return {"fm.sale.total":76563572.02,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":122479.66,"shift.sale.total_cash":99444.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:40:52]process_action_free get_value [13:40:52]json_value_free [13:40:52]json_value_free done [13:40:52]process_json_proto returns [13:40:52]Send response to host [13:40:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76563572.02,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":122479.66,"shift.sale.total_cash":99444.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:40:52]free response buf [13:40:52]execute_script done [13:40:52]execute_script returns [13:40:52]free content buf [13:40:52]Sock 8.Close socket [13:40:52]Sock 8.Thread stoped [13:40:52]accept exits with 9 [13:40:52]New connection [13:40:52]New thread 3066826084 created [13:40:52]Thread 3066682724 joined [13:40:52]Waiting for new connection... [13:40:52] Sock 9.Parse request [13:40:52]Sock 9.Check first char [13:40:52]Sock 9.First char is OK [13:40:52]request: POST /json_proto HTTP/1.0 [13:40:52]Method: POST [13:40:52]URL: /json_proto [13:40:52]Method is POST - this is cgi request [13:40:52]url: /json_proto [13:40:52]query_string will be loaded in cgi processing [13:40:52]execute_cgi json_proto POST (null) [13:40:52]execute_cgi path=json_proto method=POST [13:40:52]POST find Content-Length [13:40:52]Host: 172.17.96.197:8080 [13:40:52]Content-Length: 144 [13:40:52]Content-Type: application/json [13:40:52] [13:40:52]POST finish read [13:40:52]Found Content-Length = 144 [13:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:40:52]execute_script... [13:40:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [13:40:52]POST & json_proto [13:40:52]process_json_proto [13:40:52]json parsed OK: [13:40:52]protocol is kg_v1.0 [13:40:52]action value=print_doc [13:40:52]process_action print_doc [13:40:52]process_action_free print_doc [13:40:52]json_value_free [13:40:52]json_value_free done [13:40:52]process_json_proto returns [13:40:52]Send response to host [13:40:52]{"protocol":"kg_v1.0","response":{"error":1000,"error_desc":"Open file error(LoadLastDocumentFromArchive)"}} [13:40:52]free response buf [13:40:52]execute_script done [13:40:52]execute_script returns [13:40:52]free content buf [13:40:52]Sock 9.Close socket [13:40:52]Sock 9.Thread stoped [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:22]OFD Sender: No OFD packet to send [13:41:27]OFD Sender: No OFD packet to send [13:41:32]OFD Sender: No OFD packet to send [13:41:37]OFD Sender: No OFD packet to send [13:41:42]OFD Sender: No OFD packet to send [13:41:47]OFD Sender: No OFD packet to send [13:41:52]OFD Sender: No OFD packet to send [13:41:57]OFD Sender: No OFD packet to send [13:42:02]OFD Sender: No OFD packet to send [13:42:07]OFD Sender: No OFD packet to send [13:42:12]OFD Sender: No OFD packet to send [13:42:17]OFD Sender: No OFD packet to send [13:42:22]OFD Sender: No OFD packet to send [13:42:27]OFD Sender: No OFD packet to send [13:42:32]OFD Sender: No OFD packet to send [13:42:37]OFD Sender: No OFD packet to send [13:42:42]OFD Sender: No OFD packet to send [13:42:47]OFD Sender: No OFD packet to send [13:42:52]OFD Sender: No OFD packet to send [13:42:57]OFD Sender: No OFD packet to send [13:43:02]OFD Sender: No OFD packet to send [13:43:07]OFD Sender: No OFD packet to send [13:43:12]OFD Sender: No OFD packet to send [13:43:17]OFD Sender: No OFD packet to send [13:43:22]OFD Sender: No OFD packet to send [13:43:27]OFD Sender: No OFD packet to send [13:43:32]OFD Sender: No OFD packet to send [13:43:36]accept exits with 8 [13:43:36]New connection [13:43:36]New thread 3066682724 created [13:43:36]Thread 3066826084 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 8.Parse request [13:43:36]Sock 8.Check first char [13:43:36]Sock 8.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.96.197:8080 [13:43:36]Content-Length: 215 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 215 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]execute_script... [13:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:36]POST & json_proto [13:43:36]process_json_proto [13:43:36]json parsed OK: [13:43:36]protocol is kg_v1.0 [13:43:36]action value=get_value [13:43:36]process_action get_value [13:43:36]cmd_get_value [13:43:36]process_action get_value done [13:43:36]requested_data is exist [13:43:36]produce_requested_data [13:43:36]requested_item kkm.sn is exist - process it [13:43:36]requested_item kkm.ver is exist - process it [13:43:36]requested_item fm.sn is exist - process it [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 11 00 00 [13:43:36]Write to MH i2c: E2 08 00 1D 00 80 11 00 00 00 00 00 00 97 [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 17 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 17 00 1D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [13:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:43:36]wFMCommunicate OK [13:43:36]requested_item fd.num is exist - process it [13:43:36]SAM_PROTO_GetFieldsCounters [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 00 00 [13:43:36]Write to MH i2c: E2 08 00 1E 00 80 13 00 00 00 00 00 00 9A [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 62 00 1E 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 98 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [13:43:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 98 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetFieldsCounters done [13:43:36]requested_item shift.num is exist - process it [13:43:36]requested_item shift.opened is exist - process it [13:43:36]req_shift_opened [13:43:36]FM_GetShiftState [13:43:36]SAM_PROTO_GetShiftState [13:43:36]wFMCommunicate request_size=4 [13:43:36]MH_SAM_APDU [13:43:36]CAPDU: 80 13 01 00 [13:43:36]Write to MH i2c: E2 08 00 1F 00 80 13 01 00 00 00 00 00 9C [13:43:36]Write i2c OK [13:43:36]MH_I2C_Read... [13:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:36]Read from MH i2c: E2 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 [13:43:36]MH_I2C_Read... [13:43:36]Read from MH i2c: E2 0E 00 1F 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 34 [13:43:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:43:36]wFMCommunicate OK [13:43:36]SAM_PROTO_GetShiftState done [13:43:36]FM_GetShiftState done [13:43:36]req_shift_opened done [13:43:36]requested_item shift.open_date is exist - process it [13:43:36]req_shift_open_date [13:43:36]req_shift_open_date done [13:43:36]produce_requested_data done [13:43:36]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112280,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:43:36]process_action_free get_value [13:43:36]json_value_free [13:43:36]json_value_free done [13:43:36]process_json_proto returns [13:43:36]Send response to host [13:43:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112280,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:43:36]free response buf [13:43:36]execute_script done [13:43:36]execute_script returns [13:43:36]free content buf [13:43:36]Sock 8.Close socket [13:43:36]Sock 8.Thread stoped [13:43:36]accept exits with 9 [13:43:36]New connection [13:43:36]New thread 3066826084 created [13:43:36]Thread 3066682724 joined [13:43:36]Waiting for new connection... [13:43:36] Sock 9.Parse request [13:43:36]Sock 9.Check first char [13:43:36]Sock 9.First char is OK [13:43:36]request: POST /json_proto HTTP/1.0 [13:43:36]Method: POST [13:43:36]URL: /json_proto [13:43:36]Method is POST - this is cgi request [13:43:36]url: /json_proto [13:43:36]query_string will be loaded in cgi processing [13:43:36]execute_cgi json_proto POST (null) [13:43:36]execute_cgi path=json_proto method=POST [13:43:36]POST find Content-Length [13:43:36]Host: 172.17.96.197:8080 [13:43:36]Content-Length: 331 [13:43:36]Content-Type: application/json [13:43:36] [13:43:36]POST finish read [13:43:36]Found Content-Length = 331 [13:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:43:36]execute_script... [13:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:43:37]POST & json_proto [13:43:37]process_json_proto [13:43:37]json parsed OK: [13:43:37]protocol is kg_v1.0 [13:43:37]action value=get_value [13:43:37]process_action get_value [13:43:37]cmd_get_value [13:43:37]process_action get_value done [13:43:37]requested_data is exist [13:43:37]produce_requested_data [13:43:37]requested_item fm.sale.total is exist - process it [13:43:37]SAM_PROTO_GetFMData [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 13 03 00 [13:43:37]Write to MH i2c: E2 08 00 20 00 80 13 03 00 00 00 00 00 9F [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 FD 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 FD 00 20 00 00 C8 04 85 04 C4 04 6E 04 04 00 CE B3 01 00 69 04 A3 00 6F 04 04 00 56 AE 01 00 B1 04 05 00 52 BD 5A C8 01 70 04 05 00 BA D8 77 87 01 72 04 04 00 98 E4 E2 40 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 AA E6 79 30 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 8A 05 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 CD [13:43:37]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 CE B3 01 00 69 04 A3 00 6F 04 04 00 56 AE 01 00 B1 04 05 00 52 BD 5A C8 01 70 04 05 00 BA D8 77 87 01 72 04 04 00 98 E4 E2 40 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 AA E6 79 30 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 8A 05 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 17 00 00 [13:43:37]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:37]Read from MH i2c: E2 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 FD 00 [13:43:37]MH_I2C_Read... [13:43:37]Read from MH i2c: E2 FD 00 21 00 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 78 [13:43:37]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:43:37]wFMCommunicate OK [13:43:37]wFMCommunicate request_size=4 [13:43:37]MH_SAM_APDU [13:43:37]CAPDU: 80 17 00 00 [13:43:37]Write to MH i2c: E2 08 00 22 00 80 17 00 00 00 00 00 00 A2 [13:43:37]Write i2c OK [13:43:37]MH_I2C_Read... [13:43:37]OFD Sender: No OFD packet to send [13:43:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 FD 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 FD 00 22 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [13:43:38]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:43:38]wFMCommunicate OK [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 17 00 00 [13:43:38]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 FD 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 FD 00 23 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1B [13:43:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:43:38]wFMCommunicate OK [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 17 00 00 [13:43:38]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [13:43:38]Read from MH i2c: E2 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 E5 00 [13:43:38]MH_I2C_Read... [13:43:38]Read from MH i2c: E2 E5 00 24 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 88 [13:43:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:43:38]wFMCommunicate OK [13:43:38]SAM_PROTO_GetFMData done [13:43:38]requested_item fm.sale_refund.total is exist - process it [13:43:38]requested_item fm.buy.total is exist - process it [13:43:38]requested_item shift.sale.total is exist - process it [13:43:38]SAM_PROTO_GetShiftData [13:43:38]wFMCommunicate request_size=4 [13:43:38]MH_SAM_APDU [13:43:38]CAPDU: 80 13 02 00 [13:43:38]Write to MH i2c: E2 08 00 25 00 80 13 02 00 00 00 00 00 A3 [13:43:38]Write i2c OK [13:43:38]MH_I2C_Read... [13:43:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:43:39]Read from MH i2c: E2 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 25 00 00 B9 04 AA 04 B5 04 6E 04 04 00 B3 00 00 00 69 04 9C 00 6F 04 04 00 B1 00 00 00 B1 04 03 00 9E E3 BA 70 04 03 00 50 BD 97 72 04 03 00 4E 26 23 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 6B DA 13 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 7D A7 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 48 [13:43:39]RAPDU: B9 04 AA 04 B5 04 6E 04 04 00 B3 00 00 00 69 04 9C 00 6F 04 04 00 B1 00 00 00 B1 04 03 00 9E E3 BA 70 04 03 00 50 BD 97 72 04 03 00 4E 26 23 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 6B DA 13 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 7D A7 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [13:43:39]wFMCommunicate OK [13:43:39]wFMCommunicate request_size=4 [13:43:39]MH_SAM_APDU [13:43:39]CAPDU: 80 17 00 00 [13:43:39]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:39]Read from MH i2c: E2 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 26 00 00 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 50 [13:43:39]RAPDU: 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:43:39]wFMCommunicate OK [13:43:39]wFMCommunicate request_size=4 [13:43:39]MH_SAM_APDU [13:43:39]CAPDU: 80 17 00 00 [13:43:39]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:39]Read from MH i2c: E2 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 27 00 00 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CF [13:43:39]RAPDU: 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:43:39]wFMCommunicate OK [13:43:39]wFMCommunicate request_size=4 [13:43:39]MH_SAM_APDU [13:43:39]CAPDU: 80 17 00 00 [13:43:39]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:43:39]Read from MH i2c: E2 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 [13:43:39]MH_I2C_Read... [13:43:39]Read from MH i2c: E2 FD 00 28 00 00 EF 03 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 90 00 20 [13:43:39]RAPDU: EF 03 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 90 00 [13:43:39]wFMCommunicate OK [13:43:39]wFMCommunicate request_size=4 [13:43:39]MH_SAM_APDU [13:43:39]CAPDU: 80 17 00 00 [13:43:39]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [13:43:39]Write i2c OK [13:43:39]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 211! [13:43:40]Read from MH i2c: E2 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 D6 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: E2 D6 00 29 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8B [13:43:40]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [13:43:40]wFMCommunicate OK [13:43:40]SAM_PROTO_GetShiftData done [13:43:40]requested_item shift.sale.total_cash is exist - process it [13:43:40]requested_item shift.sale_refund.total is exist - process it [13:43:40]requested_item shift.sale_refund.total_cash is exist - process it [13:43:40]requested_item shift.buy.total is exist - process it [13:43:40]requested_item shift.buy.total_cash is exist - process it [13:43:40]produce_requested_data done [13:43:40]produce_requested_data return {"fm.sale.total":76563572.02,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":122479.66,"shift.sale.total_cash":99444.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:43:40]process_action_free get_value [13:43:40]json_value_free [13:43:40]json_value_free done [13:43:40]process_json_proto returns [13:43:40]Send response to host [13:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76563572.02,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":122479.66,"shift.sale.total_cash":99444.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:43:40]free response buf [13:43:40]execute_script done [13:43:40]execute_script returns [13:43:40]free content buf [13:43:40]Sock 9.Close socket [13:43:40]Sock 9.Thread stoped [13:43:40]accept exits with 8 [13:43:40]New connection [13:43:40]New thread 3066682724 created [13:43:40]Thread 3066826084 joined [13:43:40]Waiting for new connection... [13:43:40] Sock 8.Parse request [13:43:40]Sock 8.Check first char [13:43:40]Sock 8.First char is OK [13:43:40]request: POST /json_proto HTTP/1.0 [13:43:40]Method: POST [13:43:40]URL: /json_proto [13:43:40]Method is POST - this is cgi request [13:43:40]url: /json_proto [13:43:40]query_string will be loaded in cgi processing [13:43:40]execute_cgi json_proto POST (null) [13:43:40]execute_cgi path=json_proto method=POST [13:43:40]POST find Content-Length [13:43:40]Host: 172.17.96.197:8080 [13:43:40]Content-Length: 620 [13:43:40]Content-Type: application/json [13:43:40] [13:43:40]POST finish read [13:43:40]Found Content-Length = 620 [13:43:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10421", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]execute_script... [13:43:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10421", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:40]POST & json_proto [13:43:40]process_json_proto [13:43:40]json parsed OK: [13:43:40]protocol is kg_v1.0 [13:43:40]action value=close_receipt [13:43:40]process_action close_receipt [13:43:40]cmd_close_receipt [13:43:40]MH_GetDate [13:43:40]Write to MH i2c: F0 00 00 2A 00 19 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 [13:43:40]MH_I2C_Read... [13:43:40]Read from MH i2c: F0 09 00 2A 00 00 8D DD 1B 66 E0 85 7F 64 55 [13:43:40]GetLastDocTimeStamp 1713101990 [13:43:40]current date 1713102221 [13:43:40]FM_GetShiftState [13:43:40]SAM_PROTO_GetShiftState [13:43:40]wFMCommunicate request_size=4 [13:43:40]MH_SAM_APDU [13:43:40]CAPDU: 80 13 01 00 [13:43:40]Write to MH i2c: E2 08 00 2B 00 80 13 01 00 00 00 00 00 A8 [13:43:40]Write i2c OK [13:43:40]MH_I2C_Read... [13:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:41]Read from MH i2c: E2 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 [13:43:41]MH_I2C_Read... [13:43:41]Read from MH i2c: E2 0E 00 2B 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 40 [13:43:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:43:41]wFMCommunicate OK [13:43:41]SAM_PROTO_GetShiftState done [13:43:41]FM_GetShiftState done [13:43:41]opened in 1713054696 [13:43:41]opened+sec_in_day 1713141096 [13:43:41]quantity*price = 13500 [13:43:41]sum+1 = 13501 [13:43:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 180 14.04.2024 13:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112281 ФПД: 181915361341950 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134341&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112281&fm=181915361341950&tin=02508201610067®Number=0000000000094237&sum=13500 0 [13:43:42]StoreToDocumentArchive [13:43:42]shift 357 fd 112281 [13:43:42]save to /storage/0357/doc_00112281 [13:43:42]save last doc name /storage/0357/doc_00112281 to /storage/kkm_last_doc_name [13:43:42]save OK [13:43:42]Clear old archive folders... [13:43:42]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:43:42]tlvbuf is 00189B40 [13:43:42]SAM_PROTO_ClearQueue [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 09 00 00 [13:43:42]Write to MH i2c: E2 08 00 38 00 80 09 00 00 00 00 00 00 AA [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 38 00 00 90 00 AC [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_ClearQueue done [13:43:42]KKMCreateOFDPacket [13:43:42]OFDProtocolAddRootSTLVToBuf [13:43:42]FM_MakeSignedData [13:43:42]FM_MakeSignedData [13:43:42]SAM_PROTO_SignData [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 01 02 [13:43:42]Write to MH i2c: E2 08 00 39 00 80 0D 01 02 00 00 00 00 B2 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 39 00 00 90 00 AD [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=255 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8D DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 [13:43:42]Write to MH i2c: E2 02 01 3A 00 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8D DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 86 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 3A 00 00 90 00 AE [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=32 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 31 39 10 04 04 00 99 B6 01 00 35 04 06 00 A5 73 78 7D F1 FE [13:43:42]Write to MH i2c: E2 23 00 3B 00 80 0D 02 02 1B 00 30 30 30 38 37 35 30 31 39 10 04 04 00 99 B6 01 00 35 04 06 00 A5 73 78 7D F1 FE 00 00 5C [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 03 00 3B 00 00 90 00 AF [13:43:42]RAPDU: 90 00 [13:43:42]wFMCommunicate OK [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 0D 03 02 [13:43:42]Write to MH i2c: E2 08 00 3C 00 80 0D 03 02 00 00 00 00 B7 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0B 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 0B 00 3C 00 00 88 06 E3 FF B1 A7 C5 5E 90 00 A3 [13:43:42]RAPDU: 88 06 E3 FF B1 A7 C5 5E 90 00 [13:43:42]wFMCommunicate OK [13:43:42]SAM_PROTO_SignData done [13:43:42]FM_MakeSignedData done [13:43:42]CreateOFDProtocolMessage [13:43:42]wFMCommunicate request_size=4 [13:43:42]MH_SAM_APDU [13:43:42]CAPDU: 80 11 00 00 [13:43:42]Write to MH i2c: E2 08 00 3D 00 80 11 00 00 00 00 00 00 B7 [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:42]Read from MH i2c: E2 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 17 00 [13:43:42]MH_I2C_Read... [13:43:42]Read from MH i2c: E2 17 00 3D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 08 [13:43:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:43:42]wFMCommunicate OK [13:43:42]CreateOFDProtocolMessage done [13:43:42]OFDSenderStorePacket 112281 [13:43:42]StoreOFDPacket docnum=112281 [13:43:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 26 0D 1D 01 24 DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8D DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 99 B6 01 00 35 04 06 00 A5 73 78 7D F1 FE 88 06 E3 FF B1 A7 C5 5E [13:43:42]CheckFolder [13:43:42]dirname=/storage/ofd_packets [13:43:42]CheckFolder done [13:43:42]ProducePacketName [13:43:42]name=ofd_packets/00112281 [13:43:42]NVStorageSaveData ofd_packets/00112281 [13:43:42]File name is /storage/ofd_packets/00112281 [13:43:42]Write 323 bytes [13:43:42]NVStorageSaveData done [13:43:42]OFDSenderStorePacket done [13:43:42]KKMCreateOFDPacket done [13:43:42]NVStorageSaveData kkm_last_timestamp [13:43:42]File name is /storage/kkm_last_timestamp [13:43:42]Write 4 bytes [13:43:42]NVStorageSaveData done [13:43:42]ExternCall_PrintAddStr [13:43:42]wPrintStart [13:43:42]Write to MH i2c: 01 00 00 3E 00 3E [13:43:42]Write i2c OK [13:43:42]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 3E 00 00 00 00 00 00 FF 0F 53 [13:43:43]RasterBufferAndPrint [13:43:43]line Счет N : (3)10421 [13:43:43]line ИНН: 02508201610067 [13:43:43]line Контрольно-Кассовый Чек [13:43:43]line ПРОДАЖА [13:43:43]line Товар: 48747059 [13:43:43]line Сигареты Winston Legend Blue [13:43:43]line 1.000 * 135.00 [13:43:43]line = 135.00 [13:43:43]line НДС 12% НСП 1% [13:43:43]line > о реализуемом товаре [13:43:43]line ИТОГО: 135.00 [13:43:43]line НСП 1% : 1.19 [13:43:43]line НДС 12% : 14.34 [13:43:43]line Наличными: 135.00 [13:43:43]line Безнал.: 0.00 [13:43:43]line Место: АЗС № 47 "Партнер Нефть" [13:43:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:43:43]line СНО: Общий режим [13:43:43]line Чек 180 14.04.2024 13:43 [13:43:43]line Смена: 357 ФФД: 1.0 [13:43:43]line ЗНМ: 0300000138 [13:43:43]line РНМ: 0000000000094237 [13:43:43]line Версия ККМ: 001 [13:43:43]line ФМ: 0000000000875019 [13:43:43]line ФД: 112281 [13:43:43]line ФПД: 181915361341950 [13:43:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134341&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112281&fm=181915361341950&tin=02508201610067®Number=0000000000094237&sum=13500 [13:43:43]line 0 [13:43:43]written 0, free lines is 4095 [13:43:43]OFD Sender: Processing packet 112281 [packets to send 71, broken 70] [13:43:43]ProducePacketName [13:43:43]name=ofd_packets/00112281 [13:43:43]OFD Sender: To server: pG, [13:43:43]CommunicateWithHost lk.salyk.kg:30040 [13:43:43]ConnectInit lk.salyk.kg [13:43:43]Connected sock=10 [13:43:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 26 0D 1D 01 24 DA 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 8D DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 99 B6 01 00 35 04 06 00 A5 73 78 7D F1 FE 88 06 E3 FF B1 A7 C5 5E [13:43:43]Write to MH i2c: 01 00 00 67 00 67 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: 01 07 00 67 00 00 00 00 00 00 DD 0C 57 [13:43:43]RasterBufferAndPrint [13:43:43]line [13:43:43]line [13:43:43]line [13:43:43]line [13:43:43]line [13:43:43]written 0, free lines is 3314 [13:43:43]MH_Cut [13:43:43]Write to MH i2c: D1 01 00 6E 00 01 40 [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: D1 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: D1 01 00 [13:43:43]MH_I2C_Read... [13:43:43]Read from MH i2c: D1 01 00 6E 00 00 3F [13:43:43]Write to MH i2c: 01 00 00 6F 00 6F [13:43:43]Write i2c OK [13:43:43]MH_I2C_Read... [13:43:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0D 69 47 00 77 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 99 B6 01 00 F4 03 04 00 18 85 1B 66 B6 04 01 00 00 38 35 1E A0 EE 65 1F E6 [13:43:43]CommunicateWithHost err = 0 [13:43:43]CheckOFDResponse [13:43:43]1017 (14) - 77093643461234 [13:43:43]1041 (16) - 0000000000875019 [13:43:43]1040 (4) - 112281 [13:43:43]1012 (4) - 14.04.2024 07:26 [13:43:43]1206 (1) - 0 [13:43:43]OFD Sender: Remove packet 112281 [13:43:43]ProducePacketName [13:43:43]name=ofd_packets/00112281 [13:43:43]NVStorageDeleteData [13:43:44]OFD Sender: No OFD packet to send [13:43:44]*** Cut start [13:43:44]*** Partial cut [13:43:44]*** CUTSNS_PIN = 1 [13:43:44]*** CUTSNS_PIN = 0 [13:43:44]*** Brake cut motor [13:43:44]Read from MH i2c: 01 [13:43:44]MH_I2C_Read... [13:43:44]*** Stop cut motor [13:43:44]*** Cut end [13:43:44]Read from MH i2c: 01 07 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 FF 0F 84 [13:43:44]process_action close_receipt done [13:43:44]requested_data is exist [13:43:44]produce_requested_data [13:43:44]requested_item fm.sn is exist - process it [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 11 00 00 [13:43:44]Write to MH i2c: E2 08 00 70 00 80 11 00 00 00 00 00 00 EA [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:43:44]Read from MH i2c: E2 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 [13:43:44]MH_I2C_Read... [13:43:44]Read from MH i2c: E2 17 00 70 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3B [13:43:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:43:44]wFMCommunicate OK [13:43:44]requested_item fd.num is exist - process it [13:43:44]SAM_PROTO_GetFieldsCounters [13:43:44]wFMCommunicate request_size=4 [13:43:44]MH_SAM_APDU [13:43:44]CAPDU: 80 13 00 00 [13:43:44]Write to MH i2c: E2 08 00 71 00 80 13 00 00 00 00 00 00 ED [13:43:44]Write i2c OK [13:43:44]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 62 00 71 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 99 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [13:43:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 99 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetFieldsCounters done [13:43:45]requested_item shift.num is exist - process it [13:43:45]requested_item shift.opened is exist - process it [13:43:45]req_shift_opened [13:43:45]FM_GetShiftState [13:43:45]SAM_PROTO_GetShiftState [13:43:45]wFMCommunicate request_size=4 [13:43:45]MH_SAM_APDU [13:43:45]CAPDU: 80 13 01 00 [13:43:45]Write to MH i2c: E2 08 00 72 00 80 13 01 00 00 00 00 00 EF [13:43:45]Write i2c OK [13:43:45]MH_I2C_Read... [13:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:45]Read from MH i2c: E2 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 [13:43:45]MH_I2C_Read... [13:43:45]Read from MH i2c: E2 0E 00 72 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [13:43:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:43:45]wFMCommunicate OK [13:43:45]SAM_PROTO_GetShiftState done [13:43:45]FM_GetShiftState done [13:43:45]req_shift_opened done [13:43:45]requested_item shift.open_date is exist - process it [13:43:45]req_shift_open_date [13:43:45]req_shift_open_date done [13:43:45]produce_requested_data done [13:43:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112281,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:43:45]process_action_free close_receipt [13:43:45]json_value_free [13:43:45]json_value_free done [13:43:45]process_json_proto returns [13:43:45]Send response to host [13:43:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112281,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:43:45]free response buf [13:43:45]execute_script done [13:43:45]execute_script returns [13:43:45]free content buf [13:43:45]Sock 8.Close socket [13:43:45]Sock 8.Thread stoped [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:48]accept exits with 9 [13:44:48]New connection [13:44:48]New thread 3066826084 created [13:44:48]Thread 3066682724 joined [13:44:48]Waiting for new connection... [13:44:48] Sock 9.Parse request [13:44:48]Sock 9.Check first char [13:44:48]Sock 9.First char is OK [13:44:48]request: POST /json_proto HTTP/1.0 [13:44:48]Method: POST [13:44:48]URL: /json_proto [13:44:48]Method is POST - this is cgi request [13:44:48]url: /json_proto [13:44:48]query_string will be loaded in cgi processing [13:44:48]execute_cgi json_proto POST (null) [13:44:48]execute_cgi path=json_proto method=POST [13:44:48]POST find Content-Length [13:44:48]Host: 172.17.96.197:8080 [13:44:48]Content-Length: 797 [13:44:48]Content-Type: application/json [13:44:48] [13:44:48]POST finish read [13:44:48]Found Content-Length = 797 [13:44:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48595", "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.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:48]execute_script... [13:44: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)48595", "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.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:48]POST & json_proto [13:44:48]process_json_proto [13:44:48]json parsed OK: [13:44:48]protocol is kg_v1.0 [13:44:48]action value=close_receipt [13:44:48]process_action close_receipt [13:44:48]cmd_close_receipt [13:44:48]MH_GetDate [13:44:48]Write to MH i2c: F0 00 00 73 00 62 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: F0 09 00 73 00 00 D0 DD 1B 66 E0 85 7F 64 E1 [13:44:48]GetLastDocTimeStamp 1713102221 [13:44:48]current date 1713102288 [13:44:48]FM_GetShiftState [13:44:48]SAM_PROTO_GetShiftState [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 13 01 00 [13:44:48]Write to MH i2c: E2 08 00 74 00 80 13 01 00 00 00 00 00 F1 [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 74 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 89 [13:44:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:44:48]wFMCommunicate OK [13:44:48]SAM_PROTO_GetShiftState done [13:44:48]FM_GetShiftState done [13:44:48]opened in 1713054696 [13:44:48]opened+sec_in_day 1713141096 [13:44:48]quantity*price = 50019 [13:44:48]sum+1 = 50021 [13:44:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 181 14.04.2024 13:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112282 ФПД: 104203773925576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134448&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112282&fm=104203773925576&tin=02508201610067®Number=0000000000094237&sum=50020 [13:44:49]StoreToDocumentArchive [13:44:49]shift 357 fd 112282 [13:44:49]save to /storage/0357/doc_00112282 [13:44:49]save last doc name /storage/0357/doc_00112282 to /storage/kkm_last_doc_name [13:44:49]save OK [13:44:49]Clear old archive folders... [13:44:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:44:49]tlvbuf is 00139520 [13:44:49]SAM_PROTO_ClearQueue [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 09 00 00 [13:44:49]Write to MH i2c: E2 08 00 81 00 80 09 00 00 00 00 00 00 F3 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 81 00 00 90 00 F5 [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]SAM_PROTO_ClearQueue done [13:44:49]KKMCreateOFDPacket [13:44:49]OFDProtocolAddRootSTLVToBuf [13:44:49]FM_MakeSignedData [13:44:49]FM_MakeSignedData [13:44:49]SAM_PROTO_SignData [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 01 02 [13:44:49]Write to MH i2c: E2 08 00 82 00 80 0D 01 02 00 00 00 00 FB [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 82 00 00 90 00 F6 [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]wFMCommunicate request_size=255 [13:44:49]MH_SAM_APDU [13:44: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D0 DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9A B6 01 00 35 04 06 00 [13:44:49]Write to MH i2c: E2 02 01 83 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D0 DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9A B6 01 00 35 04 06 00 00 00 E3 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 83 00 00 90 00 F7 [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]wFMCommunicate request_size=11 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 02 02 06 5E C5 D4 ED D8 C8 [13:44:49]Write to MH i2c: E2 0E 00 84 00 80 0D 02 02 06 00 5E C5 D4 ED D8 C8 00 00 8E [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 03 00 84 00 00 90 00 F8 [13:44:49]RAPDU: 90 00 [13:44:49]wFMCommunicate OK [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 0D 03 02 [13:44:49]Write to MH i2c: E2 08 00 85 00 80 0D 03 02 00 00 00 00 00 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:49]Read from MH i2c: E2 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 0B 00 [13:44:49]MH_I2C_Read... [13:44:49]Read from MH i2c: E2 0B 00 85 00 00 97 65 59 63 40 9C 81 BA 90 00 D0 [13:44:49]RAPDU: 97 65 59 63 40 9C 81 BA 90 00 [13:44:49]wFMCommunicate OK [13:44:49]SAM_PROTO_SignData done [13:44:49]FM_MakeSignedData done [13:44:49]CreateOFDProtocolMessage [13:44:49]wFMCommunicate request_size=4 [13:44:49]MH_SAM_APDU [13:44:49]CAPDU: 80 11 00 00 [13:44:49]Write to MH i2c: E2 08 00 86 00 80 11 00 00 00 00 00 00 00 [13:44:49]Write i2c OK [13:44:49]MH_I2C_Read... [13:44:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:50]Read from MH i2c: E2 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: E2 17 00 86 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 51 [13:44:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:44:50]wFMCommunicate OK [13:44:50]CreateOFDProtocolMessage done [13:44:50]OFDSenderStorePacket 112282 [13:44:50]StoreOFDPacket docnum=112282 [13:44:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8E 14 08 01 63 D3 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D0 DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9A B6 01 00 35 04 06 00 5E C5 D4 ED D8 C8 97 65 59 63 40 9C 81 BA [13:44:50]CheckFolder [13:44:50]dirname=/storage/ofd_packets [13:44:50]CheckFolder done [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00112282 [13:44:50]NVStorageSaveData ofd_packets/00112282 [13:44:50]File name is /storage/ofd_packets/00112282 [13:44:50]Write 302 bytes [13:44:50]NVStorageSaveData done [13:44:50]OFDSenderStorePacket done [13:44:50]KKMCreateOFDPacket done [13:44:50]NVStorageSaveData kkm_last_timestamp [13:44:50]File name is /storage/kkm_last_timestamp [13:44:50]Write 4 bytes [13:44:50]NVStorageSaveData done [13:44:50]ExternCall_PrintAddStr [13:44:50]wPrintStart [13:44:50]Write to MH i2c: 01 00 00 87 00 87 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 87 00 00 00 00 00 00 FF 0F 9C [13:44:50]RasterBufferAndPrint [13:44:50]line Счет N : (1)48595 [13:44:50]line ИНН: 02508201610067 [13:44:50]line Контрольно-Кассовый Чек [13:44:50]line ПРОДАЖА [13:44:50]line ТРК (МРК, ГНК) : 31 [13:44:50]line Товар: 2710124130 [13:44:50]line SUPER 92-К-5 [13:44:50]line 7.660 * 65.30 [13:44:50]line = 500.20 [13:44:50]line НДС 12% НСП 1% [13:44:50]line > о реализуемом товаре [13:44:50]line ИТОГО: 500.20 [13:44:50]line НСП 1% : 4.43 [13:44:50]line НДС 12% : 53.12 [13:44:50]line Наличными: 0.00 [13:44:50]line Безнал.: 500.20 [13:44:50]line Место: АЗС № 47 "Партнер Нефть" [13:44:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:44:50]line СНО: Общий режим [13:44:50]line Чек 181 14.04.2024 13:44 [13:44:50]line Смена: 357 ФФД: 1.0 [13:44:50]line ЗНМ: 0300000138 [13:44:50]line РНМ: 0000000000094237 [13:44:50]line Версия ККМ: 001 [13:44:50]line Платежная система: О! деньги [13:44:50]line ФМ: 0000000000875019 [13:44:50]line ФД: 112282 [13:44:50]line ФПД: 104203773925576 [13:44:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134448&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112282&fm=104203773925576&tin=02508201610067®Number=0000000000094237&sum=50020 [13:44:50]OFD Sender: Processing packet 112282 [packets to send 71, broken 70] [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00112282 [13:44:50]OFD Sender: To server: pG, [13:44:50]CommunicateWithHost lk.salyk.kg:30040 [13:44:50]ConnectInit lk.salyk.kg [13:44:50]written 0, free lines is 4095 [13:44:50]Connected sock=10 [13:44:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8E 14 08 01 63 D3 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 D0 DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9A B6 01 00 35 04 06 00 5E C5 D4 ED D8 C8 97 65 59 63 40 9C 81 BA [13:44:50]Write to MH i2c: 01 00 00 B1 00 B1 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: 01 07 00 B1 00 00 00 00 00 00 F2 0C B6 [13:44:50]RasterBufferAndPrint [13:44:50]line [13:44:50]line [13:44:50]line [13:44:50]line [13:44:50]line [13:44:50]written 0, free lines is 3320 [13:44:50]MH_Cut [13:44:50]Write to MH i2c: D1 01 00 B8 00 01 8A [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: D1 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: D1 01 00 [13:44:50]MH_I2C_Read... [13:44:50]Read from MH i2c: D1 01 00 B8 00 00 89 [13:44:50]Write to MH i2c: 01 00 00 B9 00 B9 [13:44:50]Write i2c OK [13:44:50]MH_I2C_Read... [13:44:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C2 18 47 00 B5 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9A B6 01 00 F4 03 04 00 5B 85 1B 66 B6 04 01 00 00 F1 0F 0C C6 25 91 04 31 [13:44:50]CommunicateWithHost err = 0 [13:44:50]CheckOFDResponse [13:44:50]1017 (14) - 77093643461234 [13:44:50]1041 (16) - 0000000000875019 [13:44:50]1040 (4) - 112282 [13:44:50]1012 (4) - 14.04.2024 07:27 [13:44:50]1206 (1) - 0 [13:44:50]OFD Sender: Remove packet 112282 [13:44:50]ProducePacketName [13:44:50]name=ofd_packets/00112282 [13:44:50]NVStorageDeleteData [13:44:51]OFD Sender: No OFD packet to send [13:44:51]*** Cut start [13:44:51]*** Partial cut [13:44:51]*** CUTSNS_PIN = 1 [13:44:51]*** CUTSNS_PIN = 0 [13:44:51]*** Brake cut motor [13:44:52]Read from MH i2c: 01 [13:44:52]MH_I2C_Read... [13:44:52]*** Stop cut motor [13:44:52]*** Cut end [13:44:52]Read from MH i2c: 01 07 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: 01 07 00 B9 00 00 00 00 00 00 FF 0F CE [13:44:52]process_action close_receipt done [13:44:52]requested_data is exist [13:44:52]produce_requested_data [13:44:52]requested_item fm.sn is exist - process it [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 11 00 00 [13:44:52]Write to MH i2c: E2 08 00 BA 00 80 11 00 00 00 00 00 00 34 [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 17 00 BA 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 85 [13:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:44:52]wFMCommunicate OK [13:44:52]requested_item fd.num is exist - process it [13:44:52]SAM_PROTO_GetFieldsCounters [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 00 00 [13:44:52]Write to MH i2c: E2 08 00 BB 00 80 13 00 00 00 00 00 00 37 [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 62 00 BB 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [13:44:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9A B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetFieldsCounters done [13:44:52]requested_item shift.num is exist - process it [13:44:52]requested_item shift.opened is exist - process it [13:44:52]req_shift_opened [13:44:52]FM_GetShiftState [13:44:52]SAM_PROTO_GetShiftState [13:44:52]wFMCommunicate request_size=4 [13:44:52]MH_SAM_APDU [13:44:52]CAPDU: 80 13 01 00 [13:44:52]Write to MH i2c: E2 08 00 BC 00 80 13 01 00 00 00 00 00 39 [13:44:52]Write i2c OK [13:44:52]MH_I2C_Read... [13:44:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:52]Read from MH i2c: E2 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 [13:44:52]MH_I2C_Read... [13:44:52]Read from MH i2c: E2 0E 00 BC 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D1 [13:44:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:44:52]wFMCommunicate OK [13:44:52]SAM_PROTO_GetShiftState done [13:44:52]FM_GetShiftState done [13:44:52]req_shift_opened done [13:44:52]requested_item shift.open_date is exist - process it [13:44:52]req_shift_open_date [13:44:52]req_shift_open_date done [13:44:52]produce_requested_data done [13:44:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112282,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:44:52]process_action_free close_receipt [13:44:52]json_value_free [13:44:52]json_value_free done [13:44:52]process_json_proto returns [13:44:52]Send response to host [13:44:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112282,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:44:52]free response buf [13:44:52]execute_script done [13:44:52]execute_script returns [13:44:52]free content buf [13:44:52]Sock 9.Close socket [13:44:52]Sock 9.Thread stoped [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:18]accept exits with 8 [13:45:18]New connection [13:45:18]New thread 3066682724 created [13:45:18]Thread 3066826084 joined [13:45:18]Waiting for new connection... [13:45:18] Sock 8.Parse request [13:45:18]Sock 8.Check first char [13:45:18]Sock 8.First char is OK [13:45:18]request: POST /json_proto HTTP/1.0 [13:45:18]Method: POST [13:45:18]URL: /json_proto [13:45:18]Method is POST - this is cgi request [13:45:18]url: /json_proto [13:45:18]query_string will be loaded in cgi processing [13:45:18]execute_cgi json_proto POST (null) [13:45:18]execute_cgi path=json_proto method=POST [13:45:18]POST find Content-Length [13:45:18]Host: 172.17.96.197:8080 [13:45:18]Content-Length: 673 [13:45:18]Content-Type: application/json [13:45:18] [13:45:18]POST finish read [13:45:18]Found Content-Length = 673 [13:45:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48596", "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.40, "quantity" : 6.500, "sum" : 470.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:18]execute_script... [13:45: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)48596", "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.40, "quantity" : 6.500, "sum" : 470.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:45:18]POST & json_proto [13:45:18]process_json_proto [13:45:18]json parsed OK: [13:45:18]protocol is kg_v1.0 [13:45:18]action value=close_receipt [13:45:18]process_action close_receipt [13:45:18]cmd_close_receipt [13:45:18]MH_GetDate [13:45:18]Write to MH i2c: F0 00 00 BD 00 AC [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: F0 09 00 BD 00 00 EE DD 1B 66 E0 85 7F 64 49 [13:45:18]GetLastDocTimeStamp 1713102288 [13:45:18]current date 1713102318 [13:45:18]FM_GetShiftState [13:45:18]SAM_PROTO_GetShiftState [13:45:18]wFMCommunicate request_size=4 [13:45:18]MH_SAM_APDU [13:45:18]CAPDU: 80 13 01 00 [13:45:18]Write to MH i2c: E2 08 00 BE 00 80 13 01 00 00 00 00 00 3B [13:45:18]Write i2c OK [13:45:18]MH_I2C_Read... [13:45:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:18]Read from MH i2c: E2 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 [13:45:18]MH_I2C_Read... [13:45:18]Read from MH i2c: E2 0E 00 BE 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [13:45:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:45:18]wFMCommunicate OK [13:45:18]SAM_PROTO_GetShiftState done [13:45:18]FM_GetShiftState done [13:45:18]opened in 1713054696 [13:45:18]opened+sec_in_day 1713141096 [13:45:18]quantity*price = 47060 [13:45:18]sum+1 = 47061 [13:45:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.97 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 182 14.04.2024 13:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112283 ФПД: 44027856229888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134518&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112283&fm=44027856229888&tin=02508201610067®Number=0000000000094237&sum=47000 [13:45:19]StoreToDocumentArchive [13:45:19]shift 357 fd 112283 [13:45:19]save to /storage/0357/doc_00112283 [13:45:19]save last doc name /storage/0357/doc_00112283 to /storage/kkm_last_doc_name [13:45:19]save OK [13:45:19]Clear old archive folders... [13:45:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:45:19]tlvbuf is 00140A40 [13:45:19]SAM_PROTO_ClearQueue [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 09 00 00 [13:45:19]Write to MH i2c: E2 08 00 CB 00 80 09 00 00 00 00 00 00 3D [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 CB 00 00 90 00 3F [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]SAM_PROTO_ClearQueue done [13:45:19]KKMCreateOFDPacket [13:45:19]OFDProtocolAddRootSTLVToBuf [13:45:19]FM_MakeSignedData [13:45:19]FM_MakeSignedData [13:45:19]SAM_PROTO_SignData [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 01 02 [13:45:19]Write to MH i2c: E2 08 00 CC 00 80 0D 01 02 00 00 00 00 45 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 CC 00 00 90 00 40 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=255 [13:45:19]MH_SAM_APDU [13:45:19]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 19 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9B B6 01 00 35 04 06 00 28 0B 08 BB [13:45:19]Write to MH i2c: E2 02 01 CD 00 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 19 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9B B6 01 00 35 04 06 00 28 0B 08 BB 00 00 93 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 CD 00 00 90 00 41 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=7 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 02 02 02 16 00 [13:45:19]Write to MH i2c: E2 0A 00 CE 00 80 0D 02 02 02 00 16 00 00 00 62 [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 03 00 CE 00 00 90 00 42 [13:45:19]RAPDU: 90 00 [13:45:19]wFMCommunicate OK [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 0D 03 02 [13:45:19]Write to MH i2c: E2 08 00 CF 00 80 0D 03 02 00 00 00 00 4A [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:45:19]Read from MH i2c: E2 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 0B 00 [13:45:19]MH_I2C_Read... [13:45:19]Read from MH i2c: E2 0B 00 CF 00 00 1A C2 29 7C 23 C3 C8 93 90 00 0D [13:45:19]RAPDU: 1A C2 29 7C 23 C3 C8 93 90 00 [13:45:19]wFMCommunicate OK [13:45:19]SAM_PROTO_SignData done [13:45:19]FM_MakeSignedData done [13:45:19]CreateOFDProtocolMessage [13:45:19]wFMCommunicate request_size=4 [13:45:19]MH_SAM_APDU [13:45:19]CAPDU: 80 11 00 00 [13:45:19]Write to MH i2c: E2 08 00 D0 00 80 11 00 00 00 00 00 00 4A [13:45:19]Write i2c OK [13:45:19]MH_I2C_Read... [13:45:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:20]Read from MH i2c: E2 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: E2 17 00 D0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9B [13:45:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:45:20]wFMCommunicate OK [13:45:20]CreateOFDProtocolMessage done [13:45:20]OFDSenderStorePacket 112283 [13:45:20]StoreOFDPacket docnum=112283 [13:45:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 FA 2F 04 01 05 69 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 19 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9B B6 01 00 35 04 06 00 28 0B 08 BB 16 00 1A C2 29 7C 23 C3 C8 93 [13:45:20]CheckFolder [13:45:20]dirname=/storage/ofd_packets [13:45:20]CheckFolder done [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00112283 [13:45:20]NVStorageSaveData ofd_packets/00112283 [13:45:20]File name is /storage/ofd_packets/00112283 [13:45:20]Write 298 bytes [13:45:20]NVStorageSaveData done [13:45:20]OFDSenderStorePacket done [13:45:20]KKMCreateOFDPacket done [13:45:20]NVStorageSaveData kkm_last_timestamp [13:45:20]File name is /storage/kkm_last_timestamp [13:45:20]Write 4 bytes [13:45:20]NVStorageSaveData done [13:45:20]ExternCall_PrintAddStr [13:45:20]wPrintStart [13:45:20]Write to MH i2c: 01 00 00 D1 00 D1 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 D1 00 00 00 00 00 00 FF 0F E6 [13:45:20]RasterBufferAndPrint [13:45:20]line Счет N : (1)48596 [13:45:20]line ИНН: 02508201610067 [13:45:20]line Контрольно-Кассовый Чек [13:45:20]line ПРОДАЖА [13:45:20]line ТРК (МРК, ГНК) : 51 [13:45:20]line Товар: 2710194210 [13:45:20]line ДТ-К-5 [13:45:20]line 6.500 * 72.40 [13:45:20]line = 470.60 [13:45:20]line НДС 12% НСП 1% [13:45:20]line > о реализуемом товаре [13:45:20]line ОКРУГЛЕНИЕ: -0.60 [13:45:20]line ИТОГО: 470.00 [13:45:20]line Внесено: 470.00 [13:45:20]line СДАЧА: 0.00 [13:45:20]line НСП 1% : 4.16 [13:45:20]line НДС 12% : 49.97 [13:45:20]line Наличными: 470.00 [13:45:20]line Безнал.: 0.00 [13:45:20]line Место: АЗС № 47 "Партнер Нефть" [13:45:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:45:20]line СНО: Общий режим [13:45:20]line Чек 182 14.04.2024 13:45 [13:45:20]line Смена: 357 ФФД: 1.0 [13:45:20]line ЗНМ: 0300000138 [13:45:20]line РНМ: 0000000000094237 [13:45:20]line Версия ККМ: 001 [13:45:20]line ФМ: 0000000000875019 [13:45:20]line ФД: 112283 [13:45:20]line ФПД: 44027856229888 [13:45:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T134518&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112283&fm=44027856229888&tin=02508201610067®Number=0000000000094237&sum=47000 [13:45:20]OFD Sender: Processing packet 112283 [packets to send 71, broken 70] [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00112283 [13:45:20]OFD Sender: To server: pG, [13:45:20]CommunicateWithHost lk.salyk.kg:30040 [13:45:20]ConnectInit lk.salyk.kg [13:45:20]written 0, free lines is 4095 [13:45:20]Connected sock=10 [13:45:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 FA 2F 04 01 05 69 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 19 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D4 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 85 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 EE DD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9B B6 01 00 35 04 06 00 28 0B 08 BB 16 00 1A C2 29 7C 23 C3 C8 93 [13:45:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 58 BD 47 00 C6 CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9B B6 01 00 F4 03 04 00 79 85 1B 66 B6 04 01 00 00 B2 51 66 00 93 5E B6 E1 [13:45:20]CommunicateWithHost err = 0 [13:45:20]CheckOFDResponse [13:45:20]1017 (14) - 77093643461234 [13:45:20]1041 (16) - 0000000000875019 [13:45:20]1040 (4) - 112283 [13:45:20]1012 (4) - 14.04.2024 07:27 [13:45:20]1206 (1) - 0 [13:45:20]OFD Sender: Remove packet 112283 [13:45:20]ProducePacketName [13:45:20]name=ofd_packets/00112283 [13:45:20]NVStorageDeleteData [13:45:20]Write to MH i2c: 01 00 00 FC 00 FC [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: 01 07 00 FC 00 00 00 00 00 00 EC 0C FB [13:45:20]RasterBufferAndPrint [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]line [13:45:20]written 0, free lines is 3314 [13:45:20]MH_Cut [13:45:20]Write to MH i2c: D1 01 00 03 01 01 D6 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 01 00 [13:45:20]MH_I2C_Read... [13:45:20]Read from MH i2c: D1 01 00 03 01 00 D5 [13:45:20]Write to MH i2c: 01 00 00 04 01 05 [13:45:20]Write i2c OK [13:45:20]MH_I2C_Read... [13:45:21]OFD Sender: No OFD packet to send [13:45:21]*** Cut start [13:45:21]*** Partial cut [13:45:21]*** CUTSNS_PIN = 1 [13:45:21]*** CUTSNS_PIN = 0 [13:45:21]*** Brake cut motor [13:45:22]Read from MH i2c: 01 [13:45:22]MH_I2C_Read... [13:45:22]*** Stop cut motor [13:45:22]*** Cut end [13:45:22]Read from MH i2c: 01 07 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: 01 07 00 04 01 00 00 00 00 00 FF 0F 1A [13:45:22]process_action close_receipt done [13:45:22]requested_data is exist [13:45:22]produce_requested_data [13:45:22]requested_item fm.sn is exist - process it [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 11 00 00 [13:45:22]Write to MH i2c: E2 08 00 05 01 80 11 00 00 00 00 00 00 80 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 17 00 05 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D1 [13:45:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:45:22]wFMCommunicate OK [13:45:22]requested_item fd.num is exist - process it [13:45:22]SAM_PROTO_GetFieldsCounters [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 00 00 [13:45:22]Write to MH i2c: E2 08 00 06 01 80 13 00 00 00 00 00 00 83 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 62 00 06 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9B B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetFieldsCounters done [13:45:22]requested_item shift.num is exist - process it [13:45:22]requested_item shift.opened is exist - process it [13:45:22]req_shift_opened [13:45:22]FM_GetShiftState [13:45:22]SAM_PROTO_GetShiftState [13:45:22]wFMCommunicate request_size=4 [13:45:22]MH_SAM_APDU [13:45:22]CAPDU: 80 13 01 00 [13:45:22]Write to MH i2c: E2 08 00 07 01 80 13 01 00 00 00 00 00 85 [13:45:22]Write i2c OK [13:45:22]MH_I2C_Read... [13:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:45:22]Read from MH i2c: E2 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 [13:45:22]MH_I2C_Read... [13:45:22]Read from MH i2c: E2 0E 00 07 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1D [13:45:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:45:22]wFMCommunicate OK [13:45:22]SAM_PROTO_GetShiftState done [13:45:22]FM_GetShiftState done [13:45:22]req_shift_opened done [13:45:22]requested_item shift.open_date is exist - process it [13:45:22]req_shift_open_date [13:45:22]req_shift_open_date done [13:45:22]produce_requested_data done [13:45:22]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112283,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:45:22]process_action_free close_receipt [13:45:22]json_value_free [13:45:22]json_value_free done [13:45:22]process_json_proto returns [13:45:22]Send response to host [13:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112283,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:45:22]free response buf [13:45:22]execute_script done [13:45:22]execute_script returns [13:45:22]free content buf [13:45:22]Sock 8.Close socket [13:45:22]Sock 8.Thread stoped [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:36]OFD Sender: No OFD packet to send [13:46:41]OFD Sender: No OFD packet to send [13:46:46]OFD Sender: No OFD packet to send [13:46:51]OFD Sender: No OFD packet to send [13:46:56]OFD Sender: No OFD packet to send [13:47:01]OFD Sender: No OFD packet to send [13:47:06]OFD Sender: No OFD packet to send [13:47:11]OFD Sender: No OFD packet to send [13:47:16]OFD Sender: No OFD packet to send [13:47:21]OFD Sender: No OFD packet to send [13:47:26]OFD Sender: No OFD packet to send [13:47:31]OFD Sender: No OFD packet to send [13:47:36]OFD Sender: No OFD packet to send [13:47:41]OFD Sender: No OFD packet to send [13:47:46]OFD Sender: No OFD packet to send [13:47:51]OFD Sender: No OFD packet to send [13:47:56]OFD Sender: No OFD packet to send [13:48:01]OFD Sender: No OFD packet to send [13:48:06]OFD Sender: No OFD packet to send [13:48:11]OFD Sender: No OFD packet to send [13:48:16]OFD Sender: No OFD packet to send [13:48:21]OFD Sender: No OFD packet to send [13:48:26]OFD Sender: No OFD packet to send [13:48:31]OFD Sender: No OFD packet to send [13:48:36]OFD Sender: No OFD packet to send [13:48:41]OFD Sender: No OFD packet to send [13:48:46]OFD Sender: No OFD packet to send [13:48:51]OFD Sender: No OFD packet to send [13:48:56]OFD Sender: No OFD packet to send [13:49:01]OFD Sender: No OFD packet to send [13:49:06]OFD Sender: No OFD packet to send [13:49:11]OFD Sender: No OFD packet to send [13:49:16]OFD Sender: No OFD packet to send [13:49:21]OFD Sender: No OFD packet to send [13:49:26]OFD Sender: No OFD packet to send [13:49:31]OFD Sender: No OFD packet to send [13:49:36]OFD Sender: No OFD packet to send [13:49:41]OFD Sender: No OFD packet to send [13:49:46]OFD Sender: No OFD packet to send [13:49:51]OFD Sender: No OFD packet to send [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:51:59]accept exits with 9 [13:51:59]New connection [13:51:59]New thread 3066826084 created [13:51:59]Thread 3066682724 joined [13:51:59]Waiting for new connection... [13:51:59] Sock 9.Parse request [13:51:59]Sock 9.Check first char [13:51:59]Sock 9.First char is OK [13:51:59]request: POST /json_proto HTTP/1.0 [13:51:59]Method: POST [13:51:59]URL: /json_proto [13:51:59]Method is POST - this is cgi request [13:51:59]url: /json_proto [13:51:59]query_string will be loaded in cgi processing [13:51:59]execute_cgi json_proto POST (null) [13:51:59]execute_cgi path=json_proto method=POST [13:51:59]POST find Content-Length [13:51:59]Host: 172.17.96.197:8080 [13:51:59]Content-Length: 638 [13:51:59]Content-Type: application/json [13:51:59] [13:51:59]POST finish read [13:51:59]Found Content-Length = 638 [13:51:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10422", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:59]execute_script... [13:51:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10422", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:51:59]POST & json_proto [13:51:59]process_json_proto [13:51:59]json parsed OK: [13:51:59]protocol is kg_v1.0 [13:51:59]action value=close_receipt [13:51:59]process_action close_receipt [13:51:59]cmd_close_receipt [13:51:59]MH_GetDate [13:51:59]Write to MH i2c: F0 00 00 08 01 F8 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: F0 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: F0 09 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: F0 09 00 08 01 00 7F DF 1B 66 E0 85 7F 64 28 [13:51:59]GetLastDocTimeStamp 1713102318 [13:51:59]current date 1713102719 [13:51:59]FM_GetShiftState [13:51:59]SAM_PROTO_GetShiftState [13:51:59]wFMCommunicate request_size=4 [13:51:59]MH_SAM_APDU [13:51:59]CAPDU: 80 13 01 00 [13:51:59]Write to MH i2c: E2 08 00 09 01 80 13 01 00 00 00 00 00 87 [13:51:59]Write i2c OK [13:51:59]MH_I2C_Read... [13:51:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:59]Read from MH i2c: E2 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0E 00 [13:51:59]MH_I2C_Read... [13:51:59]Read from MH i2c: E2 0E 00 09 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1F [13:51:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:51:59]wFMCommunicate OK [13:51:59]SAM_PROTO_GetShiftState done [13:51:59]FM_GetShiftState done [13:51:59]opened in 1713054696 [13:51:59]opened+sec_in_day 1713141096 [13:51:59]quantity*price = 11000 [13:51:59]sum+1 = 11001 [13:51:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 183 14.04.2024 13:51 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112284 ФПД: 53355743850763 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135159&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112284&fm=53355743850763&tin=02508201610067®Number=0000000000094237&sum=11000 0 [13:52:00]StoreToDocumentArchive [13:52:00]shift 357 fd 112284 [13:52:00]save to /storage/0357/doc_00112284 [13:52:00]save last doc name /storage/0357/doc_00112284 to /storage/kkm_last_doc_name [13:52:00]save OK [13:52:00]Clear old archive folders... [13:52:00]ProcessDocumentItem done err = 0, tmpTLVsize=271 [13:52:00]tlvbuf is 00143990 [13:52:00]SAM_PROTO_ClearQueue [13:52:00]wFMCommunicate request_size=4 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 09 00 00 [13:52:00]Write to MH i2c: E2 08 00 16 01 80 09 00 00 00 00 00 00 89 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:00]Read from MH i2c: E2 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 03 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 03 00 16 01 00 90 00 8B [13:52:00]RAPDU: 90 00 [13:52:00]wFMCommunicate OK [13:52:00]SAM_PROTO_ClearQueue done [13:52:00]KKMCreateOFDPacket [13:52:00]OFDProtocolAddRootSTLVToBuf [13:52:00]FM_MakeSignedData [13:52:00]FM_MakeSignedData [13:52:00]SAM_PROTO_SignData [13:52:00]wFMCommunicate request_size=4 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 0D 01 02 [13:52:00]Write to MH i2c: E2 08 00 17 01 80 0D 01 02 00 00 00 00 91 [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:00]Read from MH i2c: E2 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 03 00 [13:52:00]MH_I2C_Read... [13:52:00]Read from MH i2c: E2 03 00 17 01 00 90 00 8C [13:52:00]RAPDU: 90 00 [13:52:00]wFMCommunicate OK [13:52:00]wFMCommunicate request_size=255 [13:52:00]MH_SAM_APDU [13:52:00]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 7F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [13:52:00]Write to MH i2c: E2 02 01 18 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 7F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 5C [13:52:00]Write i2c OK [13:52:00]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 03 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 03 00 18 01 00 90 00 8D [13:52:01]RAPDU: 90 00 [13:52:01]wFMCommunicate OK [13:52:01]wFMCommunicate request_size=30 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 0D 02 02 19 30 38 37 35 30 31 39 10 04 04 00 9C B6 01 00 35 04 06 00 30 86 DA 28 B1 0B [13:52:01]Write to MH i2c: E2 21 00 19 01 80 0D 02 02 19 00 30 38 37 35 30 31 39 10 04 04 00 9C B6 01 00 35 04 06 00 30 86 DA 28 B1 0B 00 00 52 [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 03 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 03 00 19 01 00 90 00 8E [13:52:01]RAPDU: 90 00 [13:52:01]wFMCommunicate OK [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 0D 03 02 [13:52:01]Write to MH i2c: E2 08 00 1A 01 80 0D 03 02 00 00 00 00 96 [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0B 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 0B 00 1A 01 00 66 F7 CD 2D F4 05 1F EC 90 00 F2 [13:52:01]RAPDU: 66 F7 CD 2D F4 05 1F EC 90 00 [13:52:01]wFMCommunicate OK [13:52:01]SAM_PROTO_SignData done [13:52:01]FM_MakeSignedData done [13:52:01]CreateOFDProtocolMessage [13:52:01]wFMCommunicate request_size=4 [13:52:01]MH_SAM_APDU [13:52:01]CAPDU: 80 11 00 00 [13:52:01]Write to MH i2c: E2 08 00 1B 01 80 11 00 00 00 00 00 00 96 [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:01]Read from MH i2c: E2 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 17 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: E2 17 00 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E7 [13:52:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:52:01]wFMCommunicate OK [13:52:01]CreateOFDProtocolMessage done [13:52:01]OFDSenderStorePacket 112284 [13:52:01]StoreOFDPacket docnum=112284 [13:52:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 23 01 00 00 41 A6 1B 01 58 AC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 7F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9C B6 01 00 35 04 06 00 30 86 DA 28 B1 0B 66 F7 CD 2D F4 05 1F EC [13:52:01]CheckFolder [13:52:01]dirname=/storage/ofd_packets [13:52:01]CheckFolder done [13:52:01]ProducePacketName [13:52:01]name=ofd_packets/00112284 [13:52:01]NVStorageSaveData ofd_packets/00112284 [13:52:01]File name is /storage/ofd_packets/00112284 [13:52:01]Write 321 bytes [13:52:01]NVStorageSaveData done [13:52:01]OFDSenderStorePacket done [13:52:01]KKMCreateOFDPacket done [13:52:01]NVStorageSaveData kkm_last_timestamp [13:52:01]File name is /storage/kkm_last_timestamp [13:52:01]Write 4 bytes [13:52:01]NVStorageSaveData done [13:52:01]ExternCall_PrintAddStr [13:52:01]wPrintStart [13:52:01]Write to MH i2c: 01 00 00 1C 01 1D [13:52:01]Write i2c OK [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: 01 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: 01 07 00 [13:52:01]MH_I2C_Read... [13:52:01]Read from MH i2c: 01 07 00 1C 01 00 00 00 00 00 FF 0F 32 [13:52:01]RasterBufferAndPrint [13:52:01]line Счет N : (3)10422 [13:52:01]line ИНН: 02508201610067 [13:52:01]line Контрольно-Кассовый Чек [13:52:01]line ПРОДАЖА [13:52:01]line Товар: 5449000006271 [13:52:01]line Напиток Фанта 1л [13:52:01]line 1.000 * 110.00 [13:52:01]line = 110.00 [13:52:01]line НДС 12% НСП 1% [13:52:01]line > о реализуемом товаре [13:52:01]line ИТОГО: 110.00 [13:52:01]line НСП 1% : 0.97 [13:52:01]line НДС 12% : 11.68 [13:52:01]line Наличными: 110.00 [13:52:01]line Безнал.: 0.00 [13:52:01]line Место: АЗС № 47 "Партнер Нефть" [13:52:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:52:01]line СНО: Общий режим [13:52:01]line Чек 183 14.04.2024 13:51 [13:52:01]line Смена: 357 ФФД: 1.0 [13:52:01]line ЗНМ: 0300000138 [13:52:01]line РНМ: 0000000000094237 [13:52:01]line Версия ККМ: 001 [13:52:01]line ФМ: 0000000000875019 [13:52:01]line ФД: 112284 [13:52:01]line ФПД: 53355743850763 [13:52:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135159&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112284&fm=53355743850763&tin=02508201610067®Number=0000000000094237&sum=11000 [13:52:01]OFD Sender: Processing packet 112284 [packets to send 71, broken 70] [13:52:01]ProducePacketName [13:52:01]name=ofd_packets/00112284 [13:52:01]OFD Sender: To server: pG, [13:52:01]CommunicateWithHost lk.salyk.kg:30040 [13:52:01]ConnectInit lk.salyk.kg [13:52:01]line 0 [13:52:01]written 0, free lines is 4095 [13:52:01]Connected sock=10 [13:52:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 23 01 00 00 41 A6 1B 01 58 AC 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 7F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9C B6 01 00 35 04 06 00 30 86 DA 28 B1 0B 66 F7 CD 2D F4 05 1F EC [13:52:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A9 F1 47 00 6E 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9C B6 01 00 F4 03 04 00 0B 87 1B 66 B6 04 01 00 00 29 F0 BE 74 66 CD E7 E3 [13:52:02]CommunicateWithHost err = 0 [13:52:02]CheckOFDResponse [13:52:02]1017 (14) - 77093643461234 [13:52:02]1041 (16) - 0000000000875019 [13:52:02]1040 (4) - 112284 [13:52:02]1012 (4) - 14.04.2024 07:34 [13:52:02]1206 (1) - 0 [13:52:02]OFD Sender: Remove packet 112284 [13:52:02]ProducePacketName [13:52:02]name=ofd_packets/00112284 [13:52:02]NVStorageDeleteData [13:52:02]Write to MH i2c: 01 00 00 44 01 45 [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: 01 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: 01 07 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 0E 0D 67 [13:52:02]RasterBufferAndPrint [13:52:02]line [13:52:02]line [13:52:02]line [13:52:02]line [13:52:02]line [13:52:02]written 0, free lines is 3348 [13:52:02]MH_Cut [13:52:02]Write to MH i2c: D1 01 00 4B 01 01 1E [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: D1 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: D1 01 00 [13:52:02]MH_I2C_Read... [13:52:02]Read from MH i2c: D1 01 00 4B 01 00 1D [13:52:02]Write to MH i2c: 01 00 00 4C 01 4D [13:52:02]Write i2c OK [13:52:02]MH_I2C_Read... [13:52:02]OFD Sender: No OFD packet to send [13:52:02]*** Cut start [13:52:02]*** Partial cut [13:52:02]*** CUTSNS_PIN = 1 [13:52:02]*** CUTSNS_PIN = 0 [13:52:03]*** Brake cut motor [13:52:03]Read from MH i2c: 01 [13:52:03]MH_I2C_Read... [13:52:03]*** Stop cut motor [13:52:03]*** Cut end [13:52:03]Read from MH i2c: 01 07 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: 01 07 00 4C 01 00 00 00 00 00 FF 0F 62 [13:52:03]process_action close_receipt done [13:52:03]requested_data is exist [13:52:03]produce_requested_data [13:52:03]requested_item fm.sn is exist - process it [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 11 00 00 [13:52:03]Write to MH i2c: E2 08 00 4D 01 80 11 00 00 00 00 00 00 C8 [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 17 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 17 00 4D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 19 [13:52:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:52:03]wFMCommunicate OK [13:52:03]requested_item fd.num is exist - process it [13:52:03]SAM_PROTO_GetFieldsCounters [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 13 00 00 [13:52:03]Write to MH i2c: E2 08 00 4E 01 80 13 00 00 00 00 00 00 CB [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 62 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 62 00 4E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [13:52:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9C B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:03]wFMCommunicate OK [13:52:03]SAM_PROTO_GetFieldsCounters done [13:52:03]requested_item shift.num is exist - process it [13:52:03]requested_item shift.opened is exist - process it [13:52:03]req_shift_opened [13:52:03]FM_GetShiftState [13:52:03]SAM_PROTO_GetShiftState [13:52:03]wFMCommunicate request_size=4 [13:52:03]MH_SAM_APDU [13:52:03]CAPDU: 80 13 01 00 [13:52:03]Write to MH i2c: E2 08 00 4F 01 80 13 01 00 00 00 00 00 CD [13:52:03]Write i2c OK [13:52:03]MH_I2C_Read... [13:52:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:03]Read from MH i2c: E2 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 0E 00 [13:52:03]MH_I2C_Read... [13:52:03]Read from MH i2c: E2 0E 00 4F 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 65 [13:52:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:52:03]wFMCommunicate OK [13:52:03]SAM_PROTO_GetShiftState done [13:52:03]FM_GetShiftState done [13:52:03]req_shift_opened done [13:52:03]requested_item shift.open_date is exist - process it [13:52:03]req_shift_open_date [13:52:03]req_shift_open_date done [13:52:03]produce_requested_data done [13:52:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112284,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:52:03]process_action_free close_receipt [13:52:03]json_value_free [13:52:03]json_value_free done [13:52:03]process_json_proto returns [13:52:03]Send response to host [13:52:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112284,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:52:03]free response buf [13:52:03]execute_script done [13:52:03]execute_script returns [13:52:03]free content buf [13:52:03]Sock 9.Close socket [13:52:03]Sock 9.Thread stoped [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:15]accept exits with 8 [13:52:15]New connection [13:52:15]New thread 3066682724 created [13:52:15]Thread 3066826084 joined [13:52:15]Waiting for new connection... [13:52:15] Sock 8.Parse request [13:52:15]Sock 8.Check first char [13:52:15]Sock 8.First char is OK [13:52:15]request: POST /json_proto HTTP/1.0 [13:52:15]Method: POST [13:52:15]URL: /json_proto [13:52:15]Method is POST - this is cgi request [13:52:15]url: /json_proto [13:52:15]query_string will be loaded in cgi processing [13:52:15]execute_cgi json_proto POST (null) [13:52:15]execute_cgi path=json_proto method=POST [13:52:15]POST find Content-Length [13:52:15]Host: 172.17.96.197:8080 [13:52:15]Content-Length: 680 [13:52:15]Content-Type: application/json [13:52:15] [13:52:15]POST finish read [13:52:15]Found Content-Length = 680 [13:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 27.530, "sum" : 900.23, "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" ] } } [13:52:15]execute_script... [13:52: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)48597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 27.530, "sum" : 900.23, "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" ] } } [13:52:15]POST & json_proto [13:52:15]process_json_proto [13:52:15]json parsed OK: [13:52:15]protocol is kg_v1.0 [13:52:15]action value=close_receipt [13:52:15]process_action close_receipt [13:52:15]cmd_close_receipt [13:52:15]MH_GetDate [13:52:15]Write to MH i2c: F0 00 00 50 01 40 [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: F0 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: F0 09 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: F0 09 00 50 01 00 8F DF 1B 66 E0 85 7F 64 80 [13:52:15]GetLastDocTimeStamp 1713102719 [13:52:15]current date 1713102735 [13:52:15]FM_GetShiftState [13:52:15]SAM_PROTO_GetShiftState [13:52:15]wFMCommunicate request_size=4 [13:52:15]MH_SAM_APDU [13:52:15]CAPDU: 80 13 01 00 [13:52:15]Write to MH i2c: E2 08 00 51 01 80 13 01 00 00 00 00 00 CF [13:52:15]Write i2c OK [13:52:15]MH_I2C_Read... [13:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:15]Read from MH i2c: E2 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0E 00 [13:52:15]MH_I2C_Read... [13:52:15]Read from MH i2c: E2 0E 00 51 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [13:52:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:52:15]wFMCommunicate OK [13:52:15]SAM_PROTO_GetShiftState done [13:52:15]FM_GetShiftState done [13:52:15]opened in 1713054696 [13:52:15]opened+sec_in_day 1713141096 [13:52:15]quantity*price = 90023 [13:52:15]sum+1 = 90024 [13:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 184 14.04.2024 13:52 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112285 ФПД: 46952618689748 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135215&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112285&fm=46952618689748&tin=02508201610067®Number=0000000000094237&sum=90000 [13:52:16]StoreToDocumentArchive [13:52:16]shift 357 fd 112285 [13:52:16]save to /storage/0357/doc_00112285 [13:52:16]save last doc name /storage/0357/doc_00112285 to /storage/kkm_last_doc_name [13:52:16]save OK [13:52:16]Clear old archive folders... [13:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:52:16]tlvbuf is 001341C0 [13:52:16]SAM_PROTO_ClearQueue [13:52:16]wFMCommunicate request_size=4 [13:52:16]MH_SAM_APDU [13:52:16]CAPDU: 80 09 00 00 [13:52:16]Write to MH i2c: E2 08 00 5E 01 80 09 00 00 00 00 00 00 D1 [13:52:16]Write i2c OK [13:52:16]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 5E 01 00 90 00 D3 [13:52:17]RAPDU: 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_ClearQueue done [13:52:17]KKMCreateOFDPacket [13:52:17]OFDProtocolAddRootSTLVToBuf [13:52:17]FM_MakeSignedData [13:52:17]FM_MakeSignedData [13:52:17]SAM_PROTO_SignData [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 0D 01 02 [13:52:17]Write to MH i2c: E2 08 00 5F 01 80 0D 01 02 00 00 00 00 D9 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 5F 01 00 90 00 D4 [13:52:17]RAPDU: 90 00 [13:52:17]wFMCommunicate OK [13:52:17]wFMCommunicate request_size=255 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 B8 00 00 00 F4 03 04 00 8F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9D B6 01 00 35 04 06 00 2A B4 [13:52:17]Write to MH i2c: E2 02 01 60 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 B8 00 00 00 F4 03 04 00 8F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9D B6 01 00 35 04 06 00 2A B4 00 00 12 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 60 01 00 90 00 D5 [13:52:17]RAPDU: 90 00 [13:52:17]wFMCommunicate OK [13:52:17]wFMCommunicate request_size=9 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 0D 02 02 04 02 28 84 D4 [13:52:17]Write to MH i2c: E2 0C 00 61 01 80 0D 02 02 04 00 02 28 84 D4 00 00 66 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 03 00 61 01 00 90 00 D6 [13:52:17]RAPDU: 90 00 [13:52:17]wFMCommunicate OK [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 0D 03 02 [13:52:17]Write to MH i2c: E2 08 00 62 01 80 0D 03 02 00 00 00 00 DE [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0B 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 0B 00 62 01 00 8F DC BD 4B 8E F5 69 5F 90 00 9D [13:52:17]RAPDU: 8F DC BD 4B 8E F5 69 5F 90 00 [13:52:17]wFMCommunicate OK [13:52:17]SAM_PROTO_SignData done [13:52:17]FM_MakeSignedData done [13:52:17]CreateOFDProtocolMessage [13:52:17]wFMCommunicate request_size=4 [13:52:17]MH_SAM_APDU [13:52:17]CAPDU: 80 11 00 00 [13:52:17]Write to MH i2c: E2 08 00 63 01 80 11 00 00 00 00 00 00 DE [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:17]Read from MH i2c: E2 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: E2 17 00 63 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [13:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:52:17]wFMCommunicate OK [13:52:17]CreateOFDProtocolMessage done [13:52:17]OFDSenderStorePacket 112285 [13:52:17]StoreOFDPacket docnum=112285 [13:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 DF 0E 06 01 B6 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 B8 00 00 00 F4 03 04 00 8F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9D B6 01 00 35 04 06 00 2A B4 02 28 84 D4 8F DC BD 4B 8E F5 69 5F [13:52:17]CheckFolder [13:52:17]dirname=/storage/ofd_packets [13:52:17]CheckFolder done [13:52:17]ProducePacketName [13:52:17]name=ofd_packets/00112285 [13:52:17]NVStorageSaveData ofd_packets/00112285 [13:52:17]File name is /storage/ofd_packets/00112285 [13:52:17]Write 300 bytes [13:52:17]NVStorageSaveData done [13:52:17]OFDSenderStorePacket done [13:52:17]KKMCreateOFDPacket done [13:52:17]NVStorageSaveData kkm_last_timestamp [13:52:17]File name is /storage/kkm_last_timestamp [13:52:17]Write 4 bytes [13:52:17]NVStorageSaveData done [13:52:17]ExternCall_PrintAddStr [13:52:17]wPrintStart [13:52:17]Write to MH i2c: 01 00 00 64 01 65 [13:52:17]Write i2c OK [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 [13:52:17]MH_I2C_Read... [13:52:17]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 FF 0F 7A [13:52:17]RasterBufferAndPrint [13:52:17]line Счет N : (1)48597 [13:52:17]line ИНН: 02508201610067 [13:52:17]line Контрольно-Кассовый Чек [13:52:17]line ПРОДАЖА [13:52:17]line ТРК (МРК, ГНК) : 72 [13:52:17]line Товар: 2711190000 [13:52:17]line ГАЗ-К-5 [13:52:17]line 27.530 * 32.70 [13:52:17]line = 900.23 [13:52:17]line НДС 12% НСП 1% [13:52:17]line > о реализуемом товаре [13:52:17]line ОКРУГЛЕНИЕ: -0.23 [13:52:17]line ИТОГО: 900.00 [13:52:17]line Внесено: 900.00 [13:52:17]line СДАЧА: 0.00 [13:52:17]line НСП 1% : 7.97 [13:52:17]line НДС 12% : 95.60 [13:52:17]line Наличными: 900.00 [13:52:17]line Безнал.: 0.00 [13:52:17]line Место: АЗС № 47 "Партнер Нефть" [13:52:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:52:17]line СНО: Общий режим [13:52:17]line Чек 184 14.04.2024 13:52 [13:52:17]line Смена: 357 ФФД: 1.0 [13:52:17]line ЗНМ: 0300000138 [13:52:17]line РНМ: 0000000000094237 [13:52:17]line Версия ККМ: 001 [13:52:17]line ФМ: 0000000000875019 [13:52:17]line ФД: 112285 [13:52:17]line ФПД: 46952618689748 [13:52:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135215&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112285&fm=46952618689748&tin=02508201610067®Number=0000000000094237&sum=90000 [13:52:17]OFD Sender: Processing packet 112285 [packets to send 71, broken 70] [13:52:17]ProducePacketName [13:52:17]name=ofd_packets/00112285 [13:52:17]OFD Sender: To server: pG, [13:52:17]CommunicateWithHost lk.salyk.kg:30040 [13:52:17]ConnectInit lk.salyk.kg [13:52:17]written 0, free lines is 4095 [13:52:18]Connected sock=10 [13:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 DF 0E 06 01 B6 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 8A 6B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 A7 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 B8 00 00 00 F4 03 04 00 8F DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9D B6 01 00 35 04 06 00 2A B4 02 28 84 D4 8F DC BD 4B 8E F5 69 5F [13:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5A B0 47 00 6A 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9D B6 01 00 F4 03 04 00 1B 87 1B 66 B6 04 01 00 00 03 7D 0D 2E 92 52 BE 5D [13:52:18]CommunicateWithHost err = 0 [13:52:18]CheckOFDResponse [13:52:18]1017 (14) - 77093643461234 [13:52:18]1041 (16) - 0000000000875019 [13:52:18]1040 (4) - 112285 [13:52:18]1012 (4) - 14.04.2024 07:34 [13:52:18]1206 (1) - 0 [13:52:18]OFD Sender: Remove packet 112285 [13:52:18]ProducePacketName [13:52:18]name=ofd_packets/00112285 [13:52:18]NVStorageDeleteData [13:52:18]Write to MH i2c: 01 00 00 8F 01 90 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 07 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 F2 0C 95 [13:52:18]RasterBufferAndPrint [13:52:18]line [13:52:18]line [13:52:18]line [13:52:18]line [13:52:18]line [13:52:18]written 0, free lines is 3320 [13:52:18]MH_Cut [13:52:18]Write to MH i2c: D1 01 00 96 01 01 69 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: D1 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: D1 01 00 [13:52:18]MH_I2C_Read... [13:52:18]Read from MH i2c: D1 01 00 96 01 00 68 [13:52:18]Write to MH i2c: 01 00 00 97 01 98 [13:52:18]Write i2c OK [13:52:18]MH_I2C_Read... [13:52:18]OFD Sender: No OFD packet to send [13:52:19]*** Cut start [13:52:19]*** Partial cut [13:52:19]*** CUTSNS_PIN = 1 [13:52:19]*** CUTSNS_PIN = 0 [13:52:19]*** Brake cut motor [13:52:19]Read from MH i2c: 01 [13:52:19]MH_I2C_Read... [13:52:19]*** Stop cut motor [13:52:19]*** Cut end [13:52:19]Read from MH i2c: 01 07 00 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: 01 07 00 97 01 00 00 00 00 00 FF 0F AD [13:52:19]process_action close_receipt done [13:52:19]requested_data is exist [13:52:19]produce_requested_data [13:52:19]requested_item fm.sn is exist - process it [13:52:19]wFMCommunicate request_size=4 [13:52:19]MH_SAM_APDU [13:52:19]CAPDU: 80 11 00 00 [13:52:19]Write to MH i2c: E2 08 00 98 01 80 11 00 00 00 00 00 00 13 [13:52:19]Write i2c OK [13:52:19]MH_I2C_Read... [13:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:52:19]Read from MH i2c: E2 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 17 00 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 17 00 98 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 64 [13:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:52:19]wFMCommunicate OK [13:52:19]requested_item fd.num is exist - process it [13:52:19]SAM_PROTO_GetFieldsCounters [13:52:19]wFMCommunicate request_size=4 [13:52:19]MH_SAM_APDU [13:52:19]CAPDU: 80 13 00 00 [13:52:19]Write to MH i2c: E2 08 00 99 01 80 13 00 00 00 00 00 00 16 [13:52:19]Write i2c OK [13:52:19]MH_I2C_Read... [13:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:52:19]Read from MH i2c: E2 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 62 00 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 62 00 99 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [13:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9D B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:52:19]wFMCommunicate OK [13:52:19]SAM_PROTO_GetFieldsCounters done [13:52:19]requested_item shift.num is exist - process it [13:52:19]requested_item shift.opened is exist - process it [13:52:19]req_shift_opened [13:52:19]FM_GetShiftState [13:52:19]SAM_PROTO_GetShiftState [13:52:19]wFMCommunicate request_size=4 [13:52:19]MH_SAM_APDU [13:52:19]CAPDU: 80 13 01 00 [13:52:19]Write to MH i2c: E2 08 00 9A 01 80 13 01 00 00 00 00 00 18 [13:52:19]Write i2c OK [13:52:19]MH_I2C_Read... [13:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:52:19]Read from MH i2c: E2 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 0E 00 [13:52:19]MH_I2C_Read... [13:52:19]Read from MH i2c: E2 0E 00 9A 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [13:52:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:52:19]wFMCommunicate OK [13:52:19]SAM_PROTO_GetShiftState done [13:52:19]FM_GetShiftState done [13:52:19]req_shift_opened done [13:52:19]requested_item shift.open_date is exist - process it [13:52:19]req_shift_open_date [13:52:19]req_shift_open_date done [13:52:19]produce_requested_data done [13:52:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112285,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:52:19]process_action_free close_receipt [13:52:19]json_value_free [13:52:19]json_value_free done [13:52:19]process_json_proto returns [13:52:19]Send response to host [13:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112285,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:52:19]free response buf [13:52:19]execute_script done [13:52:19]execute_script returns [13:52:19]free content buf [13:52:19]Sock 8.Close socket [13:52:19]Sock 8.Thread stoped [13:52:23]OFD Sender: No OFD packet to send [13:52:28]OFD Sender: No OFD packet to send [13:52:33]OFD Sender: No OFD packet to send [13:52:38]OFD Sender: No OFD packet to send [13:52:43]OFD Sender: No OFD packet to send [13:52:48]OFD Sender: No OFD packet to send [13:52:53]OFD Sender: No OFD packet to send [13:52:58]OFD Sender: No OFD packet to send [13:53:03]OFD Sender: No OFD packet to send [13:53:08]OFD Sender: No OFD packet to send [13:53:09]accept exits with 9 [13:53:09]New connection [13:53:09]New thread 3066826084 created [13:53:09]Thread 3066682724 joined [13:53:09]Waiting for new connection... [13:53:09] Sock 9.Parse request [13:53:09]Sock 9.Check first char [13:53:09]Sock 9.First char is OK [13:53:09]request: POST /json_proto HTTP/1.0 [13:53:09]Method: POST [13:53:09]URL: /json_proto [13:53:09]Method is POST - this is cgi request [13:53:09]url: /json_proto [13:53:09]query_string will be loaded in cgi processing [13:53:09]execute_cgi json_proto POST (null) [13:53:09]execute_cgi path=json_proto method=POST [13:53:09]POST find Content-Length [13:53:09]Host: 172.17.96.197:8080 [13:53:09]Content-Length: 674 [13:53:09]Content-Type: application/json [13:53:09] [13:53:09]POST finish read [13:53:09]Found Content-Length = 674 [13:53:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48599", "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.40, "quantity" : 12.300, "sum" : 890.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:09]execute_script... [13:53: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)48599", "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.40, "quantity" : 12.300, "sum" : 890.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 890.00, "total" : 890.00, "payments": [ { "type": 0, "sum" : 890.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:09]POST & json_proto [13:53:09]process_json_proto [13:53:09]json parsed OK: [13:53:09]protocol is kg_v1.0 [13:53:09]action value=close_receipt [13:53:09]process_action close_receipt [13:53:09]cmd_close_receipt [13:53:09]MH_GetDate [13:53:09]Write to MH i2c: F0 00 00 9B 01 8B [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 09 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: F0 09 00 9B 01 00 C5 DF 1B 66 E0 85 7F 64 01 [13:53:09]GetLastDocTimeStamp 1713102735 [13:53:09]current date 1713102789 [13:53:09]FM_GetShiftState [13:53:09]SAM_PROTO_GetShiftState [13:53:09]wFMCommunicate request_size=4 [13:53:09]MH_SAM_APDU [13:53:09]CAPDU: 80 13 01 00 [13:53:09]Write to MH i2c: E2 08 00 9C 01 80 13 01 00 00 00 00 00 1A [13:53:09]Write i2c OK [13:53:09]MH_I2C_Read... [13:53:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:09]Read from MH i2c: E2 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 [13:53:09]MH_I2C_Read... [13:53:09]Read from MH i2c: E2 0E 00 9C 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B2 [13:53:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:09]wFMCommunicate OK [13:53:09]SAM_PROTO_GetShiftState done [13:53:09]FM_GetShiftState done [13:53:09]opened in 1713054696 [13:53:09]opened+sec_in_day 1713141096 [13:53:09]quantity*price = 89052 [13:53:09]sum+1 = 89053 [13:53:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 890.00 Внесено: 890.00 СДАЧА: 0.00 НСП 1% : 7.88 НДС 12% : 94.57 Наличными: 890.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 185 14.04.2024 13:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112286 ФПД: 43334436965972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135309&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112286&fm=43334436965972&tin=02508201610067®Number=0000000000094237&sum=89000 [13:53:10]StoreToDocumentArchive [13:53:10]shift 357 fd 112286 [13:53:10]save to /storage/0357/doc_00112286 [13:53:10]save last doc name /storage/0357/doc_00112286 to /storage/kkm_last_doc_name [13:53:10]save OK [13:53:10]Clear old archive folders... [13:53:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:53:10]tlvbuf is 00135E30 [13:53:10]SAM_PROTO_ClearQueue [13:53:10]wFMCommunicate request_size=4 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 09 00 00 [13:53:10]Write to MH i2c: E2 08 00 A9 01 80 09 00 00 00 00 00 00 1C [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:10]Read from MH i2c: E2 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 A9 01 00 90 00 1E [13:53:10]RAPDU: 90 00 [13:53:10]wFMCommunicate OK [13:53:10]SAM_PROTO_ClearQueue done [13:53:10]KKMCreateOFDPacket [13:53:10]OFDProtocolAddRootSTLVToBuf [13:53:10]FM_MakeSignedData [13:53:10]FM_MakeSignedData [13:53:10]SAM_PROTO_SignData [13:53:10]wFMCommunicate request_size=4 [13:53:10]MH_SAM_APDU [13:53:10]CAPDU: 80 0D 01 02 [13:53:10]Write to MH i2c: E2 08 00 AA 01 80 0D 01 02 00 00 00 00 24 [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:10]Read from MH i2c: E2 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 [13:53:10]MH_I2C_Read... [13:53:10]Read from MH i2c: E2 03 00 AA 01 00 90 00 1F [13:53:10]RAPDU: 90 00 [13:53:10]wFMCommunicate OK [13:53:10]wFMCommunicate request_size=255 [13:53:10]MH_SAM_APDU [13:53:10]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 0C 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DC 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C5 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9E B6 01 00 35 04 06 00 27 69 95 B8 [13:53:10]Write to MH i2c: E2 02 01 AB 01 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 0C 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DC 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C5 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9E B6 01 00 35 04 06 00 27 69 95 B8 00 00 01 [13:53:10]Write i2c OK [13:53:10]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 AB 01 00 90 00 20 [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=7 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 02 02 02 CE 54 [13:53:11]Write to MH i2c: E2 0A 00 AC 01 80 0D 02 02 02 00 CE 54 00 00 4D [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 03 00 AC 01 00 90 00 21 [13:53:11]RAPDU: 90 00 [13:53:11]wFMCommunicate OK [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 0D 03 02 [13:53:11]Write to MH i2c: E2 08 00 AD 01 80 0D 03 02 00 00 00 00 29 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0B 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 0B 00 AD 01 00 EF 4C 42 63 CB 88 6F 7F 90 00 4B [13:53:11]RAPDU: EF 4C 42 63 CB 88 6F 7F 90 00 [13:53:11]wFMCommunicate OK [13:53:11]SAM_PROTO_SignData done [13:53:11]FM_MakeSignedData done [13:53:11]CreateOFDProtocolMessage [13:53:11]wFMCommunicate request_size=4 [13:53:11]MH_SAM_APDU [13:53:11]CAPDU: 80 11 00 00 [13:53:11]Write to MH i2c: E2 08 00 AE 01 80 11 00 00 00 00 00 00 29 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:11]Read from MH i2c: E2 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 17 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: E2 17 00 AE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7A [13:53:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:11]wFMCommunicate OK [13:53:11]CreateOFDProtocolMessage done [13:53:11]OFDSenderStorePacket 112286 [13:53:11]StoreOFDPacket docnum=112286 [13:53:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 47 A1 04 01 10 9A 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 0C 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DC 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C5 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9E B6 01 00 35 04 06 00 27 69 95 B8 CE 54 EF 4C 42 63 CB 88 6F 7F [13:53:11]CheckFolder [13:53:11]dirname=/storage/ofd_packets [13:53:11]CheckFolder done [13:53:11]ProducePacketName [13:53:11]name=ofd_packets/00112286 [13:53:11]NVStorageSaveData ofd_packets/00112286 [13:53:11]File name is /storage/ofd_packets/00112286 [13:53:11]Write 298 bytes [13:53:11]NVStorageSaveData done [13:53:11]OFDSenderStorePacket done [13:53:11]KKMCreateOFDPacket done [13:53:11]NVStorageSaveData kkm_last_timestamp [13:53:11]File name is /storage/kkm_last_timestamp [13:53:11]Write 4 bytes [13:53:11]NVStorageSaveData done [13:53:11]ExternCall_PrintAddStr [13:53:11]wPrintStart [13:53:11]Write to MH i2c: 01 00 00 AF 01 B0 [13:53:11]Write i2c OK [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 07 00 [13:53:11]MH_I2C_Read... [13:53:11]Read from MH i2c: 01 07 00 AF 01 00 00 00 00 00 FF 0F C5 [13:53:11]RasterBufferAndPrint [13:53:11]line Счет N : (1)48599 [13:53:11]line ИНН: 02508201610067 [13:53:11]line Контрольно-Кассовый Чек [13:53:11]line ПРОДАЖА [13:53:11]line ТРК (МРК, ГНК) : 51 [13:53:11]line Товар: 2710194210 [13:53:11]line ДТ-К-5 [13:53:11]line 12.300 * 72.40 [13:53:11]line = 890.52 [13:53:11]line НДС 12% НСП 1% [13:53:11]line > о реализуемом товаре [13:53:11]line ОКРУГЛЕНИЕ: -0.52 [13:53:11]line ИТОГО: 890.00 [13:53:11]line Внесено: 890.00 [13:53:11]line СДАЧА: 0.00 [13:53:11]line НСП 1% : 7.88 [13:53:11]line НДС 12% : 94.57 [13:53:11]line Наличными: 890.00 [13:53:11]line Безнал.: 0.00 [13:53:11]line Место: АЗС № 47 "Партнер Нефть" [13:53:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:53:11]line СНО: Общий режим [13:53:11]line Чек 185 14.04.2024 13:53 [13:53:11]line Смена: 357 ФФД: 1.0 [13:53:11]line ЗНМ: 0300000138 [13:53:11]line РНМ: 0000000000094237 [13:53:11]line Версия ККМ: 001 [13:53:11]line ФМ: 0000000000875019 [13:53:11]line ФД: 112286 [13:53:11]line ФПД: 43334436965972 [13:53:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135309&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112286&fm=43334436965972&tin=02508201610067®Number=0000000000094237&sum=89000 [13:53:11]OFD Sender: Processing packet 112286 [packets to send 71, broken 70] [13:53:11]ProducePacketName [13:53:11]name=ofd_packets/00112286 [13:53:11]OFD Sender: To server: pG, [13:53:11]CommunicateWithHost lk.salyk.kg:30040 [13:53:11]ConnectInit lk.salyk.kg [13:53:11]written 0, free lines is 4095 [13:53:11]Connected sock=10 [13:53:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 47 A1 04 01 10 9A 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 0C 30 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 DC 5B 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 5B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 14 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 24 00 00 00 00 07 04 06 00 A8 5B 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B9 00 00 00 F4 03 04 00 C5 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9E B6 01 00 35 04 06 00 27 69 95 B8 CE 54 EF 4C 42 63 CB 88 6F 7F [13:53:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E7 9B 47 00 07 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9E B6 01 00 F4 03 04 00 51 87 1B 66 B6 04 01 00 00 33 D9 19 D5 BF F6 DA 93 [13:53:12]CommunicateWithHost err = 0 [13:53:12]CheckOFDResponse [13:53:12]1017 (14) - 77093643461234 [13:53:12]1041 (16) - 0000000000875019 [13:53:12]1040 (4) - 112286 [13:53:12]1012 (4) - 14.04.2024 07:35 [13:53:12]1206 (1) - 0 [13:53:12]OFD Sender: Remove packet 112286 [13:53:12]ProducePacketName [13:53:12]name=ofd_packets/00112286 [13:53:12]NVStorageDeleteData [13:53:12]Write to MH i2c: 01 00 00 DA 01 DB [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 F1 0C DF [13:53:12]RasterBufferAndPrint [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]line [13:53:12]written 0, free lines is 3319 [13:53:12]MH_Cut [13:53:12]Write to MH i2c: D1 01 00 E1 01 01 B4 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 [13:53:12]MH_I2C_Read... [13:53:12]Read from MH i2c: D1 01 00 E1 01 00 B3 [13:53:12]Write to MH i2c: 01 00 00 E2 01 E3 [13:53:12]Write i2c OK [13:53:12]MH_I2C_Read... [13:53:12]OFD Sender: No OFD packet to send [13:53:12]*** Cut start [13:53:12]*** Partial cut [13:53:12]*** CUTSNS_PIN = 1 [13:53:12]*** CUTSNS_PIN = 0 [13:53:13]*** Brake cut motor [13:53:13]Read from MH i2c: 01 [13:53:13]MH_I2C_Read... [13:53:13]*** Stop cut motor [13:53:13]*** Cut end [13:53:13]Read from MH i2c: 01 07 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: 01 07 00 E2 01 00 00 00 00 00 FF 0F F8 [13:53:13]process_action close_receipt done [13:53:13]requested_data is exist [13:53:13]produce_requested_data [13:53:13]requested_item fm.sn is exist - process it [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 11 00 00 [13:53:13]Write to MH i2c: E2 08 00 E3 01 80 11 00 00 00 00 00 00 5E [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 17 00 E3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AF [13:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:13]wFMCommunicate OK [13:53:13]requested_item fd.num is exist - process it [13:53:13]SAM_PROTO_GetFieldsCounters [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 13 00 00 [13:53:13]Write to MH i2c: E2 08 00 E4 01 80 13 00 00 00 00 00 00 61 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 62 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 62 00 E4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [13:53:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9E B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_GetFieldsCounters done [13:53:13]requested_item shift.num is exist - process it [13:53:13]requested_item shift.opened is exist - process it [13:53:13]req_shift_opened [13:53:13]FM_GetShiftState [13:53:13]SAM_PROTO_GetShiftState [13:53:13]wFMCommunicate request_size=4 [13:53:13]MH_SAM_APDU [13:53:13]CAPDU: 80 13 01 00 [13:53:13]Write to MH i2c: E2 08 00 E5 01 80 13 01 00 00 00 00 00 63 [13:53:13]Write i2c OK [13:53:13]MH_I2C_Read... [13:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:13]Read from MH i2c: E2 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 [13:53:13]MH_I2C_Read... [13:53:13]Read from MH i2c: E2 0E 00 E5 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [13:53:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:13]wFMCommunicate OK [13:53:13]SAM_PROTO_GetShiftState done [13:53:13]FM_GetShiftState done [13:53:13]req_shift_opened done [13:53:13]requested_item shift.open_date is exist - process it [13:53:13]req_shift_open_date [13:53:13]req_shift_open_date done [13:53:13]produce_requested_data done [13:53:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112286,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:53:13]process_action_free close_receipt [13:53:13]json_value_free [13:53:13]json_value_free done [13:53:13]process_json_proto returns [13:53:13]Send response to host [13:53:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112286,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:53:13]free response buf [13:53:13]execute_script done [13:53:13]execute_script returns [13:53:13]free content buf [13:53:13]Sock 9.Close socket [13:53:13]Sock 9.Thread stoped [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]accept exits with 8 [13:53:27]New connection [13:53:27]New thread 3066682724 created [13:53:27]Thread 3066826084 joined [13:53:27]Waiting for new connection... [13:53:27] Sock 8.Parse request [13:53:27]Sock 8.Check first char [13:53:27]Sock 8.First char is OK [13:53:27]request: POST /json_proto HTTP/1.0 [13:53:27]Method: POST [13:53:27]URL: /json_proto [13:53:27]Method is POST - this is cgi request [13:53:27]url: /json_proto [13:53:27]query_string will be loaded in cgi processing [13:53:27]execute_cgi json_proto POST (null) [13:53:27]execute_cgi path=json_proto method=POST [13:53:27]POST find Content-Length [13:53:27]Host: 172.17.96.197:8080 [13:53:27]Content-Length: 676 [13:53:27]Content-Type: application/json [13:53:27] [13:53:27]POST finish read [13:53:27]Found Content-Length = 676 [13:53:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:27]execute_script... [13:53:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:27]POST & json_proto [13:53:27]process_json_proto [13:53:27]json parsed OK: [13:53:27]protocol is kg_v1.0 [13:53:27]action value=close_receipt [13:53:27]process_action close_receipt [13:53:27]cmd_close_receipt [13:53:27]MH_GetDate [13:53:27]Write to MH i2c: F0 00 00 E6 01 D6 [13:53:27]Write i2c OK [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: F0 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: F0 09 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: F0 09 00 E6 01 00 D7 DF 1B 66 E0 85 7F 64 5E [13:53:27]GetLastDocTimeStamp 1713102789 [13:53:27]current date 1713102807 [13:53:27]FM_GetShiftState [13:53:27]SAM_PROTO_GetShiftState [13:53:27]wFMCommunicate request_size=4 [13:53:27]MH_SAM_APDU [13:53:27]CAPDU: 80 13 01 00 [13:53:27]Write to MH i2c: E2 08 00 E7 01 80 13 01 00 00 00 00 00 65 [13:53:27]Write i2c OK [13:53:27]MH_I2C_Read... [13:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:27]Read from MH i2c: E2 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 0E 00 [13:53:27]MH_I2C_Read... [13:53:27]Read from MH i2c: E2 0E 00 E7 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FD [13:53:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:27]wFMCommunicate OK [13:53:27]SAM_PROTO_GetShiftState done [13:53:27]FM_GetShiftState done [13:53:27]opened in 1713054696 [13:53:27]opened+sec_in_day 1713141096 [13:53:27]quantity*price = 30028 [13:53:27]sum+1 = 30029 [13:53:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 186 14.04.2024 13:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112287 ФПД: 156887146862908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112287&fm=156887146862908&tin=02508201610067®Number=0000000000094237&sum=30000 [13:53:28]StoreToDocumentArchive [13:53:28]shift 357 fd 112287 [13:53:28]save to /storage/0357/doc_00112287 [13:53:28]save last doc name /storage/0357/doc_00112287 to /storage/kkm_last_doc_name [13:53:28]save OK [13:53:28]Clear old archive folders... [13:53:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:53:28]tlvbuf is 00136100 [13:53:28]SAM_PROTO_ClearQueue [13:53:28]wFMCommunicate request_size=4 [13:53:28]MH_SAM_APDU [13:53:28]CAPDU: 80 09 00 00 [13:53:28]Write to MH i2c: E2 08 00 F4 01 80 09 00 00 00 00 00 00 67 [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 F4 01 00 90 00 69 [13:53:28]RAPDU: 90 00 [13:53:28]wFMCommunicate OK [13:53:28]SAM_PROTO_ClearQueue done [13:53:28]KKMCreateOFDPacket [13:53:28]OFDProtocolAddRootSTLVToBuf [13:53:28]FM_MakeSignedData [13:53:28]FM_MakeSignedData [13:53:28]SAM_PROTO_SignData [13:53:28]wFMCommunicate request_size=4 [13:53:28]MH_SAM_APDU [13:53:28]CAPDU: 80 0D 01 02 [13:53:28]Write to MH i2c: E2 08 00 F5 01 80 0D 01 02 00 00 00 00 6F [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 F5 01 00 90 00 6A [13:53:28]RAPDU: 90 00 [13:53:28]wFMCommunicate OK [13:53:28]wFMCommunicate request_size=255 [13:53:28]MH_SAM_APDU [13:53:28]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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 BA 00 00 00 F4 03 04 00 D7 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9F B6 01 00 35 04 06 00 8E [13:53:28]Write to MH i2c: E2 02 01 F6 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 BA 00 00 00 F4 03 04 00 D7 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9F B6 01 00 35 04 06 00 8E 00 00 D0 [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 F6 01 00 90 00 6B [13:53:28]RAPDU: 90 00 [13:53:28]wFMCommunicate OK [13:53:28]wFMCommunicate request_size=10 [13:53:28]MH_SAM_APDU [13:53:28]CAPDU: 80 0D 02 02 05 B0 22 A8 99 3C [13:53:28]Write to MH i2c: E2 0D 00 F7 01 80 0D 02 02 05 00 B0 22 A8 99 3C 00 00 CB [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 03 00 F7 01 00 90 00 6C [13:53:28]RAPDU: 90 00 [13:53:28]wFMCommunicate OK [13:53:28]wFMCommunicate request_size=4 [13:53:28]MH_SAM_APDU [13:53:28]CAPDU: 80 0D 03 02 [13:53:28]Write to MH i2c: E2 08 00 F8 01 80 0D 03 02 00 00 00 00 74 [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 0B 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 0B 00 F8 01 00 CC D9 05 17 89 A5 C4 04 90 00 2C [13:53:28]RAPDU: CC D9 05 17 89 A5 C4 04 90 00 [13:53:28]wFMCommunicate OK [13:53:28]SAM_PROTO_SignData done [13:53:28]FM_MakeSignedData done [13:53:28]CreateOFDProtocolMessage [13:53:28]wFMCommunicate request_size=4 [13:53:28]MH_SAM_APDU [13:53:28]CAPDU: 80 11 00 00 [13:53:28]Write to MH i2c: E2 08 00 F9 01 80 11 00 00 00 00 00 00 74 [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:28]Read from MH i2c: E2 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 17 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: E2 17 00 F9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C5 [13:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:28]wFMCommunicate OK [13:53:28]CreateOFDProtocolMessage done [13:53:28]OFDSenderStorePacket 112287 [13:53:28]StoreOFDPacket docnum=112287 [13:53:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 92 4E 07 01 C9 5D 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 BA 00 00 00 F4 03 04 00 D7 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9F B6 01 00 35 04 06 00 8E B0 22 A8 99 3C CC D9 05 17 89 A5 C4 04 [13:53:28]CheckFolder [13:53:28]dirname=/storage/ofd_packets [13:53:28]CheckFolder done [13:53:28]ProducePacketName [13:53:28]name=ofd_packets/00112287 [13:53:28]NVStorageSaveData ofd_packets/00112287 [13:53:28]File name is /storage/ofd_packets/00112287 [13:53:28]Write 301 bytes [13:53:28]NVStorageSaveData done [13:53:28]OFDSenderStorePacket done [13:53:28]KKMCreateOFDPacket done [13:53:28]NVStorageSaveData kkm_last_timestamp [13:53:28]File name is /storage/kkm_last_timestamp [13:53:28]Write 4 bytes [13:53:28]NVStorageSaveData done [13:53:28]ExternCall_PrintAddStr [13:53:28]wPrintStart [13:53:28]Write to MH i2c: 01 00 00 FA 01 FB [13:53:28]Write i2c OK [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: 01 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: 01 07 00 [13:53:28]MH_I2C_Read... [13:53:28]Read from MH i2c: 01 07 00 FA 01 00 00 00 00 00 FF 0F 10 [13:53:28]RasterBufferAndPrint [13:53:28]line Счет N : (1)48600 [13:53:28]line ИНН: 02508201610067 [13:53:28]line Контрольно-Кассовый Чек [13:53:28]line ПРОДАЖА [13:53:28]line ТРК (МРК, ГНК) : 21 [13:53:28]line Товар: 2710124130 [13:53:28]line Аи-92-К-5 [13:53:28]line 4.670 * 64.30 [13:53:28]line = 300.28 [13:53:28]line НДС 12% НСП 1% [13:53:28]line > о реализуемом товаре [13:53:28]line ОКРУГЛЕНИЕ: -0.28 [13:53:28]line ИТОГО: 300.00 [13:53:28]line Внесено: 300.00 [13:53:28]line СДАЧА: 0.00 [13:53:28]line НСП 1% : 2.66 [13:53:28]line НДС 12% : 31.89 [13:53:28]line Наличными: 300.00 [13:53:28]line Безнал.: 0.00 [13:53:28]line Место: АЗС № 47 "Партнер Нефть" [13:53:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:53:28]line СНО: Общий режим [13:53:28]line Чек 186 14.04.2024 13:53 [13:53:28]line Смена: 357 ФФД: 1.0 [13:53:28]line ЗНМ: 0300000138 [13:53:28]line РНМ: 0000000000094237 [13:53:28]line Версия ККМ: 001 [13:53:28]line ФМ: 0000000000875019 [13:53:28]line ФД: 112287 [13:53:28]line ФПД: 156887146862908 [13:53:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112287&fm=156887146862908&tin=02508201610067®Number=0000000000094237&sum=30000 [13:53:29]OFD Sender: Processing packet 112287 [packets to send 71, broken 70] [13:53:29]ProducePacketName [13:53:29]name=ofd_packets/00112287 [13:53:29]OFD Sender: To server: pG, [13:53:29]CommunicateWithHost lk.salyk.kg:30040 [13:53:29]ConnectInit lk.salyk.kg [13:53:29]written 0, free lines is 4095 [13:53:29]Connected sock=10 [13:53:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 92 4E 07 01 C9 5D 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 BA 00 00 00 F4 03 04 00 D7 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9F B6 01 00 35 04 06 00 8E B0 22 A8 99 3C CC D9 05 17 89 A5 C4 04 [13:53:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 29 87 47 00 36 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 9F B6 01 00 F4 03 04 00 62 87 1B 66 B6 04 01 00 00 1D B6 40 3C 81 A9 DE B5 [13:53:29]CommunicateWithHost err = 0 [13:53:29]CheckOFDResponse [13:53:29]1017 (14) - 77093643461234 [13:53:29]1041 (16) - 0000000000875019 [13:53:29]1040 (4) - 112287 [13:53:29]1012 (4) - 14.04.2024 07:36 [13:53:29]1206 (1) - 0 [13:53:29]OFD Sender: Remove packet 112287 [13:53:29]ProducePacketName [13:53:29]name=ofd_packets/00112287 [13:53:29]NVStorageDeleteData [13:53:29]Write to MH i2c: 01 00 00 25 02 27 [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: 01 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: 01 07 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 EF 0C 29 [13:53:29]RasterBufferAndPrint [13:53:29]line [13:53:29]line [13:53:29]line [13:53:29]line [13:53:29]line [13:53:29]written 0, free lines is 3317 [13:53:29]MH_Cut [13:53:29]Write to MH i2c: D1 01 00 2C 02 01 00 [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: D1 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: D1 01 00 [13:53:29]MH_I2C_Read... [13:53:29]Read from MH i2c: D1 01 00 2C 02 00 FF [13:53:29]Write to MH i2c: 01 00 00 2D 02 2F [13:53:29]Write i2c OK [13:53:29]MH_I2C_Read... [13:53:30]OFD Sender: No OFD packet to send [13:53:30]*** Cut start [13:53:30]*** Partial cut [13:53:30]*** CUTSNS_PIN = 1 [13:53:30]*** CUTSNS_PIN = 0 [13:53:30]*** Brake cut motor [13:53:31]Read from MH i2c: 01 [13:53:31]MH_I2C_Read... [13:53:31]*** Stop cut motor [13:53:31]*** Cut end [13:53:31]Read from MH i2c: 01 07 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: 01 07 00 2D 02 00 00 00 00 00 FF 0F 44 [13:53:31]process_action close_receipt done [13:53:31]requested_data is exist [13:53:31]produce_requested_data [13:53:31]requested_item fm.sn is exist - process it [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 11 00 00 [13:53:31]Write to MH i2c: E2 08 00 2E 02 80 11 00 00 00 00 00 00 AA [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 17 00 2E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FB [13:53:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:31]wFMCommunicate OK [13:53:31]requested_item fd.num is exist - process it [13:53:31]SAM_PROTO_GetFieldsCounters [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 13 00 00 [13:53:31]Write to MH i2c: E2 08 00 2F 02 80 13 00 00 00 00 00 00 AD [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 62 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 62 00 2F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [13:53:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 9F B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_GetFieldsCounters done [13:53:31]requested_item shift.num is exist - process it [13:53:31]requested_item shift.opened is exist - process it [13:53:31]req_shift_opened [13:53:31]FM_GetShiftState [13:53:31]SAM_PROTO_GetShiftState [13:53:31]wFMCommunicate request_size=4 [13:53:31]MH_SAM_APDU [13:53:31]CAPDU: 80 13 01 00 [13:53:31]Write to MH i2c: E2 08 00 30 02 80 13 01 00 00 00 00 00 AF [13:53:31]Write i2c OK [13:53:31]MH_I2C_Read... [13:53:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:31]Read from MH i2c: E2 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 [13:53:31]MH_I2C_Read... [13:53:31]Read from MH i2c: E2 0E 00 30 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 47 [13:53:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:31]wFMCommunicate OK [13:53:31]SAM_PROTO_GetShiftState done [13:53:31]FM_GetShiftState done [13:53:31]req_shift_opened done [13:53:31]requested_item shift.open_date is exist - process it [13:53:31]req_shift_open_date [13:53:31]req_shift_open_date done [13:53:31]produce_requested_data done [13:53:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112287,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:53:31]process_action_free close_receipt [13:53:31]json_value_free [13:53:31]json_value_free done [13:53:31]process_json_proto returns [13:53:31]Send response to host [13:53:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112287,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:53:31]free response buf [13:53:31]execute_script done [13:53:31]execute_script returns [13:53:31]free content buf [13:53:31]Sock 8.Close socket [13:53:31]Sock 8.Thread stoped [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:40]accept exits with 9 [13:53:40]New connection [13:53:40]New thread 3066826084 created [13:53:40]Thread 3066682724 joined [13:53:40]Waiting for new connection... [13:53:40] Sock 9.Parse request [13:53:40]Sock 9.Check first char [13:53:40]Sock 9.First char is OK [13:53:40]request: POST /json_proto HTTP/1.0 [13:53:40]Method: POST [13:53:40]URL: /json_proto [13:53:40]Method is POST - this is cgi request [13:53:40]url: /json_proto [13:53:40]query_string will be loaded in cgi processing [13:53:40]execute_cgi json_proto POST (null) [13:53:40]execute_cgi path=json_proto method=POST [13:53:40]POST find Content-Length [13:53:40]Host: 172.17.96.197:8080 [13:53:40]Content-Length: 669 [13:53:40]Content-Type: application/json [13:53:40] [13:53:40]POST finish read [13:53:40]Found Content-Length = 669 [13:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48601", "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.30, "quantity" : 2.000, "sum" : 130.60, "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" ] } } [13:53:40]execute_script... [13:53: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)48601", "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.30, "quantity" : 2.000, "sum" : 130.60, "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" ] } } [13:53:40]POST & json_proto [13:53:40]process_json_proto [13:53:40]json parsed OK: [13:53:40]protocol is kg_v1.0 [13:53:40]action value=close_receipt [13:53:40]process_action close_receipt [13:53:40]cmd_close_receipt [13:53:40]MH_GetDate [13:53:40]Write to MH i2c: F0 00 00 31 02 22 [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 09 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: F0 09 00 31 02 00 E4 DF 1B 66 E0 85 7F 64 B7 [13:53:40]GetLastDocTimeStamp 1713102807 [13:53:40]current date 1713102820 [13:53:40]FM_GetShiftState [13:53:40]SAM_PROTO_GetShiftState [13:53:40]wFMCommunicate request_size=4 [13:53:40]MH_SAM_APDU [13:53:40]CAPDU: 80 13 01 00 [13:53:40]Write to MH i2c: E2 08 00 32 02 80 13 01 00 00 00 00 00 B1 [13:53:40]Write i2c OK [13:53:40]MH_I2C_Read... [13:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:40]Read from MH i2c: E2 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: E2 0E 00 [13:53:40]MH_I2C_Read... [13:53:40]Read from MH i2c: E2 0E 00 32 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 49 [13:53:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:40]wFMCommunicate OK [13:53:40]SAM_PROTO_GetShiftState done [13:53:40]FM_GetShiftState done [13:53:40]opened in 1713054696 [13:53:40]opened+sec_in_day 1713141096 [13:53:40]quantity*price = 13060 [13:53:40]sum+1 = 13061 [13:53:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 130.00 Внесено: 130.00 СДАЧА: 0.00 НСП 1% : 1.16 НДС 12% : 13.87 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 187 14.04.2024 13:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112288 ФПД: 84667682177328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135340&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112288&fm=84667682177328&tin=02508201610067®Number=0000000000094237&sum=13000 [13:53:41]StoreToDocumentArchive [13:53:41]shift 357 fd 112288 [13:53:41]save to /storage/0357/doc_00112288 [13:53:41]save last doc name /storage/0357/doc_00112288 to /storage/kkm_last_doc_name [13:53:41]save OK [13:53:41]Clear old archive folders... [13:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:53:41]tlvbuf is 00137A20 [13:53:41]SAM_PROTO_ClearQueue [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 09 00 00 [13:53:41]Write to MH i2c: E2 08 00 3F 02 80 09 00 00 00 00 00 00 B3 [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 3F 02 00 90 00 B5 [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]SAM_PROTO_ClearQueue done [13:53:41]KKMCreateOFDPacket [13:53:41]OFDProtocolAddRootSTLVToBuf [13:53:41]FM_MakeSignedData [13:53:41]FM_MakeSignedData [13:53:41]SAM_PROTO_SignData [13:53:41]wFMCommunicate request_size=4 [13:53:41]MH_SAM_APDU [13:53:41]CAPDU: 80 0D 01 02 [13:53:41]Write to MH i2c: E2 08 00 40 02 80 0D 01 02 00 00 00 00 BB [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:41]Read from MH i2c: E2 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 [13:53:41]MH_I2C_Read... [13:53:41]Read from MH i2c: E2 03 00 40 02 00 90 00 B6 [13:53:41]RAPDU: 90 00 [13:53:41]wFMCommunicate OK [13:53:41]wFMCommunicate request_size=255 [13:53:41]MH_SAM_APDU [13:53: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 04 33 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 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 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 BB 00 00 00 F4 03 04 00 E4 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A0 B6 01 00 35 04 06 00 [13:53:41]Write to MH i2c: E2 02 01 41 02 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 04 33 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 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 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 BB 00 00 00 F4 03 04 00 E4 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A0 B6 01 00 35 04 06 00 00 00 9D [13:53:41]Write i2c OK [13:53:41]MH_I2C_Read... [13:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:42]Read from MH i2c: E2 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 03 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 03 00 41 02 00 90 00 B7 [13:53:42]RAPDU: 90 00 [13:53:42]wFMCommunicate OK [13:53:42]wFMCommunicate request_size=11 [13:53:42]MH_SAM_APDU [13:53:42]CAPDU: 80 0D 02 02 06 4D 01 3B 1E C1 30 [13:53:42]Write to MH i2c: E2 0E 00 42 02 80 0D 02 02 06 00 4D 01 3B 1E C1 30 00 00 62 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:42]Read from MH i2c: E2 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 03 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 03 00 42 02 00 90 00 B8 [13:53:42]RAPDU: 90 00 [13:53:42]wFMCommunicate OK [13:53:42]wFMCommunicate request_size=4 [13:53:42]MH_SAM_APDU [13:53:42]CAPDU: 80 0D 03 02 [13:53:42]Write to MH i2c: E2 08 00 43 02 80 0D 03 02 00 00 00 00 C0 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:53:42]Read from MH i2c: E2 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 0B 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 0B 00 43 02 00 D4 92 C0 C4 B5 E2 95 10 90 00 E7 [13:53:42]RAPDU: D4 92 C0 C4 B5 E2 95 10 90 00 [13:53:42]wFMCommunicate OK [13:53:42]SAM_PROTO_SignData done [13:53:42]FM_MakeSignedData done [13:53:42]CreateOFDProtocolMessage [13:53:42]wFMCommunicate request_size=4 [13:53:42]MH_SAM_APDU [13:53:42]CAPDU: 80 11 00 00 [13:53:42]Write to MH i2c: E2 08 00 44 02 80 11 00 00 00 00 00 00 C0 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:42]Read from MH i2c: E2 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 17 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: E2 17 00 44 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 11 [13:53:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:42]wFMCommunicate OK [13:53:42]CreateOFDProtocolMessage done [13:53:42]OFDSenderStorePacket 112288 [13:53:42]StoreOFDPacket docnum=112288 [13:53:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8F 25 08 01 A2 CF 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 04 33 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 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 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 BB 00 00 00 F4 03 04 00 E4 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A0 B6 01 00 35 04 06 00 4D 01 3B 1E C1 30 D4 92 C0 C4 B5 E2 95 10 [13:53:42]CheckFolder [13:53:42]dirname=/storage/ofd_packets [13:53:42]CheckFolder done [13:53:42]ProducePacketName [13:53:42]name=ofd_packets/00112288 [13:53:42]NVStorageSaveData ofd_packets/00112288 [13:53:42]File name is /storage/ofd_packets/00112288 [13:53:42]Write 302 bytes [13:53:42]NVStorageSaveData done [13:53:42]OFDSenderStorePacket done [13:53:42]KKMCreateOFDPacket done [13:53:42]NVStorageSaveData kkm_last_timestamp [13:53:42]File name is /storage/kkm_last_timestamp [13:53:42]Write 4 bytes [13:53:42]NVStorageSaveData done [13:53:42]ExternCall_PrintAddStr [13:53:42]wPrintStart [13:53:42]Write to MH i2c: 01 00 00 45 02 47 [13:53:42]Write i2c OK [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 07 00 [13:53:42]MH_I2C_Read... [13:53:42]Read from MH i2c: 01 07 00 45 02 00 00 00 00 00 FF 0F 5C [13:53:42]RasterBufferAndPrint [13:53:42]line Счет N : (1)48601 [13:53:42]line ИНН: 02508201610067 [13:53:42]line Контрольно-Кассовый Чек [13:53:42]line ПРОДАЖА [13:53:42]line ТРК (МРК, ГНК) : 31 [13:53:42]line Товар: 2710124130 [13:53:42]line SUPER 92-К-5 [13:53:42]line 2.000 * 65.30 [13:53:42]line = 130.60 [13:53:42]line НДС 12% НСП 1% [13:53:42]line > о реализуемом товаре [13:53:42]line ОКРУГЛЕНИЕ: -0.60 [13:53:42]line ИТОГО: 130.00 [13:53:42]line Внесено: 130.00 [13:53:42]line СДАЧА: 0.00 [13:53:42]line НСП 1% : 1.16 [13:53:42]line НДС 12% : 13.87 [13:53:42]line Наличными: 130.00 [13:53:42]line Безнал.: 0.00 [13:53:42]line Место: АЗС № 47 "Партнер Нефть" [13:53:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:53:42]line СНО: Общий режим [13:53:42]line Чек 187 14.04.2024 13:53 [13:53:42]line Смена: 357 ФФД: 1.0 [13:53:42]line ЗНМ: 0300000138 [13:53:42]line РНМ: 0000000000094237 [13:53:42]line Версия ККМ: 001 [13:53:42]line ФМ: 0000000000875019 [13:53:42]line ФД: 112288 [13:53:42]line ФПД: 84667682177328 [13:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135340&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112288&fm=84667682177328&tin=02508201610067®Number=0000000000094237&sum=13000 [13:53:42]OFD Sender: Processing packet 112288 [packets to send 71, broken 70] [13:53:42]ProducePacketName [13:53:42]name=ofd_packets/00112288 [13:53:42]OFD Sender: To server: pG, [13:53:42]CommunicateWithHost lk.salyk.kg:30040 [13:53:42]ConnectInit lk.salyk.kg [13:53:42]written 0, free lines is 4095 [13:53:42]Connected sock=10 [13:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8F 25 08 01 A2 CF 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 04 33 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 74 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 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 BB 00 00 00 F4 03 04 00 E4 DF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A0 B6 01 00 35 04 06 00 4D 01 3B 1E C1 30 D4 92 C0 C4 B5 E2 95 10 [13:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 36 A8 47 00 53 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A0 B6 01 00 F4 03 04 00 70 87 1B 66 B6 04 01 00 00 81 46 1F B4 99 91 F8 A7 [13:53:43]CommunicateWithHost err = 0 [13:53:43]CheckOFDResponse [13:53:43]1017 (14) - 77093643461234 [13:53:43]1041 (16) - 0000000000875019 [13:53:43]1040 (4) - 112288 [13:53:43]1012 (4) - 14.04.2024 07:36 [13:53:43]1206 (1) - 0 [13:53:43]OFD Sender: Remove packet 112288 [13:53:43]ProducePacketName [13:53:43]name=ofd_packets/00112288 [13:53:43]NVStorageDeleteData [13:53:43]Write to MH i2c: 01 00 00 70 02 72 [13:53:43]Write i2c OK [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: 01 [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: 01 07 00 [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 E5 0C 6A [13:53:43]RasterBufferAndPrint [13:53:43]line [13:53:43]line [13:53:43]line [13:53:43]line [13:53:43]line [13:53:43]written 0, free lines is 3307 [13:53:43]MH_Cut [13:53:43]Write to MH i2c: D1 01 00 77 02 01 4B [13:53:43]Write i2c OK [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: D1 [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: D1 01 00 [13:53:43]MH_I2C_Read... [13:53:43]Read from MH i2c: D1 01 00 77 02 00 4A [13:53:43]Write to MH i2c: 01 00 00 78 02 7A [13:53:43]Write i2c OK [13:53:43]MH_I2C_Read... [13:53:43]OFD Sender: No OFD packet to send [13:53:43]*** Cut start [13:53:43]*** Partial cut [13:53:43]*** CUTSNS_PIN = 1 [13:53:43]*** CUTSNS_PIN = 0 [13:53:44]*** Brake cut motor [13:53:44]Read from MH i2c: 01 [13:53:44]MH_I2C_Read... [13:53:44]*** Stop cut motor [13:53:44]*** Cut end [13:53:44]Read from MH i2c: 01 07 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: 01 07 00 78 02 00 00 00 00 00 FF 0F 8F [13:53:44]process_action close_receipt done [13:53:44]requested_data is exist [13:53:44]produce_requested_data [13:53:44]requested_item fm.sn is exist - process it [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 11 00 00 [13:53:44]Write to MH i2c: E2 08 00 79 02 80 11 00 00 00 00 00 00 F5 [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 17 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 17 00 79 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 46 [13:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:53:44]wFMCommunicate OK [13:53:44]requested_item fd.num is exist - process it [13:53:44]SAM_PROTO_GetFieldsCounters [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 13 00 00 [13:53:44]Write to MH i2c: E2 08 00 7A 02 80 13 00 00 00 00 00 00 F8 [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 62 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 62 00 7A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [13:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:53:44]wFMCommunicate OK [13:53:44]SAM_PROTO_GetFieldsCounters done [13:53:44]requested_item shift.num is exist - process it [13:53:44]requested_item shift.opened is exist - process it [13:53:44]req_shift_opened [13:53:44]FM_GetShiftState [13:53:44]SAM_PROTO_GetShiftState [13:53:44]wFMCommunicate request_size=4 [13:53:44]MH_SAM_APDU [13:53:44]CAPDU: 80 13 01 00 [13:53:44]Write to MH i2c: E2 08 00 7B 02 80 13 01 00 00 00 00 00 FA [13:53:44]Write i2c OK [13:53:44]MH_I2C_Read... [13:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:44]Read from MH i2c: E2 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 0E 00 [13:53:44]MH_I2C_Read... [13:53:44]Read from MH i2c: E2 0E 00 7B 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 92 [13:53:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:53:44]wFMCommunicate OK [13:53:44]SAM_PROTO_GetShiftState done [13:53:44]FM_GetShiftState done [13:53:44]req_shift_opened done [13:53:44]requested_item shift.open_date is exist - process it [13:53:44]req_shift_open_date [13:53:44]req_shift_open_date done [13:53:44]produce_requested_data done [13:53:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112288,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:53:44]process_action_free close_receipt [13:53:44]json_value_free [13:53:44]json_value_free done [13:53:44]process_json_proto returns [13:53:44]Send response to host [13:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112288,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:53:44]free response buf [13:53:44]execute_script done [13:53:44]execute_script returns [13:53:44]free content buf [13:53:44]Sock 9.Close socket [13:53:44]Sock 9.Thread stoped [13:53:48]OFD Sender: No OFD packet to send [13:53:53]OFD Sender: No OFD packet to send [13:53:58]OFD Sender: No OFD packet to send [13:54:03]OFD Sender: No OFD packet to send [13:54:08]OFD Sender: No OFD packet to send [13:54:13]OFD Sender: No OFD packet to send [13:54:18]OFD Sender: No OFD packet to send [13:54:23]OFD Sender: No OFD packet to send [13:54:28]OFD Sender: No OFD packet to send [13:54:33]OFD Sender: No OFD packet to send [13:54:38]OFD Sender: No OFD packet to send [13:54:43]OFD Sender: No OFD packet to send [13:54:48]OFD Sender: No OFD packet to send [13:54:53]OFD Sender: No OFD packet to send [13:54:58]OFD Sender: No OFD packet to send [13:55:03]OFD Sender: No OFD packet to send [13:55:08]OFD Sender: No OFD packet to send [13:55:13]OFD Sender: No OFD packet to send [13:55:18]OFD Sender: No OFD packet to send [13:55:23]OFD Sender: No OFD packet to send [13:55:28]OFD Sender: No OFD packet to send [13:55:33]OFD Sender: No OFD packet to send [13:55:38]OFD Sender: No OFD packet to send [13:55:43]OFD Sender: No OFD packet to send [13:55:48]OFD Sender: No OFD packet to send [13:55:53]OFD Sender: No OFD packet to send [13:55:58]OFD Sender: No OFD packet to send [13:56:03]OFD Sender: No OFD packet to send [13:56:08]OFD Sender: No OFD packet to send [13:56:13]OFD Sender: No OFD packet to send [13:56:18]OFD Sender: No OFD packet to send [13:56:23]OFD Sender: No OFD packet to send [13:56:28]OFD Sender: No OFD packet to send [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:08]OFD Sender: No OFD packet to send [13:58:13]OFD Sender: No OFD packet to send [13:58:18]OFD Sender: No OFD packet to send [13:58:23]OFD Sender: No OFD packet to send [13:58:28]OFD Sender: No OFD packet to send [13:58:33]OFD Sender: No OFD packet to send [13:58:38]OFD Sender: No OFD packet to send [13:58:43]OFD Sender: No OFD packet to send [13:58:48]OFD Sender: No OFD packet to send [13:58:53]OFD Sender: No OFD packet to send [13:58:58]OFD Sender: No OFD packet to send [13:59:03]OFD Sender: No OFD packet to send [13:59:08]OFD Sender: No OFD packet to send [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:34]OFD Sender: No OFD packet to send [13:59:39]OFD Sender: No OFD packet to send [13:59:44]OFD Sender: No OFD packet to send [13:59:48]accept exits with 8 [13:59:48]New connection [13:59:48]New thread 3066682724 created [13:59:48]Thread 3066826084 joined [13:59:48]Waiting for new connection... [13:59:48] Sock 8.Parse request [13:59:48]Sock 8.Check first char [13:59:48]Sock 8.First char is OK [13:59:48]request: POST /json_proto HTTP/1.0 [13:59:48]Method: POST [13:59:48]URL: /json_proto [13:59:48]Method is POST - this is cgi request [13:59:48]url: /json_proto [13:59:48]query_string will be loaded in cgi processing [13:59:48]execute_cgi json_proto POST (null) [13:59:48]execute_cgi path=json_proto method=POST [13:59:48]POST find Content-Length [13:59:48]Host: 172.17.96.197:8080 [13:59:48]Content-Length: 676 [13:59:48]Content-Type: application/json [13:59:48] [13:59:48]POST finish read [13:59:48]Found Content-Length = 676 [13:59:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48602", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:59:48]execute_script... [13:59: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)48602", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:59:48]POST & json_proto [13:59:48]process_json_proto [13:59:48]json parsed OK: [13:59:48]protocol is kg_v1.0 [13:59:48]action value=close_receipt [13:59:48]process_action close_receipt [13:59:48]cmd_close_receipt [13:59:48]MH_GetDate [13:59:48]Write to MH i2c: F0 00 00 7C 02 6D [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 09 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: F0 09 00 7C 02 00 54 E1 1B 66 E0 85 7F 64 74 [13:59:48]GetLastDocTimeStamp 1713102820 [13:59:48]current date 1713103188 [13:59:48]FM_GetShiftState [13:59:48]SAM_PROTO_GetShiftState [13:59:48]wFMCommunicate request_size=4 [13:59:48]MH_SAM_APDU [13:59:48]CAPDU: 80 13 01 00 [13:59:48]Write to MH i2c: E2 08 00 7D 02 80 13 01 00 00 00 00 00 FC [13:59:48]Write i2c OK [13:59:48]MH_I2C_Read... [13:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:48]Read from MH i2c: E2 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0E 00 [13:59:48]MH_I2C_Read... [13:59:48]Read from MH i2c: E2 0E 00 7D 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 94 [13:59:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:59:48]wFMCommunicate OK [13:59:48]SAM_PROTO_GetShiftState done [13:59:48]FM_GetShiftState done [13:59:48]opened in 1713054696 [13:59:48]opened+sec_in_day 1713141096 [13:59:48]quantity*price = 50025 [13:59:48]sum+1 = 50026 [13:59:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 188 14.04.2024 13:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112289 ФПД: 232702460309415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135948&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112289&fm=232702460309415&tin=02508201610067®Number=0000000000094237&sum=50000 [13:59:49]StoreToDocumentArchive [13:59:49]shift 357 fd 112289 [13:59:49]save to /storage/0357/doc_00112289 [13:59:49]save last doc name /storage/0357/doc_00112289 to /storage/kkm_last_doc_name [13:59:49]save OK [13:59:49]Clear old archive folders... [13:59:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:59:49]tlvbuf is 00135800 [13:59:49]SAM_PROTO_ClearQueue [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 09 00 00 [13:59:49]Write to MH i2c: E2 08 00 8A 02 80 09 00 00 00 00 00 00 FE [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 8A 02 00 90 00 00 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]SAM_PROTO_ClearQueue done [13:59:49]KKMCreateOFDPacket [13:59:49]OFDProtocolAddRootSTLVToBuf [13:59:49]FM_MakeSignedData [13:59:49]FM_MakeSignedData [13:59:49]SAM_PROTO_SignData [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 0D 01 02 [13:59:49]Write to MH i2c: E2 08 00 8B 02 80 0D 01 02 00 00 00 00 06 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 8B 02 00 90 00 01 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]wFMCommunicate request_size=255 [13:59:49]MH_SAM_APDU [13:59: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BC 00 00 00 F4 03 04 00 54 E1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A1 B6 01 00 35 04 06 00 D3 [13:59:49]Write to MH i2c: E2 02 01 8C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BC 00 00 00 F4 03 04 00 54 E1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A1 B6 01 00 35 04 06 00 D3 00 00 AC [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 8C 02 00 90 00 02 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]wFMCommunicate request_size=10 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 0D 02 02 05 A4 43 7C 2F A7 [13:59:49]Write to MH i2c: E2 0D 00 8D 02 80 0D 02 02 05 00 A4 43 7C 2F A7 00 00 4C [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 03 00 8D 02 00 90 00 03 [13:59:49]RAPDU: 90 00 [13:59:49]wFMCommunicate OK [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 0D 03 02 [13:59:49]Write to MH i2c: E2 08 00 8E 02 80 0D 03 02 00 00 00 00 0B [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 0B 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 0B 00 8E 02 00 35 C2 91 E2 06 75 36 97 90 00 BE [13:59:49]RAPDU: 35 C2 91 E2 06 75 36 97 90 00 [13:59:49]wFMCommunicate OK [13:59:49]SAM_PROTO_SignData done [13:59:49]FM_MakeSignedData done [13:59:49]CreateOFDProtocolMessage [13:59:49]wFMCommunicate request_size=4 [13:59:49]MH_SAM_APDU [13:59:49]CAPDU: 80 11 00 00 [13:59:49]Write to MH i2c: E2 08 00 8F 02 80 11 00 00 00 00 00 00 0B [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:49]Read from MH i2c: E2 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 17 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: E2 17 00 8F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5C [13:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:59:49]wFMCommunicate OK [13:59:49]CreateOFDProtocolMessage done [13:59:49]OFDSenderStorePacket 112289 [13:59:49]StoreOFDPacket docnum=112289 [13:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B7 9B 07 01 77 C2 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BC 00 00 00 F4 03 04 00 54 E1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A1 B6 01 00 35 04 06 00 D3 A4 43 7C 2F A7 35 C2 91 E2 06 75 36 97 [13:59:49]CheckFolder [13:59:49]dirname=/storage/ofd_packets [13:59:49]CheckFolder done [13:59:49]ProducePacketName [13:59:49]name=ofd_packets/00112289 [13:59:49]NVStorageSaveData ofd_packets/00112289 [13:59:49]File name is /storage/ofd_packets/00112289 [13:59:49]Write 301 bytes [13:59:49]NVStorageSaveData done [13:59:49]OFDSenderStorePacket done [13:59:49]KKMCreateOFDPacket done [13:59:49]NVStorageSaveData kkm_last_timestamp [13:59:49]File name is /storage/kkm_last_timestamp [13:59:49]Write 4 bytes [13:59:49]NVStorageSaveData done [13:59:49]ExternCall_PrintAddStr [13:59:49]wPrintStart [13:59:49]Write to MH i2c: 01 00 00 90 02 92 [13:59:49]Write i2c OK [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 07 00 [13:59:49]MH_I2C_Read... [13:59:49]Read from MH i2c: 01 07 00 90 02 00 00 00 00 00 FF 0F A7 [13:59:49]RasterBufferAndPrint [13:59:49]line Счет N : (1)48602 [13:59:49]line ИНН: 02508201610067 [13:59:49]line Контрольно-Кассовый Чек [13:59:49]line ПРОДАЖА [13:59:49]line ТРК (МРК, ГНК) : 32 [13:59:49]line Товар: 2710124130 [13:59:49]line Аи-92-К-5 [13:59:49]line 7.780 * 64.30 [13:59:49]line = 500.25 [13:59:49]line НДС 12% НСП 1% [13:59:49]line > о реализуемом товаре [13:59:49]line ОКРУГЛЕНИЕ: -0.25 [13:59:49]line ИТОГО: 500.00 [13:59:49]line Внесено: 500.00 [13:59:49]line СДАЧА: 0.00 [13:59:49]line НСП 1% : 4.43 [13:59:49]line НДС 12% : 53.12 [13:59:49]line Наличными: 500.00 [13:59:49]line Безнал.: 0.00 [13:59:49]line Место: АЗС № 47 "Партнер Нефть" [13:59:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [13:59:49]line СНО: Общий режим [13:59:49]line Чек 188 14.04.2024 13:59 [13:59:49]line Смена: 357 ФФД: 1.0 [13:59:49]line ЗНМ: 0300000138 [13:59:49]line РНМ: 0000000000094237 [13:59:49]line Версия ККМ: 001 [13:59:49]line ФМ: 0000000000875019 [13:59:49]line ФД: 112289 [13:59:49]line ФПД: 232702460309415 [13:59:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T135948&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112289&fm=232702460309415&tin=02508201610067®Number=0000000000094237&sum=50000 [13:59:50]OFD Sender: Processing packet 112289 [packets to send 71, broken 70] [13:59:50]ProducePacketName [13:59:50]name=ofd_packets/00112289 [13:59:50]OFD Sender: To server: pG, [13:59:50]CommunicateWithHost lk.salyk.kg:30040 [13:59:50]ConnectInit lk.salyk.kg [13:59:50]written 0, free lines is 4095 [13:59:50]Connected sock=10 [13:59:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B7 9B 07 01 77 C2 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BC 00 00 00 F4 03 04 00 54 E1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A1 B6 01 00 35 04 06 00 D3 A4 43 7C 2F A7 35 C2 91 E2 06 75 36 97 [13:59:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7A 7D 47 00 7D 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A1 B6 01 00 F4 03 04 00 DF 88 1B 66 B6 04 01 00 00 9A 23 BA 70 5D 59 19 80 [13:59:50]CommunicateWithHost err = 0 [13:59:50]CheckOFDResponse [13:59:50]1017 (14) - 77093643461234 [13:59:50]1041 (16) - 0000000000875019 [13:59:50]1040 (4) - 112289 [13:59:50]1012 (4) - 14.04.2024 07:42 [13:59:50]1206 (1) - 0 [13:59:50]OFD Sender: Remove packet 112289 [13:59:50]ProducePacketName [13:59:50]name=ofd_packets/00112289 [13:59:50]NVStorageDeleteData [13:59:50]Write to MH i2c: 01 00 00 BB 02 BD [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 E8 0C B8 [13:59:50]RasterBufferAndPrint [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]line [13:59:50]written 0, free lines is 3310 [13:59:50]MH_Cut [13:59:50]Write to MH i2c: D1 01 00 C2 02 01 96 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 01 00 [13:59:50]MH_I2C_Read... [13:59:50]Read from MH i2c: D1 01 00 C2 02 00 95 [13:59:50]Write to MH i2c: 01 00 00 C3 02 C5 [13:59:50]Write i2c OK [13:59:50]MH_I2C_Read... [13:59:51]OFD Sender: No OFD packet to send [13:59:51]*** Cut start [13:59:51]*** Partial cut [13:59:51]*** CUTSNS_PIN = 1 [13:59:51]*** CUTSNS_PIN = 0 [13:59:51]*** Brake cut motor [13:59:51]Read from MH i2c: 01 [13:59:51]MH_I2C_Read... [13:59:51]*** Stop cut motor [13:59:51]*** Cut end [13:59:51]Read from MH i2c: 01 07 00 [13:59:51]MH_I2C_Read... [13:59:51]Read from MH i2c: 01 07 00 C3 02 00 00 00 00 00 FF 0F DA [13:59:51]process_action close_receipt done [13:59:51]requested_data is exist [13:59:51]produce_requested_data [13:59:51]requested_item fm.sn is exist - process it [13:59:51]wFMCommunicate request_size=4 [13:59:51]MH_SAM_APDU [13:59:51]CAPDU: 80 11 00 00 [13:59:51]Write to MH i2c: E2 08 00 C4 02 80 11 00 00 00 00 00 00 40 [13:59:51]Write i2c OK [13:59:51]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 17 00 C4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 91 [13:59:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [13:59:52]wFMCommunicate OK [13:59:52]requested_item fd.num is exist - process it [13:59:52]SAM_PROTO_GetFieldsCounters [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 00 00 [13:59:52]Write to MH i2c: E2 08 00 C5 02 80 13 00 00 00 00 00 00 43 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 62 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 62 00 C5 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [13:59:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetFieldsCounters done [13:59:52]requested_item shift.num is exist - process it [13:59:52]requested_item shift.opened is exist - process it [13:59:52]req_shift_opened [13:59:52]FM_GetShiftState [13:59:52]SAM_PROTO_GetShiftState [13:59:52]wFMCommunicate request_size=4 [13:59:52]MH_SAM_APDU [13:59:52]CAPDU: 80 13 01 00 [13:59:52]Write to MH i2c: E2 08 00 C6 02 80 13 01 00 00 00 00 00 45 [13:59:52]Write i2c OK [13:59:52]MH_I2C_Read... [13:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:52]Read from MH i2c: E2 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 [13:59:52]MH_I2C_Read... [13:59:52]Read from MH i2c: E2 0E 00 C6 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DD [13:59:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [13:59:52]wFMCommunicate OK [13:59:52]SAM_PROTO_GetShiftState done [13:59:52]FM_GetShiftState done [13:59:52]req_shift_opened done [13:59:52]requested_item shift.open_date is exist - process it [13:59:52]req_shift_open_date [13:59:52]req_shift_open_date done [13:59:52]produce_requested_data done [13:59:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112289,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [13:59:52]process_action_free close_receipt [13:59:52]json_value_free [13:59:52]json_value_free done [13:59:52]process_json_proto returns [13:59:52]Send response to host [13:59:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112289,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [13:59:52]free response buf [13:59:52]execute_script done [13:59:52]execute_script returns [13:59:52]free content buf [13:59:52]Sock 8.Close socket [13:59:52]Sock 8.Thread stoped [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:16]OFD Sender: No OFD packet to send [14:08:21]OFD Sender: No OFD packet to send [14:08:26]OFD Sender: No OFD packet to send [14:08:31]OFD Sender: No OFD packet to send [14:08:36]OFD Sender: No OFD packet to send [14:08:41]OFD Sender: No OFD packet to send [14:08:46]OFD Sender: No OFD packet to send [14:08:46]accept exits with 9 [14:08:46]New connection [14:08:46]New thread 3066826084 created [14:08:46]Thread 3066682724 joined [14:08:46]Waiting for new connection... [14:08:46] Sock 9.Parse request [14:08:46]Sock 9.Check first char [14:08:46]Sock 9.First char is OK [14:08:46]request: POST /json_proto HTTP/1.0 [14:08:46]Method: POST [14:08:46]URL: /json_proto [14:08:46]Method is POST - this is cgi request [14:08:46]url: /json_proto [14:08:46]query_string will be loaded in cgi processing [14:08:46]execute_cgi json_proto POST (null) [14:08:46]execute_cgi path=json_proto method=POST [14:08:46]POST find Content-Length [14:08:46]Host: 172.17.96.197:8080 [14:08:46]Content-Length: 684 [14:08:46]Content-Type: application/json [14:08:46] [14:08:46]POST finish read [14:08:46]Found Content-Length = 684 [14:08:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:46]execute_script... [14:08:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:46]POST & json_proto [14:08:46]process_json_proto [14:08:46]json parsed OK: [14:08:46]protocol is kg_v1.0 [14:08:46]action value=close_receipt [14:08:46]process_action close_receipt [14:08:46]cmd_close_receipt [14:08:46]MH_GetDate [14:08:46]Write to MH i2c: F0 00 00 C7 02 B8 [14:08:46]Write i2c OK [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 09 00 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: F0 09 00 C7 02 00 6F E3 1B 66 E0 85 7F 64 DC [14:08:46]GetLastDocTimeStamp 1713103188 [14:08:46]current date 1713103727 [14:08:46]FM_GetShiftState [14:08:46]SAM_PROTO_GetShiftState [14:08:46]wFMCommunicate request_size=4 [14:08:46]MH_SAM_APDU [14:08:46]CAPDU: 80 13 01 00 [14:08:46]Write to MH i2c: E2 08 00 C8 02 80 13 01 00 00 00 00 00 47 [14:08:46]Write i2c OK [14:08:46]MH_I2C_Read... [14:08:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:46]Read from MH i2c: E2 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: E2 0E 00 [14:08:46]MH_I2C_Read... [14:08:46]Read from MH i2c: E2 0E 00 C8 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DF [14:08:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:08:46]wFMCommunicate OK [14:08:46]SAM_PROTO_GetShiftState done [14:08:46]FM_GetShiftState done [14:08:46]opened in 1713054696 [14:08:46]opened+sec_in_day 1713141096 [14:08:46]quantity*price = 100029 [14:08:46]sum+1 = 100030 [14:08:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 189 14.04.2024 14:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112290 ФПД: 250446673590279 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T140847&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112290&fm=250446673590279&tin=02508201610067®Number=0000000000094237&sum=100000 [14:08:48]StoreToDocumentArchive [14:08:48]shift 357 fd 112290 [14:08:48]save to /storage/0357/doc_00112290 [14:08:48]save last doc name /storage/0357/doc_00112290 to /storage/kkm_last_doc_name [14:08:48]save OK [14:08:48]Clear old archive folders... [14:08:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:08:48]tlvbuf is 0015B0C0 [14:08:48]SAM_PROTO_ClearQueue [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 09 00 00 [14:08:48]Write to MH i2c: E2 08 00 D5 02 80 09 00 00 00 00 00 00 49 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 D5 02 00 90 00 4B [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_ClearQueue done [14:08:48]KKMCreateOFDPacket [14:08:48]OFDProtocolAddRootSTLVToBuf [14:08:48]FM_MakeSignedData [14:08:48]FM_MakeSignedData [14:08:48]SAM_PROTO_SignData [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 01 02 [14:08:48]Write to MH i2c: E2 08 00 D6 02 80 0D 01 02 00 00 00 00 51 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 D6 02 00 90 00 4C [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=255 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A2 B6 01 00 35 04 06 00 E3 C7 [14:08:48]Write to MH i2c: E2 02 01 D7 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A2 B6 01 00 35 04 06 00 E3 C7 00 00 71 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 D7 02 00 90 00 4D [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=9 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 02 02 04 A9 03 B8 07 [14:08:48]Write to MH i2c: E2 0C 00 D8 02 80 0D 02 02 04 00 A9 03 B8 07 00 00 C7 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 03 00 D8 02 00 90 00 4E [14:08:48]RAPDU: 90 00 [14:08:48]wFMCommunicate OK [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 0D 03 02 [14:08:48]Write to MH i2c: E2 08 00 D9 02 80 0D 03 02 00 00 00 00 56 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0B 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 0B 00 D9 02 00 98 D5 71 99 CA 57 43 CB 90 00 FD [14:08:48]RAPDU: 98 D5 71 99 CA 57 43 CB 90 00 [14:08:48]wFMCommunicate OK [14:08:48]SAM_PROTO_SignData done [14:08:48]FM_MakeSignedData done [14:08:48]CreateOFDProtocolMessage [14:08:48]wFMCommunicate request_size=4 [14:08:48]MH_SAM_APDU [14:08:48]CAPDU: 80 11 00 00 [14:08:48]Write to MH i2c: E2 08 00 DA 02 80 11 00 00 00 00 00 00 56 [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:48]Read from MH i2c: E2 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: E2 17 00 DA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A7 [14:08:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:08:48]wFMCommunicate OK [14:08:48]CreateOFDProtocolMessage done [14:08:48]OFDSenderStorePacket 112290 [14:08:48]StoreOFDPacket docnum=112290 [14:08:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 53 18 06 01 B2 FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A2 B6 01 00 35 04 06 00 E3 C7 A9 03 B8 07 98 D5 71 99 CA 57 43 CB [14:08:48]CheckFolder [14:08:48]dirname=/storage/ofd_packets [14:08:48]CheckFolder done [14:08:48]ProducePacketName [14:08:48]name=ofd_packets/00112290 [14:08:48]NVStorageSaveData ofd_packets/00112290 [14:08:48]File name is /storage/ofd_packets/00112290 [14:08:48]Write 300 bytes [14:08:48]NVStorageSaveData done [14:08:48]OFDSenderStorePacket done [14:08:48]KKMCreateOFDPacket done [14:08:48]NVStorageSaveData kkm_last_timestamp [14:08:48]File name is /storage/kkm_last_timestamp [14:08:48]Write 4 bytes [14:08:48]NVStorageSaveData done [14:08:48]ExternCall_PrintAddStr [14:08:48]wPrintStart [14:08:48]Write to MH i2c: 01 00 00 DB 02 DD [14:08:48]Write i2c OK [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 07 00 [14:08:48]MH_I2C_Read... [14:08:48]Read from MH i2c: 01 07 00 DB 02 00 00 00 00 00 FF 0F F2 [14:08:48]RasterBufferAndPrint [14:08:48]line Счет N : (1)48603 [14:08:48]line ИНН: 02508201610067 [14:08:48]line Контрольно-Кассовый Чек [14:08:48]line ПРОДАЖА [14:08:48]line ТРК (МРК, ГНК) : 72 [14:08:48]line Товар: 2711190000 [14:08:48]line ГАЗ-К-5 [14:08:48]line 30.590 * 32.70 [14:08:48]line = 1000.29 [14:08:48]line НДС 12% НСП 1% [14:08:48]line > о реализуемом товаре [14:08:48]line ОКРУГЛЕНИЕ: -0.29 [14:08:48]line ИТОГО: 1000.00 [14:08:48]line Внесено: 1000.00 [14:08:48]line СДАЧА: 0.00 [14:08:48]line НСП 1% : 8.85 [14:08:48]line НДС 12% : 106.22 [14:08:48]line Наличными: 1000.00 [14:08:48]line Безнал.: 0.00 [14:08:48]line Место: АЗС № 47 "Партнер Нефть" [14:08:48]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:08:48]line СНО: Общий режим [14:08:48]line Чек 189 14.04.2024 14:08 [14:08:48]line Смена: 357 ФФД: 1.0 [14:08:48]line ЗНМ: 0300000138 [14:08:48]line РНМ: 0000000000094237 [14:08:48]line Версия ККМ: 001 [14:08:48]line ФМ: 0000000000875019 [14:08:48]line ФД: 112290 [14:08:48]line ФПД: 250446673590279 [14:08:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T140847&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112290&fm=250446673590279&tin=02508201610067®Number=0000000000094237&sum=100000 [14:08:48]OFD Sender: Processing packet 112290 [packets to send 71, broken 70] [14:08:48]ProducePacketName [14:08:48]name=ofd_packets/00112290 [14:08:48]OFD Sender: To server: pG, [14:08:48]CommunicateWithHost lk.salyk.kg:30040 [14:08:48]ConnectInit lk.salyk.kg [14:08:48]written 0, free lines is 4095 [14:08:49]Connected sock=10 [14:08:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 53 18 06 01 B2 FC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 6F E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A2 B6 01 00 35 04 06 00 E3 C7 A9 03 B8 07 98 D5 71 99 CA 57 43 CB [14:08:49]Write to MH i2c: 01 00 00 06 03 09 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 07 00 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 E8 0C 04 [14:08:49]RasterBufferAndPrint [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]line [14:08:49]written 0, free lines is 3311 [14:08:49]MH_Cut [14:08:49]Write to MH i2c: D1 01 00 0D 03 01 E2 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 01 00 [14:08:49]MH_I2C_Read... [14:08:49]Read from MH i2c: D1 01 00 0D 03 00 E1 [14:08:49]Write to MH i2c: 01 00 00 0E 03 11 [14:08:49]Write i2c OK [14:08:49]MH_I2C_Read... [14:08:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 44 57 47 00 88 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 38 37 35 30 31 39 10 04 04 00 A2 B6 01 00 F4 03 04 00 FA 8A 1B 66 B6 04 01 00 00 F6 33 C7 44 6D 64 B6 79 [14:08:49]CommunicateWithHost err = 0 [14:08:49]CheckOFDResponse [14:08:49]1017 (14) - 77093643461234 [14:08:49]1041 (16) - 0000000000875019 [14:08:49]1040 (4) - 112290 [14:08:49]1012 (4) - 14.04.2024 07:51 [14:08:49]1206 (1) - 0 [14:08:49]OFD Sender: Remove packet 112290 [14:08:49]ProducePacketName [14:08:49]name=ofd_packets/00112290 [14:08:49]NVStorageDeleteData [14:08:49]OFD Sender: No OFD packet to send [14:08:50]*** Cut start [14:08:50]*** Partial cut [14:08:50]*** CUTSNS_PIN = 1 [14:08:50]*** CUTSNS_PIN = 0 [14:08:50]*** Brake cut motor [14:08:50]Read from MH i2c: 01 [14:08:50]MH_I2C_Read... [14:08:50]*** Stop cut motor [14:08:50]*** Cut end [14:08:50]Read from MH i2c: 01 07 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 FF 0F 26 [14:08:50]process_action close_receipt done [14:08:50]requested_data is exist [14:08:50]produce_requested_data [14:08:50]requested_item fm.sn is exist - process it [14:08:50]wFMCommunicate request_size=4 [14:08:50]MH_SAM_APDU [14:08:50]CAPDU: 80 11 00 00 [14:08:50]Write to MH i2c: E2 08 00 0F 03 80 11 00 00 00 00 00 00 8C [14:08:50]Write i2c OK [14:08:50]MH_I2C_Read... [14:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:50]Read from MH i2c: E2 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 17 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 17 00 0F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DD [14:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:08:50]wFMCommunicate OK [14:08:50]requested_item fd.num is exist - process it [14:08:50]SAM_PROTO_GetFieldsCounters [14:08:50]wFMCommunicate request_size=4 [14:08:50]MH_SAM_APDU [14:08:50]CAPDU: 80 13 00 00 [14:08:50]Write to MH i2c: E2 08 00 10 03 80 13 00 00 00 00 00 00 8F [14:08:50]Write i2c OK [14:08:50]MH_I2C_Read... [14:08:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:50]Read from MH i2c: E2 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 62 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 62 00 10 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [14:08:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:08:50]wFMCommunicate OK [14:08:50]SAM_PROTO_GetFieldsCounters done [14:08:50]requested_item shift.num is exist - process it [14:08:50]requested_item shift.opened is exist - process it [14:08:50]req_shift_opened [14:08:50]FM_GetShiftState [14:08:50]SAM_PROTO_GetShiftState [14:08:50]wFMCommunicate request_size=4 [14:08:50]MH_SAM_APDU [14:08:50]CAPDU: 80 13 01 00 [14:08:50]Write to MH i2c: E2 08 00 11 03 80 13 01 00 00 00 00 00 91 [14:08:50]Write i2c OK [14:08:50]MH_I2C_Read... [14:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:50]Read from MH i2c: E2 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 0E 00 [14:08:50]MH_I2C_Read... [14:08:50]Read from MH i2c: E2 0E 00 11 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 29 [14:08:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:08:50]wFMCommunicate OK [14:08:50]SAM_PROTO_GetShiftState done [14:08:50]FM_GetShiftState done [14:08:50]req_shift_opened done [14:08:50]requested_item shift.open_date is exist - process it [14:08:50]req_shift_open_date [14:08:50]req_shift_open_date done [14:08:50]produce_requested_data done [14:08:50]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112290,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:08:50]process_action_free close_receipt [14:08:50]json_value_free [14:08:50]json_value_free done [14:08:50]process_json_proto returns [14:08:50]Send response to host [14:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112290,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:08:50]free response buf [14:08:50]execute_script done [14:08:50]execute_script returns [14:08:50]free content buf [14:08:50]Sock 9.Close socket [14:08:50]Sock 9.Thread stoped [14:08:54]OFD Sender: No OFD packet to send [14:08:59]OFD Sender: No OFD packet to send [14:09:04]OFD Sender: No OFD packet to send [14:09:09]OFD Sender: No OFD packet to send [14:09:14]OFD Sender: No OFD packet to send [14:09:19]OFD Sender: No OFD packet to send [14:09:24]OFD Sender: No OFD packet to send [14:09:29]OFD Sender: No OFD packet to send [14:09:34]OFD Sender: No OFD packet to send [14:09:39]OFD Sender: No OFD packet to send [14:09:44]OFD Sender: No OFD packet to send [14:09:49]OFD Sender: No OFD packet to send [14:09:54]OFD Sender: No OFD packet to send [14:09:59]OFD Sender: No OFD packet to send [14:10:04]OFD Sender: No OFD packet to send [14:10:09]OFD Sender: No OFD packet to send [14:10:14]OFD Sender: No OFD packet to send [14:10:19]OFD Sender: No OFD packet to send [14:10:24]OFD Sender: No OFD packet to send [14:10:29]OFD Sender: No OFD packet to send [14:10:34]accept exits with 8 [14:10:34]New connection [14:10:34]New thread 3066682724 created [14:10:34]Thread 3066826084 joined [14:10:34]Waiting for new connection... [14:10:34] Sock 8.Parse request [14:10:34]Sock 8.Check first char [14:10:34]Sock 8.First char is OK [14:10:34]request: POST /json_proto HTTP/1.0 [14:10:34]Method: POST [14:10:34]URL: /json_proto [14:10:34]Method is POST - this is cgi request [14:10:34]url: /json_proto [14:10:34]query_string will be loaded in cgi processing [14:10:34]execute_cgi json_proto POST (null) [14:10:34]execute_cgi path=json_proto method=POST [14:10:34]POST find Content-Length [14:10:34]Host: 172.17.96.197:8080 [14:10:34]Content-Length: 676 [14:10:34]Content-Type: application/json [14:10:34] [14:10:34]POST finish read [14:10:34]Found Content-Length = 676 [14:10:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:10:34]execute_script... [14:10: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)48604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:10:34]POST & json_proto [14:10:34]process_json_proto [14:10:34]json parsed OK: [14:10:34]protocol is kg_v1.0 [14:10:34]action value=close_receipt [14:10:34]process_action close_receipt [14:10:34]cmd_close_receipt [14:10:34]MH_GetDate [14:10:34]Write to MH i2c: F0 00 00 12 03 04 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 09 00 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: F0 09 00 12 03 00 DA E3 1B 66 E0 85 7F 64 93 [14:10:34]GetLastDocTimeStamp 1713103727 [14:10:34]current date 1713103834 [14:10:34]FM_GetShiftState [14:10:34]SAM_PROTO_GetShiftState [14:10:34]wFMCommunicate request_size=4 [14:10:34]MH_SAM_APDU [14:10:34]CAPDU: 80 13 01 00 [14:10:34]Write to MH i2c: E2 08 00 13 03 80 13 01 00 00 00 00 00 93 [14:10:34]Write i2c OK [14:10:34]MH_I2C_Read... [14:10:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:34]Read from MH i2c: E2 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: E2 0E 00 [14:10:34]MH_I2C_Read... [14:10:34]Read from MH i2c: E2 0E 00 13 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2B [14:10:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:10:34]wFMCommunicate OK [14:10:34]SAM_PROTO_GetShiftState done [14:10:34]FM_GetShiftState done [14:10:34]opened in 1713054696 [14:10:34]opened+sec_in_day 1713141096 [14:10:34]quantity*price = 50025 [14:10:34]sum+1 = 50026 [14:10:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 190 14.04.2024 14:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112291 ФПД: 33608779288293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141034&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112291&fm=33608779288293&tin=02508201610067®Number=0000000000094237&sum=50000 [14:10:35]StoreToDocumentArchive [14:10:35]shift 357 fd 112291 [14:10:35]save to /storage/0357/doc_00112291 [14:10:35]save last doc name /storage/0357/doc_00112291 to /storage/kkm_last_doc_name [14:10:35]save OK [14:10:35]Clear old archive folders... [14:10:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:10:35]tlvbuf is 00153520 [14:10:35]SAM_PROTO_ClearQueue [14:10:35]wFMCommunicate request_size=4 [14:10:35]MH_SAM_APDU [14:10:35]CAPDU: 80 09 00 00 [14:10:35]Write to MH i2c: E2 08 00 20 03 80 09 00 00 00 00 00 00 95 [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 20 03 00 90 00 97 [14:10:35]RAPDU: 90 00 [14:10:35]wFMCommunicate OK [14:10:35]SAM_PROTO_ClearQueue done [14:10:35]KKMCreateOFDPacket [14:10:35]OFDProtocolAddRootSTLVToBuf [14:10:35]FM_MakeSignedData [14:10:35]FM_MakeSignedData [14:10:35]SAM_PROTO_SignData [14:10:35]wFMCommunicate request_size=4 [14:10:35]MH_SAM_APDU [14:10:35]CAPDU: 80 0D 01 02 [14:10:35]Write to MH i2c: E2 08 00 21 03 80 0D 01 02 00 00 00 00 9D [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 21 03 00 90 00 98 [14:10:35]RAPDU: 90 00 [14:10:35]wFMCommunicate OK [14:10:35]wFMCommunicate request_size=255 [14:10:35]MH_SAM_APDU [14:10: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BE 00 00 00 F4 03 04 00 DA E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A3 B6 01 00 35 04 06 00 1E [14:10:35]Write to MH i2c: E2 02 01 22 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BE 00 00 00 F4 03 04 00 DA E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A3 B6 01 00 35 04 06 00 1E 00 00 1A [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 22 03 00 90 00 99 [14:10:35]RAPDU: 90 00 [14:10:35]wFMCommunicate OK [14:10:35]wFMCommunicate request_size=10 [14:10:35]MH_SAM_APDU [14:10:35]CAPDU: 80 0D 02 02 05 91 27 59 CE E5 [14:10:35]Write to MH i2c: E2 0D 00 23 03 80 0D 02 02 05 00 91 27 59 CE E5 00 00 6E [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 03 00 23 03 00 90 00 9A [14:10:35]RAPDU: 90 00 [14:10:35]wFMCommunicate OK [14:10:35]wFMCommunicate request_size=4 [14:10:35]MH_SAM_APDU [14:10:35]CAPDU: 80 0D 03 02 [14:10:35]Write to MH i2c: E2 08 00 24 03 80 0D 03 02 00 00 00 00 A2 [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 0B 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 0B 00 24 03 00 5E 97 FC 82 E0 CA DB 68 90 00 03 [14:10:35]RAPDU: 5E 97 FC 82 E0 CA DB 68 90 00 [14:10:35]wFMCommunicate OK [14:10:35]SAM_PROTO_SignData done [14:10:35]FM_MakeSignedData done [14:10:35]CreateOFDProtocolMessage [14:10:35]wFMCommunicate request_size=4 [14:10:35]MH_SAM_APDU [14:10:35]CAPDU: 80 11 00 00 [14:10:35]Write to MH i2c: E2 08 00 25 03 80 11 00 00 00 00 00 00 A2 [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:35]Read from MH i2c: E2 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 17 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: E2 17 00 25 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [14:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:10:35]wFMCommunicate OK [14:10:35]CreateOFDProtocolMessage done [14:10:35]OFDSenderStorePacket 112291 [14:10:35]StoreOFDPacket docnum=112291 [14:10:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3A 62 07 01 8D A8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BE 00 00 00 F4 03 04 00 DA E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A3 B6 01 00 35 04 06 00 1E 91 27 59 CE E5 5E 97 FC 82 E0 CA DB 68 [14:10:35]CheckFolder [14:10:35]dirname=/storage/ofd_packets [14:10:35]CheckFolder done [14:10:35]ProducePacketName [14:10:35]name=ofd_packets/00112291 [14:10:35]NVStorageSaveData ofd_packets/00112291 [14:10:35]File name is /storage/ofd_packets/00112291 [14:10:35]Write 301 bytes [14:10:35]NVStorageSaveData done [14:10:35]OFDSenderStorePacket done [14:10:35]KKMCreateOFDPacket done [14:10:35]NVStorageSaveData kkm_last_timestamp [14:10:35]File name is /storage/kkm_last_timestamp [14:10:35]Write 4 bytes [14:10:35]NVStorageSaveData done [14:10:35]ExternCall_PrintAddStr [14:10:35]wPrintStart [14:10:35]Write to MH i2c: 01 00 00 26 03 29 [14:10:35]Write i2c OK [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: 01 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: 01 07 00 [14:10:35]MH_I2C_Read... [14:10:35]Read from MH i2c: 01 07 00 26 03 00 00 00 00 00 FF 0F 3E [14:10:35]RasterBufferAndPrint [14:10:35]line Счет N : (1)48604 [14:10:35]line ИНН: 02508201610067 [14:10:35]line Контрольно-Кассовый Чек [14:10:35]line ПРОДАЖА [14:10:35]line ТРК (МРК, ГНК) : 11 [14:10:35]line Товар: 2710124130 [14:10:35]line Аи-92-К-5 [14:10:35]line 7.780 * 64.30 [14:10:35]line = 500.25 [14:10:35]line НДС 12% НСП 1% [14:10:35]line > о реализуемом товаре [14:10:35]line ОКРУГЛЕНИЕ: -0.25 [14:10:35]line ИТОГО: 500.00 [14:10:35]line Внесено: 500.00 [14:10:35]line СДАЧА: 0.00 [14:10:35]line НСП 1% : 4.43 [14:10:35]line НДС 12% : 53.12 [14:10:35]line Наличными: 500.00 [14:10:35]line Безнал.: 0.00 [14:10:35]line Место: АЗС № 47 "Партнер Нефть" [14:10:35]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:10:35]line СНО: Общий режим [14:10:35]line Чек 190 14.04.2024 14:10 [14:10:35]line Смена: 357 ФФД: 1.0 [14:10:35]line ЗНМ: 0300000138 [14:10:35]line РНМ: 0000000000094237 [14:10:35]line Версия ККМ: 001 [14:10:35]line ФМ: 0000000000875019 [14:10:35]line ФД: 112291 [14:10:35]line ФПД: 33608779288293 [14:10:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141034&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112291&fm=33608779288293&tin=02508201610067®Number=0000000000094237&sum=50000 [14:10:36]OFD Sender: Processing packet 112291 [packets to send 71, broken 70] [14:10:36]ProducePacketName [14:10:36]name=ofd_packets/00112291 [14:10:36]OFD Sender: To server: pG, [14:10:36]CommunicateWithHost lk.salyk.kg:30040 [14:10:36]ConnectInit lk.salyk.kg [14:10:36]written 0, free lines is 4095 [14:10:36]Connected sock=10 [14:10:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3A 62 07 01 8D A8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 BE 00 00 00 F4 03 04 00 DA E3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A3 B6 01 00 35 04 06 00 1E 91 27 59 CE E5 5E 97 FC 82 E0 CA DB 68 [14:10:36]Write to MH i2c: 01 00 00 51 03 54 [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 07 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 E4 0C 4B [14:10:36]RasterBufferAndPrint [14:10:36]line [14:10:36]line [14:10:36]line [14:10:36]line [14:10:36]line [14:10:36]written 0, free lines is 3306 [14:10:36]MH_Cut [14:10:36]Write to MH i2c: D1 01 00 58 03 01 2D [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: D1 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: D1 01 00 [14:10:36]MH_I2C_Read... [14:10:36]Read from MH i2c: D1 01 00 58 03 00 2C [14:10:36]Write to MH i2c: 01 00 00 59 03 5C [14:10:36]Write i2c OK [14:10:36]MH_I2C_Read... [14:10:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A5 0D 47 00 5D 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 38 37 35 30 31 39 10 04 04 00 A3 B6 01 00 F4 03 04 00 65 8B 1B 66 B6 04 01 00 00 9D 12 5A B6 BF 45 97 37 [14:10:36]CommunicateWithHost err = 0 [14:10:36]CheckOFDResponse [14:10:36]1017 (14) - 77093643461234 [14:10:36]1041 (16) - 0000000000875019 [14:10:36]1040 (4) - 112291 [14:10:36]1012 (4) - 14.04.2024 07:53 [14:10:36]1206 (1) - 0 [14:10:36]OFD Sender: Remove packet 112291 [14:10:36]ProducePacketName [14:10:36]name=ofd_packets/00112291 [14:10:36]NVStorageDeleteData [14:10:37]OFD Sender: No OFD packet to send [14:10:37]*** Cut start [14:10:37]*** Partial cut [14:10:37]*** CUTSNS_PIN = 1 [14:10:37]*** CUTSNS_PIN = 0 [14:10:37]*** Brake cut motor [14:10:38]Read from MH i2c: 01 [14:10:38]MH_I2C_Read... [14:10:38]*** Stop cut motor [14:10:38]*** Cut end [14:10:38]Read from MH i2c: 01 07 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 FF 0F 71 [14:10:38]process_action close_receipt done [14:10:38]requested_data is exist [14:10:38]produce_requested_data [14:10:38]requested_item fm.sn is exist - process it [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 11 00 00 [14:10:38]Write to MH i2c: E2 08 00 5A 03 80 11 00 00 00 00 00 00 D7 [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 17 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 17 00 5A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [14:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:10:38]wFMCommunicate OK [14:10:38]requested_item fd.num is exist - process it [14:10:38]SAM_PROTO_GetFieldsCounters [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 13 00 00 [14:10:38]Write to MH i2c: E2 08 00 5B 03 80 13 00 00 00 00 00 00 DA [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 62 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 62 00 5B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [14:10:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:10:38]wFMCommunicate OK [14:10:38]SAM_PROTO_GetFieldsCounters done [14:10:38]requested_item shift.num is exist - process it [14:10:38]requested_item shift.opened is exist - process it [14:10:38]req_shift_opened [14:10:38]FM_GetShiftState [14:10:38]SAM_PROTO_GetShiftState [14:10:38]wFMCommunicate request_size=4 [14:10:38]MH_SAM_APDU [14:10:38]CAPDU: 80 13 01 00 [14:10:38]Write to MH i2c: E2 08 00 5C 03 80 13 01 00 00 00 00 00 DC [14:10:38]Write i2c OK [14:10:38]MH_I2C_Read... [14:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:10:38]Read from MH i2c: E2 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 0E 00 [14:10:38]MH_I2C_Read... [14:10:38]Read from MH i2c: E2 0E 00 5C 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [14:10:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:10:38]wFMCommunicate OK [14:10:38]SAM_PROTO_GetShiftState done [14:10:38]FM_GetShiftState done [14:10:38]req_shift_opened done [14:10:38]requested_item shift.open_date is exist - process it [14:10:38]req_shift_open_date [14:10:38]req_shift_open_date done [14:10:38]produce_requested_data done [14:10:38]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112291,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:10:38]process_action_free close_receipt [14:10:38]json_value_free [14:10:38]json_value_free done [14:10:38]process_json_proto returns [14:10:38]Send response to host [14:10:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112291,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:10:38]free response buf [14:10:38]execute_script done [14:10:38]execute_script returns [14:10:38]free content buf [14:10:38]Sock 8.Close socket [14:10:38]Sock 8.Thread stoped [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:56]accept exits with 9 [14:12:56]New connection [14:12:56]New thread 3066826084 created [14:12:56]Thread 3066682724 joined [14:12:56]Waiting for new connection... [14:12:56] Sock 9.Parse request [14:12:56]Sock 9.Check first char [14:12:56]Sock 9.First char is OK [14:12:56]request: POST /json_proto HTTP/1.0 [14:12:56]Method: POST [14:12:56]URL: /json_proto [14:12:56]Method is POST - this is cgi request [14:12:56]url: /json_proto [14:12:56]query_string will be loaded in cgi processing [14:12:56]execute_cgi json_proto POST (null) [14:12:56]execute_cgi path=json_proto method=POST [14:12:56]POST find Content-Length [14:12:56]Host: 172.17.96.197:8080 [14:12:56]Content-Length: 681 [14:12:56]Content-Type: application/json [14:12:56] [14:12:56]POST finish read [14:12:56]Found Content-Length = 681 [14:12:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48606", "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.30, "quantity" : 15.560, "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" ] } } [14:12:56]execute_script... [14:12:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48606", "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.30, "quantity" : 15.560, "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" ] } } [14:12:56]POST & json_proto [14:12:56]process_json_proto [14:12:56]json parsed OK: [14:12:56]protocol is kg_v1.0 [14:12:56]action value=close_receipt [14:12:56]process_action close_receipt [14:12:56]cmd_close_receipt [14:12:56]MH_GetDate [14:12:56]Write to MH i2c: F0 00 00 5D 03 4F [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 09 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: F0 09 00 5D 03 00 68 E4 1B 66 E0 85 7F 64 6D [14:12:56]GetLastDocTimeStamp 1713103834 [14:12:56]current date 1713103976 [14:12:56]FM_GetShiftState [14:12:56]SAM_PROTO_GetShiftState [14:12:56]wFMCommunicate request_size=4 [14:12:56]MH_SAM_APDU [14:12:56]CAPDU: 80 13 01 00 [14:12:56]Write to MH i2c: E2 08 00 5E 03 80 13 01 00 00 00 00 00 DE [14:12:56]Write i2c OK [14:12:56]MH_I2C_Read... [14:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:12:56]Read from MH i2c: E2 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0E 00 [14:12:56]MH_I2C_Read... [14:12:56]Read from MH i2c: E2 0E 00 5E 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [14:12:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:12:56]wFMCommunicate OK [14:12:56]SAM_PROTO_GetShiftState done [14:12:56]FM_GetShiftState done [14:12:56]opened in 1713054696 [14:12:56]opened+sec_in_day 1713141096 [14:12:56]quantity*price = 100050 [14:12:56]sum+1 = 100052 [14:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 191 14.04.2024 14:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112292 ФПД: 101325619804192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141256&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112292&fm=101325619804192&tin=02508201610067®Number=0000000000094237&sum=100000 [14:12:57]StoreToDocumentArchive [14:12:57]shift 357 fd 112292 [14:12:57]save to /storage/0357/doc_00112292 [14:12:57]save last doc name /storage/0357/doc_00112292 to /storage/kkm_last_doc_name [14:12:57]save OK [14:12:57]Clear old archive folders... [14:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:12:57]tlvbuf is 00144CE0 [14:12:57]SAM_PROTO_ClearQueue [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 09 00 00 [14:12:57]Write to MH i2c: E2 08 00 6B 03 80 09 00 00 00 00 00 00 E0 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 6B 03 00 90 00 E2 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_ClearQueue done [14:12:57]KKMCreateOFDPacket [14:12:57]OFDProtocolAddRootSTLVToBuf [14:12:57]FM_MakeSignedData [14:12:57]FM_MakeSignedData [14:12:57]SAM_PROTO_SignData [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 01 02 [14:12:57]Write to MH i2c: E2 08 00 6C 03 80 0D 01 02 00 00 00 00 E8 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 6C 03 00 90 00 E3 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=255 [14:12:57]MH_SAM_APDU [14:12:57]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 3C 00 00 00 00 00 37 04 06 00 1E 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 BF 00 00 00 F4 03 04 00 68 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A4 B6 01 00 35 04 06 00 5C [14:12:57]Write to MH i2c: E2 02 01 6D 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 BF 00 00 00 F4 03 04 00 68 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A4 B6 01 00 35 04 06 00 5C 00 00 9E [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]OFD Sender: No OFD packet to send [14:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 6D 03 00 90 00 E4 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=10 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 02 02 05 27 B5 93 38 20 [14:12:57]Write to MH i2c: E2 0D 00 6E 03 80 0D 02 02 05 00 27 B5 93 38 20 00 00 BC [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 03 00 6E 03 00 90 00 E5 [14:12:57]RAPDU: 90 00 [14:12:57]wFMCommunicate OK [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 0D 03 02 [14:12:57]Write to MH i2c: E2 08 00 6F 03 80 0D 03 02 00 00 00 00 ED [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0B 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 0B 00 6F 03 00 A1 95 D8 06 B2 84 6F 3E 90 00 E5 [14:12:57]RAPDU: A1 95 D8 06 B2 84 6F 3E 90 00 [14:12:57]wFMCommunicate OK [14:12:57]SAM_PROTO_SignData done [14:12:57]FM_MakeSignedData done [14:12:57]CreateOFDProtocolMessage [14:12:57]wFMCommunicate request_size=4 [14:12:57]MH_SAM_APDU [14:12:57]CAPDU: 80 11 00 00 [14:12:57]Write to MH i2c: E2 08 00 70 03 80 11 00 00 00 00 00 00 ED [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:12:57]Read from MH i2c: E2 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: E2 17 00 70 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [14:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:12:57]wFMCommunicate OK [14:12:57]CreateOFDProtocolMessage done [14:12:57]OFDSenderStorePacket 112292 [14:12:57]StoreOFDPacket docnum=112292 [14:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6A D0 07 01 5F 59 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 3C 00 00 00 00 00 37 04 06 00 1E 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 BF 00 00 00 F4 03 04 00 68 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A4 B6 01 00 35 04 06 00 5C 27 B5 93 38 20 A1 95 D8 06 B2 84 6F 3E [14:12:57]CheckFolder [14:12:57]dirname=/storage/ofd_packets [14:12:57]CheckFolder done [14:12:57]ProducePacketName [14:12:57]name=ofd_packets/00112292 [14:12:57]NVStorageSaveData ofd_packets/00112292 [14:12:57]File name is /storage/ofd_packets/00112292 [14:12:57]Write 301 bytes [14:12:57]NVStorageSaveData done [14:12:57]OFDSenderStorePacket done [14:12:57]KKMCreateOFDPacket done [14:12:57]NVStorageSaveData kkm_last_timestamp [14:12:57]File name is /storage/kkm_last_timestamp [14:12:57]Write 4 bytes [14:12:57]NVStorageSaveData done [14:12:57]ExternCall_PrintAddStr [14:12:57]wPrintStart [14:12:57]Write to MH i2c: 01 00 00 71 03 74 [14:12:57]Write i2c OK [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 [14:12:57]MH_I2C_Read... [14:12:57]Read from MH i2c: 01 07 00 71 03 00 00 00 00 00 FF 0F 89 [14:12:57]RasterBufferAndPrint [14:12:57]line Счет N : (1)48606 [14:12:57]line ИНН: 02508201610067 [14:12:57]line Контрольно-Кассовый Чек [14:12:57]line ПРОДАЖА [14:12:57]line ТРК (МРК, ГНК) : 42 [14:12:57]line Товар: 2710124130 [14:12:57]line Аи-92-К-5 [14:12:57]line 15.560 * 64.30 [14:12:57]line = 1000.51 [14:12:57]line НДС 12% НСП 1% [14:12:57]line > о реализуемом товаре [14:12:57]line ОКРУГЛЕНИЕ: -0.51 [14:12:57]line ИТОГО: 1000.00 [14:12:57]line Внесено: 1000.00 [14:12:57]line СДАЧА: 0.00 [14:12:57]line НСП 1% : 8.85 [14:12:57]line НДС 12% : 106.25 [14:12:57]line Наличными: 1000.00 [14:12:57]line Безнал.: 0.00 [14:12:57]line Место: АЗС № 47 "Партнер Нефть" [14:12:57]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:12:57]line СНО: Общий режим [14:12:57]line Чек 191 14.04.2024 14:12 [14:12:57]line Смена: 357 ФФД: 1.0 [14:12:57]line ЗНМ: 0300000138 [14:12:57]line РНМ: 0000000000094237 [14:12:57]line Версия ККМ: 001 [14:12:57]line ФМ: 0000000000875019 [14:12:57]line ФД: 112292 [14:12:57]line ФПД: 101325619804192 [14:12:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141256&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112292&fm=101325619804192&tin=02508201610067®Number=0000000000094237&sum=100000 [14:12:58]OFD Sender: Processing packet 112292 [packets to send 71, broken 70] [14:12:58]ProducePacketName [14:12:58]name=ofd_packets/00112292 [14:12:58]OFD Sender: To server: pG, [14:12:58]CommunicateWithHost lk.salyk.kg:30040 [14:12:58]ConnectInit lk.salyk.kg [14:12:58]written 0, free lines is 4095 [14:12:58]Connected sock=11 [14:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6A D0 07 01 5F 59 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 3C 00 00 00 00 00 37 04 06 00 1E 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 BF 00 00 00 F4 03 04 00 68 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A4 B6 01 00 35 04 06 00 5C 27 B5 93 38 20 A1 95 D8 06 B2 84 6F 3E [14:12:58]Write to MH i2c: 01 00 00 9C 03 9F [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 07 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 E6 0C 98 [14:12:58]RasterBufferAndPrint [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]line [14:12:58]written 0, free lines is 3308 [14:12:58]MH_Cut [14:12:58]Write to MH i2c: D1 01 00 A3 03 01 78 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 01 00 [14:12:58]MH_I2C_Read... [14:12:58]Read from MH i2c: D1 01 00 A3 03 00 77 [14:12:58]Write to MH i2c: 01 00 00 A4 03 A7 [14:12:58]Write i2c OK [14:12:58]MH_I2C_Read... [14:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AF 8C 47 00 B1 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A4 B6 01 00 F4 03 04 00 F3 8B 1B 66 B6 04 01 00 00 4C 05 B7 13 86 2A CD EF [14:12:58]CommunicateWithHost err = 0 [14:12:58]CheckOFDResponse [14:12:58]1017 (14) - 77093643461234 [14:12:58]1041 (16) - 0000000000875019 [14:12:58]1040 (4) - 112292 [14:12:58]1012 (4) - 14.04.2024 07:55 [14:12:58]1206 (1) - 0 [14:12:58]OFD Sender: Remove packet 112292 [14:12:58]ProducePacketName [14:12:58]name=ofd_packets/00112292 [14:12:58]NVStorageDeleteData [14:12:59]OFD Sender: No OFD packet to send [14:12:59]*** Cut start [14:12:59]*** Partial cut [14:12:59]*** CUTSNS_PIN = 1 [14:12:59]*** CUTSNS_PIN = 0 [14:12:59]*** Brake cut motor [14:12:59]Read from MH i2c: 01 [14:12:59]MH_I2C_Read... [14:12:59]*** Stop cut motor [14:13:00]*** Cut end [14:13:00]Read from MH i2c: 01 07 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 FF 0F BC [14:13:00]process_action close_receipt done [14:13:00]requested_data is exist [14:13:00]produce_requested_data [14:13:00]requested_item fm.sn is exist - process it [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 11 00 00 [14:13:00]Write to MH i2c: E2 08 00 A5 03 80 11 00 00 00 00 00 00 22 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 17 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 17 00 A5 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 73 [14:13:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:13:00]wFMCommunicate OK [14:13:00]requested_item fd.num is exist - process it [14:13:00]SAM_PROTO_GetFieldsCounters [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 13 00 00 [14:13:00]Write to MH i2c: E2 08 00 A6 03 80 13 00 00 00 00 00 00 25 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 62 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 62 00 A6 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [14:13:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_GetFieldsCounters done [14:13:00]requested_item shift.num is exist - process it [14:13:00]requested_item shift.opened is exist - process it [14:13:00]req_shift_opened [14:13:00]FM_GetShiftState [14:13:00]SAM_PROTO_GetShiftState [14:13:00]wFMCommunicate request_size=4 [14:13:00]MH_SAM_APDU [14:13:00]CAPDU: 80 13 01 00 [14:13:00]Write to MH i2c: E2 08 00 A7 03 80 13 01 00 00 00 00 00 27 [14:13:00]Write i2c OK [14:13:00]MH_I2C_Read... [14:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:00]Read from MH i2c: E2 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 [14:13:00]MH_I2C_Read... [14:13:00]Read from MH i2c: E2 0E 00 A7 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BF [14:13:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:13:00]wFMCommunicate OK [14:13:00]SAM_PROTO_GetShiftState done [14:13:00]FM_GetShiftState done [14:13:00]req_shift_opened done [14:13:00]requested_item shift.open_date is exist - process it [14:13:00]req_shift_open_date [14:13:00]req_shift_open_date done [14:13:00]produce_requested_data done [14:13:00]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112292,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:13:00]process_action_free close_receipt [14:13:00]json_value_free [14:13:00]json_value_free done [14:13:00]process_json_proto returns [14:13:00]Send response to host [14:13:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112292,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:13:00]free response buf [14:13:00]execute_script done [14:13:00]execute_script returns [14:13:00]free content buf [14:13:00]Sock 9.Close socket [14:13:00]Sock 9.Thread stoped [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:16]accept exits with 8 [14:13:16]New connection [14:13:16]New thread 3066682724 created [14:13:16]Thread 3066826084 joined [14:13:16]Waiting for new connection... [14:13:16] Sock 8.Parse request [14:13:16]Sock 8.Check first char [14:13:16]Sock 8.First char is OK [14:13:16]request: POST /json_proto HTTP/1.0 [14:13:16]Method: POST [14:13:16]URL: /json_proto [14:13:16]Method is POST - this is cgi request [14:13:16]url: /json_proto [14:13:16]query_string will be loaded in cgi processing [14:13:16]execute_cgi json_proto POST (null) [14:13:16]execute_cgi path=json_proto method=POST [14:13:16]POST find Content-Length [14:13:16]Host: 172.17.96.197:8080 [14:13:16]Content-Length: 678 [14:13:16]Content-Type: application/json [14:13:16] [14:13:16]POST finish read [14:13:16]Found Content-Length = 678 [14:13:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48605", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:16]execute_script... [14:13: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)48605", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:13:16]POST & json_proto [14:13:16]process_json_proto [14:13:16]json parsed OK: [14:13:16]protocol is kg_v1.0 [14:13:16]action value=close_receipt [14:13:16]process_action close_receipt [14:13:16]cmd_close_receipt [14:13:16]MH_GetDate [14:13:16]Write to MH i2c: F0 00 00 A8 03 9A [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 09 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: F0 09 00 A8 03 00 7C E4 1B 66 E0 85 7F 64 CC [14:13:16]GetLastDocTimeStamp 1713103976 [14:13:16]current date 1713103996 [14:13:16]FM_GetShiftState [14:13:16]SAM_PROTO_GetShiftState [14:13:16]wFMCommunicate request_size=4 [14:13:16]MH_SAM_APDU [14:13:16]CAPDU: 80 13 01 00 [14:13:16]Write to MH i2c: E2 08 00 A9 03 80 13 01 00 00 00 00 00 29 [14:13:16]Write i2c OK [14:13:16]MH_I2C_Read... [14:13:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:16]Read from MH i2c: E2 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 [14:13:16]MH_I2C_Read... [14:13:16]Read from MH i2c: E2 0E 00 A9 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C1 [14:13:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:13:16]wFMCommunicate OK [14:13:16]SAM_PROTO_GetShiftState done [14:13:16]FM_GetShiftState done [14:13:16]opened in 1713054696 [14:13:16]opened+sec_in_day 1713141096 [14:13:16]quantity*price = 100056 [14:13:16]sum+1 = 100058 [14:13:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 192 14.04.2024 14:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112293 ФПД: 47365519747251 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141316&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112293&fm=47365519747251&tin=02508201610067®Number=0000000000094237&sum=100000 [14:13:17]StoreToDocumentArchive [14:13:17]shift 357 fd 112293 [14:13:17]save to /storage/0357/doc_00112293 [14:13:17]save last doc name /storage/0357/doc_00112293 to /storage/kkm_last_doc_name [14:13:17]save OK [14:13:17]Clear old archive folders... [14:13:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:13:17]tlvbuf is 0018A3E0 [14:13:17]SAM_PROTO_ClearQueue [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 09 00 00 [14:13:17]Write to MH i2c: E2 08 00 B6 03 80 09 00 00 00 00 00 00 2B [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 B6 03 00 90 00 2D [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_ClearQueue done [14:13:17]KKMCreateOFDPacket [14:13:17]OFDProtocolAddRootSTLVToBuf [14:13:17]FM_MakeSignedData [14:13:17]FM_MakeSignedData [14:13:17]SAM_PROTO_SignData [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 01 02 [14:13:17]Write to MH i2c: E2 08 00 B7 03 80 0D 01 02 00 00 00 00 33 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 B7 03 00 90 00 2E [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=255 [14:13:17]MH_SAM_APDU [14:13:17]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 C0 00 00 00 F4 03 04 00 7C E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A5 B6 01 00 35 04 06 00 2B 14 24 FA [14:13:17]Write to MH i2c: E2 02 01 B8 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 C0 00 00 00 F4 03 04 00 7C E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A5 B6 01 00 35 04 06 00 2B 14 24 FA 00 00 B3 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 B8 03 00 90 00 2F [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=7 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 02 02 02 A8 B3 [14:13:17]Write to MH i2c: E2 0A 00 B9 03 80 0D 02 02 02 00 A8 B3 00 00 95 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 03 00 B9 03 00 90 00 30 [14:13:17]RAPDU: 90 00 [14:13:17]wFMCommunicate OK [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 0D 03 02 [14:13:17]Write to MH i2c: E2 08 00 BA 03 80 0D 03 02 00 00 00 00 38 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 0B 00 BA 03 00 CB 94 5A 0D 92 9A 90 56 90 00 11 [14:13:17]RAPDU: CB 94 5A 0D 92 9A 90 56 90 00 [14:13:17]wFMCommunicate OK [14:13:17]SAM_PROTO_SignData done [14:13:17]FM_MakeSignedData done [14:13:17]CreateOFDProtocolMessage [14:13:17]wFMCommunicate request_size=4 [14:13:17]MH_SAM_APDU [14:13:17]CAPDU: 80 11 00 00 [14:13:17]Write to MH i2c: E2 08 00 BB 03 80 11 00 00 00 00 00 00 38 [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:17]Read from MH i2c: E2 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 17 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: E2 17 00 BB 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [14:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:13:17]wFMCommunicate OK [14:13:17]CreateOFDProtocolMessage done [14:13:17]OFDSenderStorePacket 112293 [14:13:17]StoreOFDPacket docnum=112293 [14:13:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 E8 CD 04 01 7E 90 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 C0 00 00 00 F4 03 04 00 7C E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A5 B6 01 00 35 04 06 00 2B 14 24 FA A8 B3 CB 94 5A 0D 92 9A 90 56 [14:13:17]CheckFolder [14:13:17]dirname=/storage/ofd_packets [14:13:17]CheckFolder done [14:13:17]ProducePacketName [14:13:17]name=ofd_packets/00112293 [14:13:17]NVStorageSaveData ofd_packets/00112293 [14:13:17]File name is /storage/ofd_packets/00112293 [14:13:17]Write 298 bytes [14:13:17]NVStorageSaveData done [14:13:17]OFDSenderStorePacket done [14:13:17]KKMCreateOFDPacket done [14:13:17]NVStorageSaveData kkm_last_timestamp [14:13:17]File name is /storage/kkm_last_timestamp [14:13:17]Write 4 bytes [14:13:17]NVStorageSaveData done [14:13:17]ExternCall_PrintAddStr [14:13:17]wPrintStart [14:13:17]Write to MH i2c: 01 00 00 BC 03 BF [14:13:17]Write i2c OK [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 07 00 [14:13:17]MH_I2C_Read... [14:13:17]Read from MH i2c: 01 07 00 BC 03 00 00 00 00 00 FF 0F D4 [14:13:17]RasterBufferAndPrint [14:13:17]line Счет N : (1)48605 [14:13:17]line ИНН: 02508201610067 [14:13:17]line Контрольно-Кассовый Чек [14:13:17]line ПРОДАЖА [14:13:17]line ТРК (МРК, ГНК) : 51 [14:13:17]line Товар: 2710194210 [14:13:17]line ДТ-К-5 [14:13:17]line 13.820 * 72.40 [14:13:17]line = 1000.57 [14:13:17]line НДС 12% НСП 1% [14:13:17]line > о реализуемом товаре [14:13:17]line ОКРУГЛЕНИЕ: -0.57 [14:13:17]line ИТОГО: 1000.00 [14:13:17]line Внесено: 1000.00 [14:13:17]line СДАЧА: 0.00 [14:13:17]line НСП 1% : 8.85 [14:13:17]line НДС 12% : 106.25 [14:13:17]line Наличными: 1000.00 [14:13:17]line Безнал.: 0.00 [14:13:17]line Место: АЗС № 47 "Партнер Нефть" [14:13:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:13:17]line СНО: Общий режим [14:13:17]line Чек 192 14.04.2024 14:13 [14:13:17]line Смена: 357 ФФД: 1.0 [14:13:17]line ЗНМ: 0300000138 [14:13:17]line РНМ: 0000000000094237 [14:13:17]line Версия ККМ: 001 [14:13:17]line ФМ: 0000000000875019 [14:13:17]line ФД: 112293 [14:13:17]line ФПД: 47365519747251 [14:13:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141316&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112293&fm=47365519747251&tin=02508201610067®Number=0000000000094237&sum=100000 [14:13:18]OFD Sender: Processing packet 112293 [packets to send 71, broken 70] [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00112293 [14:13:18]OFD Sender: To server: pG, [14:13:18]CommunicateWithHost lk.salyk.kg:30040 [14:13:18]ConnectInit lk.salyk.kg [14:13:18]written 0, free lines is 4095 [14:13:18]Connected sock=10 [14:13:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 E8 CD 04 01 7E 90 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 C0 00 00 00 F4 03 04 00 7C E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A5 B6 01 00 35 04 06 00 2B 14 24 FA A8 B3 CB 94 5A 0D 92 9A 90 56 [14:13:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 09 CB 47 00 71 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A5 B6 01 00 F4 03 04 00 07 8C 1B 66 B6 04 01 00 00 48 61 EF 95 97 6D D3 6B [14:13:18]CommunicateWithHost err = 0 [14:13:18]CheckOFDResponse [14:13:18]1017 (14) - 77093643461234 [14:13:18]1041 (16) - 0000000000875019 [14:13:18]1040 (4) - 112293 [14:13:18]1012 (4) - 14.04.2024 07:55 [14:13:18]1206 (1) - 0 [14:13:18]OFD Sender: Remove packet 112293 [14:13:18]ProducePacketName [14:13:18]name=ofd_packets/00112293 [14:13:18]NVStorageDeleteData [14:13:18]Write to MH i2c: 01 00 00 E7 03 EA [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 EE 0C EB [14:13:18]RasterBufferAndPrint [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]line [14:13:18]written 0, free lines is 3316 [14:13:18]MH_Cut [14:13:18]Write to MH i2c: D1 01 00 EE 03 01 C3 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 01 00 [14:13:18]MH_I2C_Read... [14:13:18]Read from MH i2c: D1 01 00 EE 03 00 C2 [14:13:18]Write to MH i2c: 01 00 00 EF 03 F2 [14:13:18]Write i2c OK [14:13:18]MH_I2C_Read... [14:13:19]OFD Sender: No OFD packet to send [14:13:19]*** Cut start [14:13:19]*** Partial cut [14:13:19]*** CUTSNS_PIN = 1 [14:13:19]*** CUTSNS_PIN = 0 [14:13:19]*** Brake cut motor [14:13:19]Read from MH i2c: 01 [14:13:19]MH_I2C_Read... [14:13:19]*** Stop cut motor [14:13:19]*** Cut end [14:13:19]Read from MH i2c: 01 07 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: 01 07 00 EF 03 00 00 00 00 00 FF 0F 07 [14:13:19]process_action close_receipt done [14:13:19]requested_data is exist [14:13:19]produce_requested_data [14:13:19]requested_item fm.sn is exist - process it [14:13:19]wFMCommunicate request_size=4 [14:13:19]MH_SAM_APDU [14:13:19]CAPDU: 80 11 00 00 [14:13:19]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:19]Read from MH i2c: E2 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 17 00 [14:13:19]MH_I2C_Read... [14:13:19]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BE [14:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:13:19]wFMCommunicate OK [14:13:19]requested_item fd.num is exist - process it [14:13:19]SAM_PROTO_GetFieldsCounters [14:13:19]wFMCommunicate request_size=4 [14:13:19]MH_SAM_APDU [14:13:19]CAPDU: 80 13 00 00 [14:13:19]Write to MH i2c: E2 08 00 F1 03 80 13 00 00 00 00 00 00 70 [14:13:19]Write i2c OK [14:13:19]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 62 00 F1 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [14:13:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetFieldsCounters done [14:13:20]requested_item shift.num is exist - process it [14:13:20]requested_item shift.opened is exist - process it [14:13:20]req_shift_opened [14:13:20]FM_GetShiftState [14:13:20]SAM_PROTO_GetShiftState [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 01 00 [14:13:20]Write to MH i2c: E2 08 00 F2 03 80 13 01 00 00 00 00 00 72 [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 F2 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0A [14:13:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetShiftState done [14:13:20]FM_GetShiftState done [14:13:20]req_shift_opened done [14:13:20]requested_item shift.open_date is exist - process it [14:13:20]req_shift_open_date [14:13:20]req_shift_open_date done [14:13:20]produce_requested_data done [14:13:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112293,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:13:20]process_action_free close_receipt [14:13:20]json_value_free [14:13:20]json_value_free done [14:13:20]process_json_proto returns [14:13:20]Send response to host [14:13:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112293,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:13:20]free response buf [14:13:20]execute_script done [14:13:20]execute_script returns [14:13:20]free content buf [14:13:20]Sock 8.Close socket [14:13:20]Sock 8.Thread stoped [14:13:20]accept exits with 9 [14:13:20]New connection [14:13:20]New thread 3066826084 created [14:13:20]Thread 3066682724 joined [14:13:20]Waiting for new connection... [14:13:20] Sock 9.Parse request [14:13:20]Sock 9.Check first char [14:13:20]Sock 9.First char is OK [14:13:20]request: POST /json_proto HTTP/1.0 [14:13:20]Method: POST [14:13:20]URL: /json_proto [14:13:20]Method is POST - this is cgi request [14:13:20]url: /json_proto [14:13:20]query_string will be loaded in cgi processing [14:13:20]execute_cgi json_proto POST (null) [14:13:20]execute_cgi path=json_proto method=POST [14:13:20]POST find Content-Length [14:13:20]Host: 172.17.96.197:8080 [14:13:20]Content-Length: 676 [14:13:20]Content-Type: application/json [14:13:20] [14:13:20]POST finish read [14:13:20]Found Content-Length = 676 [14:13:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48607", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:13:20]execute_script... [14:13:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48607", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:13:20]POST & json_proto [14:13:20]process_json_proto [14:13:20]json parsed OK: [14:13:20]protocol is kg_v1.0 [14:13:20]action value=close_receipt [14:13:20]process_action close_receipt [14:13:20]cmd_close_receipt [14:13:20]MH_GetDate [14:13:20]Write to MH i2c: F0 00 00 F3 03 E5 [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: F0 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: F0 09 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: F0 09 00 F3 03 00 80 E4 1B 66 E0 85 7F 64 1B [14:13:20]GetLastDocTimeStamp 1713103996 [14:13:20]current date 1713104000 [14:13:20]FM_GetShiftState [14:13:20]SAM_PROTO_GetShiftState [14:13:20]wFMCommunicate request_size=4 [14:13:20]MH_SAM_APDU [14:13:20]CAPDU: 80 13 01 00 [14:13:20]Write to MH i2c: E2 08 00 F4 03 80 13 01 00 00 00 00 00 74 [14:13:20]Write i2c OK [14:13:20]MH_I2C_Read... [14:13:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:20]Read from MH i2c: E2 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 [14:13:20]MH_I2C_Read... [14:13:20]Read from MH i2c: E2 0E 00 F4 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0C [14:13:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:13:20]wFMCommunicate OK [14:13:20]SAM_PROTO_GetShiftState done [14:13:20]FM_GetShiftState done [14:13:20]opened in 1713054696 [14:13:20]opened+sec_in_day 1713141096 [14:13:20]quantity*price = 50025 [14:13:20]sum+1 = 50026 [14:13:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 193 14.04.2024 14:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112294 ФПД: 97468295636082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141320&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112294&fm=97468295636082&tin=02508201610067®Number=0000000000094237&sum=50000 [14:13:21]StoreToDocumentArchive [14:13:21]shift 357 fd 112294 [14:13:21]save to /storage/0357/doc_00112294 [14:13:21]save last doc name /storage/0357/doc_00112294 to /storage/kkm_last_doc_name [14:13:21]save OK [14:13:21]Clear old archive folders... [14:13:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:13:21]tlvbuf is 0016DB70 [14:13:21]SAM_PROTO_ClearQueue [14:13:21]wFMCommunicate request_size=4 [14:13:21]MH_SAM_APDU [14:13:21]CAPDU: 80 09 00 00 [14:13:21]Write to MH i2c: E2 08 00 01 04 80 09 00 00 00 00 00 00 77 [14:13:21]Write i2c OK [14:13:21]MH_I2C_Read... [14:13:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:21]Read from MH i2c: E2 [14:13:21]MH_I2C_Read... [14:13:21]Read from MH i2c: E2 03 00 [14:13:21]MH_I2C_Read... [14:13:21]Read from MH i2c: E2 03 00 01 04 00 90 00 79 [14:13:21]RAPDU: 90 00 [14:13:21]wFMCommunicate OK [14:13:21]SAM_PROTO_ClearQueue done [14:13:21]KKMCreateOFDPacket [14:13:21]OFDProtocolAddRootSTLVToBuf [14:13:21]FM_MakeSignedData [14:13:21]FM_MakeSignedData [14:13:21]SAM_PROTO_SignData [14:13:21]wFMCommunicate request_size=4 [14:13:21]MH_SAM_APDU [14:13:21]CAPDU: 80 0D 01 02 [14:13:21]Write to MH i2c: E2 08 00 02 04 80 0D 01 02 00 00 00 00 7F [14:13:21]Write i2c OK [14:13:21]MH_I2C_Read... [14:13:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:21]Read from MH i2c: E2 [14:13:21]MH_I2C_Read... [14:13:21]Read from MH i2c: E2 03 00 [14:13:21]MH_I2C_Read... [14:13:21]Read from MH i2c: E2 03 00 02 04 00 90 00 7A [14:13:21]RAPDU: 90 00 [14:13:21]wFMCommunicate OK [14:13:21]wFMCommunicate request_size=255 [14:13:21]MH_SAM_APDU [14:13: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C1 00 00 00 F4 03 04 00 80 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A6 B6 01 00 35 04 06 00 58 [14:13:21]Write to MH i2c: E2 02 01 03 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C1 00 00 00 F4 03 04 00 80 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A6 B6 01 00 35 04 06 00 58 00 00 E3 [14:13:21]Write i2c OK [14:13:21]MH_I2C_Read... [14:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:22]Read from MH i2c: E2 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 03 00 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 03 00 03 04 00 90 00 7B [14:13:22]RAPDU: 90 00 [14:13:22]wFMCommunicate OK [14:13:22]wFMCommunicate request_size=10 [14:13:22]MH_SAM_APDU [14:13:22]CAPDU: 80 0D 02 02 05 A5 9B 23 64 72 [14:13:22]Write to MH i2c: E2 0D 00 04 04 80 0D 02 02 05 00 A5 9B 23 64 72 00 00 C5 [14:13:22]Write i2c OK [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 [14:13:22]MH_I2C_Read... [14:13:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:13:22]Read from MH i2c: E2 03 00 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 03 00 04 04 00 90 00 7C [14:13:22]RAPDU: 90 00 [14:13:22]wFMCommunicate OK [14:13:22]wFMCommunicate request_size=4 [14:13:22]MH_SAM_APDU [14:13:22]CAPDU: 80 0D 03 02 [14:13:22]Write to MH i2c: E2 08 00 05 04 80 0D 03 02 00 00 00 00 84 [14:13:22]Write i2c OK [14:13:22]MH_I2C_Read... [14:13:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:13:22]Read from MH i2c: E2 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 0B 00 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 0B 00 05 04 00 F8 BD 64 AA 0D 65 CC B7 90 00 3D [14:13:22]RAPDU: F8 BD 64 AA 0D 65 CC B7 90 00 [14:13:22]wFMCommunicate OK [14:13:22]SAM_PROTO_SignData done [14:13:22]FM_MakeSignedData done [14:13:22]CreateOFDProtocolMessage [14:13:22]wFMCommunicate request_size=4 [14:13:22]MH_SAM_APDU [14:13:22]CAPDU: 80 11 00 00 [14:13:22]Write to MH i2c: E2 08 00 06 04 80 11 00 00 00 00 00 00 84 [14:13:22]Write i2c OK [14:13:22]MH_I2C_Read... [14:13:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:22]Read from MH i2c: E2 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 17 00 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: E2 17 00 06 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [14:13:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:13:22]wFMCommunicate OK [14:13:22]CreateOFDProtocolMessage done [14:13:22]OFDSenderStorePacket 112294 [14:13:22]StoreOFDPacket docnum=112294 [14:13:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E0 ED 07 01 70 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C1 00 00 00 F4 03 04 00 80 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A6 B6 01 00 35 04 06 00 58 A5 9B 23 64 72 F8 BD 64 AA 0D 65 CC B7 [14:13:22]CheckFolder [14:13:22]dirname=/storage/ofd_packets [14:13:22]CheckFolder done [14:13:22]ProducePacketName [14:13:22]name=ofd_packets/00112294 [14:13:22]NVStorageSaveData ofd_packets/00112294 [14:13:22]File name is /storage/ofd_packets/00112294 [14:13:22]Write 301 bytes [14:13:22]NVStorageSaveData done [14:13:22]OFDSenderStorePacket done [14:13:22]KKMCreateOFDPacket done [14:13:22]NVStorageSaveData kkm_last_timestamp [14:13:22]File name is /storage/kkm_last_timestamp [14:13:22]Write 4 bytes [14:13:22]NVStorageSaveData done [14:13:22]ExternCall_PrintAddStr [14:13:22]wPrintStart [14:13:22]Write to MH i2c: 01 00 00 07 04 0B [14:13:22]Write i2c OK [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: 01 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: 01 07 00 [14:13:22]MH_I2C_Read... [14:13:22]Read from MH i2c: 01 07 00 07 04 00 00 00 00 00 FF 0F 20 [14:13:22]RasterBufferAndPrint [14:13:22]line Счет N : (1)48607 [14:13:22]line ИНН: 02508201610067 [14:13:22]line Контрольно-Кассовый Чек [14:13:22]line ПРОДАЖА [14:13:22]line ТРК (МРК, ГНК) : 32 [14:13:22]line Товар: 2710124130 [14:13:22]line Аи-92-К-5 [14:13:22]line 7.780 * 64.30 [14:13:22]line = 500.25 [14:13:22]line НДС 12% НСП 1% [14:13:22]line > о реализуемом товаре [14:13:22]line ОКРУГЛЕНИЕ: -0.25 [14:13:22]line ИТОГО: 500.00 [14:13:22]line Внесено: 500.00 [14:13:22]line СДАЧА: 0.00 [14:13:22]line НСП 1% : 4.43 [14:13:22]line НДС 12% : 53.12 [14:13:22]line Наличными: 500.00 [14:13:22]line Безнал.: 0.00 [14:13:22]line Место: АЗС № 47 "Партнер Нефть" [14:13:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:13:22]line СНО: Общий режим [14:13:22]line Чек 193 14.04.2024 14:13 [14:13:22]line Смена: 357 ФФД: 1.0 [14:13:22]line ЗНМ: 0300000138 [14:13:22]line РНМ: 0000000000094237 [14:13:22]line Версия ККМ: 001 [14:13:22]line ФМ: 0000000000875019 [14:13:22]line ФД: 112294 [14:13:22]line ФПД: 97468295636082 [14:13:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141320&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112294&fm=97468295636082&tin=02508201610067®Number=0000000000094237&sum=50000 [14:13:22]OFD Sender: Processing packet 112294 [packets to send 71, broken 70] [14:13:22]ProducePacketName [14:13:22]name=ofd_packets/00112294 [14:13:22]written 0, free lines is 4095 [14:13:22]OFD Sender: To server: pG, [14:13:22]CommunicateWithHost lk.salyk.kg:30040 [14:13:22]ConnectInit lk.salyk.kg [14:13:23]Connected sock=10 [14:13:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E0 ED 07 01 70 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C1 00 00 00 F4 03 04 00 80 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A6 B6 01 00 35 04 06 00 58 A5 9B 23 64 72 F8 BD 64 AA 0D 65 CC B7 [14:13:23]Write to MH i2c: 01 00 00 32 04 36 [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: 01 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: 01 07 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: 01 07 00 32 04 00 00 00 00 00 F7 0C 40 [14:13:23]RasterBufferAndPrint [14:13:23]line [14:13:23]line [14:13:23]line [14:13:23]line [14:13:23]line [14:13:23]written 0, free lines is 3332 [14:13:23]MH_Cut [14:13:23]Write to MH i2c: D1 01 00 39 04 01 0F [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: D1 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: D1 01 00 [14:13:23]MH_I2C_Read... [14:13:23]Read from MH i2c: D1 01 00 39 04 00 0E [14:13:23]Write to MH i2c: 01 00 00 3A 04 3E [14:13:23]Write i2c OK [14:13:23]MH_I2C_Read... [14:13:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 94 A3 47 00 D1 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 38 37 35 30 31 39 10 04 04 00 A6 B6 01 00 F4 03 04 00 0C 8C 1B 66 B6 04 01 00 00 AF 39 34 FE D9 4D 14 28 [14:13:23]CommunicateWithHost err = 0 [14:13:23]CheckOFDResponse [14:13:23]1017 (14) - 77093643461234 [14:13:23]1041 (16) - 0000000000875019 [14:13:23]1040 (4) - 112294 [14:13:23]1012 (4) - 14.04.2024 07:55 [14:13:23]1206 (1) - 0 [14:13:23]OFD Sender: Remove packet 112294 [14:13:23]ProducePacketName [14:13:23]name=ofd_packets/00112294 [14:13:23]NVStorageDeleteData [14:13:23]OFD Sender: No OFD packet to send [14:13:24]*** Cut start [14:13:24]*** Partial cut [14:13:24]*** CUTSNS_PIN = 1 [14:13:24]*** CUTSNS_PIN = 0 [14:13:24]*** Brake cut motor [14:13:24]Read from MH i2c: 01 [14:13:24]MH_I2C_Read... [14:13:24]*** Stop cut motor [14:13:24]*** Cut end [14:13:24]Read from MH i2c: 01 07 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: 01 07 00 3A 04 00 00 00 00 00 FF 0F 53 [14:13:24]process_action close_receipt done [14:13:24]requested_data is exist [14:13:24]produce_requested_data [14:13:24]requested_item fm.sn is exist - process it [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 11 00 00 [14:13:24]Write to MH i2c: E2 08 00 3B 04 80 11 00 00 00 00 00 00 B9 [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 17 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 17 00 3B 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0A [14:13:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:13:24]wFMCommunicate OK [14:13:24]requested_item fd.num is exist - process it [14:13:24]SAM_PROTO_GetFieldsCounters [14:13:24]wFMCommunicate request_size=4 [14:13:24]MH_SAM_APDU [14:13:24]CAPDU: 80 13 00 00 [14:13:24]Write to MH i2c: E2 08 00 3C 04 80 13 00 00 00 00 00 00 BC [14:13:24]Write i2c OK [14:13:24]MH_I2C_Read... [14:13:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:13:24]Read from MH i2c: E2 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 62 00 [14:13:24]MH_I2C_Read... [14:13:24]Read from MH i2c: E2 62 00 3C 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [14:13:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_GetFieldsCounters done [14:13:25]requested_item shift.num is exist - process it [14:13:25]requested_item shift.opened is exist - process it [14:13:25]req_shift_opened [14:13:25]FM_GetShiftState [14:13:25]SAM_PROTO_GetShiftState [14:13:25]wFMCommunicate request_size=4 [14:13:25]MH_SAM_APDU [14:13:25]CAPDU: 80 13 01 00 [14:13:25]Write to MH i2c: E2 08 00 3D 04 80 13 01 00 00 00 00 00 BE [14:13:25]Write i2c OK [14:13:25]MH_I2C_Read... [14:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:25]Read from MH i2c: E2 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0E 00 [14:13:25]MH_I2C_Read... [14:13:25]Read from MH i2c: E2 0E 00 3D 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 56 [14:13:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:13:25]wFMCommunicate OK [14:13:25]SAM_PROTO_GetShiftState done [14:13:25]FM_GetShiftState done [14:13:25]req_shift_opened done [14:13:25]requested_item shift.open_date is exist - process it [14:13:25]req_shift_open_date [14:13:25]req_shift_open_date done [14:13:25]produce_requested_data done [14:13:25]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112294,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:13:25]process_action_free close_receipt [14:13:25]json_value_free [14:13:25]json_value_free done [14:13:25]process_json_proto returns [14:13:25]Send response to host [14:13:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112294,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:13:25]free response buf [14:13:25]execute_script done [14:13:25]execute_script returns [14:13:25]free content buf [14:13:25]Sock 9.Close socket [14:13:25]Sock 9.Thread stoped [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]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:09]accept exits with 8 [14:14:09]New connection [14:14:09]New thread 3066682724 created [14:14:09]Thread 3066826084 joined [14:14:09]Waiting for new connection... [14:14:09] Sock 8.Parse request [14:14:09]Sock 8.Check first char [14:14:09]Sock 8.First char is OK [14:14:09]request: POST /json_proto HTTP/1.0 [14:14:09]Method: POST [14:14:09]URL: /json_proto [14:14:09]Method is POST - this is cgi request [14:14:09]url: /json_proto [14:14:09]query_string will be loaded in cgi processing [14:14:09]execute_cgi json_proto POST (null) [14:14:09]execute_cgi path=json_proto method=POST [14:14:09]POST find Content-Length [14:14:09]Host: 172.17.96.197:8080 [14:14:09]Content-Length: 676 [14:14:09]Content-Type: application/json [14:14:09] [14:14:09]POST finish read [14:14:09]Found Content-Length = 676 [14:14:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.870, "sum" : 120.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:09]execute_script... [14:14: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)48608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.870, "sum" : 120.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 120.00, "total" : 120.00, "payments": [ { "type": 0, "sum" : 120.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:09]POST & json_proto [14:14:09]process_json_proto [14:14:09]json parsed OK: [14:14:09]protocol is kg_v1.0 [14:14:09]action value=close_receipt [14:14:09]process_action close_receipt [14:14:09]cmd_close_receipt [14:14:09]MH_GetDate [14:14:09]Write to MH i2c: F0 00 00 3E 04 31 [14:14:09]Write i2c OK [14:14:09]MH_I2C_Read... [14:14:09]Read from MH i2c: F0 [14:14:09]MH_I2C_Read... [14:14:09]Read from MH i2c: F0 09 00 [14:14:09]MH_I2C_Read... [14:14:09]Read from MH i2c: F0 09 00 3E 04 00 B2 E4 1B 66 E0 85 7F 64 99 [14:14:09]GetLastDocTimeStamp 1713104000 [14:14:09]current date 1713104050 [14:14:09]FM_GetShiftState [14:14:09]SAM_PROTO_GetShiftState [14:14:09]wFMCommunicate request_size=4 [14:14:09]MH_SAM_APDU [14:14:09]CAPDU: 80 13 01 00 [14:14:09]Write to MH i2c: E2 08 00 3F 04 80 13 01 00 00 00 00 00 C0 [14:14:09]Write i2c OK [14:14:09]MH_I2C_Read... [14:14:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:09]Read from MH i2c: E2 [14:14:09]MH_I2C_Read... [14:14:09]Read from MH i2c: E2 0E 00 [14:14:09]MH_I2C_Read... [14:14:09]Read from MH i2c: E2 0E 00 3F 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [14:14:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:14:09]wFMCommunicate OK [14:14:09]SAM_PROTO_GetShiftState done [14:14:09]FM_GetShiftState done [14:14:09]opened in 1713054696 [14:14:09]opened+sec_in_day 1713141096 [14:14:09]quantity*price = 12024 [14:14:09]sum+1 = 12025 [14:14:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 120.00 Внесено: 120.00 СДАЧА: 0.00 НСП 1% : 1.06 НДС 12% : 12.77 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 194 14.04.2024 14:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112295 ФПД: 223180765881478 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112295&fm=223180765881478&tin=02508201610067®Number=0000000000094237&sum=12000 [14:14:10]StoreToDocumentArchive [14:14:10]shift 357 fd 112295 [14:14:10]save to /storage/0357/doc_00112295 [14:14:10]save last doc name /storage/0357/doc_00112295 to /storage/kkm_last_doc_name [14:14:10]save OK [14:14:10]Clear old archive folders... [14:14:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:10]tlvbuf is 0013B150 [14:14:10]SAM_PROTO_ClearQueue [14:14:10]wFMCommunicate request_size=4 [14:14:10]MH_SAM_APDU [14:14:10]CAPDU: 80 09 00 00 [14:14:10]Write to MH i2c: E2 08 00 4C 04 80 09 00 00 00 00 00 00 C2 [14:14:10]Write i2c OK [14:14:10]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 4C 04 00 90 00 C4 [14:14:11]RAPDU: 90 00 [14:14:11]wFMCommunicate OK [14:14:11]SAM_PROTO_ClearQueue done [14:14:11]KKMCreateOFDPacket [14:14:11]OFDProtocolAddRootSTLVToBuf [14:14:11]FM_MakeSignedData [14:14:11]FM_MakeSignedData [14:14:11]SAM_PROTO_SignData [14:14:11]wFMCommunicate request_size=4 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 0D 01 02 [14:14:11]Write to MH i2c: E2 08 00 4D 04 80 0D 01 02 00 00 00 00 CA [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 4D 04 00 90 00 C5 [14:14:11]RAPDU: 90 00 [14:14:11]wFMCommunicate OK [14:14:11]wFMCommunicate request_size=255 [14:14:11]MH_SAM_APDU [14:14:11]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 4E 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 B2 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A7 B6 01 00 35 04 06 00 CA [14:14:11]Write to MH i2c: E2 02 01 4E 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 4E 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 B2 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A7 B6 01 00 35 04 06 00 CA 00 00 72 [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 4E 04 00 90 00 C6 [14:14:11]RAPDU: 90 00 [14:14:11]wFMCommunicate OK [14:14:11]wFMCommunicate request_size=10 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 0D 02 02 05 FB 52 45 64 86 [14:14:11]Write to MH i2c: E2 0D 00 4F 04 80 0D 02 02 05 00 FB 52 45 64 86 00 00 53 [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 03 00 4F 04 00 90 00 C7 [14:14:11]RAPDU: 90 00 [14:14:11]wFMCommunicate OK [14:14:11]wFMCommunicate request_size=4 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 0D 03 02 [14:14:11]Write to MH i2c: E2 08 00 50 04 80 0D 03 02 00 00 00 00 CF [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0B 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 0B 00 50 04 00 88 2F C2 5F 41 E4 DB CC 90 00 74 [14:14:11]RAPDU: 88 2F C2 5F 41 E4 DB CC 90 00 [14:14:11]wFMCommunicate OK [14:14:11]SAM_PROTO_SignData done [14:14:11]FM_MakeSignedData done [14:14:11]CreateOFDProtocolMessage [14:14:11]wFMCommunicate request_size=4 [14:14:11]MH_SAM_APDU [14:14:11]CAPDU: 80 11 00 00 [14:14:11]Write to MH i2c: E2 08 00 51 04 80 11 00 00 00 00 00 00 CF [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:11]Read from MH i2c: E2 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 17 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: E2 17 00 51 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 20 [14:14:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:14:11]wFMCommunicate OK [14:14:11]CreateOFDProtocolMessage done [14:14:11]OFDSenderStorePacket 112295 [14:14:11]StoreOFDPacket docnum=112295 [14:14:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EB 5D 07 01 E8 0B 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 4E 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 B2 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A7 B6 01 00 35 04 06 00 CA FB 52 45 64 86 88 2F C2 5F 41 E4 DB CC [14:14:11]CheckFolder [14:14:11]dirname=/storage/ofd_packets [14:14:11]CheckFolder done [14:14:11]ProducePacketName [14:14:11]name=ofd_packets/00112295 [14:14:11]NVStorageSaveData ofd_packets/00112295 [14:14:11]File name is /storage/ofd_packets/00112295 [14:14:11]Write 301 bytes [14:14:11]NVStorageSaveData done [14:14:11]OFDSenderStorePacket done [14:14:11]KKMCreateOFDPacket done [14:14:11]NVStorageSaveData kkm_last_timestamp [14:14:11]File name is /storage/kkm_last_timestamp [14:14:11]Write 4 bytes [14:14:11]NVStorageSaveData done [14:14:11]ExternCall_PrintAddStr [14:14:11]wPrintStart [14:14:11]Write to MH i2c: 01 00 00 52 04 56 [14:14:11]Write i2c OK [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: 01 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: 01 07 00 [14:14:11]MH_I2C_Read... [14:14:11]Read from MH i2c: 01 07 00 52 04 00 00 00 00 00 FF 0F 6B [14:14:11]RasterBufferAndPrint [14:14:11]line Счет N : (1)48608 [14:14:11]line ИНН: 02508201610067 [14:14:11]line Контрольно-Кассовый Чек [14:14:11]line ПРОДАЖА [14:14:11]line ТРК (МРК, ГНК) : 11 [14:14:11]line Товар: 2710124130 [14:14:11]line Аи-92-К-5 [14:14:11]line 1.870 * 64.30 [14:14:11]line = 120.24 [14:14:11]line НДС 12% НСП 1% [14:14:11]line > о реализуемом товаре [14:14:11]line ОКРУГЛЕНИЕ: -0.24 [14:14:11]line ИТОГО: 120.00 [14:14:11]line Внесено: 120.00 [14:14:11]line СДАЧА: 0.00 [14:14:11]line НСП 1% : 1.06 [14:14:11]line НДС 12% : 12.77 [14:14:11]line Наличными: 120.00 [14:14:11]line Безнал.: 0.00 [14:14:11]line Место: АЗС № 47 "Партнер Нефть" [14:14:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:14:11]line СНО: Общий режим [14:14:11]line Чек 194 14.04.2024 14:14 [14:14:11]line Смена: 357 ФФД: 1.0 [14:14:11]line ЗНМ: 0300000138 [14:14:11]line РНМ: 0000000000094237 [14:14:11]line Версия ККМ: 001 [14:14:11]line ФМ: 0000000000875019 [14:14:11]line ФД: 112295 [14:14:11]line ФПД: 223180765881478 [14:14:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112295&fm=223180765881478&tin=02508201610067®Number=0000000000094237&sum=12000 [14:14:11]OFD Sender: Processing packet 112295 [packets to send 71, broken 70] [14:14:11]ProducePacketName [14:14:11]name=ofd_packets/00112295 [14:14:11]OFD Sender: To server: pG, [14:14:11]CommunicateWithHost lk.salyk.kg:30040 [14:14:11]ConnectInit lk.salyk.kg [14:14:11]written 0, free lines is 4095 [14:14:12]Connected sock=10 [14:14:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EB 5D 07 01 E8 0B 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 4E 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F8 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 B2 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A7 B6 01 00 35 04 06 00 CA FB 52 45 64 86 88 2F C2 5F 41 E4 DB CC [14:14:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 37 BD 47 00 4E A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A7 B6 01 00 F4 03 04 00 3D 8C 1B 66 B6 04 01 00 00 4A DD 5F 33 89 D5 DC AE [14:14:12]CommunicateWithHost err = 0 [14:14:12]CheckOFDResponse [14:14:12]1017 (14) - 77093643461234 [14:14:12]1041 (16) - 0000000000875019 [14:14:12]1040 (4) - 112295 [14:14:12]1012 (4) - 14.04.2024 07:56 [14:14:12]1206 (1) - 0 [14:14:12]OFD Sender: Remove packet 112295 [14:14:12]ProducePacketName [14:14:12]name=ofd_packets/00112295 [14:14:12]NVStorageDeleteData [14:14:12]Write to MH i2c: 01 00 00 7D 04 81 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: 01 07 00 7D 04 00 00 00 00 00 EA 0C 7E [14:14:12]RasterBufferAndPrint [14:14:12]line [14:14:12]line [14:14:12]line [14:14:12]line [14:14:12]line [14:14:12]written 0, free lines is 3312 [14:14:12]MH_Cut [14:14:12]Write to MH i2c: D1 01 00 84 04 01 5A [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: D1 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: D1 01 00 [14:14:12]MH_I2C_Read... [14:14:12]Read from MH i2c: D1 01 00 84 04 00 59 [14:14:12]Write to MH i2c: 01 00 00 85 04 89 [14:14:12]Write i2c OK [14:14:12]MH_I2C_Read... [14:14:12]OFD Sender: No OFD packet to send [14:14:13]*** Cut start [14:14:13]*** Partial cut [14:14:13]*** CUTSNS_PIN = 1 [14:14:13]*** CUTSNS_PIN = 0 [14:14:13]*** Brake cut motor [14:14:13]Read from MH i2c: 01 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: 01 07 00 [14:14:13]MH_I2C_Read... [14:14:13]*** Stop cut motor [14:14:13]*** Cut end [14:14:13]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [14:14:13]process_action close_receipt done [14:14:13]requested_data is exist [14:14:13]produce_requested_data [14:14:13]requested_item fm.sn is exist - process it [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 11 00 00 [14:14:13]Write to MH i2c: E2 08 00 86 04 80 11 00 00 00 00 00 00 04 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 17 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 17 00 86 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [14:14:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:14:13]wFMCommunicate OK [14:14:13]requested_item fd.num is exist - process it [14:14:13]SAM_PROTO_GetFieldsCounters [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 13 00 00 [14:14:13]Write to MH i2c: E2 08 00 87 04 80 13 00 00 00 00 00 00 07 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 62 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 62 00 87 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [14:14:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:13]wFMCommunicate OK [14:14:13]SAM_PROTO_GetFieldsCounters done [14:14:13]requested_item shift.num is exist - process it [14:14:13]requested_item shift.opened is exist - process it [14:14:13]req_shift_opened [14:14:13]FM_GetShiftState [14:14:13]SAM_PROTO_GetShiftState [14:14:13]wFMCommunicate request_size=4 [14:14:13]MH_SAM_APDU [14:14:13]CAPDU: 80 13 01 00 [14:14:13]Write to MH i2c: E2 08 00 88 04 80 13 01 00 00 00 00 00 09 [14:14:13]Write i2c OK [14:14:13]MH_I2C_Read... [14:14:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:13]Read from MH i2c: E2 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 0E 00 [14:14:13]MH_I2C_Read... [14:14:13]Read from MH i2c: E2 0E 00 88 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A1 [14:14:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:14:13]wFMCommunicate OK [14:14:13]SAM_PROTO_GetShiftState done [14:14:13]FM_GetShiftState done [14:14:13]req_shift_opened done [14:14:13]requested_item shift.open_date is exist - process it [14:14:13]req_shift_open_date [14:14:13]req_shift_open_date done [14:14:13]produce_requested_data done [14:14:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112295,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:14:13]process_action_free close_receipt [14:14:13]json_value_free [14:14:13]json_value_free done [14:14:13]process_json_proto returns [14:14:13]Send response to host [14:14:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112295,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:14:13]free response buf [14:14:13]execute_script done [14:14:13]execute_script returns [14:14:13]free content buf [14:14:13]Sock 8.Close socket [14:14:13]Sock 8.Thread stoped [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:56]accept exits with 9 [14:14:56]New connection [14:14:56]New thread 3066826084 created [14:14:56]Thread 3066682724 joined [14:14:56]Waiting for new connection... [14:14:56] Sock 9.Parse request [14:14:56]Sock 9.Check first char [14:14:56]Sock 9.First char is OK [14:14:56]request: POST /json_proto HTTP/1.0 [14:14:56]Method: POST [14:14:56]URL: /json_proto [14:14:56]Method is POST - this is cgi request [14:14:56]url: /json_proto [14:14:56]query_string will be loaded in cgi processing [14:14:56]execute_cgi json_proto POST (null) [14:14:56]execute_cgi path=json_proto method=POST [14:14:56]POST find Content-Length [14:14:56]Host: 172.17.96.197:8080 [14:14:56]Content-Length: 681 [14:14:56]Content-Type: application/json [14:14:56] [14:14:56]POST finish read [14:14:56]Found Content-Length = 681 [14:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48609", "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.30, "quantity" : 15.560, "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" ] } } [14:14:56]execute_script... [14:14: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)48609", "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.30, "quantity" : 15.560, "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" ] } } [14:14:56]POST & json_proto [14:14:56]process_json_proto [14:14:56]json parsed OK: [14:14:56]protocol is kg_v1.0 [14:14:56]action value=close_receipt [14:14:56]process_action close_receipt [14:14:56]cmd_close_receipt [14:14:56]MH_GetDate [14:14:56]Write to MH i2c: F0 00 00 89 04 7C [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: F0 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: F0 09 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: F0 09 00 89 04 00 E0 E4 1B 66 E0 85 7F 64 12 [14:14:56]GetLastDocTimeStamp 1713104050 [14:14:56]current date 1713104096 [14:14:56]FM_GetShiftState [14:14:56]SAM_PROTO_GetShiftState [14:14:56]wFMCommunicate request_size=4 [14:14:56]MH_SAM_APDU [14:14:56]CAPDU: 80 13 01 00 [14:14:56]Write to MH i2c: E2 08 00 8A 04 80 13 01 00 00 00 00 00 0B [14:14:56]Write i2c OK [14:14:56]MH_I2C_Read... [14:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:56]Read from MH i2c: E2 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 0E 00 [14:14:56]MH_I2C_Read... [14:14:56]Read from MH i2c: E2 0E 00 8A 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [14:14:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:14:56]wFMCommunicate OK [14:14:56]SAM_PROTO_GetShiftState done [14:14:56]FM_GetShiftState done [14:14:56]opened in 1713054696 [14:14:56]opened+sec_in_day 1713141096 [14:14:56]quantity*price = 100050 [14:14:56]sum+1 = 100052 [14:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 195 14.04.2024 14:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112296 ФПД: 259324670363057 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141456&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112296&fm=259324670363057&tin=02508201610067®Number=0000000000094237&sum=100000 [14:14:57]StoreToDocumentArchive [14:14:57]shift 357 fd 112296 [14:14:57]save to /storage/0357/doc_00112296 [14:14:57]save last doc name /storage/0357/doc_00112296 to /storage/kkm_last_doc_name [14:14:57]save OK [14:14:57]Clear old archive folders... [14:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:57]tlvbuf is 00157E40 [14:14:57]SAM_PROTO_ClearQueue [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 09 00 00 [14:14:57]Write to MH i2c: E2 08 00 97 04 80 09 00 00 00 00 00 00 0D [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 97 04 00 90 00 0F [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]SAM_PROTO_ClearQueue done [14:14:57]KKMCreateOFDPacket [14:14:57]OFDProtocolAddRootSTLVToBuf [14:14:57]FM_MakeSignedData [14:14:57]FM_MakeSignedData [14:14:57]SAM_PROTO_SignData [14:14:57]wFMCommunicate request_size=4 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 01 02 [14:14:57]Write to MH i2c: E2 08 00 98 04 80 0D 01 02 00 00 00 00 15 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 98 04 00 90 00 10 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]wFMCommunicate request_size=255 [14:14:57]MH_SAM_APDU [14:14:57]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 3C 00 00 00 00 00 37 04 06 00 1E 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 C3 00 00 00 F4 03 04 00 E0 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A8 B6 01 00 35 04 06 00 EB [14:14:57]Write to MH i2c: E2 02 01 99 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 C3 00 00 00 F4 03 04 00 E0 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A8 B6 01 00 35 04 06 00 EB 00 00 DA [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]OFD Sender: No OFD packet to send [14:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:57]Read from MH i2c: E2 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 [14:14:57]MH_I2C_Read... [14:14:57]Read from MH i2c: E2 03 00 99 04 00 90 00 11 [14:14:57]RAPDU: 90 00 [14:14:57]wFMCommunicate OK [14:14:57]wFMCommunicate request_size=10 [14:14:57]MH_SAM_APDU [14:14:57]CAPDU: 80 0D 02 02 05 DA BA DB C5 B1 [14:14:57]Write to MH i2c: E2 0D 00 9A 04 80 0D 02 02 05 00 DA BA DB C5 B1 00 00 07 [14:14:57]Write i2c OK [14:14:57]MH_I2C_Read... [14:14:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 03 00 9A 04 00 90 00 12 [14:14:58]RAPDU: 90 00 [14:14:58]wFMCommunicate OK [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 0D 03 02 [14:14:58]Write to MH i2c: E2 08 00 9B 04 80 0D 03 02 00 00 00 00 1A [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 0B 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 0B 00 9B 04 00 05 83 D5 66 AC F2 64 85 90 00 65 [14:14:58]RAPDU: 05 83 D5 66 AC F2 64 85 90 00 [14:14:58]wFMCommunicate OK [14:14:58]SAM_PROTO_SignData done [14:14:58]FM_MakeSignedData done [14:14:58]CreateOFDProtocolMessage [14:14:58]wFMCommunicate request_size=4 [14:14:58]MH_SAM_APDU [14:14:58]CAPDU: 80 11 00 00 [14:14:58]Write to MH i2c: E2 08 00 9C 04 80 11 00 00 00 00 00 00 1A [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:58]Read from MH i2c: E2 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 17 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: E2 17 00 9C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6B [14:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:14:58]wFMCommunicate OK [14:14:58]CreateOFDProtocolMessage done [14:14:58]OFDSenderStorePacket 112296 [14:14:58]StoreOFDPacket docnum=112296 [14:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 67 D8 07 01 ED 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 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 3C 00 00 00 00 00 37 04 06 00 1E 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 C3 00 00 00 F4 03 04 00 E0 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A8 B6 01 00 35 04 06 00 EB DA BA DB C5 B1 05 83 D5 66 AC F2 64 85 [14:14:58]CheckFolder [14:14:58]dirname=/storage/ofd_packets [14:14:58]CheckFolder done [14:14:58]ProducePacketName [14:14:58]name=ofd_packets/00112296 [14:14:58]NVStorageSaveData ofd_packets/00112296 [14:14:58]File name is /storage/ofd_packets/00112296 [14:14:58]Write 301 bytes [14:14:58]NVStorageSaveData done [14:14:58]OFDSenderStorePacket done [14:14:58]KKMCreateOFDPacket done [14:14:58]NVStorageSaveData kkm_last_timestamp [14:14:58]File name is /storage/kkm_last_timestamp [14:14:58]Write 4 bytes [14:14:58]NVStorageSaveData done [14:14:58]ExternCall_PrintAddStr [14:14:58]wPrintStart [14:14:58]Write to MH i2c: 01 00 00 9D 04 A1 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 9D 04 00 00 00 00 00 FF 0F B6 [14:14:58]RasterBufferAndPrint [14:14:58]line Счет N : (1)48609 [14:14:58]line ИНН: 02508201610067 [14:14:58]line Контрольно-Кассовый Чек [14:14:58]line ПРОДАЖА [14:14:58]line ТРК (МРК, ГНК) : 42 [14:14:58]line Товар: 2710124130 [14:14:58]line Аи-92-К-5 [14:14:58]line 15.560 * 64.30 [14:14:58]line = 1000.51 [14:14:58]line НДС 12% НСП 1% [14:14:58]line > о реализуемом товаре [14:14:58]line ОКРУГЛЕНИЕ: -0.51 [14:14:58]line ИТОГО: 1000.00 [14:14:58]line Внесено: 1000.00 [14:14:58]line СДАЧА: 0.00 [14:14:58]line НСП 1% : 8.85 [14:14:58]line НДС 12% : 106.25 [14:14:58]line Наличными: 1000.00 [14:14:58]line Безнал.: 0.00 [14:14:58]line Место: АЗС № 47 "Партнер Нефть" [14:14:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:14:58]line СНО: Общий режим [14:14:58]line Чек 195 14.04.2024 14:14 [14:14:58]line Смена: 357 ФФД: 1.0 [14:14:58]line ЗНМ: 0300000138 [14:14:58]line РНМ: 0000000000094237 [14:14:58]line Версия ККМ: 001 [14:14:58]line ФМ: 0000000000875019 [14:14:58]line ФД: 112296 [14:14:58]line ФПД: 259324670363057 [14:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141456&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112296&fm=259324670363057&tin=02508201610067®Number=0000000000094237&sum=100000 [14:14:58]OFD Sender: Processing packet 112296 [packets to send 71, broken 70] [14:14:58]ProducePacketName [14:14:58]name=ofd_packets/00112296 [14:14:58]OFD Sender: To server: pG, [14:14:58]CommunicateWithHost lk.salyk.kg:30040 [14:14:58]ConnectInit lk.salyk.kg [14:14:58]written 0, free lines is 4095 [14:14:58]Connected sock=10 [14:14:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 67 D8 07 01 ED 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 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 3C 00 00 00 00 00 37 04 06 00 1E 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 C3 00 00 00 F4 03 04 00 E0 E4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A8 B6 01 00 35 04 06 00 EB DA BA DB C5 B1 05 83 D5 66 AC F2 64 85 [14:14:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A6 61 47 00 19 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A8 B6 01 00 F4 03 04 00 6B 8C 1B 66 B6 04 01 00 00 00 5C B6 E8 FD 26 84 53 [14:14:58]CommunicateWithHost err = 0 [14:14:58]CheckOFDResponse [14:14:58]1017 (14) - 77093643461234 [14:14:58]1041 (16) - 0000000000875019 [14:14:58]1040 (4) - 112296 [14:14:58]1012 (4) - 14.04.2024 07:57 [14:14:58]1206 (1) - 0 [14:14:58]OFD Sender: Remove packet 112296 [14:14:58]ProducePacketName [14:14:58]name=ofd_packets/00112296 [14:14:58]NVStorageDeleteData [14:14:58]Write to MH i2c: 01 00 00 C8 04 CC [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: 01 07 00 C8 04 00 00 00 00 00 DD 0C BC [14:14:58]RasterBufferAndPrint [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]line [14:14:58]written 0, free lines is 3299 [14:14:58]MH_Cut [14:14:58]Write to MH i2c: D1 01 00 CF 04 01 A5 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 01 00 [14:14:58]MH_I2C_Read... [14:14:58]Read from MH i2c: D1 01 00 CF 04 00 A4 [14:14:58]Write to MH i2c: 01 00 00 D0 04 D4 [14:14:58]Write i2c OK [14:14:58]MH_I2C_Read... [14:14:59]OFD Sender: No OFD packet to send [14:14:59]*** Cut start [14:14:59]*** Partial cut [14:14:59]*** CUTSNS_PIN = 1 [14:14:59]*** CUTSNS_PIN = 0 [14:14:59]*** Brake cut motor [14:15:00]Read from MH i2c: 01 [14:15:00]MH_I2C_Read... [14:15:00]*** Stop cut motor [14:15:00]*** Cut end [14:15:00]Read from MH i2c: 01 07 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: 01 07 00 D0 04 00 00 00 00 00 FF 0F E9 [14:15:00]process_action close_receipt done [14:15:00]requested_data is exist [14:15:00]produce_requested_data [14:15:00]requested_item fm.sn is exist - process it [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 11 00 00 [14:15:00]Write to MH i2c: E2 08 00 D1 04 80 11 00 00 00 00 00 00 4F [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 17 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 17 00 D1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A0 [14:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:15:00]wFMCommunicate OK [14:15:00]requested_item fd.num is exist - process it [14:15:00]SAM_PROTO_GetFieldsCounters [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 13 00 00 [14:15:00]Write to MH i2c: E2 08 00 D2 04 80 13 00 00 00 00 00 00 52 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 62 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 62 00 D2 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [14:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_GetFieldsCounters done [14:15:00]requested_item shift.num is exist - process it [14:15:00]requested_item shift.opened is exist - process it [14:15:00]req_shift_opened [14:15:00]FM_GetShiftState [14:15:00]SAM_PROTO_GetShiftState [14:15:00]wFMCommunicate request_size=4 [14:15:00]MH_SAM_APDU [14:15:00]CAPDU: 80 13 01 00 [14:15:00]Write to MH i2c: E2 08 00 D3 04 80 13 01 00 00 00 00 00 54 [14:15:00]Write i2c OK [14:15:00]MH_I2C_Read... [14:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:00]Read from MH i2c: E2 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0E 00 [14:15:00]MH_I2C_Read... [14:15:00]Read from MH i2c: E2 0E 00 D3 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EC [14:15:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:15:00]wFMCommunicate OK [14:15:00]SAM_PROTO_GetShiftState done [14:15:00]FM_GetShiftState done [14:15:00]req_shift_opened done [14:15:00]requested_item shift.open_date is exist - process it [14:15:00]req_shift_open_date [14:15:00]req_shift_open_date done [14:15:00]produce_requested_data done [14:15:00]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112296,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:15:00]process_action_free close_receipt [14:15:00]json_value_free [14:15:00]json_value_free done [14:15:00]process_json_proto returns [14:15:00]Send response to host [14:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112296,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:15:00]free response buf [14:15:00]execute_script done [14:15:00]execute_script returns [14:15:00]free content buf [14:15:00]Sock 9.Close socket [14:15:00]Sock 9.Thread stoped [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:40]accept exits with 8 [14:15:40]New connection [14:15:40]New thread 3066682724 created [14:15:40]Thread 3066826084 joined [14:15:40]Waiting for new connection... [14:15:40] Sock 8.Parse request [14:15:40]Sock 8.Check first char [14:15:40]Sock 8.First char is OK [14:15:40]request: POST /json_proto HTTP/1.0 [14:15:40]Method: POST [14:15:40]URL: /json_proto [14:15:40]Method is POST - this is cgi request [14:15:40]url: /json_proto [14:15:40]query_string will be loaded in cgi processing [14:15:40]execute_cgi json_proto POST (null) [14:15:40]execute_cgi path=json_proto method=POST [14:15:40]POST find Content-Length [14:15:40]Host: 172.17.96.197:8080 [14:15:40]Content-Length: 676 [14:15:40]Content-Type: application/json [14:15:40] [14:15:40]POST finish read [14:15:40]Found Content-Length = 676 [14:15:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48610", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [14:15:40]execute_script... [14:15: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)48610", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [14:15:40]POST & json_proto [14:15:40]process_json_proto [14:15:40]json parsed OK: [14:15:40]protocol is kg_v1.0 [14:15:40]action value=close_receipt [14:15:40]process_action close_receipt [14:15:40]cmd_close_receipt [14:15:40]MH_GetDate [14:15:40]Write to MH i2c: F0 00 00 D4 04 C7 [14:15:40]Write i2c OK [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: F0 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: F0 09 00 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: F0 09 00 D4 04 00 0C E5 1B 66 E0 85 7F 64 8A [14:15:40]GetLastDocTimeStamp 1713104096 [14:15:40]current date 1713104140 [14:15:40]FM_GetShiftState [14:15:40]SAM_PROTO_GetShiftState [14:15:40]wFMCommunicate request_size=4 [14:15:40]MH_SAM_APDU [14:15:40]CAPDU: 80 13 01 00 [14:15:40]Write to MH i2c: E2 08 00 D5 04 80 13 01 00 00 00 00 00 56 [14:15:40]Write i2c OK [14:15:40]MH_I2C_Read... [14:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:40]Read from MH i2c: E2 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: E2 0E 00 [14:15:40]MH_I2C_Read... [14:15:40]Read from MH i2c: E2 0E 00 D5 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [14:15:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:15:40]wFMCommunicate OK [14:15:40]SAM_PROTO_GetShiftState done [14:15:40]FM_GetShiftState done [14:15:40]opened in 1713054696 [14:15:40]opened+sec_in_day 1713141096 [14:15:40]quantity*price = 40058 [14:15:40]sum+1 = 40060 [14:15:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 196 14.04.2024 14:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112297 ФПД: 121746301570031 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141540&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112297&fm=121746301570031&tin=02508201610067®Number=0000000000094237&sum=40000 [14:15:41]StoreToDocumentArchive [14:15:41]shift 357 fd 112297 [14:15:41]save to /storage/0357/doc_00112297 [14:15:41]save last doc name /storage/0357/doc_00112297 to /storage/kkm_last_doc_name [14:15:41]save OK [14:15:41]Clear old archive folders... [14:15:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:41]tlvbuf is 00146E30 [14:15:41]SAM_PROTO_ClearQueue [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 09 00 00 [14:15:41]Write to MH i2c: E2 08 00 E2 04 80 09 00 00 00 00 00 00 58 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 E2 04 00 90 00 5A [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]SAM_PROTO_ClearQueue done [14:15:41]KKMCreateOFDPacket [14:15:41]OFDProtocolAddRootSTLVToBuf [14:15:41]FM_MakeSignedData [14:15:41]FM_MakeSignedData [14:15:41]SAM_PROTO_SignData [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 0D 01 02 [14:15:41]Write to MH i2c: E2 08 00 E3 04 80 0D 01 02 00 00 00 00 60 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 E3 04 00 90 00 5B [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=255 [14:15:41]MH_SAM_APDU [14:15:41]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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 C4 00 00 00 F4 03 04 00 0C E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A9 B6 01 00 35 04 06 00 6E [14:15:41]Write to MH i2c: E2 02 01 E4 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 C4 00 00 00 F4 03 04 00 0C E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A9 B6 01 00 35 04 06 00 6E 00 00 57 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 E4 04 00 90 00 5C [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=10 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 0D 02 02 05 BA 45 0E CB EF [14:15:41]Write to MH i2c: E2 0D 00 E5 04 80 0D 02 02 05 00 BA 45 0E CB EF 00 00 34 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 03 00 E5 04 00 90 00 5D [14:15:41]RAPDU: 90 00 [14:15:41]wFMCommunicate OK [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 0D 03 02 [14:15:41]Write to MH i2c: E2 08 00 E6 04 80 0D 03 02 00 00 00 00 65 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 0B 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 0B 00 E6 04 00 60 E9 15 70 8E 57 A6 FE 90 00 BD [14:15:41]RAPDU: 60 E9 15 70 8E 57 A6 FE 90 00 [14:15:41]wFMCommunicate OK [14:15:41]SAM_PROTO_SignData done [14:15:41]FM_MakeSignedData done [14:15:41]CreateOFDProtocolMessage [14:15:41]wFMCommunicate request_size=4 [14:15:41]MH_SAM_APDU [14:15:41]CAPDU: 80 11 00 00 [14:15:41]Write to MH i2c: E2 08 00 E7 04 80 11 00 00 00 00 00 00 65 [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:41]Read from MH i2c: E2 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 17 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: E2 17 00 E7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B6 [14:15:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:15:41]wFMCommunicate OK [14:15:41]CreateOFDProtocolMessage done [14:15:41]OFDSenderStorePacket 112297 [14:15:41]StoreOFDPacket docnum=112297 [14:15:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 40 65 07 01 AB 18 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 C4 00 00 00 F4 03 04 00 0C E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A9 B6 01 00 35 04 06 00 6E BA 45 0E CB EF 60 E9 15 70 8E 57 A6 FE [14:15:41]CheckFolder [14:15:41]dirname=/storage/ofd_packets [14:15:41]CheckFolder done [14:15:41]ProducePacketName [14:15:41]name=ofd_packets/00112297 [14:15:41]NVStorageSaveData ofd_packets/00112297 [14:15:41]File name is /storage/ofd_packets/00112297 [14:15:41]Write 301 bytes [14:15:41]NVStorageSaveData done [14:15:41]OFDSenderStorePacket done [14:15:41]KKMCreateOFDPacket done [14:15:41]NVStorageSaveData kkm_last_timestamp [14:15:41]File name is /storage/kkm_last_timestamp [14:15:41]Write 4 bytes [14:15:41]NVStorageSaveData done [14:15:41]ExternCall_PrintAddStr [14:15:41]wPrintStart [14:15:41]Write to MH i2c: 01 00 00 E8 04 EC [14:15:41]Write i2c OK [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 [14:15:41]MH_I2C_Read... [14:15:41]Read from MH i2c: 01 07 00 E8 04 00 00 00 00 00 FF 0F 01 [14:15:41]RasterBufferAndPrint [14:15:41]line Счет N : (1)48610 [14:15:41]line ИНН: 02508201610067 [14:15:41]line Контрольно-Кассовый Чек [14:15:41]line ПРОДАЖА [14:15:41]line ТРК (МРК, ГНК) : 32 [14:15:41]line Товар: 2710124130 [14:15:41]line Аи-92-К-5 [14:15:41]line 6.230 * 64.30 [14:15:41]line = 400.59 [14:15:41]line НДС 12% НСП 1% [14:15:41]line > о реализуемом товаре [14:15:41]line ОКРУГЛЕНИЕ: -0.59 [14:15:41]line ИТОГО: 400.00 [14:15:41]line Внесено: 400.00 [14:15:41]line СДАЧА: 0.00 [14:15:41]line НСП 1% : 3.54 [14:15:41]line НДС 12% : 42.54 [14:15:41]line Наличными: 400.00 [14:15:41]line Безнал.: 0.00 [14:15:41]line Место: АЗС № 47 "Партнер Нефть" [14:15:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:15:41]line СНО: Общий режим [14:15:41]line Чек 196 14.04.2024 14:15 [14:15:41]line Смена: 357 ФФД: 1.0 [14:15:41]line ЗНМ: 0300000138 [14:15:41]line РНМ: 0000000000094237 [14:15:41]line Версия ККМ: 001 [14:15:41]line ФМ: 0000000000875019 [14:15:41]line ФД: 112297 [14:15:41]line ФПД: 121746301570031 [14:15:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141540&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112297&fm=121746301570031&tin=02508201610067®Number=0000000000094237&sum=40000 [14:15:42]OFD Sender: Processing packet 112297 [packets to send 71, broken 70] [14:15:42]ProducePacketName [14:15:42]name=ofd_packets/00112297 [14:15:42]OFD Sender: To server: pG, [14:15:42]CommunicateWithHost lk.salyk.kg:30040 [14:15:42]ConnectInit lk.salyk.kg [14:15:42]written 0, free lines is 4095 [14:15:42]Connected sock=10 [14:15:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 40 65 07 01 AB 18 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 C4 00 00 00 F4 03 04 00 0C E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A9 B6 01 00 35 04 06 00 6E BA 45 0E CB EF 60 E9 15 70 8E 57 A6 FE [14:15:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 88 0E 47 00 D1 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 A9 B6 01 00 F4 03 04 00 97 8C 1B 66 B6 04 01 00 00 27 83 0E 18 36 9A 36 7F [14:15:42]CommunicateWithHost err = 0 [14:15:42]CheckOFDResponse [14:15:42]1017 (14) - 77093643461234 [14:15:42]1041 (16) - 0000000000875019 [14:15:42]1040 (4) - 112297 [14:15:42]1012 (4) - 14.04.2024 07:58 [14:15:42]1206 (1) - 0 [14:15:42]OFD Sender: Remove packet 112297 [14:15:42]ProducePacketName [14:15:42]name=ofd_packets/00112297 [14:15:42]NVStorageDeleteData [14:15:42]Write to MH i2c: 01 00 00 13 05 18 [14:15:42]Write i2c OK [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: 01 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: 01 07 00 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: 01 07 00 13 05 00 00 00 00 00 E5 0C 10 [14:15:42]RasterBufferAndPrint [14:15:42]line [14:15:42]line [14:15:42]line [14:15:42]line [14:15:42]line [14:15:42]written 0, free lines is 3307 [14:15:42]MH_Cut [14:15:42]Write to MH i2c: D1 01 00 1A 05 01 F1 [14:15:42]Write i2c OK [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: D1 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: D1 01 00 [14:15:42]MH_I2C_Read... [14:15:42]Read from MH i2c: D1 01 00 1A 05 00 F0 [14:15:42]Write to MH i2c: 01 00 00 1B 05 20 [14:15:42]Write i2c OK [14:15:42]MH_I2C_Read... [14:15:43]OFD Sender: No OFD packet to send [14:15:43]*** Cut start [14:15:43]*** Partial cut [14:15:43]*** CUTSNS_PIN = 1 [14:15:43]*** CUTSNS_PIN = 0 [14:15:43]*** Brake cut motor [14:15:43]Read from MH i2c: 01 [14:15:43]MH_I2C_Read... [14:15:43]*** Stop cut motor [14:15:43]*** Cut end [14:15:43]Read from MH i2c: 01 07 00 [14:15:43]MH_I2C_Read... [14:15:43]Read from MH i2c: 01 07 00 1B 05 00 00 00 00 00 FF 0F 35 [14:15:43]process_action close_receipt done [14:15:43]requested_data is exist [14:15:43]produce_requested_data [14:15:43]requested_item fm.sn is exist - process it [14:15:43]wFMCommunicate request_size=4 [14:15:43]MH_SAM_APDU [14:15:43]CAPDU: 80 11 00 00 [14:15:43]Write to MH i2c: E2 08 00 1C 05 80 11 00 00 00 00 00 00 9B [14:15:43]Write i2c OK [14:15:43]MH_I2C_Read... [14:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:44]Read from MH i2c: E2 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 17 00 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 17 00 1C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EC [14:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:15:44]wFMCommunicate OK [14:15:44]requested_item fd.num is exist - process it [14:15:44]SAM_PROTO_GetFieldsCounters [14:15:44]wFMCommunicate request_size=4 [14:15:44]MH_SAM_APDU [14:15:44]CAPDU: 80 13 00 00 [14:15:44]Write to MH i2c: E2 08 00 1D 05 80 13 00 00 00 00 00 00 9E [14:15:44]Write i2c OK [14:15:44]MH_I2C_Read... [14:15:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:44]Read from MH i2c: E2 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 62 00 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 62 00 1D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [14:15:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 A9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:15:44]wFMCommunicate OK [14:15:44]SAM_PROTO_GetFieldsCounters done [14:15:44]requested_item shift.num is exist - process it [14:15:44]requested_item shift.opened is exist - process it [14:15:44]req_shift_opened [14:15:44]FM_GetShiftState [14:15:44]SAM_PROTO_GetShiftState [14:15:44]wFMCommunicate request_size=4 [14:15:44]MH_SAM_APDU [14:15:44]CAPDU: 80 13 01 00 [14:15:44]Write to MH i2c: E2 08 00 1E 05 80 13 01 00 00 00 00 00 A0 [14:15:44]Write i2c OK [14:15:44]MH_I2C_Read... [14:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:44]Read from MH i2c: E2 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 0E 00 [14:15:44]MH_I2C_Read... [14:15:44]Read from MH i2c: E2 0E 00 1E 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 38 [14:15:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:15:44]wFMCommunicate OK [14:15:44]SAM_PROTO_GetShiftState done [14:15:44]FM_GetShiftState done [14:15:44]req_shift_opened done [14:15:44]requested_item shift.open_date is exist - process it [14:15:44]req_shift_open_date [14:15:44]req_shift_open_date done [14:15:44]produce_requested_data done [14:15:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112297,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:15:44]process_action_free close_receipt [14:15:44]json_value_free [14:15:44]json_value_free done [14:15:44]process_json_proto returns [14:15:44]Send response to host [14:15:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112297,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:15:44]free response buf [14:15:44]execute_script done [14:15:44]execute_script returns [14:15:44]free content buf [14:15:44]Sock 8.Close socket [14:15:44]Sock 8.Thread stoped [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:02]accept exits with 9 [14:16:02]New connection [14:16:02]New thread 3066826084 created [14:16:02]Thread 3066682724 joined [14:16:02]Waiting for new connection... [14:16:02] Sock 9.Parse request [14:16:02]Sock 9.Check first char [14:16:02]Sock 9.First char is OK [14:16:02]request: POST /json_proto HTTP/1.0 [14:16:02]Method: POST [14:16:02]URL: /json_proto [14:16:02]Method is POST - this is cgi request [14:16:02]url: /json_proto [14:16:02]query_string will be loaded in cgi processing [14:16:02]execute_cgi json_proto POST (null) [14:16:02]execute_cgi path=json_proto method=POST [14:16:02]POST find Content-Length [14:16:02]Host: 172.17.96.197:8080 [14:16:02]Content-Length: 815 [14:16:02]Content-Type: application/json [14:16:02] [14:16:02]POST finish read [14:16:02]Found Content-Length = 815 [14:16:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:02]execute_script... [14:16: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)48611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:02]POST & json_proto [14:16:02]process_json_proto [14:16:02]json parsed OK: [14:16:02]protocol is kg_v1.0 [14:16:02]action value=close_receipt [14:16:02]process_action close_receipt [14:16:02]cmd_close_receipt [14:16:02]MH_GetDate [14:16:02]Write to MH i2c: F0 00 00 1F 05 13 [14:16:02]Write i2c OK [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 [14:16:02]MH_I2C_Read... [14:16:02]Read from MH i2c: F0 09 00 1F 05 00 23 E5 1B 66 E0 85 7F 64 ED [14:16:02]GetLastDocTimeStamp 1713104140 [14:16:02]current date 1713104163 [14:16:02]FM_GetShiftState [14:16:02]SAM_PROTO_GetShiftState [14:16:02]wFMCommunicate request_size=4 [14:16:02]MH_SAM_APDU [14:16:02]CAPDU: 80 13 01 00 [14:16:02]Write to MH i2c: E2 08 00 20 05 80 13 01 00 00 00 00 00 A2 [14:16:03]Write i2c OK [14:16:03]MH_I2C_Read... [14:16:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:03]Read from MH i2c: E2 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 0E 00 [14:16:03]MH_I2C_Read... [14:16:03]Read from MH i2c: E2 0E 00 20 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3A [14:16:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:16:03]wFMCommunicate OK [14:16:03]SAM_PROTO_GetShiftState done [14:16:03]FM_GetShiftState done [14:16:03]opened in 1713054696 [14:16:03]opened+sec_in_day 1713141096 [14:16:03]quantity*price = 50025 [14:16:03]sum+1 = 50026 [14:16:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 197 14.04.2024 14:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112298 ФПД: 269805043775696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141603&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112298&fm=269805043775696&tin=02508201610067®Number=0000000000094237&sum=50025 [14:16:04]StoreToDocumentArchive [14:16:04]shift 357 fd 112298 [14:16:04]save to /storage/0357/doc_00112298 [14:16:04]save last doc name /storage/0357/doc_00112298 to /storage/kkm_last_doc_name [14:16:04]save OK [14:16:04]Clear old archive folders... [14:16:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:16:04]tlvbuf is 0015E340 [14:16:04]SAM_PROTO_ClearQueue [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 09 00 00 [14:16:04]Write to MH i2c: E2 08 00 2D 05 80 09 00 00 00 00 00 00 A4 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 2D 05 00 90 00 A6 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_ClearQueue done [14:16:04]KKMCreateOFDPacket [14:16:04]OFDProtocolAddRootSTLVToBuf [14:16:04]FM_MakeSignedData [14:16:04]FM_MakeSignedData [14:16:04]SAM_PROTO_SignData [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 01 02 [14:16:04]Write to MH i2c: E2 08 00 2E 05 80 0D 01 02 00 00 00 00 AC [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 2E 05 00 90 00 A7 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=255 [14:16:04]MH_SAM_APDU [14:16:04]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 23 E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AA B6 01 00 35 04 06 00 F5 [14:16:04]Write to MH i2c: E2 02 01 2F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 23 E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AA B6 01 00 35 04 06 00 F5 00 00 8B [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 2F 05 00 90 00 A8 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=10 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 02 02 05 62 E1 CA F8 D0 [14:16:04]Write to MH i2c: E2 0D 00 30 05 80 0D 02 02 05 00 62 E1 CA F8 D0 00 00 8E [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 03 00 30 05 00 90 00 A9 [14:16:04]RAPDU: 90 00 [14:16:04]wFMCommunicate OK [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 0D 03 02 [14:16:04]Write to MH i2c: E2 08 00 31 05 80 0D 03 02 00 00 00 00 B1 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 0B 00 31 05 00 E1 57 3A 8F 4E 67 9E 6F 90 00 75 [14:16:04]RAPDU: E1 57 3A 8F 4E 67 9E 6F 90 00 [14:16:04]wFMCommunicate OK [14:16:04]SAM_PROTO_SignData done [14:16:04]FM_MakeSignedData done [14:16:04]CreateOFDProtocolMessage [14:16:04]wFMCommunicate request_size=4 [14:16:04]MH_SAM_APDU [14:16:04]CAPDU: 80 11 00 00 [14:16:04]Write to MH i2c: E2 08 00 32 05 80 11 00 00 00 00 00 00 B1 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:04]Read from MH i2c: E2 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: E2 17 00 32 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 02 [14:16:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:16:04]wFMCommunicate OK [14:16:04]CreateOFDProtocolMessage done [14:16:04]OFDSenderStorePacket 112298 [14:16:04]StoreOFDPacket docnum=112298 [14:16:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 69 8C 07 01 4A 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 23 E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AA B6 01 00 35 04 06 00 F5 62 E1 CA F8 D0 E1 57 3A 8F 4E 67 9E 6F [14:16:04]CheckFolder [14:16:04]dirname=/storage/ofd_packets [14:16:04]CheckFolder done [14:16:04]ProducePacketName [14:16:04]name=ofd_packets/00112298 [14:16:04]NVStorageSaveData ofd_packets/00112298 [14:16:04]File name is /storage/ofd_packets/00112298 [14:16:04]Write 301 bytes [14:16:04]NVStorageSaveData done [14:16:04]OFDSenderStorePacket done [14:16:04]KKMCreateOFDPacket done [14:16:04]NVStorageSaveData kkm_last_timestamp [14:16:04]File name is /storage/kkm_last_timestamp [14:16:04]Write 4 bytes [14:16:04]NVStorageSaveData done [14:16:04]ExternCall_PrintAddStr [14:16:04]wPrintStart [14:16:04]Write to MH i2c: 01 00 00 33 05 38 [14:16:04]Write i2c OK [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 [14:16:04]MH_I2C_Read... [14:16:04]Read from MH i2c: 01 07 00 33 05 00 00 00 00 00 FF 0F 4D [14:16:04]RasterBufferAndPrint [14:16:04]line Счет N : (1)48611 [14:16:04]line ИНН: 02508201610067 [14:16:04]line Контрольно-Кассовый Чек [14:16:04]line ПРОДАЖА [14:16:04]line ТРК (МРК, ГНК) : 11 [14:16:04]line Товар: 2710124130 [14:16:04]line Аи-92-К-5 [14:16:04]line 7.780 * 64.30 [14:16:04]line = 500.25 [14:16:04]line НДС 12% НСП 1% [14:16:04]line > о реализуемом товаре [14:16:04]line ИТОГО: 500.25 [14:16:04]line НСП 1% : 4.43 [14:16:04]line НДС 12% : 53.12 [14:16:04]line Наличными: 0.00 [14:16:04]line Безнал.: 500.25 [14:16:04]line Место: АЗС № 47 "Партнер Нефть" [14:16:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:16:04]line СНО: Общий режим [14:16:04]line Чек 197 14.04.2024 14:16 [14:16:04]line Смена: 357 ФФД: 1.0 [14:16:04]line ЗНМ: 0300000138 [14:16:04]line РНМ: 0000000000094237 [14:16:04]line Версия ККМ: 001 [14:16:04]line Платежная система: Бакай Банк [14:16:04]line ФМ: 0000000000875019 [14:16:04]line ФД: 112298 [14:16:04]line ФПД: 269805043775696 [14:16:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141603&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112298&fm=269805043775696&tin=02508201610067®Number=0000000000094237&sum=50025 [14:16:05]OFD Sender: Processing packet 112298 [packets to send 71, broken 70] [14:16:05]ProducePacketName [14:16:05]name=ofd_packets/00112298 [14:16:05]OFD Sender: To server: pG, [14:16:05]CommunicateWithHost lk.salyk.kg:30040 [14:16:05]ConnectInit lk.salyk.kg [14:16:05]written 0, free lines is 4095 [14:16:05]Connected sock=10 [14:16:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 69 8C 07 01 4A 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 23 E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AA B6 01 00 35 04 06 00 F5 62 E1 CA F8 D0 E1 57 3A 8F 4E 67 9E 6F [14:16:05]Write to MH i2c: 01 00 00 5D 05 62 [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 07 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 F8 0C 6D [14:16:05]RasterBufferAndPrint [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]line [14:16:05]written 0, free lines is 3327 [14:16:05]MH_Cut [14:16:05]Write to MH i2c: D1 01 00 64 05 01 3B [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 01 00 [14:16:05]MH_I2C_Read... [14:16:05]Read from MH i2c: D1 01 00 64 05 00 3A [14:16:05]Write to MH i2c: 01 00 00 65 05 6A [14:16:05]Write i2c OK [14:16:05]MH_I2C_Read... [14:16:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 CB B1 47 00 84 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AA B6 01 00 F4 03 04 00 AE 8C 1B 66 B6 04 01 00 00 06 2C D6 62 83 BE 8A 54 [14:16:05]CommunicateWithHost err = 0 [14:16:05]CheckOFDResponse [14:16:05]1017 (14) - 77093643461234 [14:16:05]1041 (16) - 0000000000875019 [14:16:05]1040 (4) - 112298 [14:16:05]1012 (4) - 14.04.2024 07:58 [14:16:05]1206 (1) - 0 [14:16:05]OFD Sender: Remove packet 112298 [14:16:05]ProducePacketName [14:16:05]name=ofd_packets/00112298 [14:16:05]NVStorageDeleteData [14:16:06]OFD Sender: No OFD packet to send [14:16:06]*** Cut start [14:16:06]*** Partial cut [14:16:06]*** CUTSNS_PIN = 1 [14:16:06]*** CUTSNS_PIN = 0 [14:16:06]*** Brake cut motor [14:16:06]Read from MH i2c: 01 [14:16:06]MH_I2C_Read... [14:16:06]*** Stop cut motor [14:16:06]*** Cut end [14:16:06]Read from MH i2c: 01 07 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: 01 07 00 65 05 00 00 00 00 00 FF 0F 7F [14:16:06]process_action close_receipt done [14:16:06]requested_data is exist [14:16:06]produce_requested_data [14:16:06]requested_item fm.sn is exist - process it [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 11 00 00 [14:16:06]Write to MH i2c: E2 08 00 66 05 80 11 00 00 00 00 00 00 E5 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:06]Read from MH i2c: E2 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 [14:16:06]MH_I2C_Read... [14:16:06]Read from MH i2c: E2 17 00 66 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 36 [14:16:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:16:06]wFMCommunicate OK [14:16:06]requested_item fd.num is exist - process it [14:16:06]SAM_PROTO_GetFieldsCounters [14:16:06]wFMCommunicate request_size=4 [14:16:06]MH_SAM_APDU [14:16:06]CAPDU: 80 13 00 00 [14:16:06]Write to MH i2c: E2 08 00 67 05 80 13 00 00 00 00 00 00 E8 [14:16:06]Write i2c OK [14:16:06]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 62 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 62 00 67 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [14:16:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_GetFieldsCounters done [14:16:07]requested_item shift.num is exist - process it [14:16:07]requested_item shift.opened is exist - process it [14:16:07]req_shift_opened [14:16:07]FM_GetShiftState [14:16:07]SAM_PROTO_GetShiftState [14:16:07]wFMCommunicate request_size=4 [14:16:07]MH_SAM_APDU [14:16:07]CAPDU: 80 13 01 00 [14:16:07]Write to MH i2c: E2 08 00 68 05 80 13 01 00 00 00 00 00 EA [14:16:07]Write i2c OK [14:16:07]MH_I2C_Read... [14:16:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:07]Read from MH i2c: E2 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0E 00 [14:16:07]MH_I2C_Read... [14:16:07]Read from MH i2c: E2 0E 00 68 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 82 [14:16:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:16:07]wFMCommunicate OK [14:16:07]SAM_PROTO_GetShiftState done [14:16:07]FM_GetShiftState done [14:16:07]req_shift_opened done [14:16:07]requested_item shift.open_date is exist - process it [14:16:07]req_shift_open_date [14:16:07]req_shift_open_date done [14:16:07]produce_requested_data done [14:16:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112298,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:16:07]process_action_free close_receipt [14:16:07]json_value_free [14:16:07]json_value_free done [14:16:07]process_json_proto returns [14:16:07]Send response to host [14:16:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112298,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:16:07]free response buf [14:16:07]execute_script done [14:16:07]execute_script returns [14:16:07]free content buf [14:16:07]Sock 9.Close socket [14:16:07]Sock 9.Thread stoped [14:16:11]OFD Sender: No OFD packet to send [14:16:16]OFD Sender: No OFD packet to send [14:16:21]OFD Sender: No OFD packet to send [14:16:26]OFD Sender: No OFD packet to send [14:16:31]OFD Sender: No OFD packet to send [14:16:36]OFD Sender: No OFD packet to send [14:16:41]OFD Sender: No OFD packet to send [14:16:46]OFD Sender: No OFD packet to send [14:16:51]OFD Sender: No OFD packet to send [14:16:56]OFD Sender: No OFD packet to send [14:17:01]OFD Sender: No OFD packet to send [14:17:06]OFD Sender: No OFD packet to send [14:17:11]OFD Sender: No OFD packet to send [14:17:16]OFD Sender: No OFD packet to send [14:17:21]OFD Sender: No OFD packet to send [14:17:26]OFD Sender: No OFD packet to send [14:17:31]OFD Sender: No OFD packet to send [14:17:36]OFD Sender: No OFD packet to send [14:17:41]OFD Sender: No OFD packet to send [14:17:46]OFD Sender: No OFD packet to send [14:17:51]OFD Sender: No OFD packet to send [14:17:56]OFD Sender: No OFD packet to send [14:18:01]OFD Sender: No OFD packet to send [14:18:06]OFD Sender: No OFD packet to send [14:18:11]OFD Sender: No OFD packet to send [14:18:16]OFD Sender: No OFD packet to send [14:18:21]OFD Sender: No OFD packet to send [14:18:26]OFD Sender: No OFD packet to send [14:18:31]OFD Sender: No OFD packet to send [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:07]accept exits with 8 [14:19:07]New connection [14:19:07]New thread 3066682724 created [14:19:07]Thread 3066826084 joined [14:19:07]Waiting for new connection... [14:19:07] Sock 8.Parse request [14:19:07]Sock 8.Check first char [14:19:07]Sock 8.First char is OK [14:19:07]request: POST /json_proto HTTP/1.0 [14:19:07]Method: POST [14:19:07]URL: /json_proto [14:19:07]Method is POST - this is cgi request [14:19:07]url: /json_proto [14:19:07]query_string will be loaded in cgi processing [14:19:07]execute_cgi json_proto POST (null) [14:19:07]execute_cgi path=json_proto method=POST [14:19:07]POST find Content-Length [14:19:07]Host: 172.17.96.197:8080 [14:19:07]Content-Length: 676 [14:19:07]Content-Type: application/json [14:19:07] [14:19:07]POST finish read [14:19:07]Found Content-Length = 676 [14:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48612", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:19:07]execute_script... [14: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)48612", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:19:07]POST & json_proto [14:19:07]process_json_proto [14:19:07]json parsed OK: [14:19:07]protocol is kg_v1.0 [14:19:07]action value=close_receipt [14:19:07]process_action close_receipt [14:19:07]cmd_close_receipt [14:19:07]MH_GetDate [14:19:07]Write to MH i2c: F0 00 00 69 05 5D [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: F0 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: F0 09 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: F0 09 00 69 05 00 DB E5 1B 66 E0 85 7F 64 EF [14:19:07]GetLastDocTimeStamp 1713104163 [14:19:07]current date 1713104347 [14:19:07]FM_GetShiftState [14:19:07]SAM_PROTO_GetShiftState [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 13 01 00 [14:19:07]Write to MH i2c: E2 08 00 6A 05 80 13 01 00 00 00 00 00 EC [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 6A 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 84 [14:19:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_GetShiftState done [14:19:07]FM_GetShiftState done [14:19:07]opened in 1713054696 [14:19:07]opened+sec_in_day 1713141096 [14:19:07]quantity*price = 50025 [14:19:07]sum+1 = 50026 [14:19:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 198 14.04.2024 14:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112299 ФПД: 78313457750648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112299&fm=78313457750648&tin=02508201610067®Number=0000000000094237&sum=50000 [14:19:08]StoreToDocumentArchive [14:19:08]shift 357 fd 112299 [14:19:08]save to /storage/0357/doc_00112299 [14:19:08]save last doc name /storage/0357/doc_00112299 to /storage/kkm_last_doc_name [14:19:08]save OK [14:19:08]Clear old archive folders... [14:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:08]tlvbuf is 0015F800 [14:19:08]SAM_PROTO_ClearQueue [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 09 00 00 [14:19:08]Write to MH i2c: E2 08 00 77 05 80 09 00 00 00 00 00 00 EE [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 77 05 00 90 00 F0 [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]SAM_PROTO_ClearQueue done [14:19:08]KKMCreateOFDPacket [14:19:08]OFDProtocolAddRootSTLVToBuf [14:19:08]FM_MakeSignedData [14:19:08]FM_MakeSignedData [14:19:08]SAM_PROTO_SignData [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 0D 01 02 [14:19:08]Write to MH i2c: E2 08 00 78 05 80 0D 01 02 00 00 00 00 F6 [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 78 05 00 90 00 F1 [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]wFMCommunicate request_size=255 [14:19:08]MH_SAM_APDU [14: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C6 00 00 00 F4 03 04 00 DB E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AB B6 01 00 35 04 06 00 47 [14:19:08]Write to MH i2c: E2 02 01 79 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C6 00 00 00 F4 03 04 00 DB E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AB B6 01 00 35 04 06 00 47 00 00 AF [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 79 05 00 90 00 F2 [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]wFMCommunicate request_size=10 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 0D 02 02 05 39 C5 D4 92 78 [14:19:08]Write to MH i2c: E2 0D 00 7A 05 80 0D 02 02 05 00 39 C5 D4 92 78 00 00 DF [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:08]Read from MH i2c: E2 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 [14:19:08]MH_I2C_Read... [14:19:08]Read from MH i2c: E2 03 00 7A 05 00 90 00 F3 [14:19:08]RAPDU: 90 00 [14:19:08]wFMCommunicate OK [14:19:08]wFMCommunicate request_size=4 [14:19:08]MH_SAM_APDU [14:19:08]CAPDU: 80 0D 03 02 [14:19:08]Write to MH i2c: E2 08 00 7B 05 80 0D 03 02 00 00 00 00 FB [14:19:08]Write i2c OK [14:19:08]MH_I2C_Read... [14:19:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:09]Read from MH i2c: E2 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: E2 0B 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: E2 0B 00 7B 05 00 0B 03 E0 68 B8 79 68 AE 90 00 99 [14:19:09]RAPDU: 0B 03 E0 68 B8 79 68 AE 90 00 [14:19:09]wFMCommunicate OK [14:19:09]SAM_PROTO_SignData done [14:19:09]FM_MakeSignedData done [14:19:09]CreateOFDProtocolMessage [14:19:09]wFMCommunicate request_size=4 [14:19:09]MH_SAM_APDU [14:19:09]CAPDU: 80 11 00 00 [14:19:09]Write to MH i2c: E2 08 00 7C 05 80 11 00 00 00 00 00 00 FB [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:09]Read from MH i2c: E2 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: E2 17 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: E2 17 00 7C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4C [14:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:19:09]wFMCommunicate OK [14:19:09]CreateOFDProtocolMessage done [14:19:09]OFDSenderStorePacket 112299 [14:19:09]StoreOFDPacket docnum=112299 [14:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 61 F6 07 01 74 91 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C6 00 00 00 F4 03 04 00 DB E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AB B6 01 00 35 04 06 00 47 39 C5 D4 92 78 0B 03 E0 68 B8 79 68 AE [14:19:09]CheckFolder [14:19:09]dirname=/storage/ofd_packets [14:19:09]CheckFolder done [14:19:09]ProducePacketName [14:19:09]name=ofd_packets/00112299 [14:19:09]NVStorageSaveData ofd_packets/00112299 [14:19:09]File name is /storage/ofd_packets/00112299 [14:19:09]Write 301 bytes [14:19:09]NVStorageSaveData done [14:19:09]OFDSenderStorePacket done [14:19:09]KKMCreateOFDPacket done [14:19:09]NVStorageSaveData kkm_last_timestamp [14:19:09]File name is /storage/kkm_last_timestamp [14:19:09]Write 4 bytes [14:19:09]NVStorageSaveData done [14:19:09]ExternCall_PrintAddStr [14:19:09]wPrintStart [14:19:09]Write to MH i2c: 01 00 00 7D 05 82 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 7D 05 00 00 00 00 00 FF 0F 97 [14:19:09]RasterBufferAndPrint [14:19:09]line Счет N : (1)48612 [14:19:09]line ИНН: 02508201610067 [14:19:09]line Контрольно-Кассовый Чек [14:19:09]line ПРОДАЖА [14:19:09]line ТРК (МРК, ГНК) : 42 [14:19:09]line Товар: 2710124130 [14:19:09]line Аи-92-К-5 [14:19:09]line 7.780 * 64.30 [14:19:09]line = 500.25 [14:19:09]line НДС 12% НСП 1% [14:19:09]line > о реализуемом товаре [14:19:09]line ОКРУГЛЕНИЕ: -0.25 [14:19:09]line ИТОГО: 500.00 [14:19:09]line Внесено: 500.00 [14:19:09]line СДАЧА: 0.00 [14:19:09]line НСП 1% : 4.43 [14:19:09]line НДС 12% : 53.12 [14:19:09]line Наличными: 500.00 [14:19:09]line Безнал.: 0.00 [14:19:09]line Место: АЗС № 47 "Партнер Нефть" [14:19:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:19:09]line СНО: Общий режим [14:19:09]line Чек 198 14.04.2024 14:19 [14:19:09]line Смена: 357 ФФД: 1.0 [14:19:09]line ЗНМ: 0300000138 [14:19:09]line РНМ: 0000000000094237 [14:19:09]line Версия ККМ: 001 [14:19:09]line ФМ: 0000000000875019 [14:19:09]line ФД: 112299 [14:19:09]line ФПД: 78313457750648 [14:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T141907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112299&fm=78313457750648&tin=02508201610067®Number=0000000000094237&sum=50000 [14:19:09]written 0, free lines is 4095 [14:19:09]OFD Sender: Processing packet 112299 [packets to send 71, broken 70] [14:19:09]ProducePacketName [14:19:09]name=ofd_packets/00112299 [14:19:09]OFD Sender: To server: pG, [14:19:09]CommunicateWithHost lk.salyk.kg:30040 [14:19:09]ConnectInit lk.salyk.kg [14:19:09]Connected sock=10 [14:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 61 F6 07 01 74 91 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 C6 00 00 00 F4 03 04 00 DB E5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AB B6 01 00 35 04 06 00 47 39 C5 D4 92 78 0B 03 E0 68 B8 79 68 AE [14:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 76 74 47 00 8E 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AB B6 01 00 F4 03 04 00 66 8D 1B 66 B6 04 01 00 00 FB 38 9F 56 5F 10 7A 51 [14:19:09]CommunicateWithHost err = 0 [14:19:09]CheckOFDResponse [14:19:09]1017 (14) - 77093643461234 [14:19:09]1041 (16) - 0000000000875019 [14:19:09]1040 (4) - 112299 [14:19:09]1012 (4) - 14.04.2024 08:01 [14:19:09]1206 (1) - 0 [14:19:09]OFD Sender: Remove packet 112299 [14:19:09]ProducePacketName [14:19:09]name=ofd_packets/00112299 [14:19:09]NVStorageDeleteData [14:19:09]Write to MH i2c: 01 00 00 A8 05 AD [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 E8 0C A8 [14:19:09]RasterBufferAndPrint [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]line [14:19:09]written 0, free lines is 3310 [14:19:09]MH_Cut [14:19:09]Write to MH i2c: D1 01 00 AF 05 01 86 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 01 00 [14:19:09]MH_I2C_Read... [14:19:09]Read from MH i2c: D1 01 00 AF 05 00 85 [14:19:09]Write to MH i2c: 01 00 00 B0 05 B5 [14:19:09]Write i2c OK [14:19:09]MH_I2C_Read... [14:19:10]OFD Sender: No OFD packet to send [14:19:10]*** Cut start [14:19:10]*** Partial cut [14:19:10]*** CUTSNS_PIN = 1 [14:19:10]*** CUTSNS_PIN = 0 [14:19:10]*** Brake cut motor [14:19:11]Read from MH i2c: 01 [14:19:11]MH_I2C_Read... [14:19:11]*** Stop cut motor [14:19:11]*** Cut end [14:19:11]Read from MH i2c: 01 07 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: 01 07 00 B0 05 00 00 00 00 00 FF 0F CA [14:19:11]process_action close_receipt done [14:19:11]requested_data is exist [14:19:11]produce_requested_data [14:19:11]requested_item fm.sn is exist - process it [14:19:11]wFMCommunicate request_size=4 [14:19:11]MH_SAM_APDU [14:19:11]CAPDU: 80 11 00 00 [14:19:11]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:11]Read from MH i2c: E2 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 17 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 81 [14:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:19:11]wFMCommunicate OK [14:19:11]requested_item fd.num is exist - process it [14:19:11]SAM_PROTO_GetFieldsCounters [14:19:11]wFMCommunicate request_size=4 [14:19:11]MH_SAM_APDU [14:19:11]CAPDU: 80 13 00 00 [14:19:11]Write to MH i2c: E2 08 00 B2 05 80 13 00 00 00 00 00 00 33 [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:11]Read from MH i2c: E2 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 62 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 62 00 B2 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [14:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:11]wFMCommunicate OK [14:19:11]SAM_PROTO_GetFieldsCounters done [14:19:11]requested_item shift.num is exist - process it [14:19:11]requested_item shift.opened is exist - process it [14:19:11]req_shift_opened [14:19:11]FM_GetShiftState [14:19:11]SAM_PROTO_GetShiftState [14:19:11]wFMCommunicate request_size=4 [14:19:11]MH_SAM_APDU [14:19:11]CAPDU: 80 13 01 00 [14:19:11]Write to MH i2c: E2 08 00 B3 05 80 13 01 00 00 00 00 00 35 [14:19:11]Write i2c OK [14:19:11]MH_I2C_Read... [14:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:11]Read from MH i2c: E2 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 0E 00 [14:19:11]MH_I2C_Read... [14:19:11]Read from MH i2c: E2 0E 00 B3 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CD [14:19:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:19:11]wFMCommunicate OK [14:19:11]SAM_PROTO_GetShiftState done [14:19:11]FM_GetShiftState done [14:19:11]req_shift_opened done [14:19:11]requested_item shift.open_date is exist - process it [14:19:11]req_shift_open_date [14:19:11]req_shift_open_date done [14:19:11]produce_requested_data done [14:19:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112299,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:19:11]process_action_free close_receipt [14:19:11]json_value_free [14:19:11]json_value_free done [14:19:11]process_json_proto returns [14:19:11]Send response to host [14:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112299,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:19:11]free response buf [14:19:11]execute_script done [14:19:11]execute_script returns [14:19:11]free content buf [14:19:11]Sock 8.Close socket [14:19:11]Sock 8.Thread stoped [14:19:15]OFD Sender: No OFD packet to send [14:19:20]OFD Sender: No OFD packet to send [14:19:25]OFD Sender: No OFD packet to send [14:19:30]OFD Sender: No OFD packet to send [14:19:35]OFD Sender: No OFD packet to send [14:19:40]OFD Sender: No OFD packet to send [14:19:45]OFD Sender: No OFD packet to send [14:19:50]OFD Sender: No OFD packet to send [14:19:55]OFD Sender: No OFD packet to send [14:20:00]OFD Sender: No OFD packet to send [14:20:05]OFD Sender: No OFD packet to send [14:20:10]OFD Sender: No OFD packet to send [14:20:15]OFD Sender: No OFD packet to send [14:20:20]OFD Sender: No OFD packet to send [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:09]accept exits with 9 [14:24:09]New connection [14:24:09]New thread 3066826084 created [14:24:09]Thread 3066682724 joined [14:24:09]Waiting for new connection... [14:24:09] Sock 9.Parse request [14:24:09]Sock 9.Check first char [14:24:09]Sock 9.First char is OK [14:24:09]request: POST /json_proto HTTP/1.0 [14:24:09]Method: POST [14:24:09]URL: /json_proto [14:24:09]Method is POST - this is cgi request [14:24:09]url: /json_proto [14:24:09]query_string will be loaded in cgi processing [14:24:09]execute_cgi json_proto POST (null) [14:24:09]execute_cgi path=json_proto method=POST [14:24:09]POST find Content-Length [14:24:09]Host: 172.17.96.197:8080 [14:24:09]Content-Length: 816 [14:24:09]Content-Type: application/json [14:24:09] [14:24:09]POST finish read [14:24:09]Found Content-Length = 816 [14:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48613", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]execute_script... [14:24: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)48613", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:09]POST & json_proto [14:24:09]process_json_proto [14:24:09]json parsed OK: [14:24:09]protocol is kg_v1.0 [14:24:09]action value=close_receipt [14:24:09]process_action close_receipt [14:24:09]cmd_close_receipt [14:24:09]MH_GetDate [14:24:09]Write to MH i2c: F0 00 00 B4 05 A8 [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: F0 09 00 B4 05 00 09 E7 1B 66 E0 85 7F 64 6A [14:24:09]GetLastDocTimeStamp 1713104347 [14:24:09]current date 1713104649 [14:24:09]FM_GetShiftState [14:24:09]SAM_PROTO_GetShiftState [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 13 01 00 [14:24:09]Write to MH i2c: E2 08 00 B5 05 80 13 01 00 00 00 00 00 37 [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 B5 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CF [14:24:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:24:09]wFMCommunicate OK [14:24:09]SAM_PROTO_GetShiftState done [14:24:09]FM_GetShiftState done [14:24:09]opened in 1713054696 [14:24:09]opened+sec_in_day 1713141096 [14:24:09]quantity*price = 64300 [14:24:09]sum+1 = 64301 [14:24:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 199 14.04.2024 14:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112300 ФПД: 158361681575102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T142409&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112300&fm=158361681575102&tin=02508201610067®Number=0000000000094237&sum=64300 [14:24:10]StoreToDocumentArchive [14:24:10]shift 357 fd 112300 [14:24:10]save to /storage/0357/doc_00112300 [14:24:10]save last doc name /storage/0357/doc_00112300 to /storage/kkm_last_doc_name [14:24:10]save OK [14:24:10]Clear old archive folders... [14:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:10]tlvbuf is 00147420 [14:24:10]SAM_PROTO_ClearQueue [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 09 00 00 [14:24:10]Write to MH i2c: E2 08 00 C2 05 80 09 00 00 00 00 00 00 39 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 C2 05 00 90 00 3B [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]SAM_PROTO_ClearQueue done [14:24:10]KKMCreateOFDPacket [14:24:10]OFDProtocolAddRootSTLVToBuf [14:24:10]FM_MakeSignedData [14:24:10]FM_MakeSignedData [14:24:10]SAM_PROTO_SignData [14:24:10]wFMCommunicate request_size=4 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 01 02 [14:24:10]Write to MH i2c: E2 08 00 C3 05 80 0D 01 02 00 00 00 00 41 [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:10]Read from MH i2c: E2 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 [14:24:10]MH_I2C_Read... [14:24:10]Read from MH i2c: E2 03 00 C3 05 00 90 00 3C [14:24:10]RAPDU: 90 00 [14:24:10]wFMCommunicate OK [14:24:10]wFMCommunicate request_size=255 [14:24:10]MH_SAM_APDU [14:24:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 09 E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AC B6 01 00 35 04 06 00 90 [14:24:10]Write to MH i2c: E2 02 01 C4 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 09 E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AC B6 01 00 35 04 06 00 90 00 00 BE [14:24:10]Write i2c OK [14:24:10]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 C4 05 00 90 00 3D [14:24:11]RAPDU: 90 00 [14:24:11]wFMCommunicate OK [14:24:11]wFMCommunicate request_size=10 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 0D 02 02 05 07 73 C6 BC BE [14:24:11]Write to MH i2c: E2 0D 00 C5 05 80 0D 02 02 05 00 07 73 C6 BC BE 00 00 08 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 03 00 C5 05 00 90 00 3E [14:24:11]RAPDU: 90 00 [14:24:11]wFMCommunicate OK [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 0D 03 02 [14:24:11]Write to MH i2c: E2 08 00 C6 05 80 0D 03 02 00 00 00 00 46 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0B 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0B 00 C6 05 00 2C 28 62 7B F1 52 0A 5C 90 00 21 [14:24:11]RAPDU: 2C 28 62 7B F1 52 0A 5C 90 00 [14:24:11]wFMCommunicate OK [14:24:11]SAM_PROTO_SignData done [14:24:11]FM_MakeSignedData done [14:24:11]CreateOFDProtocolMessage [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 11 00 00 [14:24:11]Write to MH i2c: E2 08 00 C7 05 80 11 00 00 00 00 00 00 46 [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 17 00 C7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 97 [14:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:24:11]wFMCommunicate OK [14:24:11]CreateOFDProtocolMessage done [14:24:11]OFDSenderStorePacket 112300 [14:24:11]StoreOFDPacket docnum=112300 [14:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3B AA 07 01 73 1E 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 09 E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AC B6 01 00 35 04 06 00 90 07 73 C6 BC BE 2C 28 62 7B F1 52 0A 5C [14:24:11]CheckFolder [14:24:11]dirname=/storage/ofd_packets [14:24:11]CheckFolder done [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00112300 [14:24:11]NVStorageSaveData ofd_packets/00112300 [14:24:11]File name is /storage/ofd_packets/00112300 [14:24:11]Write 301 bytes [14:24:11]NVStorageSaveData done [14:24:11]OFDSenderStorePacket done [14:24:11]KKMCreateOFDPacket done [14:24:11]NVStorageSaveData kkm_last_timestamp [14:24:11]File name is /storage/kkm_last_timestamp [14:24:11]Write 4 bytes [14:24:11]NVStorageSaveData done [14:24:11]ExternCall_PrintAddStr [14:24:11]wPrintStart [14:24:11]Write to MH i2c: 01 00 00 C8 05 CD [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: 01 07 00 C8 05 00 00 00 00 00 FF 0F E2 [14:24:11]RasterBufferAndPrint [14:24:11]line Счет N : (1)48613 [14:24:11]line ИНН: 02508201610067 [14:24:11]line Контрольно-Кассовый Чек [14:24:11]line ПРОДАЖА [14:24:11]line ТРК (МРК, ГНК) : 32 [14:24:11]line Товар: 2710124130 [14:24:11]line Аи-92-К-5 [14:24:11]line 10.000 * 64.30 [14:24:11]line = 643.00 [14:24:11]line НДС 12% НСП 1% [14:24:11]line > о реализуемом товаре [14:24:11]line ИТОГО: 643.00 [14:24:11]line НСП 1% : 5.69 [14:24:11]line НДС 12% : 68.28 [14:24:11]line Наличными: 0.00 [14:24:11]line Безнал.: 643.00 [14:24:11]line Место: АЗС № 47 "Партнер Нефть" [14:24:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:24:11]line СНО: Общий режим [14:24:11]line Чек 199 14.04.2024 14:24 [14:24:11]line Смена: 357 ФФД: 1.0 [14:24:11]line ЗНМ: 0300000138 [14:24:11]line РНМ: 0000000000094237 [14:24:11]line Версия ККМ: 001 [14:24:11]line Платежная система: Бакай Банк [14:24:11]line ФМ: 0000000000875019 [14:24:11]line ФД: 112300 [14:24:11]line ФПД: 158361681575102 [14:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T142409&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112300&fm=158361681575102&tin=02508201610067®Number=0000000000094237&sum=64300 [14:24:11]OFD Sender: Processing packet 112300 [packets to send 71, broken 70] [14:24:11]ProducePacketName [14:24:11]name=ofd_packets/00112300 [14:24:11]OFD Sender: To server: pG, [14:24:11]CommunicateWithHost lk.salyk.kg:30040 [14:24:11]ConnectInit lk.salyk.kg [14:24:11]written 0, free lines is 4095 [14:24:11]Connected sock=10 [14:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3B AA 07 01 73 1E 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 09 E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AC B6 01 00 35 04 06 00 90 07 73 C6 BC BE 2C 28 62 7B F1 52 0A 5C [14:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F3 4C 47 00 16 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AC B6 01 00 F4 03 04 00 95 8E 1B 66 B6 04 01 00 00 44 E4 0F DE CB 43 E2 FB [14:24:12]CommunicateWithHost err = 0 [14:24:12]CheckOFDResponse [14:24:12]1017 (14) - 77093643461234 [14:24:12]1041 (16) - 0000000000875019 [14:24:12]1040 (4) - 112300 [14:24:12]1012 (4) - 14.04.2024 08:06 [14:24:12]1206 (1) - 0 [14:24:12]OFD Sender: Remove packet 112300 [14:24:12]ProducePacketName [14:24:12]name=ofd_packets/00112300 [14:24:12]NVStorageDeleteData [14:24:12]Write to MH i2c: 01 00 00 F2 05 F7 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: 01 07 00 F2 05 00 00 00 00 00 F5 0C FF [14:24:12]RasterBufferAndPrint [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]line [14:24:12]written 0, free lines is 3324 [14:24:12]MH_Cut [14:24:12]Write to MH i2c: D1 01 00 F9 05 01 D0 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 01 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: D1 01 00 F9 05 00 CF [14:24:12]Write to MH i2c: 01 00 00 FA 05 FF [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]OFD Sender: No OFD packet to send [14:24:12]*** Cut start [14:24:12]*** Partial cut [14:24:12]*** CUTSNS_PIN = 1 [14:24:12]*** CUTSNS_PIN = 0 [14:24:13]*** Brake cut motor [14:24:13]Read from MH i2c: 01 [14:24:13]MH_I2C_Read... [14:24:13]*** Stop cut motor [14:24:13]*** Cut end [14:24:13]Read from MH i2c: 01 07 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 FA 05 00 00 00 00 00 FF 0F 14 [14:24:13]process_action close_receipt done [14:24:13]requested_data is exist [14:24:13]produce_requested_data [14:24:13]requested_item fm.sn is exist - process it [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 11 00 00 [14:24:13]Write to MH i2c: E2 08 00 FB 05 80 11 00 00 00 00 00 00 7A [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 FB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CB [14:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:24:13]wFMCommunicate OK [14:24:13]requested_item fd.num is exist - process it [14:24:13]SAM_PROTO_GetFieldsCounters [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 00 00 [14:24:13]Write to MH i2c: E2 08 00 FC 05 80 13 00 00 00 00 00 00 7D [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 62 00 FC 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [14:24:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetFieldsCounters done [14:24:13]requested_item shift.num is exist - process it [14:24:13]requested_item shift.opened is exist - process it [14:24:13]req_shift_opened [14:24:13]FM_GetShiftState [14:24:13]SAM_PROTO_GetShiftState [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 13 01 00 [14:24:13]Write to MH i2c: E2 08 00 FD 05 80 13 01 00 00 00 00 00 7F [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0E 00 FD 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 17 [14:24:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_GetShiftState done [14:24:13]FM_GetShiftState done [14:24:13]req_shift_opened done [14:24:13]requested_item shift.open_date is exist - process it [14:24:13]req_shift_open_date [14:24:13]req_shift_open_date done [14:24:13]produce_requested_data done [14:24:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112300,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:24:13]process_action_free close_receipt [14:24:13]json_value_free [14:24:13]json_value_free done [14:24:13]process_json_proto returns [14:24:13]Send response to host [14:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112300,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:24:13]free response buf [14:24:13]execute_script done [14:24:13]execute_script returns [14:24:13]free content buf [14:24:13]Sock 9.Close socket [14:24:13]Sock 9.Thread stoped [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:51]accept exits with 8 [14:25:51]New connection [14:25:51]New thread 3066682724 created [14:25:51]Thread 3066826084 joined [14:25:51]Waiting for new connection... [14:25:51] Sock 8.Parse request [14:25:51]Sock 8.Check first char [14:25:51]Sock 8.First char is OK [14:25:51]request: POST /json_proto HTTP/1.0 [14:25:51]Method: POST [14:25:51]URL: /json_proto [14:25:51]Method is POST - this is cgi request [14:25:51]url: /json_proto [14:25:51]query_string will be loaded in cgi processing [14:25:51]execute_cgi json_proto POST (null) [14:25:51]execute_cgi path=json_proto method=POST [14:25:51]POST find Content-Length [14:25:51]Host: 172.17.96.197:8080 [14:25:51]Content-Length: 674 [14:25:51]Content-Type: application/json [14:25:51] [14:25:51]POST finish read [14:25:51]Found Content-Length = 674 [14:25:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48614", "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.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:51]execute_script... [14:25: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)48614", "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.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:51]POST & json_proto [14:25:51]process_json_proto [14:25:51]json parsed OK: [14:25:51]protocol is kg_v1.0 [14:25:51]action value=close_receipt [14:25:51]process_action close_receipt [14:25:51]cmd_close_receipt [14:25:51]MH_GetDate [14:25:51]Write to MH i2c: F0 00 00 FE 05 F2 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: F0 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: F0 09 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: F0 09 00 FE 05 00 6F E7 1B 66 E0 85 7F 64 1A [14:25:51]GetLastDocTimeStamp 1713104649 [14:25:51]current date 1713104751 [14:25:51]FM_GetShiftState [14:25:51]SAM_PROTO_GetShiftState [14:25:51]wFMCommunicate request_size=4 [14:25:51]MH_SAM_APDU [14:25:51]CAPDU: 80 13 01 00 [14:25:51]Write to MH i2c: E2 08 00 FF 05 80 13 01 00 00 00 00 00 81 [14:25:51]Write i2c OK [14:25:51]MH_I2C_Read... [14:25:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:51]Read from MH i2c: E2 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0E 00 [14:25:51]MH_I2C_Read... [14:25:51]Read from MH i2c: E2 0E 00 FF 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 19 [14:25:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:25:51]wFMCommunicate OK [14:25:51]SAM_PROTO_GetShiftState done [14:25:51]FM_GetShiftState done [14:25:51]opened in 1713054696 [14:25:51]opened+sec_in_day 1713141096 [14:25:51]quantity*price = 100039 [14:25:51]sum+1 = 100041 [14:25:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 200 14.04.2024 14:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112301 ФПД: 180825874585611 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T142551&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112301&fm=180825874585611&tin=02508201610067®Number=0000000000094237&sum=100000 [14:25:52]StoreToDocumentArchive [14:25:52]shift 357 fd 112301 [14:25:52]save to /storage/0357/doc_00112301 [14:25:52]save last doc name /storage/0357/doc_00112301 to /storage/kkm_last_doc_name [14:25:52]save OK [14:25:52]Clear old archive folders... [14:25:52]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:25:52]tlvbuf is 0015DA40 [14:25:52]SAM_PROTO_ClearQueue [14:25:52]wFMCommunicate request_size=4 [14:25:52]MH_SAM_APDU [14:25:52]CAPDU: 80 09 00 00 [14:25:52]Write to MH i2c: E2 08 00 0C 06 80 09 00 00 00 00 00 00 84 [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: E2 [14:25:52]MH_I2C_Read... [14:25:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:52]Read from MH i2c: E2 03 00 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: E2 03 00 0C 06 00 90 00 86 [14:25:52]RAPDU: 90 00 [14:25:52]wFMCommunicate OK [14:25:52]SAM_PROTO_ClearQueue done [14:25:52]KKMCreateOFDPacket [14:25:52]OFDProtocolAddRootSTLVToBuf [14:25:52]FM_MakeSignedData [14:25:52]FM_MakeSignedData [14:25:52]SAM_PROTO_SignData [14:25:52]wFMCommunicate request_size=4 [14:25:52]MH_SAM_APDU [14:25:52]CAPDU: 80 0D 01 02 [14:25:52]Write to MH i2c: E2 08 00 0D 06 80 0D 01 02 00 00 00 00 8C [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:52]Read from MH i2c: E2 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: E2 03 00 [14:25:52]MH_I2C_Read... [14:25:52]Read from MH i2c: E2 03 00 0D 06 00 90 00 87 [14:25:52]RAPDU: 90 00 [14:25:52]wFMCommunicate OK [14:25:52]wFMCommunicate request_size=255 [14:25:52]MH_SAM_APDU [14:25:52]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 C8 00 00 00 F4 03 04 00 6F E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AD B6 01 00 35 04 06 00 [14:25:52]Write to MH i2c: E2 02 01 0E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 C8 00 00 00 F4 03 04 00 6F E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AD B6 01 00 35 04 06 00 00 00 06 [14:25:52]Write i2c OK [14:25:52]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 03 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 03 00 0E 06 00 90 00 88 [14:25:53]RAPDU: 90 00 [14:25:53]wFMCommunicate OK [14:25:53]wFMCommunicate request_size=11 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 0D 02 02 06 A4 75 CE 05 58 0B [14:25:53]Write to MH i2c: E2 0E 00 0F 06 80 0D 02 02 06 00 A4 75 CE 05 58 0B 00 00 EA [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 03 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 03 00 0F 06 00 90 00 89 [14:25:53]RAPDU: 90 00 [14:25:53]wFMCommunicate OK [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 0D 03 02 [14:25:53]Write to MH i2c: E2 08 00 10 06 80 0D 03 02 00 00 00 00 91 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0B 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 0B 00 10 06 00 C4 DF 23 8D FE 0B 87 C4 90 00 39 [14:25:53]RAPDU: C4 DF 23 8D FE 0B 87 C4 90 00 [14:25:53]wFMCommunicate OK [14:25:53]SAM_PROTO_SignData done [14:25:53]FM_MakeSignedData done [14:25:53]CreateOFDProtocolMessage [14:25:53]wFMCommunicate request_size=4 [14:25:53]MH_SAM_APDU [14:25:53]CAPDU: 80 11 00 00 [14:25:53]Write to MH i2c: E2 08 00 11 06 80 11 00 00 00 00 00 00 91 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:53]Read from MH i2c: E2 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: E2 17 00 11 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E2 [14:25:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:25:53]wFMCommunicate OK [14:25:53]CreateOFDProtocolMessage done [14:25:53]OFDSenderStorePacket 112301 [14:25:53]StoreOFDPacket docnum=112301 [14:25:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 66 F0 08 01 9F EC 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 C8 00 00 00 F4 03 04 00 6F E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AD B6 01 00 35 04 06 00 A4 75 CE 05 58 0B C4 DF 23 8D FE 0B 87 C4 [14:25:53]CheckFolder [14:25:53]dirname=/storage/ofd_packets [14:25:53]CheckFolder done [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00112301 [14:25:53]NVStorageSaveData ofd_packets/00112301 [14:25:53]File name is /storage/ofd_packets/00112301 [14:25:53]Write 302 bytes [14:25:53]NVStorageSaveData done [14:25:53]OFDSenderStorePacket done [14:25:53]KKMCreateOFDPacket done [14:25:53]NVStorageSaveData kkm_last_timestamp [14:25:53]File name is /storage/kkm_last_timestamp [14:25:53]Write 4 bytes [14:25:53]NVStorageSaveData done [14:25:53]ExternCall_PrintAddStr [14:25:53]wPrintStart [14:25:53]Write to MH i2c: 01 00 00 12 06 18 [14:25:53]Write i2c OK [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: 01 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: 01 07 00 [14:25:53]MH_I2C_Read... [14:25:53]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [14:25:53]RasterBufferAndPrint [14:25:53]line Счет N : (1)48614 [14:25:53]line ИНН: 02508201610067 [14:25:53]line Контрольно-Кассовый Чек [14:25:53]line ПРОДАЖА [14:25:53]line ТРК (МРК, ГНК) : 41 [14:25:53]line Товар: 2710124130 [14:25:53]line SUPER 92-К-5 [14:25:53]line 15.320 * 65.30 [14:25:53]line = 1000.40 [14:25:53]line НДС 12% НСП 1% [14:25:53]line > о реализуемом товаре [14:25:53]line ОКРУГЛЕНИЕ: -0.40 [14:25:53]line ИТОГО: 1000.00 [14:25:53]line Внесено: 1000.00 [14:25:53]line СДАЧА: 0.00 [14:25:53]line НСП 1% : 8.85 [14:25:53]line НДС 12% : 106.24 [14:25:53]line Наличными: 1000.00 [14:25:53]line Безнал.: 0.00 [14:25:53]line Место: АЗС № 47 "Партнер Нефть" [14:25:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:25:53]line СНО: Общий режим [14:25:53]line Чек 200 14.04.2024 14:25 [14:25:53]line Смена: 357 ФФД: 1.0 [14:25:53]line ЗНМ: 0300000138 [14:25:53]line РНМ: 0000000000094237 [14:25:53]line Версия ККМ: 001 [14:25:53]line ФМ: 0000000000875019 [14:25:53]line ФД: 112301 [14:25:53]line ФПД: 180825874585611 [14:25:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T142551&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112301&fm=180825874585611&tin=02508201610067®Number=0000000000094237&sum=100000 [14:25:53]OFD Sender: Processing packet 112301 [packets to send 71, broken 70] [14:25:53]ProducePacketName [14:25:53]name=ofd_packets/00112301 [14:25:53]OFD Sender: To server: pG, [14:25:53]CommunicateWithHost lk.salyk.kg:30040 [14:25:53]ConnectInit lk.salyk.kg [14:25:53]written 0, free lines is 4095 [14:25:53]Connected sock=10 [14:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 66 F0 08 01 9F EC 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 C8 00 00 00 F4 03 04 00 6F E7 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AD B6 01 00 35 04 06 00 A4 75 CE 05 58 0B C4 DF 23 8D FE 0B 87 C4 [14:25:54]Write to MH i2c: 01 00 00 3D 06 43 [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BB 08 47 00 A6 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AD B6 01 00 F4 03 04 00 FB 8E 1B 66 B6 04 01 00 00 33 2F 42 FF 91 CB 7E B4 [14:25:54]CommunicateWithHost err = 0 [14:25:54]CheckOFDResponse [14:25:54]1017 (14) - 77093643461234 [14:25:54]1041 (16) - 0000000000875019 [14:25:54]1040 (4) - 112301 [14:25:54]1012 (4) - 14.04.2024 08:08 [14:25:54]1206 (1) - 0 [14:25:54]OFD Sender: Remove packet 112301 [14:25:54]ProducePacketName [14:25:54]name=ofd_packets/00112301 [14:25:54]NVStorageDeleteData [14:25:54]Read from MH i2c: 01 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: 01 07 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: 01 07 00 3D 06 00 00 00 00 00 D9 0C 2F [14:25:54]RasterBufferAndPrint [14:25:54]line [14:25:54]line [14:25:54]line [14:25:54]line [14:25:54]line [14:25:54]written 0, free lines is 3335 [14:25:54]MH_Cut [14:25:54]Write to MH i2c: D1 01 00 44 06 01 1C [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: D1 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: D1 01 00 [14:25:54]MH_I2C_Read... [14:25:54]Read from MH i2c: D1 01 00 44 06 00 1B [14:25:54]Write to MH i2c: 01 00 00 45 06 4B [14:25:54]Write i2c OK [14:25:54]MH_I2C_Read... [14:25:54]OFD Sender: No OFD packet to send [14:25:54]*** Cut start [14:25:54]*** Partial cut [14:25:54]*** CUTSNS_PIN = 1 [14:25:54]*** CUTSNS_PIN = 0 [14:25:55]*** Brake cut motor [14:25:55]Read from MH i2c: 01 [14:25:55]MH_I2C_Read... [14:25:55]*** Stop cut motor [14:25:55]*** Cut end [14:25:55]Read from MH i2c: 01 07 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: 01 07 00 45 06 00 00 00 00 00 FF 0F 60 [14:25:55]process_action close_receipt done [14:25:55]requested_data is exist [14:25:55]produce_requested_data [14:25:55]requested_item fm.sn is exist - process it [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 11 00 00 [14:25:55]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 17 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 17 [14:25:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:25:55]wFMCommunicate OK [14:25:55]requested_item fd.num is exist - process it [14:25:55]SAM_PROTO_GetFieldsCounters [14:25:55]wFMCommunicate request_size=4 [14:25:55]MH_SAM_APDU [14:25:55]CAPDU: 80 13 00 00 [14:25:55]Write to MH i2c: E2 08 00 47 06 80 13 00 00 00 00 00 00 C9 [14:25:55]Write i2c OK [14:25:55]MH_I2C_Read... [14:25:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:55]Read from MH i2c: E2 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 62 00 [14:25:55]MH_I2C_Read... [14:25:55]Read from MH i2c: E2 62 00 47 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:25:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:55]wFMCommunicate OK [14:25:55]SAM_PROTO_GetFieldsCounters done [14:25:55]requested_item shift.num is exist - process it [14:25:55]requested_item shift.opened is exist - process it [14:25:55]req_shift_opened [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 48 06 80 13 01 00 00 00 00 00 CB [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 48 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 63 [14:25:55]RAPDU: 09 00 01 E8 23 1B 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]req_shift_opened done [14:25:55]requested_item shift.open_date is exist - process it [14:25:55]req_shift_open_date [14:25:55]req_shift_open_date done [14:25:55]produce_requested_data done [14:25:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112301,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:25:55]process_action_free close_receipt [14:25:55]json_value_free [14:25:55]json_value_free done [14:25:55]process_json_proto returns [14:25:55]Send response to host [14:25:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112301,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:25:55]free response buf [14:25:55]execute_script done [14:25:55]execute_script returns [14:25:55]free content buf [14:25:55]Sock 8.Close socket [14:25:55]Sock 8.Thread stoped [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:44]OFD Sender: No OFD packet to send [14:26:49]OFD Sender: No OFD packet to send [14:26:54]OFD Sender: No OFD packet to send [14:26:59]OFD Sender: No OFD packet to send [14:27:04]OFD Sender: No OFD packet to send [14:27:09]OFD Sender: No OFD packet to send [14:27:14]OFD Sender: No OFD packet to send [14:27:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:34]OFD Sender: No OFD packet to send [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:54]OFD Sender: No OFD packet to send [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:27]accept exits with 9 [14:33:27]New connection [14:33:27]New thread 3066826084 created [14:33:27]Thread 3066682724 joined [14:33:27]Waiting for new connection... [14:33:27] Sock 9.Parse request [14:33:27]Sock 9.Check first char [14:33:27]Sock 9.First char is OK [14:33:27]request: POST /json_proto HTTP/1.0 [14:33:27]Method: POST [14:33:27]URL: /json_proto [14:33:27]Method is POST - this is cgi request [14:33:27]url: /json_proto [14:33:27]query_string will be loaded in cgi processing [14:33:27]execute_cgi json_proto POST (null) [14:33:27]execute_cgi path=json_proto method=POST [14:33:27]POST find Content-Length [14:33:27]Host: 172.17.96.197:8080 [14:33:27]Content-Length: 678 [14:33:27]Content-Type: application/json [14:33:27] [14:33:27]POST finish read [14:33:27]Found Content-Length = 678 [14:33:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48615", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:27]execute_script... [14:33:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48615", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:27]POST & json_proto [14:33:27]process_json_proto [14:33:27]json parsed OK: [14:33:27]protocol is kg_v1.0 [14:33:27]action value=close_receipt [14:33:27]process_action close_receipt [14:33:27]cmd_close_receipt [14:33:27]MH_GetDate [14:33:27]Write to MH i2c: F0 00 00 49 06 3E [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 09 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: F0 09 00 49 06 00 37 E9 1B 66 E0 85 7F 64 30 [14:33:27]GetLastDocTimeStamp 1713104751 [14:33:27]current date 1713105207 [14:33:27]FM_GetShiftState [14:33:27]SAM_PROTO_GetShiftState [14:33:27]wFMCommunicate request_size=4 [14:33:27]MH_SAM_APDU [14:33:27]CAPDU: 80 13 01 00 [14:33:27]Write to MH i2c: E2 08 00 4A 06 80 13 01 00 00 00 00 00 CD [14:33:27]Write i2c OK [14:33:27]MH_I2C_Read... [14:33:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:27]Read from MH i2c: E2 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 [14:33:27]MH_I2C_Read... [14:33:27]Read from MH i2c: E2 0E 00 4A 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 65 [14:33:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:33:27]wFMCommunicate OK [14:33:27]SAM_PROTO_GetShiftState done [14:33:27]FM_GetShiftState done [14:33:27]opened in 1713054696 [14:33:27]opened+sec_in_day 1713141096 [14:33:27]quantity*price = 200041 [14:33:27]sum+1 = 200042 [14:33:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 201 14.04.2024 14:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112302 ФПД: 19745904338979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112302&fm=19745904338979&tin=02508201610067®Number=0000000000094237&sum=200000 [14:33:28]StoreToDocumentArchive [14:33:28]shift 357 fd 112302 [14:33:28]save to /storage/0357/doc_00112302 [14:33:28]save last doc name /storage/0357/doc_00112302 to /storage/kkm_last_doc_name [14:33:28]save OK [14:33:28]Clear old archive folders... [14:33:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:33:28]tlvbuf is 00146580 [14:33:28]SAM_PROTO_ClearQueue [14:33:28]wFMCommunicate request_size=4 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 09 00 00 [14:33:28]Write to MH i2c: E2 08 00 57 06 80 09 00 00 00 00 00 00 CF [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:28]Read from MH i2c: E2 03 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 57 06 00 90 00 D1 [14:33:28]RAPDU: 90 00 [14:33:28]wFMCommunicate OK [14:33:28]SAM_PROTO_ClearQueue done [14:33:28]KKMCreateOFDPacket [14:33:28]OFDProtocolAddRootSTLVToBuf [14:33:28]FM_MakeSignedData [14:33:28]FM_MakeSignedData [14:33:28]SAM_PROTO_SignData [14:33:28]wFMCommunicate request_size=4 [14:33:28]MH_SAM_APDU [14:33:28]CAPDU: 80 0D 01 02 [14:33:28]Write to MH i2c: E2 08 00 58 06 80 0D 01 02 00 00 00 00 D7 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:28]Read from MH i2c: E2 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 [14:33:28]MH_I2C_Read... [14:33:28]Read from MH i2c: E2 03 00 58 06 00 90 00 D2 [14:33:28]RAPDU: 90 00 [14:33:28]wFMCommunicate OK [14:33:28]wFMCommunicate request_size=255 [14:33:28]MH_SAM_APDU [14:33:28]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 C9 00 00 00 F4 03 04 00 37 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AE B6 01 00 35 04 06 00 11 F5 73 9D [14:33:28]Write to MH i2c: E2 02 01 59 06 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 C9 00 00 00 F4 03 04 00 37 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AE B6 01 00 35 04 06 00 11 F5 73 9D 00 00 90 [14:33:28]Write i2c OK [14:33:28]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 59 06 00 90 00 D3 [14:33:29]RAPDU: 90 00 [14:33:29]wFMCommunicate OK [14:33:29]wFMCommunicate request_size=7 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 0D 02 02 02 28 23 [14:33:29]Write to MH i2c: E2 0A 00 5A 06 80 0D 02 02 02 00 28 23 00 00 29 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 03 00 5A 06 00 90 00 D4 [14:33:29]RAPDU: 90 00 [14:33:29]wFMCommunicate OK [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 0D 03 02 [14:33:29]Write to MH i2c: E2 08 00 5B 06 80 0D 03 02 00 00 00 00 DC [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0B 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 0B 00 5B 06 00 67 B2 1C 5D DB 3E 8D 4A 90 00 5F [14:33:29]RAPDU: 67 B2 1C 5D DB 3E 8D 4A 90 00 [14:33:29]wFMCommunicate OK [14:33:29]SAM_PROTO_SignData done [14:33:29]FM_MakeSignedData done [14:33:29]CreateOFDProtocolMessage [14:33:29]wFMCommunicate request_size=4 [14:33:29]MH_SAM_APDU [14:33:29]CAPDU: 80 11 00 00 [14:33:29]Write to MH i2c: E2 08 00 5C 06 80 11 00 00 00 00 00 00 DC [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:29]Read from MH i2c: E2 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 17 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: E2 17 00 5C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2D [14:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:33:29]wFMCommunicate OK [14:33:29]CreateOFDProtocolMessage done [14:33:29]OFDSenderStorePacket 112302 [14:33:29]StoreOFDPacket docnum=112302 [14:33:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 65 5D 04 01 CC 0A 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 C9 00 00 00 F4 03 04 00 37 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AE B6 01 00 35 04 06 00 11 F5 73 9D 28 23 67 B2 1C 5D DB 3E 8D 4A [14:33:29]CheckFolder [14:33:29]dirname=/storage/ofd_packets [14:33:29]CheckFolder done [14:33:29]ProducePacketName [14:33:29]name=ofd_packets/00112302 [14:33:29]NVStorageSaveData ofd_packets/00112302 [14:33:29]File name is /storage/ofd_packets/00112302 [14:33:29]Write 298 bytes [14:33:29]NVStorageSaveData done [14:33:29]OFDSenderStorePacket done [14:33:29]KKMCreateOFDPacket done [14:33:29]NVStorageSaveData kkm_last_timestamp [14:33:29]File name is /storage/kkm_last_timestamp [14:33:29]Write 4 bytes [14:33:29]NVStorageSaveData done [14:33:29]ExternCall_PrintAddStr [14:33:29]wPrintStart [14:33:29]Write to MH i2c: 01 00 00 5D 06 63 [14:33:29]Write i2c OK [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 [14:33:29]MH_I2C_Read... [14:33:29]Read from MH i2c: 01 07 00 5D 06 00 00 00 00 00 FF 0F 78 [14:33:29]RasterBufferAndPrint [14:33:29]line Счет N : (1)48615 [14:33:29]line ИНН: 02508201610067 [14:33:29]line Контрольно-Кассовый Чек [14:33:29]line ПРОДАЖА [14:33:29]line ТРК (МРК, ГНК) : 51 [14:33:29]line Товар: 2710194210 [14:33:29]line ДТ-К-5 [14:33:29]line 27.630 * 72.40 [14:33:29]line = 2000.41 [14:33:29]line НДС 12% НСП 1% [14:33:29]line > о реализуемом товаре [14:33:29]line ОКРУГЛЕНИЕ: -0.41 [14:33:29]line ИТОГО: 2000.00 [14:33:29]line Внесено: 2000.00 [14:33:29]line СДАЧА: 0.00 [14:33:29]line НСП 1% : 17.70 [14:33:29]line НДС 12% : 212.43 [14:33:29]line Наличными: 2000.00 [14:33:29]line Безнал.: 0.00 [14:33:29]line Место: АЗС № 47 "Партнер Нефть" [14:33:29]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:33:29]line СНО: Общий режим [14:33:29]line Чек 201 14.04.2024 14:33 [14:33:29]line Смена: 357 ФФД: 1.0 [14:33:29]line ЗНМ: 0300000138 [14:33:29]line РНМ: 0000000000094237 [14:33:29]line Версия ККМ: 001 [14:33:29]line ФМ: 0000000000875019 [14:33:29]line ФД: 112302 [14:33:29]line ФПД: 19745904338979 [14:33:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112302&fm=19745904338979&tin=02508201610067®Number=0000000000094237&sum=200000 [14:33:29]OFD Sender: Processing packet 112302 [packets to send 71, broken 70] [14:33:29]ProducePacketName [14:33:29]name=ofd_packets/00112302 [14:33:29]OFD Sender: To server: pG, [14:33:29]CommunicateWithHost lk.salyk.kg:30040 [14:33:29]ConnectInit lk.salyk.kg [14:33:29]written 0, free lines is 4095 [14:33:29]Connected sock=10 [14:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 65 5D 04 01 CC 0A 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 C9 00 00 00 F4 03 04 00 37 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AE B6 01 00 35 04 06 00 11 F5 73 9D 28 23 67 B2 1C 5D DB 3E 8D 4A [14:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A9 B5 47 00 92 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AE B6 01 00 F4 03 04 00 C3 90 1B 66 B6 04 01 00 00 E6 C4 1B 64 F0 6C DD 21 [14:33:30]CommunicateWithHost err = 0 [14:33:30]CheckOFDResponse [14:33:30]1017 (14) - 77093643461234 [14:33:30]1041 (16) - 0000000000875019 [14:33:30]1040 (4) - 112302 [14:33:30]1012 (4) - 14.04.2024 08:16 [14:33:30]1206 (1) - 0 [14:33:30]OFD Sender: Remove packet 112302 [14:33:30]ProducePacketName [14:33:30]name=ofd_packets/00112302 [14:33:30]NVStorageDeleteData [14:33:30]Write to MH i2c: 01 00 00 88 06 8E [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 F7 0C 98 [14:33:30]RasterBufferAndPrint [14:33:30]line [14:33:30]line [14:33:30]line [14:33:30]line [14:33:30]line [14:33:30]written 0, free lines is 3323 [14:33:30]MH_Cut [14:33:30]Write to MH i2c: D1 01 00 8F 06 01 67 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: D1 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: D1 01 00 [14:33:30]MH_I2C_Read... [14:33:30]Read from MH i2c: D1 01 00 8F 06 00 66 [14:33:30]Write to MH i2c: 01 00 00 90 06 96 [14:33:30]Write i2c OK [14:33:30]MH_I2C_Read... [14:33:30]OFD Sender: No OFD packet to send [14:33:30]*** Cut start [14:33:30]*** Partial cut [14:33:30]*** CUTSNS_PIN = 1 [14:33:30]*** CUTSNS_PIN = 0 [14:33:31]*** Brake cut motor [14:33:31]Read from MH i2c: 01 [14:33:31]MH_I2C_Read... [14:33:31]*** Stop cut motor [14:33:31]*** Cut end [14:33:31]Read from MH i2c: 01 07 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: 01 07 00 90 06 00 00 00 00 00 FF 0F AB [14:33:31]process_action close_receipt done [14:33:31]requested_data is exist [14:33:31]produce_requested_data [14:33:31]requested_item fm.sn is exist - process it [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 11 00 00 [14:33:31]Write to MH i2c: E2 08 00 91 06 80 11 00 00 00 00 00 00 11 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 17 00 91 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [14:33:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:33:31]wFMCommunicate OK [14:33:31]requested_item fd.num is exist - process it [14:33:31]SAM_PROTO_GetFieldsCounters [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 00 00 [14:33:31]Write to MH i2c: E2 08 00 92 06 80 13 00 00 00 00 00 00 14 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 62 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 62 00 92 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [14:33:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_GetFieldsCounters done [14:33:31]requested_item shift.num is exist - process it [14:33:31]requested_item shift.opened is exist - process it [14:33:31]req_shift_opened [14:33:31]FM_GetShiftState [14:33:31]SAM_PROTO_GetShiftState [14:33:31]wFMCommunicate request_size=4 [14:33:31]MH_SAM_APDU [14:33:31]CAPDU: 80 13 01 00 [14:33:31]Write to MH i2c: E2 08 00 93 06 80 13 01 00 00 00 00 00 16 [14:33:31]Write i2c OK [14:33:31]MH_I2C_Read... [14:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:31]Read from MH i2c: E2 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 [14:33:31]MH_I2C_Read... [14:33:31]Read from MH i2c: E2 0E 00 93 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AE [14:33:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:33:31]wFMCommunicate OK [14:33:31]SAM_PROTO_GetShiftState done [14:33:31]FM_GetShiftState done [14:33:31]req_shift_opened done [14:33:31]requested_item shift.open_date is exist - process it [14:33:31]req_shift_open_date [14:33:31]req_shift_open_date done [14:33:31]produce_requested_data done [14:33:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112302,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:33:31]process_action_free close_receipt [14:33:31]json_value_free [14:33:31]json_value_free done [14:33:31]process_json_proto returns [14:33:31]Send response to host [14:33:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112302,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:33:31]free response buf [14:33:31]execute_script done [14:33:31]execute_script returns [14:33:31]free content buf [14:33:31]Sock 9.Close socket [14:33:31]Sock 9.Thread stoped [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:27]accept exits with 8 [14:35:27]New connection [14:35:27]New thread 3066682724 created [14:35:27]Thread 3066826084 joined [14:35:27]Waiting for new connection... [14:35:27] Sock 8.Parse request [14:35:27]Sock 8.Check first char [14:35:27]Sock 8.First char is OK [14:35:27]request: POST /json_proto HTTP/1.0 [14:35:27]Method: POST [14:35:27]URL: /json_proto [14:35:27]Method is POST - this is cgi request [14:35:27]url: /json_proto [14:35:27]query_string will be loaded in cgi processing [14:35:27]execute_cgi json_proto POST (null) [14:35:27]execute_cgi path=json_proto method=POST [14:35:27]POST find Content-Length [14:35:27]Host: 172.17.96.197:8080 [14:35:27]Content-Length: 676 [14:35:27]Content-Type: application/json [14:35:27] [14:35:27]POST finish read [14:35:27]Found Content-Length = 676 [14:35:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48616", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [14:35:27]execute_script... [14:35:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48616", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [14:35:27]POST & json_proto [14:35:27]process_json_proto [14:35:27]json parsed OK: [14:35:27]protocol is kg_v1.0 [14:35:27]action value=close_receipt [14:35:27]process_action close_receipt [14:35:27]cmd_close_receipt [14:35:27]MH_GetDate [14:35:27]Write to MH i2c: F0 00 00 94 06 89 [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 09 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: F0 09 00 94 06 00 AF E9 1B 66 E0 85 7F 64 F3 [14:35:27]GetLastDocTimeStamp 1713105207 [14:35:27]current date 1713105327 [14:35:27]FM_GetShiftState [14:35:27]SAM_PROTO_GetShiftState [14:35:27]wFMCommunicate request_size=4 [14:35:27]MH_SAM_APDU [14:35:27]CAPDU: 80 13 01 00 [14:35:27]Write to MH i2c: E2 08 00 95 06 80 13 01 00 00 00 00 00 18 [14:35:27]Write i2c OK [14:35:27]MH_I2C_Read... [14:35:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:27]Read from MH i2c: E2 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 [14:35:27]MH_I2C_Read... [14:35:27]Read from MH i2c: E2 0E 00 95 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [14:35:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:35:27]wFMCommunicate OK [14:35:27]SAM_PROTO_GetShiftState done [14:35:27]FM_GetShiftState done [14:35:27]opened in 1713054696 [14:35:27]opened+sec_in_day 1713141096 [14:35:27]quantity*price = 40058 [14:35:27]sum+1 = 40060 [14:35:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 202 14.04.2024 14:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112303 ФПД: 114805792368374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143527&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112303&fm=114805792368374&tin=02508201610067®Number=0000000000094237&sum=40000 [14:35:28]StoreToDocumentArchive [14:35:28]shift 357 fd 112303 [14:35:28]save to /storage/0357/doc_00112303 [14:35:28]save last doc name /storage/0357/doc_00112303 to /storage/kkm_last_doc_name [14:35:28]save OK [14:35:28]Clear old archive folders... [14:35:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:28]tlvbuf is 00145D60 [14:35:28]SAM_PROTO_ClearQueue [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 09 00 00 [14:35:28]Write to MH i2c: E2 08 00 A2 06 80 09 00 00 00 00 00 00 1A [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 A2 06 00 90 00 1C [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_ClearQueue done [14:35:28]KKMCreateOFDPacket [14:35:28]OFDProtocolAddRootSTLVToBuf [14:35:28]FM_MakeSignedData [14:35:28]FM_MakeSignedData [14:35:28]SAM_PROTO_SignData [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 01 02 [14:35:28]Write to MH i2c: E2 08 00 A3 06 80 0D 01 02 00 00 00 00 22 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 A3 06 00 90 00 1D [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=255 [14:35:28]MH_SAM_APDU [14:35:28]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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 CA 00 00 00 F4 03 04 00 AF E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AF B6 01 00 35 04 06 00 68 [14:35:28]Write to MH i2c: E2 02 01 A4 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 CA 00 00 00 F4 03 04 00 AF E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AF B6 01 00 35 04 06 00 68 00 00 C6 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 A4 06 00 90 00 1E [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=10 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 02 02 05 6A 4E 78 E6 F6 [14:35:28]Write to MH i2c: E2 0D 00 A5 06 80 0D 02 02 05 00 6A 4E 78 E6 F6 00 00 3B [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 03 00 A5 06 00 90 00 1F [14:35:28]RAPDU: 90 00 [14:35:28]wFMCommunicate OK [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 0D 03 02 [14:35:28]Write to MH i2c: E2 08 00 A6 06 80 0D 03 02 00 00 00 00 27 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0B 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 0B 00 A6 06 00 AC BD D7 71 8B 7C 40 F8 90 00 18 [14:35:28]RAPDU: AC BD D7 71 8B 7C 40 F8 90 00 [14:35:28]wFMCommunicate OK [14:35:28]SAM_PROTO_SignData done [14:35:28]FM_MakeSignedData done [14:35:28]CreateOFDProtocolMessage [14:35:28]wFMCommunicate request_size=4 [14:35:28]MH_SAM_APDU [14:35:28]CAPDU: 80 11 00 00 [14:35:28]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:28]Read from MH i2c: E2 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [14:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:35:28]wFMCommunicate OK [14:35:28]CreateOFDProtocolMessage done [14:35:28]OFDSenderStorePacket 112303 [14:35:28]StoreOFDPacket docnum=112303 [14:35:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 64 03 07 01 12 36 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 CA 00 00 00 F4 03 04 00 AF E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AF B6 01 00 35 04 06 00 68 6A 4E 78 E6 F6 AC BD D7 71 8B 7C 40 F8 [14:35:28]CheckFolder [14:35:28]dirname=/storage/ofd_packets [14:35:28]CheckFolder done [14:35:28]ProducePacketName [14:35:28]name=ofd_packets/00112303 [14:35:28]NVStorageSaveData ofd_packets/00112303 [14:35:28]File name is /storage/ofd_packets/00112303 [14:35:28]Write 301 bytes [14:35:28]NVStorageSaveData done [14:35:28]OFDSenderStorePacket done [14:35:28]KKMCreateOFDPacket done [14:35:28]NVStorageSaveData kkm_last_timestamp [14:35:28]File name is /storage/kkm_last_timestamp [14:35:28]Write 4 bytes [14:35:28]NVStorageSaveData done [14:35:28]ExternCall_PrintAddStr [14:35:28]wPrintStart [14:35:28]Write to MH i2c: 01 00 00 A8 06 AE [14:35:28]Write i2c OK [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 07 00 [14:35:28]MH_I2C_Read... [14:35:28]Read from MH i2c: 01 07 00 A8 06 00 00 00 00 00 FF 0F C3 [14:35:28]RasterBufferAndPrint [14:35:28]line Счет N : (1)48616 [14:35:28]line ИНН: 02508201610067 [14:35:28]line Контрольно-Кассовый Чек [14:35:28]line ПРОДАЖА [14:35:28]line ТРК (МРК, ГНК) : 32 [14:35:28]line Товар: 2710124130 [14:35:28]line Аи-92-К-5 [14:35:28]line 6.230 * 64.30 [14:35:28]line = 400.59 [14:35:28]line НДС 12% НСП 1% [14:35:28]line > о реализуемом товаре [14:35:28]line ОКРУГЛЕНИЕ: -0.59 [14:35:28]line ИТОГО: 400.00 [14:35:28]line Внесено: 400.00 [14:35:28]line СДАЧА: 0.00 [14:35:28]line НСП 1% : 3.54 [14:35:28]line НДС 12% : 42.54 [14:35:28]line Наличными: 400.00 [14:35:28]line Безнал.: 0.00 [14:35:28]line Место: АЗС № 47 "Партнер Нефть" [14:35:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:35:28]line СНО: Общий режим [14:35:28]line Чек 202 14.04.2024 14:35 [14:35:28]line Смена: 357 ФФД: 1.0 [14:35:28]line ЗНМ: 0300000138 [14:35:28]line РНМ: 0000000000094237 [14:35:28]line Версия ККМ: 001 [14:35:28]line ФМ: 0000000000875019 [14:35:28]line ФД: 112303 [14:35:28]line ФПД: 114805792368374 [14:35:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143527&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112303&fm=114805792368374&tin=02508201610067®Number=0000000000094237&sum=40000 [14:35:29]OFD Sender: Processing packet 112303 [packets to send 71, broken 70] [14:35:29]ProducePacketName [14:35:29]name=ofd_packets/00112303 [14:35:29]OFD Sender: To server: pG, [14:35:29]CommunicateWithHost lk.salyk.kg:30040 [14:35:29]ConnectInit lk.salyk.kg [14:35:29]written 0, free lines is 4095 [14:35:29]Connected sock=11 [14:35:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 64 03 07 01 12 36 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 CA 00 00 00 F4 03 04 00 AF E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AF B6 01 00 35 04 06 00 68 6A 4E 78 E6 F6 AC BD D7 71 8B 7C 40 F8 [14:35:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D5 B4 47 00 39 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 AF B6 01 00 F4 03 04 00 3A 91 1B 66 B6 04 01 00 00 66 35 CA FF 7A A0 96 4B [14:35:29]CommunicateWithHost err = 0 [14:35:29]CheckOFDResponse [14:35:29]1017 (14) - 77093643461234 [14:35:29]1041 (16) - 0000000000875019 [14:35:29]1040 (4) - 112303 [14:35:29]1012 (4) - 14.04.2024 08:18 [14:35:29]1206 (1) - 0 [14:35:29]OFD Sender: Remove packet 112303 [14:35:29]ProducePacketName [14:35:29]name=ofd_packets/00112303 [14:35:29]NVStorageDeleteData [14:35:29]Write to MH i2c: 01 00 00 D3 06 D9 [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 07 00 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: 01 07 00 D3 06 00 00 00 00 00 EB 0C D7 [14:35:29]RasterBufferAndPrint [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]line [14:35:29]written 0, free lines is 3313 [14:35:29]MH_Cut [14:35:29]Write to MH i2c: D1 01 00 DA 06 01 B2 [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 01 00 [14:35:29]MH_I2C_Read... [14:35:29]Read from MH i2c: D1 01 00 DA 06 00 B1 [14:35:29]Write to MH i2c: 01 00 00 DB 06 E1 [14:35:29]Write i2c OK [14:35:29]MH_I2C_Read... [14:35:30]OFD Sender: No OFD packet to send [14:35:30]*** Cut start [14:35:30]*** Partial cut [14:35:30]*** CUTSNS_PIN = 1 [14:35:30]*** CUTSNS_PIN = 0 [14:35:30]*** Brake cut motor [14:35:30]Read from MH i2c: 01 [14:35:30]MH_I2C_Read... [14:35:30]*** Stop cut motor [14:35:30]*** Cut end [14:35:30]Read from MH i2c: 01 07 00 [14:35:30]MH_I2C_Read... [14:35:30]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [14:35:30]process_action close_receipt done [14:35:30]requested_data is exist [14:35:30]produce_requested_data [14:35:30]requested_item fm.sn is exist - process it [14:35:30]wFMCommunicate request_size=4 [14:35:30]MH_SAM_APDU [14:35:30]CAPDU: 80 11 00 00 [14:35:30]Write to MH i2c: E2 08 00 DC 06 80 11 00 00 00 00 00 00 5C [14:35:30]Write i2c OK [14:35:30]MH_I2C_Read... [14:35:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:30]Read from MH i2c: E2 [14:35:30]MH_I2C_Read... [14:35:30]Read from MH i2c: E2 17 00 [14:35:30]MH_I2C_Read... [14:35:30]Read from MH i2c: E2 17 00 DC 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AD [14:35:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:35:30]wFMCommunicate OK [14:35:30]requested_item fd.num is exist - process it [14:35:30]SAM_PROTO_GetFieldsCounters [14:35:30]wFMCommunicate request_size=4 [14:35:30]MH_SAM_APDU [14:35:30]CAPDU: 80 13 00 00 [14:35:30]Write to MH i2c: E2 08 00 DD 06 80 13 00 00 00 00 00 00 5F [14:35:30]Write i2c OK [14:35:30]MH_I2C_Read... [14:35:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:31]Read from MH i2c: E2 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 62 00 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 62 00 DD 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [14:35:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 AF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:31]wFMCommunicate OK [14:35:31]SAM_PROTO_GetFieldsCounters done [14:35:31]requested_item shift.num is exist - process it [14:35:31]requested_item shift.opened is exist - process it [14:35:31]req_shift_opened [14:35:31]FM_GetShiftState [14:35:31]SAM_PROTO_GetShiftState [14:35:31]wFMCommunicate request_size=4 [14:35:31]MH_SAM_APDU [14:35:31]CAPDU: 80 13 01 00 [14:35:31]Write to MH i2c: E2 08 00 DE 06 80 13 01 00 00 00 00 00 61 [14:35:31]Write i2c OK [14:35:31]MH_I2C_Read... [14:35:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:31]Read from MH i2c: E2 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 0E 00 [14:35:31]MH_I2C_Read... [14:35:31]Read from MH i2c: E2 0E 00 DE 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F9 [14:35:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:35:31]wFMCommunicate OK [14:35:31]SAM_PROTO_GetShiftState done [14:35:31]FM_GetShiftState done [14:35:31]req_shift_opened done [14:35:31]requested_item shift.open_date is exist - process it [14:35:31]req_shift_open_date [14:35:31]req_shift_open_date done [14:35:31]produce_requested_data done [14:35:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112303,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:35:31]process_action_free close_receipt [14:35:31]json_value_free [14:35:31]json_value_free done [14:35:31]process_json_proto returns [14:35:31]Send response to host [14:35:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112303,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:35:31]free response buf [14:35:31]execute_script done [14:35:31]execute_script returns [14:35:31]free content buf [14:35:31]Sock 8.Close socket [14:35:31]Sock 8.Thread stoped [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:44]accept exits with 9 [14:35:44]New connection [14:35:44]New thread 3066826084 created [14:35:44]Thread 3066682724 joined [14:35:44]Waiting for new connection... [14:35:44] Sock 9.Parse request [14:35:44]Sock 9.Check first char [14:35:44]Sock 9.First char is OK [14:35:44]request: POST /json_proto HTTP/1.0 [14:35:44]Method: POST [14:35:44]URL: /json_proto [14:35:44]Method is POST - this is cgi request [14:35:44]url: /json_proto [14:35:44]query_string will be loaded in cgi processing [14:35:44]execute_cgi json_proto POST (null) [14:35:44]execute_cgi path=json_proto method=POST [14:35:44]POST find Content-Length [14:35:44]Host: 172.17.96.197:8080 [14:35:44]Content-Length: 676 [14:35:44]Content-Type: application/json [14:35:44] [14:35:44]POST finish read [14:35:44]Found Content-Length = 676 [14:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [14:35:44]execute_script... [14:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [14:35:44]POST & json_proto [14:35:44]process_json_proto [14:35:44]json parsed OK: [14:35:44]protocol is kg_v1.0 [14:35:44]action value=close_receipt [14:35:44]process_action close_receipt [14:35:44]cmd_close_receipt [14:35:44]MH_GetDate [14:35:44]Write to MH i2c: F0 00 00 DF 06 D4 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 09 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 09 00 DF 06 00 C0 E9 1B 66 E0 85 7F 64 4F [14:35:44]GetLastDocTimeStamp 1713105327 [14:35:44]current date 1713105344 [14:35:44]FM_GetShiftState [14:35:44]SAM_PROTO_GetShiftState [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 13 01 00 [14:35:44]Write to MH i2c: E2 08 00 E0 06 80 13 01 00 00 00 00 00 63 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 E0 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [14:35:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_GetShiftState done [14:35:44]FM_GetShiftState done [14:35:44]opened in 1713054696 [14:35:44]opened+sec_in_day 1713141096 [14:35:44]quantity*price = 20061 [14:35:44]sum+1 = 20063 [14:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 203 14.04.2024 14:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112304 ФПД: 220917822783738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143544&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112304&fm=220917822783738&tin=02508201610067®Number=0000000000094237&sum=20000 [14:35:45]StoreToDocumentArchive [14:35:45]shift 357 fd 112304 [14:35:45]save to /storage/0357/doc_00112304 [14:35:45]save last doc name /storage/0357/doc_00112304 to /storage/kkm_last_doc_name [14:35:45]save OK [14:35:45]Clear old archive folders... [14:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:35:45]tlvbuf is 00133FE0 [14:35:45]SAM_PROTO_ClearQueue [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 09 00 00 [14:35:45]Write to MH i2c: E2 08 00 ED 06 80 09 00 00 00 00 00 00 65 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 ED 06 00 90 00 67 [14:35:45]RAPDU: 90 00 [14:35:45]wFMCommunicate OK [14:35:45]SAM_PROTO_ClearQueue done [14:35:45]KKMCreateOFDPacket [14:35:45]OFDProtocolAddRootSTLVToBuf [14:35:45]FM_MakeSignedData [14:35:45]FM_MakeSignedData [14:35:45]SAM_PROTO_SignData [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 0D 01 02 [14:35:45]Write to MH i2c: E2 08 00 EE 06 80 0D 01 02 00 00 00 00 6D [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 EE 06 00 90 00 68 [14:35:45]RAPDU: 90 00 [14:35:45]wFMCommunicate OK [14:35:45]wFMCommunicate request_size=255 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 CB 00 00 00 F4 03 04 00 C0 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B0 B6 01 00 35 04 06 00 C8 [14:35:45]Write to MH i2c: E2 02 01 EF 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 CB 00 00 00 F4 03 04 00 C0 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B0 B6 01 00 35 04 06 00 C8 00 00 05 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 EF 06 00 90 00 69 [14:35:46]RAPDU: 90 00 [14:35:46]wFMCommunicate OK [14:35:46]wFMCommunicate request_size=10 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 0D 02 02 05 EC 70 5A 00 FA [14:35:46]Write to MH i2c: E2 0D 00 F0 06 80 0D 02 02 05 00 EC 70 5A 00 FA 00 00 2A [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 F0 06 00 90 00 6A [14:35:46]RAPDU: 90 00 [14:35:46]wFMCommunicate OK [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 0D 03 02 [14:35:46]Write to MH i2c: E2 08 00 F1 06 80 0D 03 02 00 00 00 00 72 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0B 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0B 00 F1 06 00 F9 FF D3 0B 94 5D F9 A9 90 00 DC [14:35:46]RAPDU: F9 FF D3 0B 94 5D F9 A9 90 00 [14:35:46]wFMCommunicate OK [14:35:46]SAM_PROTO_SignData done [14:35:46]FM_MakeSignedData done [14:35:46]CreateOFDProtocolMessage [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 11 00 00 [14:35:46]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [14:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:35:46]wFMCommunicate OK [14:35:46]CreateOFDProtocolMessage done [14:35:46]OFDSenderStorePacket 112304 [14:35:46]StoreOFDPacket docnum=112304 [14:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C4 65 07 01 9D 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 CB 00 00 00 F4 03 04 00 C0 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B0 B6 01 00 35 04 06 00 C8 EC 70 5A 00 FA F9 FF D3 0B 94 5D F9 A9 [14:35:46]CheckFolder [14:35:46]dirname=/storage/ofd_packets [14:35:46]CheckFolder done [14:35:46]ProducePacketName [14:35:46]name=ofd_packets/00112304 [14:35:46]NVStorageSaveData ofd_packets/00112304 [14:35:46]File name is /storage/ofd_packets/00112304 [14:35:46]Write 301 bytes [14:35:46]NVStorageSaveData done [14:35:46]OFDSenderStorePacket done [14:35:46]KKMCreateOFDPacket done [14:35:46]NVStorageSaveData kkm_last_timestamp [14:35:46]File name is /storage/kkm_last_timestamp [14:35:46]Write 4 bytes [14:35:46]NVStorageSaveData done [14:35:46]ExternCall_PrintAddStr [14:35:46]wPrintStart [14:35:46]Write to MH i2c: 01 00 00 F3 06 F9 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 F3 06 00 00 00 00 00 FF 0F 0E [14:35:46]RasterBufferAndPrint [14:35:46]line Счет N : (1)48617 [14:35:46]line ИНН: 02508201610067 [14:35:46]line Контрольно-Кассовый Чек [14:35:46]line ПРОДАЖА [14:35:46]line ТРК (МРК, ГНК) : 21 [14:35:46]line Товар: 2710124130 [14:35:46]line Аи-92-К-5 [14:35:46]line 3.120 * 64.30 [14:35:46]line = 200.62 [14:35:46]line НДС 12% НСП 1% [14:35:46]line > о реализуемом товаре [14:35:46]line ОКРУГЛЕНИЕ: -0.62 [14:35:46]line ИТОГО: 200.00 [14:35:46]line Внесено: 200.00 [14:35:46]line СДАЧА: 0.00 [14:35:46]line НСП 1% : 1.77 [14:35:46]line НДС 12% : 21.30 [14:35:46]line Наличными: 200.00 [14:35:46]line Безнал.: 0.00 [14:35:46]line Место: АЗС № 47 "Партнер Нефть" [14:35:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:35:46]line СНО: Общий режим [14:35:46]line Чек 203 14.04.2024 14:35 [14:35:46]line Смена: 357 ФФД: 1.0 [14:35:46]line ЗНМ: 0300000138 [14:35:46]line РНМ: 0000000000094237 [14:35:46]line Версия ККМ: 001 [14:35:46]line ФМ: 0000000000875019 [14:35:46]line ФД: 112304 [14:35:46]line ФПД: 220917822783738 [14:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143544&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112304&fm=220917822783738&tin=02508201610067®Number=0000000000094237&sum=20000 [14:35:46]written 0, free lines is 4095 [14:35:46]OFD Sender: Processing packet 112304 [packets to send 71, broken 70] [14:35:46]ProducePacketName [14:35:46]name=ofd_packets/00112304 [14:35:46]OFD Sender: To server: pG, [14:35:46]CommunicateWithHost lk.salyk.kg:30040 [14:35:46]ConnectInit lk.salyk.kg [14:35:46]Connected sock=10 [14:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C4 65 07 01 9D 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 CB 00 00 00 F4 03 04 00 C0 E9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B0 B6 01 00 35 04 06 00 C8 EC 70 5A 00 FA F9 FF D3 0B 94 5D F9 A9 [14:35:46]Write to MH i2c: 01 00 00 1E 07 25 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 1E 07 00 00 00 00 00 EB 0C 23 [14:35:46]RasterBufferAndPrint [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]line [14:35:46]written 0, free lines is 3313 [14:35:46]MH_Cut [14:35:46]Write to MH i2c: D1 01 00 25 07 01 FE [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 01 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: D1 01 00 25 07 00 FD [14:35:46]Write to MH i2c: 01 00 00 26 07 2D [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 CB E2 47 00 A1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B0 B6 01 00 F4 03 04 00 4B 91 1B 66 B6 04 01 00 00 93 B6 83 D8 49 3B 73 90 [14:35:46]CommunicateWithHost err = 0 [14:35:46]CheckOFDResponse [14:35:46]1017 (14) - 77093643461234 [14:35:46]1041 (16) - 0000000000875019 [14:35:46]1040 (4) - 112304 [14:35:46]1012 (4) - 14.04.2024 08:18 [14:35:46]1206 (1) - 0 [14:35:46]OFD Sender: Remove packet 112304 [14:35:46]ProducePacketName [14:35:46]name=ofd_packets/00112304 [14:35:46]NVStorageDeleteData [14:35:47]OFD Sender: No OFD packet to send [14:35:47]*** Cut start [14:35:47]*** Partial cut [14:35:47]*** CUTSNS_PIN = 1 [14:35:47]*** CUTSNS_PIN = 0 [14:35:47]*** Brake cut motor [14:35:48]Read from MH i2c: 01 [14:35:48]MH_I2C_Read... [14:35:48]*** Stop cut motor [14:35:48]*** Cut end [14:35:48]Read from MH i2c: 01 07 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 26 07 00 00 00 00 00 FF 0F 42 [14:35:48]process_action close_receipt done [14:35:48]requested_data is exist [14:35:48]produce_requested_data [14:35:48]requested_item fm.sn is exist - process it [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 11 00 00 [14:35:48]Write to MH i2c: E2 08 00 27 07 80 11 00 00 00 00 00 00 A8 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 27 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F9 [14:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:35:48]wFMCommunicate OK [14:35:48]requested_item fd.num is exist - process it [14:35:48]SAM_PROTO_GetFieldsCounters [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 13 00 00 [14:35:48]Write to MH i2c: E2 08 00 28 07 80 13 00 00 00 00 00 00 AB [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 62 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 62 00 28 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [14:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_GetFieldsCounters done [14:35:48]requested_item shift.num is exist - process it [14:35:48]requested_item shift.opened is exist - process it [14:35:48]req_shift_opened [14:35:48]FM_GetShiftState [14:35:48]SAM_PROTO_GetShiftState [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 13 01 00 [14:35:48]Write to MH i2c: E2 08 00 29 07 80 13 01 00 00 00 00 00 AD [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 29 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 45 [14:35:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_GetShiftState done [14:35:48]FM_GetShiftState done [14:35:48]req_shift_opened done [14:35:48]requested_item shift.open_date is exist - process it [14:35:48]req_shift_open_date [14:35:48]req_shift_open_date done [14:35:48]produce_requested_data done [14:35:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112304,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:35:48]process_action_free close_receipt [14:35:48]json_value_free [14:35:48]json_value_free done [14:35:48]process_json_proto returns [14:35:48]Send response to host [14:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112304,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:35:48]free response buf [14:35:48]execute_script done [14:35:48]execute_script returns [14:35:48]free content buf [14:35:48]Sock 9.Close socket [14:35:48]Sock 9.Thread stoped [14:35:52]OFD Sender: No OFD packet to send [14:35:57]OFD Sender: No OFD packet to send [14:36:02]OFD Sender: No OFD packet to send [14:36:07]OFD Sender: No OFD packet to send [14:36:12]OFD Sender: No OFD packet to send [14:36:17]OFD Sender: No OFD packet to send [14:36:22]OFD Sender: No OFD packet to send [14:36:27]OFD Sender: No OFD packet to send [14:36:32]OFD Sender: No OFD packet to send [14:36:37]OFD Sender: No OFD packet to send [14:36:42]OFD Sender: No OFD packet to send [14:36:47]OFD Sender: No OFD packet to send [14:36:52]OFD Sender: No OFD packet to send [14:36:57]OFD Sender: No OFD packet to send [14:37:02]OFD Sender: No OFD packet to send [14:37:07]OFD Sender: No OFD packet to send [14:37:12]OFD Sender: No OFD packet to send [14:37:17]OFD Sender: No OFD packet to send [14:37:22]OFD Sender: No OFD packet to send [14:37:27]OFD Sender: No OFD packet to send [14:37:32]OFD Sender: No OFD packet to send [14:37:37]OFD Sender: No OFD packet to send [14:37:42]OFD Sender: No OFD packet to send [14:37:47]OFD Sender: No OFD packet to send [14:37:52]OFD Sender: No OFD packet to send [14:37:57]OFD Sender: No OFD packet to send [14:38:02]OFD Sender: No OFD packet to send [14:38:07]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]accept exits with 8 [14:39:02]New connection [14:39:02]New thread 3066682724 created [14:39:02]Thread 3066826084 joined [14:39:02]Waiting for new connection... [14:39:02] Sock 8.Parse request [14:39:02]Sock 8.Check first char [14:39:02]Sock 8.First char is OK [14:39:02]request: POST /json_proto HTTP/1.0 [14:39:02]Method: POST [14:39:02]URL: /json_proto [14:39:02]Method is POST - this is cgi request [14:39:02]url: /json_proto [14:39:02]query_string will be loaded in cgi processing [14:39:02]execute_cgi json_proto POST (null) [14:39:02]execute_cgi path=json_proto method=POST [14:39:02]POST find Content-Length [14:39:02]Host: 172.17.96.197:8080 [14:39:02]Content-Length: 660 [14:39:02]Content-Type: application/json [14:39:02] [14:39:02]POST finish read [14:39:02]Found Content-Length = 660 [14:39:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48618", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:02]execute_script... [14:39: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)48618", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:02]POST & json_proto [14:39:02]process_json_proto [14:39:02]json parsed OK: [14:39:02]protocol is kg_v1.0 [14:39:02]action value=close_receipt [14:39:02]process_action close_receipt [14:39:02]cmd_close_receipt [14:39:02]MH_GetDate [14:39:02]Write to MH i2c: F0 00 00 2A 07 20 [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: F0 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: F0 09 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: F0 09 00 2A 07 00 86 EA 1B 66 E0 85 7F 64 62 [14:39:02]GetLastDocTimeStamp 1713105344 [14:39:02]current date 1713105542 [14:39:02]FM_GetShiftState [14:39:02]SAM_PROTO_GetShiftState [14:39:02]wFMCommunicate request_size=4 [14:39:02]MH_SAM_APDU [14:39:02]CAPDU: 80 13 01 00 [14:39:02]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [14:39:02]Write i2c OK [14:39:02]MH_I2C_Read... [14:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:02]Read from MH i2c: E2 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: E2 0E 00 [14:39:02]MH_I2C_Read... [14:39:02]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 47 [14:39:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:39:02]wFMCommunicate OK [14:39:02]SAM_PROTO_GetShiftState done [14:39:02]FM_GetShiftState done [14:39:02]opened in 1713054696 [14:39:02]opened+sec_in_day 1713141096 [14:39:02]quantity*price = 64300 [14:39:02]sum+1 = 64301 [14:39:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 Внесено: 5000.00 СДАЧА: 4357.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 204 14.04.2024 14:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112305 ФПД: 178940281252743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143902&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112305&fm=178940281252743&tin=02508201610067®Number=0000000000094237&sum=64300 [14:39:03]StoreToDocumentArchive [14:39:03]shift 357 fd 112305 [14:39:03]save to /storage/0357/doc_00112305 [14:39:03]save last doc name /storage/0357/doc_00112305 to /storage/kkm_last_doc_name [14:39:03]save OK [14:39:03]Clear old archive folders... [14:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:03]tlvbuf is 0014D440 [14:39:03]SAM_PROTO_ClearQueue [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 09 00 00 [14:39:03]Write to MH i2c: E2 08 00 38 07 80 09 00 00 00 00 00 00 B1 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 38 07 00 90 00 B3 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_ClearQueue done [14:39:03]KKMCreateOFDPacket [14:39:03]OFDProtocolAddRootSTLVToBuf [14:39:03]FM_MakeSignedData [14:39:03]FM_MakeSignedData [14:39:03]SAM_PROTO_SignData [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 01 02 [14:39:03]Write to MH i2c: E2 08 00 39 07 80 0D 01 02 00 00 00 00 B9 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 39 07 00 90 00 B4 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=255 [14:39:03]MH_SAM_APDU [14:39: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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 86 EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B1 B6 01 00 35 04 06 00 A2 [14:39:03]Write to MH i2c: E2 02 01 3A 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 86 EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B1 B6 01 00 35 04 06 00 A2 00 00 D2 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=10 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 02 02 05 BE C7 E6 6B 87 [14:39:03]Write to MH i2c: E2 0D 00 3B 07 80 0D 02 02 05 00 BE C7 E6 6B 87 00 00 23 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [14:39:03]RAPDU: 90 00 [14:39:03]wFMCommunicate OK [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 0D 03 02 [14:39:03]Write to MH i2c: E2 08 00 3C 07 80 0D 03 02 00 00 00 00 BE [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 0B 00 3C 07 00 F9 C0 84 9A A8 98 E1 71 90 00 28 [14:39:03]RAPDU: F9 C0 84 9A A8 98 E1 71 90 00 [14:39:03]wFMCommunicate OK [14:39:03]SAM_PROTO_SignData done [14:39:03]FM_MakeSignedData done [14:39:03]CreateOFDProtocolMessage [14:39:03]wFMCommunicate request_size=4 [14:39:03]MH_SAM_APDU [14:39:03]CAPDU: 80 11 00 00 [14:39:03]Write to MH i2c: E2 08 00 3D 07 80 11 00 00 00 00 00 00 BE [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:03]Read from MH i2c: E2 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: E2 17 00 3D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [14:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:39:03]wFMCommunicate OK [14:39:03]CreateOFDProtocolMessage done [14:39:03]OFDSenderStorePacket 112305 [14:39:03]StoreOFDPacket docnum=112305 [14:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D8 A4 07 01 63 7A 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 86 EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B1 B6 01 00 35 04 06 00 A2 BE C7 E6 6B 87 F9 C0 84 9A A8 98 E1 71 [14:39:03]CheckFolder [14:39:03]dirname=/storage/ofd_packets [14:39:03]CheckFolder done [14:39:03]ProducePacketName [14:39:03]name=ofd_packets/00112305 [14:39:03]NVStorageSaveData ofd_packets/00112305 [14:39:03]File name is /storage/ofd_packets/00112305 [14:39:03]Write 301 bytes [14:39:03]NVStorageSaveData done [14:39:03]OFDSenderStorePacket done [14:39:03]KKMCreateOFDPacket done [14:39:03]NVStorageSaveData kkm_last_timestamp [14:39:03]File name is /storage/kkm_last_timestamp [14:39:03]Write 4 bytes [14:39:03]NVStorageSaveData done [14:39:03]ExternCall_PrintAddStr [14:39:03]wPrintStart [14:39:03]Write to MH i2c: 01 00 00 3E 07 45 [14:39:03]Write i2c OK [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 [14:39:03]MH_I2C_Read... [14:39:03]Read from MH i2c: 01 07 00 3E 07 00 00 00 00 00 FF 0F 5A [14:39:03]RasterBufferAndPrint [14:39:03]line Счет N : (1)48618 [14:39:03]line ИНН: 02508201610067 [14:39:03]line Контрольно-Кассовый Чек [14:39:03]line ПРОДАЖА [14:39:03]line ТРК (МРК, ГНК) : 32 [14:39:03]line Товар: 2710124130 [14:39:03]line Аи-92-К-5 [14:39:03]line 10.000 * 64.30 [14:39:03]line = 643.00 [14:39:03]line НДС 12% НСП 1% [14:39:03]line > о реализуемом товаре [14:39:03]line ИТОГО: 643.00 [14:39:03]line Внесено: 5000.00 [14:39:03]line СДАЧА: 4357.00 [14:39:03]line НСП 1% : 5.69 [14:39:03]line НДС 12% : 68.28 [14:39:03]line Наличными: 643.00 [14:39:03]line Безнал.: 0.00 [14:39:03]line Место: АЗС № 47 "Партнер Нефть" [14:39:03]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:39:03]line СНО: Общий режим [14:39:03]line Чек 204 14.04.2024 14:39 [14:39:03]line Смена: 357 ФФД: 1.0 [14:39:03]line ЗНМ: 0300000138 [14:39:03]line РНМ: 0000000000094237 [14:39:03]line Версия ККМ: 001 [14:39:03]line ФМ: 0000000000875019 [14:39:03]line ФД: 112305 [14:39:03]line ФПД: 178940281252743 [14:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143902&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112305&fm=178940281252743&tin=02508201610067®Number=0000000000094237&sum=64300 [14:39:04]OFD Sender: Processing packet 112305 [packets to send 71, broken 70] [14:39:04]ProducePacketName [14:39:04]name=ofd_packets/00112305 [14:39:04]OFD Sender: To server: pG, [14:39:04]CommunicateWithHost lk.salyk.kg:30040 [14:39:04]ConnectInit lk.salyk.kg [14:39:04]written 0, free lines is 4095 [14:39:04]Connected sock=10 [14:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D8 A4 07 01 63 7A 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 86 EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B1 B6 01 00 35 04 06 00 A2 BE C7 E6 6B 87 F9 C0 84 9A A8 98 E1 71 [14:39:04]Write to MH i2c: 01 00 00 68 07 6F [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: 01 07 00 68 07 00 00 00 00 00 E7 0C 69 [14:39:04]RasterBufferAndPrint [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]line [14:39:04]written 0, free lines is 3310 [14:39:04]MH_Cut [14:39:04]Write to MH i2c: D1 01 00 6F 07 01 48 [14:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 67 27 47 00 3F 09 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B1 B6 01 00 F4 03 04 00 11 92 1B 66 B6 04 01 00 00 DD 7F C8 D3 7C BC B9 CF [14:39:04]CommunicateWithHost err = 0 [14:39:04]CheckOFDResponse [14:39:04]1017 (14) - 77093643461234 [14:39:04]1041 (16) - 0000000000875019 [14:39:04]1040 (4) - 112305 [14:39:04]1012 (4) - 14.04.2024 08:21 [14:39:04]1206 (1) - 0 [14:39:04]OFD Sender: Remove packet 112305 [14:39:04]ProducePacketName [14:39:04]name=ofd_packets/00112305 [14:39:04]NVStorageDeleteData [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 01 00 [14:39:04]MH_I2C_Read... [14:39:04]Read from MH i2c: D1 01 00 6F 07 00 47 [14:39:04]Write to MH i2c: 01 00 00 70 07 77 [14:39:04]Write i2c OK [14:39:04]MH_I2C_Read... [14:39:05]OFD Sender: No OFD packet to send [14:39:05]*** Cut start [14:39:05]*** Partial cut [14:39:05]*** CUTSNS_PIN = 1 [14:39:05]*** CUTSNS_PIN = 0 [14:39:05]*** Brake cut motor [14:39:06]Read from MH i2c: 01 [14:39:06]MH_I2C_Read... [14:39:06]*** Stop cut motor [14:39:06]*** Cut end [14:39:06]Read from MH i2c: 01 07 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: 01 07 00 70 07 00 00 00 00 00 FF 0F 8C [14:39:06]process_action close_receipt done [14:39:06]requested_data is exist [14:39:06]produce_requested_data [14:39:06]requested_item fm.sn is exist - process it [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 11 00 00 [14:39:06]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 17 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 43 [14:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:39:06]wFMCommunicate OK [14:39:06]requested_item fd.num is exist - process it [14:39:06]SAM_PROTO_GetFieldsCounters [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 13 00 00 [14:39:06]Write to MH i2c: E2 08 00 72 07 80 13 00 00 00 00 00 00 F5 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 62 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 62 00 72 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [14:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_GetFieldsCounters done [14:39:06]requested_item shift.num is exist - process it [14:39:06]requested_item shift.opened is exist - process it [14:39:06]req_shift_opened [14:39:06]FM_GetShiftState [14:39:06]SAM_PROTO_GetShiftState [14:39:06]wFMCommunicate request_size=4 [14:39:06]MH_SAM_APDU [14:39:06]CAPDU: 80 13 01 00 [14:39:06]Write to MH i2c: E2 08 00 73 07 80 13 01 00 00 00 00 00 F7 [14:39:06]Write i2c OK [14:39:06]MH_I2C_Read... [14:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:06]Read from MH i2c: E2 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 [14:39:06]MH_I2C_Read... [14:39:06]Read from MH i2c: E2 0E 00 73 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8F [14:39:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:39:06]wFMCommunicate OK [14:39:06]SAM_PROTO_GetShiftState done [14:39:06]FM_GetShiftState done [14:39:06]req_shift_opened done [14:39:06]requested_item shift.open_date is exist - process it [14:39:06]req_shift_open_date [14:39:06]req_shift_open_date done [14:39:06]produce_requested_data done [14:39:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112305,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:39:06]process_action_free close_receipt [14:39:06]json_value_free [14:39:06]json_value_free done [14:39:06]process_json_proto returns [14:39:06]Send response to host [14:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112305,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:39:06]free response buf [14:39:06]execute_script done [14:39:06]execute_script returns [14:39:06]free content buf [14:39:06]Sock 8.Close socket [14:39:06]Sock 8.Thread stoped [14:39:07]accept exits with 9 [14:39:07]New connection [14:39:07]New thread 3066826084 created [14:39:07]Thread 3066682724 joined [14:39:07]Waiting for new connection... [14:39:07] Sock 9.Parse request [14:39:07]Sock 9.Check first char [14:39:07]Sock 9.First char is OK [14:39:07]request: POST /json_proto HTTP/1.0 [14:39:07]Method: POST [14:39:07]URL: /json_proto [14:39:07]Method is POST - this is cgi request [14:39:07]url: /json_proto [14:39:07]query_string will be loaded in cgi processing [14:39:07]execute_cgi json_proto POST (null) [14:39:07]execute_cgi path=json_proto method=POST [14:39:07]POST find Content-Length [14:39:07]Host: 172.17.96.197:8080 [14:39:07]Content-Length: 999 [14:39:07]Content-Type: application/json [14:39:07] [14:39:07]POST finish read [14:39:07]Found Content-Length = 999 [14:39:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10423", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:07]execute_script... [14:39:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10423", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 180.00, "quantity" : 1.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:07]POST & json_proto [14:39:07]process_json_proto [14:39:07]json parsed OK: [14:39:07]protocol is kg_v1.0 [14:39:07]action value=close_receipt [14:39:07]process_action close_receipt [14:39:07]cmd_close_receipt [14:39:07]MH_GetDate [14:39:07]Write to MH i2c: F0 00 00 74 07 6A [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: F0 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: F0 09 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: F0 09 00 74 07 00 8B EA 1B 66 E0 85 7F 64 B1 [14:39:07]GetLastDocTimeStamp 1713105542 [14:39:07]current date 1713105547 [14:39:07]FM_GetShiftState [14:39:07]SAM_PROTO_GetShiftState [14:39:07]wFMCommunicate request_size=4 [14:39:07]MH_SAM_APDU [14:39:07]CAPDU: 80 13 01 00 [14:39:07]Write to MH i2c: E2 08 00 75 07 80 13 01 00 00 00 00 00 F9 [14:39:07]Write i2c OK [14:39:07]MH_I2C_Read... [14:39:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:07]Read from MH i2c: E2 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 0E 00 [14:39:07]MH_I2C_Read... [14:39:07]Read from MH i2c: E2 0E 00 75 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 91 [14:39:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:39:07]wFMCommunicate OK [14:39:07]SAM_PROTO_GetShiftState done [14:39:07]FM_GetShiftState done [14:39:07]opened in 1713054696 [14:39:07]opened+sec_in_day 1713141096 [14:39:07]quantity*price = 18000 [14:39:07]sum+1 = 18001 [14:39:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481989 Напиток энерг Nitro киви-мангостин 0,45 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 205 14.04.2024 14:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112306 ФПД: 144320628170320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112306&fm=144320628170320&tin=02508201610067®Number=0000000000094237&sum=27500 0 [14:39:08]StoreToDocumentArchive [14:39:08]shift 357 fd 112306 [14:39:08]save to /storage/0357/doc_00112306 [14:39:08]save last doc name /storage/0357/doc_00112306 to /storage/kkm_last_doc_name [14:39:08]save OK [14:39:08]Clear old archive folders... [14:39:08]ProcessDocumentItem done err = 0, tmpTLVsize=424 [14:39:08]tlvbuf is 0017EC60 [14:39:08]SAM_PROTO_ClearQueue [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 09 00 00 [14:39:08]Write to MH i2c: E2 08 00 82 07 80 09 00 00 00 00 00 00 FB [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 03 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 03 00 82 07 00 90 00 FD [14:39:08]RAPDU: 90 00 [14:39:08]wFMCommunicate OK [14:39:08]SAM_PROTO_ClearQueue done [14:39:08]KKMCreateOFDPacket [14:39:08]OFDProtocolAddRootSTLVToBuf [14:39:08]FM_MakeSignedData [14:39:08]FM_MakeSignedData [14:39:08]SAM_PROTO_SignData [14:39:08]wFMCommunicate request_size=4 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 0D 01 02 [14:39:08]Write to MH i2c: E2 08 00 83 07 80 0D 01 02 00 00 00 00 03 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:08]Read from MH i2c: E2 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 03 00 [14:39:08]MH_I2C_Read... [14:39:08]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [14:39:08]RAPDU: 90 00 [14:39:08]wFMCommunicate OK [14:39:08]wFMCommunicate request_size=255 [14:39:08]MH_SAM_APDU [14:39:08]CAPDU: 80 0D 02 02 FA 03 00 A8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 [14:39:08]Write to MH i2c: E2 02 01 84 07 80 0D 02 02 FA 00 03 00 A8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 00 00 B3 [14:39:08]Write i2c OK [14:39:08]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=183 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 02 02 B2 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 8B EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B2 B6 01 00 35 04 06 00 83 42 43 C6 9E 50 [14:39:09]Write to MH i2c: E2 BA 00 85 07 80 0D 02 02 B2 00 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 8B EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B2 B6 01 00 35 04 06 00 83 42 43 C6 9E 50 00 00 CB [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [14:39:09]RAPDU: 90 00 [14:39:09]wFMCommunicate OK [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 0D 03 02 [14:39:09]Write to MH i2c: E2 08 00 86 07 80 0D 03 02 00 00 00 00 08 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0B 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 0B 00 86 07 00 BF 2D C5 BD 2A 72 78 48 90 00 D3 [14:39:09]RAPDU: BF 2D C5 BD 2A 72 78 48 90 00 [14:39:09]wFMCommunicate OK [14:39:09]SAM_PROTO_SignData done [14:39:09]FM_MakeSignedData done [14:39:09]CreateOFDProtocolMessage [14:39:09]wFMCommunicate request_size=4 [14:39:09]MH_SAM_APDU [14:39:09]CAPDU: 80 11 00 00 [14:39:09]Write to MH i2c: E2 08 00 87 07 80 11 00 00 00 00 00 00 08 [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:09]Read from MH i2c: E2 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: E2 17 00 87 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [14:39:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:39:09]wFMCommunicate OK [14:39:09]CreateOFDProtocolMessage done [14:39:09]OFDSenderStorePacket 112306 [14:39:09]StoreOFDPacket docnum=112306 [14:39:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 BC 01 00 00 FD 9E B4 01 21 1F 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 8B EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B2 B6 01 00 35 04 06 00 83 42 43 C6 9E 50 BF 2D C5 BD 2A 72 78 48 [14:39:09]CheckFolder [14:39:09]dirname=/storage/ofd_packets [14:39:09]CheckFolder done [14:39:09]ProducePacketName [14:39:09]name=ofd_packets/00112306 [14:39:09]NVStorageSaveData ofd_packets/00112306 [14:39:09]File name is /storage/ofd_packets/00112306 [14:39:09]Write 474 bytes [14:39:09]NVStorageSaveData done [14:39:09]OFDSenderStorePacket done [14:39:09]KKMCreateOFDPacket done [14:39:09]NVStorageSaveData kkm_last_timestamp [14:39:09]File name is /storage/kkm_last_timestamp [14:39:09]Write 4 bytes [14:39:09]NVStorageSaveData done [14:39:09]ExternCall_PrintAddStr [14:39:09]wPrintStart [14:39:09]Write to MH i2c: 01 00 00 88 07 8F [14:39:09]Write i2c OK [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 07 00 [14:39:09]MH_I2C_Read... [14:39:09]Read from MH i2c: 01 07 00 88 07 00 00 00 00 00 FF 0F A4 [14:39:09]RasterBufferAndPrint [14:39:09]line Счет N : (3)10423 [14:39:09]line ИНН: 02508201610067 [14:39:09]line Контрольно-Кассовый Чек [14:39:09]line ПРОДАЖА [14:39:09]line Товар: 5449000176448 [14:39:09]line Сок Piko Pulpy апельсин ПЭТ 1л [14:39:09]line 1.000 * 180.00 [14:39:09]line = 180.00 [14:39:09]line НДС 12% НСП 1% [14:39:09]line > о реализуемом товаре [14:39:09]line Товар: 4700000481989 [14:39:09]line Напиток энерг Nitro киви-мангостин 0,45 [14:39:09]line 1.000 * 95.00 [14:39:09]line = 95.00 [14:39:09]line НДС 12% НСП 1% [14:39:09]line > о реализуемом товаре [14:39:09]line ИТОГО: 275.00 [14:39:09]line НСП 1% : 2.43 [14:39:09]line НДС 12% : 29.20 [14:39:09]line Наличными: 275.00 [14:39:09]line Безнал.: 0.00 [14:39:09]line Место: АЗС № 47 "Партнер Нефть" [14:39:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:39:09]line СНО: Общий режим [14:39:09]line Чек 205 14.04.2024 14:39 [14:39:09]line Смена: 357 ФФД: 1.0 [14:39:09]line ЗНМ: 0300000138 [14:39:09]line РНМ: 0000000000094237 [14:39:09]line Версия ККМ: 001 [14:39:09]line ФМ: 0000000000875019 [14:39:09]line ФД: 112306 [14:39:09]line ФПД: 144320628170320 [14:39:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T143907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112306&fm=144320628170320&tin=02508201610067®Number=0000000000094237&sum=27500 [14:39:09]line 0 [14:39:09]OFD Sender: Processing packet 112306 [packets to send 71, broken 70] [14:39:09]ProducePacketName [14:39:09]name=ofd_packets/00112306 [14:39:09]OFD Sender: To server: pG, [14:39:09]CommunicateWithHost lk.salyk.kg:30040 [14:39:09]ConnectInit lk.salyk.kg [14:39:09]written 0, free lines is 4095 [14:39:10]Connected sock=10 [14:39:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 BC 01 00 00 FD 9E B4 01 21 1F 5A 03 01 00 03 00 A8 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 50 46 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 8B EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B2 B6 01 00 35 04 06 00 83 42 43 C6 9E 50 BF 2D C5 BD 2A 72 78 48 [14:39:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4D 7C 47 00 3E C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B2 B6 01 00 F4 03 04 00 17 92 1B 66 B6 04 01 00 00 9F A8 8E 6F 66 30 F9 54 [14:39:10]CommunicateWithHost err = 0 [14:39:10]CheckOFDResponse [14:39:10]1017 (14) - 77093643461234 [14:39:10]1041 (16) - 0000000000875019 [14:39:10]1040 (4) - 112306 [14:39:10]1012 (4) - 14.04.2024 08:21 [14:39:10]1206 (1) - 0 [14:39:10]OFD Sender: Remove packet 112306 [14:39:10]ProducePacketName [14:39:10]name=ofd_packets/00112306 [14:39:10]NVStorageDeleteData [14:39:10]Write to MH i2c: 01 00 00 B8 07 BF [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: 01 07 00 B8 07 00 00 00 00 00 B3 0C 85 [14:39:10]RasterBufferAndPrint [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]line [14:39:10]written 0, free lines is 3267 [14:39:10]MH_Cut [14:39:10]Write to MH i2c: D1 01 00 BF 07 01 98 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 01 00 [14:39:10]MH_I2C_Read... [14:39:10]Read from MH i2c: D1 01 00 BF 07 00 97 [14:39:10]Write to MH i2c: 01 00 00 C0 07 C7 [14:39:10]Write i2c OK [14:39:10]MH_I2C_Read... [14:39:10]OFD Sender: No OFD packet to send [14:39:11]*** Cut start [14:39:11]*** Partial cut [14:39:11]*** CUTSNS_PIN = 1 [14:39:11]*** CUTSNS_PIN = 0 [14:39:11]*** Brake cut motor [14:39:11]Read from MH i2c: 01 [14:39:11]MH_I2C_Read... [14:39:11]*** Stop cut motor [14:39:11]*** Cut end [14:39:11]Read from MH i2c: 01 07 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: 01 07 00 C0 07 00 00 00 00 00 FF 0F DC [14:39:11]process_action close_receipt done [14:39:11]requested_data is exist [14:39:11]produce_requested_data [14:39:11]requested_item fm.sn is exist - process it [14:39:11]wFMCommunicate request_size=4 [14:39:11]MH_SAM_APDU [14:39:11]CAPDU: 80 11 00 00 [14:39:11]Write to MH i2c: E2 08 00 C1 07 80 11 00 00 00 00 00 00 42 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:11]Read from MH i2c: E2 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: E2 17 00 [14:39:11]MH_I2C_Read... [14:39:11]Read from MH i2c: E2 17 00 C1 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [14:39:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:39:11]wFMCommunicate OK [14:39:11]requested_item fd.num is exist - process it [14:39:11]SAM_PROTO_GetFieldsCounters [14:39:11]wFMCommunicate request_size=4 [14:39:11]MH_SAM_APDU [14:39:11]CAPDU: 80 13 00 00 [14:39:11]Write to MH i2c: E2 08 00 C2 07 80 13 00 00 00 00 00 00 45 [14:39:11]Write i2c OK [14:39:11]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 62 00 C2 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [14:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_GetFieldsCounters done [14:39:12]requested_item shift.num is exist - process it [14:39:12]requested_item shift.opened is exist - process it [14:39:12]req_shift_opened [14:39:12]FM_GetShiftState [14:39:12]SAM_PROTO_GetShiftState [14:39:12]wFMCommunicate request_size=4 [14:39:12]MH_SAM_APDU [14:39:12]CAPDU: 80 13 01 00 [14:39:12]Write to MH i2c: E2 08 00 C3 07 80 13 01 00 00 00 00 00 47 [14:39:12]Write i2c OK [14:39:12]MH_I2C_Read... [14:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:12]Read from MH i2c: E2 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0E 00 [14:39:12]MH_I2C_Read... [14:39:12]Read from MH i2c: E2 0E 00 C3 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DF [14:39:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:39:12]wFMCommunicate OK [14:39:12]SAM_PROTO_GetShiftState done [14:39:12]FM_GetShiftState done [14:39:12]req_shift_opened done [14:39:12]requested_item shift.open_date is exist - process it [14:39:12]req_shift_open_date [14:39:12]req_shift_open_date done [14:39:12]produce_requested_data done [14:39:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112306,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:39:12]process_action_free close_receipt [14:39:12]json_value_free [14:39:12]json_value_free done [14:39:12]process_json_proto returns [14:39:12]Send response to host [14:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112306,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:39:12]free response buf [14:39:12]execute_script done [14:39:12]execute_script returns [14:39:12]free content buf [14:39:12]Sock 9.Close socket [14:39:12]Sock 9.Thread stoped [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:44]accept exits with 8 [14:40:44]New connection [14:40:44]New thread 3066682724 created [14:40:44]Thread 3066826084 joined [14:40:44]Waiting for new connection... [14:40:44] Sock 8.Parse request [14:40:44]Sock 8.Check first char [14:40:44]Sock 8.First char is OK [14:40:44]request: POST /json_proto HTTP/1.0 [14:40:44]Method: POST [14:40:44]URL: /json_proto [14:40:44]Method is POST - this is cgi request [14:40:44]url: /json_proto [14:40:44]query_string will be loaded in cgi processing [14:40:44]execute_cgi json_proto POST (null) [14:40:44]execute_cgi path=json_proto method=POST [14:40:44]POST find Content-Length [14:40:44]Host: 172.17.96.197:8080 [14:40:44]Content-Length: 677 [14:40:44]Content-Type: application/json [14:40:44] [14:40:44]POST finish read [14:40:44]Found Content-Length = 677 [14:40:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.000, "sum" : 900.20, "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" ] } } [14:40:44]execute_script... [14:40:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48619", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 14.000, "sum" : 900.20, "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" ] } } [14:40:44]POST & json_proto [14:40:44]process_json_proto [14:40:44]json parsed OK: [14:40:44]protocol is kg_v1.0 [14:40:44]action value=close_receipt [14:40:44]process_action close_receipt [14:40:44]cmd_close_receipt [14:40:44]MH_GetDate [14:40:44]Write to MH i2c: F0 00 00 C4 07 BA [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: F0 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: F0 09 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: F0 09 00 C4 07 00 EC EA 1B 66 E0 85 7F 64 62 [14:40:44]GetLastDocTimeStamp 1713105547 [14:40:44]current date 1713105644 [14:40:44]FM_GetShiftState [14:40:44]SAM_PROTO_GetShiftState [14:40:44]wFMCommunicate request_size=4 [14:40:44]MH_SAM_APDU [14:40:44]CAPDU: 80 13 01 00 [14:40:44]Write to MH i2c: E2 08 00 C5 07 80 13 01 00 00 00 00 00 49 [14:40:44]Write i2c OK [14:40:44]MH_I2C_Read... [14:40:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:44]Read from MH i2c: E2 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0E 00 [14:40:44]MH_I2C_Read... [14:40:44]Read from MH i2c: E2 0E 00 C5 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E1 [14:40:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:40:44]wFMCommunicate OK [14:40:44]SAM_PROTO_GetShiftState done [14:40:44]FM_GetShiftState done [14:40:44]opened in 1713054696 [14:40:44]opened+sec_in_day 1713141096 [14:40:44]quantity*price = 90020 [14:40:44]sum+1 = 90021 [14:40:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.60 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 206 14.04.2024 14:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112307 ФПД: 153516787466904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112307&fm=153516787466904&tin=02508201610067®Number=0000000000094237&sum=90000 [14:40:45]StoreToDocumentArchive [14:40:45]shift 357 fd 112307 [14:40:45]save to /storage/0357/doc_00112307 [14:40:45]save last doc name /storage/0357/doc_00112307 to /storage/kkm_last_doc_name [14:40:45]save OK [14:40:45]Clear old archive folders... [14:40:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:40:45]tlvbuf is 0014D150 [14:40:45]SAM_PROTO_ClearQueue [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 09 00 00 [14:40:45]Write to MH i2c: E2 08 00 D2 07 80 09 00 00 00 00 00 00 4B [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 D2 07 00 90 00 4D [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]SAM_PROTO_ClearQueue done [14:40:45]KKMCreateOFDPacket [14:40:45]OFDProtocolAddRootSTLVToBuf [14:40:45]FM_MakeSignedData [14:40:45]FM_MakeSignedData [14:40:45]SAM_PROTO_SignData [14:40:45]wFMCommunicate request_size=4 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 01 02 [14:40:45]Write to MH i2c: E2 08 00 D3 07 80 0D 01 02 00 00 00 00 53 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:45]Read from MH i2c: E2 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 [14:40:45]MH_I2C_Read... [14:40:45]Read from MH i2c: E2 03 00 D3 07 00 90 00 4E [14:40:45]RAPDU: 90 00 [14:40:45]wFMCommunicate OK [14:40:45]wFMCommunicate request_size=255 [14:40:45]MH_SAM_APDU [14:40:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B0 36 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A4 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 CE 00 00 00 F4 03 04 00 EC EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B3 B6 01 00 35 04 06 00 8B [14:40:45]Write to MH i2c: E2 02 01 D4 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 B0 36 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A4 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 CE 00 00 00 F4 03 04 00 EC EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B3 B6 01 00 35 04 06 00 8B 00 00 79 [14:40:45]Write i2c OK [14:40:45]MH_I2C_Read... [14:40:46]OFD Sender: No OFD packet to send [14:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:46]Read from MH i2c: E2 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 03 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 03 00 D4 07 00 90 00 4F [14:40:46]RAPDU: 90 00 [14:40:46]wFMCommunicate OK [14:40:46]wFMCommunicate request_size=10 [14:40:46]MH_SAM_APDU [14:40:46]CAPDU: 80 0D 02 02 05 9F 69 95 82 98 [14:40:46]Write to MH i2c: E2 0D 00 D5 07 80 0D 02 02 05 00 9F 69 95 82 98 00 00 17 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:46]Read from MH i2c: E2 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 03 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 03 00 D5 07 00 90 00 50 [14:40:46]RAPDU: 90 00 [14:40:46]wFMCommunicate OK [14:40:46]wFMCommunicate request_size=4 [14:40:46]MH_SAM_APDU [14:40:46]CAPDU: 80 0D 03 02 [14:40:46]Write to MH i2c: E2 08 00 D6 07 80 0D 03 02 00 00 00 00 58 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:46]Read from MH i2c: E2 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 0B 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 0B 00 D6 07 00 FD 9C 2F 80 83 BD DA 38 90 00 F3 [14:40:46]RAPDU: FD 9C 2F 80 83 BD DA 38 90 00 [14:40:46]wFMCommunicate OK [14:40:46]SAM_PROTO_SignData done [14:40:46]FM_MakeSignedData done [14:40:46]CreateOFDProtocolMessage [14:40:46]wFMCommunicate request_size=4 [14:40:46]MH_SAM_APDU [14:40:46]CAPDU: 80 11 00 00 [14:40:46]Write to MH i2c: E2 08 00 D7 07 80 11 00 00 00 00 00 00 58 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:46]Read from MH i2c: E2 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 17 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: E2 17 00 D7 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [14:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:40:46]wFMCommunicate OK [14:40:46]CreateOFDProtocolMessage done [14:40:46]OFDSenderStorePacket 112307 [14:40:46]StoreOFDPacket docnum=112307 [14:40:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7B A7 07 01 FD C4 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 B0 36 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A4 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 CE 00 00 00 F4 03 04 00 EC EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B3 B6 01 00 35 04 06 00 8B 9F 69 95 82 98 FD 9C 2F 80 83 BD DA 38 [14:40:46]CheckFolder [14:40:46]dirname=/storage/ofd_packets [14:40:46]CheckFolder done [14:40:46]ProducePacketName [14:40:46]name=ofd_packets/00112307 [14:40:46]NVStorageSaveData ofd_packets/00112307 [14:40:46]File name is /storage/ofd_packets/00112307 [14:40:46]Write 301 bytes [14:40:46]NVStorageSaveData done [14:40:46]OFDSenderStorePacket done [14:40:46]KKMCreateOFDPacket done [14:40:46]NVStorageSaveData kkm_last_timestamp [14:40:46]File name is /storage/kkm_last_timestamp [14:40:46]Write 4 bytes [14:40:46]NVStorageSaveData done [14:40:46]ExternCall_PrintAddStr [14:40:46]wPrintStart [14:40:46]Write to MH i2c: 01 00 00 D8 07 DF [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 07 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 07 00 D8 07 00 00 00 00 00 FF 0F F4 [14:40:46]RasterBufferAndPrint [14:40:46]line Счет N : (1)48619 [14:40:46]line ИНН: 02508201610067 [14:40:46]line Контрольно-Кассовый Чек [14:40:46]line ПРОДАЖА [14:40:46]line ТРК (МРК, ГНК) : 11 [14:40:46]line Товар: 2710124130 [14:40:46]line Аи-92-К-5 [14:40:46]line 14.000 * 64.30 [14:40:46]line = 900.20 [14:40:46]line НДС 12% НСП 1% [14:40:46]line > о реализуемом товаре [14:40:46]line ОКРУГЛЕНИЕ: -0.20 [14:40:46]line ИТОГО: 900.00 [14:40:46]line Внесено: 900.00 [14:40:46]line СДАЧА: 0.00 [14:40:46]line НСП 1% : 7.97 [14:40:46]line НДС 12% : 95.60 [14:40:46]line Наличными: 900.00 [14:40:46]line Безнал.: 0.00 [14:40:46]line Место: АЗС № 47 "Партнер Нефть" [14:40:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:40:46]line СНО: Общий режим [14:40:46]line Чек 206 14.04.2024 14:40 [14:40:46]line Смена: 357 ФФД: 1.0 [14:40:46]line ЗНМ: 0300000138 [14:40:46]line РНМ: 0000000000094237 [14:40:46]line Версия ККМ: 001 [14:40:46]line ФМ: 0000000000875019 [14:40:46]line ФД: 112307 [14:40:46]line ФПД: 153516787466904 [14:40:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144044&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112307&fm=153516787466904&tin=02508201610067®Number=0000000000094237&sum=90000 [14:40:46]written 0, free lines is 4095 [14:40:46]OFD Sender: Processing packet 112307 [packets to send 71, broken 70] [14:40:46]ProducePacketName [14:40:46]name=ofd_packets/00112307 [14:40:46]OFD Sender: To server: pG, [14:40:46]CommunicateWithHost lk.salyk.kg:30040 [14:40:46]ConnectInit lk.salyk.kg [14:40:46]Connected sock=10 [14:40:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7B A7 07 01 FD C4 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 B0 36 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 A4 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 1D 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 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 CE 00 00 00 F4 03 04 00 EC EA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B3 B6 01 00 35 04 06 00 8B 9F 69 95 82 98 FD 9C 2F 80 83 BD DA 38 [14:40:46]Write to MH i2c: 01 00 00 03 08 0B [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 07 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 DF 0C FD [14:40:46]RasterBufferAndPrint [14:40:46]line [14:40:46]line [14:40:46]line [14:40:46]line [14:40:46]line [14:40:46]written 0, free lines is 3301 [14:40:46]MH_Cut [14:40:46]Write to MH i2c: D1 01 00 0A 08 01 E4 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: D1 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: D1 01 00 [14:40:46]MH_I2C_Read... [14:40:46]Read from MH i2c: D1 01 00 0A 08 00 E3 [14:40:46]Write to MH i2c: 01 00 00 0B 08 13 [14:40:46]Write i2c OK [14:40:46]MH_I2C_Read... [14:40:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 21 86 47 00 58 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B3 B6 01 00 F4 03 04 00 77 92 1B 66 B6 04 01 00 00 6B 2D 65 93 8D A3 14 4A [14:40:46]CommunicateWithHost err = 0 [14:40:46]CheckOFDResponse [14:40:46]1017 (14) - 77093643461234 [14:40:46]1041 (16) - 0000000000875019 [14:40:46]1040 (4) - 112307 [14:40:46]1012 (4) - 14.04.2024 08:23 [14:40:46]1206 (1) - 0 [14:40:46]OFD Sender: Remove packet 112307 [14:40:46]ProducePacketName [14:40:46]name=ofd_packets/00112307 [14:40:46]NVStorageDeleteData [14:40:47]OFD Sender: No OFD packet to send [14:40:47]*** Cut start [14:40:47]*** Partial cut [14:40:47]*** CUTSNS_PIN = 1 [14:40:47]*** CUTSNS_PIN = 0 [14:40:47]*** Brake cut motor [14:40:48]Read from MH i2c: 01 [14:40:48]MH_I2C_Read... [14:40:48]*** Stop cut motor [14:40:48]*** Cut end [14:40:48]Read from MH i2c: 01 07 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: 01 07 00 0B 08 00 00 00 00 00 FF 0F 28 [14:40:48]process_action close_receipt done [14:40:48]requested_data is exist [14:40:48]produce_requested_data [14:40:48]requested_item fm.sn is exist - process it [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 11 00 00 [14:40:48]Write to MH i2c: E2 08 00 0C 08 80 11 00 00 00 00 00 00 8E [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 17 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 17 00 0C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DF [14:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:40:48]wFMCommunicate OK [14:40:48]requested_item fd.num is exist - process it [14:40:48]SAM_PROTO_GetFieldsCounters [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 13 00 00 [14:40:48]Write to MH i2c: E2 08 00 0D 08 80 13 00 00 00 00 00 00 91 [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 62 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 62 00 0D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [14:40:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_GetFieldsCounters done [14:40:48]requested_item shift.num is exist - process it [14:40:48]requested_item shift.opened is exist - process it [14:40:48]req_shift_opened [14:40:48]FM_GetShiftState [14:40:48]SAM_PROTO_GetShiftState [14:40:48]wFMCommunicate request_size=4 [14:40:48]MH_SAM_APDU [14:40:48]CAPDU: 80 13 01 00 [14:40:48]Write to MH i2c: E2 08 00 0E 08 80 13 01 00 00 00 00 00 93 [14:40:48]Write i2c OK [14:40:48]MH_I2C_Read... [14:40:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:48]Read from MH i2c: E2 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0E 00 [14:40:48]MH_I2C_Read... [14:40:48]Read from MH i2c: E2 0E 00 0E 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2B [14:40:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:40:48]wFMCommunicate OK [14:40:48]SAM_PROTO_GetShiftState done [14:40:48]FM_GetShiftState done [14:40:48]req_shift_opened done [14:40:48]requested_item shift.open_date is exist - process it [14:40:48]req_shift_open_date [14:40:48]req_shift_open_date done [14:40:48]produce_requested_data done [14:40:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112307,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:40:48]process_action_free close_receipt [14:40:48]json_value_free [14:40:48]json_value_free done [14:40:48]process_json_proto returns [14:40:48]Send response to host [14:40:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112307,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:40:48]free response buf [14:40:48]execute_script done [14:40:48]execute_script returns [14:40:48]free content buf [14:40:48]Sock 8.Close socket [14:40:48]Sock 8.Thread stoped [14:40:52]OFD Sender: No OFD packet to send [14:40:57]OFD Sender: No OFD packet to send [14:41:02]OFD Sender: No OFD packet to send [14:41:07]OFD Sender: No OFD packet to send [14:41:12]OFD Sender: No OFD packet to send [14:41:17]OFD Sender: No OFD packet to send [14:41:20]accept exits with 9 [14:41:20]New connection [14:41:20]New thread 3066826084 created [14:41:20]Thread 3066682724 joined [14:41:20]Waiting for new connection... [14:41:20] Sock 9.Parse request [14:41:20]Sock 9.Check first char [14:41:20]Sock 9.First char is OK [14:41:20]request: POST /json_proto HTTP/1.0 [14:41:20]Method: POST [14:41:20]URL: /json_proto [14:41:20]Method is POST - this is cgi request [14:41:20]url: /json_proto [14:41:20]query_string will be loaded in cgi processing [14:41:20]execute_cgi json_proto POST (null) [14:41:20]execute_cgi path=json_proto method=POST [14:41:20]POST find Content-Length [14:41:20]Host: 172.17.96.197:8080 [14:41:20]Content-Length: 931 [14:41:20]Content-Type: application/json [14:41:20] [14:41:20]POST finish read [14:41:20]Found Content-Length = 931 [14:41:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10424", "tax_sys" : 0, "items" : [ { "code": "4650243871248", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:20]execute_script... [14:41:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10424", "tax_sys" : 0, "items" : [ { "code": "4650243871248", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,450\u043B EXTRA", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:41:20]POST & json_proto [14:41:20]process_json_proto [14:41:20]json parsed OK: [14:41:20]protocol is kg_v1.0 [14:41:20]action value=close_receipt [14:41:20]process_action close_receipt [14:41:20]cmd_close_receipt [14:41:20]MH_GetDate [14:41:20]Write to MH i2c: F0 00 00 0F 08 06 [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 09 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: F0 09 00 0F 08 00 10 EB 1B 66 E0 85 7F 64 D3 [14:41:20]GetLastDocTimeStamp 1713105644 [14:41:20]current date 1713105680 [14:41:20]FM_GetShiftState [14:41:20]SAM_PROTO_GetShiftState [14:41:20]wFMCommunicate request_size=4 [14:41:20]MH_SAM_APDU [14:41:20]CAPDU: 80 13 01 00 [14:41:20]Write to MH i2c: E2 08 00 10 08 80 13 01 00 00 00 00 00 95 [14:41:20]Write i2c OK [14:41:20]MH_I2C_Read... [14:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:20]Read from MH i2c: E2 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 0E 00 [14:41:20]MH_I2C_Read... [14:41:20]Read from MH i2c: E2 0E 00 10 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2D [14:41:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:41:20]wFMCommunicate OK [14:41:20]SAM_PROTO_GetShiftState done [14:41:20]FM_GetShiftState done [14:41:20]opened in 1713054696 [14:41:20]opened+sec_in_day 1713141096 [14:41:20]quantity*price = 9000 [14:41:20]sum+1 = 9001 [14:41:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 207 14.04.2024 14:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112308 ФПД: 117453668102309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144120&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112308&fm=117453668102309&tin=02508201610067®Number=0000000000094237&sum=20000 0 [14:41:21]StoreToDocumentArchive [14:41:21]shift 357 fd 112308 [14:41:21]save to /storage/0357/doc_00112308 [14:41:21]save last doc name /storage/0357/doc_00112308 to /storage/kkm_last_doc_name [14:41:21]save OK [14:41:21]Clear old archive folders... [14:41:21]ProcessDocumentItem done err = 0, tmpTLVsize=408 [14:41:21]tlvbuf is 0011A8F0 [14:41:21]SAM_PROTO_ClearQueue [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 09 00 00 [14:41:21]Write to MH i2c: E2 08 00 1D 08 80 09 00 00 00 00 00 00 97 [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 1D 08 00 90 00 99 [14:41:21]RAPDU: 90 00 [14:41:21]wFMCommunicate OK [14:41:21]SAM_PROTO_ClearQueue done [14:41:21]KKMCreateOFDPacket [14:41:21]OFDProtocolAddRootSTLVToBuf [14:41:21]FM_MakeSignedData [14:41:21]FM_MakeSignedData [14:41:21]SAM_PROTO_SignData [14:41:21]wFMCommunicate request_size=4 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 0D 01 02 [14:41:21]Write to MH i2c: E2 08 00 1E 08 80 0D 01 02 00 00 00 00 9F [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:41:21]Read from MH i2c: E2 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 [14:41:21]MH_I2C_Read... [14:41:21]Read from MH i2c: E2 03 00 1E 08 00 90 00 9A [14:41:21]RAPDU: 90 00 [14:41:21]wFMCommunicate OK [14:41:21]wFMCommunicate request_size=255 [14:41:21]MH_SAM_APDU [14:41:21]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [14:41:21]Write to MH i2c: E2 02 01 1F 08 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 AD [14:41:21]Write i2c OK [14:41:21]MH_I2C_Read... [14:41:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 03 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 03 00 1F 08 00 90 00 9B [14:41:22]RAPDU: 90 00 [14:41:22]wFMCommunicate OK [14:41:22]wFMCommunicate request_size=167 [14:41:22]MH_SAM_APDU [14:41:22]CAPDU: 80 0D 02 02 A2 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 10 EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B4 B6 01 00 35 04 06 00 6A D2 D0 2A 30 A5 [14:41:22]Write to MH i2c: E2 AA 00 20 08 80 0D 02 02 A2 00 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 10 EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B4 B6 01 00 35 04 06 00 6A D2 D0 2A 30 A5 00 00 29 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 03 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 03 00 20 08 00 90 00 9C [14:41:22]RAPDU: 90 00 [14:41:22]wFMCommunicate OK [14:41:22]wFMCommunicate request_size=4 [14:41:22]MH_SAM_APDU [14:41:22]CAPDU: 80 0D 03 02 [14:41:22]Write to MH i2c: E2 08 00 21 08 80 0D 03 02 00 00 00 00 A4 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 0B 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 0B 00 21 08 00 BE E5 4D CF 56 40 FB 9B 90 00 90 [14:41:22]RAPDU: BE E5 4D CF 56 40 FB 9B 90 00 [14:41:22]wFMCommunicate OK [14:41:22]SAM_PROTO_SignData done [14:41:22]FM_MakeSignedData done [14:41:22]CreateOFDProtocolMessage [14:41:22]wFMCommunicate request_size=4 [14:41:22]MH_SAM_APDU [14:41:22]CAPDU: 80 11 00 00 [14:41:22]Write to MH i2c: E2 08 00 22 08 80 11 00 00 00 00 00 00 A4 [14:41:22]Write i2c OK [14:41:22]MH_I2C_Read... [14:41:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:22]Read from MH i2c: E2 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 17 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: E2 17 00 22 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F5 [14:41:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:41:22]wFMCommunicate OK [14:41:22]CreateOFDProtocolMessage done [14:41:22]OFDSenderStorePacket 112308 [14:41:22]StoreOFDPacket docnum=112308 [14:41:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AC 01 00 00 3B A9 A4 01 E8 FA 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 10 EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B4 B6 01 00 35 04 06 00 6A D2 D0 2A 30 A5 BE E5 4D CF 56 40 FB 9B [14:41:22]CheckFolder [14:41:22]dirname=/storage/ofd_packets [14:41:22]CheckFolder done [14:41:22]ProducePacketName [14:41:22]name=ofd_packets/00112308 [14:41:22]NVStorageSaveData ofd_packets/00112308 [14:41:22]File name is /storage/ofd_packets/00112308 [14:41:22]Write 458 bytes [14:41:22]NVStorageSaveData done [14:41:22]OFDSenderStorePacket done [14:41:22]KKMCreateOFDPacket done [14:41:22]NVStorageSaveData kkm_last_timestamp [14:41:22]File name is /storage/kkm_last_timestamp [14:41:22]Write 4 bytes [14:41:22]NVStorageSaveData done [14:41:22]ExternCall_PrintAddStr [14:41:22]wPrintStart [14:41:22]Write to MH i2c: 01 00 00 23 08 2B [14:41:22]OFD Sender: Processing packet 112308 [packets to send 71, broken 70] [14:41:22]ProducePacketName [14:41:22]name=ofd_packets/00112308 [14:41:22]Write i2c OK [14:41:22]OFD Sender: To server: pG, [14:41:22]MH_I2C_Read... [14:41:22]CommunicateWithHost lk.salyk.kg:30040 [14:41:22]ConnectInit lk.salyk.kg [14:41:22]Read from MH i2c: 01 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 [14:41:22]MH_I2C_Read... [14:41:22]Read from MH i2c: 01 07 00 23 08 00 00 00 00 00 FF 0F 40 [14:41:22]RasterBufferAndPrint [14:41:22]line Счет N : (3)10424 [14:41:22]line ИНН: 02508201610067 [14:41:22]line Контрольно-Кассовый Чек [14:41:22]line ПРОДАЖА [14:41:22]line Товар: 4650243871248 [14:41:22]line Напиток Gorilla ж/б 0,450л EXTRA [14:41:22]line 1.000 * 90.00 [14:41:22]line = 90.00 [14:41:22]line НДС 12% НСП 1% [14:41:22]line > о реализуемом товаре [14:41:22]line Товар: 4650243871828 [14:41:22]line Gorilla эн нап манго-кокос 0,45 ж/б [14:41:22]line 1.000 * 110.00 [14:41:22]line = 110.00 [14:41:22]line НДС 12% НСП 1% [14:41:22]line > о реализуемом товаре [14:41:22]line ИТОГО: 200.00 [14:41:22]line НСП 1% : 1.77 [14:41:22]line НДС 12% : 21.24 [14:41:22]line Наличными: 200.00 [14:41:22]line Безнал.: 0.00 [14:41:22]line Место: АЗС № 47 "Партнер Нефть" [14:41:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:41:22]line СНО: Общий режим [14:41:22]line Чек 207 14.04.2024 14:41 [14:41:22]line Смена: 357 ФФД: 1.0 [14:41:22]line ЗНМ: 0300000138 [14:41:22]line РНМ: 0000000000094237 [14:41:22]line Версия ККМ: 001 [14:41:22]line ФМ: 0000000000875019 [14:41:22]line ФД: 112308 [14:41:22]line ФПД: 117453668102309 [14:41:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144120&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112308&fm=117453668102309&tin=02508201610067®Number=0000000000094237&sum=20000 [14:41:22]line 0 [14:41:22]written 0, free lines is 4095 [14:41:22]Connected sock=11 [14:41:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AC 01 00 00 3B A9 A4 01 E8 FA 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 34 38 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 30 D0 BB 20 45 58 54 52 41 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 10 EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B4 B6 01 00 35 04 06 00 6A D2 D0 2A 30 A5 BE E5 4D CF 56 40 FB 9B [14:41:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FE 33 47 00 92 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B4 B6 01 00 F4 03 04 00 9C 92 1B 66 B6 04 01 00 00 92 A7 73 3A 7D 27 CC 8E [14:41:23]CommunicateWithHost err = 0 [14:41:23]CheckOFDResponse [14:41:23]1017 (14) - 77093643461234 [14:41:23]1041 (16) - 0000000000875019 [14:41:23]1040 (4) - 112308 [14:41:23]1012 (4) - 14.04.2024 08:23 [14:41:23]1206 (1) - 0 [14:41:23]OFD Sender: Remove packet 112308 [14:41:23]ProducePacketName [14:41:23]name=ofd_packets/00112308 [14:41:23]NVStorageDeleteData [14:41:23]Write to MH i2c: 01 00 00 53 08 5B [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 07 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: 01 07 00 53 08 00 00 00 00 00 83 0C F1 [14:41:23]RasterBufferAndPrint [14:41:23]line [14:41:23]line [14:41:23]line [14:41:23]line [14:41:23]line [14:41:23]written 0, free lines is 3211 [14:41:23]MH_Cut [14:41:23]Write to MH i2c: D1 01 00 5A 08 01 34 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: D1 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: D1 01 00 [14:41:23]MH_I2C_Read... [14:41:23]Read from MH i2c: D1 01 00 5A 08 00 33 [14:41:23]Write to MH i2c: 01 00 00 5B 08 63 [14:41:23]Write i2c OK [14:41:23]MH_I2C_Read... [14:41:23]OFD Sender: No OFD packet to send [14:41:23]OFD Sender: No OFD packet to send [14:41:23]*** Cut start [14:41:23]*** Partial cut [14:41:23]*** CUTSNS_PIN = 1 [14:41:23]*** CUTSNS_PIN = 0 [14:41:24]*** Brake cut motor [14:41:24]Read from MH i2c: 01 [14:41:24]MH_I2C_Read... [14:41:24]*** Stop cut motor [14:41:24]*** Cut end [14:41:24]Read from MH i2c: 01 07 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: 01 07 00 5B 08 00 00 00 00 00 FF 0F 78 [14:41:24]process_action close_receipt done [14:41:24]requested_data is exist [14:41:24]produce_requested_data [14:41:24]requested_item fm.sn is exist - process it [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 11 00 00 [14:41:24]Write to MH i2c: E2 08 00 5C 08 80 11 00 00 00 00 00 00 DE [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 17 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 17 00 5C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [14:41:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:41:24]wFMCommunicate OK [14:41:24]requested_item fd.num is exist - process it [14:41:24]SAM_PROTO_GetFieldsCounters [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 13 00 00 [14:41:24]Write to MH i2c: E2 08 00 5D 08 80 13 00 00 00 00 00 00 E1 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 62 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 62 00 5D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [14:41:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:41:24]wFMCommunicate OK [14:41:24]SAM_PROTO_GetFieldsCounters done [14:41:24]requested_item shift.num is exist - process it [14:41:24]requested_item shift.opened is exist - process it [14:41:24]req_shift_opened [14:41:24]FM_GetShiftState [14:41:24]SAM_PROTO_GetShiftState [14:41:24]wFMCommunicate request_size=4 [14:41:24]MH_SAM_APDU [14:41:24]CAPDU: 80 13 01 00 [14:41:24]Write to MH i2c: E2 08 00 5E 08 80 13 01 00 00 00 00 00 E3 [14:41:24]Write i2c OK [14:41:24]MH_I2C_Read... [14:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:41:24]Read from MH i2c: E2 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 0E 00 [14:41:24]MH_I2C_Read... [14:41:24]Read from MH i2c: E2 0E 00 5E 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7B [14:41:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:41:24]wFMCommunicate OK [14:41:24]SAM_PROTO_GetShiftState done [14:41:24]FM_GetShiftState done [14:41:24]req_shift_opened done [14:41:24]requested_item shift.open_date is exist - process it [14:41:24]req_shift_open_date [14:41:24]req_shift_open_date done [14:41:24]produce_requested_data done [14:41:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112308,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:41:24]process_action_free close_receipt [14:41:24]json_value_free [14:41:24]json_value_free done [14:41:24]process_json_proto returns [14:41:24]Send response to host [14:41:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112308,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:41:24]free response buf [14:41:24]execute_script done [14:41:24]execute_script returns [14:41:24]free content buf [14:41:24]Sock 9.Close socket [14:41:24]Sock 9.Thread stoped [14:41:28]OFD Sender: No OFD packet to send [14:41:33]OFD Sender: No OFD packet to send [14:41:38]OFD Sender: No OFD packet to send [14:41:43]OFD Sender: No OFD packet to send [14:41:48]OFD Sender: No OFD packet to send [14:41:53]OFD Sender: No OFD packet to send [14:41:58]OFD Sender: No OFD packet to send [14:42:03]OFD Sender: No OFD packet to send [14:42:08]OFD Sender: No OFD packet to send [14:42:13]OFD Sender: No OFD packet to send [14:42:18]OFD Sender: No OFD packet to send [14:42:23]OFD Sender: No OFD packet to send [14:42:28]OFD Sender: No OFD packet to send [14:42:33]OFD Sender: No OFD packet to send [14:42:38]OFD Sender: No OFD packet to send [14:42:43]OFD Sender: No OFD packet to send [14:42:48]OFD Sender: No OFD packet to send [14:42:53]OFD Sender: No OFD packet to send [14:42:55]accept exits with 8 [14:42:55]New connection [14:42:55]New thread 3066682724 created [14:42:55]Thread 3066826084 joined [14:42:55]Waiting for new connection... [14:42:55] Sock 8.Parse request [14:42:55]Sock 8.Check first char [14:42:55]Sock 8.First char is OK [14:42:55]request: POST /json_proto HTTP/1.0 [14:42:55]Method: POST [14:42:55]URL: /json_proto [14:42:55]Method is POST - this is cgi request [14:42:55]url: /json_proto [14:42:55]query_string will be loaded in cgi processing [14:42:55]execute_cgi json_proto POST (null) [14:42:55]execute_cgi path=json_proto method=POST [14:42:55]POST find Content-Length [14:42:55]Host: 172.17.96.197:8080 [14:42:55]Content-Length: 676 [14:42:55]Content-Type: application/json [14:42:55] [14:42:55]POST finish read [14:42:55]Found Content-Length = 676 [14:42:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48620", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:42:55]execute_script... [14: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)48620", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:42:55]POST & json_proto [14:42:55]process_json_proto [14:42:55]json parsed OK: [14:42:55]protocol is kg_v1.0 [14:42:55]action value=close_receipt [14:42:55]process_action close_receipt [14:42:55]cmd_close_receipt [14:42:55]MH_GetDate [14:42:55]Write to MH i2c: F0 00 00 5F 08 56 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: F0 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: F0 09 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: F0 09 00 5F 08 00 6F EB 1B 66 E0 85 7F 64 82 [14:42:55]GetLastDocTimeStamp 1713105680 [14:42:55]current date 1713105775 [14:42:55]FM_GetShiftState [14:42:55]SAM_PROTO_GetShiftState [14:42:55]wFMCommunicate request_size=4 [14:42:55]MH_SAM_APDU [14:42:55]CAPDU: 80 13 01 00 [14:42:55]Write to MH i2c: E2 08 00 60 08 80 13 01 00 00 00 00 00 E5 [14:42:55]Write i2c OK [14:42:55]MH_I2C_Read... [14:42:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:55]Read from MH i2c: E2 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 0E 00 [14:42:55]MH_I2C_Read... [14:42:55]Read from MH i2c: E2 0E 00 60 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7D [14:42:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:42:55]wFMCommunicate OK [14:42:55]SAM_PROTO_GetShiftState done [14:42:55]FM_GetShiftState done [14:42:55]opened in 1713054696 [14:42:55]opened+sec_in_day 1713141096 [14:42:55]quantity*price = 50025 [14:42:55]sum+1 = 50026 [14:42:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 208 14.04.2024 14:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112309 ФПД: 75330528726998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144255&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112309&fm=75330528726998&tin=02508201610067®Number=0000000000094237&sum=50000 [14:42:56]StoreToDocumentArchive [14:42:56]shift 357 fd 112309 [14:42:56]save to /storage/0357/doc_00112309 [14:42:56]save last doc name /storage/0357/doc_00112309 to /storage/kkm_last_doc_name [14:42:56]save OK [14:42:56]Clear old archive folders... [14:42:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:42:56]tlvbuf is 00166B70 [14:42:56]SAM_PROTO_ClearQueue [14:42:56]wFMCommunicate request_size=4 [14:42:56]MH_SAM_APDU [14:42:56]CAPDU: 80 09 00 00 [14:42:56]Write to MH i2c: E2 08 00 6D 08 80 09 00 00 00 00 00 00 E7 [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:56]Read from MH i2c: E2 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 03 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 03 00 6D 08 00 90 00 E9 [14:42:56]RAPDU: 90 00 [14:42:56]wFMCommunicate OK [14:42:56]SAM_PROTO_ClearQueue done [14:42:56]KKMCreateOFDPacket [14:42:56]OFDProtocolAddRootSTLVToBuf [14:42:56]FM_MakeSignedData [14:42:56]FM_MakeSignedData [14:42:56]SAM_PROTO_SignData [14:42:56]wFMCommunicate request_size=4 [14:42:56]MH_SAM_APDU [14:42:56]CAPDU: 80 0D 01 02 [14:42:56]Write to MH i2c: E2 08 00 6E 08 80 0D 01 02 00 00 00 00 EF [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:56]Read from MH i2c: E2 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 03 00 [14:42:56]MH_I2C_Read... [14:42:56]Read from MH i2c: E2 03 00 6E 08 00 90 00 EA [14:42:56]RAPDU: 90 00 [14:42:56]wFMCommunicate OK [14:42:56]wFMCommunicate request_size=255 [14:42:56]MH_SAM_APDU [14: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D0 00 00 00 F4 03 04 00 6F EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B5 B6 01 00 35 04 06 00 44 [14:42:56]Write to MH i2c: E2 02 01 6F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D0 00 00 00 F4 03 04 00 6F EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B5 B6 01 00 35 04 06 00 44 00 00 53 [14:42:56]Write i2c OK [14:42:56]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 03 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 03 00 6F 08 00 90 00 EB [14:42:57]RAPDU: 90 00 [14:42:57]wFMCommunicate OK [14:42:57]wFMCommunicate request_size=10 [14:42:57]MH_SAM_APDU [14:42:57]CAPDU: 80 0D 02 02 05 83 41 67 CF D6 [14:42:57]Write to MH i2c: E2 0D 00 70 08 80 0D 02 02 05 00 83 41 67 CF D6 00 00 CC [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 03 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 03 00 70 08 00 90 00 EC [14:42:57]RAPDU: 90 00 [14:42:57]wFMCommunicate OK [14:42:57]wFMCommunicate request_size=4 [14:42:57]MH_SAM_APDU [14:42:57]CAPDU: 80 0D 03 02 [14:42:57]Write to MH i2c: E2 08 00 71 08 80 0D 03 02 00 00 00 00 F4 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0B 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 0B 00 71 08 00 CD BF 5A BD A5 47 7E 7B 90 00 7D [14:42:57]RAPDU: CD BF 5A BD A5 47 7E 7B 90 00 [14:42:57]wFMCommunicate OK [14:42:57]SAM_PROTO_SignData done [14:42:57]FM_MakeSignedData done [14:42:57]CreateOFDProtocolMessage [14:42:57]wFMCommunicate request_size=4 [14:42:57]MH_SAM_APDU [14:42:57]CAPDU: 80 11 00 00 [14:42:57]Write to MH i2c: E2 08 00 72 08 80 11 00 00 00 00 00 00 F4 [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:57]Read from MH i2c: E2 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 17 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: E2 17 00 72 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 45 [14:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:42:57]wFMCommunicate OK [14:42:57]CreateOFDProtocolMessage done [14:42:57]OFDSenderStorePacket 112309 [14:42:57]StoreOFDPacket docnum=112309 [14:42:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D1 62 07 01 97 06 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D0 00 00 00 F4 03 04 00 6F EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B5 B6 01 00 35 04 06 00 44 83 41 67 CF D6 CD BF 5A BD A5 47 7E 7B [14:42:57]CheckFolder [14:42:57]dirname=/storage/ofd_packets [14:42:57]CheckFolder done [14:42:57]ProducePacketName [14:42:57]name=ofd_packets/00112309 [14:42:57]NVStorageSaveData ofd_packets/00112309 [14:42:57]File name is /storage/ofd_packets/00112309 [14:42:57]Write 301 bytes [14:42:57]NVStorageSaveData done [14:42:57]OFDSenderStorePacket done [14:42:57]KKMCreateOFDPacket done [14:42:57]NVStorageSaveData kkm_last_timestamp [14:42:57]File name is /storage/kkm_last_timestamp [14:42:57]Write 4 bytes [14:42:57]NVStorageSaveData done [14:42:57]ExternCall_PrintAddStr [14:42:57]wPrintStart [14:42:57]Write to MH i2c: 01 00 00 73 08 7B [14:42:57]Write i2c OK [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: 01 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: 01 07 00 [14:42:57]MH_I2C_Read... [14:42:57]Read from MH i2c: 01 07 00 73 08 00 00 00 00 00 FF 0F 90 [14:42:57]RasterBufferAndPrint [14:42:57]line Счет N : (1)48620 [14:42:57]line ИНН: 02508201610067 [14:42:57]line Контрольно-Кассовый Чек [14:42:57]line ПРОДАЖА [14:42:57]line ТРК (МРК, ГНК) : 32 [14:42:57]line Товар: 2710124130 [14:42:57]line Аи-92-К-5 [14:42:57]line 7.780 * 64.30 [14:42:57]line = 500.25 [14:42:57]line НДС 12% НСП 1% [14:42:57]line > о реализуемом товаре [14:42:57]line ОКРУГЛЕНИЕ: -0.25 [14:42:57]line ИТОГО: 500.00 [14:42:57]line Внесено: 500.00 [14:42:57]line СДАЧА: 0.00 [14:42:57]line НСП 1% : 4.43 [14:42:57]line НДС 12% : 53.12 [14:42:57]line Наличными: 500.00 [14:42:57]line Безнал.: 0.00 [14:42:57]line Место: АЗС № 47 "Партнер Нефть" [14:42:57]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:42:57]line СНО: Общий режим [14:42:57]line Чек 208 14.04.2024 14:42 [14:42:57]line Смена: 357 ФФД: 1.0 [14:42:57]line ЗНМ: 0300000138 [14:42:57]line РНМ: 0000000000094237 [14:42:57]line Версия ККМ: 001 [14:42:57]line ФМ: 0000000000875019 [14:42:57]line ФД: 112309 [14:42:57]line ФПД: 75330528726998 [14:42:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144255&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112309&fm=75330528726998&tin=02508201610067®Number=0000000000094237&sum=50000 [14:42:57]OFD Sender: Processing packet 112309 [packets to send 71, broken 70] [14:42:57]ProducePacketName [14:42:57]name=ofd_packets/00112309 [14:42:57]OFD Sender: To server: pG, [14:42:57]CommunicateWithHost lk.salyk.kg:30040 [14:42:57]ConnectInit lk.salyk.kg [14:42:57]written 0, free lines is 4095 [14:42:57]Connected sock=10 [14:42:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D1 62 07 01 97 06 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D0 00 00 00 F4 03 04 00 6F EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B5 B6 01 00 35 04 06 00 44 83 41 67 CF D6 CD BF 5A BD A5 47 7E 7B [14:42:58]Write to MH i2c: 01 00 00 9E 08 A6 [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: 01 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: 01 07 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: 01 07 00 9E 08 00 00 00 00 00 D7 0C 90 [14:42:58]RasterBufferAndPrint [14:42:58]line [14:42:58]line [14:42:58]line [14:42:58]line [14:42:58]line [14:42:58]written 0, free lines is 3290 [14:42:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BB 34 47 00 F2 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B5 B6 01 00 F4 03 04 00 FB 92 1B 66 B6 04 01 00 00 4E 59 D3 6F 8F 3B C4 D6 [14:42:58]CommunicateWithHost err = 0 [14:42:58]CheckOFDResponse [14:42:58]1017 (14) - 77093643461234 [14:42:58]1041 (16) - 0000000000875019 [14:42:58]1040 (4) - 112309 [14:42:58]1012 (4) - 14.04.2024 08:25 [14:42:58]1206 (1) - 0 [14:42:58]OFD Sender: Remove packet 112309 [14:42:58]ProducePacketName [14:42:58]name=ofd_packets/00112309 [14:42:58]NVStorageDeleteData [14:42:58]MH_Cut [14:42:58]Write to MH i2c: D1 01 00 A5 08 01 7F [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: D1 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: D1 01 00 [14:42:58]MH_I2C_Read... [14:42:58]Read from MH i2c: D1 01 00 A5 08 00 7E [14:42:58]Write to MH i2c: 01 00 00 A6 08 AE [14:42:58]Write i2c OK [14:42:58]MH_I2C_Read... [14:42:58]OFD Sender: No OFD packet to send [14:42:58]*** Cut start [14:42:58]*** Partial cut [14:42:58]*** CUTSNS_PIN = 1 [14:42:58]*** CUTSNS_PIN = 0 [14:42:59]*** Brake cut motor [14:42:59]Read from MH i2c: 01 [14:42:59]MH_I2C_Read... [14:42:59]*** Stop cut motor [14:42:59]*** Cut end [14:42:59]Read from MH i2c: 01 07 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: 01 07 00 A6 08 00 00 00 00 00 FF 0F C3 [14:42:59]process_action close_receipt done [14:42:59]requested_data is exist [14:42:59]produce_requested_data [14:42:59]requested_item fm.sn is exist - process it [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 11 00 00 [14:42:59]Write to MH i2c: E2 08 00 A7 08 80 11 00 00 00 00 00 00 29 [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 17 00 A7 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7A [14:42:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:42:59]wFMCommunicate OK [14:42:59]requested_item fd.num is exist - process it [14:42:59]SAM_PROTO_GetFieldsCounters [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 13 00 00 [14:42:59]Write to MH i2c: E2 08 00 A8 08 80 13 00 00 00 00 00 00 2C [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 62 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 62 00 A8 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [14:42:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:59]wFMCommunicate OK [14:42:59]SAM_PROTO_GetFieldsCounters done [14:42:59]requested_item shift.num is exist - process it [14:42:59]requested_item shift.opened is exist - process it [14:42:59]req_shift_opened [14:42:59]FM_GetShiftState [14:42:59]SAM_PROTO_GetShiftState [14:42:59]wFMCommunicate request_size=4 [14:42:59]MH_SAM_APDU [14:42:59]CAPDU: 80 13 01 00 [14:42:59]Write to MH i2c: E2 08 00 A9 08 80 13 01 00 00 00 00 00 2E [14:42:59]Write i2c OK [14:42:59]MH_I2C_Read... [14:42:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:59]Read from MH i2c: E2 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 0E 00 [14:42:59]MH_I2C_Read... [14:42:59]Read from MH i2c: E2 0E 00 A9 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C6 [14:42:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:42:59]wFMCommunicate OK [14:42:59]SAM_PROTO_GetShiftState done [14:42:59]FM_GetShiftState done [14:42:59]req_shift_opened done [14:42:59]requested_item shift.open_date is exist - process it [14:42:59]req_shift_open_date [14:42:59]req_shift_open_date done [14:42:59]produce_requested_data done [14:42:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112309,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:42:59]process_action_free close_receipt [14:42:59]json_value_free [14:42:59]json_value_free done [14:42:59]process_json_proto returns [14:42:59]Send response to host [14:42:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112309,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:42:59]free response buf [14:42:59]execute_script done [14:42:59]execute_script returns [14:42:59]free content buf [14:42:59]Sock 8.Close socket [14:42:59]Sock 8.Thread stoped [14:43:03]OFD Sender: No OFD packet to send [14:43:08]OFD Sender: No OFD packet to send [14:43:13]OFD Sender: No OFD packet to send [14:43:18]OFD Sender: No OFD packet to send [14:43:23]OFD Sender: No OFD packet to send [14:43:28]OFD Sender: No OFD packet to send [14:43:33]OFD Sender: No OFD packet to send [14:43:38]OFD Sender: No OFD packet to send [14:43:43]OFD Sender: No OFD packet to send [14:43:48]OFD Sender: No OFD packet to send [14:43:53]OFD Sender: No OFD packet to send [14:43:58]OFD Sender: No OFD packet to send [14:44:03]OFD Sender: No OFD packet to send [14:44:08]OFD Sender: No OFD packet to send [14:44:13]OFD Sender: No OFD packet to send [14:44:18]OFD Sender: No OFD packet to send [14:44:23]OFD Sender: No OFD packet to send [14:44:28]OFD Sender: No OFD packet to send [14:44:30]accept exits with 9 [14:44:30]New connection [14:44:30]New thread 3066826084 created [14:44:30]Thread 3066682724 joined [14:44:30]Waiting for new connection... [14:44:30] Sock 9.Parse request [14:44:30]Sock 9.Check first char [14:44:30]Sock 9.First char is OK [14:44:30]request: POST /json_proto HTTP/1.0 [14:44:30]Method: POST [14:44:30]URL: /json_proto [14:44:30]Method is POST - this is cgi request [14:44:30]url: /json_proto [14:44:30]query_string will be loaded in cgi processing [14:44:30]execute_cgi json_proto POST (null) [14:44:30]execute_cgi path=json_proto method=POST [14:44:30]POST find Content-Length [14:44:30]Host: 172.17.96.197:8080 [14:44:30]Content-Length: 676 [14:44:30]Content-Type: application/json [14:44:30] [14:44:30]POST finish read [14:44:30]Found Content-Length = 676 [14:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:44:30]execute_script... [14:44: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)48621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:44:30]POST & json_proto [14:44:30]process_json_proto [14:44:30]json parsed OK: [14:44:30]protocol is kg_v1.0 [14:44:30]action value=close_receipt [14:44:30]process_action close_receipt [14:44:30]cmd_close_receipt [14:44:30]MH_GetDate [14:44:30]Write to MH i2c: F0 00 00 AA 08 A1 [14:44:30]Write i2c OK [14:44:30]MH_I2C_Read... [14:44:30]Read from MH i2c: F0 [14:44:30]MH_I2C_Read... [14:44:30]Read from MH i2c: F0 09 00 [14:44:30]MH_I2C_Read... [14:44:30]Read from MH i2c: F0 09 00 AA 08 00 CF EB 1B 66 E0 85 7F 64 2D [14:44:30]GetLastDocTimeStamp 1713105775 [14:44:30]current date 1713105871 [14:44:30]FM_GetShiftState [14:44:30]SAM_PROTO_GetShiftState [14:44:30]wFMCommunicate request_size=4 [14:44:30]MH_SAM_APDU [14:44:30]CAPDU: 80 13 01 00 [14:44:30]Write to MH i2c: E2 08 00 AB 08 80 13 01 00 00 00 00 00 30 [14:44:30]Write i2c OK [14:44:30]MH_I2C_Read... [14:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:30]Read from MH i2c: E2 [14:44:30]MH_I2C_Read... [14:44:30]Read from MH i2c: E2 0E 00 [14:44:30]MH_I2C_Read... [14:44:30]Read from MH i2c: E2 0E 00 AB 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C8 [14:44:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:44:30]wFMCommunicate OK [14:44:30]SAM_PROTO_GetShiftState done [14:44:30]FM_GetShiftState done [14:44:30]opened in 1713054696 [14:44:30]opened+sec_in_day 1713141096 [14:44:30]quantity*price = 50025 [14:44:30]sum+1 = 50026 [14:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 209 14.04.2024 14:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112310 ФПД: 253921786780313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144431&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112310&fm=253921786780313&tin=02508201610067®Number=0000000000094237&sum=50000 [14:44:32]StoreToDocumentArchive [14:44:32]shift 357 fd 112310 [14:44:32]save to /storage/0357/doc_00112310 [14:44:32]save last doc name /storage/0357/doc_00112310 to /storage/kkm_last_doc_name [14:44:32]save OK [14:44:32]Clear old archive folders... [14:44:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:44:32]tlvbuf is 001341E0 [14:44:32]SAM_PROTO_ClearQueue [14:44:32]wFMCommunicate request_size=4 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 09 00 00 [14:44:32]Write to MH i2c: E2 08 00 B8 08 80 09 00 00 00 00 00 00 32 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:32]Read from MH i2c: E2 03 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 B8 08 00 90 00 34 [14:44:32]RAPDU: 90 00 [14:44:32]wFMCommunicate OK [14:44:32]SAM_PROTO_ClearQueue done [14:44:32]KKMCreateOFDPacket [14:44:32]OFDProtocolAddRootSTLVToBuf [14:44:32]FM_MakeSignedData [14:44:32]FM_MakeSignedData [14:44:32]SAM_PROTO_SignData [14:44:32]wFMCommunicate request_size=4 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 0D 01 02 [14:44:32]Write to MH i2c: E2 08 00 B9 08 80 0D 01 02 00 00 00 00 3A [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 B9 08 00 90 00 35 [14:44:32]RAPDU: 90 00 [14:44:32]wFMCommunicate OK [14:44:32]wFMCommunicate request_size=255 [14:44:32]MH_SAM_APDU [14:44:32]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D1 00 00 00 F4 03 04 00 CF EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B6 B6 01 00 35 04 06 00 E6 [14:44:32]Write to MH i2c: E2 02 01 BA 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D1 00 00 00 F4 03 04 00 CF EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B6 B6 01 00 35 04 06 00 E6 00 00 A2 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 BA 08 00 90 00 36 [14:44:32]RAPDU: 90 00 [14:44:32]wFMCommunicate OK [14:44:32]wFMCommunicate request_size=10 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 0D 02 02 05 F0 C5 E6 DA 99 [14:44:32]Write to MH i2c: E2 0D 00 BB 08 80 0D 02 02 05 00 F0 C5 E6 DA 99 00 00 55 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 03 00 BB 08 00 90 00 37 [14:44:32]RAPDU: 90 00 [14:44:32]wFMCommunicate OK [14:44:32]wFMCommunicate request_size=4 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 0D 03 02 [14:44:32]Write to MH i2c: E2 08 00 BC 08 80 0D 03 02 00 00 00 00 3F [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 0B 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 0B 00 BC 08 00 B1 57 B0 A8 34 36 7E 7F 90 00 07 [14:44:32]RAPDU: B1 57 B0 A8 34 36 7E 7F 90 00 [14:44:32]wFMCommunicate OK [14:44:32]SAM_PROTO_SignData done [14:44:32]FM_MakeSignedData done [14:44:32]CreateOFDProtocolMessage [14:44:32]wFMCommunicate request_size=4 [14:44:32]MH_SAM_APDU [14:44:32]CAPDU: 80 11 00 00 [14:44:32]Write to MH i2c: E2 08 00 BD 08 80 11 00 00 00 00 00 00 3F [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:32]Read from MH i2c: E2 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 17 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: E2 17 00 BD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 90 [14:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:44:32]wFMCommunicate OK [14:44:32]CreateOFDProtocolMessage done [14:44:32]OFDSenderStorePacket 112310 [14:44:32]StoreOFDPacket docnum=112310 [14:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 38 2E 07 01 FB 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D1 00 00 00 F4 03 04 00 CF EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B6 B6 01 00 35 04 06 00 E6 F0 C5 E6 DA 99 B1 57 B0 A8 34 36 7E 7F [14:44:32]CheckFolder [14:44:32]dirname=/storage/ofd_packets [14:44:32]CheckFolder done [14:44:32]ProducePacketName [14:44:32]name=ofd_packets/00112310 [14:44:32]NVStorageSaveData ofd_packets/00112310 [14:44:32]File name is /storage/ofd_packets/00112310 [14:44:32]Write 301 bytes [14:44:32]NVStorageSaveData done [14:44:32]OFDSenderStorePacket done [14:44:32]KKMCreateOFDPacket done [14:44:32]NVStorageSaveData kkm_last_timestamp [14:44:32]File name is /storage/kkm_last_timestamp [14:44:32]Write 4 bytes [14:44:32]NVStorageSaveData done [14:44:32]ExternCall_PrintAddStr [14:44:32]wPrintStart [14:44:32]Write to MH i2c: 01 00 00 BE 08 C6 [14:44:32]Write i2c OK [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 07 00 [14:44:32]MH_I2C_Read... [14:44:32]Read from MH i2c: 01 07 00 BE 08 00 00 00 00 00 FF 0F DB [14:44:32]RasterBufferAndPrint [14:44:32]line Счет N : (1)48621 [14:44:32]line ИНН: 02508201610067 [14:44:32]line Контрольно-Кассовый Чек [14:44:32]line ПРОДАЖА [14:44:32]line ТРК (МРК, ГНК) : 11 [14:44:32]line Товар: 2710124130 [14:44:32]line Аи-92-К-5 [14:44:32]line 7.780 * 64.30 [14:44:32]line = 500.25 [14:44:32]line НДС 12% НСП 1% [14:44:32]line > о реализуемом товаре [14:44:32]line ОКРУГЛЕНИЕ: -0.25 [14:44:32]line ИТОГО: 500.00 [14:44:32]line Внесено: 500.00 [14:44:32]line СДАЧА: 0.00 [14:44:32]line НСП 1% : 4.43 [14:44:32]line НДС 12% : 53.12 [14:44:32]line Наличными: 500.00 [14:44:32]line Безнал.: 0.00 [14:44:32]line Место: АЗС № 47 "Партнер Нефть" [14:44:32]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:44:32]line СНО: Общий режим [14:44:32]line Чек 209 14.04.2024 14:44 [14:44:32]line Смена: 357 ФФД: 1.0 [14:44:32]line ЗНМ: 0300000138 [14:44:32]line РНМ: 0000000000094237 [14:44:32]line Версия ККМ: 001 [14:44:32]line ФМ: 0000000000875019 [14:44:32]line ФД: 112310 [14:44:32]line ФПД: 253921786780313 [14:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144431&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112310&fm=253921786780313&tin=02508201610067®Number=0000000000094237&sum=50000 [14:44:32]OFD Sender: Processing packet 112310 [packets to send 71, broken 70] [14:44:32]ProducePacketName [14:44:32]name=ofd_packets/00112310 [14:44:32]OFD Sender: To server: pG, [14:44:32]CommunicateWithHost lk.salyk.kg:30040 [14:44:32]ConnectInit lk.salyk.kg [14:44:32]written 0, free lines is 4095 [14:44:33]Connected sock=10 [14:44:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 38 2E 07 01 FB 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D1 00 00 00 F4 03 04 00 CF EB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B6 B6 01 00 35 04 06 00 E6 F0 C5 E6 DA 99 B1 57 B0 A8 34 36 7E 7F [14:44:33]Write to MH i2c: 01 00 00 E9 08 F1 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: 01 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: 01 07 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: 01 07 00 E9 08 00 00 00 00 00 CF 0C D3 [14:44:33]RasterBufferAndPrint [14:44:33]line [14:44:33]line [14:44:33]line [14:44:33]line [14:44:33]line [14:44:33]written 0, free lines is 3286 [14:44:33]MH_Cut [14:44:33]Write to MH i2c: D1 01 00 F0 08 01 CA [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: D1 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: D1 01 00 [14:44:33]MH_I2C_Read... [14:44:33]Read from MH i2c: D1 01 00 F0 08 00 C9 [14:44:33]Write to MH i2c: 01 00 00 F1 08 F9 [14:44:33]Write i2c OK [14:44:33]MH_I2C_Read... [14:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 70 39 47 00 7B 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 38 37 35 30 31 39 10 04 04 00 B6 B6 01 00 F4 03 04 00 5A 93 1B 66 B6 04 01 00 00 D7 6A D9 09 79 46 4E 15 [14:44:33]CommunicateWithHost err = 0 [14:44:33]CheckOFDResponse [14:44:33]1017 (14) - 77093643461234 [14:44:33]1041 (16) - 0000000000875019 [14:44:33]1040 (4) - 112310 [14:44:33]1012 (4) - 14.04.2024 08:27 [14:44:33]1206 (1) - 0 [14:44:33]OFD Sender: Remove packet 112310 [14:44:33]ProducePacketName [14:44:33]name=ofd_packets/00112310 [14:44:33]NVStorageDeleteData [14:44:33]OFD Sender: No OFD packet to send [14:44:34]*** Cut start [14:44:34]*** Partial cut [14:44:34]*** CUTSNS_PIN = 1 [14:44:34]*** CUTSNS_PIN = 0 [14:44:34]*** Brake cut motor [14:44:34]Read from MH i2c: 01 [14:44:34]MH_I2C_Read... [14:44:34]*** Stop cut motor [14:44:34]*** Cut end [14:44:34]Read from MH i2c: 01 07 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: 01 07 00 F1 08 00 00 00 00 00 FF 0F 0E [14:44:34]process_action close_receipt done [14:44:34]requested_data is exist [14:44:34]produce_requested_data [14:44:34]requested_item fm.sn is exist - process it [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 11 00 00 [14:44:34]Write to MH i2c: E2 08 00 F2 08 80 11 00 00 00 00 00 00 74 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 17 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 17 00 F2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C5 [14:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:44:34]wFMCommunicate OK [14:44:34]requested_item fd.num is exist - process it [14:44:34]SAM_PROTO_GetFieldsCounters [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 13 00 00 [14:44:34]Write to MH i2c: E2 08 00 F3 08 80 13 00 00 00 00 00 00 77 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:34]Read from MH i2c: E2 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 62 00 [14:44:34]MH_I2C_Read... [14:44:34]Read from MH i2c: E2 62 00 F3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:34]wFMCommunicate OK [14:44:34]SAM_PROTO_GetFieldsCounters done [14:44:34]requested_item shift.num is exist - process it [14:44:34]requested_item shift.opened is exist - process it [14:44:34]req_shift_opened [14:44:34]FM_GetShiftState [14:44:34]SAM_PROTO_GetShiftState [14:44:34]wFMCommunicate request_size=4 [14:44:34]MH_SAM_APDU [14:44:34]CAPDU: 80 13 01 00 [14:44:34]Write to MH i2c: E2 08 00 F4 08 80 13 01 00 00 00 00 00 79 [14:44:34]Write i2c OK [14:44:34]MH_I2C_Read... [14:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:35]Read from MH i2c: E2 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 0E 00 [14:44:35]MH_I2C_Read... [14:44:35]Read from MH i2c: E2 0E 00 F4 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [14:44:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:44:35]wFMCommunicate OK [14:44:35]SAM_PROTO_GetShiftState done [14:44:35]FM_GetShiftState done [14:44:35]req_shift_opened done [14:44:35]requested_item shift.open_date is exist - process it [14:44:35]req_shift_open_date [14:44:35]req_shift_open_date done [14:44:35]produce_requested_data done [14:44:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112310,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:44:35]process_action_free close_receipt [14:44:35]json_value_free [14:44:35]json_value_free done [14:44:35]process_json_proto returns [14:44:35]Send response to host [14:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112310,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:44:35]free response buf [14:44:35]execute_script done [14:44:35]execute_script returns [14:44:35]free content buf [14:44:35]Sock 9.Close socket [14:44:35]Sock 9.Thread stoped [14:44:38]OFD Sender: No OFD packet to send [14:44:43]OFD Sender: No OFD packet to send [14:44:48]OFD Sender: No OFD packet to send [14:44:53]OFD Sender: No OFD packet to send [14:44:58]OFD Sender: No OFD packet to send [14:45:03]OFD Sender: No OFD packet to send [14:45:08]OFD Sender: No OFD packet to send [14:45:13]OFD Sender: No OFD packet to send [14:45:18]OFD Sender: No OFD packet to send [14:45:24]OFD Sender: No OFD packet to send [14:45:29]OFD Sender: No OFD packet to send [14:45:34]OFD Sender: No OFD packet to send [14:45:39]OFD Sender: No OFD packet to send [14:45:44]OFD Sender: No OFD packet to send [14:45:49]OFD Sender: No OFD packet to send [14:45:54]OFD Sender: No OFD packet to send [14:45:59]OFD Sender: No OFD packet to send [14:46:04]OFD Sender: No OFD packet to send [14:46:09]OFD Sender: No OFD packet to send [14:46:14]OFD Sender: No OFD packet to send [14:46:19]OFD Sender: No OFD packet to send [14:46:24]OFD Sender: No OFD packet to send [14:46:29]OFD Sender: No OFD packet to send [14:46:34]OFD Sender: No OFD packet to send [14:46:39]OFD Sender: No OFD packet to send [14:46:44]OFD Sender: No OFD packet to send [14:46:49]OFD Sender: No OFD packet to send [14:46:54]OFD Sender: No OFD packet to send [14:46:59]OFD Sender: No OFD packet to send [14:47:04]OFD Sender: No OFD packet to send [14:47:09]OFD Sender: No OFD packet to send [14:47:14]OFD Sender: No OFD packet to send [14:47:19]OFD Sender: No OFD packet to send [14:47:24]OFD Sender: No OFD packet to send [14:47:29]OFD Sender: No OFD packet to send [14:47:34]OFD Sender: No OFD packet to send [14:47:39]OFD Sender: No OFD packet to send [14:47:44]OFD Sender: No OFD packet to send [14:47:49]OFD Sender: No OFD packet to send [14:47:54]OFD Sender: No OFD packet to send [14:47:59]OFD Sender: No OFD packet to send [14:48:04]OFD Sender: No OFD packet to send [14:48:09]OFD Sender: No OFD packet to send [14:48:14]OFD Sender: No OFD packet to send [14:48:19]OFD Sender: No OFD packet to send [14:48:24]OFD Sender: No OFD packet to send [14:48:29]OFD Sender: No OFD packet to send [14:48:34]OFD Sender: No OFD packet to send [14:48:36]accept exits with 8 [14:48:36]New connection [14:48:36]New thread 3066682724 created [14:48:36]Thread 3066826084 joined [14:48:36]Waiting for new connection... [14:48:36] Sock 8.Parse request [14:48:36]Sock 8.Check first char [14:48:36]Sock 8.First char is OK [14:48:36]request: POST /json_proto HTTP/1.0 [14:48:36]Method: POST [14:48:36]URL: /json_proto [14:48:36]Method is POST - this is cgi request [14:48:36]url: /json_proto [14:48:36]query_string will be loaded in cgi processing [14:48:36]execute_cgi json_proto POST (null) [14:48:36]execute_cgi path=json_proto method=POST [14:48:36]POST find Content-Length [14:48:36]Host: 172.17.96.197:8080 [14:48:36]Content-Length: 678 [14:48:36]Content-Type: application/json [14:48:36] [14:48:36]POST finish read [14:48:36]Found Content-Length = 678 [14:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48622", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:36]execute_script... [14:48: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)48622", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:36]POST & json_proto [14:48:36]process_json_proto [14:48:36]json parsed OK: [14:48:36]protocol is kg_v1.0 [14:48:36]action value=close_receipt [14:48:36]process_action close_receipt [14:48:36]cmd_close_receipt [14:48:36]MH_GetDate [14:48:36]Write to MH i2c: F0 00 00 F5 08 EC [14:48:36]Write i2c OK [14:48:36]MH_I2C_Read... [14:48:36]Read from MH i2c: F0 [14:48:36]MH_I2C_Read... [14:48:36]Read from MH i2c: F0 09 00 [14:48:36]MH_I2C_Read... [14:48:36]Read from MH i2c: F0 09 00 F5 08 00 C5 EC 1B 66 E0 85 7F 64 6F [14:48:36]GetLastDocTimeStamp 1713105871 [14:48:36]current date 1713106117 [14:48:36]FM_GetShiftState [14:48:36]SAM_PROTO_GetShiftState [14:48:36]wFMCommunicate request_size=4 [14:48:36]MH_SAM_APDU [14:48:36]CAPDU: 80 13 01 00 [14:48:36]Write to MH i2c: E2 08 00 F6 08 80 13 01 00 00 00 00 00 7B [14:48:36]Write i2c OK [14:48:36]MH_I2C_Read... [14:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:37]Read from MH i2c: E2 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 [14:48:37]MH_I2C_Read... [14:48:37]Read from MH i2c: E2 0E 00 F6 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 13 [14:48:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:48:37]wFMCommunicate OK [14:48:37]SAM_PROTO_GetShiftState done [14:48:37]FM_GetShiftState done [14:48:37]opened in 1713054696 [14:48:37]opened+sec_in_day 1713141096 [14:48:37]quantity*price = 200041 [14:48:37]sum+1 = 200042 [14:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 210 14.04.2024 14:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112311 ФПД: 227032799426346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144837&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112311&fm=227032799426346&tin=02508201610067®Number=0000000000094237&sum=200000 [14:48:38]StoreToDocumentArchive [14:48:38]shift 357 fd 112311 [14:48:38]save to /storage/0357/doc_00112311 [14:48:38]save last doc name /storage/0357/doc_00112311 to /storage/kkm_last_doc_name [14:48:38]save OK [14:48:38]Clear old archive folders... [14:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:48:38]tlvbuf is 0011AE40 [14:48:38]SAM_PROTO_ClearQueue [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 09 00 00 [14:48:38]Write to MH i2c: E2 08 00 03 09 80 09 00 00 00 00 00 00 7E [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 03 09 00 90 00 80 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]SAM_PROTO_ClearQueue done [14:48:38]KKMCreateOFDPacket [14:48:38]OFDProtocolAddRootSTLVToBuf [14:48:38]FM_MakeSignedData [14:48:38]FM_MakeSignedData [14:48:38]SAM_PROTO_SignData [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 01 02 [14:48:38]Write to MH i2c: E2 08 00 04 09 80 0D 01 02 00 00 00 00 86 [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 04 09 00 90 00 81 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=255 [14:48:38]MH_SAM_APDU [14:48:38]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 D2 00 00 00 F4 03 04 00 C5 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B7 B6 01 00 35 04 06 00 CE 7C 31 5C [14:48:38]Write to MH i2c: E2 02 01 05 09 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 D2 00 00 00 F4 03 04 00 C5 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B7 B6 01 00 35 04 06 00 CE 7C 31 5C 00 00 A3 [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 05 09 00 90 00 82 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=7 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 02 02 02 B7 2A [14:48:38]Write to MH i2c: E2 0A 00 06 09 80 0D 02 02 02 00 B7 2A 00 00 6E [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 03 00 06 09 00 90 00 83 [14:48:38]RAPDU: 90 00 [14:48:38]wFMCommunicate OK [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 0D 03 02 [14:48:38]Write to MH i2c: E2 08 00 07 09 80 0D 03 02 00 00 00 00 8B [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 0B 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 0B 00 07 09 00 C1 8B 7F 14 24 7A 28 EA 90 00 1B [14:48:38]RAPDU: C1 8B 7F 14 24 7A 28 EA 90 00 [14:48:38]wFMCommunicate OK [14:48:38]SAM_PROTO_SignData done [14:48:38]FM_MakeSignedData done [14:48:38]CreateOFDProtocolMessage [14:48:38]wFMCommunicate request_size=4 [14:48:38]MH_SAM_APDU [14:48:38]CAPDU: 80 11 00 00 [14:48:38]Write to MH i2c: E2 08 00 08 09 80 11 00 00 00 00 00 00 8B [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:38]Read from MH i2c: E2 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 17 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: E2 17 00 08 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DC [14:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:48:38]wFMCommunicate OK [14:48:38]CreateOFDProtocolMessage done [14:48:38]OFDSenderStorePacket 112311 [14:48:38]StoreOFDPacket docnum=112311 [14:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 20 B8 04 01 2C E0 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 D2 00 00 00 F4 03 04 00 C5 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B7 B6 01 00 35 04 06 00 CE 7C 31 5C B7 2A C1 8B 7F 14 24 7A 28 EA [14:48:38]CheckFolder [14:48:38]dirname=/storage/ofd_packets [14:48:38]CheckFolder done [14:48:38]ProducePacketName [14:48:38]name=ofd_packets/00112311 [14:48:38]NVStorageSaveData ofd_packets/00112311 [14:48:38]File name is /storage/ofd_packets/00112311 [14:48:38]Write 298 bytes [14:48:38]NVStorageSaveData done [14:48:38]OFDSenderStorePacket done [14:48:38]KKMCreateOFDPacket done [14:48:38]NVStorageSaveData kkm_last_timestamp [14:48:38]File name is /storage/kkm_last_timestamp [14:48:38]Write 4 bytes [14:48:38]NVStorageSaveData done [14:48:38]ExternCall_PrintAddStr [14:48:38]wPrintStart [14:48:38]Write to MH i2c: 01 00 00 09 09 12 [14:48:38]Write i2c OK [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: 01 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: 01 07 00 [14:48:38]MH_I2C_Read... [14:48:38]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 FF 0F 27 [14:48:38]RasterBufferAndPrint [14:48:38]line Счет N : (1)48622 [14:48:38]line ИНН: 02508201610067 [14:48:38]line Контрольно-Кассовый Чек [14:48:38]line ПРОДАЖА [14:48:38]line ТРК (МРК, ГНК) : 61 [14:48:38]line Товар: 2710194210 [14:48:38]line ДТ-К-5 [14:48:38]line 27.630 * 72.40 [14:48:38]line = 2000.41 [14:48:38]line НДС 12% НСП 1% [14:48:38]line > о реализуемом товаре [14:48:38]line ОКРУГЛЕНИЕ: -0.41 [14:48:38]line ИТОГО: 2000.00 [14:48:38]line Внесено: 2000.00 [14:48:38]line СДАЧА: 0.00 [14:48:38]line НСП 1% : 17.70 [14:48:38]line НДС 12% : 212.43 [14:48:38]line Наличными: 2000.00 [14:48:38]line Безнал.: 0.00 [14:48:38]line Место: АЗС № 47 "Партнер Нефть" [14:48:38]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:48:38]line СНО: Общий режим [14:48:38]line Чек 210 14.04.2024 14:48 [14:48:38]line Смена: 357 ФФД: 1.0 [14:48:38]line ЗНМ: 0300000138 [14:48:38]line РНМ: 0000000000094237 [14:48:38]line Версия ККМ: 001 [14:48:38]line ФМ: 0000000000875019 [14:48:38]line ФД: 112311 [14:48:38]line ФПД: 227032799426346 [14:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144837&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112311&fm=227032799426346&tin=02508201610067®Number=0000000000094237&sum=200000 [14:48:39]OFD Sender: Processing packet 112311 [packets to send 71, broken 70] [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00112311 [14:48:39]OFD Sender: To server: pG, [14:48:39]CommunicateWithHost lk.salyk.kg:30040 [14:48:39]ConnectInit lk.salyk.kg [14:48:39]written 0, free lines is 4095 [14:48:39]Connected sock=11 [14:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 20 B8 04 01 2C E0 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 D2 00 00 00 F4 03 04 00 C5 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B7 B6 01 00 35 04 06 00 CE 7C 31 5C B7 2A C1 8B 7F 14 24 7A 28 EA [14:48:39]Write to MH i2c: 01 00 00 34 09 3D [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: 01 07 00 34 09 00 00 00 00 00 D4 0C 24 [14:48:39]RasterBufferAndPrint [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]line [14:48:39]written 0, free lines is 3288 [14:48:39]MH_Cut [14:48:39]Write to MH i2c: D1 01 00 3B 09 01 16 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 01 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: D1 01 00 3B 09 00 15 [14:48:39]Write to MH i2c: 01 00 00 3C 09 45 [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A3 57 47 00 71 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B7 B6 01 00 F4 03 04 00 50 94 1B 66 B6 04 01 00 00 A3 2D 8F EC A8 8F B7 C2 [14:48:39]CommunicateWithHost err = 0 [14:48:39]CheckOFDResponse [14:48:39]1017 (14) - 77093643461234 [14:48:39]1041 (16) - 0000000000875019 [14:48:39]1040 (4) - 112311 [14:48:39]1012 (4) - 14.04.2024 08:31 [14:48:39]1206 (1) - 0 [14:48:39]OFD Sender: Remove packet 112311 [14:48:39]ProducePacketName [14:48:39]name=ofd_packets/00112311 [14:48:39]NVStorageDeleteData [14:48:40]OFD Sender: No OFD packet to send [14:48:40]*** Cut start [14:48:40]*** Partial cut [14:48:40]*** CUTSNS_PIN = 1 [14:48:40]*** CUTSNS_PIN = 0 [14:48:40]*** Brake cut motor [14:48:40]Read from MH i2c: 01 [14:48:40]MH_I2C_Read... [14:48:40]*** Stop cut motor [14:48:40]*** Cut end [14:48:40]Read from MH i2c: 01 07 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: 01 07 00 3C 09 00 00 00 00 00 FF 0F 5A [14:48:40]process_action close_receipt done [14:48:40]requested_data is exist [14:48:40]produce_requested_data [14:48:40]requested_item fm.sn is exist - process it [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 11 00 00 [14:48:40]Write to MH i2c: E2 08 00 3D 09 80 11 00 00 00 00 00 00 C0 [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 17 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 17 00 3D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 11 [14:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:48:40]wFMCommunicate OK [14:48:40]requested_item fd.num is exist - process it [14:48:40]SAM_PROTO_GetFieldsCounters [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 13 00 00 [14:48:40]Write to MH i2c: E2 08 00 3E 09 80 13 00 00 00 00 00 00 C3 [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:41]Read from MH i2c: E2 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 62 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 62 00 3E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:41]wFMCommunicate OK [14:48:41]SAM_PROTO_GetFieldsCounters done [14:48:41]requested_item shift.num is exist - process it [14:48:41]requested_item shift.opened is exist - process it [14:48:41]req_shift_opened [14:48:41]FM_GetShiftState [14:48:41]SAM_PROTO_GetShiftState [14:48:41]wFMCommunicate request_size=4 [14:48:41]MH_SAM_APDU [14:48:41]CAPDU: 80 13 01 00 [14:48:41]Write to MH i2c: E2 08 00 3F 09 80 13 01 00 00 00 00 00 C5 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:41]Read from MH i2c: E2 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 0E 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: E2 0E 00 3F 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5D [14:48:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:48:41]wFMCommunicate OK [14:48:41]SAM_PROTO_GetShiftState done [14:48:41]FM_GetShiftState done [14:48:41]req_shift_opened done [14:48:41]requested_item shift.open_date is exist - process it [14:48:41]req_shift_open_date [14:48:41]req_shift_open_date done [14:48:41]produce_requested_data done [14:48:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112311,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:48:41]process_action_free close_receipt [14:48:41]json_value_free [14:48:41]json_value_free done [14:48:41]process_json_proto returns [14:48:41]Send response to host [14:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112311,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:48:41]free response buf [14:48:41]execute_script done [14:48:41]execute_script returns [14:48:41]free content buf [14:48:41]Sock 8.Close socket [14:48:41]Sock 8.Thread stoped [14:48:45]OFD Sender: No OFD packet to send [14:48:49]accept exits with 9 [14:48:49]New connection [14:48:49]New thread 3066826084 created [14:48:49]Thread 3066682724 joined [14:48:49]Waiting for new connection... [14:48:49] Sock 9.Parse request [14:48:49]Sock 9.Check first char [14:48:49]Sock 9.First char is OK [14:48:49]request: POST /json_proto HTTP/1.0 [14:48:49]Method: POST [14:48:49]URL: /json_proto [14:48:49]Method is POST - this is cgi request [14:48:49]url: /json_proto [14:48:49]query_string will be loaded in cgi processing [14:48:49]execute_cgi json_proto POST (null) [14:48:49]execute_cgi path=json_proto method=POST [14:48:49]POST find Content-Length [14:48:49]Host: 172.17.96.197:8080 [14:48:49]Content-Length: 676 [14:48:49]Content-Type: application/json [14:48:49] [14:48:49]POST finish read [14:48:49]Found Content-Length = 676 [14:48:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [14:48:49]execute_script... [14:48:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [14:48:49]POST & json_proto [14:48:49]process_json_proto [14:48:49]json parsed OK: [14:48:49]protocol is kg_v1.0 [14:48:49]action value=close_receipt [14:48:49]process_action close_receipt [14:48:49]cmd_close_receipt [14:48:49]MH_GetDate [14:48:49]Write to MH i2c: F0 00 00 40 09 38 [14:48:49]Write i2c OK [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: F0 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: F0 09 00 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: F0 09 00 40 09 00 D1 EC 1B 66 E0 85 7F 64 C7 [14:48:49]GetLastDocTimeStamp 1713106117 [14:48:49]current date 1713106129 [14:48:49]FM_GetShiftState [14:48:49]SAM_PROTO_GetShiftState [14:48:49]wFMCommunicate request_size=4 [14:48:49]MH_SAM_APDU [14:48:49]CAPDU: 80 13 01 00 [14:48:49]Write to MH i2c: E2 08 00 41 09 80 13 01 00 00 00 00 00 C7 [14:48:49]Write i2c OK [14:48:49]MH_I2C_Read... [14:48:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:49]Read from MH i2c: E2 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: E2 0E 00 [14:48:49]MH_I2C_Read... [14:48:49]Read from MH i2c: E2 0E 00 41 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5F [14:48:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:48:49]wFMCommunicate OK [14:48:49]SAM_PROTO_GetShiftState done [14:48:49]FM_GetShiftState done [14:48:49]opened in 1713054696 [14:48:49]opened+sec_in_day 1713141096 [14:48:49]quantity*price = 60056 [14:48:49]sum+1 = 60057 [14:48:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 211 14.04.2024 14:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112312 ФПД: 260569953229205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144850&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112312&fm=260569953229205&tin=02508201610067®Number=0000000000094237&sum=60000 [14:48:50]StoreToDocumentArchive [14:48:50]shift 357 fd 112312 [14:48:50]save to /storage/0357/doc_00112312 [14:48:50]save last doc name /storage/0357/doc_00112312 to /storage/kkm_last_doc_name [14:48:50]save OK [14:48:50]Clear old archive folders... [14:48:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:50]tlvbuf is B6E89810 [14:48:50]SAM_PROTO_ClearQueue [14:48:50]wFMCommunicate request_size=4 [14:48:50]MH_SAM_APDU [14:48:50]CAPDU: 80 09 00 00 [14:48:50]Write to MH i2c: E2 08 00 4E 09 80 09 00 00 00 00 00 00 C9 [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 [14:48:50]MH_I2C_Read... [14:48:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:50]Read from MH i2c: E2 03 00 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 03 00 4E 09 00 90 00 CB [14:48:50]RAPDU: 90 00 [14:48:50]wFMCommunicate OK [14:48:50]SAM_PROTO_ClearQueue done [14:48:50]KKMCreateOFDPacket [14:48:50]OFDProtocolAddRootSTLVToBuf [14:48:50]FM_MakeSignedData [14:48:50]FM_MakeSignedData [14:48:50]SAM_PROTO_SignData [14:48:50]wFMCommunicate request_size=4 [14:48:50]MH_SAM_APDU [14:48:50]CAPDU: 80 0D 01 02 [14:48:50]Write to MH i2c: E2 08 00 4F 09 80 0D 01 02 00 00 00 00 D1 [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:50]Read from MH i2c: E2 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 03 00 [14:48:50]MH_I2C_Read... [14:48:50]Read from MH i2c: E2 03 00 4F 09 00 90 00 CC [14:48:50]RAPDU: 90 00 [14:48:50]wFMCommunicate OK [14:48:50]wFMCommunicate request_size=255 [14:48:50]MH_SAM_APDU [14:48: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 D3 00 00 00 F4 03 04 00 D2 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B8 B6 01 00 35 04 06 00 EC [14:48:50]Write to MH i2c: E2 02 01 50 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 D3 00 00 00 F4 03 04 00 D2 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B8 B6 01 00 35 04 06 00 EC 00 00 B0 [14:48:50]Write i2c OK [14:48:50]MH_I2C_Read... [14:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:51]Read from MH i2c: E2 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 03 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 03 00 50 09 00 90 00 CD [14:48:51]RAPDU: 90 00 [14:48:51]wFMCommunicate OK [14:48:51]wFMCommunicate request_size=10 [14:48:51]MH_SAM_APDU [14:48:51]CAPDU: 80 0D 02 02 05 FC AB 80 59 95 [14:48:51]Write to MH i2c: E2 0D 00 51 09 80 0D 02 02 05 00 FC AB 80 59 95 00 00 F3 [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:51]Read from MH i2c: E2 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 03 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 03 00 51 09 00 90 00 CE [14:48:51]RAPDU: 90 00 [14:48:51]wFMCommunicate OK [14:48:51]wFMCommunicate request_size=4 [14:48:51]MH_SAM_APDU [14:48:51]CAPDU: 80 0D 03 02 [14:48:51]Write to MH i2c: E2 08 00 52 09 80 0D 03 02 00 00 00 00 D6 [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:51]Read from MH i2c: E2 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 0B 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 0B 00 52 09 00 43 E3 11 F6 8C CD 69 2C 90 00 F2 [14:48:51]RAPDU: 43 E3 11 F6 8C CD 69 2C 90 00 [14:48:51]wFMCommunicate OK [14:48:51]SAM_PROTO_SignData done [14:48:51]FM_MakeSignedData done [14:48:51]CreateOFDProtocolMessage [14:48:51]wFMCommunicate request_size=4 [14:48:51]MH_SAM_APDU [14:48:51]CAPDU: 80 11 00 00 [14:48:51]Write to MH i2c: E2 08 00 53 09 80 11 00 00 00 00 00 00 D6 [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:51]Read from MH i2c: E2 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 17 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: E2 17 00 53 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 27 [14:48:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:48:51]wFMCommunicate OK [14:48:51]CreateOFDProtocolMessage done [14:48:51]OFDSenderStorePacket 112312 [14:48:51]StoreOFDPacket docnum=112312 [14:48:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 17 FE 07 01 61 4A 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 D3 00 00 00 F4 03 04 00 D2 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B8 B6 01 00 35 04 06 00 EC FC AB 80 59 95 43 E3 11 F6 8C CD 69 2C [14:48:51]CheckFolder [14:48:51]dirname=/storage/ofd_packets [14:48:51]CheckFolder done [14:48:51]ProducePacketName [14:48:51]name=ofd_packets/00112312 [14:48:51]NVStorageSaveData ofd_packets/00112312 [14:48:51]File name is /storage/ofd_packets/00112312 [14:48:51]Write 301 bytes [14:48:51]NVStorageSaveData done [14:48:51]OFDSenderStorePacket done [14:48:51]KKMCreateOFDPacket done [14:48:51]NVStorageSaveData kkm_last_timestamp [14:48:51]File name is /storage/kkm_last_timestamp [14:48:51]Write 4 bytes [14:48:51]NVStorageSaveData done [14:48:51]ExternCall_PrintAddStr [14:48:51]wPrintStart [14:48:51]Write to MH i2c: 01 00 00 54 09 5D [14:48:51]Write i2c OK [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: 01 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: 01 07 00 [14:48:51]MH_I2C_Read... [14:48:51]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 FF 0F 72 [14:48:51]RasterBufferAndPrint [14:48:51]line Счет N : (1)48623 [14:48:51]line ИНН: 02508201610067 [14:48:51]line Контрольно-Кассовый Чек [14:48:51]line ПРОДАЖА [14:48:51]line ТРК (МРК, ГНК) : 11 [14:48:51]line Товар: 2710124130 [14:48:51]line Аи-92-К-5 [14:48:51]line 9.340 * 64.30 [14:48:51]line = 600.56 [14:48:51]line НДС 12% НСП 1% [14:48:51]line > о реализуемом товаре [14:48:51]line ОКРУГЛЕНИЕ: -0.56 [14:48:51]line ИТОГО: 600.00 [14:48:51]line Внесено: 600.00 [14:48:51]line СДАЧА: 0.00 [14:48:51]line НСП 1% : 5.31 [14:48:51]line НДС 12% : 63.78 [14:48:51]line Наличными: 600.00 [14:48:51]line Безнал.: 0.00 [14:48:51]line Место: АЗС № 47 "Партнер Нефть" [14:48:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:48:51]line СНО: Общий режим [14:48:51]line Чек 211 14.04.2024 14:48 [14:48:51]line Смена: 357 ФФД: 1.0 [14:48:51]line ЗНМ: 0300000138 [14:48:51]line РНМ: 0000000000094237 [14:48:51]line Версия ККМ: 001 [14:48:51]line ФМ: 0000000000875019 [14:48:51]line ФД: 112312 [14:48:51]line ФПД: 260569953229205 [14:48:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144850&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112312&fm=260569953229205&tin=02508201610067®Number=0000000000094237&sum=60000 [14:48:51]written 0, free lines is 4095 [14:48:51]OFD Sender: Processing packet 112312 [packets to send 71, broken 70] [14:48:51]ProducePacketName [14:48:51]name=ofd_packets/00112312 [14:48:51]OFD Sender: To server: pG, [14:48:51]CommunicateWithHost lk.salyk.kg:30040 [14:48:51]ConnectInit lk.salyk.kg [14:48:51]Connected sock=10 [14:48:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 17 FE 07 01 61 4A 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 D3 00 00 00 F4 03 04 00 D2 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B8 B6 01 00 35 04 06 00 EC FC AB 80 59 95 43 E3 11 F6 8C CD 69 2C [14:48:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 52 28 47 00 41 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B8 B6 01 00 F4 03 04 00 5D 94 1B 66 B6 04 01 00 00 B1 19 A5 8E C5 4C 6D 91 [14:48:52]CommunicateWithHost err = 0 [14:48:52]CheckOFDResponse [14:48:52]1017 (14) - 77093643461234 [14:48:52]1041 (16) - 0000000000875019 [14:48:52]1040 (4) - 112312 [14:48:52]1012 (4) - 14.04.2024 08:31 [14:48:52]1206 (1) - 0 [14:48:52]OFD Sender: Remove packet 112312 [14:48:52]ProducePacketName [14:48:52]name=ofd_packets/00112312 [14:48:52]NVStorageDeleteData [14:48:52]Write to MH i2c: 01 00 00 7F 09 88 [14:48:52]Write i2c OK [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: 01 [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: 01 07 00 [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: 01 07 00 7F 09 00 00 00 00 00 F1 0C 8C [14:48:52]RasterBufferAndPrint [14:48:52]line [14:48:52]line [14:48:52]line [14:48:52]line [14:48:52]line [14:48:52]written 0, free lines is 3323 [14:48:52]MH_Cut [14:48:52]Write to MH i2c: D1 01 00 86 09 01 61 [14:48:52]Write i2c OK [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: D1 [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: D1 01 00 [14:48:52]MH_I2C_Read... [14:48:52]Read from MH i2c: D1 01 00 86 09 00 60 [14:48:52]Write to MH i2c: 01 00 00 87 09 90 [14:48:52]Write i2c OK [14:48:52]MH_I2C_Read... [14:48:52]OFD Sender: No OFD packet to send [14:48:52]*** Cut start [14:48:52]*** Partial cut [14:48:52]*** CUTSNS_PIN = 1 [14:48:52]*** CUTSNS_PIN = 0 [14:48:53]*** Brake cut motor [14:48:53]Read from MH i2c: 01 [14:48:53]MH_I2C_Read... [14:48:53]*** Stop cut motor [14:48:53]*** Cut end [14:48:53]Read from MH i2c: 01 07 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: 01 07 00 87 09 00 00 00 00 00 FF 0F A5 [14:48:53]process_action close_receipt done [14:48:53]requested_data is exist [14:48:53]produce_requested_data [14:48:53]requested_item fm.sn is exist - process it [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 11 00 00 [14:48:53]Write to MH i2c: E2 08 00 88 09 80 11 00 00 00 00 00 00 0B [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:53]Read from MH i2c: E2 17 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 17 00 88 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5C [14:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:48:53]wFMCommunicate OK [14:48:53]requested_item fd.num is exist - process it [14:48:53]SAM_PROTO_GetFieldsCounters [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 13 00 00 [14:48:53]Write to MH i2c: E2 08 00 89 09 80 13 00 00 00 00 00 00 0E [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 62 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 62 00 89 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:48:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:53]wFMCommunicate OK [14:48:53]SAM_PROTO_GetFieldsCounters done [14:48:53]requested_item shift.num is exist - process it [14:48:53]requested_item shift.opened is exist - process it [14:48:53]req_shift_opened [14:48:53]FM_GetShiftState [14:48:53]SAM_PROTO_GetShiftState [14:48:53]wFMCommunicate request_size=4 [14:48:53]MH_SAM_APDU [14:48:53]CAPDU: 80 13 01 00 [14:48:53]Write to MH i2c: E2 08 00 8A 09 80 13 01 00 00 00 00 00 10 [14:48:53]Write i2c OK [14:48:53]MH_I2C_Read... [14:48:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:53]Read from MH i2c: E2 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 0E 00 [14:48:53]MH_I2C_Read... [14:48:53]Read from MH i2c: E2 0E 00 8A 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A8 [14:48:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:48:53]wFMCommunicate OK [14:48:53]SAM_PROTO_GetShiftState done [14:48:53]FM_GetShiftState done [14:48:53]req_shift_opened done [14:48:53]requested_item shift.open_date is exist - process it [14:48:53]req_shift_open_date [14:48:53]req_shift_open_date done [14:48:53]produce_requested_data done [14:48:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112312,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:48:53]process_action_free close_receipt [14:48:53]json_value_free [14:48:53]json_value_free done [14:48:53]process_json_proto returns [14:48:53]Send response to host [14:48:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112312,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:48:53]free response buf [14:48:53]execute_script done [14:48:53]execute_script returns [14:48:53]free content buf [14:48:53]Sock 9.Close socket [14:48:53]Sock 9.Thread stoped [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:07]accept exits with 8 [14:49:07]New connection [14:49:07]New thread 3066682724 created [14:49:07]Thread 3066826084 joined [14:49:07]Waiting for new connection... [14:49:07] Sock 8.Parse request [14:49:07]Sock 8.Check first char [14:49:07]Sock 8.First char is OK [14:49:07]request: POST /json_proto HTTP/1.0 [14:49:07]Method: POST [14:49:07]URL: /json_proto [14:49:07]Method is POST - this is cgi request [14:49:07]url: /json_proto [14:49:07]query_string will be loaded in cgi processing [14:49:07]execute_cgi json_proto POST (null) [14:49:07]execute_cgi path=json_proto method=POST [14:49:07]POST find Content-Length [14:49:07]Host: 172.17.96.197:8080 [14:49:07]Content-Length: 676 [14:49:07]Content-Type: application/json [14:49:07] [14:49:07]POST finish read [14:49:07]Found Content-Length = 676 [14:49:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48624", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [14:49:07]execute_script... [14:49: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)48624", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [14:49:07]POST & json_proto [14:49:07]process_json_proto [14:49:07]json parsed OK: [14:49:07]protocol is kg_v1.0 [14:49:07]action value=close_receipt [14:49:07]process_action close_receipt [14:49:07]cmd_close_receipt [14:49:07]MH_GetDate [14:49:07]Write to MH i2c: F0 00 00 8B 09 83 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: F0 09 00 8B 09 00 E4 EC 1B 66 E0 85 7F 64 25 [14:49:07]GetLastDocTimeStamp 1713106130 [14:49:07]current date 1713106148 [14:49:07]FM_GetShiftState [14:49:07]SAM_PROTO_GetShiftState [14:49:07]wFMCommunicate request_size=4 [14:49:07]MH_SAM_APDU [14:49:07]CAPDU: 80 13 01 00 [14:49:07]Write to MH i2c: E2 08 00 8C 09 80 13 01 00 00 00 00 00 12 [14:49:07]Write i2c OK [14:49:07]MH_I2C_Read... [14:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:07]Read from MH i2c: E2 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 [14:49:07]MH_I2C_Read... [14:49:07]Read from MH i2c: E2 0E 00 8C 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AA [14:49:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:49:07]wFMCommunicate OK [14:49:07]SAM_PROTO_GetShiftState done [14:49:07]FM_GetShiftState done [14:49:07]opened in 1713054696 [14:49:07]opened+sec_in_day 1713141096 [14:49:07]quantity*price = 30028 [14:49:07]sum+1 = 30029 [14:49:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 212 14.04.2024 14:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112313 ФПД: 105641382354432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144908&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112313&fm=105641382354432&tin=02508201610067®Number=0000000000094237&sum=30000 [14:49:08]StoreToDocumentArchive [14:49:08]shift 357 fd 112313 [14:49:08]save to /storage/0357/doc_00112313 [14:49:08]save last doc name /storage/0357/doc_00112313 to /storage/kkm_last_doc_name [14:49:08]save OK [14:49:08]Clear old archive folders... [14:49:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:08]tlvbuf is 001499F0 [14:49:08]SAM_PROTO_ClearQueue [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 09 00 00 [14:49:08]Write to MH i2c: E2 08 00 99 09 80 09 00 00 00 00 00 00 14 [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 99 09 00 90 00 16 [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]SAM_PROTO_ClearQueue done [14:49:08]KKMCreateOFDPacket [14:49:08]OFDProtocolAddRootSTLVToBuf [14:49:08]FM_MakeSignedData [14:49:08]FM_MakeSignedData [14:49:08]SAM_PROTO_SignData [14:49:08]wFMCommunicate request_size=4 [14:49:08]MH_SAM_APDU [14:49:08]CAPDU: 80 0D 01 02 [14:49:08]Write to MH i2c: E2 08 00 9A 09 80 0D 01 02 00 00 00 00 1C [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 [14:49:08]MH_I2C_Read... [14:49:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:08]Read from MH i2c: E2 03 00 [14:49:08]MH_I2C_Read... [14:49:08]Read from MH i2c: E2 03 00 9A 09 00 90 00 17 [14:49:08]RAPDU: 90 00 [14:49:08]wFMCommunicate OK [14:49:08]wFMCommunicate request_size=255 [14:49:08]MH_SAM_APDU [14:49: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 D4 00 00 00 F4 03 04 00 E4 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B9 B6 01 00 35 04 06 00 60 [14:49:08]Write to MH i2c: E2 02 01 9B 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 D4 00 00 00 F4 03 04 00 E4 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B9 B6 01 00 35 04 06 00 60 00 00 9D [14:49:08]Write i2c OK [14:49:08]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 9B 09 00 90 00 18 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=10 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 02 02 05 14 8D 11 9E 00 [14:49:09]Write to MH i2c: E2 0D 00 9C 09 80 0D 02 02 05 00 14 8D 11 9E 00 00 00 79 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 03 00 9C 09 00 90 00 19 [14:49:09]RAPDU: 90 00 [14:49:09]wFMCommunicate OK [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 0D 03 02 [14:49:09]Write to MH i2c: E2 08 00 9D 09 80 0D 03 02 00 00 00 00 21 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0B 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 0B 00 9D 09 00 BB A2 F2 31 08 A0 CF A5 90 00 BE [14:49:09]RAPDU: BB A2 F2 31 08 A0 CF A5 90 00 [14:49:09]wFMCommunicate OK [14:49:09]SAM_PROTO_SignData done [14:49:09]FM_MakeSignedData done [14:49:09]CreateOFDProtocolMessage [14:49:09]wFMCommunicate request_size=4 [14:49:09]MH_SAM_APDU [14:49:09]CAPDU: 80 11 00 00 [14:49:09]Write to MH i2c: E2 08 00 9E 09 80 11 00 00 00 00 00 00 21 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:09]Read from MH i2c: E2 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: E2 17 00 9E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 72 [14:49:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:49:09]wFMCommunicate OK [14:49:09]CreateOFDProtocolMessage done [14:49:09]OFDSenderStorePacket 112313 [14:49:09]StoreOFDPacket docnum=112313 [14:49:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5C B0 07 01 2E 2D 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 D4 00 00 00 F4 03 04 00 E4 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B9 B6 01 00 35 04 06 00 60 14 8D 11 9E 00 BB A2 F2 31 08 A0 CF A5 [14:49:09]CheckFolder [14:49:09]dirname=/storage/ofd_packets [14:49:09]CheckFolder done [14:49:09]ProducePacketName [14:49:09]name=ofd_packets/00112313 [14:49:09]NVStorageSaveData ofd_packets/00112313 [14:49:09]File name is /storage/ofd_packets/00112313 [14:49:09]Write 301 bytes [14:49:09]NVStorageSaveData done [14:49:09]OFDSenderStorePacket done [14:49:09]KKMCreateOFDPacket done [14:49:09]NVStorageSaveData kkm_last_timestamp [14:49:09]File name is /storage/kkm_last_timestamp [14:49:09]Write 4 bytes [14:49:09]NVStorageSaveData done [14:49:09]ExternCall_PrintAddStr [14:49:09]wPrintStart [14:49:09]Write to MH i2c: 01 00 00 9F 09 A8 [14:49:09]Write i2c OK [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 [14:49:09]MH_I2C_Read... [14:49:09]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 FF 0F BD [14:49:09]RasterBufferAndPrint [14:49:09]line Счет N : (1)48624 [14:49:09]line ИНН: 02508201610067 [14:49:09]line Контрольно-Кассовый Чек [14:49:09]line ПРОДАЖА [14:49:09]line ТРК (МРК, ГНК) : 32 [14:49:09]line Товар: 2710124130 [14:49:09]line Аи-92-К-5 [14:49:09]line 4.670 * 64.30 [14:49:09]line = 300.28 [14:49:09]line НДС 12% НСП 1% [14:49:09]line > о реализуемом товаре [14:49:09]line ОКРУГЛЕНИЕ: -0.28 [14:49:09]line ИТОГО: 300.00 [14:49:09]line Внесено: 300.00 [14:49:09]line СДАЧА: 0.00 [14:49:09]line НСП 1% : 2.66 [14:49:09]line НДС 12% : 31.89 [14:49:09]line Наличными: 300.00 [14:49:09]line Безнал.: 0.00 [14:49:09]line Место: АЗС № 47 "Партнер Нефть" [14:49:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:49:09]line СНО: Общий режим [14:49:09]line Чек 212 14.04.2024 14:49 [14:49:09]line Смена: 357 ФФД: 1.0 [14:49:09]line ЗНМ: 0300000138 [14:49:09]line РНМ: 0000000000094237 [14:49:09]line Версия ККМ: 001 [14:49:09]line ФМ: 0000000000875019 [14:49:09]line ФД: 112313 [14:49:09]line ФПД: 105641382354432 [14:49:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T144908&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112313&fm=105641382354432&tin=02508201610067®Number=0000000000094237&sum=30000 [14:49:09]written 0, free lines is 4095 [14:49:09]OFD Sender: Processing packet 112313 [packets to send 71, broken 70] [14:49:09]ProducePacketName [14:49:09]name=ofd_packets/00112313 [14:49:09]OFD Sender: To server: pG, [14:49:09]CommunicateWithHost lk.salyk.kg:30040 [14:49:09]ConnectInit lk.salyk.kg [14:49:09]Connected sock=10 [14:49:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5C B0 07 01 2E 2D 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 D4 00 00 00 F4 03 04 00 E4 EC 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B9 B6 01 00 35 04 06 00 60 14 8D 11 9E 00 BB A2 F2 31 08 A0 CF A5 [14:49:10]Write to MH i2c: 01 00 00 CA 09 D3 [14:49:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 20 DB 47 00 E4 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 B9 B6 01 00 F4 03 04 00 6F 94 1B 66 B6 04 01 00 00 C4 03 A3 97 40 CC F1 4B [14:49:10]CommunicateWithHost err = 0 [14:49:10]CheckOFDResponse [14:49:10]1017 (14) - 77093643461234 [14:49:10]1041 (16) - 0000000000875019 [14:49:10]1040 (4) - 112313 [14:49:10]1012 (4) - 14.04.2024 08:31 [14:49:10]1206 (1) - 0 [14:49:10]OFD Sender: Remove packet 112313 [14:49:10]ProducePacketName [14:49:10]name=ofd_packets/00112313 [14:49:10]NVStorageDeleteData [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: 01 07 00 CA 09 00 00 00 00 00 D8 0C BE [14:49:10]RasterBufferAndPrint [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]line [14:49:10]written 0, free lines is 3307 [14:49:10]MH_Cut [14:49:10]Write to MH i2c: D1 01 00 D1 09 01 AC [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 01 00 [14:49:10]MH_I2C_Read... [14:49:10]Read from MH i2c: D1 01 00 D1 09 00 AB [14:49:10]Write to MH i2c: 01 00 00 D2 09 DB [14:49:10]Write i2c OK [14:49:10]MH_I2C_Read... [14:49:10]OFD Sender: No OFD packet to send [14:49:10]*** Cut start [14:49:10]*** Partial cut [14:49:10]*** CUTSNS_PIN = 1 [14:49:10]*** CUTSNS_PIN = 0 [14:49:11]*** Brake cut motor [14:49:11]Read from MH i2c: 01 [14:49:11]MH_I2C_Read... [14:49:11]*** Stop cut motor [14:49:11]*** Cut end [14:49:11]Read from MH i2c: 01 07 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: 01 07 00 D2 09 00 00 00 00 00 FF 0F F0 [14:49:11]process_action close_receipt done [14:49:11]requested_data is exist [14:49:11]produce_requested_data [14:49:11]requested_item fm.sn is exist - process it [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 11 00 00 [14:49:11]Write to MH i2c: E2 08 00 D3 09 80 11 00 00 00 00 00 00 56 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 17 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 17 00 D3 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A7 [14:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:49:11]wFMCommunicate OK [14:49:11]requested_item fd.num is exist - process it [14:49:11]SAM_PROTO_GetFieldsCounters [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 00 00 [14:49:11]Write to MH i2c: E2 08 00 D4 09 80 13 00 00 00 00 00 00 59 [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 62 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 62 00 D4 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [14:49:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 B9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:11]wFMCommunicate OK [14:49:11]SAM_PROTO_GetFieldsCounters done [14:49:11]requested_item shift.num is exist - process it [14:49:11]requested_item shift.opened is exist - process it [14:49:11]req_shift_opened [14:49:11]FM_GetShiftState [14:49:11]SAM_PROTO_GetShiftState [14:49:11]wFMCommunicate request_size=4 [14:49:11]MH_SAM_APDU [14:49:11]CAPDU: 80 13 01 00 [14:49:11]Write to MH i2c: E2 08 00 D5 09 80 13 01 00 00 00 00 00 5B [14:49:11]Write i2c OK [14:49:11]MH_I2C_Read... [14:49:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:11]Read from MH i2c: E2 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 [14:49:11]MH_I2C_Read... [14:49:11]Read from MH i2c: E2 0E 00 D5 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F3 [14:49:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:49:11]wFMCommunicate OK [14:49:11]SAM_PROTO_GetShiftState done [14:49:11]FM_GetShiftState done [14:49:11]req_shift_opened done [14:49:11]requested_item shift.open_date is exist - process it [14:49:11]req_shift_open_date [14:49:11]req_shift_open_date done [14:49:11]produce_requested_data done [14:49:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112313,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:49:11]process_action_free close_receipt [14:49:11]json_value_free [14:49:11]json_value_free done [14:49:11]process_json_proto returns [14:49:11]Send response to host [14:49:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112313,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:49:11]free response buf [14:49:11]execute_script done [14:49:11]execute_script returns [14:49:11]free content buf [14:49:11]Sock 8.Close socket [14:49:11]Sock 8.Thread stoped [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:26]accept exits with 9 [14:50:26]New connection [14:50:26]New thread 3066826084 created [14:50:26]Thread 3066682724 joined [14:50:26]Waiting for new connection... [14:50:26] Sock 9.Parse request [14:50:26]Sock 9.Check first char [14:50:26]Sock 9.First char is OK [14:50:26]request: POST /json_proto HTTP/1.0 [14:50:26]Method: POST [14:50:26]URL: /json_proto [14:50:26]Method is POST - this is cgi request [14:50:26]url: /json_proto [14:50:26]query_string will be loaded in cgi processing [14:50:26]execute_cgi json_proto POST (null) [14:50:26]execute_cgi path=json_proto method=POST [14:50:26]POST find Content-Length [14:50:26]Host: 172.17.96.197:8080 [14:50:26]Content-Length: 676 [14:50:26]Content-Type: application/json [14:50:26] [14:50:26]POST finish read [14:50:26]Found Content-Length = 676 [14:50:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:50:26]execute_script... [14:50: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)48625", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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:50:26]POST & json_proto [14:50:26]process_json_proto [14:50:26]json parsed OK: [14:50:26]protocol is kg_v1.0 [14:50:26]action value=close_receipt [14:50:26]process_action close_receipt [14:50:26]cmd_close_receipt [14:50:26]MH_GetDate [14:50:26]Write to MH i2c: F0 00 00 D6 09 CE [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 09 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: F0 09 00 D6 09 00 32 ED 1B 66 E0 85 7F 64 BF [14:50:26]GetLastDocTimeStamp 1713106148 [14:50:26]current date 1713106226 [14:50:26]FM_GetShiftState [14:50:26]SAM_PROTO_GetShiftState [14:50:26]wFMCommunicate request_size=4 [14:50:26]MH_SAM_APDU [14:50:26]CAPDU: 80 13 01 00 [14:50:26]Write to MH i2c: E2 08 00 D7 09 80 13 01 00 00 00 00 00 5D [14:50:26]Write i2c OK [14:50:26]MH_I2C_Read... [14:50:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:26]Read from MH i2c: E2 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 [14:50:26]MH_I2C_Read... [14:50:26]Read from MH i2c: E2 0E 00 D7 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F5 [14:50:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:50:26]wFMCommunicate OK [14:50:26]SAM_PROTO_GetShiftState done [14:50:26]FM_GetShiftState done [14:50:26]opened in 1713054696 [14:50:26]opened+sec_in_day 1713141096 [14:50:26]quantity*price = 50025 [14:50:26]sum+1 = 50026 [14:50:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 213 14.04.2024 14:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112314 ФПД: 271798198403280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T145027&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112314&fm=271798198403280&tin=02508201610067®Number=0000000000094237&sum=50000 [14:50:27]StoreToDocumentArchive [14:50:27]shift 357 fd 112314 [14:50:27]save to /storage/0357/doc_00112314 [14:50:27]save last doc name /storage/0357/doc_00112314 to /storage/kkm_last_doc_name [14:50:27]save OK [14:50:27]Clear old archive folders... [14:50:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:50:27]tlvbuf is B6EA2BF0 [14:50:27]SAM_PROTO_ClearQueue [14:50:27]wFMCommunicate request_size=4 [14:50:27]MH_SAM_APDU [14:50:27]CAPDU: 80 09 00 00 [14:50:27]Write to MH i2c: E2 08 00 E4 09 80 09 00 00 00 00 00 00 5F [14:50:27]Write i2c OK [14:50:27]MH_I2C_Read... [14:50:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:27]Read from MH i2c: E2 [14:50:27]MH_I2C_Read... [14:50:27]Read from MH i2c: E2 03 00 [14:50:27]MH_I2C_Read... [14:50:27]Read from MH i2c: E2 03 00 E4 09 00 90 00 61 [14:50:27]RAPDU: 90 00 [14:50:27]wFMCommunicate OK [14:50:27]SAM_PROTO_ClearQueue done [14:50:27]KKMCreateOFDPacket [14:50:27]OFDProtocolAddRootSTLVToBuf [14:50:27]FM_MakeSignedData [14:50:27]FM_MakeSignedData [14:50:27]SAM_PROTO_SignData [14:50:27]wFMCommunicate request_size=4 [14:50:27]MH_SAM_APDU [14:50:27]CAPDU: 80 0D 01 02 [14:50:27]Write to MH i2c: E2 08 00 E5 09 80 0D 01 02 00 00 00 00 67 [14:50:27]Write i2c OK [14:50:27]MH_I2C_Read... [14:50:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:27]Read from MH i2c: E2 [14:50:27]MH_I2C_Read... [14:50:27]Read from MH i2c: E2 03 00 [14:50:27]MH_I2C_Read... [14:50:27]Read from MH i2c: E2 03 00 E5 09 00 90 00 62 [14:50:27]RAPDU: 90 00 [14:50:27]wFMCommunicate OK [14:50:27]wFMCommunicate request_size=255 [14:50:27]MH_SAM_APDU [14:50:27]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D5 00 00 00 F4 03 04 00 33 ED 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BA B6 01 00 35 04 06 00 F7 [14:50:27]Write to MH i2c: E2 02 01 E6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D5 00 00 00 F4 03 04 00 33 ED 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BA B6 01 00 35 04 06 00 F7 00 00 4E [14:50:27]Write i2c OK [14:50:27]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 E6 09 00 90 00 63 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]wFMCommunicate request_size=10 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 02 02 05 32 F3 11 00 D0 [14:50:28]Write to MH i2c: E2 0D 00 E7 09 80 0D 02 02 05 00 32 F3 11 00 D0 00 00 7A [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 03 00 E7 09 00 90 00 64 [14:50:28]RAPDU: 90 00 [14:50:28]wFMCommunicate OK [14:50:28]wFMCommunicate request_size=4 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 0D 03 02 [14:50:28]Write to MH i2c: E2 08 00 E8 09 80 0D 03 02 00 00 00 00 6C [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 0B 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 0B 00 E8 09 00 E9 61 E1 28 B2 D1 AE D2 90 00 C3 [14:50:28]RAPDU: E9 61 E1 28 B2 D1 AE D2 90 00 [14:50:28]wFMCommunicate OK [14:50:28]SAM_PROTO_SignData done [14:50:28]FM_MakeSignedData done [14:50:28]CreateOFDProtocolMessage [14:50:28]wFMCommunicate request_size=4 [14:50:28]MH_SAM_APDU [14:50:28]CAPDU: 80 11 00 00 [14:50:28]Write to MH i2c: E2 08 00 E9 09 80 11 00 00 00 00 00 00 6C [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:28]Read from MH i2c: E2 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 17 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: E2 17 00 E9 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BD [14:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:50:28]wFMCommunicate OK [14:50:28]CreateOFDProtocolMessage done [14:50:28]OFDSenderStorePacket 112314 [14:50:28]StoreOFDPacket docnum=112314 [14:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 78 E0 07 01 D9 52 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D5 00 00 00 F4 03 04 00 33 ED 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BA B6 01 00 35 04 06 00 F7 32 F3 11 00 D0 E9 61 E1 28 B2 D1 AE D2 [14:50:28]CheckFolder [14:50:28]dirname=/storage/ofd_packets [14:50:28]CheckFolder done [14:50:28]ProducePacketName [14:50:28]name=ofd_packets/00112314 [14:50:28]NVStorageSaveData ofd_packets/00112314 [14:50:28]File name is /storage/ofd_packets/00112314 [14:50:28]Write 301 bytes [14:50:28]NVStorageSaveData done [14:50:28]OFDSenderStorePacket done [14:50:28]KKMCreateOFDPacket done [14:50:28]NVStorageSaveData kkm_last_timestamp [14:50:28]File name is /storage/kkm_last_timestamp [14:50:28]Write 4 bytes [14:50:28]NVStorageSaveData done [14:50:28]ExternCall_PrintAddStr [14:50:28]wPrintStart [14:50:28]Write to MH i2c: 01 00 00 EA 09 F3 [14:50:28]Write i2c OK [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 07 00 [14:50:28]MH_I2C_Read... [14:50:28]Read from MH i2c: 01 07 00 EA 09 00 00 00 00 00 FF 0F 08 [14:50:28]RasterBufferAndPrint [14:50:28]line Счет N : (1)48625 [14:50:28]line ИНН: 02508201610067 [14:50:28]line Контрольно-Кассовый Чек [14:50:28]line ПРОДАЖА [14:50:28]line ТРК (МРК, ГНК) : 11 [14:50:28]line Товар: 2710124130 [14:50:28]line Аи-92-К-5 [14:50:28]line 7.780 * 64.30 [14:50:28]line = 500.25 [14:50:28]line НДС 12% НСП 1% [14:50:28]line > о реализуемом товаре [14:50:28]line ОКРУГЛЕНИЕ: -0.25 [14:50:28]line ИТОГО: 500.00 [14:50:28]line Внесено: 500.00 [14:50:28]line СДАЧА: 0.00 [14:50:28]line НСП 1% : 4.43 [14:50:28]line НДС 12% : 53.12 [14:50:28]line Наличными: 500.00 [14:50:28]line Безнал.: 0.00 [14:50:28]line Место: АЗС № 47 "Партнер Нефть" [14:50:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:50:28]line СНО: Общий режим [14:50:28]line Чек 213 14.04.2024 14:50 [14:50:28]line Смена: 357 ФФД: 1.0 [14:50:28]line ЗНМ: 0300000138 [14:50:28]line РНМ: 0000000000094237 [14:50:28]line Версия ККМ: 001 [14:50:28]line ФМ: 0000000000875019 [14:50:28]line ФД: 112314 [14:50:28]line ФПД: 271798198403280 [14:50:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T145027&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112314&fm=271798198403280&tin=02508201610067®Number=0000000000094237&sum=50000 [14:50:28]OFD Sender: Processing packet 112314 [packets to send 71, broken 70] [14:50:28]ProducePacketName [14:50:28]name=ofd_packets/00112314 [14:50:28]OFD Sender: To server: pG, [14:50:28]CommunicateWithHost lk.salyk.kg:30040 [14:50:28]ConnectInit lk.salyk.kg [14:50:28]written 0, free lines is 4095 [14:50:28]Connected sock=10 [14:50:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 78 E0 07 01 D9 52 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 D5 00 00 00 F4 03 04 00 33 ED 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BA B6 01 00 35 04 06 00 F7 32 F3 11 00 D0 E9 61 E1 28 B2 D1 AE D2 [14:50:29]Write to MH i2c: 01 00 00 15 0A 1F [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 07 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: 01 07 00 15 0A 00 00 00 00 00 CD 0C FF [14:50:29]RasterBufferAndPrint [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]line [14:50:29]written 0, free lines is 3283 [14:50:29]MH_Cut [14:50:29]Write to MH i2c: D1 01 00 1C 0A 01 F8 [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 65 29 47 00 21 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BA B6 01 00 F4 03 04 00 BE 94 1B 66 B6 04 01 00 00 2D BC 97 65 0B 44 78 FB [14:50:29]CommunicateWithHost err = 0 [14:50:29]CheckOFDResponse [14:50:29]1017 (14) - 77093643461234 [14:50:29]1041 (16) - 0000000000875019 [14:50:29]1040 (4) - 112314 [14:50:29]1012 (4) - 14.04.2024 08:33 [14:50:29]1206 (1) - 0 [14:50:29]OFD Sender: Remove packet 112314 [14:50:29]ProducePacketName [14:50:29]name=ofd_packets/00112314 [14:50:29]NVStorageDeleteData [14:50:29]Read from MH i2c: D1 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: D1 01 00 [14:50:29]MH_I2C_Read... [14:50:29]Read from MH i2c: D1 01 00 1C 0A 00 F7 [14:50:29]Write to MH i2c: 01 00 00 1D 0A 27 [14:50:29]Write i2c OK [14:50:29]MH_I2C_Read... [14:50:29]OFD Sender: No OFD packet to send [14:50:29]*** Cut start [14:50:29]*** Partial cut [14:50:29]*** CUTSNS_PIN = 1 [14:50:29]*** CUTSNS_PIN = 0 [14:50:30]*** Brake cut motor [14:50:30]Read from MH i2c: 01 [14:50:30]MH_I2C_Read... [14:50:30]*** Stop cut motor [14:50:30]*** Cut end [14:50:30]Read from MH i2c: 01 07 00 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: 01 07 00 1D 0A 00 00 00 00 00 FF 0F 3C [14:50:30]process_action close_receipt done [14:50:30]requested_data is exist [14:50:30]produce_requested_data [14:50:30]requested_item fm.sn is exist - process it [14:50:30]wFMCommunicate request_size=4 [14:50:30]MH_SAM_APDU [14:50:30]CAPDU: 80 11 00 00 [14:50:30]Write to MH i2c: E2 08 00 1E 0A 80 11 00 00 00 00 00 00 A2 [14:50:30]Write i2c OK [14:50:30]MH_I2C_Read... [14:50:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:30]Read from MH i2c: E2 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 17 00 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 17 00 1E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [14:50:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:50:30]wFMCommunicate OK [14:50:30]requested_item fd.num is exist - process it [14:50:30]SAM_PROTO_GetFieldsCounters [14:50:30]wFMCommunicate request_size=4 [14:50:30]MH_SAM_APDU [14:50:30]CAPDU: 80 13 00 00 [14:50:30]Write to MH i2c: E2 08 00 1F 0A 80 13 00 00 00 00 00 00 A5 [14:50:30]Write i2c OK [14:50:30]MH_I2C_Read... [14:50:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:30]Read from MH i2c: E2 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 62 00 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 62 00 1F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [14:50:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:30]wFMCommunicate OK [14:50:30]SAM_PROTO_GetFieldsCounters done [14:50:30]requested_item shift.num is exist - process it [14:50:30]requested_item shift.opened is exist - process it [14:50:30]req_shift_opened [14:50:30]FM_GetShiftState [14:50:30]SAM_PROTO_GetShiftState [14:50:30]wFMCommunicate request_size=4 [14:50:30]MH_SAM_APDU [14:50:30]CAPDU: 80 13 01 00 [14:50:30]Write to MH i2c: E2 08 00 20 0A 80 13 01 00 00 00 00 00 A7 [14:50:30]Write i2c OK [14:50:30]MH_I2C_Read... [14:50:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:30]Read from MH i2c: E2 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 0E 00 [14:50:30]MH_I2C_Read... [14:50:30]Read from MH i2c: E2 0E 00 20 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3F [14:50:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:50:30]wFMCommunicate OK [14:50:30]SAM_PROTO_GetShiftState done [14:50:30]FM_GetShiftState done [14:50:30]req_shift_opened done [14:50:30]requested_item shift.open_date is exist - process it [14:50:30]req_shift_open_date [14:50:30]req_shift_open_date done [14:50:30]produce_requested_data done [14:50:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112314,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:50:30]process_action_free close_receipt [14:50:30]json_value_free [14:50:30]json_value_free done [14:50:30]process_json_proto returns [14:50:30]Send response to host [14:50:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112314,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:50:30]free response buf [14:50:30]execute_script done [14:50:30]execute_script returns [14:50:30]free content buf [14:50:30]Sock 9.Close socket [14:50:30]Sock 9.Thread stoped [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:13]accept exits with 8 [14:54:13]New connection [14:54:13]New thread 3066682724 created [14:54:13]Thread 3066826084 joined [14:54:13]Waiting for new connection... [14:54:13] Sock 8.Parse request [14:54:13]Sock 8.Check first char [14:54:13]Sock 8.First char is OK [14:54:13]request: POST /json_proto HTTP/1.0 [14:54:13]Method: POST [14:54:13]URL: /json_proto [14:54:13]Method is POST - this is cgi request [14:54:13]url: /json_proto [14:54:13]query_string will be loaded in cgi processing [14:54:13]execute_cgi json_proto POST (null) [14:54:13]execute_cgi path=json_proto method=POST [14:54:13]POST find Content-Length [14:54:13]Host: 172.17.96.197:8080 [14:54:13]Content-Length: 684 [14:54:13]Content-Type: application/json [14:54:13] [14:54:13]POST finish read [14:54:13]Found Content-Length = 684 [14:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:13]execute_script... [14:54: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)48626", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:13]POST & json_proto [14:54:13]process_json_proto [14:54:13]json parsed OK: [14:54:13]protocol is kg_v1.0 [14:54:13]action value=close_receipt [14:54:13]process_action close_receipt [14:54:13]cmd_close_receipt [14:54:13]MH_GetDate [14:54:13]Write to MH i2c: F0 00 00 21 0A 1A [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 09 00 [14:54:13]MH_I2C_Read... [14:54:13]Read from MH i2c: F0 09 00 21 0A 00 16 EE 1B 66 E0 85 7F 64 F0 [14:54:13]GetLastDocTimeStamp 1713106227 [14:54:13]current date 1713106454 [14:54:13]FM_GetShiftState [14:54:13]SAM_PROTO_GetShiftState [14:54:13]wFMCommunicate request_size=4 [14:54:13]MH_SAM_APDU [14:54:13]CAPDU: 80 13 01 00 [14:54:13]Write to MH i2c: E2 08 00 22 0A 80 13 01 00 00 00 00 00 A9 [14:54:13]Write i2c OK [14:54:13]MH_I2C_Read... [14:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:14]Read from MH i2c: E2 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 [14:54:14]MH_I2C_Read... [14:54:14]Read from MH i2c: E2 0E 00 22 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [14:54:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:54:14]wFMCommunicate OK [14:54:14]SAM_PROTO_GetShiftState done [14:54:14]FM_GetShiftState done [14:54:14]opened in 1713054696 [14:54:14]opened+sec_in_day 1713141096 [14:54:14]quantity*price = 100029 [14:54:14]sum+1 = 100030 [14:54:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 214 14.04.2024 14:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112315 ФПД: 44899085082240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T145414&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112315&fm=44899085082240&tin=02508201610067®Number=0000000000094237&sum=100000 [14:54:15]StoreToDocumentArchive [14:54:15]shift 357 fd 112315 [14:54:15]save to /storage/0357/doc_00112315 [14:54:15]save last doc name /storage/0357/doc_00112315 to /storage/kkm_last_doc_name [14:54:15]save OK [14:54:15]Clear old archive folders... [14:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [14:54:15]tlvbuf is 0013FAC0 [14:54:15]SAM_PROTO_ClearQueue [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 09 00 00 [14:54:15]Write to MH i2c: E2 08 00 2F 0A 80 09 00 00 00 00 00 00 AB [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 2F 0A 00 90 00 AD [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_ClearQueue done [14:54:15]KKMCreateOFDPacket [14:54:15]OFDProtocolAddRootSTLVToBuf [14:54:15]FM_MakeSignedData [14:54:15]FM_MakeSignedData [14:54:15]SAM_PROTO_SignData [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 01 02 [14:54:15]Write to MH i2c: E2 08 00 30 0A 80 0D 01 02 00 00 00 00 B3 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 30 0A 00 90 00 AE [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=255 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 16 EE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BB B6 01 00 35 04 06 00 28 D5 [14:54:15]Write to MH i2c: E2 02 01 31 0A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 16 EE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BB B6 01 00 35 04 06 00 28 D5 00 00 0A [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 31 0A 00 90 00 AF [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=9 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 02 02 04 E2 04 5E 80 [14:54:15]Write to MH i2c: E2 0C 00 32 0A 80 0D 02 02 04 00 E2 04 5E 80 00 00 82 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 03 00 32 0A 00 90 00 B0 [14:54:15]RAPDU: 90 00 [14:54:15]wFMCommunicate OK [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 0D 03 02 [14:54:15]Write to MH i2c: E2 08 00 33 0A 80 0D 03 02 00 00 00 00 B8 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 0B 00 33 0A 00 D4 1B 93 1F CE 6F D9 5E 90 00 CE [14:54:15]RAPDU: D4 1B 93 1F CE 6F D9 5E 90 00 [14:54:15]wFMCommunicate OK [14:54:15]SAM_PROTO_SignData done [14:54:15]FM_MakeSignedData done [14:54:15]CreateOFDProtocolMessage [14:54:15]wFMCommunicate request_size=4 [14:54:15]MH_SAM_APDU [14:54:15]CAPDU: 80 11 00 00 [14:54:15]Write to MH i2c: E2 08 00 34 0A 80 11 00 00 00 00 00 00 B8 [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:15]Read from MH i2c: E2 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: E2 17 00 34 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 09 [14:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:54:15]wFMCommunicate OK [14:54:15]CreateOFDProtocolMessage done [14:54:15]OFDSenderStorePacket 112315 [14:54:15]StoreOFDPacket docnum=112315 [14:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C6 F5 06 01 37 51 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 16 EE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BB B6 01 00 35 04 06 00 28 D5 E2 04 5E 80 D4 1B 93 1F CE 6F D9 5E [14:54:15]CheckFolder [14:54:15]dirname=/storage/ofd_packets [14:54:15]CheckFolder done [14:54:15]ProducePacketName [14:54:15]name=ofd_packets/00112315 [14:54:15]NVStorageSaveData ofd_packets/00112315 [14:54:15]File name is /storage/ofd_packets/00112315 [14:54:15]Write 300 bytes [14:54:15]NVStorageSaveData done [14:54:15]OFDSenderStorePacket done [14:54:15]KKMCreateOFDPacket done [14:54:15]NVStorageSaveData kkm_last_timestamp [14:54:15]File name is /storage/kkm_last_timestamp [14:54:15]Write 4 bytes [14:54:15]NVStorageSaveData done [14:54:15]ExternCall_PrintAddStr [14:54:15]wPrintStart [14:54:15]Write to MH i2c: 01 00 00 35 0A 3F [14:54:15]Write i2c OK [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 [14:54:15]MH_I2C_Read... [14:54:15]Read from MH i2c: 01 07 00 35 0A 00 00 00 00 00 FF 0F 54 [14:54:15]RasterBufferAndPrint [14:54:15]line Счет N : (1)48626 [14:54:15]line ИНН: 02508201610067 [14:54:15]line Контрольно-Кассовый Чек [14:54:15]line ПРОДАЖА [14:54:15]line ТРК (МРК, ГНК) : 72 [14:54:15]line Товар: 2711190000 [14:54:15]line ГАЗ-К-5 [14:54:15]line 30.590 * 32.70 [14:54:15]line = 1000.29 [14:54:15]line НДС 12% НСП 1% [14:54:15]line > о реализуемом товаре [14:54:15]line ОКРУГЛЕНИЕ: -0.29 [14:54:15]line ИТОГО: 1000.00 [14:54:15]line Внесено: 1000.00 [14:54:15]line СДАЧА: 0.00 [14:54:15]line НСП 1% : 8.85 [14:54:15]line НДС 12% : 106.22 [14:54:15]line Наличными: 1000.00 [14:54:15]line Безнал.: 0.00 [14:54:15]line Место: АЗС № 47 "Партнер Нефть" [14:54:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [14:54:15]line СНО: Общий режим [14:54:15]line Чек 214 14.04.2024 14:54 [14:54:15]line Смена: 357 ФФД: 1.0 [14:54:15]line ЗНМ: 0300000138 [14:54:15]line РНМ: 0000000000094237 [14:54:15]line Версия ККМ: 001 [14:54:15]line ФМ: 0000000000875019 [14:54:15]line ФД: 112315 [14:54:15]line ФПД: 44899085082240 [14:54:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T145414&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112315&fm=44899085082240&tin=02508201610067®Number=0000000000094237&sum=100000 [14:54:16]OFD Sender: Processing packet 112315 [packets to send 71, broken 70] [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00112315 [14:54:16]OFD Sender: To server: pG, [14:54:16]CommunicateWithHost lk.salyk.kg:30040 [14:54:16]ConnectInit lk.salyk.kg [14:54:16]written 0, free lines is 4095 [14:54:16]Connected sock=10 [14:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C6 F5 06 01 37 51 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 16 EE 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BB B6 01 00 35 04 06 00 28 D5 E2 04 5E 80 D4 1B 93 1F CE 6F D9 5E [14:54:16]Write to MH i2c: 01 00 00 60 0A 6A [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: 01 07 00 60 0A 00 00 00 00 00 D4 0C 51 [14:54:16]RasterBufferAndPrint [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]line [14:54:16]written 0, free lines is 3290 [14:54:16]MH_Cut [14:54:16]Write to MH i2c: D1 01 00 67 0A 01 43 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 [14:54:16]MH_I2C_Read... [14:54:16]Read from MH i2c: D1 01 00 67 0A 00 42 [14:54:16]Write to MH i2c: 01 00 00 68 0A 72 [14:54:16]Write i2c OK [14:54:16]MH_I2C_Read... [14:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EF 96 47 00 72 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BB B6 01 00 F4 03 04 00 A1 95 1B 66 B6 04 01 00 00 6C 7D 2B B1 F5 B9 B7 E4 [14:54:16]CommunicateWithHost err = 0 [14:54:16]CheckOFDResponse [14:54:16]1017 (14) - 77093643461234 [14:54:16]1041 (16) - 0000000000875019 [14:54:16]1040 (4) - 112315 [14:54:16]1012 (4) - 14.04.2024 08:36 [14:54:16]1206 (1) - 0 [14:54:16]OFD Sender: Remove packet 112315 [14:54:16]ProducePacketName [14:54:16]name=ofd_packets/00112315 [14:54:16]NVStorageDeleteData [14:54:16]OFD Sender: No OFD packet to send [14:54:17]*** Cut start [14:54:17]*** Partial cut [14:54:17]*** CUTSNS_PIN = 1 [14:54:17]*** CUTSNS_PIN = 0 [14:54:17]*** Brake cut motor [14:54:17]Read from MH i2c: 01 [14:54:17]MH_I2C_Read... [14:54:17]*** Stop cut motor [14:54:17]*** Cut end [14:54:17]Read from MH i2c: 01 07 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: 01 07 00 68 0A 00 00 00 00 00 FF 0F 87 [14:54:17]process_action close_receipt done [14:54:17]requested_data is exist [14:54:17]produce_requested_data [14:54:17]requested_item fm.sn is exist - process it [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 11 00 00 [14:54:17]Write to MH i2c: E2 08 00 69 0A 80 11 00 00 00 00 00 00 ED [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:17]Read from MH i2c: E2 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 [14:54:17]MH_I2C_Read... [14:54:17]Read from MH i2c: E2 17 00 69 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [14:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [14:54:17]wFMCommunicate OK [14:54:17]requested_item fd.num is exist - process it [14:54:17]SAM_PROTO_GetFieldsCounters [14:54:17]wFMCommunicate request_size=4 [14:54:17]MH_SAM_APDU [14:54:17]CAPDU: 80 13 00 00 [14:54:17]Write to MH i2c: E2 08 00 6A 0A 80 13 00 00 00 00 00 00 F0 [14:54:17]Write i2c OK [14:54:17]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 62 00 6A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [14:54:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetFieldsCounters done [14:54:18]requested_item shift.num is exist - process it [14:54:18]requested_item shift.opened is exist - process it [14:54:18]req_shift_opened [14:54:18]FM_GetShiftState [14:54:18]SAM_PROTO_GetShiftState [14:54:18]wFMCommunicate request_size=4 [14:54:18]MH_SAM_APDU [14:54:18]CAPDU: 80 13 01 00 [14:54:18]Write to MH i2c: E2 08 00 6B 0A 80 13 01 00 00 00 00 00 F2 [14:54:18]Write i2c OK [14:54:18]MH_I2C_Read... [14:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:18]Read from MH i2c: E2 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 [14:54:18]MH_I2C_Read... [14:54:18]Read from MH i2c: E2 0E 00 6B 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8A [14:54:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [14:54:18]wFMCommunicate OK [14:54:18]SAM_PROTO_GetShiftState done [14:54:18]FM_GetShiftState done [14:54:18]req_shift_opened done [14:54:18]requested_item shift.open_date is exist - process it [14:54:18]req_shift_open_date [14:54:18]req_shift_open_date done [14:54:18]produce_requested_data done [14:54:18]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112315,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [14:54:18]process_action_free close_receipt [14:54:18]json_value_free [14:54:18]json_value_free done [14:54:18]process_json_proto returns [14:54:18]Send response to host [14:54:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112315,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [14:54:18]free response buf [14:54:18]execute_script done [14:54:18]execute_script returns [14:54:18]free content buf [14:54:18]Sock 8.Close socket [14:54:18]Sock 8.Thread stoped [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:42]OFD Sender: No OFD packet to send [14:55:47]OFD Sender: No OFD packet to send [14:55:52]OFD Sender: No OFD packet to send [14:55:57]OFD Sender: No OFD packet to send [14:56:02]OFD Sender: No OFD packet to send [14:56:07]OFD Sender: No OFD packet to send [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:22]OFD Sender: No OFD packet to send [14:57:27]OFD Sender: No OFD packet to send [14:57:32]OFD Sender: No OFD packet to send [14:57:37]OFD Sender: No OFD packet to send [14:57:42]OFD Sender: No OFD packet to send [14:57:47]OFD Sender: No OFD packet to send [14:57:52]OFD Sender: No OFD packet to send [14:57:57]OFD Sender: No OFD packet to send [14:58:02]OFD Sender: No OFD packet to send [14:58:07]OFD Sender: No OFD packet to send [14:58:12]OFD Sender: No OFD packet to send [14:58:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]OFD Sender: No OFD packet to send [14:58:37]OFD Sender: No OFD packet to send [14:58:42]OFD Sender: No OFD packet to send [14:58:47]OFD Sender: No OFD packet to send [14:58:52]OFD Sender: No OFD packet to send [14:58:57]OFD Sender: No OFD packet to send [14:59:02]OFD Sender: No OFD packet to send [14:59:07]OFD Sender: No OFD packet to send [14:59:12]OFD Sender: No OFD packet to send [14:59:17]OFD Sender: No OFD packet to send [14:59:22]OFD Sender: No OFD packet to send [14:59:27]OFD Sender: No OFD packet to send [14:59:32]OFD Sender: No OFD packet to send [14:59:37]OFD Sender: No OFD packet to send [14:59:42]OFD Sender: No OFD packet to send [14:59:47]OFD Sender: No OFD packet to send [14:59:52]OFD Sender: No OFD packet to send [14:59:57]OFD Sender: No OFD packet to send [15:00:02]OFD Sender: No OFD packet to send [15:00:07]OFD Sender: No OFD packet to send [15:00:12]OFD Sender: No OFD packet to send [15:00:17]OFD Sender: No OFD packet to send [15:00:22]OFD Sender: No OFD packet to send [15:00:27]OFD Sender: No OFD packet to send [15:00:32]OFD Sender: No OFD packet to send [15:00:37]OFD Sender: No OFD packet to send [15:00:42]OFD Sender: No OFD packet to send [15:00:47]OFD Sender: No OFD packet to send [15:00:52]OFD Sender: No OFD packet to send [15:00:57]OFD Sender: No OFD packet to send [15:01:02]OFD Sender: No OFD packet to send [15:01:07]OFD Sender: No OFD packet to send [15:01:12]OFD Sender: No OFD packet to send [15:01:17]OFD Sender: No OFD packet to send [15:01:22]OFD Sender: No OFD packet to send [15:01:27]OFD Sender: No OFD packet to send [15:01:32]OFD Sender: No OFD packet to send [15:01:37]OFD Sender: No OFD packet to send [15:01:42]OFD Sender: No OFD packet to send [15:01:47]OFD Sender: No OFD packet to send [15:01:52]OFD Sender: No OFD packet to send [15:01:57]OFD Sender: No OFD packet to send [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:06]accept exits with 9 [15:03:06]New connection [15:03:06]New thread 3066826084 created [15:03:06]Thread 3066682724 joined [15:03:06]Waiting for new connection... [15:03:06] Sock 9.Parse request [15:03:06]Sock 9.Check first char [15:03:06]Sock 9.First char is OK [15:03:06]request: POST /json_proto HTTP/1.0 [15:03:06]Method: POST [15:03:06]URL: /json_proto [15:03:06]Method is POST - this is cgi request [15:03:06]url: /json_proto [15:03:06]query_string will be loaded in cgi processing [15:03:06]execute_cgi json_proto POST (null) [15:03:06]execute_cgi path=json_proto method=POST [15:03:06]POST find Content-Length [15:03:06]Host: 172.17.96.197:8080 [15:03:06]Content-Length: 681 [15:03:06]Content-Type: application/json [15:03:06] [15:03:06]POST finish read [15:03:06]Found Content-Length = 681 [15:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48627", "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.30, "quantity" : 15.560, "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" ] } } [15:03:06]execute_script... [15:03: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)48627", "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.30, "quantity" : 15.560, "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" ] } } [15:03:06]POST & json_proto [15:03:06]process_json_proto [15:03:06]json parsed OK: [15:03:06]protocol is kg_v1.0 [15:03:06]action value=close_receipt [15:03:06]process_action close_receipt [15:03:06]cmd_close_receipt [15:03:06]MH_GetDate [15:03:06]Write to MH i2c: F0 00 00 6C 0A 65 [15:03:06]Write i2c OK [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: F0 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: F0 09 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: F0 09 00 6C 0A 00 2B F0 1B 66 E0 85 7F 64 52 [15:03:06]GetLastDocTimeStamp 1713106454 [15:03:06]current date 1713106987 [15:03:06]FM_GetShiftState [15:03:06]SAM_PROTO_GetShiftState [15:03:06]wFMCommunicate request_size=4 [15:03:06]MH_SAM_APDU [15:03:06]CAPDU: 80 13 01 00 [15:03:06]Write to MH i2c: E2 08 00 6D 0A 80 13 01 00 00 00 00 00 F4 [15:03:06]Write i2c OK [15:03:06]MH_I2C_Read... [15:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:06]Read from MH i2c: E2 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 [15:03:06]MH_I2C_Read... [15:03:06]Read from MH i2c: E2 0E 00 6D 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8C [15:03:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:03:06]wFMCommunicate OK [15:03:06]SAM_PROTO_GetShiftState done [15:03:06]FM_GetShiftState done [15:03:06]opened in 1713054696 [15:03:06]opened+sec_in_day 1713141096 [15:03:06]quantity*price = 100050 [15:03:06]sum+1 = 100052 [15:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 215 14.04.2024 15:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112316 ФПД: 92429365326532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150307&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112316&fm=92429365326532&tin=02508201610067®Number=0000000000094237&sum=100000 [15:03:08]StoreToDocumentArchive [15:03:08]shift 357 fd 112316 [15:03:08]save to /storage/0357/doc_00112316 [15:03:08]save last doc name /storage/0357/doc_00112316 to /storage/kkm_last_doc_name [15:03:08]save OK [15:03:08]Clear old archive folders... [15:03:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:08]tlvbuf is 0011B8B0 [15:03:08]SAM_PROTO_ClearQueue [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 09 00 00 [15:03:08]Write to MH i2c: E2 08 00 7A 0A 80 09 00 00 00 00 00 00 F6 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 7A 0A 00 90 00 F8 [15:03:08]RAPDU: 90 00 [15:03:08]wFMCommunicate OK [15:03:08]SAM_PROTO_ClearQueue done [15:03:08]KKMCreateOFDPacket [15:03:08]OFDProtocolAddRootSTLVToBuf [15:03:08]FM_MakeSignedData [15:03:08]FM_MakeSignedData [15:03:08]SAM_PROTO_SignData [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 0D 01 02 [15:03:08]Write to MH i2c: E2 08 00 7B 0A 80 0D 01 02 00 00 00 00 FE [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 7B 0A 00 90 00 F9 [15:03:08]RAPDU: 90 00 [15:03:08]wFMCommunicate OK [15:03:08]wFMCommunicate request_size=255 [15:03:08]MH_SAM_APDU [15:03: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 D7 00 00 00 F4 03 04 00 2B F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BC B6 01 00 35 04 06 00 54 [15:03:08]Write to MH i2c: E2 02 01 7C 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 D7 00 00 00 F4 03 04 00 2B F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BC B6 01 00 35 04 06 00 54 00 00 AB [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 7C 0A 00 90 00 FA [15:03:08]RAPDU: 90 00 [15:03:08]wFMCommunicate OK [15:03:08]wFMCommunicate request_size=10 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 0D 02 02 05 10 63 7C B2 C4 [15:03:08]Write to MH i2c: E2 0D 00 7D 0A 80 0D 02 02 05 00 10 63 7C B2 C4 00 00 70 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 03 00 7D 0A 00 90 00 FB [15:03:08]RAPDU: 90 00 [15:03:08]wFMCommunicate OK [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 0D 03 02 [15:03:08]Write to MH i2c: E2 08 00 7E 0A 80 0D 03 02 00 00 00 00 03 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 0B 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 0B 00 7E 0A 00 D7 5B 69 A4 4C 2B 65 9B 90 00 BA [15:03:08]RAPDU: D7 5B 69 A4 4C 2B 65 9B 90 00 [15:03:08]wFMCommunicate OK [15:03:08]SAM_PROTO_SignData done [15:03:08]FM_MakeSignedData done [15:03:08]CreateOFDProtocolMessage [15:03:08]wFMCommunicate request_size=4 [15:03:08]MH_SAM_APDU [15:03:08]CAPDU: 80 11 00 00 [15:03:08]Write to MH i2c: E2 08 00 7F 0A 80 11 00 00 00 00 00 00 03 [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:08]Read from MH i2c: E2 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 17 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: E2 17 00 7F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 54 [15:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:03:08]wFMCommunicate OK [15:03:08]CreateOFDProtocolMessage done [15:03:08]OFDSenderStorePacket 112316 [15:03:08]StoreOFDPacket docnum=112316 [15:03:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F9 58 07 01 3E 33 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 3C 00 00 00 00 00 37 04 06 00 1E 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 D7 00 00 00 F4 03 04 00 2B F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BC B6 01 00 35 04 06 00 54 10 63 7C B2 C4 D7 5B 69 A4 4C 2B 65 9B [15:03:08]CheckFolder [15:03:08]dirname=/storage/ofd_packets [15:03:08]CheckFolder done [15:03:08]ProducePacketName [15:03:08]name=ofd_packets/00112316 [15:03:08]NVStorageSaveData ofd_packets/00112316 [15:03:08]File name is /storage/ofd_packets/00112316 [15:03:08]Write 301 bytes [15:03:08]NVStorageSaveData done [15:03:08]OFDSenderStorePacket done [15:03:08]KKMCreateOFDPacket done [15:03:08]NVStorageSaveData kkm_last_timestamp [15:03:08]File name is /storage/kkm_last_timestamp [15:03:08]Write 4 bytes [15:03:08]NVStorageSaveData done [15:03:08]ExternCall_PrintAddStr [15:03:08]wPrintStart [15:03:08]Write to MH i2c: 01 00 00 80 0A 8A [15:03:08]Write i2c OK [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 07 00 [15:03:08]MH_I2C_Read... [15:03:08]Read from MH i2c: 01 07 00 80 0A 00 00 00 00 00 FF 0F 9F [15:03:08]RasterBufferAndPrint [15:03:08]line Счет N : (1)48627 [15:03:08]line ИНН: 02508201610067 [15:03:08]line Контрольно-Кассовый Чек [15:03:08]line ПРОДАЖА [15:03:08]line ТРК (МРК, ГНК) : 42 [15:03:08]line Товар: 2710124130 [15:03:08]line Аи-92-К-5 [15:03:08]line 15.560 * 64.30 [15:03:08]line = 1000.51 [15:03:08]line НДС 12% НСП 1% [15:03:08]line > о реализуемом товаре [15:03:08]line ОКРУГЛЕНИЕ: -0.51 [15:03:08]line ИТОГО: 1000.00 [15:03:08]line Внесено: 1000.00 [15:03:08]line СДАЧА: 0.00 [15:03:08]line НСП 1% : 8.85 [15:03:08]line НДС 12% : 106.25 [15:03:08]line Наличными: 1000.00 [15:03:08]line Безнал.: 0.00 [15:03:08]line Место: АЗС № 47 "Партнер Нефть" [15:03:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:03:08]line СНО: Общий режим [15:03:08]line Чек 215 14.04.2024 15:03 [15:03:08]line Смена: 357 ФФД: 1.0 [15:03:08]line ЗНМ: 0300000138 [15:03:08]line РНМ: 0000000000094237 [15:03:08]line Версия ККМ: 001 [15:03:08]line ФМ: 0000000000875019 [15:03:08]line ФД: 112316 [15:03:08]line ФПД: 92429365326532 [15:03:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150307&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112316&fm=92429365326532&tin=02508201610067®Number=0000000000094237&sum=100000 [15:03:08]OFD Sender: Processing packet 112316 [packets to send 71, broken 70] [15:03:08]ProducePacketName [15:03:08]name=ofd_packets/00112316 [15:03:08]OFD Sender: To server: pG, [15:03:08]CommunicateWithHost lk.salyk.kg:30040 [15:03:08]ConnectInit lk.salyk.kg [15:03:08]written 0, free lines is 4095 [15:03:09]Connected sock=10 [15:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F9 58 07 01 3E 33 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 3C 00 00 00 00 00 37 04 06 00 1E 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 D7 00 00 00 F4 03 04 00 2B F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BC B6 01 00 35 04 06 00 54 10 63 7C B2 C4 D7 5B 69 A4 4C 2B 65 9B [15:03:09]Write to MH i2c: 01 00 00 AB 0A B5 [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: 01 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: 01 07 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: 01 07 00 AB 0A 00 00 00 00 00 E4 0C AC [15:03:09]RasterBufferAndPrint [15:03:09]line [15:03:09]line [15:03:09]line [15:03:09]line [15:03:09]line [15:03:09]written 0, free lines is 3306 [15:03:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 83 0C 47 00 A9 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BC B6 01 00 F4 03 04 00 B6 97 1B 66 B6 04 01 00 00 30 E4 54 5F 8A D7 9A 9E [15:03:09]CommunicateWithHost err = 0 [15:03:09]CheckOFDResponse [15:03:09]1017 (14) - 77093643461234 [15:03:09]1041 (16) - 0000000000875019 [15:03:09]1040 (4) - 112316 [15:03:09]1012 (4) - 14.04.2024 08:45 [15:03:09]1206 (1) - 0 [15:03:09]OFD Sender: Remove packet 112316 [15:03:09]ProducePacketName [15:03:09]name=ofd_packets/00112316 [15:03:09]NVStorageDeleteData [15:03:09]MH_Cut [15:03:09]Write to MH i2c: D1 01 00 B2 0A 01 8E [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: D1 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: D1 01 00 [15:03:09]MH_I2C_Read... [15:03:09]Read from MH i2c: D1 01 00 B2 0A 00 8D [15:03:09]Write to MH i2c: 01 00 00 B3 0A BD [15:03:09]Write i2c OK [15:03:09]MH_I2C_Read... [15:03:09]OFD Sender: No OFD packet to send [15:03:10]*** Cut start [15:03:10]*** Partial cut [15:03:10]*** CUTSNS_PIN = 1 [15:03:10]*** CUTSNS_PIN = 0 [15:03:10]*** Brake cut motor [15:03:10]Read from MH i2c: 01 [15:03:10]MH_I2C_Read... [15:03:10]*** Stop cut motor [15:03:10]*** Cut end [15:03:10]Read from MH i2c: 01 07 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: 01 07 00 B3 0A 00 00 00 00 00 FF 0F D2 [15:03:10]process_action close_receipt done [15:03:10]requested_data is exist [15:03:10]produce_requested_data [15:03:10]requested_item fm.sn is exist - process it [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 11 00 00 [15:03:10]Write to MH i2c: E2 08 00 B4 0A 80 11 00 00 00 00 00 00 38 [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 17 00 B4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [15:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:03:10]wFMCommunicate OK [15:03:10]requested_item fd.num is exist - process it [15:03:10]SAM_PROTO_GetFieldsCounters [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 13 00 00 [15:03:10]Write to MH i2c: E2 08 00 B5 0A 80 13 00 00 00 00 00 00 3B [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:10]Read from MH i2c: E2 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 62 00 [15:03:10]MH_I2C_Read... [15:03:10]Read from MH i2c: E2 62 00 B5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:03:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:10]wFMCommunicate OK [15:03:10]SAM_PROTO_GetFieldsCounters done [15:03:10]requested_item shift.num is exist - process it [15:03:10]requested_item shift.opened is exist - process it [15:03:10]req_shift_opened [15:03:10]FM_GetShiftState [15:03:10]SAM_PROTO_GetShiftState [15:03:10]wFMCommunicate request_size=4 [15:03:10]MH_SAM_APDU [15:03:10]CAPDU: 80 13 01 00 [15:03:10]Write to MH i2c: E2 08 00 B6 0A 80 13 01 00 00 00 00 00 3D [15:03:10]Write i2c OK [15:03:10]MH_I2C_Read... [15:03:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:11]Read from MH i2c: E2 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: E2 0E 00 [15:03:11]MH_I2C_Read... [15:03:11]Read from MH i2c: E2 0E 00 B6 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [15:03:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:03:11]wFMCommunicate OK [15:03:11]SAM_PROTO_GetShiftState done [15:03:11]FM_GetShiftState done [15:03:11]req_shift_opened done [15:03:11]requested_item shift.open_date is exist - process it [15:03:11]req_shift_open_date [15:03:11]req_shift_open_date done [15:03:11]produce_requested_data done [15:03:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112316,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:03:11]process_action_free close_receipt [15:03:11]json_value_free [15:03:11]json_value_free done [15:03:11]process_json_proto returns [15:03:11]Send response to host [15:03:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112316,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:03:11]free response buf [15:03:11]execute_script done [15:03:11]execute_script returns [15:03:11]free content buf [15:03:11]Sock 9.Close socket [15:03:11]Sock 9.Thread stoped [15:03:14]OFD Sender: No OFD packet to send [15:03:19]OFD Sender: No OFD packet to send [15:03:24]OFD Sender: No OFD packet to send [15:03:29]OFD Sender: No OFD packet to send [15:03:34]OFD Sender: No OFD packet to send [15:03:39]OFD Sender: No OFD packet to send [15:03:42]accept exits with 8 [15:03:42]New connection [15:03:42]New thread 3066682724 created [15:03:42]Thread 3066826084 joined [15:03:42]Waiting for new connection... [15:03:42] Sock 8.Parse request [15:03:42]Sock 8.Check first char [15:03:42]Sock 8.First char is OK [15:03:42]request: POST /json_proto HTTP/1.0 [15:03:42]Method: POST [15:03:42]URL: /json_proto [15:03:42]Method is POST - this is cgi request [15:03:42]url: /json_proto [15:03:42]query_string will be loaded in cgi processing [15:03:42]execute_cgi json_proto POST (null) [15:03:42]execute_cgi path=json_proto method=POST [15:03:42]POST find Content-Length [15:03:42]Host: 172.17.96.197:8080 [15:03:42]Content-Length: 1160 [15:03:42]Content-Type: application/json [15:03:42] [15:03:42]POST finish read [15:03:42]Found Content-Length = 1160 [15:03: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48628\u000A14.04.2024 14:43\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 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3824663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:42]execute_script... [15:03: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48628\u000A14.04.2024 14:43\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 10.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 643.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3824663\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:42]POST & json_proto [15:03:42]process_json_proto [15:03:42]json parsed OK: [15:03:42]protocol is kg_v1.0 [15:03:42]action value=print_text [15:03:42]process_action print_text [15:03:42]cmd_print_text [15:03:42]ExternCall_PrintAddStr [15:03:42]wPrintStart [15:03:42]Write to MH i2c: 01 00 00 B7 0A C1 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [15:03:42]RasterBufferAndPrint [15:03:42]line *****ТОВАРНЫЙ ЧЕК***** [15:03:42]line АЗС 47 [15:03:42]line Партнер нефть [15:03:42]line 02508201610067 [15:03:42]line Кассир : Таалайбек к. П. [15:03:42]line Счет N : (1)48628 [15:03:42]line 14.04.2024 14:43 [15:03:42]line ПРОДАЖА [15:03:42]line ТРК (МРК, ГНК): 32 [15:03:42]line Вид ГСМ : 2710124130 [15:03:42]line Аи-92-К-5 [15:03:42]line 10.000 x 64.30 [15:03:42]line ИТОГ: 643.00 [15:03:42]line Тип оплаты: Талоны: Талоны [15:03:42]line 3824663 [15:03:42]line ______________________ [15:03:42]line (подпись) [15:03:42]written 0, free lines is 4095 [15:03:42]Write to MH i2c: 01 00 00 CB 0A D5 [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: 01 07 00 CB 0A 00 00 00 00 00 0D 0E F7 [15:03:42]RasterBufferAndPrint [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]line [15:03:42]written 0, free lines is 3599 [15:03:42]MH_Cut [15:03:42]Write to MH i2c: D1 01 00 D2 0A 01 AE [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 01 00 [15:03:42]MH_I2C_Read... [15:03:42]Read from MH i2c: D1 01 00 D2 0A 00 AD [15:03:42]Write to MH i2c: 01 00 00 D3 0A DD [15:03:42]Write i2c OK [15:03:42]MH_I2C_Read... [15:03:43]*** Cut start [15:03:43]*** Partial cut [15:03:43]*** CUTSNS_PIN = 1 [15:03:43]*** CUTSNS_PIN = 0 [15:03:43]*** Brake cut motor [15:03:43]Read from MH i2c: 01 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: 01 07 00 [15:03:43]MH_I2C_Read... [15:03:43]*** Stop cut motor [15:03:43]*** Cut end [15:03:43]Read from MH i2c: 01 07 00 D3 0A 00 00 00 00 00 FF 0F F2 [15:03:43]process_action print_text done [15:03:43]requested_data is exist [15:03:43]produce_requested_data [15:03:43]requested_item fm.sn is exist - process it [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 11 00 00 [15:03:43]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 17 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [15:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:03:43]wFMCommunicate OK [15:03:43]requested_item fd.num is exist - process it [15:03:43]SAM_PROTO_GetFieldsCounters [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 13 00 00 [15:03:43]Write to MH i2c: E2 08 00 D5 0A 80 13 00 00 00 00 00 00 5B [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 62 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 62 00 D5 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [15:03:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:03:43]wFMCommunicate OK [15:03:43]SAM_PROTO_GetFieldsCounters done [15:03:43]requested_item shift.num is exist - process it [15:03:43]requested_item shift.opened is exist - process it [15:03:43]req_shift_opened [15:03:43]FM_GetShiftState [15:03:43]SAM_PROTO_GetShiftState [15:03:43]wFMCommunicate request_size=4 [15:03:43]MH_SAM_APDU [15:03:43]CAPDU: 80 13 01 00 [15:03:43]Write to MH i2c: E2 08 00 D6 0A 80 13 01 00 00 00 00 00 5D [15:03:43]Write i2c OK [15:03:43]MH_I2C_Read... [15:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:43]Read from MH i2c: E2 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 0E 00 [15:03:43]MH_I2C_Read... [15:03:43]Read from MH i2c: E2 0E 00 D6 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F5 [15:03:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:03:43]wFMCommunicate OK [15:03:43]SAM_PROTO_GetShiftState done [15:03:43]FM_GetShiftState done [15:03:43]req_shift_opened done [15:03:43]requested_item shift.open_date is exist - process it [15:03:43]req_shift_open_date [15:03:43]req_shift_open_date done [15:03:43]produce_requested_data done [15:03:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112316,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:03:43]process_action_free print_text [15:03:43]json_value_free [15:03:43]json_value_free done [15:03:43]process_json_proto returns [15:03:43]Send response to host [15:03:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112316,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:03:43]free response buf [15:03:43]execute_script done [15:03:43]execute_script returns [15:03:43]free content buf [15:03:43]Sock 8.Close socket [15:03:43]Sock 8.Thread stoped [15:03:44]OFD Sender: No OFD packet to send [15:03:49]OFD Sender: No OFD packet to send [15:03:54]OFD Sender: No OFD packet to send [15:03:59]OFD Sender: No OFD packet to send [15:04:04]OFD Sender: No OFD packet to send [15:04:06]accept exits with 10 [15:04:06]New connection [15:04:06]New thread 3066826084 created [15:04:06]Thread 3066682724 joined [15:04:06]Waiting for new connection... [15:04:06] Sock 10.Parse request [15:04:06]Sock 10.Check first char [15:04:06]Sock 10.First char is OK [15:04:06]request: POST /json_proto HTTP/1.0 [15:04:06]Method: POST [15:04:06]URL: /json_proto [15:04:06]Method is POST - this is cgi request [15:04:06]url: /json_proto [15:04:06]query_string will be loaded in cgi processing [15:04:06]execute_cgi json_proto POST (null) [15:04:06]execute_cgi path=json_proto method=POST [15:04:06]POST find Content-Length [15:04:06]Host: 172.17.96.197:8080 [15:04:06]Content-Length: 677 [15:04:06]Content-Type: application/json [15:04:06] [15:04:06]POST finish read [15:04:06]Found Content-Length = 677 [15:04:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [15:04:06]execute_script... [15:04: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)48629", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [15:04:06]POST & json_proto [15:04:06]process_json_proto [15:04:06]json parsed OK: [15:04:06]protocol is kg_v1.0 [15:04:06]action value=close_receipt [15:04:06]process_action close_receipt [15:04:06]cmd_close_receipt [15:04:06]MH_GetDate [15:04:06]Write to MH i2c: F0 00 00 D7 0A D0 [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: F0 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: F0 09 00 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: F0 09 00 D7 0A 00 67 F0 1B 66 E0 85 7F 64 F9 [15:04:06]GetLastDocTimeStamp 1713106987 [15:04:06]current date 1713107047 [15:04:06]FM_GetShiftState [15:04:06]SAM_PROTO_GetShiftState [15:04:06]wFMCommunicate request_size=4 [15:04:06]MH_SAM_APDU [15:04:06]CAPDU: 80 13 01 00 [15:04:06]Write to MH i2c: E2 08 00 D8 0A 80 13 01 00 00 00 00 00 5F [15:04:06]Write i2c OK [15:04:06]MH_I2C_Read... [15:04:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:06]Read from MH i2c: E2 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 0E 00 [15:04:06]MH_I2C_Read... [15:04:06]Read from MH i2c: E2 0E 00 D8 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F7 [15:04:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:04:06]wFMCommunicate OK [15:04:06]SAM_PROTO_GetShiftState done [15:04:06]FM_GetShiftState done [15:04:06]opened in 1713054696 [15:04:06]opened+sec_in_day 1713141096 [15:04:06]quantity*price = 65007 [15:04:06]sum+1 = 65008 [15:04:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 216 14.04.2024 15:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112317 ФПД: 120706062746502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150407&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112317&fm=120706062746502&tin=02508201610067®Number=0000000000094237&sum=65000 [15:04:07]StoreToDocumentArchive [15:04:07]shift 357 fd 112317 [15:04:07]save to /storage/0357/doc_00112317 [15:04:07]save last doc name /storage/0357/doc_00112317 to /storage/kkm_last_doc_name [15:04:07]save OK [15:04:07]Clear old archive folders... [15:04:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:07]tlvbuf is 00158B10 [15:04:07]SAM_PROTO_ClearQueue [15:04:07]wFMCommunicate request_size=4 [15:04:07]MH_SAM_APDU [15:04:07]CAPDU: 80 09 00 00 [15:04:07]Write to MH i2c: E2 08 00 E5 0A 80 09 00 00 00 00 00 00 61 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:07]Read from MH i2c: E2 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 03 00 [15:04:07]MH_I2C_Read... [15:04:07]Read from MH i2c: E2 03 00 E5 0A 00 90 00 63 [15:04:07]RAPDU: 90 00 [15:04:07]wFMCommunicate OK [15:04:07]SAM_PROTO_ClearQueue done [15:04:07]KKMCreateOFDPacket [15:04:07]OFDProtocolAddRootSTLVToBuf [15:04:07]FM_MakeSignedData [15:04:07]FM_MakeSignedData [15:04:07]SAM_PROTO_SignData [15:04:07]wFMCommunicate request_size=4 [15:04:07]MH_SAM_APDU [15:04:07]CAPDU: 80 0D 01 02 [15:04:07]Write to MH i2c: E2 08 00 E6 0A 80 0D 01 02 00 00 00 00 69 [15:04:07]Write i2c OK [15:04:07]MH_I2C_Read... [15:04:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 E6 0A 00 90 00 64 [15:04:08]RAPDU: 90 00 [15:04:08]wFMCommunicate OK [15:04:08]wFMCommunicate request_size=255 [15:04:08]MH_SAM_APDU [15:04: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 D8 00 00 00 F4 03 04 00 67 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BD B6 01 00 35 04 06 00 6D [15:04:08]Write to MH i2c: E2 02 01 E7 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 D8 00 00 00 F4 03 04 00 67 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BD B6 01 00 35 04 06 00 6D 00 00 4C [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 E7 0A 00 90 00 65 [15:04:08]RAPDU: 90 00 [15:04:08]wFMCommunicate OK [15:04:08]wFMCommunicate request_size=10 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 0D 02 02 05 C8 11 FE 03 86 [15:04:08]Write to MH i2c: E2 0D 00 E8 0A 80 0D 02 02 05 00 C8 11 FE 03 86 00 00 D6 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 03 00 E8 0A 00 90 00 66 [15:04:08]RAPDU: 90 00 [15:04:08]wFMCommunicate OK [15:04:08]wFMCommunicate request_size=4 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 0D 03 02 [15:04:08]Write to MH i2c: E2 08 00 E9 0A 80 0D 03 02 00 00 00 00 6E [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 0B 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 0B 00 E9 0A 00 06 AC A8 BF AC 87 F9 C9 90 00 7D [15:04:08]RAPDU: 06 AC A8 BF AC 87 F9 C9 90 00 [15:04:08]wFMCommunicate OK [15:04:08]SAM_PROTO_SignData done [15:04:08]FM_MakeSignedData done [15:04:08]CreateOFDProtocolMessage [15:04:08]wFMCommunicate request_size=4 [15:04:08]MH_SAM_APDU [15:04:08]CAPDU: 80 11 00 00 [15:04:08]Write to MH i2c: E2 08 00 EA 0A 80 11 00 00 00 00 00 00 6E [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:08]Read from MH i2c: E2 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 17 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: E2 17 00 EA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BF [15:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:04:08]wFMCommunicate OK [15:04:08]CreateOFDProtocolMessage done [15:04:08]OFDSenderStorePacket 112317 [15:04:08]StoreOFDPacket docnum=112317 [15:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A9 A4 07 01 C2 A2 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 D8 00 00 00 F4 03 04 00 67 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BD B6 01 00 35 04 06 00 6D C8 11 FE 03 86 06 AC A8 BF AC 87 F9 C9 [15:04:08]CheckFolder [15:04:08]dirname=/storage/ofd_packets [15:04:08]CheckFolder done [15:04:08]ProducePacketName [15:04:08]name=ofd_packets/00112317 [15:04:08]NVStorageSaveData ofd_packets/00112317 [15:04:08]File name is /storage/ofd_packets/00112317 [15:04:08]Write 301 bytes [15:04:08]NVStorageSaveData done [15:04:08]OFDSenderStorePacket done [15:04:08]KKMCreateOFDPacket done [15:04:08]NVStorageSaveData kkm_last_timestamp [15:04:08]File name is /storage/kkm_last_timestamp [15:04:08]Write 4 bytes [15:04:08]NVStorageSaveData done [15:04:08]ExternCall_PrintAddStr [15:04:08]wPrintStart [15:04:08]Write to MH i2c: 01 00 00 EB 0A F5 [15:04:08]Write i2c OK [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: 01 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: 01 07 00 [15:04:08]MH_I2C_Read... [15:04:08]Read from MH i2c: 01 07 00 EB 0A 00 00 00 00 00 FF 0F 0A [15:04:08]RasterBufferAndPrint [15:04:08]line Счет N : (1)48629 [15:04:08]line ИНН: 02508201610067 [15:04:08]line Контрольно-Кассовый Чек [15:04:08]line ПРОДАЖА [15:04:08]line ТРК (МРК, ГНК) : 11 [15:04:08]line Товар: 2710124130 [15:04:08]line Аи-92-К-5 [15:04:08]line 10.110 * 64.30 [15:04:08]line = 650.07 [15:04:08]line НДС 12% НСП 1% [15:04:08]line > о реализуемом товаре [15:04:08]line ОКРУГЛЕНИЕ: -0.07 [15:04:08]line ИТОГО: 650.00 [15:04:08]line Внесено: 650.00 [15:04:08]line СДАЧА: 0.00 [15:04:08]line НСП 1% : 5.75 [15:04:08]line НДС 12% : 69.03 [15:04:08]line Наличными: 650.00 [15:04:08]line Безнал.: 0.00 [15:04:08]line Место: АЗС № 47 "Партнер Нефть" [15:04:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:04:08]line СНО: Общий режим [15:04:08]line Чек 216 14.04.2024 15:04 [15:04:08]line Смена: 357 ФФД: 1.0 [15:04:08]line ЗНМ: 0300000138 [15:04:08]line РНМ: 0000000000094237 [15:04:08]line Версия ККМ: 001 [15:04:08]line ФМ: 0000000000875019 [15:04:08]line ФД: 112317 [15:04:08]line ФПД: 120706062746502 [15:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150407&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112317&fm=120706062746502&tin=02508201610067®Number=0000000000094237&sum=65000 [15:04:08]OFD Sender: Processing packet 112317 [packets to send 71, broken 70] [15:04:08]ProducePacketName [15:04:08]name=ofd_packets/00112317 [15:04:08]OFD Sender: To server: pG, [15:04:08]CommunicateWithHost lk.salyk.kg:30040 [15:04:08]ConnectInit lk.salyk.kg [15:04:08]written 0, free lines is 4095 [15:04:08]Connected sock=9 [15:04:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A9 A4 07 01 C2 A2 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 D8 00 00 00 F4 03 04 00 67 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BD B6 01 00 35 04 06 00 6D C8 11 FE 03 86 06 AC A8 BF AC 87 F9 C9 [15:04:09]Write to MH i2c: 01 00 00 16 0B 21 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: 01 07 00 16 0B 00 00 00 00 00 D6 0C 0A [15:04:09]RasterBufferAndPrint [15:04:09]line [15:04:09]line [15:04:09]line [15:04:09]line [15:04:09]line [15:04:09]written 0, free lines is 3289 [15:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A8 F0 47 00 18 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BD B6 01 00 F4 03 04 00 F2 97 1B 66 B6 04 01 00 00 39 5A 1D 0D B5 77 20 BE [15:04:09]CommunicateWithHost err = 0 [15:04:09]CheckOFDResponse [15:04:09]1017 (14) - 77093643461234 [15:04:09]1041 (16) - 0000000000875019 [15:04:09]1040 (4) - 112317 [15:04:09]1012 (4) - 14.04.2024 08:46 [15:04:09]1206 (1) - 0 [15:04:09]OFD Sender: Remove packet 112317 [15:04:09]ProducePacketName [15:04:09]name=ofd_packets/00112317 [15:04:09]NVStorageDeleteData [15:04:09]MH_Cut [15:04:09]Write to MH i2c: D1 01 00 1D 0B 01 FA [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: D1 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: D1 01 00 [15:04:09]MH_I2C_Read... [15:04:09]Read from MH i2c: D1 01 00 1D 0B 00 F9 [15:04:09]Write to MH i2c: 01 00 00 1E 0B 29 [15:04:09]Write i2c OK [15:04:09]MH_I2C_Read... [15:04:09]OFD Sender: No OFD packet to send [15:04:09]*** Cut start [15:04:09]*** Partial cut [15:04:09]*** CUTSNS_PIN = 1 [15:04:10]*** CUTSNS_PIN = 0 [15:04:10]*** Brake cut motor [15:04:10]Read from MH i2c: 01 [15:04:10]MH_I2C_Read... [15:04:10]*** Stop cut motor [15:04:10]*** Cut end [15:04:10]Read from MH i2c: 01 07 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [15:04:10]process_action close_receipt done [15:04:10]requested_data is exist [15:04:10]produce_requested_data [15:04:10]requested_item fm.sn is exist - process it [15:04:10]wFMCommunicate request_size=4 [15:04:10]MH_SAM_APDU [15:04:10]CAPDU: 80 11 00 00 [15:04:10]Write to MH i2c: E2 08 00 1F 0B 80 11 00 00 00 00 00 00 A4 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:10]Read from MH i2c: E2 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 17 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 17 00 1F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F5 [15:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:04:10]wFMCommunicate OK [15:04:10]requested_item fd.num is exist - process it [15:04:10]SAM_PROTO_GetFieldsCounters [15:04:10]wFMCommunicate request_size=4 [15:04:10]MH_SAM_APDU [15:04:10]CAPDU: 80 13 00 00 [15:04:10]Write to MH i2c: E2 08 00 20 0B 80 13 00 00 00 00 00 00 A7 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:10]Read from MH i2c: E2 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 62 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 62 00 20 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:04:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:10]wFMCommunicate OK [15:04:10]SAM_PROTO_GetFieldsCounters done [15:04:10]requested_item shift.num is exist - process it [15:04:10]requested_item shift.opened is exist - process it [15:04:10]req_shift_opened [15:04:10]FM_GetShiftState [15:04:10]SAM_PROTO_GetShiftState [15:04:10]wFMCommunicate request_size=4 [15:04:10]MH_SAM_APDU [15:04:10]CAPDU: 80 13 01 00 [15:04:10]Write to MH i2c: E2 08 00 21 0B 80 13 01 00 00 00 00 00 A9 [15:04:10]Write i2c OK [15:04:10]MH_I2C_Read... [15:04:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:10]Read from MH i2c: E2 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 [15:04:10]MH_I2C_Read... [15:04:10]Read from MH i2c: E2 0E 00 21 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [15:04:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:04:10]wFMCommunicate OK [15:04:10]SAM_PROTO_GetShiftState done [15:04:10]FM_GetShiftState done [15:04:10]req_shift_opened done [15:04:10]requested_item shift.open_date is exist - process it [15:04:10]req_shift_open_date [15:04:10]req_shift_open_date done [15:04:10]produce_requested_data done [15:04:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112317,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:04:10]process_action_free close_receipt [15:04:10]json_value_free [15:04:10]json_value_free done [15:04:10]process_json_proto returns [15:04:10]Send response to host [15:04:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112317,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:04:10]free response buf [15:04:10]execute_script done [15:04:10]execute_script returns [15:04:10]free content buf [15:04:10]Sock 10.Close socket [15:04:10]Sock 10.Thread stoped [15:04:14]OFD Sender: No OFD packet to send [15:04:19]OFD Sender: No OFD packet to send [15:04:24]OFD Sender: No OFD packet to send [15:04:29]OFD Sender: No OFD packet to send [15:04:34]OFD Sender: No OFD packet to send [15:04:39]OFD Sender: No OFD packet to send [15:04:44]OFD Sender: No OFD packet to send [15:04:49]OFD Sender: No OFD packet to send [15:04:54]accept exits with 8 [15:04:54]New connection [15:04:54]New thread 3066682724 created [15:04:54]Thread 3066826084 joined [15:04:54]Waiting for new connection... [15:04:54] Sock 8.Parse request [15:04:54]Sock 8.Check first char [15:04:54]Sock 8.First char is OK [15:04:54]request: POST /json_proto HTTP/1.0 [15:04:54]Method: POST [15:04:54]URL: /json_proto [15:04:54]Method is POST - this is cgi request [15:04:54]url: /json_proto [15:04:54]query_string will be loaded in cgi processing [15:04:54]execute_cgi json_proto POST (null) [15:04:54]execute_cgi path=json_proto method=POST [15:04:54]POST find Content-Length [15:04:54]Host: 172.17.96.197:8080 [15:04:54]Content-Length: 662 [15:04:54]Content-Type: application/json [15:04:54] [15:04:54]POST finish read [15:04:54]Found Content-Length = 662 [15:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48630", "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.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:54]execute_script... [15:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48630", "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.30, "quantity" : 20.000, "sum" : 1286.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "payments": [ { "type": 0, "sum" : 1286.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:54]POST & json_proto [15:04:54]process_json_proto [15:04:54]json parsed OK: [15:04:54]protocol is kg_v1.0 [15:04:54]action value=close_receipt [15:04:54]process_action close_receipt [15:04:54]cmd_close_receipt [15:04:54]MH_GetDate [15:04:54]Write to MH i2c: F0 00 00 22 0B 1C [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: F0 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: F0 09 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: F0 09 00 22 0B 00 97 F0 1B 66 E0 85 7F 64 75 [15:04:54]GetLastDocTimeStamp 1713107047 [15:04:54]current date 1713107095 [15:04:54]FM_GetShiftState [15:04:54]SAM_PROTO_GetShiftState [15:04:54]wFMCommunicate request_size=4 [15:04:54]MH_SAM_APDU [15:04:54]CAPDU: 80 13 01 00 [15:04:54]Write to MH i2c: E2 08 00 23 0B 80 13 01 00 00 00 00 00 AB [15:04:54]Write i2c OK [15:04:54]MH_I2C_Read... [15:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:54]Read from MH i2c: E2 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 0E 00 [15:04:54]MH_I2C_Read... [15:04:54]Read from MH i2c: E2 0E 00 23 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 43 [15:04:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:04:54]wFMCommunicate OK [15:04:54]SAM_PROTO_GetShiftState done [15:04:54]FM_GetShiftState done [15:04:54]opened in 1713054696 [15:04:54]opened+sec_in_day 1713141096 [15:04:54]quantity*price = 128600 [15:04:54]sum+1 = 128601 [15:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1286.00 Внесено: 2000.00 СДАЧА: 714.00 НСП 1% : 11.38 НДС 12% : 136.57 Наличными: 1286.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 217 14.04.2024 15:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112318 ФПД: 53507439418776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150455&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112318&fm=53507439418776&tin=02508201610067®Number=0000000000094237&sum=128600 [15:04:55]StoreToDocumentArchive [15:04:55]shift 357 fd 112318 [15:04:55]save to /storage/0357/doc_00112318 [15:04:55]save last doc name /storage/0357/doc_00112318 to /storage/kkm_last_doc_name [15:04:55]save OK [15:04:55]Clear old archive folders... [15:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:04:55]tlvbuf is 00181D40 [15:04:55]SAM_PROTO_ClearQueue [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 09 00 00 [15:04:55]Write to MH i2c: E2 08 00 30 0B 80 09 00 00 00 00 00 00 AD [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 30 0B 00 90 00 AF [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]SAM_PROTO_ClearQueue done [15:04:55]KKMCreateOFDPacket [15:04:55]OFDProtocolAddRootSTLVToBuf [15:04:55]FM_MakeSignedData [15:04:55]FM_MakeSignedData [15:04:55]SAM_PROTO_SignData [15:04:55]wFMCommunicate request_size=4 [15:04:55]MH_SAM_APDU [15:04:55]CAPDU: 80 0D 01 02 [15:04:55]Write to MH i2c: E2 08 00 31 0B 80 0D 01 02 00 00 00 00 B5 [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:55]Read from MH i2c: E2 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 [15:04:55]MH_I2C_Read... [15:04:55]Read from MH i2c: E2 03 00 31 0B 00 90 00 B0 [15:04:55]RAPDU: 90 00 [15:04:55]wFMCommunicate OK [15:04:55]wFMCommunicate request_size=255 [15:04:55]MH_SAM_APDU [15:04: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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 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 D9 00 00 00 F4 03 04 00 97 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BE B6 01 00 35 04 06 00 30 [15:04:55]Write to MH i2c: E2 02 01 32 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 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 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 D9 00 00 00 F4 03 04 00 97 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BE B6 01 00 35 04 06 00 30 00 00 3F [15:04:55]Write i2c OK [15:04:55]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 03 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 03 00 32 0B 00 90 00 B1 [15:04:56]RAPDU: 90 00 [15:04:56]wFMCommunicate OK [15:04:56]wFMCommunicate request_size=10 [15:04:56]MH_SAM_APDU [15:04:56]CAPDU: 80 0D 02 02 05 AA 2B EB 5D 98 [15:04:56]Write to MH i2c: E2 0D 00 33 0B 80 0D 02 02 05 00 AA 2B EB 5D 98 00 00 77 [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 03 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 03 00 33 0B 00 90 00 B2 [15:04:56]RAPDU: 90 00 [15:04:56]wFMCommunicate OK [15:04:56]wFMCommunicate request_size=4 [15:04:56]MH_SAM_APDU [15:04:56]CAPDU: 80 0D 03 02 [15:04:56]Write to MH i2c: E2 08 00 34 0B 80 0D 03 02 00 00 00 00 BA [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0B 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 0B 00 34 0B 00 CF 5F 28 6F 47 5B 4A 4F 90 00 BB [15:04:56]RAPDU: CF 5F 28 6F 47 5B 4A 4F 90 00 [15:04:56]wFMCommunicate OK [15:04:56]SAM_PROTO_SignData done [15:04:56]FM_MakeSignedData done [15:04:56]CreateOFDProtocolMessage [15:04:56]wFMCommunicate request_size=4 [15:04:56]MH_SAM_APDU [15:04:56]CAPDU: 80 11 00 00 [15:04:56]Write to MH i2c: E2 08 00 35 0B 80 11 00 00 00 00 00 00 BA [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:56]Read from MH i2c: E2 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 17 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: E2 17 00 35 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0B [15:04:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:04:56]wFMCommunicate OK [15:04:56]CreateOFDProtocolMessage done [15:04:56]OFDSenderStorePacket 112318 [15:04:56]StoreOFDPacket docnum=112318 [15:04:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6D 48 07 01 E3 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 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 D9 00 00 00 F4 03 04 00 97 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BE B6 01 00 35 04 06 00 30 AA 2B EB 5D 98 CF 5F 28 6F 47 5B 4A 4F [15:04:56]CheckFolder [15:04:56]dirname=/storage/ofd_packets [15:04:56]CheckFolder done [15:04:56]ProducePacketName [15:04:56]name=ofd_packets/00112318 [15:04:56]NVStorageSaveData ofd_packets/00112318 [15:04:56]File name is /storage/ofd_packets/00112318 [15:04:56]Write 301 bytes [15:04:56]NVStorageSaveData done [15:04:56]OFDSenderStorePacket done [15:04:56]KKMCreateOFDPacket done [15:04:56]NVStorageSaveData kkm_last_timestamp [15:04:56]File name is /storage/kkm_last_timestamp [15:04:56]Write 4 bytes [15:04:56]NVStorageSaveData done [15:04:56]ExternCall_PrintAddStr [15:04:56]wPrintStart [15:04:56]Write to MH i2c: 01 00 00 36 0B 41 [15:04:56]Write i2c OK [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 07 00 [15:04:56]MH_I2C_Read... [15:04:56]Read from MH i2c: 01 07 00 36 0B 00 00 00 00 00 FF 0F 56 [15:04:56]RasterBufferAndPrint [15:04:56]line Счет N : (1)48630 [15:04:56]line ИНН: 02508201610067 [15:04:56]line Контрольно-Кассовый Чек [15:04:56]line ПРОДАЖА [15:04:56]line ТРК (МРК, ГНК) : 42 [15:04:56]line Товар: 2710124130 [15:04:56]line Аи-92-К-5 [15:04:56]line 20.000 * 64.30 [15:04:56]line = 1286.00 [15:04:56]line НДС 12% НСП 1% [15:04:56]line > о реализуемом товаре [15:04:56]line ИТОГО: 1286.00 [15:04:56]line Внесено: 2000.00 [15:04:56]line СДАЧА: 714.00 [15:04:56]line НСП 1% : 11.38 [15:04:56]line НДС 12% : 136.57 [15:04:56]line Наличными: 1286.00 [15:04:56]line Безнал.: 0.00 [15:04:56]line Место: АЗС № 47 "Партнер Нефть" [15:04:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:04:56]line СНО: Общий режим [15:04:56]line Чек 217 14.04.2024 15:04 [15:04:56]line Смена: 357 ФФД: 1.0 [15:04:56]line ЗНМ: 0300000138 [15:04:56]line РНМ: 0000000000094237 [15:04:56]line Версия ККМ: 001 [15:04:56]line ФМ: 0000000000875019 [15:04:56]line ФД: 112318 [15:04:56]line ФПД: 53507439418776 [15:04:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150455&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112318&fm=53507439418776&tin=02508201610067®Number=0000000000094237&sum=128600 [15:04:56]OFD Sender: Processing packet 112318 [packets to send 71, broken 70] [15:04:56]ProducePacketName [15:04:56]name=ofd_packets/00112318 [15:04:56]OFD Sender: To server: pG, [15:04:56]CommunicateWithHost lk.salyk.kg:30040 [15:04:56]ConnectInit lk.salyk.kg [15:04:56]written 0, free lines is 4095 [15:04:56]Connected sock=10 [15:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6D 48 07 01 E3 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 58 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 59 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 D9 00 00 00 F4 03 04 00 97 F0 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BE B6 01 00 35 04 06 00 30 AA 2B EB 5D 98 CF 5F 28 6F 47 5B 4A 4F [15:04:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 81 F7 47 00 54 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BE B6 01 00 F4 03 04 00 22 98 1B 66 B6 04 01 00 00 EA 2E 20 45 BB 87 90 6C [15:04:57]CommunicateWithHost err = 0 [15:04:57]CheckOFDResponse [15:04:57]1017 (14) - 77093643461234 [15:04:57]1041 (16) - 0000000000875019 [15:04:57]1040 (4) - 112318 [15:04:57]1012 (4) - 14.04.2024 08:47 [15:04:57]1206 (1) - 0 [15:04:57]OFD Sender: Remove packet 112318 [15:04:57]ProducePacketName [15:04:57]name=ofd_packets/00112318 [15:04:57]NVStorageDeleteData [15:04:57]Write to MH i2c: 01 00 00 60 0B 6B [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: 01 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: 01 07 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 E9 0C 67 [15:04:57]RasterBufferAndPrint [15:04:57]line [15:04:57]line [15:04:57]line [15:04:57]line [15:04:57]line [15:04:57]written 0, free lines is 3311 [15:04:57]MH_Cut [15:04:57]Write to MH i2c: D1 01 00 67 0B 01 44 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: D1 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: D1 01 00 [15:04:57]MH_I2C_Read... [15:04:57]Read from MH i2c: D1 01 00 67 0B 00 43 [15:04:57]Write to MH i2c: 01 00 00 68 0B 73 [15:04:57]Write i2c OK [15:04:57]MH_I2C_Read... [15:04:57]OFD Sender: No OFD packet to send [15:04:57]*** Cut start [15:04:57]*** Partial cut [15:04:57]*** CUTSNS_PIN = 1 [15:04:57]*** CUTSNS_PIN = 0 [15:04:58]*** Brake cut motor [15:04:58]Read from MH i2c: 01 [15:04:58]MH_I2C_Read... [15:04:58]*** Stop cut motor [15:04:58]*** Cut end [15:04:58]Read from MH i2c: 01 07 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: 01 07 00 68 0B 00 00 00 00 00 FF 0F 88 [15:04:58]process_action close_receipt done [15:04:58]requested_data is exist [15:04:58]produce_requested_data [15:04:58]requested_item fm.sn is exist - process it [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 11 00 00 [15:04:58]Write to MH i2c: E2 08 00 69 0B 80 11 00 00 00 00 00 00 EE [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 17 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 17 00 69 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3F [15:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:04:58]wFMCommunicate OK [15:04:58]requested_item fd.num is exist - process it [15:04:58]SAM_PROTO_GetFieldsCounters [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 13 00 00 [15:04:58]Write to MH i2c: E2 08 00 6A 0B 80 13 00 00 00 00 00 00 F1 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 62 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 62 00 6A 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [15:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_GetFieldsCounters done [15:04:58]requested_item shift.num is exist - process it [15:04:58]requested_item shift.opened is exist - process it [15:04:58]req_shift_opened [15:04:58]FM_GetShiftState [15:04:58]SAM_PROTO_GetShiftState [15:04:58]wFMCommunicate request_size=4 [15:04:58]MH_SAM_APDU [15:04:58]CAPDU: 80 13 01 00 [15:04:58]Write to MH i2c: E2 08 00 6B 0B 80 13 01 00 00 00 00 00 F3 [15:04:58]Write i2c OK [15:04:58]MH_I2C_Read... [15:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:58]Read from MH i2c: E2 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0E 00 [15:04:58]MH_I2C_Read... [15:04:58]Read from MH i2c: E2 0E 00 6B 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8B [15:04:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:04:58]wFMCommunicate OK [15:04:58]SAM_PROTO_GetShiftState done [15:04:58]FM_GetShiftState done [15:04:58]req_shift_opened done [15:04:58]requested_item shift.open_date is exist - process it [15:04:58]req_shift_open_date [15:04:58]req_shift_open_date done [15:04:58]produce_requested_data done [15:04:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112318,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:04:58]process_action_free close_receipt [15:04:58]json_value_free [15:04:58]json_value_free done [15:04:58]process_json_proto returns [15:04:58]Send response to host [15:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112318,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:04:58]free response buf [15:04:58]execute_script done [15:04:58]execute_script returns [15:04:58]free content buf [15:04:58]Sock 8.Close socket [15:04:58]Sock 8.Thread stoped [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:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]accept exits with 9 [15:07:37]New connection [15:07:37]New thread 3066826084 created [15:07:37]Thread 3066682724 joined [15:07:37]Waiting for new connection... [15:07:37] Sock 9.Parse request [15:07:37]Sock 9.Check first char [15:07:37]Sock 9.First char is OK [15:07:37]request: POST /json_proto HTTP/1.0 [15:07:37]Method: POST [15:07:37]URL: /json_proto [15:07:37]Method is POST - this is cgi request [15:07:37]url: /json_proto [15:07:37]query_string will be loaded in cgi processing [15:07:37]execute_cgi json_proto POST (null) [15:07:37]execute_cgi path=json_proto method=POST [15:07:37]POST find Content-Length [15:07:37]Host: 172.17.96.197:8080 [15:07:37]Content-Length: 676 [15:07:37]Content-Type: application/json [15:07:37] [15:07:37]POST finish read [15:07:37]Found Content-Length = 676 [15:07:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48631", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:07:37]execute_script... [15:07: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)48631", "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.30, "quantity" : 7.780, "sum" : 500.25, "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:07:37]POST & json_proto [15:07:37]process_json_proto [15:07:37]json parsed OK: [15:07:37]protocol is kg_v1.0 [15:07:37]action value=close_receipt [15:07:37]process_action close_receipt [15:07:37]cmd_close_receipt [15:07:37]MH_GetDate [15:07:37]Write to MH i2c: F0 00 00 6C 0B 66 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: F0 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: F0 09 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: F0 09 00 6C 0B 00 39 F1 1B 66 E0 85 7F 64 62 [15:07:37]GetLastDocTimeStamp 1713107095 [15:07:37]current date 1713107257 [15:07:37]FM_GetShiftState [15:07:37]SAM_PROTO_GetShiftState [15:07:37]wFMCommunicate request_size=4 [15:07:37]MH_SAM_APDU [15:07:37]CAPDU: 80 13 01 00 [15:07:37]Write to MH i2c: E2 08 00 6D 0B 80 13 01 00 00 00 00 00 F5 [15:07:37]Write i2c OK [15:07:37]MH_I2C_Read... [15:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:37]Read from MH i2c: E2 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0E 00 [15:07:37]MH_I2C_Read... [15:07:37]Read from MH i2c: E2 0E 00 6D 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8D [15:07:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:07:37]wFMCommunicate OK [15:07:37]SAM_PROTO_GetShiftState done [15:07:37]FM_GetShiftState done [15:07:37]opened in 1713054696 [15:07:37]opened+sec_in_day 1713141096 [15:07:37]quantity*price = 50025 [15:07:37]sum+1 = 50026 [15:07:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 218 14.04.2024 15:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112319 ФПД: 168397668639567 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150738&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112319&fm=168397668639567&tin=02508201610067®Number=0000000000094237&sum=50000 [15:07:38]StoreToDocumentArchive [15:07:38]shift 357 fd 112319 [15:07:38]save to /storage/0357/doc_00112319 [15:07:38]save last doc name /storage/0357/doc_00112319 to /storage/kkm_last_doc_name [15:07:38]save OK [15:07:38]Clear old archive folders... [15:07:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:38]tlvbuf is 001346F0 [15:07:38]SAM_PROTO_ClearQueue [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 09 00 00 [15:07:38]Write to MH i2c: E2 08 00 7A 0B 80 09 00 00 00 00 00 00 F7 [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 03 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 03 00 7A 0B 00 90 00 F9 [15:07:38]RAPDU: 90 00 [15:07:38]wFMCommunicate OK [15:07:38]SAM_PROTO_ClearQueue done [15:07:38]KKMCreateOFDPacket [15:07:38]OFDProtocolAddRootSTLVToBuf [15:07:38]FM_MakeSignedData [15:07:38]FM_MakeSignedData [15:07:38]SAM_PROTO_SignData [15:07:38]wFMCommunicate request_size=4 [15:07:38]MH_SAM_APDU [15:07:38]CAPDU: 80 0D 01 02 [15:07:38]Write to MH i2c: E2 08 00 7B 0B 80 0D 01 02 00 00 00 00 FF [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:38]Read from MH i2c: E2 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 03 00 [15:07:38]MH_I2C_Read... [15:07:38]Read from MH i2c: E2 03 00 7B 0B 00 90 00 FA [15:07:38]RAPDU: 90 00 [15:07:38]wFMCommunicate OK [15:07:38]wFMCommunicate request_size=255 [15:07:38]MH_SAM_APDU [15:07: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 DA 00 00 00 F4 03 04 00 3A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BF B6 01 00 35 04 06 00 99 [15:07:38]Write to MH i2c: E2 02 01 7C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 DA 00 00 00 F4 03 04 00 3A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BF B6 01 00 35 04 06 00 99 00 00 9D [15:07:38]Write i2c OK [15:07:38]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 7C 0B 00 90 00 FB [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]wFMCommunicate request_size=10 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 02 02 05 28 23 38 63 4F [15:07:39]Write to MH i2c: E2 0D 00 7D 0B 80 0D 02 02 05 00 28 23 38 63 4F 00 00 41 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 03 00 7D 0B 00 90 00 FC [15:07:39]RAPDU: 90 00 [15:07:39]wFMCommunicate OK [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 0D 03 02 [15:07:39]Write to MH i2c: E2 08 00 7E 0B 80 0D 03 02 00 00 00 00 04 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 0B 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 0B 00 7E 0B 00 0F 23 98 E1 C3 8C F3 33 90 00 25 [15:07:39]RAPDU: 0F 23 98 E1 C3 8C F3 33 90 00 [15:07:39]wFMCommunicate OK [15:07:39]SAM_PROTO_SignData done [15:07:39]FM_MakeSignedData done [15:07:39]CreateOFDProtocolMessage [15:07:39]wFMCommunicate request_size=4 [15:07:39]MH_SAM_APDU [15:07:39]CAPDU: 80 11 00 00 [15:07:39]Write to MH i2c: E2 08 00 7F 0B 80 11 00 00 00 00 00 00 04 [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:39]Read from MH i2c: E2 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 17 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: E2 17 00 7F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [15:07:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:07:39]wFMCommunicate OK [15:07:39]CreateOFDProtocolMessage done [15:07:39]OFDSenderStorePacket 112319 [15:07:39]StoreOFDPacket docnum=112319 [15:07:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 EB 07 01 E2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 DA 00 00 00 F4 03 04 00 3A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BF B6 01 00 35 04 06 00 99 28 23 38 63 4F 0F 23 98 E1 C3 8C F3 33 [15:07:39]CheckFolder [15:07:39]dirname=/storage/ofd_packets [15:07:39]CheckFolder done [15:07:39]ProducePacketName [15:07:39]name=ofd_packets/00112319 [15:07:39]NVStorageSaveData ofd_packets/00112319 [15:07:39]File name is /storage/ofd_packets/00112319 [15:07:39]Write 301 bytes [15:07:39]NVStorageSaveData done [15:07:39]OFDSenderStorePacket done [15:07:39]KKMCreateOFDPacket done [15:07:39]NVStorageSaveData kkm_last_timestamp [15:07:39]File name is /storage/kkm_last_timestamp [15:07:39]Write 4 bytes [15:07:39]NVStorageSaveData done [15:07:39]ExternCall_PrintAddStr [15:07:39]wPrintStart [15:07:39]Write to MH i2c: 01 00 00 80 0B 8B [15:07:39]Write i2c OK [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: 01 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: 01 07 00 [15:07:39]MH_I2C_Read... [15:07:39]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 FF 0F A0 [15:07:39]RasterBufferAndPrint [15:07:39]line Счет N : (1)48631 [15:07:39]line ИНН: 02508201610067 [15:07:39]line Контрольно-Кассовый Чек [15:07:39]line ПРОДАЖА [15:07:39]line ТРК (МРК, ГНК) : 32 [15:07:39]line Товар: 2710124130 [15:07:39]line Аи-92-К-5 [15:07:39]line 7.780 * 64.30 [15:07:39]line = 500.25 [15:07:39]line НДС 12% НСП 1% [15:07:39]line > о реализуемом товаре [15:07:39]line ОКРУГЛЕНИЕ: -0.25 [15:07:39]line ИТОГО: 500.00 [15:07:39]line Внесено: 500.00 [15:07:39]line СДАЧА: 0.00 [15:07:39]line НСП 1% : 4.43 [15:07:39]line НДС 12% : 53.12 [15:07:39]line Наличными: 500.00 [15:07:39]line Безнал.: 0.00 [15:07:39]line Место: АЗС № 47 "Партнер Нефть" [15:07:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:07:39]line СНО: Общий режим [15:07:39]line Чек 218 14.04.2024 15:07 [15:07:39]line Смена: 357 ФФД: 1.0 [15:07:39]line ЗНМ: 0300000138 [15:07:39]line РНМ: 0000000000094237 [15:07:39]line Версия ККМ: 001 [15:07:39]line ФМ: 0000000000875019 [15:07:39]line ФД: 112319 [15:07:39]line ФПД: 168397668639567 [15:07:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150738&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112319&fm=168397668639567&tin=02508201610067®Number=0000000000094237&sum=50000 [15:07:39]OFD Sender: Processing packet 112319 [packets to send 71, broken 70] [15:07:39]ProducePacketName [15:07:39]name=ofd_packets/00112319 [15:07:39]OFD Sender: To server: pG, [15:07:39]CommunicateWithHost lk.salyk.kg:30040 [15:07:39]ConnectInit lk.salyk.kg [15:07:39]written 0, free lines is 4095 [15:07:39]Connected sock=10 [15:07:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 EB 07 01 E2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 DA 00 00 00 F4 03 04 00 3A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BF B6 01 00 35 04 06 00 99 28 23 38 63 4F 0F 23 98 E1 C3 8C F3 33 [15:07:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 81 AB 47 00 9E 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 BF B6 01 00 F4 03 04 00 C5 98 1B 66 B6 04 01 00 00 50 A6 39 0D 70 6A AD BB [15:07:40]CommunicateWithHost err = 0 [15:07:40]CheckOFDResponse [15:07:40]1017 (14) - 77093643461234 [15:07:40]1041 (16) - 0000000000875019 [15:07:40]1040 (4) - 112319 [15:07:40]1012 (4) - 14.04.2024 08:50 [15:07:40]1206 (1) - 0 [15:07:40]OFD Sender: Remove packet 112319 [15:07:40]ProducePacketName [15:07:40]name=ofd_packets/00112319 [15:07:40]NVStorageDeleteData [15:07:40]Write to MH i2c: 01 00 00 AB 0B B6 [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: 01 07 00 AB 0B 00 00 00 00 00 E6 0C AF [15:07:40]RasterBufferAndPrint [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]line [15:07:40]written 0, free lines is 3309 [15:07:40]MH_Cut [15:07:40]Write to MH i2c: D1 01 00 B2 0B 01 8F [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 01 00 [15:07:40]MH_I2C_Read... [15:07:40]Read from MH i2c: D1 01 00 B2 0B 00 8E [15:07:40]Write to MH i2c: 01 00 00 B3 0B BE [15:07:40]Write i2c OK [15:07:40]MH_I2C_Read... [15:07:40]OFD Sender: No OFD packet to send [15:07:40]*** Cut start [15:07:40]*** Partial cut [15:07:40]*** CUTSNS_PIN = 1 [15:07:40]*** CUTSNS_PIN = 0 [15:07:41]*** Brake cut motor [15:07:41]Read from MH i2c: 01 [15:07:41]MH_I2C_Read... [15:07:41]*** Stop cut motor [15:07:41]*** Cut end [15:07:41]Read from MH i2c: 01 07 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: 01 07 00 B3 0B 00 00 00 00 00 FF 0F D3 [15:07:41]process_action close_receipt done [15:07:41]requested_data is exist [15:07:41]produce_requested_data [15:07:41]requested_item fm.sn is exist - process it [15:07:41]wFMCommunicate request_size=4 [15:07:41]MH_SAM_APDU [15:07:41]CAPDU: 80 11 00 00 [15:07:41]Write to MH i2c: E2 08 00 B4 0B 80 11 00 00 00 00 00 00 39 [15:07:41]Write i2c OK [15:07:41]MH_I2C_Read... [15:07:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:41]Read from MH i2c: E2 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 17 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 17 00 B4 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8A [15:07:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:07:41]wFMCommunicate OK [15:07:41]requested_item fd.num is exist - process it [15:07:41]SAM_PROTO_GetFieldsCounters [15:07:41]wFMCommunicate request_size=4 [15:07:41]MH_SAM_APDU [15:07:41]CAPDU: 80 13 00 00 [15:07:41]Write to MH i2c: E2 08 00 B5 0B 80 13 00 00 00 00 00 00 3C [15:07:41]Write i2c OK [15:07:41]MH_I2C_Read... [15:07:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:41]Read from MH i2c: E2 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 62 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 62 00 B5 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [15:07:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 BF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:41]wFMCommunicate OK [15:07:41]SAM_PROTO_GetFieldsCounters done [15:07:41]requested_item shift.num is exist - process it [15:07:41]requested_item shift.opened is exist - process it [15:07:41]req_shift_opened [15:07:41]FM_GetShiftState [15:07:41]SAM_PROTO_GetShiftState [15:07:41]wFMCommunicate request_size=4 [15:07:41]MH_SAM_APDU [15:07:41]CAPDU: 80 13 01 00 [15:07:41]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [15:07:41]Write i2c OK [15:07:41]MH_I2C_Read... [15:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:41]Read from MH i2c: E2 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 0E 00 [15:07:41]MH_I2C_Read... [15:07:41]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D6 [15:07:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:07:41]wFMCommunicate OK [15:07:41]SAM_PROTO_GetShiftState done [15:07:41]FM_GetShiftState done [15:07:41]req_shift_opened done [15:07:41]requested_item shift.open_date is exist - process it [15:07:41]req_shift_open_date [15:07:41]req_shift_open_date done [15:07:41]produce_requested_data done [15:07:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112319,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:07:41]process_action_free close_receipt [15:07:41]json_value_free [15:07:41]json_value_free done [15:07:41]process_json_proto returns [15:07:41]Send response to host [15:07:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112319,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:07:41]free response buf [15:07:41]execute_script done [15:07:41]execute_script returns [15:07:41]free content buf [15:07:41]Sock 9.Close socket [15:07:41]Sock 9.Thread stoped [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:54]accept exits with 8 [15:07:54]New connection [15:07:54]New thread 3066682724 created [15:07:54]Thread 3066826084 joined [15:07:54]Waiting for new connection... [15:07:54] Sock 8.Parse request [15:07:54]Sock 8.Check first char [15:07:54]Sock 8.First char is OK [15:07:54]request: POST /json_proto HTTP/1.0 [15:07:54]Method: POST [15:07:54]URL: /json_proto [15:07:54]Method is POST - this is cgi request [15:07:54]url: /json_proto [15:07:54]query_string will be loaded in cgi processing [15:07:54]execute_cgi json_proto POST (null) [15:07:54]execute_cgi path=json_proto method=POST [15:07:54]POST find Content-Length [15:07:54]Host: 172.17.96.197:8080 [15:07:54]Content-Length: 891 [15:07:54]Content-Type: application/json [15:07:54] [15:07:54]POST finish read [15:07:54]Found Content-Length = 891 [15:07:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10425", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:54]execute_script... [15:07:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10425", "tax_sys" : 0, "items" : [ { "code": "5449000088680", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E, \u0430\u043D\u0430\u043D\u0430\u0441 0,33 \u0436/\u0431", "price" : 77.00, "quantity" : 1.000, "sum" : 77.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" : 77.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:54]POST & json_proto [15:07:54]process_json_proto [15:07:54]json parsed OK: [15:07:54]protocol is kg_v1.0 [15:07:54]action value=close_receipt [15:07:54]process_action close_receipt [15:07:54]cmd_close_receipt [15:07:54]MH_GetDate [15:07:54]Write to MH i2c: F0 00 00 B7 0B B1 [15:07:54]Write i2c OK [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 09 00 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: F0 09 00 B7 0B 00 4A F1 1B 66 E0 85 7F 64 BE [15:07:54]GetLastDocTimeStamp 1713107258 [15:07:54]current date 1713107274 [15:07:54]FM_GetShiftState [15:07:54]SAM_PROTO_GetShiftState [15:07:54]wFMCommunicate request_size=4 [15:07:54]MH_SAM_APDU [15:07:54]CAPDU: 80 13 01 00 [15:07:54]Write to MH i2c: E2 08 00 B8 0B 80 13 01 00 00 00 00 00 40 [15:07:54]Write i2c OK [15:07:54]MH_I2C_Read... [15:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:54]Read from MH i2c: E2 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: E2 0E 00 [15:07:54]MH_I2C_Read... [15:07:54]Read from MH i2c: E2 0E 00 B8 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D8 [15:07:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:07:54]wFMCommunicate OK [15:07:54]SAM_PROTO_GetShiftState done [15:07:54]FM_GetShiftState done [15:07:54]opened in 1713054696 [15:07:54]opened+sec_in_day 1713141096 [15:07:54]quantity*price = 7700 [15:07:54]sum+1 = 7701 [15:07:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 77.00 НСП 1% : 0.68 НДС 12% : 8.18 Наличными: 0.00 Безнал.: 77.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 219 14.04.2024 15:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112320 ФПД: 7767296861637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150754&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112320&fm=7767296861637&tin=02508201610067®Number=0000000000094237&sum=7700 0 [15:07:55]StoreToDocumentArchive [15:07:55]shift 357 fd 112320 [15:07:55]save to /storage/0357/doc_00112320 [15:07:55]save last doc name /storage/0357/doc_00112320 to /storage/kkm_last_doc_name [15:07:55]save OK [15:07:55]Clear old archive folders... [15:07:55]ProcessDocumentItem done err = 0, tmpTLVsize=306 [15:07:55]tlvbuf is 0016EFE0 [15:07:55]SAM_PROTO_ClearQueue [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 09 00 00 [15:07:55]Write to MH i2c: E2 08 00 C5 0B 80 09 00 00 00 00 00 00 42 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 C5 0B 00 90 00 44 [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]SAM_PROTO_ClearQueue done [15:07:55]KKMCreateOFDPacket [15:07:55]OFDProtocolAddRootSTLVToBuf [15:07:55]FM_MakeSignedData [15:07:55]FM_MakeSignedData [15:07:55]SAM_PROTO_SignData [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 01 02 [15:07:55]Write to MH i2c: E2 08 00 C6 0B 80 0D 01 02 00 00 00 00 4A [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 C6 0B 00 90 00 45 [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=255 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 [15:07:55]Write to MH i2c: E2 02 01 C7 0B 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 00 02 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]OFD Sender: No OFD packet to send [15:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 C7 0B 00 90 00 46 [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=65 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C0 B6 01 00 35 04 06 00 07 10 76 F8 65 C5 [15:07:55]Write to MH i2c: E2 44 00 C8 0B 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C0 B6 01 00 35 04 06 00 07 10 76 F8 65 C5 00 00 C0 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 03 00 C8 0B 00 90 00 47 [15:07:55]RAPDU: 90 00 [15:07:55]wFMCommunicate OK [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 0D 03 02 [15:07:55]Write to MH i2c: E2 08 00 C9 0B 80 0D 03 02 00 00 00 00 4F [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 0B 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 0B 00 C9 0B 00 CC A5 50 AA F8 1A 6D CA 90 00 04 [15:07:55]RAPDU: CC A5 50 AA F8 1A 6D CA 90 00 [15:07:55]wFMCommunicate OK [15:07:55]SAM_PROTO_SignData done [15:07:55]FM_MakeSignedData done [15:07:55]CreateOFDProtocolMessage [15:07:55]wFMCommunicate request_size=4 [15:07:55]MH_SAM_APDU [15:07:55]CAPDU: 80 11 00 00 [15:07:55]Write to MH i2c: E2 08 00 CA 0B 80 11 00 00 00 00 00 00 4F [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:55]Read from MH i2c: E2 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 17 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: E2 17 00 CA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A0 [15:07:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:07:55]wFMCommunicate OK [15:07:55]CreateOFDProtocolMessage done [15:07:55]OFDSenderStorePacket 112320 [15:07:55]StoreOFDPacket docnum=112320 [15:07:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 46 01 00 00 7E 87 3E 01 CB 8D 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C0 B6 01 00 35 04 06 00 07 10 76 F8 65 C5 CC A5 50 AA F8 1A 6D CA [15:07:55]CheckFolder [15:07:55]dirname=/storage/ofd_packets [15:07:55]CheckFolder done [15:07:55]ProducePacketName [15:07:55]name=ofd_packets/00112320 [15:07:55]NVStorageSaveData ofd_packets/00112320 [15:07:55]File name is /storage/ofd_packets/00112320 [15:07:55]Write 356 bytes [15:07:55]NVStorageSaveData done [15:07:55]OFDSenderStorePacket done [15:07:55]KKMCreateOFDPacket done [15:07:55]NVStorageSaveData kkm_last_timestamp [15:07:55]File name is /storage/kkm_last_timestamp [15:07:55]Write 4 bytes [15:07:55]NVStorageSaveData done [15:07:55]ExternCall_PrintAddStr [15:07:55]wPrintStart [15:07:55]Write to MH i2c: 01 00 00 CB 0B D6 [15:07:55]Write i2c OK [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 07 00 [15:07:55]MH_I2C_Read... [15:07:55]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [15:07:55]RasterBufferAndPrint [15:07:55]line Счет N : (3)10425 [15:07:55]line ИНН: 02508201610067 [15:07:55]line Контрольно-Кассовый Чек [15:07:55]line ПРОДАЖА [15:07:55]line Товар: 5449000088680 [15:07:55]line Холодный чай Fuse манго, ананас 0,33 ж/б [15:07:55]line 1.000 * 77.00 [15:07:55]line = 77.00 [15:07:55]line НДС 12% НСП 1% [15:07:55]line > о реализуемом товаре [15:07:55]line ИТОГО: 77.00 [15:07:55]line НСП 1% : 0.68 [15:07:55]line НДС 12% : 8.18 [15:07:55]line Наличными: 0.00 [15:07:55]line Безнал.: 77.00 [15:07:55]line Место: АЗС № 47 "Партнер Нефть" [15:07:55]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:07:55]line СНО: Общий режим [15:07:55]line Чек 219 14.04.2024 15:07 [15:07:55]line Смена: 357 ФФД: 1.0 [15:07:55]line ЗНМ: 0300000138 [15:07:55]line РНМ: 0000000000094237 [15:07:55]line Версия ККМ: 001 [15:07:55]line Платежная система: Бакай Банк [15:07:55]line ФМ: 0000000000875019 [15:07:56]line ФД: 112320 [15:07:56]line ФПД: 7767296861637 [15:07:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150754&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112320&fm=7767296861637&tin=02508201610067®Number=0000000000094237&sum=7700 [15:07:56]line 0 [15:07:56]OFD Sender: Processing packet 112320 [packets to send 71, broken 70] [15:07:56]ProducePacketName [15:07:56]name=ofd_packets/00112320 [15:07:56]OFD Sender: To server: pG, [15:07:56]CommunicateWithHost lk.salyk.kg:30040 [15:07:56]ConnectInit lk.salyk.kg [15:07:56]written 0, free lines is 4095 [15:07:56]Connected sock=11 [15:07:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 46 01 00 00 7E 87 3E 01 CB 8D 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 35 34 34 39 30 30 30 30 38 38 36 38 30 06 04 40 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 1E 00 00 00 00 13 04 06 00 14 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 1E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4A F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C0 B6 01 00 35 04 06 00 07 10 76 F8 65 C5 CC A5 50 AA F8 1A 6D CA [15:07:56]Write to MH i2c: 01 00 00 F6 0B 01 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: 01 07 00 F6 0B 00 00 00 00 00 C2 0C D6 [15:07:56]RasterBufferAndPrint [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]line [15:07:56]written 0, free lines is 3272 [15:07:56]MH_Cut [15:07:56]Write to MH i2c: D1 01 00 FD 0B 01 DA [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 01 00 [15:07:56]MH_I2C_Read... [15:07:56]Read from MH i2c: D1 01 00 FD 0B 00 D9 [15:07:56]Write to MH i2c: 01 00 00 FE 0B 09 [15:07:56]Write i2c OK [15:07:56]MH_I2C_Read... [15:07:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 90 94 47 00 CF 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C0 B6 01 00 F4 03 04 00 D5 98 1B 66 B6 04 01 00 00 1F 2B F1 5B C8 6C FC 0B [15:07:56]CommunicateWithHost err = 0 [15:07:56]CheckOFDResponse [15:07:56]1017 (14) - 77093643461234 [15:07:56]1041 (16) - 0000000000875019 [15:07:56]1040 (4) - 112320 [15:07:56]1012 (4) - 14.04.2024 08:50 [15:07:56]1206 (1) - 0 [15:07:56]OFD Sender: Remove packet 112320 [15:07:56]ProducePacketName [15:07:56]name=ofd_packets/00112320 [15:07:56]NVStorageDeleteData [15:07:57]OFD Sender: No OFD packet to send [15:07:57]*** Cut start [15:07:57]*** Partial cut [15:07:57]*** CUTSNS_PIN = 1 [15:07:57]*** CUTSNS_PIN = 0 [15:07:57]*** Brake cut motor [15:07:58]Read from MH i2c: 01 [15:07:58]MH_I2C_Read... [15:07:58]*** Stop cut motor [15:07:58]*** Cut end [15:07:58]Read from MH i2c: 01 07 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: 01 07 00 FE 0B 00 00 00 00 00 FF 0F 1E [15:07:58]process_action close_receipt done [15:07:58]requested_data is exist [15:07:58]produce_requested_data [15:07:58]requested_item fm.sn is exist - process it [15:07:58]wFMCommunicate request_size=4 [15:07:58]MH_SAM_APDU [15:07:58]CAPDU: 80 11 00 00 [15:07:58]Write to MH i2c: E2 08 00 FF 0B 80 11 00 00 00 00 00 00 84 [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:58]Read from MH i2c: E2 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 17 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 17 00 FF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [15:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:07:58]wFMCommunicate OK [15:07:58]requested_item fd.num is exist - process it [15:07:58]SAM_PROTO_GetFieldsCounters [15:07:58]wFMCommunicate request_size=4 [15:07:58]MH_SAM_APDU [15:07:58]CAPDU: 80 13 00 00 [15:07:58]Write to MH i2c: E2 08 00 00 0C 80 13 00 00 00 00 00 00 88 [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:58]Read from MH i2c: E2 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 62 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 62 00 00 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [15:07:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:58]wFMCommunicate OK [15:07:58]SAM_PROTO_GetFieldsCounters done [15:07:58]requested_item shift.num is exist - process it [15:07:58]requested_item shift.opened is exist - process it [15:07:58]req_shift_opened [15:07:58]FM_GetShiftState [15:07:58]SAM_PROTO_GetShiftState [15:07:58]wFMCommunicate request_size=4 [15:07:58]MH_SAM_APDU [15:07:58]CAPDU: 80 13 01 00 [15:07:58]Write to MH i2c: E2 08 00 01 0C 80 13 01 00 00 00 00 00 8A [15:07:58]Write i2c OK [15:07:58]MH_I2C_Read... [15:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:58]Read from MH i2c: E2 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 0E 00 [15:07:58]MH_I2C_Read... [15:07:58]Read from MH i2c: E2 0E 00 01 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 22 [15:07:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:07:58]wFMCommunicate OK [15:07:58]SAM_PROTO_GetShiftState done [15:07:58]FM_GetShiftState done [15:07:58]req_shift_opened done [15:07:58]requested_item shift.open_date is exist - process it [15:07:58]req_shift_open_date [15:07:58]req_shift_open_date done [15:07:58]produce_requested_data done [15:07:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112320,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:07:58]process_action_free close_receipt [15:07:58]json_value_free [15:07:58]json_value_free done [15:07:58]process_json_proto returns [15:07:58]Send response to host [15:07:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112320,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:07:58]free response buf [15:07:58]execute_script done [15:07:58]execute_script returns [15:07:58]free content buf [15:07:58]Sock 8.Close socket [15:07:58]Sock 8.Thread stoped [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:12]OFD Sender: No OFD packet to send [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:44]accept exits with 9 [15:09:44]New connection [15:09:44]New thread 3066826084 created [15:09:44]Thread 3066682724 joined [15:09:44]Waiting for new connection... [15:09:44] Sock 9.Parse request [15:09:44]Sock 9.Check first char [15:09:44]Sock 9.First char is OK [15:09:44]request: POST /json_proto HTTP/1.0 [15:09:44]Method: POST [15:09:44]URL: /json_proto [15:09:44]Method is POST - this is cgi request [15:09:44]url: /json_proto [15:09:44]query_string will be loaded in cgi processing [15:09:44]execute_cgi json_proto POST (null) [15:09:44]execute_cgi path=json_proto method=POST [15:09:44]POST find Content-Length [15:09:44]Host: 172.17.96.197:8080 [15:09:44]Content-Length: 676 [15:09:44]Content-Type: application/json [15:09:44] [15:09:44]POST finish read [15:09:44]Found Content-Length = 676 [15:09:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.760, "sum" : 370.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:44]execute_script... [15:09:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.760, "sum" : 370.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 370.00, "total" : 370.00, "payments": [ { "type": 0, "sum" : 370.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:44]POST & json_proto [15:09:44]process_json_proto [15:09:44]json parsed OK: [15:09:44]protocol is kg_v1.0 [15:09:44]action value=close_receipt [15:09:44]process_action close_receipt [15:09:44]cmd_close_receipt [15:09:44]MH_GetDate [15:09:44]Write to MH i2c: F0 00 00 02 0C FD [15:09:44]Write i2c OK [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 09 00 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: F0 09 00 02 0C 00 B8 F1 1B 66 E0 85 7F 64 78 [15:09:44]GetLastDocTimeStamp 1713107274 [15:09:44]current date 1713107384 [15:09:44]FM_GetShiftState [15:09:44]SAM_PROTO_GetShiftState [15:09:44]wFMCommunicate request_size=4 [15:09:44]MH_SAM_APDU [15:09:44]CAPDU: 80 13 01 00 [15:09:44]Write to MH i2c: E2 08 00 03 0C 80 13 01 00 00 00 00 00 8C [15:09:44]Write i2c OK [15:09:44]MH_I2C_Read... [15:09:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:44]Read from MH i2c: E2 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: E2 0E 00 [15:09:44]MH_I2C_Read... [15:09:44]Read from MH i2c: E2 0E 00 03 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 24 [15:09:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:09:44]wFMCommunicate OK [15:09:44]SAM_PROTO_GetShiftState done [15:09:44]FM_GetShiftState done [15:09:44]opened in 1713054696 [15:09:44]opened+sec_in_day 1713141096 [15:09:44]quantity*price = 37036 [15:09:44]sum+1 = 37038 [15:09:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 370.00 Внесено: 370.00 СДАЧА: 0.00 НСП 1% : 3.28 НДС 12% : 39.33 Наличными: 370.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 220 14.04.2024 15:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112321 ФПД: 214763105239929 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112321&fm=214763105239929&tin=02508201610067®Number=0000000000094237&sum=37000 [15:09:45]StoreToDocumentArchive [15:09:45]shift 357 fd 112321 [15:09:45]save to /storage/0357/doc_00112321 [15:09:45]save last doc name /storage/0357/doc_00112321 to /storage/kkm_last_doc_name [15:09:45]save OK [15:09:45]Clear old archive folders... [15:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:09:45]tlvbuf is 0014A610 [15:09:45]SAM_PROTO_ClearQueue [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 09 00 00 [15:09:45]Write to MH i2c: E2 08 00 10 0C 80 09 00 00 00 00 00 00 8E [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 10 0C 00 90 00 90 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]SAM_PROTO_ClearQueue done [15:09:45]KKMCreateOFDPacket [15:09:45]OFDProtocolAddRootSTLVToBuf [15:09:45]FM_MakeSignedData [15:09:45]FM_MakeSignedData [15:09:45]SAM_PROTO_SignData [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 01 02 [15:09:45]Write to MH i2c: E2 08 00 11 0C 80 0D 01 02 00 00 00 00 96 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 11 0C 00 90 00 91 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=255 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C1 B6 01 00 35 04 06 00 C3 [15:09:45]Write to MH i2c: E2 02 01 12 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 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C1 B6 01 00 35 04 06 00 C3 00 00 34 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 12 0C 00 90 00 92 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=10 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 02 02 05 53 6E 99 43 79 [15:09:45]Write to MH i2c: E2 0D 00 13 0C 80 0D 02 02 05 00 53 6E 99 43 79 00 00 B9 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 03 00 13 0C 00 90 00 93 [15:09:45]RAPDU: 90 00 [15:09:45]wFMCommunicate OK [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 0D 03 02 [15:09:45]Write to MH i2c: E2 08 00 14 0C 80 0D 03 02 00 00 00 00 9B [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 0B 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 0B 00 14 0C 00 F6 4B EB C6 8B 67 2A 30 90 00 DA [15:09:45]RAPDU: F6 4B EB C6 8B 67 2A 30 90 00 [15:09:45]wFMCommunicate OK [15:09:45]SAM_PROTO_SignData done [15:09:45]FM_MakeSignedData done [15:09:45]CreateOFDProtocolMessage [15:09:45]wFMCommunicate request_size=4 [15:09:45]MH_SAM_APDU [15:09:45]CAPDU: 80 11 00 00 [15:09:45]Write to MH i2c: E2 08 00 15 0C 80 11 00 00 00 00 00 00 9B [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:45]Read from MH i2c: E2 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 17 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: E2 17 00 15 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EC [15:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:09:45]wFMCommunicate OK [15:09:45]CreateOFDProtocolMessage done [15:09:45]OFDSenderStorePacket 112321 [15:09:45]StoreOFDPacket docnum=112321 [15:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8B B6 07 01 30 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 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C1 B6 01 00 35 04 06 00 C3 53 6E 99 43 79 F6 4B EB C6 8B 67 2A 30 [15:09:45]CheckFolder [15:09:45]dirname=/storage/ofd_packets [15:09:45]CheckFolder done [15:09:45]ProducePacketName [15:09:45]name=ofd_packets/00112321 [15:09:45]NVStorageSaveData ofd_packets/00112321 [15:09:45]File name is /storage/ofd_packets/00112321 [15:09:45]Write 301 bytes [15:09:45]NVStorageSaveData done [15:09:45]OFDSenderStorePacket done [15:09:45]KKMCreateOFDPacket done [15:09:45]NVStorageSaveData kkm_last_timestamp [15:09:45]File name is /storage/kkm_last_timestamp [15:09:45]Write 4 bytes [15:09:45]NVStorageSaveData done [15:09:45]ExternCall_PrintAddStr [15:09:45]wPrintStart [15:09:45]Write to MH i2c: 01 00 00 16 0C 22 [15:09:45]Write i2c OK [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: 01 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: 01 07 00 [15:09:45]MH_I2C_Read... [15:09:45]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FF 0F 37 [15:09:45]RasterBufferAndPrint [15:09:45]line Счет N : (1)48632 [15:09:45]line ИНН: 02508201610067 [15:09:45]line Контрольно-Кассовый Чек [15:09:45]line ПРОДАЖА [15:09:45]line ТРК (МРК, ГНК) : 11 [15:09:45]line Товар: 2710124130 [15:09:45]line Аи-92-К-5 [15:09:45]line 5.760 * 64.30 [15:09:45]line = 370.37 [15:09:45]line НДС 12% НСП 1% [15:09:45]line > о реализуемом товаре [15:09:45]line ОКРУГЛЕНИЕ: -0.37 [15:09:45]line ИТОГО: 370.00 [15:09:45]line Внесено: 370.00 [15:09:45]line СДАЧА: 0.00 [15:09:45]line НСП 1% : 3.28 [15:09:45]line НДС 12% : 39.33 [15:09:45]line Наличными: 370.00 [15:09:45]line Безнал.: 0.00 [15:09:45]line Место: АЗС № 47 "Партнер Нефть" [15:09:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:09:45]line СНО: Общий режим [15:09:45]line Чек 220 14.04.2024 15:09 [15:09:45]line Смена: 357 ФФД: 1.0 [15:09:45]line ЗНМ: 0300000138 [15:09:45]line РНМ: 0000000000094237 [15:09:45]line Версия ККМ: 001 [15:09:45]line ФМ: 0000000000875019 [15:09:45]line ФД: 112321 [15:09:45]line ФПД: 214763105239929 [15:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T150944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112321&fm=214763105239929&tin=02508201610067®Number=0000000000094237&sum=37000 [15:09:45]written 0, free lines is 4095 [15:09:45]OFD Sender: Processing packet 112321 [packets to send 71, broken 70] [15:09:45]ProducePacketName [15:09:45]name=ofd_packets/00112321 [15:09:45]OFD Sender: To server: pG, [15:09:45]CommunicateWithHost lk.salyk.kg:30040 [15:09:45]ConnectInit lk.salyk.kg [15:09:46]Connected sock=11 [15:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8B B6 07 01 30 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 80 16 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 AD 90 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5D 0F 00 00 00 00 07 04 06 00 88 90 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 B8 F1 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C1 B6 01 00 35 04 06 00 C3 53 6E 99 43 79 F6 4B EB C6 8B 67 2A 30 [15:09:46]Write to MH i2c: 01 00 00 41 0C 4D [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: 01 07 00 41 0C 00 00 00 00 00 D8 0C 38 [15:09:46]RasterBufferAndPrint [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]line [15:09:46]written 0, free lines is 3296 [15:09:46]MH_Cut [15:09:46]Write to MH i2c: D1 01 00 48 0C 01 26 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: D1 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: D1 01 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: D1 01 00 48 0C 00 25 [15:09:46]Write to MH i2c: 01 00 00 49 0C 55 [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D4 F2 47 00 64 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C1 B6 01 00 F4 03 04 00 43 99 1B 66 B6 04 01 00 00 47 8E 8E 5D 62 51 19 9E [15:09:46]CommunicateWithHost err = 0 [15:09:46]CheckOFDResponse [15:09:46]1017 (14) - 77093643461234 [15:09:46]1041 (16) - 0000000000875019 [15:09:46]1040 (4) - 112321 [15:09:46]1012 (4) - 14.04.2024 08:52 [15:09:46]1206 (1) - 0 [15:09:46]OFD Sender: Remove packet 112321 [15:09:46]ProducePacketName [15:09:46]name=ofd_packets/00112321 [15:09:46]NVStorageDeleteData [15:09:46]OFD Sender: No OFD packet to send [15:09:47]*** Cut start [15:09:47]*** Partial cut [15:09:47]*** CUTSNS_PIN = 1 [15:09:47]*** CUTSNS_PIN = 0 [15:09:47]*** Brake cut motor [15:09:47]Read from MH i2c: 01 [15:09:47]MH_I2C_Read... [15:09:47]*** Stop cut motor [15:09:47]*** Cut end [15:09:47]Read from MH i2c: 01 07 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [15:09:47]process_action close_receipt done [15:09:47]requested_data is exist [15:09:47]produce_requested_data [15:09:47]requested_item fm.sn is exist - process it [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 11 00 00 [15:09:47]Write to MH i2c: E2 08 00 4A 0C 80 11 00 00 00 00 00 00 D0 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 17 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 17 00 4A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 21 [15:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:09:47]wFMCommunicate OK [15:09:47]requested_item fd.num is exist - process it [15:09:47]SAM_PROTO_GetFieldsCounters [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 13 00 00 [15:09:47]Write to MH i2c: E2 08 00 4B 0C 80 13 00 00 00 00 00 00 D3 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 62 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 62 00 4B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:09:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_GetFieldsCounters done [15:09:47]requested_item shift.num is exist - process it [15:09:47]requested_item shift.opened is exist - process it [15:09:47]req_shift_opened [15:09:47]FM_GetShiftState [15:09:47]SAM_PROTO_GetShiftState [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 13 01 00 [15:09:47]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6D [15:09:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_GetShiftState done [15:09:47]FM_GetShiftState done [15:09:47]req_shift_opened done [15:09:47]requested_item shift.open_date is exist - process it [15:09:47]req_shift_open_date [15:09:47]req_shift_open_date done [15:09:47]produce_requested_data done [15:09:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112321,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:09:47]process_action_free close_receipt [15:09:47]json_value_free [15:09:47]json_value_free done [15:09:47]process_json_proto returns [15:09:47]Send response to host [15:09:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112321,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:09:47]free response buf [15:09:47]execute_script done [15:09:47]execute_script returns [15:09:47]free content buf [15:09:47]Sock 9.Close socket [15:09:47]Sock 9.Thread stoped [15:09:51]OFD Sender: No OFD packet to send [15:09:56]OFD Sender: No OFD packet to send [15:10:01]OFD Sender: No OFD packet to send [15:10:06]OFD Sender: No OFD packet to send [15:10:11]OFD Sender: No OFD packet to send [15:10:16]OFD Sender: No OFD packet to send [15:10:21]OFD Sender: No OFD packet to send [15:10:26]OFD Sender: No OFD packet to send [15:10:31]OFD Sender: No OFD packet to send [15:10:36]OFD Sender: No OFD packet to send [15:10:41]OFD Sender: No OFD packet to send [15:10:46]OFD Sender: No OFD packet to send [15:10:51]OFD Sender: No OFD packet to send [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [15:11:36]OFD Sender: No OFD packet to send [15:11:41]OFD Sender: No OFD packet to send [15:11:46]OFD Sender: No OFD packet to send [15:11:51]OFD Sender: No OFD packet to send [15:11:56]OFD Sender: No OFD packet to send [15:12:01]OFD Sender: No OFD packet to send [15:12:06]OFD Sender: No OFD packet to send [15:12:11]OFD Sender: No OFD packet to send [15:12:17]OFD Sender: No OFD packet to send [15:12:22]OFD Sender: No OFD packet to send [15:12:27]OFD Sender: No OFD packet to send [15:12:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:17]OFD Sender: No OFD packet to send [15:14:22]OFD Sender: No OFD packet to send [15:14:27]OFD Sender: No OFD packet to send [15:14:32]OFD Sender: No OFD packet to send [15:14:37]OFD Sender: No OFD packet to send [15:14:42]OFD Sender: No OFD packet to send [15:14:47]OFD Sender: No OFD packet to send [15:14:52]OFD Sender: No OFD packet to send [15:14:57]OFD Sender: No OFD packet to send [15:15:02]OFD Sender: No OFD packet to send [15:15:07]OFD Sender: No OFD packet to send [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:25]accept exits with 8 [15:15:25]New connection [15:15:25]New thread 3066682724 created [15:15:25]Thread 3066826084 joined [15:15:25]Waiting for new connection... [15:15:25] Sock 8.Parse request [15:15:25]Sock 8.Check first char [15:15:25]Sock 8.First char is OK [15:15:25]request: POST /json_proto HTTP/1.0 [15:15:25]Method: POST [15:15:25]URL: /json_proto [15:15:25]Method is POST - this is cgi request [15:15:25]url: /json_proto [15:15:25]query_string will be loaded in cgi processing [15:15:25]execute_cgi json_proto POST (null) [15:15:25]execute_cgi path=json_proto method=POST [15:15:25]POST find Content-Length [15:15:25]Host: 172.17.96.197:8080 [15:15:25]Content-Length: 678 [15:15:25]Content-Type: application/json [15:15:25] [15:15:25]POST finish read [15:15:25]Found Content-Length = 678 [15:15:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48633", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:25]execute_script... [15:15: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)48633", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:25]POST & json_proto [15:15:25]process_json_proto [15:15:25]json parsed OK: [15:15:25]protocol is kg_v1.0 [15:15:25]action value=close_receipt [15:15:25]process_action close_receipt [15:15:25]cmd_close_receipt [15:15:25]MH_GetDate [15:15:25]Write to MH i2c: F0 00 00 4D 0C 48 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: F0 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: F0 09 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: F0 09 00 4D 0C 00 0D F3 1B 66 E0 85 7F 64 1A [15:15:25]GetLastDocTimeStamp 1713107384 [15:15:25]current date 1713107725 [15:15:25]FM_GetShiftState [15:15:25]SAM_PROTO_GetShiftState [15:15:25]wFMCommunicate request_size=4 [15:15:25]MH_SAM_APDU [15:15:25]CAPDU: 80 13 01 00 [15:15:25]Write to MH i2c: E2 08 00 4E 0C 80 13 01 00 00 00 00 00 D7 [15:15:25]Write i2c OK [15:15:25]MH_I2C_Read... [15:15:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:25]Read from MH i2c: E2 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0E 00 [15:15:25]MH_I2C_Read... [15:15:25]Read from MH i2c: E2 0E 00 4E 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6F [15:15:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:15:25]wFMCommunicate OK [15:15:25]SAM_PROTO_GetShiftState done [15:15:25]FM_GetShiftState done [15:15:25]opened in 1713054696 [15:15:25]opened+sec_in_day 1713141096 [15:15:25]quantity*price = 100056 [15:15:25]sum+1 = 100058 [15:15:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 221 14.04.2024 15:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112322 ФПД: 224705787169299 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T151525&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112322&fm=224705787169299&tin=02508201610067®Number=0000000000094237&sum=100000 [15:15:26]StoreToDocumentArchive [15:15:26]shift 357 fd 112322 [15:15:26]save to /storage/0357/doc_00112322 [15:15:26]save last doc name /storage/0357/doc_00112322 to /storage/kkm_last_doc_name [15:15:26]save OK [15:15:26]Clear old archive folders... [15:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:15:26]tlvbuf is 001404F0 [15:15:26]SAM_PROTO_ClearQueue [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 09 00 00 [15:15:26]Write to MH i2c: E2 08 00 5B 0C 80 09 00 00 00 00 00 00 D9 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 5B 0C 00 90 00 DB [15:15:26]RAPDU: 90 00 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_ClearQueue done [15:15:26]KKMCreateOFDPacket [15:15:26]OFDProtocolAddRootSTLVToBuf [15:15:26]FM_MakeSignedData [15:15:26]FM_MakeSignedData [15:15:26]SAM_PROTO_SignData [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 0D 01 02 [15:15:26]Write to MH i2c: E2 08 00 5C 0C 80 0D 01 02 00 00 00 00 E1 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 5C 0C 00 90 00 DC [15:15:26]RAPDU: 90 00 [15:15:26]wFMCommunicate OK [15:15:26]wFMCommunicate request_size=255 [15:15:26]MH_SAM_APDU [15:15: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 DD 00 00 00 F4 03 04 00 0D F3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C2 B6 01 00 35 04 06 00 CC 5E 64 9F [15:15:26]Write to MH i2c: E2 02 01 5D 0C 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 DD 00 00 00 F4 03 04 00 0D F3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C2 B6 01 00 35 04 06 00 CC 5E 64 9F 00 00 0B [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 5D 0C 00 90 00 DD [15:15:26]RAPDU: 90 00 [15:15:26]wFMCommunicate OK [15:15:26]wFMCommunicate request_size=7 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 0D 02 02 02 8A 13 [15:15:26]Write to MH i2c: E2 0A 00 5E 0C 80 0D 02 02 02 00 8A 13 00 00 85 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 03 00 5E 0C 00 90 00 DE [15:15:26]RAPDU: 90 00 [15:15:26]wFMCommunicate OK [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 0D 03 02 [15:15:26]Write to MH i2c: E2 08 00 5F 0C 80 0D 03 02 00 00 00 00 E6 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0B 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 0B 00 5F 0C 00 0D 8D CE 30 0F 6F 0A 5A 90 00 61 [15:15:26]RAPDU: 0D 8D CE 30 0F 6F 0A 5A 90 00 [15:15:26]wFMCommunicate OK [15:15:26]SAM_PROTO_SignData done [15:15:26]FM_MakeSignedData done [15:15:26]CreateOFDProtocolMessage [15:15:26]wFMCommunicate request_size=4 [15:15:26]MH_SAM_APDU [15:15:26]CAPDU: 80 11 00 00 [15:15:26]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:26]Read from MH i2c: E2 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 37 [15:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:15:26]wFMCommunicate OK [15:15:26]CreateOFDProtocolMessage done [15:15:26]OFDSenderStorePacket 112322 [15:15:26]StoreOFDPacket docnum=112322 [15:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 41 4F 04 01 DE 5E 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 DD 00 00 00 F4 03 04 00 0D F3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C2 B6 01 00 35 04 06 00 CC 5E 64 9F 8A 13 0D 8D CE 30 0F 6F 0A 5A [15:15:26]CheckFolder [15:15:26]dirname=/storage/ofd_packets [15:15:26]CheckFolder done [15:15:26]ProducePacketName [15:15:26]name=ofd_packets/00112322 [15:15:26]NVStorageSaveData ofd_packets/00112322 [15:15:26]File name is /storage/ofd_packets/00112322 [15:15:26]Write 298 bytes [15:15:26]NVStorageSaveData done [15:15:26]OFDSenderStorePacket done [15:15:26]KKMCreateOFDPacket done [15:15:26]NVStorageSaveData kkm_last_timestamp [15:15:26]File name is /storage/kkm_last_timestamp [15:15:26]Write 4 bytes [15:15:26]NVStorageSaveData done [15:15:26]ExternCall_PrintAddStr [15:15:26]wPrintStart [15:15:26]Write to MH i2c: 01 00 00 61 0C 6D [15:15:26]Write i2c OK [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 [15:15:26]MH_I2C_Read... [15:15:26]Read from MH i2c: 01 07 00 61 0C 00 00 00 00 00 FF 0F 82 [15:15:26]RasterBufferAndPrint [15:15:26]line Счет N : (1)48633 [15:15:26]line ИНН: 02508201610067 [15:15:26]line Контрольно-Кассовый Чек [15:15:26]line ПРОДАЖА [15:15:26]line ТРК (МРК, ГНК) : 61 [15:15:26]line Товар: 2710194210 [15:15:26]line ДТ-К-5 [15:15:26]line 13.820 * 72.40 [15:15:26]line = 1000.57 [15:15:26]line НДС 12% НСП 1% [15:15:26]line > о реализуемом товаре [15:15:26]line ОКРУГЛЕНИЕ: -0.57 [15:15:26]line ИТОГО: 1000.00 [15:15:26]line Внесено: 1000.00 [15:15:26]line СДАЧА: 0.00 [15:15:26]line НСП 1% : 8.85 [15:15:26]line НДС 12% : 106.25 [15:15:26]line Наличными: 1000.00 [15:15:26]line Безнал.: 0.00 [15:15:26]line Место: АЗС № 47 "Партнер Нефть" [15:15:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:15:26]line СНО: Общий режим [15:15:26]line Чек 221 14.04.2024 15:15 [15:15:26]line Смена: 357 ФФД: 1.0 [15:15:26]line ЗНМ: 0300000138 [15:15:26]line РНМ: 0000000000094237 [15:15:26]line Версия ККМ: 001 [15:15:26]line ФМ: 0000000000875019 [15:15:26]line ФД: 112322 [15:15:26]line ФПД: 224705787169299 [15:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T151525&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112322&fm=224705787169299&tin=02508201610067®Number=0000000000094237&sum=100000 [15:15:27]OFD Sender: Processing packet 112322 [packets to send 71, broken 70] [15:15:27]ProducePacketName [15:15:27]name=ofd_packets/00112322 [15:15:27]OFD Sender: To server: pG, [15:15:27]CommunicateWithHost lk.salyk.kg:30040 [15:15:27]ConnectInit lk.salyk.kg [15:15:27]written 0, free lines is 4095 [15:15:27]Connected sock=10 [15:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 41 4F 04 01 DE 5E 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 DD 00 00 00 F4 03 04 00 0D F3 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C2 B6 01 00 35 04 06 00 CC 5E 64 9F 8A 13 0D 8D CE 30 0F 6F 0A 5A [15:15:27]Write to MH i2c: 01 00 00 8C 0C 98 [15:15:27]Write i2c OK [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: 01 [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: 01 07 00 [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 EF 0C 9A [15:15:27]RasterBufferAndPrint [15:15:27]line [15:15:27]line [15:15:27]line [15:15:27]line [15:15:27]line [15:15:27]written 0, free lines is 3317 [15:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2C 6F 47 00 76 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 38 37 35 30 31 39 10 04 04 00 C2 B6 01 00 F4 03 04 00 98 9A 1B 66 B6 04 01 00 00 77 E5 C7 7E 72 8E C1 F1 [15:15:27]CommunicateWithHost err = 0 [15:15:27]CheckOFDResponse [15:15:27]1017 (14) - 77093643461234 [15:15:27]1041 (16) - 0000000000875019 [15:15:27]1040 (4) - 112322 [15:15:27]1012 (4) - 14.04.2024 08:58 [15:15:27]1206 (1) - 0 [15:15:27]OFD Sender: Remove packet 112322 [15:15:27]ProducePacketName [15:15:27]name=ofd_packets/00112322 [15:15:27]NVStorageDeleteData [15:15:27]MH_Cut [15:15:27]Write to MH i2c: D1 01 00 93 0C 01 71 [15:15:27]Write i2c OK [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: D1 [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: D1 01 00 [15:15:27]MH_I2C_Read... [15:15:27]Read from MH i2c: D1 01 00 93 0C 00 70 [15:15:27]Write to MH i2c: 01 00 00 94 0C A0 [15:15:27]Write i2c OK [15:15:27]MH_I2C_Read... [15:15:28]OFD Sender: No OFD packet to send [15:15:28]*** Cut start [15:15:28]*** Partial cut [15:15:28]*** CUTSNS_PIN = 1 [15:15:28]*** CUTSNS_PIN = 0 [15:15:28]*** Brake cut motor [15:15:28]Read from MH i2c: 01 [15:15:29]MH_I2C_Read... [15:15:29]*** Stop cut motor [15:15:29]*** Cut end [15:15:29]Read from MH i2c: 01 07 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [15:15:29]process_action close_receipt done [15:15:29]requested_data is exist [15:15:29]produce_requested_data [15:15:29]requested_item fm.sn is exist - process it [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 11 00 00 [15:15:29]Write to MH i2c: E2 08 00 95 0C 80 11 00 00 00 00 00 00 1B [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 17 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 17 00 95 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6C [15:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:15:29]wFMCommunicate OK [15:15:29]requested_item fd.num is exist - process it [15:15:29]SAM_PROTO_GetFieldsCounters [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 13 00 00 [15:15:29]Write to MH i2c: E2 08 00 96 0C 80 13 00 00 00 00 00 00 1E [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 62 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 62 00 96 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [15:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:29]wFMCommunicate OK [15:15:29]SAM_PROTO_GetFieldsCounters done [15:15:29]requested_item shift.num is exist - process it [15:15:29]requested_item shift.opened is exist - process it [15:15:29]req_shift_opened [15:15:29]FM_GetShiftState [15:15:29]SAM_PROTO_GetShiftState [15:15:29]wFMCommunicate request_size=4 [15:15:29]MH_SAM_APDU [15:15:29]CAPDU: 80 13 01 00 [15:15:29]Write to MH i2c: E2 08 00 97 0C 80 13 01 00 00 00 00 00 20 [15:15:29]Write i2c OK [15:15:29]MH_I2C_Read... [15:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:29]Read from MH i2c: E2 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 0E 00 [15:15:29]MH_I2C_Read... [15:15:29]Read from MH i2c: E2 0E 00 97 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B8 [15:15:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:15:29]wFMCommunicate OK [15:15:29]SAM_PROTO_GetShiftState done [15:15:29]FM_GetShiftState done [15:15:29]req_shift_opened done [15:15:29]requested_item shift.open_date is exist - process it [15:15:29]req_shift_open_date [15:15:29]req_shift_open_date done [15:15:29]produce_requested_data done [15:15:29]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112322,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:15:29]process_action_free close_receipt [15:15:29]json_value_free [15:15:29]json_value_free done [15:15:29]process_json_proto returns [15:15:29]Send response to host [15:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112322,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:15:29]free response buf [15:15:29]execute_script done [15:15:29]execute_script returns [15:15:29]free content buf [15:15:29]Sock 8.Close socket [15:15:29]Sock 8.Thread stoped [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [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:28]OFD Sender: No OFD packet to send [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:19]accept exits with 9 [15:21:19]New connection [15:21:19]New thread 3066826084 created [15:21:19]Thread 3066682724 joined [15:21:19]Waiting for new connection... [15:21:19] Sock 9.Parse request [15:21:19]Sock 9.Check first char [15:21:19]Sock 9.First char is OK [15:21:19]request: POST /json_proto HTTP/1.0 [15:21:19]Method: POST [15:21:19]URL: /json_proto [15:21:19]Method is POST - this is cgi request [15:21:19]url: /json_proto [15:21:19]query_string will be loaded in cgi processing [15:21:19]execute_cgi json_proto POST (null) [15:21:19]execute_cgi path=json_proto method=POST [15:21:19]POST find Content-Length [15:21:19]Host: 172.17.96.197:8080 [15:21:19]Content-Length: 681 [15:21:19]Content-Type: application/json [15:21:19] [15:21:19]POST finish read [15:21:19]Found Content-Length = 681 [15:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [15:21:19]execute_script... [15:21: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)48634", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [15:21:19]POST & json_proto [15:21:19]process_json_proto [15:21:19]json parsed OK: [15:21:19]protocol is kg_v1.0 [15:21:19]action value=close_receipt [15:21:19]process_action close_receipt [15:21:19]cmd_close_receipt [15:21:19]MH_GetDate [15:21:19]Write to MH i2c: F0 00 00 98 0C 93 [15:21:19]Write i2c OK [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 09 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 09 00 98 0C 00 6F F4 1B 66 E0 85 7F 64 C8 [15:21:19]GetLastDocTimeStamp 1713107725 [15:21:19]current date 1713108079 [15:21:19]FM_GetShiftState [15:21:19]SAM_PROTO_GetShiftState [15:21:19]wFMCommunicate request_size=4 [15:21:19]MH_SAM_APDU [15:21:19]CAPDU: 80 13 01 00 [15:21:19]Write to MH i2c: E2 08 00 99 0C 80 13 01 00 00 00 00 00 22 [15:21:19]Write i2c OK [15:21:19]MH_I2C_Read... [15:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:19]Read from MH i2c: E2 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 99 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BA [15:21:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:21:19]wFMCommunicate OK [15:21:19]SAM_PROTO_GetShiftState done [15:21:19]FM_GetShiftState done [15:21:19]opened in 1713054696 [15:21:19]opened+sec_in_day 1713141096 [15:21:19]quantity*price = 100050 [15:21:19]sum+1 = 100052 [15:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 222 14.04.2024 15:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112323 ФПД: 161041304648021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152119&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112323&fm=161041304648021&tin=02508201610067®Number=0000000000094237&sum=100000 [15:21:20]StoreToDocumentArchive [15:21:20]shift 357 fd 112323 [15:21:20]save to /storage/0357/doc_00112323 [15:21:20]save last doc name /storage/0357/doc_00112323 to /storage/kkm_last_doc_name [15:21:20]save OK [15:21:20]Clear old archive folders... [15:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:20]tlvbuf is 00133660 [15:21:20]SAM_PROTO_ClearQueue [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 09 00 00 [15:21:20]Write to MH i2c: E2 08 00 A6 0C 80 09 00 00 00 00 00 00 24 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 A6 0C 00 90 00 26 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]SAM_PROTO_ClearQueue done [15:21:20]KKMCreateOFDPacket [15:21:20]OFDProtocolAddRootSTLVToBuf [15:21:20]FM_MakeSignedData [15:21:20]FM_MakeSignedData [15:21:20]SAM_PROTO_SignData [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 01 02 [15:21:20]Write to MH i2c: E2 08 00 A7 0C 80 0D 01 02 00 00 00 00 2C [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 A7 0C 00 90 00 27 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=255 [15:21:20]MH_SAM_APDU [15:21:20]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 3C 00 00 00 00 00 37 04 06 00 1E 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 DE 00 00 00 F4 03 04 00 6F F4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C3 B6 01 00 35 04 06 00 92 [15:21:20]Write to MH i2c: E2 02 01 A8 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 DE 00 00 00 F4 03 04 00 6F F4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C3 B6 01 00 35 04 06 00 92 00 00 6D [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 A8 0C 00 90 00 28 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=10 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 02 02 05 77 59 C1 F9 55 [15:21:20]Write to MH i2c: E2 0D 00 A9 0C 80 0D 02 02 05 00 77 59 C1 F9 55 00 00 18 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 A9 0C 00 90 00 29 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 03 02 [15:21:20]Write to MH i2c: E2 08 00 AA 0C 80 0D 03 02 00 00 00 00 31 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 0B 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 0B 00 AA 0C 00 41 FF 25 70 68 4F 9D BC 90 00 17 [15:21:20]RAPDU: 41 FF 25 70 68 4F 9D BC 90 00 [15:21:20]wFMCommunicate OK [15:21:20]SAM_PROTO_SignData done [15:21:20]FM_MakeSignedData done [15:21:20]CreateOFDProtocolMessage [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 11 00 00 [15:21:20]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 17 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 82 [15:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:21:20]wFMCommunicate OK [15:21:20]CreateOFDProtocolMessage done [15:21:20]OFDSenderStorePacket 112323 [15:21:20]StoreOFDPacket docnum=112323 [15:21:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5F C8 07 01 B5 69 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 3C 00 00 00 00 00 37 04 06 00 1E 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 DE 00 00 00 F4 03 04 00 6F F4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C3 B6 01 00 35 04 06 00 92 77 59 C1 F9 55 41 FF 25 70 68 4F 9D BC [15:21:20]CheckFolder [15:21:20]dirname=/storage/ofd_packets [15:21:20]CheckFolder done [15:21:20]ProducePacketName [15:21:20]name=ofd_packets/00112323 [15:21:20]NVStorageSaveData ofd_packets/00112323 [15:21:20]File name is /storage/ofd_packets/00112323 [15:21:20]Write 301 bytes [15:21:20]NVStorageSaveData done [15:21:20]OFDSenderStorePacket done [15:21:20]KKMCreateOFDPacket done [15:21:20]NVStorageSaveData kkm_last_timestamp [15:21:20]File name is /storage/kkm_last_timestamp [15:21:20]Write 4 bytes [15:21:20]NVStorageSaveData done [15:21:20]ExternCall_PrintAddStr [15:21:20]wPrintStart [15:21:20]Write to MH i2c: 01 00 00 AC 0C B8 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: 01 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: 01 07 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: 01 07 00 AC 0C 00 00 00 00 00 FF 0F CD [15:21:20]RasterBufferAndPrint [15:21:20]line Счет N : (1)48634 [15:21:20]line ИНН: 02508201610067 [15:21:20]line Контрольно-Кассовый Чек [15:21:20]line ПРОДАЖА [15:21:20]line ТРК (МРК, ГНК) : 21 [15:21:20]line Товар: 2710124130 [15:21:20]line Аи-92-К-5 [15:21:20]line 15.560 * 64.30 [15:21:20]line = 1000.51 [15:21:20]line НДС 12% НСП 1% [15:21:20]line > о реализуемом товаре [15:21:20]line ОКРУГЛЕНИЕ: -0.51 [15:21:20]line ИТОГО: 1000.00 [15:21:20]line Внесено: 1000.00 [15:21:20]line СДАЧА: 0.00 [15:21:20]line НСП 1% : 8.85 [15:21:20]line НДС 12% : 106.25 [15:21:20]line Наличными: 1000.00 [15:21:20]line Безнал.: 0.00 [15:21:20]line Место: АЗС № 47 "Партнер Нефть" [15:21:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:21:20]line СНО: Общий режим [15:21:20]line Чек 222 14.04.2024 15:21 [15:21:20]line Смена: 357 ФФД: 1.0 [15:21:20]line ЗНМ: 0300000138 [15:21:20]line РНМ: 0000000000094237 [15:21:20]line Версия ККМ: 001 [15:21:20]line ФМ: 0000000000875019 [15:21:20]line ФД: 112323 [15:21:20]line ФПД: 161041304648021 [15:21:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152119&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112323&fm=161041304648021&tin=02508201610067®Number=0000000000094237&sum=100000 [15:21:21]written 0, free lines is 4095 [15:21:21]OFD Sender: Processing packet 112323 [packets to send 71, broken 70] [15:21:21]ProducePacketName [15:21:21]name=ofd_packets/00112323 [15:21:21]OFD Sender: To server: pG, [15:21:21]CommunicateWithHost lk.salyk.kg:30040 [15:21:21]ConnectInit lk.salyk.kg [15:21:21]Connected sock=10 [15:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5F C8 07 01 B5 69 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 3C 00 00 00 00 00 37 04 06 00 1E 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 DE 00 00 00 F4 03 04 00 6F F4 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C3 B6 01 00 35 04 06 00 92 77 59 C1 F9 55 41 FF 25 70 68 4F 9D BC [15:21:21]Write to MH i2c: 01 00 00 D7 0C E3 [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 D7 0C 00 00 00 00 00 E0 0C D6 [15:21:21]RasterBufferAndPrint [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]written 0, free lines is 3302 [15:21:21]MH_Cut [15:21:21]Write to MH i2c: D1 01 00 DE 0C 01 BC [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 01 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 01 00 DE 0C 00 BB [15:21:21]Write to MH i2c: 01 00 00 DF 0C EB [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 23 D7 47 00 78 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C3 B6 01 00 F4 03 04 00 FA 9B 1B 66 B6 04 01 00 00 09 A9 7C FF 83 56 0B AE [15:21:21]CommunicateWithHost err = 0 [15:21:21]CheckOFDResponse [15:21:21]1017 (14) - 77093643461234 [15:21:21]1041 (16) - 0000000000875019 [15:21:21]1040 (4) - 112323 [15:21:21]1012 (4) - 14.04.2024 09:03 [15:21:21]1206 (1) - 0 [15:21:21]OFD Sender: Remove packet 112323 [15:21:21]ProducePacketName [15:21:21]name=ofd_packets/00112323 [15:21:21]NVStorageDeleteData [15:21:22]OFD Sender: No OFD packet to send [15:21:22]*** Cut start [15:21:22]*** Partial cut [15:21:22]*** CUTSNS_PIN = 1 [15:21:22]*** CUTSNS_PIN = 0 [15:21:22]*** Brake cut motor [15:21:23]Read from MH i2c: 01 [15:21:23]MH_I2C_Read... [15:21:23]*** Stop cut motor [15:21:23]*** Cut end [15:21:23]Read from MH i2c: 01 07 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: 01 07 00 DF 0C 00 00 00 00 00 FF 0F 00 [15:21:23]process_action close_receipt done [15:21:23]requested_data is exist [15:21:23]produce_requested_data [15:21:23]requested_item fm.sn is exist - process it [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 11 00 00 [15:21:23]Write to MH i2c: E2 08 00 E0 0C 80 11 00 00 00 00 00 00 66 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 17 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 17 00 E0 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B7 [15:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:21:23]wFMCommunicate OK [15:21:23]requested_item fd.num is exist - process it [15:21:23]SAM_PROTO_GetFieldsCounters [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 00 00 [15:21:23]Write to MH i2c: E2 08 00 E1 0C 80 13 00 00 00 00 00 00 69 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 62 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 62 00 E1 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [15:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetFieldsCounters done [15:21:23]requested_item shift.num is exist - process it [15:21:23]requested_item shift.opened is exist - process it [15:21:23]req_shift_opened [15:21:23]FM_GetShiftState [15:21:23]SAM_PROTO_GetShiftState [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 01 00 [15:21:23]Write to MH i2c: E2 08 00 E2 0C 80 13 01 00 00 00 00 00 6B [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 E2 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 03 [15:21:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetShiftState done [15:21:23]FM_GetShiftState done [15:21:23]req_shift_opened done [15:21:23]requested_item shift.open_date is exist - process it [15:21:23]req_shift_open_date [15:21:23]req_shift_open_date done [15:21:23]produce_requested_data done [15:21:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112323,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:21:23]process_action_free close_receipt [15:21:23]json_value_free [15:21:23]json_value_free done [15:21:23]process_json_proto returns [15:21:23]Send response to host [15:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112323,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:21:23]free response buf [15:21:23]execute_script done [15:21:23]execute_script returns [15:21:23]free content buf [15:21:23]Sock 9.Close socket [15:21:23]Sock 9.Thread stoped [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:17]OFD Sender: No OFD packet to send [15:23:22]OFD Sender: No OFD packet to send [15:23:27]OFD Sender: No OFD packet to send [15:23:32]OFD Sender: No OFD packet to send [15:23:37]OFD Sender: No OFD packet to send [15:23:42]OFD Sender: No OFD packet to send [15:23:47]OFD Sender: No OFD packet to send [15:23:52]OFD Sender: No OFD packet to send [15:23:57]OFD Sender: No OFD packet to send [15:24:02]OFD Sender: No OFD packet to send [15:24:07]OFD Sender: No OFD packet to send [15:24:12]OFD Sender: No OFD packet to send [15:24:17]OFD Sender: No OFD packet to send [15:24:22]OFD Sender: No OFD packet to send [15:24:27]OFD Sender: No OFD packet to send [15:24:32]OFD Sender: No OFD packet to send [15:24:37]OFD Sender: No OFD packet to send [15:24:42]OFD Sender: No OFD packet to send [15:24:47]OFD Sender: No OFD packet to send [15:24:52]OFD Sender: No OFD packet to send [15:24:57]OFD Sender: No OFD packet to send [15:25:02]OFD Sender: No OFD packet to send [15:25:07]OFD Sender: No OFD packet to send [15:25:08]accept exits with 8 [15:25:08]New connection [15:25:08]New thread 3066682724 created [15:25:08]Thread 3066826084 joined [15:25:08]Waiting for new connection... [15:25:08] Sock 8.Parse request [15:25:08]Sock 8.Check first char [15:25:08]Sock 8.First char is OK [15:25:08]request: POST /json_proto HTTP/1.0 [15:25:08]Method: POST [15:25:08]URL: /json_proto [15:25:08]Method is POST - this is cgi request [15:25:08]url: /json_proto [15:25:08]query_string will be loaded in cgi processing [15:25:08]execute_cgi json_proto POST (null) [15:25:08]execute_cgi path=json_proto method=POST [15:25:08]POST find Content-Length [15:25:08]Host: 172.17.96.197:8080 [15:25:08]Content-Length: 620 [15:25:08]Content-Type: application/json [15:25:08] [15:25:08]POST finish read [15:25:08]Found Content-Length = 620 [15:25:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10426", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:08]execute_script... [15:25:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10426", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:08]POST & json_proto [15:25:08]process_json_proto [15:25:08]json parsed OK: [15:25:08]protocol is kg_v1.0 [15:25:08]action value=close_receipt [15:25:08]process_action close_receipt [15:25:08]cmd_close_receipt [15:25:08]MH_GetDate [15:25:08]Write to MH i2c: F0 00 00 E3 0C DE [15:25:08]Write i2c OK [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: F0 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: F0 09 00 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: F0 09 00 E3 0C 00 54 F5 1B 66 E0 85 7F 64 F9 [15:25:08]GetLastDocTimeStamp 1713108079 [15:25:08]current date 1713108308 [15:25:08]FM_GetShiftState [15:25:08]SAM_PROTO_GetShiftState [15:25:08]wFMCommunicate request_size=4 [15:25:08]MH_SAM_APDU [15:25:08]CAPDU: 80 13 01 00 [15:25:08]Write to MH i2c: E2 08 00 E4 0C 80 13 01 00 00 00 00 00 6D [15:25:08]Write i2c OK [15:25:08]MH_I2C_Read... [15:25:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:08]Read from MH i2c: E2 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 0E 00 [15:25:08]MH_I2C_Read... [15:25:08]Read from MH i2c: E2 0E 00 E4 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 05 [15:25:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:25:08]wFMCommunicate OK [15:25:08]SAM_PROTO_GetShiftState done [15:25:08]FM_GetShiftState done [15:25:08]opened in 1713054696 [15:25:08]opened+sec_in_day 1713141096 [15:25:08]quantity*price = 13500 [15:25:08]sum+1 = 13501 [15:25:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 223 14.04.2024 15:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112324 ФПД: 82989570188452 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152508&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112324&fm=82989570188452&tin=02508201610067®Number=0000000000094237&sum=13500 0 [15:25:09]StoreToDocumentArchive [15:25:09]shift 357 fd 112324 [15:25:09]save to /storage/0357/doc_00112324 [15:25:09]save last doc name /storage/0357/doc_00112324 to /storage/kkm_last_doc_name [15:25:09]save OK [15:25:09]Clear old archive folders... [15:25:09]ProcessDocumentItem done err = 0, tmpTLVsize=273 [15:25:09]tlvbuf is 001403B0 [15:25:09]SAM_PROTO_ClearQueue [15:25:09]wFMCommunicate request_size=4 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 09 00 00 [15:25:09]Write to MH i2c: E2 08 00 F1 0C 80 09 00 00 00 00 00 00 6F [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 F1 0C 00 90 00 71 [15:25:09]RAPDU: 90 00 [15:25:09]wFMCommunicate OK [15:25:09]SAM_PROTO_ClearQueue done [15:25:09]KKMCreateOFDPacket [15:25:09]OFDProtocolAddRootSTLVToBuf [15:25:09]FM_MakeSignedData [15:25:09]FM_MakeSignedData [15:25:09]SAM_PROTO_SignData [15:25:09]wFMCommunicate request_size=4 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 0D 01 02 [15:25:09]Write to MH i2c: E2 08 00 F2 0C 80 0D 01 02 00 00 00 00 77 [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 F2 0C 00 90 00 72 [15:25:09]RAPDU: 90 00 [15:25:09]wFMCommunicate OK [15:25:09]wFMCommunicate request_size=255 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 54 F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 [15:25:09]Write to MH i2c: E2 02 01 F3 0C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 54 F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 55 [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 F3 0C 00 90 00 73 [15:25:09]RAPDU: 90 00 [15:25:09]wFMCommunicate OK [15:25:09]wFMCommunicate request_size=32 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 31 39 10 04 04 00 C4 B6 01 00 35 04 06 00 4B 7A 83 D9 E4 A4 [15:25:09]Write to MH i2c: E2 23 00 F4 0C 80 0D 02 02 1B 00 30 30 30 38 37 35 30 31 39 10 04 04 00 C4 B6 01 00 35 04 06 00 4B 7A 83 D9 E4 A4 00 00 F9 [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 03 00 F4 0C 00 90 00 74 [15:25:09]RAPDU: 90 00 [15:25:09]wFMCommunicate OK [15:25:09]wFMCommunicate request_size=4 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 0D 03 02 [15:25:09]Write to MH i2c: E2 08 00 F5 0C 80 0D 03 02 00 00 00 00 7C [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 0B 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 0B 00 F5 0C 00 E4 91 41 46 48 EF C8 07 90 00 7F [15:25:09]RAPDU: E4 91 41 46 48 EF C8 07 90 00 [15:25:09]wFMCommunicate OK [15:25:09]SAM_PROTO_SignData done [15:25:09]FM_MakeSignedData done [15:25:09]CreateOFDProtocolMessage [15:25:09]wFMCommunicate request_size=4 [15:25:09]MH_SAM_APDU [15:25:09]CAPDU: 80 11 00 00 [15:25:09]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:09]Read from MH i2c: E2 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 17 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CD [15:25:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:25:09]wFMCommunicate OK [15:25:09]CreateOFDProtocolMessage done [15:25:09]OFDSenderStorePacket 112324 [15:25:09]StoreOFDPacket docnum=112324 [15:25:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 0B 51 1D 01 D1 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 54 F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C4 B6 01 00 35 04 06 00 4B 7A 83 D9 E4 A4 E4 91 41 46 48 EF C8 07 [15:25:09]CheckFolder [15:25:09]dirname=/storage/ofd_packets [15:25:09]CheckFolder done [15:25:09]ProducePacketName [15:25:09]name=ofd_packets/00112324 [15:25:09]NVStorageSaveData ofd_packets/00112324 [15:25:09]File name is /storage/ofd_packets/00112324 [15:25:09]Write 323 bytes [15:25:09]NVStorageSaveData done [15:25:09]OFDSenderStorePacket done [15:25:09]KKMCreateOFDPacket done [15:25:09]NVStorageSaveData kkm_last_timestamp [15:25:09]File name is /storage/kkm_last_timestamp [15:25:09]Write 4 bytes [15:25:09]NVStorageSaveData done [15:25:09]ExternCall_PrintAddStr [15:25:09]wPrintStart [15:25:09]Write to MH i2c: 01 00 00 F7 0C 03 [15:25:09]Write i2c OK [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: 01 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: 01 07 00 [15:25:09]MH_I2C_Read... [15:25:09]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [15:25:09]RasterBufferAndPrint [15:25:09]line Счет N : (3)10426 [15:25:09]line ИНН: 02508201610067 [15:25:09]line Контрольно-Кассовый Чек [15:25:09]line ПРОДАЖА [15:25:09]line Товар: 48747059 [15:25:09]line Сигареты Winston Legend Blue [15:25:09]line 1.000 * 135.00 [15:25:09]line = 135.00 [15:25:09]line НДС 12% НСП 1% [15:25:09]line > о реализуемом товаре [15:25:09]line ИТОГО: 135.00 [15:25:09]line НСП 1% : 1.19 [15:25:09]line НДС 12% : 14.34 [15:25:09]line Наличными: 135.00 [15:25:09]line Безнал.: 0.00 [15:25:09]line Место: АЗС № 47 "Партнер Нефть" [15:25:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:25:09]line СНО: Общий режим [15:25:09]line Чек 223 14.04.2024 15:25 [15:25:09]line Смена: 357 ФФД: 1.0 [15:25:09]line ЗНМ: 0300000138 [15:25:09]line РНМ: 0000000000094237 [15:25:09]line Версия ККМ: 001 [15:25:09]line ФМ: 0000000000875019 [15:25:09]line ФД: 112324 [15:25:09]line ФПД: 82989570188452 [15:25:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152508&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112324&fm=82989570188452&tin=02508201610067®Number=0000000000094237&sum=13500 [15:25:10]line 0 [15:25:10]OFD Sender: Processing packet 112324 [packets to send 71, broken 70] [15:25:10]ProducePacketName [15:25:10]name=ofd_packets/00112324 [15:25:10]OFD Sender: To server: pG, [15:25:10]CommunicateWithHost lk.salyk.kg:30040 [15:25:10]ConnectInit lk.salyk.kg [15:25:10]written 0, free lines is 4095 [15:25:10]Connected sock=10 [15:25:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 0B 51 1D 01 D1 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 54 F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C4 B6 01 00 35 04 06 00 4B 7A 83 D9 E4 A4 E4 91 41 46 48 EF C8 07 [15:25:10]Write to MH i2c: 01 00 00 20 0D 2D [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: 01 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: 01 07 00 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: 01 07 00 20 0D 00 00 00 00 00 E6 0C 26 [15:25:10]RasterBufferAndPrint [15:25:10]line [15:25:10]line [15:25:10]line [15:25:10]line [15:25:10]line [15:25:10]written 0, free lines is 3308 [15:25:10]MH_Cut [15:25:10]Write to MH i2c: D1 01 00 27 0D 01 06 [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: D1 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: D1 01 00 [15:25:10]MH_I2C_Read... [15:25:10]Read from MH i2c: D1 01 00 27 0D 00 05 [15:25:10]Write to MH i2c: 01 00 00 28 0D 35 [15:25:10]Write i2c OK [15:25:10]MH_I2C_Read... [15:25:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A3 1F 47 00 B5 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C4 B6 01 00 F4 03 04 00 DF 9C 1B 66 B6 04 01 00 00 6C B6 A5 24 98 00 7E 53 [15:25:10]CommunicateWithHost err = 0 [15:25:10]CheckOFDResponse [15:25:10]1017 (14) - 77093643461234 [15:25:10]1041 (16) - 0000000000875019 [15:25:10]1040 (4) - 112324 [15:25:10]1012 (4) - 14.04.2024 09:07 [15:25:10]1206 (1) - 0 [15:25:10]OFD Sender: Remove packet 112324 [15:25:10]ProducePacketName [15:25:10]name=ofd_packets/00112324 [15:25:10]NVStorageDeleteData [15:25:11]OFD Sender: No OFD packet to send [15:25:11]*** Cut start [15:25:11]*** Partial cut [15:25:11]*** CUTSNS_PIN = 1 [15:25:11]*** CUTSNS_PIN = 0 [15:25:11]*** Brake cut motor [15:25:11]Read from MH i2c: 01 [15:25:11]MH_I2C_Read... [15:25:11]*** Stop cut motor [15:25:11]*** Cut end [15:25:11]Read from MH i2c: 01 07 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: 01 07 00 28 0D 00 00 00 00 00 FF 0F 4A [15:25:11]process_action close_receipt done [15:25:11]requested_data is exist [15:25:11]produce_requested_data [15:25:11]requested_item fm.sn is exist - process it [15:25:11]wFMCommunicate request_size=4 [15:25:11]MH_SAM_APDU [15:25:11]CAPDU: 80 11 00 00 [15:25:11]Write to MH i2c: E2 08 00 29 0D 80 11 00 00 00 00 00 00 B0 [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:11]Read from MH i2c: E2 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 17 00 [15:25:11]MH_I2C_Read... [15:25:11]Read from MH i2c: E2 17 00 29 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 01 [15:25:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:25:11]wFMCommunicate OK [15:25:11]requested_item fd.num is exist - process it [15:25:11]SAM_PROTO_GetFieldsCounters [15:25:11]wFMCommunicate request_size=4 [15:25:11]MH_SAM_APDU [15:25:11]CAPDU: 80 13 00 00 [15:25:11]Write to MH i2c: E2 08 00 2A 0D 80 13 00 00 00 00 00 00 B3 [15:25:11]Write i2c OK [15:25:11]MH_I2C_Read... [15:25:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:12]Read from MH i2c: E2 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 62 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 62 00 2A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [15:25:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:12]wFMCommunicate OK [15:25:12]SAM_PROTO_GetFieldsCounters done [15:25:12]requested_item shift.num is exist - process it [15:25:12]requested_item shift.opened is exist - process it [15:25:12]req_shift_opened [15:25:12]FM_GetShiftState [15:25:12]SAM_PROTO_GetShiftState [15:25:12]wFMCommunicate request_size=4 [15:25:12]MH_SAM_APDU [15:25:12]CAPDU: 80 13 01 00 [15:25:12]Write to MH i2c: E2 08 00 2B 0D 80 13 01 00 00 00 00 00 B5 [15:25:12]Write i2c OK [15:25:12]MH_I2C_Read... [15:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:12]Read from MH i2c: E2 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 [15:25:12]MH_I2C_Read... [15:25:12]Read from MH i2c: E2 0E 00 2B 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4D [15:25:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:25:12]wFMCommunicate OK [15:25:12]SAM_PROTO_GetShiftState done [15:25:12]FM_GetShiftState done [15:25:12]req_shift_opened done [15:25:12]requested_item shift.open_date is exist - process it [15:25:12]req_shift_open_date [15:25:12]req_shift_open_date done [15:25:12]produce_requested_data done [15:25:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112324,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:25:12]process_action_free close_receipt [15:25:12]json_value_free [15:25:12]json_value_free done [15:25:12]process_json_proto returns [15:25:12]Send response to host [15:25:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112324,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:25:12]free response buf [15:25:12]execute_script done [15:25:12]execute_script returns [15:25:12]free content buf [15:25:12]Sock 8.Close socket [15:25:12]Sock 8.Thread stoped [15:25:16]OFD Sender: No OFD packet to send [15:25:21]OFD Sender: No OFD packet to send [15:25:26]OFD Sender: No OFD packet to send [15:25:31]OFD Sender: No OFD packet to send [15:25:36]OFD Sender: No OFD packet to send [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:20]accept exits with 9 [15:26:20]New connection [15:26:20]New thread 3066826084 created [15:26:20]Thread 3066682724 joined [15:26:20]Waiting for new connection... [15:26:20] Sock 9.Parse request [15:26:20]Sock 9.Check first char [15:26:20]Sock 9.First char is OK [15:26:20]request: POST /json_proto HTTP/1.0 [15:26:20]Method: POST [15:26:20]URL: /json_proto [15:26:20]Method is POST - this is cgi request [15:26:20]url: /json_proto [15:26:20]query_string will be loaded in cgi processing [15:26:20]execute_cgi json_proto POST (null) [15:26:20]execute_cgi path=json_proto method=POST [15:26:20]POST find Content-Length [15:26:20]Host: 172.17.96.197:8080 [15:26:20]Content-Length: 676 [15:26:20]Content-Type: application/json [15:26:20] [15:26:20]POST finish read [15:26:20]Found Content-Length = 676 [15:26:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.660, "sum" : 700.35, "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:26:20]execute_script... [15:26:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48635", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 9.660, "sum" : 700.35, "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:26:20]POST & json_proto [15:26:20]process_json_proto [15:26:20]json parsed OK: [15:26:20]protocol is kg_v1.0 [15:26:20]action value=close_receipt [15:26:20]process_action close_receipt [15:26:20]cmd_close_receipt [15:26:20]MH_GetDate [15:26:20]Write to MH i2c: F0 00 00 2C 0D 28 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: F0 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: F0 09 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: F0 09 00 2C 0D 00 9C F5 1B 66 E0 85 7F 64 8B [15:26:20]GetLastDocTimeStamp 1713108308 [15:26:20]current date 1713108380 [15:26:20]FM_GetShiftState [15:26:20]SAM_PROTO_GetShiftState [15:26:20]wFMCommunicate request_size=4 [15:26:20]MH_SAM_APDU [15:26:20]CAPDU: 80 13 01 00 [15:26:20]Write to MH i2c: E2 08 00 2D 0D 80 13 01 00 00 00 00 00 B7 [15:26:20]Write i2c OK [15:26:20]MH_I2C_Read... [15:26:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:20]Read from MH i2c: E2 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0E 00 [15:26:20]MH_I2C_Read... [15:26:20]Read from MH i2c: E2 0E 00 2D 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4F [15:26:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:26:20]wFMCommunicate OK [15:26:20]SAM_PROTO_GetShiftState done [15:26:20]FM_GetShiftState done [15:26:20]opened in 1713054696 [15:26:20]opened+sec_in_day 1713141096 [15:26:20]quantity*price = 70035 [15:26:20]sum+1 = 70036 [15:26:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 224 14.04.2024 15:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112325 ФПД: 86012762830933 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112325&fm=86012762830933&tin=02508201610067®Number=0000000000094237&sum=70000 [15:26:21]StoreToDocumentArchive [15:26:21]shift 357 fd 112325 [15:26:21]save to /storage/0357/doc_00112325 [15:26:21]save last doc name /storage/0357/doc_00112325 to /storage/kkm_last_doc_name [15:26:21]save OK [15:26:21]Clear old archive folders... [15:26:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:21]tlvbuf is 0015F0B0 [15:26:21]SAM_PROTO_ClearQueue [15:26:21]wFMCommunicate request_size=4 [15:26:21]MH_SAM_APDU [15:26:21]CAPDU: 80 09 00 00 [15:26:21]Write to MH i2c: E2 08 00 3A 0D 80 09 00 00 00 00 00 00 B9 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 3A 0D 00 90 00 BB [15:26:21]RAPDU: 90 00 [15:26:21]wFMCommunicate OK [15:26:21]SAM_PROTO_ClearQueue done [15:26:21]KKMCreateOFDPacket [15:26:21]OFDProtocolAddRootSTLVToBuf [15:26:21]FM_MakeSignedData [15:26:21]FM_MakeSignedData [15:26:21]SAM_PROTO_SignData [15:26:21]wFMCommunicate request_size=4 [15:26:21]MH_SAM_APDU [15:26:21]CAPDU: 80 0D 01 02 [15:26:21]Write to MH i2c: E2 08 00 3B 0D 80 0D 01 02 00 00 00 00 C1 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:21]Read from MH i2c: E2 03 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 3B 0D 00 90 00 BC [15:26:21]RAPDU: 90 00 [15:26:21]wFMCommunicate OK [15:26:21]wFMCommunicate request_size=255 [15:26:21]MH_SAM_APDU [15:26: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 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 E0 00 00 00 F4 03 04 00 9C F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C5 B6 01 00 35 04 06 00 4E [15:26:21]Write to MH i2c: E2 02 01 3C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 E0 00 00 00 F4 03 04 00 9C F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C5 B6 01 00 35 04 06 00 4E 00 00 7F [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 3C 0D 00 90 00 BD [15:26:21]RAPDU: 90 00 [15:26:21]wFMCommunicate OK [15:26:21]wFMCommunicate request_size=10 [15:26:21]MH_SAM_APDU [15:26:21]CAPDU: 80 0D 02 02 05 3A 68 2C B8 55 [15:26:21]Write to MH i2c: E2 0D 00 3D 0D 80 0D 02 02 05 00 3A 68 2C B8 55 00 00 A9 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 03 00 3D 0D 00 90 00 BE [15:26:21]RAPDU: 90 00 [15:26:21]wFMCommunicate OK [15:26:21]wFMCommunicate request_size=4 [15:26:21]MH_SAM_APDU [15:26:21]CAPDU: 80 0D 03 02 [15:26:21]Write to MH i2c: E2 08 00 3E 0D 80 0D 03 02 00 00 00 00 C6 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 0B 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 0B 00 3E 0D 00 5C 72 82 80 93 F5 B1 80 90 00 50 [15:26:21]RAPDU: 5C 72 82 80 93 F5 B1 80 90 00 [15:26:21]wFMCommunicate OK [15:26:21]SAM_PROTO_SignData done [15:26:21]FM_MakeSignedData done [15:26:21]CreateOFDProtocolMessage [15:26:21]wFMCommunicate request_size=4 [15:26:21]MH_SAM_APDU [15:26:21]CAPDU: 80 11 00 00 [15:26:21]Write to MH i2c: E2 08 00 3F 0D 80 11 00 00 00 00 00 00 C6 [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:21]Read from MH i2c: E2 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 17 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: E2 17 00 3F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 17 [15:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:26:21]wFMCommunicate OK [15:26:21]CreateOFDProtocolMessage done [15:26:21]OFDSenderStorePacket 112325 [15:26:21]StoreOFDPacket docnum=112325 [15:26:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 33 73 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 E0 00 00 00 F4 03 04 00 9C F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C5 B6 01 00 35 04 06 00 4E 3A 68 2C B8 55 5C 72 82 80 93 F5 B1 80 [15:26:21]CheckFolder [15:26:21]dirname=/storage/ofd_packets [15:26:21]CheckFolder done [15:26:21]ProducePacketName [15:26:21]name=ofd_packets/00112325 [15:26:21]NVStorageSaveData ofd_packets/00112325 [15:26:21]File name is /storage/ofd_packets/00112325 [15:26:21]Write 301 bytes [15:26:21]NVStorageSaveData done [15:26:21]OFDSenderStorePacket done [15:26:21]KKMCreateOFDPacket done [15:26:21]NVStorageSaveData kkm_last_timestamp [15:26:21]File name is /storage/kkm_last_timestamp [15:26:21]Write 4 bytes [15:26:21]NVStorageSaveData done [15:26:21]ExternCall_PrintAddStr [15:26:21]wPrintStart [15:26:21]Write to MH i2c: 01 00 00 40 0D 4D [15:26:21]Write i2c OK [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 07 00 [15:26:21]MH_I2C_Read... [15:26:21]Read from MH i2c: 01 07 00 40 0D 00 00 00 00 00 FF 0F 62 [15:26:21]RasterBufferAndPrint [15:26:21]line Счет N : (1)48635 [15:26:21]line ИНН: 02508201610067 [15:26:21]line Контрольно-Кассовый Чек [15:26:21]line ПРОДАЖА [15:26:21]line ТРК (МРК, ГНК) : 12 [15:26:21]line Товар: 2710124500 [15:26:21]line Аи-95-К-5 [15:26:21]line 9.660 * 72.50 [15:26:21]line = 700.35 [15:26:21]line НДС 12% НСП 1% [15:26:21]line > о реализуемом товаре [15:26:21]line ОКРУГЛЕНИЕ: -0.35 [15:26:21]line ИТОГО: 700.00 [15:26:21]line Внесено: 700.00 [15:26:21]line СДАЧА: 0.00 [15:26:21]line НСП 1% : 6.20 [15:26:21]line НДС 12% : 74.37 [15:26:21]line Наличными: 700.00 [15:26:21]line Безнал.: 0.00 [15:26:21]line Место: АЗС № 47 "Партнер Нефть" [15:26:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:26:22]line СНО: Общий режим [15:26:22]line Чек 224 14.04.2024 15:26 [15:26:22]line Смена: 357 ФФД: 1.0 [15:26:22]line ЗНМ: 0300000138 [15:26:22]line РНМ: 0000000000094237 [15:26:22]line Версия ККМ: 001 [15:26:22]line ФМ: 0000000000875019 [15:26:22]line ФД: 112325 [15:26:22]line ФПД: 86012762830933 [15:26:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152620&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112325&fm=86012762830933&tin=02508201610067®Number=0000000000094237&sum=70000 [15:26:22]OFD Sender: Processing packet 112325 [packets to send 71, broken 70] [15:26:22]ProducePacketName [15:26:22]name=ofd_packets/00112325 [15:26:22]OFD Sender: To server: pG, [15:26:22]CommunicateWithHost lk.salyk.kg:30040 [15:26:22]ConnectInit lk.salyk.kg [15:26:22]written 0, free lines is 4095 [15:26:22]Connected sock=10 [15:26:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 33 73 07 01 29 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 BC 25 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 93 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 0D 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 E0 00 00 00 F4 03 04 00 9C F5 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C5 B6 01 00 35 04 06 00 4E 3A 68 2C B8 55 5C 72 82 80 93 F5 B1 80 [15:26:22]Write to MH i2c: 01 00 00 6B 0D 78 [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: 01 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: 01 07 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: 01 07 00 6B 0D 00 00 00 00 00 DC 0C 67 [15:26:22]RasterBufferAndPrint [15:26:22]line [15:26:22]line [15:26:22]line [15:26:22]line [15:26:22]line [15:26:22]written 0, free lines is 3298 [15:26:22]MH_Cut [15:26:22]Write to MH i2c: D1 01 00 72 0D 01 51 [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: D1 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: D1 01 00 [15:26:22]MH_I2C_Read... [15:26:22]Read from MH i2c: D1 01 00 72 0D 00 50 [15:26:22]Write to MH i2c: 01 00 00 73 0D 80 [15:26:22]Write i2c OK [15:26:22]MH_I2C_Read... [15:26:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1D CD 47 00 A7 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C5 B6 01 00 F4 03 04 00 27 9D 1B 66 B6 04 01 00 00 26 4F 66 32 B3 F1 CB DA [15:26:22]CommunicateWithHost err = 0 [15:26:22]CheckOFDResponse [15:26:22]1017 (14) - 77093643461234 [15:26:22]1041 (16) - 0000000000875019 [15:26:22]1040 (4) - 112325 [15:26:22]1012 (4) - 14.04.2024 09:08 [15:26:22]1206 (1) - 0 [15:26:22]OFD Sender: Remove packet 112325 [15:26:22]ProducePacketName [15:26:22]name=ofd_packets/00112325 [15:26:22]NVStorageDeleteData [15:26:23]OFD Sender: No OFD packet to send [15:26:23]*** Cut start [15:26:23]*** Partial cut [15:26:23]*** CUTSNS_PIN = 1 [15:26:23]*** CUTSNS_PIN = 0 [15:26:23]*** Brake cut motor [15:26:23]Read from MH i2c: 01 [15:26:23]MH_I2C_Read... [15:26:23]*** Stop cut motor [15:26:23]*** Cut end [15:26:23]Read from MH i2c: 01 07 00 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: 01 07 00 73 0D 00 00 00 00 00 FF 0F 95 [15:26:23]process_action close_receipt done [15:26:23]requested_data is exist [15:26:23]produce_requested_data [15:26:23]requested_item fm.sn is exist - process it [15:26:23]wFMCommunicate request_size=4 [15:26:23]MH_SAM_APDU [15:26:23]CAPDU: 80 11 00 00 [15:26:23]Write to MH i2c: E2 08 00 74 0D 80 11 00 00 00 00 00 00 FB [15:26:23]Write i2c OK [15:26:23]MH_I2C_Read... [15:26:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:23]Read from MH i2c: E2 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 17 00 [15:26:23]MH_I2C_Read... [15:26:23]Read from MH i2c: E2 17 00 74 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4C [15:26:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:26:23]wFMCommunicate OK [15:26:23]requested_item fd.num is exist - process it [15:26:23]SAM_PROTO_GetFieldsCounters [15:26:23]wFMCommunicate request_size=4 [15:26:23]MH_SAM_APDU [15:26:23]CAPDU: 80 13 00 00 [15:26:23]Write to MH i2c: E2 08 00 75 0D 80 13 00 00 00 00 00 00 FE [15:26:23]Write i2c OK [15:26:23]MH_I2C_Read... [15:26:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:24]Read from MH i2c: E2 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 62 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 62 00 75 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [15:26:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:26:24]wFMCommunicate OK [15:26:24]SAM_PROTO_GetFieldsCounters done [15:26:24]requested_item shift.num is exist - process it [15:26:24]requested_item shift.opened is exist - process it [15:26:24]req_shift_opened [15:26:24]FM_GetShiftState [15:26:24]SAM_PROTO_GetShiftState [15:26:24]wFMCommunicate request_size=4 [15:26:24]MH_SAM_APDU [15:26:24]CAPDU: 80 13 01 00 [15:26:24]Write to MH i2c: E2 08 00 76 0D 80 13 01 00 00 00 00 00 00 [15:26:24]Write i2c OK [15:26:24]MH_I2C_Read... [15:26:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:24]Read from MH i2c: E2 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 [15:26:24]MH_I2C_Read... [15:26:24]Read from MH i2c: E2 0E 00 76 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 98 [15:26:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:26:24]wFMCommunicate OK [15:26:24]SAM_PROTO_GetShiftState done [15:26:24]FM_GetShiftState done [15:26:24]req_shift_opened done [15:26:24]requested_item shift.open_date is exist - process it [15:26:24]req_shift_open_date [15:26:24]req_shift_open_date done [15:26:24]produce_requested_data done [15:26:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112325,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:26:24]process_action_free close_receipt [15:26:24]json_value_free [15:26:24]json_value_free done [15:26:24]process_json_proto returns [15:26:24]Send response to host [15:26:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112325,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:26:24]free response buf [15:26:24]execute_script done [15:26:24]execute_script returns [15:26:24]free content buf [15:26:24]Sock 9.Close socket [15:26:24]Sock 9.Thread stoped [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:05]accept exits with 8 [15:28:05]New connection [15:28:05]New thread 3066682724 created [15:28:05]Thread 3066826084 joined [15:28:05]Waiting for new connection... [15:28:05] Sock 8.Parse request [15:28:05]Sock 8.Check first char [15:28:05]Sock 8.First char is OK [15:28:05]request: POST /json_proto HTTP/1.0 [15:28:05]Method: POST [15:28:05]URL: /json_proto [15:28:05]Method is POST - this is cgi request [15:28:05]url: /json_proto [15:28:05]query_string will be loaded in cgi processing [15:28:05]execute_cgi json_proto POST (null) [15:28:05]execute_cgi path=json_proto method=POST [15:28:05]POST find Content-Length [15:28:05]Host: 172.17.96.197:8080 [15:28:05]Content-Length: 674 [15:28:05]Content-Type: application/json [15:28:05] [15:28:05]POST finish read [15:28:05]Found Content-Length = 674 [15:28:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48636", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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" ] } } [15:28:05]execute_script... [15:28: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)48636", "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.30, "quantity" : 22.980, "sum" : 1500.59, "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" ] } } [15:28:05]POST & json_proto [15:28:05]process_json_proto [15:28:05]json parsed OK: [15:28:05]protocol is kg_v1.0 [15:28:05]action value=close_receipt [15:28:05]process_action close_receipt [15:28:05]cmd_close_receipt [15:28:05]MH_GetDate [15:28:05]Write to MH i2c: F0 00 00 77 0D 73 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: F0 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: F0 09 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: F0 09 00 77 0D 00 05 F6 1B 66 E0 85 7F 64 40 [15:28:05]GetLastDocTimeStamp 1713108380 [15:28:05]current date 1713108485 [15:28:05]FM_GetShiftState [15:28:05]SAM_PROTO_GetShiftState [15:28:05]wFMCommunicate request_size=4 [15:28:05]MH_SAM_APDU [15:28:05]CAPDU: 80 13 01 00 [15:28:05]Write to MH i2c: E2 08 00 78 0D 80 13 01 00 00 00 00 00 02 [15:28:05]Write i2c OK [15:28:05]MH_I2C_Read... [15:28:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:05]Read from MH i2c: E2 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0E 00 [15:28:05]MH_I2C_Read... [15:28:05]Read from MH i2c: E2 0E 00 78 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9A [15:28:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:28:05]wFMCommunicate OK [15:28:05]SAM_PROTO_GetShiftState done [15:28:05]FM_GetShiftState done [15:28:05]opened in 1713054696 [15:28:05]opened+sec_in_day 1713141096 [15:28:05]quantity*price = 150059 [15:28:05]sum+1 = 150060 [15:28:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 225 14.04.2024 15:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112326 ФПД: 212420395123717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152805&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112326&fm=212420395123717&tin=02508201610067®Number=0000000000094237&sum=150000 [15:28:06]StoreToDocumentArchive [15:28:06]shift 357 fd 112326 [15:28:06]save to /storage/0357/doc_00112326 [15:28:06]save last doc name /storage/0357/doc_00112326 to /storage/kkm_last_doc_name [15:28:06]save OK [15:28:06]Clear old archive folders... [15:28:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:28:06]tlvbuf is 001496E0 [15:28:06]SAM_PROTO_ClearQueue [15:28:06]wFMCommunicate request_size=4 [15:28:06]MH_SAM_APDU [15:28:06]CAPDU: 80 09 00 00 [15:28:06]Write to MH i2c: E2 08 00 85 0D 80 09 00 00 00 00 00 00 04 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 85 0D 00 90 00 06 [15:28:06]RAPDU: 90 00 [15:28:06]wFMCommunicate OK [15:28:06]SAM_PROTO_ClearQueue done [15:28:06]KKMCreateOFDPacket [15:28:06]OFDProtocolAddRootSTLVToBuf [15:28:06]FM_MakeSignedData [15:28:06]FM_MakeSignedData [15:28:06]SAM_PROTO_SignData [15:28:06]wFMCommunicate request_size=4 [15:28:06]MH_SAM_APDU [15:28:06]CAPDU: 80 0D 01 02 [15:28:06]Write to MH i2c: E2 08 00 86 0D 80 0D 01 02 00 00 00 00 0C [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 86 0D 00 90 00 07 [15:28:06]RAPDU: 90 00 [15:28:06]wFMCommunicate OK [15:28:06]wFMCommunicate request_size=255 [15:28:06]MH_SAM_APDU [15:28:06]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C6 B6 01 00 35 04 06 00 [15:28:06]Write to MH i2c: E2 02 01 87 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C6 B6 01 00 35 04 06 00 00 00 48 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 87 0D 00 90 00 08 [15:28:06]RAPDU: 90 00 [15:28:06]wFMCommunicate OK [15:28:06]wFMCommunicate request_size=11 [15:28:06]MH_SAM_APDU [15:28:06]CAPDU: 80 0D 02 02 06 C1 31 FA 31 C4 05 [15:28:06]Write to MH i2c: E2 0E 00 88 0D 80 0D 02 02 06 00 C1 31 FA 31 C4 05 00 00 01 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 03 00 88 0D 00 90 00 09 [15:28:06]RAPDU: 90 00 [15:28:06]wFMCommunicate OK [15:28:06]wFMCommunicate request_size=4 [15:28:06]MH_SAM_APDU [15:28:06]CAPDU: 80 0D 03 02 [15:28:06]Write to MH i2c: E2 08 00 89 0D 80 0D 03 02 00 00 00 00 11 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 0B 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 0B 00 89 0D 00 B1 56 E5 23 0D DF 2F CD 90 00 09 [15:28:06]RAPDU: B1 56 E5 23 0D DF 2F CD 90 00 [15:28:06]wFMCommunicate OK [15:28:06]SAM_PROTO_SignData done [15:28:06]FM_MakeSignedData done [15:28:06]CreateOFDProtocolMessage [15:28:06]wFMCommunicate request_size=4 [15:28:06]MH_SAM_APDU [15:28:06]CAPDU: 80 11 00 00 [15:28:06]Write to MH i2c: E2 08 00 8A 0D 80 11 00 00 00 00 00 00 11 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:06]Read from MH i2c: E2 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 17 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: E2 17 00 8A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [15:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:28:06]wFMCommunicate OK [15:28:06]CreateOFDProtocolMessage done [15:28:06]OFDSenderStorePacket 112326 [15:28:06]StoreOFDPacket docnum=112326 [15:28:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 80 BA 08 01 D3 F6 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C6 B6 01 00 35 04 06 00 C1 31 FA 31 C4 05 B1 56 E5 23 0D DF 2F CD [15:28:06]CheckFolder [15:28:06]dirname=/storage/ofd_packets [15:28:06]CheckFolder done [15:28:06]ProducePacketName [15:28:06]name=ofd_packets/00112326 [15:28:06]NVStorageSaveData ofd_packets/00112326 [15:28:06]File name is /storage/ofd_packets/00112326 [15:28:06]Write 302 bytes [15:28:06]NVStorageSaveData done [15:28:06]OFDSenderStorePacket done [15:28:06]KKMCreateOFDPacket done [15:28:06]NVStorageSaveData kkm_last_timestamp [15:28:06]File name is /storage/kkm_last_timestamp [15:28:06]Write 4 bytes [15:28:06]NVStorageSaveData done [15:28:06]ExternCall_PrintAddStr [15:28:06]wPrintStart [15:28:06]Write to MH i2c: 01 00 00 8B 0D 98 [15:28:06]Write i2c OK [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 [15:28:06]MH_I2C_Read... [15:28:06]Read from MH i2c: 01 07 00 8B 0D 00 00 00 00 00 FF 0F AD [15:28:06]RasterBufferAndPrint [15:28:06]line Счет N : (1)48636 [15:28:06]line ИНН: 02508201610067 [15:28:06]line Контрольно-Кассовый Чек [15:28:06]line ПРОДАЖА [15:28:06]line ТРК (МРК, ГНК) : 31 [15:28:06]line Товар: 2710124130 [15:28:06]line SUPER 92-К-5 [15:28:06]line 22.980 * 65.30 [15:28:06]line = 1500.59 [15:28:06]line НДС 12% НСП 1% [15:28:06]line > о реализуемом товаре [15:28:06]line ОКРУГЛЕНИЕ: -0.59 [15:28:06]line ИТОГО: 1500.00 [15:28:06]line Внесено: 1500.00 [15:28:06]line СДАЧА: 0.00 [15:28:06]line НСП 1% : 13.28 [15:28:06]line НДС 12% : 159.35 [15:28:06]line Наличными: 1500.00 [15:28:06]line Безнал.: 0.00 [15:28:06]line Место: АЗС № 47 "Партнер Нефть" [15:28:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:28:06]line СНО: Общий режим [15:28:06]line Чек 225 14.04.2024 15:28 [15:28:06]line Смена: 357 ФФД: 1.0 [15:28:06]line ЗНМ: 0300000138 [15:28:06]line РНМ: 0000000000094237 [15:28:06]line Версия ККМ: 001 [15:28:06]line ФМ: 0000000000875019 [15:28:06]line ФД: 112326 [15:28:06]line ФПД: 212420395123717 [15:28:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T152805&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112326&fm=212420395123717&tin=02508201610067®Number=0000000000094237&sum=150000 [15:28:07]OFD Sender: Processing packet 112326 [packets to send 71, broken 70] [15:28:07]ProducePacketName [15:28:07]name=ofd_packets/00112326 [15:28:07]OFD Sender: To server: pG, [15:28:07]CommunicateWithHost lk.salyk.kg:30040 [15:28:07]ConnectInit lk.salyk.kg [15:28:07]written 0, free lines is 4095 [15:28:07]Connected sock=10 [15:28:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 80 BA 08 01 D3 F6 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C4 59 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 2B 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 05 F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C6 B6 01 00 35 04 06 00 C1 31 FA 31 C4 05 B1 56 E5 23 0D DF 2F CD [15:28:07]Write to MH i2c: 01 00 00 B6 0D C3 [15:28:07]Write i2c OK [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: 01 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: 01 07 00 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: 01 07 00 B6 0D 00 00 00 00 00 EE 0C C4 [15:28:07]RasterBufferAndPrint [15:28:07]line [15:28:07]line [15:28:07]line [15:28:07]line [15:28:07]line [15:28:07]written 0, free lines is 3316 [15:28:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 23 C0 47 00 A1 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C6 B6 01 00 F4 03 04 00 90 9D 1B 66 B6 04 01 00 00 8D 18 A4 9E 4F C3 9B 07 [15:28:07]CommunicateWithHost err = 0 [15:28:07]CheckOFDResponse [15:28:07]1017 (14) - 77093643461234 [15:28:07]1041 (16) - 0000000000875019 [15:28:07]1040 (4) - 112326 [15:28:07]1012 (4) - 14.04.2024 09:10 [15:28:07]1206 (1) - 0 [15:28:07]OFD Sender: Remove packet 112326 [15:28:07]ProducePacketName [15:28:07]name=ofd_packets/00112326 [15:28:07]NVStorageDeleteData [15:28:07]MH_Cut [15:28:07]Write to MH i2c: D1 01 00 BD 0D 01 9C [15:28:07]Write i2c OK [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: D1 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: D1 01 00 [15:28:07]MH_I2C_Read... [15:28:07]Read from MH i2c: D1 01 00 BD 0D 00 9B [15:28:07]Write to MH i2c: 01 00 00 BE 0D CB [15:28:07]Write i2c OK [15:28:07]MH_I2C_Read... [15:28:08]OFD Sender: No OFD packet to send [15:28:08]*** Cut start [15:28:08]*** Partial cut [15:28:08]*** CUTSNS_PIN = 1 [15:28:08]*** CUTSNS_PIN = 0 [15:28:08]*** Brake cut motor [15:28:08]Read from MH i2c: 01 [15:28:08]MH_I2C_Read... [15:28:08]*** Stop cut motor [15:28:08]*** Cut end [15:28:08]Read from MH i2c: 01 07 00 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: 01 07 00 BE 0D 00 00 00 00 00 FF 0F E0 [15:28:08]process_action close_receipt done [15:28:08]requested_data is exist [15:28:08]produce_requested_data [15:28:08]requested_item fm.sn is exist - process it [15:28:08]wFMCommunicate request_size=4 [15:28:08]MH_SAM_APDU [15:28:08]CAPDU: 80 11 00 00 [15:28:08]Write to MH i2c: E2 08 00 BF 0D 80 11 00 00 00 00 00 00 46 [15:28:08]Write i2c OK [15:28:08]MH_I2C_Read... [15:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:28:08]Read from MH i2c: E2 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 17 00 [15:28:08]MH_I2C_Read... [15:28:08]Read from MH i2c: E2 17 00 BF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 97 [15:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:28:08]wFMCommunicate OK [15:28:08]requested_item fd.num is exist - process it [15:28:08]SAM_PROTO_GetFieldsCounters [15:28:08]wFMCommunicate request_size=4 [15:28:08]MH_SAM_APDU [15:28:08]CAPDU: 80 13 00 00 [15:28:08]Write to MH i2c: E2 08 00 C0 0D 80 13 00 00 00 00 00 00 49 [15:28:08]Write i2c OK [15:28:08]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 62 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 62 00 C0 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [15:28:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_GetFieldsCounters done [15:28:09]requested_item shift.num is exist - process it [15:28:09]requested_item shift.opened is exist - process it [15:28:09]req_shift_opened [15:28:09]FM_GetShiftState [15:28:09]SAM_PROTO_GetShiftState [15:28:09]wFMCommunicate request_size=4 [15:28:09]MH_SAM_APDU [15:28:09]CAPDU: 80 13 01 00 [15:28:09]Write to MH i2c: E2 08 00 C1 0D 80 13 01 00 00 00 00 00 4B [15:28:09]Write i2c OK [15:28:09]MH_I2C_Read... [15:28:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:28:09]Read from MH i2c: E2 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 [15:28:09]MH_I2C_Read... [15:28:09]Read from MH i2c: E2 0E 00 C1 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E3 [15:28:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:28:09]wFMCommunicate OK [15:28:09]SAM_PROTO_GetShiftState done [15:28:09]FM_GetShiftState done [15:28:09]req_shift_opened done [15:28:09]requested_item shift.open_date is exist - process it [15:28:09]req_shift_open_date [15:28:09]req_shift_open_date done [15:28:09]produce_requested_data done [15:28:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112326,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:28:09]process_action_free close_receipt [15:28:09]json_value_free [15:28:09]json_value_free done [15:28:09]process_json_proto returns [15:28:09]Send response to host [15:28:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112326,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:28:09]free response buf [15:28:09]execute_script done [15:28:09]execute_script returns [15:28:09]free content buf [15:28:09]Sock 8.Close socket [15:28:09]Sock 8.Thread stoped [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:11]accept exits with 9 [15:31:11]New connection [15:31:11]New thread 3066826084 created [15:31:11]Thread 3066682724 joined [15:31:11]Waiting for new connection... [15:31:11] Sock 9.Parse request [15:31:11]Sock 9.Check first char [15:31:11]Sock 9.First char is OK [15:31:11]request: POST /json_proto HTTP/1.0 [15:31:11]Method: POST [15:31:11]URL: /json_proto [15:31:11]Method is POST - this is cgi request [15:31:11]url: /json_proto [15:31:11]query_string will be loaded in cgi processing [15:31:11]execute_cgi json_proto POST (null) [15:31:11]execute_cgi path=json_proto method=POST [15:31:11]POST find Content-Length [15:31:11]Host: 172.17.96.197:8080 [15:31:11]Content-Length: 674 [15:31:11]Content-Type: application/json [15:31:11] [15:31:11]POST finish read [15:31:11]Found Content-Length = 674 [15:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48638", "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.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:11]execute_script... [15:31: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)48638", "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.30, "quantity" : 15.320, "sum" : 1000.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:31:11]POST & json_proto [15:31:11]process_json_proto [15:31:11]json parsed OK: [15:31:11]protocol is kg_v1.0 [15:31:11]action value=close_receipt [15:31:11]process_action close_receipt [15:31:11]cmd_close_receipt [15:31:11]MH_GetDate [15:31:11]Write to MH i2c: F0 00 00 C2 0D BE [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: F0 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: F0 09 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: F0 09 00 C2 0D 00 BF F6 1B 66 E0 85 7F 64 45 [15:31:11]GetLastDocTimeStamp 1713108485 [15:31:11]current date 1713108671 [15:31:11]FM_GetShiftState [15:31:11]SAM_PROTO_GetShiftState [15:31:11]wFMCommunicate request_size=4 [15:31:11]MH_SAM_APDU [15:31:11]CAPDU: 80 13 01 00 [15:31:11]Write to MH i2c: E2 08 00 C3 0D 80 13 01 00 00 00 00 00 4D [15:31:11]Write i2c OK [15:31:11]MH_I2C_Read... [15:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:11]Read from MH i2c: E2 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 0E 00 [15:31:11]MH_I2C_Read... [15:31:11]Read from MH i2c: E2 0E 00 C3 0D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E5 [15:31:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:31:11]wFMCommunicate OK [15:31:11]SAM_PROTO_GetShiftState done [15:31:11]FM_GetShiftState done [15:31:11]opened in 1713054696 [15:31:11]opened+sec_in_day 1713141096 [15:31:11]quantity*price = 100039 [15:31:11]sum+1 = 100041 [15:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 226 14.04.2024 15:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112327 ФПД: 177654003042709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T153111&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112327&fm=177654003042709&tin=02508201610067®Number=0000000000094237&sum=100000 [15:31:12]StoreToDocumentArchive [15:31:12]shift 357 fd 112327 [15:31:12]save to /storage/0357/doc_00112327 [15:31:12]save last doc name /storage/0357/doc_00112327 to /storage/kkm_last_doc_name [15:31:12]save OK [15:31:12]Clear old archive folders... [15:31:12]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:31:12]tlvbuf is 0014A420 [15:31:12]SAM_PROTO_ClearQueue [15:31:12]wFMCommunicate request_size=4 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 09 00 00 [15:31:12]Write to MH i2c: E2 08 00 D0 0D 80 09 00 00 00 00 00 00 4F [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 D0 0D 00 90 00 51 [15:31:12]RAPDU: 90 00 [15:31:12]wFMCommunicate OK [15:31:12]SAM_PROTO_ClearQueue done [15:31:12]KKMCreateOFDPacket [15:31:12]OFDProtocolAddRootSTLVToBuf [15:31:12]FM_MakeSignedData [15:31:12]FM_MakeSignedData [15:31:12]SAM_PROTO_SignData [15:31:12]wFMCommunicate request_size=4 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 0D 01 02 [15:31:12]Write to MH i2c: E2 08 00 D1 0D 80 0D 01 02 00 00 00 00 57 [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 D1 0D 00 90 00 52 [15:31:12]RAPDU: 90 00 [15:31:12]wFMCommunicate OK [15:31:12]wFMCommunicate request_size=255 [15:31:12]MH_SAM_APDU [15:31:12]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 E2 00 00 00 F4 03 04 00 BF F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C7 B6 01 00 35 04 06 00 [15:31:12]Write to MH i2c: E2 02 01 D2 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 E2 00 00 00 F4 03 04 00 BF F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C7 B6 01 00 35 04 06 00 00 00 64 [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 D2 0D 00 90 00 53 [15:31:12]RAPDU: 90 00 [15:31:12]wFMCommunicate OK [15:31:12]wFMCommunicate request_size=11 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 0D 02 02 06 A1 93 4B BE 89 95 [15:31:12]Write to MH i2c: E2 0E 00 D3 0D 80 0D 02 02 06 00 A1 93 4B BE 89 95 00 00 C1 [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 03 00 D3 0D 00 90 00 54 [15:31:12]RAPDU: 90 00 [15:31:12]wFMCommunicate OK [15:31:12]wFMCommunicate request_size=4 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 0D 03 02 [15:31:12]Write to MH i2c: E2 08 00 D4 0D 80 0D 03 02 00 00 00 00 5C [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 0B 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 0B 00 D4 0D 00 BD 8A 51 78 29 18 A1 A9 90 00 F8 [15:31:12]RAPDU: BD 8A 51 78 29 18 A1 A9 90 00 [15:31:12]wFMCommunicate OK [15:31:12]SAM_PROTO_SignData done [15:31:12]FM_MakeSignedData done [15:31:12]CreateOFDProtocolMessage [15:31:12]wFMCommunicate request_size=4 [15:31:12]MH_SAM_APDU [15:31:12]CAPDU: 80 11 00 00 [15:31:12]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:12]Read from MH i2c: E2 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 17 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AD [15:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:31:12]wFMCommunicate OK [15:31:12]CreateOFDProtocolMessage done [15:31:12]OFDSenderStorePacket 112327 [15:31:12]StoreOFDPacket docnum=112327 [15:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 81 35 08 01 1B 4D 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 E2 00 00 00 F4 03 04 00 BF F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C7 B6 01 00 35 04 06 00 A1 93 4B BE 89 95 BD 8A 51 78 29 18 A1 A9 [15:31:12]CheckFolder [15:31:12]dirname=/storage/ofd_packets [15:31:12]CheckFolder done [15:31:12]ProducePacketName [15:31:12]name=ofd_packets/00112327 [15:31:12]NVStorageSaveData ofd_packets/00112327 [15:31:12]File name is /storage/ofd_packets/00112327 [15:31:12]Write 302 bytes [15:31:12]NVStorageSaveData done [15:31:12]OFDSenderStorePacket done [15:31:12]KKMCreateOFDPacket done [15:31:12]NVStorageSaveData kkm_last_timestamp [15:31:12]File name is /storage/kkm_last_timestamp [15:31:12]Write 4 bytes [15:31:12]NVStorageSaveData done [15:31:12]ExternCall_PrintAddStr [15:31:12]wPrintStart [15:31:12]Write to MH i2c: 01 00 00 D6 0D E3 [15:31:12]Write i2c OK [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: 01 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: 01 07 00 [15:31:12]MH_I2C_Read... [15:31:12]Read from MH i2c: 01 07 00 D6 0D 00 00 00 00 00 FF 0F F8 [15:31:12]RasterBufferAndPrint [15:31:12]line Счет N : (1)48638 [15:31:12]line ИНН: 02508201610067 [15:31:12]line Контрольно-Кассовый Чек [15:31:12]line ПРОДАЖА [15:31:12]line ТРК (МРК, ГНК) : 41 [15:31:12]line Товар: 2710124130 [15:31:12]line SUPER 92-К-5 [15:31:12]line 15.320 * 65.30 [15:31:12]line = 1000.40 [15:31:12]line НДС 12% НСП 1% [15:31:12]line > о реализуемом товаре [15:31:12]line ОКРУГЛЕНИЕ: -0.40 [15:31:12]line ИТОГО: 1000.00 [15:31:12]line Внесено: 1000.00 [15:31:12]line СДАЧА: 0.00 [15:31:12]line НСП 1% : 8.85 [15:31:12]line НДС 12% : 106.24 [15:31:12]line Наличными: 1000.00 [15:31:12]line Безнал.: 0.00 [15:31:12]line Место: АЗС № 47 "Партнер Нефть" [15:31:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:31:12]line СНО: Общий режим [15:31:12]line Чек 226 14.04.2024 15:31 [15:31:12]line Смена: 357 ФФД: 1.0 [15:31:12]line ЗНМ: 0300000138 [15:31:12]line РНМ: 0000000000094237 [15:31:12]line Версия ККМ: 001 [15:31:12]line ФМ: 0000000000875019 [15:31:12]line ФД: 112327 [15:31:12]line ФПД: 177654003042709 [15:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T153111&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112327&fm=177654003042709&tin=02508201610067®Number=0000000000094237&sum=100000 [15:31:13]OFD Sender: Processing packet 112327 [packets to send 71, broken 70] [15:31:13]ProducePacketName [15:31:13]name=ofd_packets/00112327 [15:31:13]OFD Sender: To server: pG, [15:31:13]CommunicateWithHost lk.salyk.kg:30040 [15:31:13]ConnectInit lk.salyk.kg [15:31:13]written 0, free lines is 4095 [15:31:13]Connected sock=10 [15:31:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 81 35 08 01 1B 4D 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 E2 00 00 00 F4 03 04 00 BF F6 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C7 B6 01 00 35 04 06 00 A1 93 4B BE 89 95 BD 8A 51 78 29 18 A1 A9 [15:31:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7F 8D 47 00 4D AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C7 B6 01 00 F4 03 04 00 4A 9E 1B 66 B6 04 01 00 00 01 82 B6 26 DB 19 26 E2 [15:31:13]CommunicateWithHost err = 0 [15:31:13]CheckOFDResponse [15:31:13]1017 (14) - 77093643461234 [15:31:13]1041 (16) - 0000000000875019 [15:31:13]1040 (4) - 112327 [15:31:13]1012 (4) - 14.04.2024 09:13 [15:31:13]1206 (1) - 0 [15:31:13]OFD Sender: Remove packet 112327 [15:31:13]ProducePacketName [15:31:13]name=ofd_packets/00112327 [15:31:13]NVStorageDeleteData [15:31:13]Write to MH i2c: 01 00 00 01 0E 0F [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 07 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: 01 07 00 01 0E 00 00 00 00 00 E6 0C 08 [15:31:13]RasterBufferAndPrint [15:31:13]line [15:31:13]line [15:31:13]line [15:31:13]line [15:31:13]line [15:31:13]written 0, free lines is 3308 [15:31:13]MH_Cut [15:31:13]Write to MH i2c: D1 01 00 08 0E 01 E8 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: D1 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: D1 01 00 [15:31:13]MH_I2C_Read... [15:31:13]Read from MH i2c: D1 01 00 08 0E 00 E7 [15:31:13]Write to MH i2c: 01 00 00 09 0E 17 [15:31:13]Write i2c OK [15:31:13]MH_I2C_Read... [15:31:14]OFD Sender: No OFD packet to send [15:31:14]*** Cut start [15:31:14]*** Partial cut [15:31:14]*** CUTSNS_PIN = 1 [15:31:14]*** CUTSNS_PIN = 0 [15:31:14]*** Brake cut motor [15:31:14]Read from MH i2c: 01 [15:31:14]MH_I2C_Read... [15:31:14]*** Stop cut motor [15:31:14]*** Cut end [15:31:14]Read from MH i2c: 01 07 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: 01 07 00 09 0E 00 00 00 00 00 FF 0F 2C [15:31:14]process_action close_receipt done [15:31:14]requested_data is exist [15:31:14]produce_requested_data [15:31:14]requested_item fm.sn is exist - process it [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 11 00 00 [15:31:14]Write to MH i2c: E2 08 00 0A 0E 80 11 00 00 00 00 00 00 92 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:31:14]Read from MH i2c: E2 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 17 00 [15:31:14]MH_I2C_Read... [15:31:14]Read from MH i2c: E2 17 00 0A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E3 [15:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:31:14]wFMCommunicate OK [15:31:14]requested_item fd.num is exist - process it [15:31:14]SAM_PROTO_GetFieldsCounters [15:31:14]wFMCommunicate request_size=4 [15:31:14]MH_SAM_APDU [15:31:14]CAPDU: 80 13 00 00 [15:31:14]Write to MH i2c: E2 08 00 0B 0E 80 13 00 00 00 00 00 00 95 [15:31:14]Write i2c OK [15:31:14]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 62 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 62 00 0B 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [15:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:31:15]wFMCommunicate OK [15:31:15]SAM_PROTO_GetFieldsCounters done [15:31:15]requested_item shift.num is exist - process it [15:31:15]requested_item shift.opened is exist - process it [15:31:15]req_shift_opened [15:31:15]FM_GetShiftState [15:31:15]SAM_PROTO_GetShiftState [15:31:15]wFMCommunicate request_size=4 [15:31:15]MH_SAM_APDU [15:31:15]CAPDU: 80 13 01 00 [15:31:15]Write to MH i2c: E2 08 00 0C 0E 80 13 01 00 00 00 00 00 97 [15:31:15]Write i2c OK [15:31:15]MH_I2C_Read... [15:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:31:15]Read from MH i2c: E2 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0E 00 [15:31:15]MH_I2C_Read... [15:31:15]Read from MH i2c: E2 0E 00 0C 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2F [15:31:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:31:15]wFMCommunicate OK [15:31:15]SAM_PROTO_GetShiftState done [15:31:15]FM_GetShiftState done [15:31:15]req_shift_opened done [15:31:15]requested_item shift.open_date is exist - process it [15:31:15]req_shift_open_date [15:31:15]req_shift_open_date done [15:31:15]produce_requested_data done [15:31:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112327,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:31:15]process_action_free close_receipt [15:31:15]json_value_free [15:31:15]json_value_free done [15:31:15]process_json_proto returns [15:31:15]Send response to host [15:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112327,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:31:15]free response buf [15:31:15]execute_script done [15:31:15]execute_script returns [15:31:15]free content buf [15:31:15]Sock 9.Close socket [15:31:15]Sock 9.Thread stoped [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:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]OFD Sender: No OFD packet to send [15:37:59]OFD Sender: No OFD packet to send [15:38:04]OFD Sender: No OFD packet to send [15:38:09]OFD Sender: No OFD packet to send [15:38:14]OFD Sender: No OFD packet to send [15:38:19]OFD Sender: No OFD packet to send [15:38:24]OFD Sender: No OFD packet to send [15:38:29]OFD Sender: No OFD packet to send [15:38:34]OFD Sender: No OFD packet to send [15:38:39]OFD Sender: No OFD packet to send [15:38:44]OFD Sender: No OFD packet to send [15:38:49]OFD Sender: No OFD packet to send [15:38:54]OFD Sender: No OFD packet to send [15:38:59]OFD Sender: No OFD packet to send [15:39:04]OFD Sender: No OFD packet to send [15:39:09]OFD Sender: No OFD packet to send [15:39:14]OFD Sender: No OFD packet to send [15:39:19]OFD Sender: No OFD packet to send [15:39:24]OFD Sender: No OFD packet to send [15:39:29]OFD Sender: No OFD packet to send [15:39:34]OFD Sender: No OFD packet to send [15:39:39]OFD Sender: No OFD packet to send [15:39:44]OFD Sender: No OFD packet to send [15:39:49]OFD Sender: No OFD packet to send [15:39:54]OFD Sender: No OFD packet to send [15:39:59]OFD Sender: No OFD packet to send [15:40:04]OFD Sender: No OFD packet to send [15:40:09]OFD Sender: No OFD packet to send [15:40:14]OFD Sender: No OFD packet to send [15:40:19]OFD Sender: No OFD packet to send [15:40:24]OFD Sender: No OFD packet to send [15:40:29]OFD Sender: No OFD packet to send [15:40:34]OFD Sender: No OFD packet to send [15:40:39]OFD Sender: No OFD packet to send [15:40:43]accept exits with 8 [15:40:43]New connection [15:40:43]New thread 3066682724 created [15:40:43]Thread 3066826084 joined [15:40:43]Waiting for new connection... [15:40:43] Sock 8.Parse request [15:40:43]Sock 8.Check first char [15:40:43]Sock 8.First char is OK [15:40:43]request: POST /json_proto HTTP/1.0 [15:40:43]Method: POST [15:40:43]URL: /json_proto [15:40:43]Method is POST - this is cgi request [15:40:43]url: /json_proto [15:40:43]query_string will be loaded in cgi processing [15:40:43]execute_cgi json_proto POST (null) [15:40:43]execute_cgi path=json_proto method=POST [15:40:43]POST find Content-Length [15:40:43]Host: 172.17.96.197:8080 [15:40:43]Content-Length: 678 [15:40:43]Content-Type: application/json [15:40:43] [15:40:43]POST finish read [15:40:43]Found Content-Length = 678 [15:40:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48639", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:43]execute_script... [15: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)48639", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:40:43]POST & json_proto [15:40:43]process_json_proto [15:40:43]json parsed OK: [15:40:43]protocol is kg_v1.0 [15:40:43]action value=close_receipt [15:40:43]process_action close_receipt [15:40:43]cmd_close_receipt [15:40:43]MH_GetDate [15:40:43]Write to MH i2c: F0 00 00 0D 0E 0A [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 09 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: F0 09 00 0D 0E 00 FB F8 1B 66 E0 85 7F 64 CF [15:40:43]GetLastDocTimeStamp 1713108671 [15:40:43]current date 1713109243 [15:40:43]FM_GetShiftState [15:40:43]SAM_PROTO_GetShiftState [15:40:43]wFMCommunicate request_size=4 [15:40:43]MH_SAM_APDU [15:40:43]CAPDU: 80 13 01 00 [15:40:43]Write to MH i2c: E2 08 00 0E 0E 80 13 01 00 00 00 00 00 99 [15:40:43]Write i2c OK [15:40:43]MH_I2C_Read... [15:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:43]Read from MH i2c: E2 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 [15:40:43]MH_I2C_Read... [15:40:43]Read from MH i2c: E2 0E 00 0E 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 31 [15:40:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:40:43]wFMCommunicate OK [15:40:43]SAM_PROTO_GetShiftState done [15:40:43]FM_GetShiftState done [15:40:43]opened in 1713054696 [15:40:43]opened+sec_in_day 1713141096 [15:40:43]quantity*price = 100056 [15:40:43]sum+1 = 100058 [15:40:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 227 14.04.2024 15:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112328 ФПД: 2047284049994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154043&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112328&fm=2047284049994&tin=02508201610067®Number=0000000000094237&sum=100000 [15:40:44]StoreToDocumentArchive [15:40:44]shift 357 fd 112328 [15:40:44]save to /storage/0357/doc_00112328 [15:40:44]save last doc name /storage/0357/doc_00112328 to /storage/kkm_last_doc_name [15:40:44]save OK [15:40:44]Clear old archive folders... [15:40:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:40:44]tlvbuf is 0016E340 [15:40:44]SAM_PROTO_ClearQueue [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 09 00 00 [15:40:44]Write to MH i2c: E2 08 00 1B 0E 80 09 00 00 00 00 00 00 9B [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 1B 0E 00 90 00 9D [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_ClearQueue done [15:40:44]KKMCreateOFDPacket [15:40:44]OFDProtocolAddRootSTLVToBuf [15:40:44]FM_MakeSignedData [15:40:44]FM_MakeSignedData [15:40:44]SAM_PROTO_SignData [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 01 02 [15:40:44]Write to MH i2c: E2 08 00 1C 0E 80 0D 01 02 00 00 00 00 A3 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 1C 0E 00 90 00 9E [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=255 [15:40:44]MH_SAM_APDU [15:40:44]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E3 00 00 00 F4 03 04 00 FB F8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C8 B6 01 00 35 04 06 00 01 DC AB A3 [15:40:44]Write to MH i2c: E2 02 01 1D 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E3 00 00 00 F4 03 04 00 FB F8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C8 B6 01 00 35 04 06 00 01 DC AB A3 00 00 CA [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 1D 0E 00 90 00 9F [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=7 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 02 02 02 78 4A [15:40:44]Write to MH i2c: E2 0A 00 1E 0E 80 0D 02 02 02 00 78 4A 00 00 6C [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 03 00 1E 0E 00 90 00 A0 [15:40:44]RAPDU: 90 00 [15:40:44]wFMCommunicate OK [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 0D 03 02 [15:40:44]Write to MH i2c: E2 08 00 1F 0E 80 0D 03 02 00 00 00 00 A8 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0B 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 0B 00 1F 0E 00 3F 78 26 2C 62 8F 60 D5 90 00 D8 [15:40:44]RAPDU: 3F 78 26 2C 62 8F 60 D5 90 00 [15:40:44]wFMCommunicate OK [15:40:44]SAM_PROTO_SignData done [15:40:44]FM_MakeSignedData done [15:40:44]CreateOFDProtocolMessage [15:40:44]wFMCommunicate request_size=4 [15:40:44]MH_SAM_APDU [15:40:44]CAPDU: 80 11 00 00 [15:40:44]Write to MH i2c: E2 08 00 20 0E 80 11 00 00 00 00 00 00 A8 [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]OFD Sender: No OFD packet to send [15:40:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:44]Read from MH i2c: E2 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 17 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: E2 17 00 20 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F9 [15:40:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:40:44]wFMCommunicate OK [15:40:44]CreateOFDProtocolMessage done [15:40:44]OFDSenderStorePacket 112328 [15:40:44]StoreOFDPacket docnum=112328 [15:40:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 46 33 04 01 19 79 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E3 00 00 00 F4 03 04 00 FB F8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C8 B6 01 00 35 04 06 00 01 DC AB A3 78 4A 3F 78 26 2C 62 8F 60 D5 [15:40:44]CheckFolder [15:40:44]dirname=/storage/ofd_packets [15:40:44]CheckFolder done [15:40:44]ProducePacketName [15:40:44]name=ofd_packets/00112328 [15:40:44]NVStorageSaveData ofd_packets/00112328 [15:40:44]File name is /storage/ofd_packets/00112328 [15:40:44]Write 298 bytes [15:40:44]NVStorageSaveData done [15:40:44]OFDSenderStorePacket done [15:40:44]KKMCreateOFDPacket done [15:40:44]NVStorageSaveData kkm_last_timestamp [15:40:44]File name is /storage/kkm_last_timestamp [15:40:44]Write 4 bytes [15:40:44]NVStorageSaveData done [15:40:44]ExternCall_PrintAddStr [15:40:44]wPrintStart [15:40:44]Write to MH i2c: 01 00 00 21 0E 2F [15:40:44]Write i2c OK [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: 01 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: 01 07 00 [15:40:44]MH_I2C_Read... [15:40:44]Read from MH i2c: 01 07 00 21 0E 00 00 00 00 00 FF 0F 44 [15:40:44]RasterBufferAndPrint [15:40:44]line Счет N : (1)48639 [15:40:44]line ИНН: 02508201610067 [15:40:44]line Контрольно-Кассовый Чек [15:40:44]line ПРОДАЖА [15:40:44]line ТРК (МРК, ГНК) : 51 [15:40:44]line Товар: 2710194210 [15:40:44]line ДТ-К-5 [15:40:44]line 13.820 * 72.40 [15:40:44]line = 1000.57 [15:40:44]line НДС 12% НСП 1% [15:40:44]line > о реализуемом товаре [15:40:44]line ОКРУГЛЕНИЕ: -0.57 [15:40:44]line ИТОГО: 1000.00 [15:40:44]line Внесено: 1000.00 [15:40:44]line СДАЧА: 0.00 [15:40:44]line НСП 1% : 8.85 [15:40:44]line НДС 12% : 106.25 [15:40:44]line Наличными: 1000.00 [15:40:44]line Безнал.: 0.00 [15:40:44]line Место: АЗС № 47 "Партнер Нефть" [15:40:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:40:44]line СНО: Общий режим [15:40:44]line Чек 227 14.04.2024 15:40 [15:40:44]line Смена: 357 ФФД: 1.0 [15:40:44]line ЗНМ: 0300000138 [15:40:44]line РНМ: 0000000000094237 [15:40:44]line Версия ККМ: 001 [15:40:44]line ФМ: 0000000000875019 [15:40:44]line ФД: 112328 [15:40:44]line ФПД: 2047284049994 [15:40:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154043&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112328&fm=2047284049994&tin=02508201610067®Number=0000000000094237&sum=100000 [15:40:45]OFD Sender: Processing packet 112328 [packets to send 71, broken 70] [15:40:45]ProducePacketName [15:40:45]name=ofd_packets/00112328 [15:40:45]OFD Sender: To server: pG, [15:40:45]CommunicateWithHost lk.salyk.kg:30040 [15:40:45]ConnectInit lk.salyk.kg [15:40:45]written 0, free lines is 4095 [15:40:45]Connected sock=10 [15:40:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 46 33 04 01 19 79 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E3 00 00 00 F4 03 04 00 FB F8 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C8 B6 01 00 35 04 06 00 01 DC AB A3 78 4A 3F 78 26 2C 62 8F 60 D5 [15:40:45]Write to MH i2c: 01 00 00 4C 0E 5A [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 [15:40:45]MH_I2C_Read... [15:40:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DE B5 47 00 96 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C8 B6 01 00 F4 03 04 00 86 A0 1B 66 B6 04 01 00 00 9A C0 88 B2 0B 92 B2 D0 [15:40:45]CommunicateWithHost err = 0 [15:40:45]CheckOFDResponse [15:40:45]1017 (14) - 77093643461234 [15:40:45]1041 (16) - 0000000000875019 [15:40:45]1040 (4) - 112328 [15:40:45]1012 (4) - 14.04.2024 09:23 [15:40:45]1206 (1) - 0 [15:40:45]OFD Sender: Remove packet 112328 [15:40:45]ProducePacketName [15:40:45]name=ofd_packets/00112328 [15:40:45]NVStorageDeleteData [15:40:45]Read from MH i2c: 01 07 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: 01 07 00 4C 0E 00 00 00 00 00 E0 0C 4D [15:40:45]RasterBufferAndPrint [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]line [15:40:45]written 0, free lines is 3341 [15:40:45]MH_Cut [15:40:45]Write to MH i2c: D1 01 00 53 0E 01 33 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 01 00 [15:40:45]MH_I2C_Read... [15:40:45]Read from MH i2c: D1 01 00 53 0E 00 32 [15:40:45]Write to MH i2c: 01 00 00 54 0E 62 [15:40:45]Write i2c OK [15:40:45]MH_I2C_Read... [15:40:46]OFD Sender: No OFD packet to send [15:40:46]*** Cut start [15:40:46]*** Partial cut [15:40:46]*** CUTSNS_PIN = 1 [15:40:46]*** CUTSNS_PIN = 0 [15:40:46]*** Brake cut motor [15:40:46]Read from MH i2c: 01 [15:40:46]MH_I2C_Read... [15:40:46]*** Stop cut motor [15:40:46]*** Cut end [15:40:46]Read from MH i2c: 01 07 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: 01 07 00 54 0E 00 00 00 00 00 FF 0F 77 [15:40:46]process_action close_receipt done [15:40:46]requested_data is exist [15:40:46]produce_requested_data [15:40:46]requested_item fm.sn is exist - process it [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 11 00 00 [15:40:46]Write to MH i2c: E2 08 00 55 0E 80 11 00 00 00 00 00 00 DD [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:40:46]Read from MH i2c: E2 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 [15:40:46]MH_I2C_Read... [15:40:46]Read from MH i2c: E2 17 00 55 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2E [15:40:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:40:46]wFMCommunicate OK [15:40:46]requested_item fd.num is exist - process it [15:40:46]SAM_PROTO_GetFieldsCounters [15:40:46]wFMCommunicate request_size=4 [15:40:46]MH_SAM_APDU [15:40:46]CAPDU: 80 13 00 00 [15:40:46]Write to MH i2c: E2 08 00 56 0E 80 13 00 00 00 00 00 00 E0 [15:40:46]Write i2c OK [15:40:46]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 62 00 56 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [15:40:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetFieldsCounters done [15:40:47]requested_item shift.num is exist - process it [15:40:47]requested_item shift.opened is exist - process it [15:40:47]req_shift_opened [15:40:47]FM_GetShiftState [15:40:47]SAM_PROTO_GetShiftState [15:40:47]wFMCommunicate request_size=4 [15:40:47]MH_SAM_APDU [15:40:47]CAPDU: 80 13 01 00 [15:40:47]Write to MH i2c: E2 08 00 57 0E 80 13 01 00 00 00 00 00 E2 [15:40:47]Write i2c OK [15:40:47]MH_I2C_Read... [15:40:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:40:47]Read from MH i2c: E2 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 [15:40:47]MH_I2C_Read... [15:40:47]Read from MH i2c: E2 0E 00 57 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7A [15:40:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:40:47]wFMCommunicate OK [15:40:47]SAM_PROTO_GetShiftState done [15:40:47]FM_GetShiftState done [15:40:47]req_shift_opened done [15:40:47]requested_item shift.open_date is exist - process it [15:40:47]req_shift_open_date [15:40:47]req_shift_open_date done [15:40:47]produce_requested_data done [15:40:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112328,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:40:47]process_action_free close_receipt [15:40:47]json_value_free [15:40:47]json_value_free done [15:40:47]process_json_proto returns [15:40:47]Send response to host [15:40:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112328,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:40:47]free response buf [15:40:47]execute_script done [15:40:47]execute_script returns [15:40:47]free content buf [15:40:47]Sock 8.Close socket [15:40:47]Sock 8.Thread stoped [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:35]accept exits with 9 [15:43:35]New connection [15:43:35]New thread 3066826084 created [15:43:35]Thread 3066682724 joined [15:43:35]Waiting for new connection... [15:43:35] Sock 9.Parse request [15:43:35]Sock 9.Check first char [15:43:35]Sock 9.First char is OK [15:43:35]request: POST /json_proto HTTP/1.0 [15:43:35]Method: POST [15:43:35]URL: /json_proto [15:43:35]Method is POST - this is cgi request [15:43:35]url: /json_proto [15:43:35]query_string will be loaded in cgi processing [15:43:35]execute_cgi json_proto POST (null) [15:43:35]execute_cgi path=json_proto method=POST [15:43:35]POST find Content-Length [15:43:35]Host: 172.17.96.197:8080 [15:43:35]Content-Length: 652 [15:43:35]Content-Type: application/json [15:43:35] [15:43:35]POST finish read [15:43:35]Found Content-Length = 652 [15:43:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10427", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:35]execute_script... [15:43:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10427", "tax_sys" : 0, "items" : [ { "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:35]POST & json_proto [15:43:35]process_json_proto [15:43:35]json parsed OK: [15:43:35]protocol is kg_v1.0 [15:43:35]action value=close_receipt [15:43:35]process_action close_receipt [15:43:35]cmd_close_receipt [15:43:35]MH_GetDate [15:43:35]Write to MH i2c: F0 00 00 58 0E 55 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: F0 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: F0 09 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: F0 09 00 58 0E 00 A7 F9 1B 66 E0 85 7F 64 C7 [15:43:35]GetLastDocTimeStamp 1713109243 [15:43:35]current date 1713109415 [15:43:35]FM_GetShiftState [15:43:35]SAM_PROTO_GetShiftState [15:43:35]wFMCommunicate request_size=4 [15:43:35]MH_SAM_APDU [15:43:35]CAPDU: 80 13 01 00 [15:43:35]Write to MH i2c: E2 08 00 59 0E 80 13 01 00 00 00 00 00 E4 [15:43:35]Write i2c OK [15:43:35]MH_I2C_Read... [15:43:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:35]Read from MH i2c: E2 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0E 00 [15:43:35]MH_I2C_Read... [15:43:35]Read from MH i2c: E2 0E 00 59 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7C [15:43:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:43:35]wFMCommunicate OK [15:43:35]SAM_PROTO_GetShiftState done [15:43:35]FM_GetShiftState done [15:43:35]opened in 1713054696 [15:43:35]opened+sec_in_day 1713141096 [15:43:35]quantity*price = 8500 [15:43:35]sum+1 = 8501 [15:43:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 228 14.04.2024 15:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112329 ФПД: 196141049581816 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154335&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112329&fm=196141049581816&tin=02508201610067®Number=0000000000094237&sum=8500 0 [15:43:36]StoreToDocumentArchive [15:43:36]shift 357 fd 112329 [15:43:36]save to /storage/0357/doc_00112329 [15:43:36]save last doc name /storage/0357/doc_00112329 to /storage/kkm_last_doc_name [15:43:36]save OK [15:43:36]Clear old archive folders... [15:43:36]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:43:36]tlvbuf is 00133A10 [15:43:36]SAM_PROTO_ClearQueue [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 09 00 00 [15:43:36]Write to MH i2c: E2 08 00 66 0E 80 09 00 00 00 00 00 00 E6 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 66 0E 00 90 00 E8 [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]SAM_PROTO_ClearQueue done [15:43:36]KKMCreateOFDPacket [15:43:36]OFDProtocolAddRootSTLVToBuf [15:43:36]FM_MakeSignedData [15:43:36]FM_MakeSignedData [15:43:36]SAM_PROTO_SignData [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 01 02 [15:43:36]Write to MH i2c: E2 08 00 67 0E 80 0D 01 02 00 00 00 00 EE [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]OFD Sender: No OFD packet to send [15:43:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 67 0E 00 90 00 E9 [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]wFMCommunicate request_size=255 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A7 F9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 [15:43:36]Write to MH i2c: E2 02 01 68 0E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A7 F9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 00 00 73 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 68 0E 00 90 00 EA [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]wFMCommunicate request_size=35 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C9 B6 01 00 35 04 06 00 B2 63 A5 96 10 F8 [15:43:36]Write to MH i2c: E2 26 00 69 0E 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C9 B6 01 00 35 04 06 00 B2 63 A5 96 10 F8 00 00 BA [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 03 00 69 0E 00 90 00 EB [15:43:36]RAPDU: 90 00 [15:43:36]wFMCommunicate OK [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 0D 03 02 [15:43:36]Write to MH i2c: E2 08 00 6A 0E 80 0D 03 02 00 00 00 00 F3 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 0B 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 0B 00 6A 0E 00 0A FA 67 6E 20 97 B3 25 90 00 5C [15:43:36]RAPDU: 0A FA 67 6E 20 97 B3 25 90 00 [15:43:36]wFMCommunicate OK [15:43:36]SAM_PROTO_SignData done [15:43:36]FM_MakeSignedData done [15:43:36]CreateOFDProtocolMessage [15:43:36]wFMCommunicate request_size=4 [15:43:36]MH_SAM_APDU [15:43:36]CAPDU: 80 11 00 00 [15:43:36]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:36]Read from MH i2c: E2 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 44 [15:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:43:36]wFMCommunicate OK [15:43:36]CreateOFDProtocolMessage done [15:43:36]OFDSenderStorePacket 112329 [15:43:36]StoreOFDPacket docnum=112329 [15:43:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 C8 CC 20 01 4F 03 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A7 F9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C9 B6 01 00 35 04 06 00 B2 63 A5 96 10 F8 0A FA 67 6E 20 97 B3 25 [15:43:36]CheckFolder [15:43:36]dirname=/storage/ofd_packets [15:43:36]CheckFolder done [15:43:36]ProducePacketName [15:43:36]name=ofd_packets/00112329 [15:43:36]NVStorageSaveData ofd_packets/00112329 [15:43:36]File name is /storage/ofd_packets/00112329 [15:43:36]Write 326 bytes [15:43:36]NVStorageSaveData done [15:43:36]OFDSenderStorePacket done [15:43:36]KKMCreateOFDPacket done [15:43:36]NVStorageSaveData kkm_last_timestamp [15:43:36]File name is /storage/kkm_last_timestamp [15:43:36]Write 4 bytes [15:43:36]NVStorageSaveData done [15:43:36]ExternCall_PrintAddStr [15:43:36]wPrintStart [15:43:36]Write to MH i2c: 01 00 00 6C 0E 7A [15:43:36]Write i2c OK [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 [15:43:36]MH_I2C_Read... [15:43:36]Read from MH i2c: 01 07 00 6C 0E 00 00 00 00 00 FF 0F 8F [15:43:36]RasterBufferAndPrint [15:43:36]line Счет N : (3)10427 [15:43:36]line ИНН: 02508201610067 [15:43:36]line Контрольно-Кассовый Чек [15:43:36]line ПРОДАЖА [15:43:36]line Товар: 54492509 [15:43:36]line Напиток Кока-Кола 0,25л [15:43:36]line 1.000 * 85.00 [15:43:36]line = 85.00 [15:43:36]line НДС 12% НСП 1% [15:43:36]line > о реализуемом товаре [15:43:36]line ИТОГО: 85.00 [15:43:36]line НСП 1% : 0.75 [15:43:36]line НДС 12% : 9.03 [15:43:36]line Наличными: 85.00 [15:43:36]line Безнал.: 0.00 [15:43:36]line Место: АЗС № 47 "Партнер Нефть" [15:43:36]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:43:36]line СНО: Общий режим [15:43:36]line Чек 228 14.04.2024 15:43 [15:43:36]line Смена: 357 ФФД: 1.0 [15:43:36]line ЗНМ: 0300000138 [15:43:36]line РНМ: 0000000000094237 [15:43:36]line Версия ККМ: 001 [15:43:36]line ФМ: 0000000000875019 [15:43:36]line ФД: 112329 [15:43:36]line ФПД: 196141049581816 [15:43:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154335&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112329&fm=196141049581816&tin=02508201610067®Number=0000000000094237&sum=8500 [15:43:37]line 0 [15:43:37]OFD Sender: Processing packet 112329 [packets to send 71, broken 70] [15:43:37]ProducePacketName [15:43:37]name=ofd_packets/00112329 [15:43:37]OFD Sender: To server: pG, [15:43:37]CommunicateWithHost lk.salyk.kg:30040 [15:43:37]ConnectInit lk.salyk.kg [15:43:37]written 0, free lines is 4095 [15:43:37]Connected sock=10 [15:43:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 C8 CC 20 01 4F 03 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 A7 F9 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C9 B6 01 00 35 04 06 00 B2 63 A5 96 10 F8 0A FA 67 6E 20 97 B3 25 [15:43:37]Write to MH i2c: 01 00 00 94 0E A2 [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 07 00 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: 01 07 00 94 0E 00 00 00 00 00 09 0D BF [15:43:37]RasterBufferAndPrint [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]line [15:43:37]written 0, free lines is 3343 [15:43:37]MH_Cut [15:43:37]Write to MH i2c: D1 01 00 9B 0E 01 7B [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 01 00 [15:43:37]MH_I2C_Read... [15:43:37]Read from MH i2c: D1 01 00 9B 0E 00 7A [15:43:37]Write to MH i2c: 01 00 00 9C 0E AA [15:43:37]Write i2c OK [15:43:37]MH_I2C_Read... [15:43:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8E 91 47 00 34 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 C9 B6 01 00 F4 03 04 00 32 A1 1B 66 B6 04 01 00 00 7B 82 04 27 DD 90 80 7D [15:43:37]CommunicateWithHost err = 0 [15:43:37]CheckOFDResponse [15:43:37]1017 (14) - 77093643461234 [15:43:37]1041 (16) - 0000000000875019 [15:43:37]1040 (4) - 112329 [15:43:37]1012 (4) - 14.04.2024 09:26 [15:43:37]1206 (1) - 0 [15:43:37]OFD Sender: Remove packet 112329 [15:43:37]ProducePacketName [15:43:37]name=ofd_packets/00112329 [15:43:37]NVStorageDeleteData [15:43:38]OFD Sender: No OFD packet to send [15:43:38]*** Cut start [15:43:38]*** Partial cut [15:43:38]*** CUTSNS_PIN = 1 [15:43:38]*** CUTSNS_PIN = 0 [15:43:38]*** Brake cut motor [15:43:38]Read from MH i2c: 01 [15:43:38]MH_I2C_Read... [15:43:38]*** Stop cut motor [15:43:38]*** Cut end [15:43:38]Read from MH i2c: 01 07 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: 01 07 00 9C 0E 00 00 00 00 00 FF 0F BF [15:43:38]process_action close_receipt done [15:43:38]requested_data is exist [15:43:38]produce_requested_data [15:43:38]requested_item fm.sn is exist - process it [15:43:38]wFMCommunicate request_size=4 [15:43:38]MH_SAM_APDU [15:43:38]CAPDU: 80 11 00 00 [15:43:38]Write to MH i2c: E2 08 00 9D 0E 80 11 00 00 00 00 00 00 25 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:38]Read from MH i2c: E2 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 17 00 [15:43:38]MH_I2C_Read... [15:43:38]Read from MH i2c: E2 17 00 9D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 76 [15:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:43:38]wFMCommunicate OK [15:43:38]requested_item fd.num is exist - process it [15:43:38]SAM_PROTO_GetFieldsCounters [15:43:38]wFMCommunicate request_size=4 [15:43:38]MH_SAM_APDU [15:43:38]CAPDU: 80 13 00 00 [15:43:38]Write to MH i2c: E2 08 00 9E 0E 80 13 00 00 00 00 00 00 28 [15:43:38]Write i2c OK [15:43:38]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 62 00 9E 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [15:43:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 C9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetFieldsCounters done [15:43:39]requested_item shift.num is exist - process it [15:43:39]requested_item shift.opened is exist - process it [15:43:39]req_shift_opened [15:43:39]FM_GetShiftState [15:43:39]SAM_PROTO_GetShiftState [15:43:39]wFMCommunicate request_size=4 [15:43:39]MH_SAM_APDU [15:43:39]CAPDU: 80 13 01 00 [15:43:39]Write to MH i2c: E2 08 00 9F 0E 80 13 01 00 00 00 00 00 2A [15:43:39]Write i2c OK [15:43:39]MH_I2C_Read... [15:43:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:39]Read from MH i2c: E2 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 [15:43:39]MH_I2C_Read... [15:43:39]Read from MH i2c: E2 0E 00 9F 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C2 [15:43:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:43:39]wFMCommunicate OK [15:43:39]SAM_PROTO_GetShiftState done [15:43:39]FM_GetShiftState done [15:43:39]req_shift_opened done [15:43:39]requested_item shift.open_date is exist - process it [15:43:39]req_shift_open_date [15:43:39]req_shift_open_date done [15:43:39]produce_requested_data done [15:43:39]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112329,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:43:39]process_action_free close_receipt [15:43:39]json_value_free [15:43:39]json_value_free done [15:43:39]process_json_proto returns [15:43:39]Send response to host [15:43:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112329,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:43:39]free response buf [15:43:39]execute_script done [15:43:39]execute_script returns [15:43:39]free content buf [15:43:39]Sock 9.Close socket [15:43:39]Sock 9.Thread stoped [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:51]accept exits with 8 [15:45:51]New connection [15:45:51]New thread 3066682724 created [15:45:51]Thread 3066826084 joined [15:45:51]Waiting for new connection... [15:45:51] Sock 8.Parse request [15:45:51]Sock 8.Check first char [15:45:51]Sock 8.First char is OK [15:45:51]request: POST /json_proto HTTP/1.0 [15:45:51]Method: POST [15:45:51]URL: /json_proto [15:45:51]Method is POST - this is cgi request [15:45:51]url: /json_proto [15:45:51]query_string will be loaded in cgi processing [15:45:51]execute_cgi json_proto POST (null) [15:45:51]execute_cgi path=json_proto method=POST [15:45:51]POST find Content-Length [15:45:51]Host: 172.17.96.197:8080 [15:45:51]Content-Length: 684 [15:45:51]Content-Type: application/json [15:45:51] [15:45:51]POST finish read [15:45:51]Found Content-Length = 684 [15:45:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.700, "sum" : 1200.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:51]execute_script... [15:45: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)48640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 36.700, "sum" : 1200.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:45:51]POST & json_proto [15:45:51]process_json_proto [15:45:51]json parsed OK: [15:45:51]protocol is kg_v1.0 [15:45:51]action value=close_receipt [15:45:51]process_action close_receipt [15:45:51]cmd_close_receipt [15:45:51]MH_GetDate [15:45:51]Write to MH i2c: F0 00 00 A0 0E 9D [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: F0 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: F0 09 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: F0 09 00 A0 0E 00 2F FA 1B 66 E0 85 7F 64 98 [15:45:51]GetLastDocTimeStamp 1713109415 [15:45:51]current date 1713109551 [15:45:51]FM_GetShiftState [15:45:51]SAM_PROTO_GetShiftState [15:45:51]wFMCommunicate request_size=4 [15:45:51]MH_SAM_APDU [15:45:51]CAPDU: 80 13 01 00 [15:45:51]Write to MH i2c: E2 08 00 A1 0E 80 13 01 00 00 00 00 00 2C [15:45:51]Write i2c OK [15:45:51]MH_I2C_Read... [15:45:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:51]Read from MH i2c: E2 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 0E 00 [15:45:51]MH_I2C_Read... [15:45:51]Read from MH i2c: E2 0E 00 A1 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [15:45:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:45:51]wFMCommunicate OK [15:45:51]SAM_PROTO_GetShiftState done [15:45:51]FM_GetShiftState done [15:45:51]opened in 1713054696 [15:45:51]opened+sec_in_day 1713141096 [15:45:51]quantity*price = 120009 [15:45:51]sum+1 = 120010 [15:45:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 229 14.04.2024 15:45 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112330 ФПД: 134246022597382 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154551&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112330&fm=134246022597382&tin=02508201610067®Number=0000000000094237&sum=120000 [15:45:52]StoreToDocumentArchive [15:45:52]shift 357 fd 112330 [15:45:52]save to /storage/0357/doc_00112330 [15:45:52]save last doc name /storage/0357/doc_00112330 to /storage/kkm_last_doc_name [15:45:52]save OK [15:45:52]Clear old archive folders... [15:45:52]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:45:52]tlvbuf is 00169590 [15:45:52]SAM_PROTO_ClearQueue [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 09 00 00 [15:45:52]Write to MH i2c: E2 08 00 AE 0E 80 09 00 00 00 00 00 00 2E [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 AE 0E 00 90 00 30 [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]SAM_PROTO_ClearQueue done [15:45:52]KKMCreateOFDPacket [15:45:52]OFDProtocolAddRootSTLVToBuf [15:45:52]FM_MakeSignedData [15:45:52]FM_MakeSignedData [15:45:52]SAM_PROTO_SignData [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 01 02 [15:45:52]Write to MH i2c: E2 08 00 AF 0E 80 0D 01 02 00 00 00 00 36 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 AF 0E 00 90 00 31 [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=255 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 2F FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CA B6 01 00 35 04 06 00 7A 18 [15:45:52]Write to MH i2c: E2 02 01 B0 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 2F FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CA B6 01 00 35 04 06 00 7A 18 00 00 95 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B0 0E 00 90 00 32 [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=9 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 02 02 04 96 7D 4B 06 [15:45:52]Write to MH i2c: E2 0C 00 B1 0E 80 0D 02 02 04 00 96 7D 4B 06 00 00 A5 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 03 00 B1 0E 00 90 00 33 [15:45:52]RAPDU: 90 00 [15:45:52]wFMCommunicate OK [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 0D 03 02 [15:45:52]Write to MH i2c: E2 08 00 B2 0E 80 0D 03 02 00 00 00 00 3B [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0B 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 0B 00 B2 0E 00 7E C6 AC B1 F2 C9 0F 97 90 00 3E [15:45:52]RAPDU: 7E C6 AC B1 F2 C9 0F 97 90 00 [15:45:52]wFMCommunicate OK [15:45:52]SAM_PROTO_SignData done [15:45:52]FM_MakeSignedData done [15:45:52]CreateOFDProtocolMessage [15:45:52]wFMCommunicate request_size=4 [15:45:52]MH_SAM_APDU [15:45:52]CAPDU: 80 11 00 00 [15:45:52]Write to MH i2c: E2 08 00 B3 0E 80 11 00 00 00 00 00 00 3B [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:52]Read from MH i2c: E2 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 17 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: E2 17 00 B3 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8C [15:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:45:52]wFMCommunicate OK [15:45:52]CreateOFDProtocolMessage done [15:45:52]OFDSenderStorePacket 112330 [15:45:52]StoreOFDPacket docnum=112330 [15:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 33 66 06 01 46 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 2F FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CA B6 01 00 35 04 06 00 7A 18 96 7D 4B 06 7E C6 AC B1 F2 C9 0F 97 [15:45:52]CheckFolder [15:45:52]dirname=/storage/ofd_packets [15:45:52]CheckFolder done [15:45:52]ProducePacketName [15:45:52]name=ofd_packets/00112330 [15:45:52]NVStorageSaveData ofd_packets/00112330 [15:45:52]File name is /storage/ofd_packets/00112330 [15:45:52]Write 300 bytes [15:45:52]NVStorageSaveData done [15:45:52]OFDSenderStorePacket done [15:45:52]KKMCreateOFDPacket done [15:45:52]NVStorageSaveData kkm_last_timestamp [15:45:52]File name is /storage/kkm_last_timestamp [15:45:52]Write 4 bytes [15:45:52]NVStorageSaveData done [15:45:52]ExternCall_PrintAddStr [15:45:52]wPrintStart [15:45:52]Write to MH i2c: 01 00 00 B4 0E C2 [15:45:52]Write i2c OK [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 [15:45:52]MH_I2C_Read... [15:45:52]Read from MH i2c: 01 07 00 B4 0E 00 00 00 00 00 FF 0F D7 [15:45:52]RasterBufferAndPrint [15:45:52]line Счет N : (1)48640 [15:45:52]line ИНН: 02508201610067 [15:45:52]line Контрольно-Кассовый Чек [15:45:52]line ПРОДАЖА [15:45:52]line ТРК (МРК, ГНК) : 71 [15:45:52]line Товар: 2711190000 [15:45:52]line ГАЗ-К-5 [15:45:52]line 36.700 * 32.70 [15:45:52]line = 1200.09 [15:45:52]line НДС 12% НСП 1% [15:45:52]line > о реализуемом товаре [15:45:52]line ОКРУГЛЕНИЕ: -0.09 [15:45:52]line ИТОГО: 1200.00 [15:45:52]line Внесено: 1200.00 [15:45:52]line СДАЧА: 0.00 [15:45:52]line НСП 1% : 10.62 [15:45:52]line НДС 12% : 127.44 [15:45:52]line Наличными: 1200.00 [15:45:52]line Безнал.: 0.00 [15:45:52]line Место: АЗС № 47 "Партнер Нефть" [15:45:52]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:45:52]line СНО: Общий режим [15:45:52]line Чек 229 14.04.2024 15:45 [15:45:52]line Смена: 357 ФФД: 1.0 [15:45:52]line ЗНМ: 0300000138 [15:45:52]line РНМ: 0000000000094237 [15:45:52]line Версия ККМ: 001 [15:45:52]line ФМ: 0000000000875019 [15:45:52]line ФД: 112330 [15:45:52]line ФПД: 134246022597382 [15:45:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154551&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112330&fm=134246022597382&tin=02508201610067®Number=0000000000094237&sum=120000 [15:45:53]OFD Sender: Processing packet 112330 [packets to send 71, broken 70] [15:45:53]ProducePacketName [15:45:53]name=ofd_packets/00112330 [15:45:53]OFD Sender: To server: pG, [15:45:53]CommunicateWithHost lk.salyk.kg:30040 [15:45:53]ConnectInit lk.salyk.kg [15:45:53]written 0, free lines is 4095 [15:45:53]Connected sock=10 [15:45:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 33 66 06 01 46 0C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5C 8F 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 C9 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 00 00 00 F4 03 04 00 2F FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CA B6 01 00 35 04 06 00 7A 18 96 7D 4B 06 7E C6 AC B1 F2 C9 0F 97 [15:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 79 11 47 00 39 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 38 37 35 30 31 39 10 04 04 00 CA B6 01 00 F4 03 04 00 BA A1 1B 66 B6 04 01 00 00 44 95 89 B1 F4 88 5F D1 [15:45:53]CommunicateWithHost err = 0 [15:45:53]CheckOFDResponse [15:45:53]1017 (14) - 77093643461234 [15:45:53]1041 (16) - 0000000000875019 [15:45:53]1040 (4) - 112330 [15:45:53]1012 (4) - 14.04.2024 09:28 [15:45:53]1206 (1) - 0 [15:45:53]OFD Sender: Remove packet 112330 [15:45:53]ProducePacketName [15:45:53]name=ofd_packets/00112330 [15:45:53]NVStorageDeleteData [15:45:53]Write to MH i2c: 01 00 00 DF 0E ED [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: 01 07 00 DF 0E 00 00 00 00 00 FB 0C FB [15:45:53]RasterBufferAndPrint [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]line [15:45:53]written 0, free lines is 3330 [15:45:53]MH_Cut [15:45:53]Write to MH i2c: D1 01 00 E6 0E 01 C6 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 01 00 [15:45:53]MH_I2C_Read... [15:45:53]Read from MH i2c: D1 01 00 E6 0E 00 C5 [15:45:53]Write to MH i2c: 01 00 00 E7 0E F5 [15:45:53]Write i2c OK [15:45:53]MH_I2C_Read... [15:45:54]OFD Sender: No OFD packet to send [15:45:54]*** Cut start [15:45:54]*** Partial cut [15:45:54]*** CUTSNS_PIN = 1 [15:45:54]*** CUTSNS_PIN = 0 [15:45:54]*** Brake cut motor [15:45:54]Read from MH i2c: 01 [15:45:54]MH_I2C_Read... [15:45:54]*** Stop cut motor [15:45:54]*** Cut end [15:45:54]Read from MH i2c: 01 07 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: 01 07 00 E7 0E 00 00 00 00 00 FF 0F 0A [15:45:54]process_action close_receipt done [15:45:54]requested_data is exist [15:45:54]produce_requested_data [15:45:54]requested_item fm.sn is exist - process it [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 11 00 00 [15:45:54]Write to MH i2c: E2 08 00 E8 0E 80 11 00 00 00 00 00 00 70 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:45:54]Read from MH i2c: E2 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 [15:45:54]MH_I2C_Read... [15:45:54]Read from MH i2c: E2 17 00 E8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C1 [15:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:45:54]wFMCommunicate OK [15:45:54]requested_item fd.num is exist - process it [15:45:54]SAM_PROTO_GetFieldsCounters [15:45:54]wFMCommunicate request_size=4 [15:45:54]MH_SAM_APDU [15:45:54]CAPDU: 80 13 00 00 [15:45:54]Write to MH i2c: E2 08 00 E9 0E 80 13 00 00 00 00 00 00 73 [15:45:54]Write i2c OK [15:45:54]MH_I2C_Read... [15:45:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:45:55]Read from MH i2c: E2 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 62 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 62 00 E9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [15:45:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:45:55]wFMCommunicate OK [15:45:55]SAM_PROTO_GetFieldsCounters done [15:45:55]requested_item shift.num is exist - process it [15:45:55]requested_item shift.opened is exist - process it [15:45:55]req_shift_opened [15:45:55]FM_GetShiftState [15:45:55]SAM_PROTO_GetShiftState [15:45:55]wFMCommunicate request_size=4 [15:45:55]MH_SAM_APDU [15:45:55]CAPDU: 80 13 01 00 [15:45:55]Write to MH i2c: E2 08 00 EA 0E 80 13 01 00 00 00 00 00 75 [15:45:55]Write i2c OK [15:45:55]MH_I2C_Read... [15:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:45:55]Read from MH i2c: E2 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 0E 00 [15:45:55]MH_I2C_Read... [15:45:55]Read from MH i2c: E2 0E 00 EA 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0D [15:45:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:45:55]wFMCommunicate OK [15:45:55]SAM_PROTO_GetShiftState done [15:45:55]FM_GetShiftState done [15:45:55]req_shift_opened done [15:45:55]requested_item shift.open_date is exist - process it [15:45:55]req_shift_open_date [15:45:55]req_shift_open_date done [15:45:55]produce_requested_data done [15:45:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112330,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:45:55]process_action_free close_receipt [15:45:55]json_value_free [15:45:55]json_value_free done [15:45:55]process_json_proto returns [15:45:55]Send response to host [15:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112330,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:45:55]free response buf [15:45:55]execute_script done [15:45:55]execute_script returns [15:45:55]free content buf [15:45:55]Sock 8.Close socket [15:45:55]Sock 8.Thread stoped [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:09]accept exits with 9 [15:46:09]New connection [15:46:09]New thread 3066826084 created [15:46:09]Thread 3066682724 joined [15:46:09]Waiting for new connection... [15:46:09] Sock 9.Parse request [15:46:09]Sock 9.Check first char [15:46:09]Sock 9.First char is OK [15:46:09]request: POST /json_proto HTTP/1.0 [15:46:09]Method: POST [15:46:09]URL: /json_proto [15:46:09]Method is POST - this is cgi request [15:46:09]url: /json_proto [15:46:09]query_string will be loaded in cgi processing [15:46:09]execute_cgi json_proto POST (null) [15:46:09]execute_cgi path=json_proto method=POST [15:46:09]POST find Content-Length [15:46:09]Host: 172.17.96.197:8080 [15:46:09]Content-Length: 678 [15:46:09]Content-Type: application/json [15:46:09] [15:46:09]POST finish read [15:46:09]Found Content-Length = 678 [15:46:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48645", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:09]execute_script... [15:46: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)48645", "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.40, "quantity" : 13.820, "sum" : 1000.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:09]POST & json_proto [15:46:09]process_json_proto [15:46:09]json parsed OK: [15:46:09]protocol is kg_v1.0 [15:46:09]action value=close_receipt [15:46:09]process_action close_receipt [15:46:09]cmd_close_receipt [15:46:09]MH_GetDate [15:46:09]Write to MH i2c: F0 00 00 EB 0E E8 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: F0 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: F0 09 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: F0 09 00 EB 0E 00 41 FA 1B 66 E0 85 7F 64 F5 [15:46:09]GetLastDocTimeStamp 1713109551 [15:46:09]current date 1713109569 [15:46:09]FM_GetShiftState [15:46:09]SAM_PROTO_GetShiftState [15:46:09]wFMCommunicate request_size=4 [15:46:09]MH_SAM_APDU [15:46:09]CAPDU: 80 13 01 00 [15:46:09]Write to MH i2c: E2 08 00 EC 0E 80 13 01 00 00 00 00 00 77 [15:46:09]Write i2c OK [15:46:09]MH_I2C_Read... [15:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:09]Read from MH i2c: E2 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0E 00 [15:46:09]MH_I2C_Read... [15:46:09]Read from MH i2c: E2 0E 00 EC 0E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [15:46:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:09]wFMCommunicate OK [15:46:09]SAM_PROTO_GetShiftState done [15:46:09]FM_GetShiftState done [15:46:09]opened in 1713054696 [15:46:09]opened+sec_in_day 1713141096 [15:46:09]quantity*price = 100056 [15:46:09]sum+1 = 100058 [15:46:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 230 14.04.2024 15:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112331 ФПД: 92397374479964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154609&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112331&fm=92397374479964&tin=02508201610067®Number=0000000000094237&sum=100000 [15:46:10]StoreToDocumentArchive [15:46:10]shift 357 fd 112331 [15:46:10]save to /storage/0357/doc_00112331 [15:46:10]save last doc name /storage/0357/doc_00112331 to /storage/kkm_last_doc_name [15:46:10]save OK [15:46:10]Clear old archive folders... [15:46:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:46:10]tlvbuf is 0018A7D0 [15:46:10]SAM_PROTO_ClearQueue [15:46:10]wFMCommunicate request_size=4 [15:46:10]MH_SAM_APDU [15:46:10]CAPDU: 80 09 00 00 [15:46:10]Write to MH i2c: E2 08 00 F9 0E 80 09 00 00 00 00 00 00 79 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 F9 0E 00 90 00 7B [15:46:10]RAPDU: 90 00 [15:46:10]wFMCommunicate OK [15:46:10]SAM_PROTO_ClearQueue done [15:46:10]KKMCreateOFDPacket [15:46:10]OFDProtocolAddRootSTLVToBuf [15:46:10]FM_MakeSignedData [15:46:10]FM_MakeSignedData [15:46:10]SAM_PROTO_SignData [15:46:10]wFMCommunicate request_size=4 [15:46:10]MH_SAM_APDU [15:46:10]CAPDU: 80 0D 01 02 [15:46:10]Write to MH i2c: E2 08 00 FA 0E 80 0D 01 02 00 00 00 00 81 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 FA 0E 00 90 00 7C [15:46:10]RAPDU: 90 00 [15:46:10]wFMCommunicate OK [15:46:10]wFMCommunicate request_size=255 [15:46:10]MH_SAM_APDU [15:46:10]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E6 00 00 00 F4 03 04 00 41 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CB B6 01 00 35 04 06 00 54 08 F0 AF [15:46:10]Write to MH i2c: E2 02 01 FB 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E6 00 00 00 F4 03 04 00 41 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CB B6 01 00 35 04 06 00 54 08 F0 AF 00 00 C6 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 FB 0E 00 90 00 7D [15:46:10]RAPDU: 90 00 [15:46:10]wFMCommunicate OK [15:46:10]wFMCommunicate request_size=7 [15:46:10]MH_SAM_APDU [15:46:10]CAPDU: 80 0D 02 02 02 1E 5C [15:46:10]Write to MH i2c: E2 0A 00 FC 0E 80 0D 02 02 02 00 1E 5C 00 00 02 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 03 00 FC 0E 00 90 00 7E [15:46:10]RAPDU: 90 00 [15:46:10]wFMCommunicate OK [15:46:10]wFMCommunicate request_size=4 [15:46:10]MH_SAM_APDU [15:46:10]CAPDU: 80 0D 03 02 [15:46:10]Write to MH i2c: E2 08 00 FD 0E 80 0D 03 02 00 00 00 00 86 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 0B 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 0B 00 FD 0E 00 91 A3 42 60 65 0E 6A 03 90 00 3D [15:46:10]RAPDU: 91 A3 42 60 65 0E 6A 03 90 00 [15:46:10]wFMCommunicate OK [15:46:10]SAM_PROTO_SignData done [15:46:10]FM_MakeSignedData done [15:46:10]CreateOFDProtocolMessage [15:46:10]wFMCommunicate request_size=4 [15:46:10]MH_SAM_APDU [15:46:10]CAPDU: 80 11 00 00 [15:46:10]Write to MH i2c: E2 08 00 FE 0E 80 11 00 00 00 00 00 00 86 [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:10]Read from MH i2c: E2 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 17 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: E2 17 00 FE 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D7 [15:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:10]wFMCommunicate OK [15:46:10]CreateOFDProtocolMessage done [15:46:10]OFDSenderStorePacket 112331 [15:46:10]StoreOFDPacket docnum=112331 [15:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 F4 E4 04 01 EE 3B 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E6 00 00 00 F4 03 04 00 41 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CB B6 01 00 35 04 06 00 54 08 F0 AF 1E 5C 91 A3 42 60 65 0E 6A 03 [15:46:10]CheckFolder [15:46:10]dirname=/storage/ofd_packets [15:46:10]CheckFolder done [15:46:10]ProducePacketName [15:46:10]name=ofd_packets/00112331 [15:46:10]NVStorageSaveData ofd_packets/00112331 [15:46:10]File name is /storage/ofd_packets/00112331 [15:46:10]Write 298 bytes [15:46:10]NVStorageSaveData done [15:46:10]OFDSenderStorePacket done [15:46:10]KKMCreateOFDPacket done [15:46:10]NVStorageSaveData kkm_last_timestamp [15:46:10]File name is /storage/kkm_last_timestamp [15:46:10]Write 4 bytes [15:46:10]NVStorageSaveData done [15:46:10]ExternCall_PrintAddStr [15:46:10]wPrintStart [15:46:10]Write to MH i2c: 01 00 00 FF 0E 0D [15:46:10]Write i2c OK [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: 01 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: 01 07 00 [15:46:10]MH_I2C_Read... [15:46:10]Read from MH i2c: 01 07 00 FF 0E 00 00 00 00 00 FF 0F 22 [15:46:10]RasterBufferAndPrint [15:46:10]line Счет N : (1)48645 [15:46:10]line ИНН: 02508201610067 [15:46:10]line Контрольно-Кассовый Чек [15:46:10]line ПРОДАЖА [15:46:10]line ТРК (МРК, ГНК) : 51 [15:46:10]line Товар: 2710194210 [15:46:10]line ДТ-К-5 [15:46:10]line 13.820 * 72.40 [15:46:10]line = 1000.57 [15:46:10]line НДС 12% НСП 1% [15:46:10]line > о реализуемом товаре [15:46:10]line ОКРУГЛЕНИЕ: -0.57 [15:46:10]line ИТОГО: 1000.00 [15:46:10]line Внесено: 1000.00 [15:46:10]line СДАЧА: 0.00 [15:46:10]line НСП 1% : 8.85 [15:46:10]line НДС 12% : 106.25 [15:46:10]line Наличными: 1000.00 [15:46:10]line Безнал.: 0.00 [15:46:10]line Место: АЗС № 47 "Партнер Нефть" [15:46:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:46:10]line СНО: Общий режим [15:46:10]line Чек 230 14.04.2024 15:46 [15:46:10]line Смена: 357 ФФД: 1.0 [15:46:10]line ЗНМ: 0300000138 [15:46:11]line РНМ: 0000000000094237 [15:46:11]line Версия ККМ: 001 [15:46:11]line ФМ: 0000000000875019 [15:46:11]line ФД: 112331 [15:46:11]line ФПД: 92397374479964 [15:46:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154609&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112331&fm=92397374479964&tin=02508201610067®Number=0000000000094237&sum=100000 [15:46:11]OFD Sender: Processing packet 112331 [packets to send 71, broken 70] [15:46:11]ProducePacketName [15:46:11]name=ofd_packets/00112331 [15:46:11]OFD Sender: To server: pG, [15:46:11]CommunicateWithHost lk.salyk.kg:30040 [15:46:11]ConnectInit lk.salyk.kg [15:46:11]written 0, free lines is 4095 [15:46:11]Connected sock=10 [15:46:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 F4 E4 04 01 EE 3B 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 E6 00 00 00 F4 03 04 00 41 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CB B6 01 00 35 04 06 00 54 08 F0 AF 1E 5C 91 A3 42 60 65 0E 6A 03 [15:46:11]Write to MH i2c: 01 00 00 2A 0F 39 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: 01 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: 01 07 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: 01 07 00 2A 0F 00 00 00 00 00 E6 0C 32 [15:46:11]RasterBufferAndPrint [15:46:11]line [15:46:11]line [15:46:11]line [15:46:11]line [15:46:11]line [15:46:11]written 0, free lines is 3308 [15:46:11]MH_Cut [15:46:11]Write to MH i2c: D1 01 00 31 0F 01 12 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: D1 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: D1 01 00 [15:46:11]MH_I2C_Read... [15:46:11]Read from MH i2c: D1 01 00 31 0F 00 11 [15:46:11]Write to MH i2c: 01 00 00 32 0F 41 [15:46:11]Write i2c OK [15:46:11]MH_I2C_Read... [15:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 49 A5 47 00 22 DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CB B6 01 00 F4 03 04 00 CC A1 1B 66 B6 04 01 00 00 CC 63 D8 3A DA AB B3 19 [15:46:11]CommunicateWithHost err = 0 [15:46:11]CheckOFDResponse [15:46:11]1017 (14) - 77093643461234 [15:46:11]1041 (16) - 0000000000875019 [15:46:11]1040 (4) - 112331 [15:46:11]1012 (4) - 14.04.2024 09:28 [15:46:11]1206 (1) - 0 [15:46:11]OFD Sender: Remove packet 112331 [15:46:11]ProducePacketName [15:46:11]name=ofd_packets/00112331 [15:46:11]NVStorageDeleteData [15:46:12]OFD Sender: No OFD packet to send [15:46:12]*** Cut start [15:46:12]*** Partial cut [15:46:12]*** CUTSNS_PIN = 1 [15:46:12]*** CUTSNS_PIN = 0 [15:46:12]*** Brake cut motor [15:46:12]Read from MH i2c: 01 [15:46:12]MH_I2C_Read... [15:46:12]*** Stop cut motor [15:46:12]*** Cut end [15:46:12]Read from MH i2c: 01 07 00 [15:46:12]MH_I2C_Read... [15:46:12]Read from MH i2c: 01 07 00 32 0F 00 00 00 00 00 FF 0F 56 [15:46:12]process_action close_receipt done [15:46:12]requested_data is exist [15:46:12]produce_requested_data [15:46:12]requested_item fm.sn is exist - process it [15:46:12]wFMCommunicate request_size=4 [15:46:12]MH_SAM_APDU [15:46:12]CAPDU: 80 11 00 00 [15:46:12]Write to MH i2c: E2 08 00 33 0F 80 11 00 00 00 00 00 00 BC [15:46:12]Write i2c OK [15:46:12]MH_I2C_Read... [15:46:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:13]Read from MH i2c: E2 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 17 00 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 17 00 33 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0D [15:46:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:13]wFMCommunicate OK [15:46:13]requested_item fd.num is exist - process it [15:46:13]SAM_PROTO_GetFieldsCounters [15:46:13]wFMCommunicate request_size=4 [15:46:13]MH_SAM_APDU [15:46:13]CAPDU: 80 13 00 00 [15:46:13]Write to MH i2c: E2 08 00 34 0F 80 13 00 00 00 00 00 00 BF [15:46:13]Write i2c OK [15:46:13]MH_I2C_Read... [15:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:13]Read from MH i2c: E2 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 62 00 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 62 00 34 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [15:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:13]wFMCommunicate OK [15:46:13]SAM_PROTO_GetFieldsCounters done [15:46:13]requested_item shift.num is exist - process it [15:46:13]requested_item shift.opened is exist - process it [15:46:13]req_shift_opened [15:46:13]FM_GetShiftState [15:46:13]SAM_PROTO_GetShiftState [15:46:13]wFMCommunicate request_size=4 [15:46:13]MH_SAM_APDU [15:46:13]CAPDU: 80 13 01 00 [15:46:13]Write to MH i2c: E2 08 00 35 0F 80 13 01 00 00 00 00 00 C1 [15:46:13]Write i2c OK [15:46:13]MH_I2C_Read... [15:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:13]Read from MH i2c: E2 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 0E 00 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 0E 00 35 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 59 [15:46:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:13]wFMCommunicate OK [15:46:13]SAM_PROTO_GetShiftState done [15:46:13]FM_GetShiftState done [15:46:13]req_shift_opened done [15:46:13]requested_item shift.open_date is exist - process it [15:46:13]req_shift_open_date [15:46:13]req_shift_open_date done [15:46:13]produce_requested_data done [15:46:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112331,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:46:13]process_action_free close_receipt [15:46:13]json_value_free [15:46:13]json_value_free done [15:46:13]process_json_proto returns [15:46:13]Send response to host [15:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112331,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:46:13]free response buf [15:46:13]execute_script done [15:46:13]execute_script returns [15:46:13]free content buf [15:46:13]Sock 9.Close socket [15:46:13]Sock 9.Thread stoped [15:46:13]accept exits with 8 [15:46:13]New connection [15:46:13]New thread 3066682724 created [15:46:13]Thread 3066826084 joined [15:46:13]Waiting for new connection... [15:46:13] Sock 8.Parse request [15:46:13]Sock 8.Check first char [15:46:13]Sock 8.First char is OK [15:46:13]request: POST /json_proto HTTP/1.0 [15:46:13]Method: POST [15:46:13]URL: /json_proto [15:46:13]Method is POST - this is cgi request [15:46:13]url: /json_proto [15:46:13]query_string will be loaded in cgi processing [15:46:13]execute_cgi json_proto POST (null) [15:46:13]execute_cgi path=json_proto method=POST [15:46:13]POST find Content-Length [15:46:13]Host: 172.17.96.197:8080 [15:46:13]Content-Length: 676 [15:46:13]Content-Type: application/json [15:46:13] [15:46:13]POST finish read [15:46:13]Found Content-Length = 676 [15:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.280, "sum" : 600.30, "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" ] } } [15:46:13]execute_script... [15:46: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)48642", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.280, "sum" : 600.30, "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" ] } } [15:46:13]POST & json_proto [15:46:13]process_json_proto [15:46:13]json parsed OK: [15:46:13]protocol is kg_v1.0 [15:46:13]action value=close_receipt [15:46:13]process_action close_receipt [15:46:13]cmd_close_receipt [15:46:13]MH_GetDate [15:46:13]Write to MH i2c: F0 00 00 36 0F 34 [15:46:13]Write i2c OK [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: F0 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: F0 09 00 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: F0 09 00 36 0F 00 46 FA 1B 66 E0 85 7F 64 46 [15:46:13]GetLastDocTimeStamp 1713109569 [15:46:13]current date 1713109574 [15:46:13]FM_GetShiftState [15:46:13]SAM_PROTO_GetShiftState [15:46:13]wFMCommunicate request_size=4 [15:46:13]MH_SAM_APDU [15:46:13]CAPDU: 80 13 01 00 [15:46:13]Write to MH i2c: E2 08 00 37 0F 80 13 01 00 00 00 00 00 C3 [15:46:13]Write i2c OK [15:46:13]MH_I2C_Read... [15:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:13]Read from MH i2c: E2 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 0E 00 [15:46:13]MH_I2C_Read... [15:46:13]Read from MH i2c: E2 0E 00 37 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5B [15:46:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:13]wFMCommunicate OK [15:46:13]SAM_PROTO_GetShiftState done [15:46:13]FM_GetShiftState done [15:46:13]opened in 1713054696 [15:46:13]opened+sec_in_day 1713141096 [15:46:13]quantity*price = 60030 [15:46:13]sum+1 = 60031 [15:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 231 14.04.2024 15:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112332 ФПД: 116833161219942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154614&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112332&fm=116833161219942&tin=02508201610067®Number=0000000000094237&sum=60000 [15:46:14]StoreToDocumentArchive [15:46:14]shift 357 fd 112332 [15:46:14]save to /storage/0357/doc_00112332 [15:46:14]save last doc name /storage/0357/doc_00112332 to /storage/kkm_last_doc_name [15:46:14]save OK [15:46:14]Clear old archive folders... [15:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:14]tlvbuf is 00199DF0 [15:46:14]SAM_PROTO_ClearQueue [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 09 00 00 [15:46:14]Write to MH i2c: E2 08 00 44 0F 80 09 00 00 00 00 00 00 C5 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 44 0F 00 90 00 C7 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]SAM_PROTO_ClearQueue done [15:46:14]KKMCreateOFDPacket [15:46:14]OFDProtocolAddRootSTLVToBuf [15:46:14]FM_MakeSignedData [15:46:14]FM_MakeSignedData [15:46:14]SAM_PROTO_SignData [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 0D 01 02 [15:46:14]Write to MH i2c: E2 08 00 45 0F 80 0D 01 02 00 00 00 00 CD [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 03 00 45 0F 00 90 00 C8 [15:46:14]RAPDU: 90 00 [15:46:14]wFMCommunicate OK [15:46:14]wFMCommunicate request_size=255 [15:46:14]MH_SAM_APDU [15:46:14]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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CC B6 01 00 35 04 06 00 6A [15:46:14]Write to MH i2c: E2 02 01 46 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CC B6 01 00 35 04 06 00 6A 00 00 CA [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 46 0F 00 90 00 C9 [15:46:15]RAPDU: 90 00 [15:46:15]wFMCommunicate OK [15:46:15]wFMCommunicate request_size=10 [15:46:15]MH_SAM_APDU [15:46:15]CAPDU: 80 0D 02 02 05 42 57 12 8F 66 [15:46:15]Write to MH i2c: E2 0D 00 47 0F 80 0D 02 02 05 00 42 57 12 8F 66 00 00 7A [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 47 0F 00 90 00 CA [15:46:15]RAPDU: 90 00 [15:46:15]wFMCommunicate OK [15:46:15]wFMCommunicate request_size=4 [15:46:15]MH_SAM_APDU [15:46:15]CAPDU: 80 0D 03 02 [15:46:15]Write to MH i2c: E2 08 00 48 0F 80 0D 03 02 00 00 00 00 D2 [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 0B 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 0B 00 48 0F 00 2A F4 4F 98 1E DB CF 58 90 00 F8 [15:46:15]RAPDU: 2A F4 4F 98 1E DB CF 58 90 00 [15:46:15]wFMCommunicate OK [15:46:15]SAM_PROTO_SignData done [15:46:15]FM_MakeSignedData done [15:46:15]CreateOFDProtocolMessage [15:46:15]wFMCommunicate request_size=4 [15:46:15]MH_SAM_APDU [15:46:15]CAPDU: 80 11 00 00 [15:46:15]Write to MH i2c: E2 08 00 49 0F 80 11 00 00 00 00 00 00 D2 [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 17 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 17 00 49 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 23 [15:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:15]wFMCommunicate OK [15:46:15]CreateOFDProtocolMessage done [15:46:15]OFDSenderStorePacket 112332 [15:46:15]StoreOFDPacket docnum=112332 [15:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 26 E2 07 01 90 7D 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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CC B6 01 00 35 04 06 00 6A 42 57 12 8F 66 2A F4 4F 98 1E DB CF 58 [15:46:15]CheckFolder [15:46:15]dirname=/storage/ofd_packets [15:46:15]CheckFolder done [15:46:15]ProducePacketName [15:46:15]name=ofd_packets/00112332 [15:46:15]NVStorageSaveData ofd_packets/00112332 [15:46:15]File name is /storage/ofd_packets/00112332 [15:46:15]Write 301 bytes [15:46:15]NVStorageSaveData done [15:46:15]OFDSenderStorePacket done [15:46:15]KKMCreateOFDPacket done [15:46:15]NVStorageSaveData kkm_last_timestamp [15:46:15]File name is /storage/kkm_last_timestamp [15:46:15]Write 4 bytes [15:46:15]NVStorageSaveData done [15:46:15]ExternCall_PrintAddStr [15:46:15]wPrintStart [15:46:15]Write to MH i2c: 01 00 00 4A 0F 59 [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 07 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: 01 07 00 4A 0F 00 00 00 00 00 FF 0F 6E [15:46:15]RasterBufferAndPrint [15:46:15]line Счет N : (1)48642 [15:46:15]line ИНН: 02508201610067 [15:46:15]line Контрольно-Кассовый Чек [15:46:15]line ПРОДАЖА [15:46:15]line ТРК (МРК, ГНК) : 12 [15:46:15]line Товар: 2710124500 [15:46:15]line Аи-95-К-5 [15:46:15]line 8.280 * 72.50 [15:46:15]line = 600.30 [15:46:15]line НДС 12% НСП 1% [15:46:15]line > о реализуемом товаре [15:46:15]line ОКРУГЛЕНИЕ: -0.30 [15:46:15]line ИТОГО: 600.00 [15:46:15]line Внесено: 600.00 [15:46:15]line СДАЧА: 0.00 [15:46:15]line НСП 1% : 5.31 [15:46:15]line НДС 12% : 63.75 [15:46:15]line Наличными: 600.00 [15:46:15]line Безнал.: 0.00 [15:46:15]line Место: АЗС № 47 "Партнер Нефть" [15:46:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:46:15]line СНО: Общий режим [15:46:15]line Чек 231 14.04.2024 15:46 [15:46:15]line Смена: 357 ФФД: 1.0 [15:46:15]line ЗНМ: 0300000138 [15:46:15]line РНМ: 0000000000094237 [15:46:15]line Версия ККМ: 001 [15:46:15]line ФМ: 0000000000875019 [15:46:15]line ФД: 112332 [15:46:15]line ФПД: 116833161219942 [15:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154614&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112332&fm=116833161219942&tin=02508201610067®Number=0000000000094237&sum=60000 [15:46:15]written 0, free lines is 4095 [15:46:15]OFD Sender: Processing packet 112332 [packets to send 71, broken 70] [15:46:15]ProducePacketName [15:46:15]name=ofd_packets/00112332 [15:46:15]OFD Sender: To server: pG, [15:46:15]CommunicateWithHost lk.salyk.kg:30040 [15:46:15]ConnectInit lk.salyk.kg [15:46:16]Connected sock=10 [15:46:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 26 E2 07 01 90 7D 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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 46 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CC B6 01 00 35 04 06 00 6A 42 57 12 8F 66 2A F4 4F 98 1E DB CF 58 [15:46:16]Write to MH i2c: 01 00 00 75 0F 84 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 75 0F 00 00 00 00 00 FA 0C 91 [15:46:16]RasterBufferAndPrint [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]written 0, free lines is 3331 [15:46:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 14 47 00 7A 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CC B6 01 00 F4 03 04 00 D1 A1 1B 66 B6 04 01 00 00 A2 E0 1D 1B F1 A2 00 4A [15:46:16]CommunicateWithHost err = 0 [15:46:16]CheckOFDResponse [15:46:16]1017 (14) - 77093643461234 [15:46:16]1041 (16) - 0000000000875019 [15:46:16]1040 (4) - 112332 [15:46:16]1012 (4) - 14.04.2024 09:28 [15:46:16]1206 (1) - 0 [15:46:16]OFD Sender: Remove packet 112332 [15:46:16]ProducePacketName [15:46:16]name=ofd_packets/00112332 [15:46:16]NVStorageDeleteData [15:46:16]MH_Cut [15:46:16]Write to MH i2c: D1 01 00 7C 0F 01 5D [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 01 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 01 00 7C 0F 00 5C [15:46:16]Write to MH i2c: 01 00 00 7D 0F 8C [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]OFD Sender: No OFD packet to send [15:46:17]*** Cut start [15:46:17]*** Partial cut [15:46:17]*** CUTSNS_PIN = 1 [15:46:17]*** CUTSNS_PIN = 0 [15:46:17]*** Brake cut motor [15:46:17]Read from MH i2c: 01 [15:46:17]MH_I2C_Read... [15:46:17]*** Stop cut motor [15:46:17]*** Cut end [15:46:17]Read from MH i2c: 01 07 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: 01 07 00 7D 0F 00 00 00 00 00 FF 0F A1 [15:46:17]process_action close_receipt done [15:46:17]requested_data is exist [15:46:17]produce_requested_data [15:46:17]requested_item fm.sn is exist - process it [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 11 00 00 [15:46:17]Write to MH i2c: E2 08 00 7E 0F 80 11 00 00 00 00 00 00 07 [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:17]Read from MH i2c: E2 17 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 17 00 7E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 58 [15:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:17]wFMCommunicate OK [15:46:17]requested_item fd.num is exist - process it [15:46:17]SAM_PROTO_GetFieldsCounters [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 13 00 00 [15:46:17]Write to MH i2c: E2 08 00 7F 0F 80 13 00 00 00 00 00 00 0A [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 62 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 62 00 7F 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [15:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:17]wFMCommunicate OK [15:46:17]SAM_PROTO_GetFieldsCounters done [15:46:17]requested_item shift.num is exist - process it [15:46:17]requested_item shift.opened is exist - process it [15:46:17]req_shift_opened [15:46:17]FM_GetShiftState [15:46:17]SAM_PROTO_GetShiftState [15:46:17]wFMCommunicate request_size=4 [15:46:17]MH_SAM_APDU [15:46:17]CAPDU: 80 13 01 00 [15:46:17]Write to MH i2c: E2 08 00 80 0F 80 13 01 00 00 00 00 00 0C [15:46:17]Write i2c OK [15:46:17]MH_I2C_Read... [15:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:17]Read from MH i2c: E2 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 0E 00 [15:46:17]MH_I2C_Read... [15:46:17]Read from MH i2c: E2 0E 00 80 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A4 [15:46:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:17]wFMCommunicate OK [15:46:17]SAM_PROTO_GetShiftState done [15:46:17]FM_GetShiftState done [15:46:17]req_shift_opened done [15:46:17]requested_item shift.open_date is exist - process it [15:46:17]req_shift_open_date [15:46:17]req_shift_open_date done [15:46:17]produce_requested_data done [15:46:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112332,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:46:17]process_action_free close_receipt [15:46:17]json_value_free [15:46:17]json_value_free done [15:46:17]process_json_proto returns [15:46:17]Send response to host [15:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112332,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:46:17]free response buf [15:46:18]execute_script done [15:46:18]execute_script returns [15:46:18]free content buf [15:46:18]Sock 8.Close socket [15:46:18]Sock 8.Thread stoped [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:26]accept exits with 9 [15:46:26]New connection [15:46:26]New thread 3066826084 created [15:46:26]Thread 3066682724 joined [15:46:26]Waiting for new connection... [15:46:26] Sock 9.Parse request [15:46:26]Sock 9.Check first char [15:46:26]Sock 9.First char is OK [15:46:26]request: POST /json_proto HTTP/1.0 [15:46:26]Method: POST [15:46:26]URL: /json_proto [15:46:26]Method is POST - this is cgi request [15:46:26]url: /json_proto [15:46:26]query_string will be loaded in cgi processing [15:46:26]execute_cgi json_proto POST (null) [15:46:26]execute_cgi path=json_proto method=POST [15:46:26]POST find Content-Length [15:46:26]Host: 172.17.96.197:8080 [15:46:26]Content-Length: 673 [15:46:26]Content-Type: application/json [15:46:26] [15:46:26]POST finish read [15:46:26]Found Content-Length = 673 [15:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10428", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:26]execute_script... [15:46:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10428", "tax_sys" : 0, "items" : [ { "code": "5449000189325", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:26]POST & json_proto [15:46:26]process_json_proto [15:46:26]json parsed OK: [15:46:26]protocol is kg_v1.0 [15:46:26]action value=close_receipt [15:46:26]process_action close_receipt [15:46:26]cmd_close_receipt [15:46:26]MH_GetDate [15:46:26]Write to MH i2c: F0 00 00 81 0F 7F [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 09 00 [15:46:26]MH_I2C_Read... [15:46:26]Read from MH i2c: F0 09 00 81 0F 00 53 FA 1B 66 E0 85 7F 64 9E [15:46:26]GetLastDocTimeStamp 1713109574 [15:46:26]current date 1713109587 [15:46:26]FM_GetShiftState [15:46:26]SAM_PROTO_GetShiftState [15:46:26]wFMCommunicate request_size=4 [15:46:26]MH_SAM_APDU [15:46:26]CAPDU: 80 13 01 00 [15:46:26]Write to MH i2c: E2 08 00 82 0F 80 13 01 00 00 00 00 00 0E [15:46:26]Write i2c OK [15:46:26]MH_I2C_Read... [15:46:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:27]Read from MH i2c: E2 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 0E 00 [15:46:27]MH_I2C_Read... [15:46:27]Read from MH i2c: E2 0E 00 82 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A6 [15:46:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:27]wFMCommunicate OK [15:46:27]SAM_PROTO_GetShiftState done [15:46:27]FM_GetShiftState done [15:46:27]opened in 1713054696 [15:46:27]opened+sec_in_day 1713141096 [15:46:27]quantity*price = 6500 [15:46:27]sum+1 = 6501 [15:46:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 232 14.04.2024 15:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112333 ФПД: 163286640290804 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154627&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112333&fm=163286640290804&tin=02508201610067®Number=0000000000094237&sum=6500 0 [15:46:28]StoreToDocumentArchive [15:46:28]shift 357 fd 112333 [15:46:28]save to /storage/0357/doc_00112333 [15:46:28]save last doc name /storage/0357/doc_00112333 to /storage/kkm_last_doc_name [15:46:28]save OK [15:46:28]Clear old archive folders... [15:46:28]ProcessDocumentItem done err = 0, tmpTLVsize=289 [15:46:28]tlvbuf is 001B9050 [15:46:28]SAM_PROTO_ClearQueue [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 09 00 00 [15:46:28]Write to MH i2c: E2 08 00 8F 0F 80 09 00 00 00 00 00 00 10 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 8F 0F 00 90 00 12 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_ClearQueue done [15:46:28]KKMCreateOFDPacket [15:46:28]OFDProtocolAddRootSTLVToBuf [15:46:28]FM_MakeSignedData [15:46:28]FM_MakeSignedData [15:46:28]SAM_PROTO_SignData [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 01 02 [15:46:28]Write to MH i2c: E2 08 00 90 0F 80 0D 01 02 00 00 00 00 18 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 90 0F 00 90 00 13 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=255 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 53 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [15:46:28]Write to MH i2c: E2 02 01 91 0F 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 53 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 77 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 91 0F 00 90 00 14 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=48 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 02 02 2B 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CD B6 01 00 35 04 06 00 94 82 22 30 EB F4 [15:46:28]Write to MH i2c: E2 33 00 92 0F 80 0D 02 02 2B 00 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CD B6 01 00 35 04 06 00 94 82 22 30 EB F4 00 00 DF [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 03 00 92 0F 00 90 00 15 [15:46:28]RAPDU: 90 00 [15:46:28]wFMCommunicate OK [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 0D 03 02 [15:46:28]Write to MH i2c: E2 08 00 93 0F 80 0D 03 02 00 00 00 00 1D [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0B 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 0B 00 93 0F 00 E0 07 88 ED D7 1A 69 66 90 00 3A [15:46:28]RAPDU: E0 07 88 ED D7 1A 69 66 90 00 [15:46:28]wFMCommunicate OK [15:46:28]SAM_PROTO_SignData done [15:46:28]FM_MakeSignedData done [15:46:28]CreateOFDProtocolMessage [15:46:28]wFMCommunicate request_size=4 [15:46:28]MH_SAM_APDU [15:46:28]CAPDU: 80 11 00 00 [15:46:28]Write to MH i2c: E2 08 00 94 0F 80 11 00 00 00 00 00 00 1D [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:28]Read from MH i2c: E2 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: E2 17 00 94 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6E [15:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:28]wFMCommunicate OK [15:46:28]CreateOFDProtocolMessage done [15:46:28]OFDSenderStorePacket 112333 [15:46:28]StoreOFDPacket docnum=112333 [15:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 01 00 00 58 63 2D 01 A6 29 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 53 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CD B6 01 00 35 04 06 00 94 82 22 30 EB F4 E0 07 88 ED D7 1A 69 66 [15:46:28]CheckFolder [15:46:28]dirname=/storage/ofd_packets [15:46:28]CheckFolder done [15:46:28]ProducePacketName [15:46:28]name=ofd_packets/00112333 [15:46:28]NVStorageSaveData ofd_packets/00112333 [15:46:28]File name is /storage/ofd_packets/00112333 [15:46:28]Write 339 bytes [15:46:28]NVStorageSaveData done [15:46:28]OFDSenderStorePacket done [15:46:28]KKMCreateOFDPacket done [15:46:28]NVStorageSaveData kkm_last_timestamp [15:46:28]File name is /storage/kkm_last_timestamp [15:46:28]Write 4 bytes [15:46:28]NVStorageSaveData done [15:46:28]ExternCall_PrintAddStr [15:46:28]wPrintStart [15:46:28]Write to MH i2c: 01 00 00 95 0F A4 [15:46:28]Write i2c OK [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 07 00 [15:46:28]MH_I2C_Read... [15:46:28]Read from MH i2c: 01 07 00 95 0F 00 00 00 00 00 FF 0F B9 [15:46:28]RasterBufferAndPrint [15:46:28]line Счет N : (3)10428 [15:46:28]line ИНН: 02508201610067 [15:46:28]line Контрольно-Кассовый Чек [15:46:28]line ПРОДАЖА [15:46:28]line Товар: 5449000189325 [15:46:28]line Холодный чай Fuse персик 0,5л [15:46:28]line 1.000 * 65.00 [15:46:28]line = 65.00 [15:46:28]line НДС 12% НСП 1% [15:46:28]line > о реализуемом товаре [15:46:28]line ИТОГО: 65.00 [15:46:28]line НСП 1% : 0.57 [15:46:28]line НДС 12% : 6.90 [15:46:28]line Наличными: 65.00 [15:46:28]line Безнал.: 0.00 [15:46:28]line Место: АЗС № 47 "Партнер Нефть" [15:46:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:46:28]line СНО: Общий режим [15:46:28]line Чек 232 14.04.2024 15:46 [15:46:28]line Смена: 357 ФФД: 1.0 [15:46:28]line ЗНМ: 0300000138 [15:46:28]line РНМ: 0000000000094237 [15:46:28]line Версия ККМ: 001 [15:46:28]line ФМ: 0000000000875019 [15:46:28]line ФД: 112333 [15:46:28]line ФПД: 163286640290804 [15:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154627&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112333&fm=163286640290804&tin=02508201610067®Number=0000000000094237&sum=6500 [15:46:28]line 0 [15:46:28]written 0, free lines is 4095 [15:46:28]OFD Sender: Processing packet 112333 [packets to send 71, broken 70] [15:46:28]ProducePacketName [15:46:28]name=ofd_packets/00112333 [15:46:28]OFD Sender: To server: pG, [15:46:28]CommunicateWithHost lk.salyk.kg:30040 [15:46:28]ConnectInit lk.salyk.kg [15:46:28]Connected sock=10 [15:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 01 00 00 58 63 2D 01 A6 29 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 32 35 06 04 2F 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 53 FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CD B6 01 00 35 04 06 00 94 82 22 30 EB F4 E0 07 88 ED D7 1A 69 66 [15:46:29]Write to MH i2c: 01 00 00 BE 0F CD [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: 01 07 00 BE 0F 00 00 00 00 00 F6 0C D6 [15:46:29]RasterBufferAndPrint [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]line [15:46:29]written 0, free lines is 3333 [15:46:29]MH_Cut [15:46:29]Write to MH i2c: D1 01 00 C5 0F 01 A6 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 01 00 [15:46:29]MH_I2C_Read... [15:46:29]Read from MH i2c: D1 01 00 C5 0F 00 A5 [15:46:29]Write to MH i2c: 01 00 00 C6 0F D5 [15:46:29]Write i2c OK [15:46:29]MH_I2C_Read... [15:46:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A8 9F 47 00 2F B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CD B6 01 00 F4 03 04 00 DE A1 1B 66 B6 04 01 00 00 09 AE 5B FE ED 82 89 4E [15:46:29]CommunicateWithHost err = 0 [15:46:29]CheckOFDResponse [15:46:29]1017 (14) - 77093643461234 [15:46:29]1041 (16) - 0000000000875019 [15:46:29]1040 (4) - 112333 [15:46:29]1012 (4) - 14.04.2024 09:29 [15:46:29]1206 (1) - 0 [15:46:29]OFD Sender: Remove packet 112333 [15:46:29]ProducePacketName [15:46:29]name=ofd_packets/00112333 [15:46:29]NVStorageDeleteData [15:46:29]OFD Sender: No OFD packet to send [15:46:29]*** Cut start [15:46:29]*** Partial cut [15:46:29]*** CUTSNS_PIN = 1 [15:46:29]*** CUTSNS_PIN = 0 [15:46:30]*** Brake cut motor [15:46:30]Read from MH i2c: 01 [15:46:30]MH_I2C_Read... [15:46:30]*** Stop cut motor [15:46:30]*** Cut end [15:46:30]Read from MH i2c: 01 07 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: 01 07 00 C6 0F 00 00 00 00 00 FF 0F EA [15:46:30]process_action close_receipt done [15:46:30]requested_data is exist [15:46:30]produce_requested_data [15:46:30]requested_item fm.sn is exist - process it [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 11 00 00 [15:46:30]Write to MH i2c: E2 08 00 C7 0F 80 11 00 00 00 00 00 00 50 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 17 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 17 00 C7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A1 [15:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:46:30]wFMCommunicate OK [15:46:30]requested_item fd.num is exist - process it [15:46:30]SAM_PROTO_GetFieldsCounters [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 13 00 00 [15:46:30]Write to MH i2c: E2 08 00 C8 0F 80 13 00 00 00 00 00 00 53 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 62 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 62 00 C8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [15:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:30]wFMCommunicate OK [15:46:30]SAM_PROTO_GetFieldsCounters done [15:46:30]requested_item shift.num is exist - process it [15:46:30]requested_item shift.opened is exist - process it [15:46:30]req_shift_opened [15:46:30]FM_GetShiftState [15:46:30]SAM_PROTO_GetShiftState [15:46:30]wFMCommunicate request_size=4 [15:46:30]MH_SAM_APDU [15:46:30]CAPDU: 80 13 01 00 [15:46:30]Write to MH i2c: E2 08 00 C9 0F 80 13 01 00 00 00 00 00 55 [15:46:30]Write i2c OK [15:46:30]MH_I2C_Read... [15:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:30]Read from MH i2c: E2 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0E 00 [15:46:30]MH_I2C_Read... [15:46:30]Read from MH i2c: E2 0E 00 C9 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 ED [15:46:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:46:30]wFMCommunicate OK [15:46:30]SAM_PROTO_GetShiftState done [15:46:30]FM_GetShiftState done [15:46:30]req_shift_opened done [15:46:30]requested_item shift.open_date is exist - process it [15:46:30]req_shift_open_date [15:46:30]req_shift_open_date done [15:46:30]produce_requested_data done [15:46:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112333,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:46:30]process_action_free close_receipt [15:46:30]json_value_free [15:46:30]json_value_free done [15:46:30]process_json_proto returns [15:46:30]Send response to host [15:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112333,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:46:30]free response buf [15:46:30]execute_script done [15:46:30]execute_script returns [15:46:30]free content buf [15:46:30]Sock 9.Close socket [15:46:30]Sock 9.Thread stoped [15:46:34]OFD Sender: No OFD packet to send [15:46:39]OFD Sender: No OFD packet to send [15:46:44]OFD Sender: No OFD packet to send [15:46:49]OFD Sender: No OFD packet to send [15:46:54]OFD Sender: No OFD packet to send [15:46:59]OFD Sender: No OFD packet to send [15:47:04]OFD Sender: No OFD packet to send [15:47:09]OFD Sender: No OFD packet to send [15:47:14]OFD Sender: No OFD packet to send [15:47:19]OFD Sender: No OFD packet to send [15:47:24]OFD Sender: No OFD packet to send [15:47:29]OFD Sender: No OFD packet to send [15:47:34]OFD Sender: No OFD packet to send [15:47:39]OFD Sender: No OFD packet to send [15:47:44]OFD Sender: No OFD packet to send [15:47:49]OFD Sender: No OFD packet to send [15:47:54]OFD Sender: No OFD packet to send [15:47:59]OFD Sender: No OFD packet to send [15:48:04]OFD Sender: No OFD packet to send [15:48:09]OFD Sender: No OFD packet to send [15:48:14]accept exits with 8 [15:48:14]New connection [15:48:14]New thread 3066682724 created [15:48:14]Thread 3066826084 joined [15:48:14]Waiting for new connection... [15:48:14] Sock 8.Parse request [15:48:14]Sock 8.Check first char [15:48:14]Sock 8.First char is OK [15:48:14]request: POST /json_proto HTTP/1.0 [15:48:14]Method: POST [15:48:14]URL: /json_proto [15:48:14]Method is POST - this is cgi request [15:48:14]url: /json_proto [15:48:14]query_string will be loaded in cgi processing [15:48:14]execute_cgi json_proto POST (null) [15:48:14]execute_cgi path=json_proto method=POST [15:48:14]POST find Content-Length [15:48:14]Host: 172.17.96.197:8080 [15:48:14]Content-Length: 684 [15:48:14]Content-Type: application/json [15:48:14] [15:48:14]POST finish read [15:48:14]Found Content-Length = 684 [15:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 61.170, "sum" : 2000.26, "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" ] } } [15:48:14]execute_script... [15:48: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)48644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 61.170, "sum" : 2000.26, "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" ] } } [15:48:14]POST & json_proto [15:48:14]process_json_proto [15:48:14]json parsed OK: [15:48:14]protocol is kg_v1.0 [15:48:14]action value=close_receipt [15:48:14]process_action close_receipt [15:48:14]cmd_close_receipt [15:48:14]MH_GetDate [15:48:14]Write to MH i2c: F0 00 00 CA 0F C8 [15:48:14]Write i2c OK [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: F0 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: F0 09 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: F0 09 00 CA 0F 00 BE FA 1B 66 E0 85 7F 64 52 [15:48:14]GetLastDocTimeStamp 1713109587 [15:48:14]current date 1713109694 [15:48:14]FM_GetShiftState [15:48:14]SAM_PROTO_GetShiftState [15:48:14]wFMCommunicate request_size=4 [15:48:14]MH_SAM_APDU [15:48:14]CAPDU: 80 13 01 00 [15:48:14]Write to MH i2c: E2 08 00 CB 0F 80 13 01 00 00 00 00 00 57 [15:48:14]Write i2c OK [15:48:14]MH_I2C_Read... [15:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:14]Read from MH i2c: E2 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 0E 00 [15:48:14]MH_I2C_Read... [15:48:14]Read from MH i2c: E2 0E 00 CB 0F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EF [15:48:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:48:14]wFMCommunicate OK [15:48:14]SAM_PROTO_GetShiftState done [15:48:14]FM_GetShiftState done [15:48:14]opened in 1713054696 [15:48:14]opened+sec_in_day 1713141096 [15:48:14]quantity*price = 200025 [15:48:14]sum+1 = 200027 [15:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 233 14.04.2024 15:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112334 ФПД: 120897547892167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154814&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112334&fm=120897547892167&tin=02508201610067®Number=0000000000094237&sum=200000 [15:48:15]StoreToDocumentArchive [15:48:15]shift 357 fd 112334 [15:48:15]save to /storage/0357/doc_00112334 [15:48:15]save last doc name /storage/0357/doc_00112334 to /storage/kkm_last_doc_name [15:48:15]save OK [15:48:15]Clear old archive folders... [15:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:48:15]tlvbuf is 0015AF00 [15:48:15]SAM_PROTO_ClearQueue [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 09 00 00 [15:48:15]Write to MH i2c: E2 08 00 D8 0F 80 09 00 00 00 00 00 00 59 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 D8 0F 00 90 00 5B [15:48:15]RAPDU: 90 00 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_ClearQueue done [15:48:15]KKMCreateOFDPacket [15:48:15]OFDProtocolAddRootSTLVToBuf [15:48:15]FM_MakeSignedData [15:48:15]FM_MakeSignedData [15:48:15]SAM_PROTO_SignData [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 0D 01 02 [15:48:15]Write to MH i2c: E2 08 00 D9 0F 80 0D 01 02 00 00 00 00 61 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 D9 0F 00 90 00 5C [15:48:15]RAPDU: 90 00 [15:48:15]wFMCommunicate OK [15:48:15]wFMCommunicate request_size=255 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 5A 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 FA 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 E9 00 00 00 F4 03 04 00 BE FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CE B6 01 00 35 04 06 00 6D F4 [15:48:15]Write to MH i2c: E2 02 01 DA 0F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 5A 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 FA 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 E9 00 00 00 F4 03 04 00 BE FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CE B6 01 00 35 04 06 00 6D F4 00 00 76 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:15]Read from MH i2c: E2 03 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 DA 0F 00 90 00 5D [15:48:15]RAPDU: 90 00 [15:48:15]wFMCommunicate OK [15:48:15]wFMCommunicate request_size=9 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 0D 02 02 04 A7 65 75 C7 [15:48:15]Write to MH i2c: E2 0C 00 DB 0F 80 0D 02 02 04 00 A7 65 75 C7 00 00 B4 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 03 00 DB 0F 00 90 00 5E [15:48:15]RAPDU: 90 00 [15:48:15]wFMCommunicate OK [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 0D 03 02 [15:48:15]Write to MH i2c: E2 08 00 DC 0F 80 0D 03 02 00 00 00 00 66 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0B 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 0B 00 DC 0F 00 B8 21 6C C5 AE 11 1A 64 90 00 AE [15:48:15]RAPDU: B8 21 6C C5 AE 11 1A 64 90 00 [15:48:15]wFMCommunicate OK [15:48:15]SAM_PROTO_SignData done [15:48:15]FM_MakeSignedData done [15:48:15]CreateOFDProtocolMessage [15:48:15]wFMCommunicate request_size=4 [15:48:15]MH_SAM_APDU [15:48:15]CAPDU: 80 11 00 00 [15:48:15]Write to MH i2c: E2 08 00 DD 0F 80 11 00 00 00 00 00 00 66 [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:15]Read from MH i2c: E2 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 17 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: E2 17 00 DD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B7 [15:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:48:15]wFMCommunicate OK [15:48:15]CreateOFDProtocolMessage done [15:48:15]OFDSenderStorePacket 112334 [15:48:15]StoreOFDPacket docnum=112334 [15:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 E8 B7 06 01 C3 C9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 5A 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 FA 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 E9 00 00 00 F4 03 04 00 BE FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CE B6 01 00 35 04 06 00 6D F4 A7 65 75 C7 B8 21 6C C5 AE 11 1A 64 [15:48:15]CheckFolder [15:48:15]dirname=/storage/ofd_packets [15:48:15]CheckFolder done [15:48:15]ProducePacketName [15:48:15]name=ofd_packets/00112334 [15:48:15]NVStorageSaveData ofd_packets/00112334 [15:48:15]File name is /storage/ofd_packets/00112334 [15:48:15]Write 300 bytes [15:48:15]NVStorageSaveData done [15:48:15]OFDSenderStorePacket done [15:48:15]KKMCreateOFDPacket done [15:48:15]NVStorageSaveData kkm_last_timestamp [15:48:15]File name is /storage/kkm_last_timestamp [15:48:15]Write 4 bytes [15:48:15]NVStorageSaveData done [15:48:15]ExternCall_PrintAddStr [15:48:15]wPrintStart [15:48:15]Write to MH i2c: 01 00 00 DE 0F ED [15:48:15]Write i2c OK [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: 01 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: 01 07 00 [15:48:15]MH_I2C_Read... [15:48:15]Read from MH i2c: 01 07 00 DE 0F 00 00 00 00 00 FF 0F 02 [15:48:15]RasterBufferAndPrint [15:48:15]line Счет N : (1)48644 [15:48:15]line ИНН: 02508201610067 [15:48:15]line Контрольно-Кассовый Чек [15:48:15]line ПРОДАЖА [15:48:15]line ТРК (МРК, ГНК) : 72 [15:48:15]line Товар: 2711190000 [15:48:15]line ГАЗ-К-5 [15:48:15]line 61.170 * 32.70 [15:48:15]line = 2000.26 [15:48:15]line НДС 12% НСП 1% [15:48:15]line > о реализуемом товаре [15:48:15]line ОКРУГЛЕНИЕ: -0.26 [15:48:15]line ИТОГО: 2000.00 [15:48:15]line Внесено: 2000.00 [15:48:15]line СДАЧА: 0.00 [15:48:15]line НСП 1% : 17.70 [15:48:15]line НДС 12% : 212.42 [15:48:15]line Наличными: 2000.00 [15:48:15]line Безнал.: 0.00 [15:48:15]line Место: АЗС № 47 "Партнер Нефть" [15:48:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:48:15]line СНО: Общий режим [15:48:15]line Чек 233 14.04.2024 15:48 [15:48:15]line Смена: 357 ФФД: 1.0 [15:48:15]line ЗНМ: 0300000138 [15:48:15]line РНМ: 0000000000094237 [15:48:15]line Версия ККМ: 001 [15:48:15]line ФМ: 0000000000875019 [15:48:15]line ФД: 112334 [15:48:15]line ФПД: 120897547892167 [15:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T154814&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112334&fm=120897547892167&tin=02508201610067®Number=0000000000094237&sum=200000 [15:48:16]OFD Sender: Processing packet 112334 [packets to send 71, broken 70] [15:48:16]ProducePacketName [15:48:16]name=ofd_packets/00112334 [15:48:16]OFD Sender: To server: pG, [15:48:16]CommunicateWithHost lk.salyk.kg:30040 [15:48:16]ConnectInit lk.salyk.kg [15:48:16]written 0, free lines is 4095 [15:48:16]Connected sock=10 [15:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 E8 B7 06 01 C3 C9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F2 EE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 5A 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 FA 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 E9 00 00 00 F4 03 04 00 BE FA 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CE B6 01 00 35 04 06 00 6D F4 A7 65 75 C7 B8 21 6C C5 AE 11 1A 64 [15:48:16]Write to MH i2c: 01 00 00 09 10 19 [15:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7E 75 47 00 A6 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CE B6 01 00 F4 03 04 00 49 A2 1B 66 B6 04 01 00 00 EC 22 5C D9 09 2B 45 68 [15:48:16]CommunicateWithHost err = 0 [15:48:16]CheckOFDResponse [15:48:16]1017 (14) - 77093643461234 [15:48:16]1041 (16) - 0000000000875019 [15:48:16]1040 (4) - 112334 [15:48:16]1012 (4) - 14.04.2024 09:30 [15:48:16]1206 (1) - 0 [15:48:16]OFD Sender: Remove packet 112334 [15:48:16]ProducePacketName [15:48:16]name=ofd_packets/00112334 [15:48:16]NVStorageDeleteData [15:48:16]Write i2c OK [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: 01 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: 01 07 00 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: 01 07 00 09 10 00 00 00 00 00 EC 0C 18 [15:48:16]RasterBufferAndPrint [15:48:16]line [15:48:16]line [15:48:16]line [15:48:16]line [15:48:16]line [15:48:16]written 0, free lines is 3320 [15:48:16]MH_Cut [15:48:16]Write to MH i2c: D1 01 00 10 10 01 F2 [15:48:16]Write i2c OK [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: D1 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: D1 01 00 [15:48:16]MH_I2C_Read... [15:48:16]Read from MH i2c: D1 01 00 10 10 00 F1 [15:48:16]Write to MH i2c: 01 00 00 11 10 21 [15:48:16]Write i2c OK [15:48:16]MH_I2C_Read... [15:48:17]OFD Sender: No OFD packet to send [15:48:17]*** Cut start [15:48:17]*** Partial cut [15:48:17]*** CUTSNS_PIN = 1 [15:48:17]*** CUTSNS_PIN = 0 [15:48:17]*** Brake cut motor [15:48:18]Read from MH i2c: 01 [15:48:18]MH_I2C_Read... [15:48:18]*** Stop cut motor [15:48:18]*** Cut end [15:48:18]Read from MH i2c: 01 07 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: 01 07 00 11 10 00 00 00 00 00 FF 0F 36 [15:48:18]process_action close_receipt done [15:48:18]requested_data is exist [15:48:18]produce_requested_data [15:48:18]requested_item fm.sn is exist - process it [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 11 00 00 [15:48:18]Write to MH i2c: E2 08 00 12 10 80 11 00 00 00 00 00 00 9C [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 17 00 12 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [15:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:48:18]wFMCommunicate OK [15:48:18]requested_item fd.num is exist - process it [15:48:18]SAM_PROTO_GetFieldsCounters [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 13 00 00 [15:48:18]Write to MH i2c: E2 08 00 13 10 80 13 00 00 00 00 00 00 9F [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 62 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 62 00 13 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [15:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:48:18]wFMCommunicate OK [15:48:18]SAM_PROTO_GetFieldsCounters done [15:48:18]requested_item shift.num is exist - process it [15:48:18]requested_item shift.opened is exist - process it [15:48:18]req_shift_opened [15:48:18]FM_GetShiftState [15:48:18]SAM_PROTO_GetShiftState [15:48:18]wFMCommunicate request_size=4 [15:48:18]MH_SAM_APDU [15:48:18]CAPDU: 80 13 01 00 [15:48:18]Write to MH i2c: E2 08 00 14 10 80 13 01 00 00 00 00 00 A1 [15:48:18]Write i2c OK [15:48:18]MH_I2C_Read... [15:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:48:18]Read from MH i2c: E2 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0E 00 [15:48:18]MH_I2C_Read... [15:48:18]Read from MH i2c: E2 0E 00 14 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 39 [15:48:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:48:18]wFMCommunicate OK [15:48:18]SAM_PROTO_GetShiftState done [15:48:18]FM_GetShiftState done [15:48:18]req_shift_opened done [15:48:18]requested_item shift.open_date is exist - process it [15:48:18]req_shift_open_date [15:48:18]req_shift_open_date done [15:48:18]produce_requested_data done [15:48:18]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112334,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:48:18]process_action_free close_receipt [15:48:18]json_value_free [15:48:18]json_value_free done [15:48:18]process_json_proto returns [15:48:18]Send response to host [15:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112334,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:48:18]free response buf [15:48:18]execute_script done [15:48:18]execute_script returns [15:48:18]free content buf [15:48:18]Sock 8.Close socket [15:48:18]Sock 8.Thread stoped [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]OFD Sender: No OFD packet to send [15:49:55]accept exits with 9 [15:49:55]New connection [15:49:55]New thread 3066826084 created [15:49:55]Thread 3066682724 joined [15:49:55]Waiting for new connection... [15:49:55] Sock 9.Parse request [15:49:55]Sock 9.Check first char [15:49:55]Sock 9.First char is OK [15:49:55]request: POST /json_proto HTTP/1.0 [15:49:55]Method: POST [15:49:55]URL: /json_proto [15:49:55]Method is POST - this is cgi request [15:49:55]url: /json_proto [15:49:55]query_string will be loaded in cgi processing [15:49:55]execute_cgi json_proto POST (null) [15:49:55]execute_cgi path=json_proto method=POST [15:49:55]POST find Content-Length [15:49:55]Host: 172.17.96.197:8080 [15:49:55]Content-Length: 1206 [15:49:55]Content-Type: application/json [15:49:55] [15:49:55]POST finish read [15:49:55]Found Content-Length = 1206 [15:49:55]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48646\u000A14.04.2024 15:29\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 321.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\u000A81812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]execute_script... [15:49:55]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48646\u000A14.04.2024 15:29\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 5.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 321.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\u000A81812\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:55]POST & json_proto [15:49:55]process_json_proto [15:49:55]json parsed OK: [15:49:55]protocol is kg_v1.0 [15:49:55]action value=print_text [15:49:55]process_action print_text [15:49:55]cmd_print_text [15:49:55]ExternCall_PrintAddStr [15:49:55]wPrintStart [15:49:55]Write to MH i2c: 01 00 00 15 10 25 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 15 10 00 00 00 00 00 FF 0F 3A [15:49:55]RasterBufferAndPrint [15:49:55]line *****ТОВАРНЫЙ ЧЕК***** [15:49:55]line АЗС 47 [15:49:55]line Партнер нефть [15:49:55]line 02508201610067 [15:49:55]line Кассир : Таалайбек к. П. [15:49:55]line Счет N : (1)48646 [15:49:55]line 14.04.2024 15:29 [15:49:55]line ПРОДАЖА [15:49:55]line ТРК (МРК, ГНК): 21 [15:49:55]line Вид ГСМ : 2710124130 [15:49:55]line Аи-92-К-5 [15:49:55]line 5.000 x 64.30 [15:49:55]line ИТОГ: 321.50 [15:49:55]line Тип оплаты: Талоны: Топливная Карта [15:49:55]line 81812 [15:49:55]line ______________________ [15:49:55]line (подпись) [15:49:55]written 0, free lines is 4095 [15:49:55]Write to MH i2c: 01 00 00 2A 10 3A [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: 01 07 00 2A 10 00 00 00 00 00 F3 0D 41 [15:49:55]RasterBufferAndPrint [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]line [15:49:55]written 0, free lines is 3573 [15:49:55]MH_Cut [15:49:55]Write to MH i2c: D1 01 00 31 10 01 13 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 01 00 [15:49:55]MH_I2C_Read... [15:49:55]Read from MH i2c: D1 01 00 31 10 00 12 [15:49:55]Write to MH i2c: 01 00 00 32 10 42 [15:49:55]Write i2c OK [15:49:55]MH_I2C_Read... [15:49:56]*** Cut start [15:49:56]*** Partial cut [15:49:56]*** CUTSNS_PIN = 1 [15:49:56]*** CUTSNS_PIN = 0 [15:49:56]*** Brake cut motor [15:49:56]Read from MH i2c: 01 [15:49:56]MH_I2C_Read... [15:49:56]*** Stop cut motor [15:49:56]*** Cut end [15:49:56]Read from MH i2c: 01 07 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: 01 07 00 32 10 00 00 00 00 00 FF 0F 57 [15:49:56]process_action print_text done [15:49:56]requested_data is exist [15:49:56]produce_requested_data [15:49:56]requested_item fm.sn is exist - process it [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 11 00 00 [15:49:56]Write to MH i2c: E2 08 00 33 10 80 11 00 00 00 00 00 00 BD [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 17 00 33 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0E [15:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:49:56]wFMCommunicate OK [15:49:56]requested_item fd.num is exist - process it [15:49:56]SAM_PROTO_GetFieldsCounters [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 13 00 00 [15:49:56]Write to MH i2c: E2 08 00 34 10 80 13 00 00 00 00 00 00 C0 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 62 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 62 00 34 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [15:49:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_GetFieldsCounters done [15:49:56]requested_item shift.num is exist - process it [15:49:56]requested_item shift.opened is exist - process it [15:49:56]req_shift_opened [15:49:56]FM_GetShiftState [15:49:56]SAM_PROTO_GetShiftState [15:49:56]wFMCommunicate request_size=4 [15:49:56]MH_SAM_APDU [15:49:56]CAPDU: 80 13 01 00 [15:49:56]Write to MH i2c: E2 08 00 35 10 80 13 01 00 00 00 00 00 C2 [15:49:56]Write i2c OK [15:49:56]MH_I2C_Read... [15:49:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:56]Read from MH i2c: E2 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0E 00 [15:49:56]MH_I2C_Read... [15:49:56]Read from MH i2c: E2 0E 00 35 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [15:49:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:49:56]wFMCommunicate OK [15:49:56]SAM_PROTO_GetShiftState done [15:49:56]FM_GetShiftState done [15:49:56]req_shift_opened done [15:49:56]requested_item shift.open_date is exist - process it [15:49:56]req_shift_open_date [15:49:56]req_shift_open_date done [15:49:56]produce_requested_data done [15:49:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112334,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:49:56]process_action_free print_text [15:49:56]json_value_free [15:49:56]json_value_free done [15:49:56]process_json_proto returns [15:49:56]Send response to host [15:49:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112334,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:49:56]free response buf [15:49:56]execute_script done [15:49:56]execute_script returns [15:49:56]free content buf [15:49:56]Sock 9.Close socket [15:49:56]Sock 9.Thread stoped [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:04]accept exits with 8 [15:50:04]New connection [15:50:04]New thread 3066682724 created [15:50:04]Thread 3066826084 joined [15:50:04]Waiting for new connection... [15:50:04] Sock 8.Parse request [15:50:04]Sock 8.Check first char [15:50:04]Sock 8.First char is OK [15:50:04]request: POST /json_proto HTTP/1.0 [15:50:04]Method: POST [15:50:04]URL: /json_proto [15:50:04]Method is POST - this is cgi request [15:50:04]url: /json_proto [15:50:04]query_string will be loaded in cgi processing [15:50:04]execute_cgi json_proto POST (null) [15:50:04]execute_cgi path=json_proto method=POST [15:50:04]POST find Content-Length [15:50:04]Host: 172.17.96.197:8080 [15:50:04]Content-Length: 709 [15:50:04]Content-Type: application/json [15:50:04] [15:50:04]POST finish read [15:50:04]Found Content-Length = 709 [15:50:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10429", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:04]execute_script... [15:50:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10429", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 4.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:50:04]POST & json_proto [15:50:04]process_json_proto [15:50:04]json parsed OK: [15:50:04]protocol is kg_v1.0 [15:50:04]action value=close_receipt [15:50:04]process_action close_receipt [15:50:04]cmd_close_receipt [15:50:04]MH_GetDate [15:50:04]Write to MH i2c: F0 00 00 36 10 35 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 09 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: F0 09 00 36 10 00 2D FB 1B 66 E0 85 7F 64 2F [15:50:04]GetLastDocTimeStamp 1713109694 [15:50:04]current date 1713109805 [15:50:04]FM_GetShiftState [15:50:04]SAM_PROTO_GetShiftState [15:50:04]wFMCommunicate request_size=4 [15:50:04]MH_SAM_APDU [15:50:04]CAPDU: 80 13 01 00 [15:50:04]Write to MH i2c: E2 08 00 37 10 80 13 01 00 00 00 00 00 C4 [15:50:04]Write i2c OK [15:50:04]MH_I2C_Read... [15:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:04]Read from MH i2c: E2 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: E2 0E 00 [15:50:04]MH_I2C_Read... [15:50:04]Read from MH i2c: E2 0E 00 37 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5C [15:50:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:50:04]wFMCommunicate OK [15:50:04]SAM_PROTO_GetShiftState done [15:50:04]FM_GetShiftState done [15:50:04]opened in 1713054696 [15:50:04]opened+sec_in_day 1713141096 [15:50:04]quantity*price = 26000 [15:50:04]sum+1 = 26001 [15:50:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 234 14.04.2024 15:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112335 ФПД: 258837627346967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155005&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112335&fm=258837627346967&tin=02508201610067®Number=0000000000094237&sum=26000 0 [15:50:06]StoreToDocumentArchive [15:50:06]shift 357 fd 112335 [15:50:06]save to /storage/0357/doc_00112335 [15:50:06]save last doc name /storage/0357/doc_00112335 to /storage/kkm_last_doc_name [15:50:06]save OK [15:50:06]Clear old archive folders... [15:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=299 [15:50:06]tlvbuf is 00149420 [15:50:06]SAM_PROTO_ClearQueue [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 09 00 00 [15:50:06]Write to MH i2c: E2 08 00 44 10 80 09 00 00 00 00 00 00 C6 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 44 10 00 90 00 C8 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_ClearQueue done [15:50:06]KKMCreateOFDPacket [15:50:06]OFDProtocolAddRootSTLVToBuf [15:50:06]FM_MakeSignedData [15:50:06]FM_MakeSignedData [15:50:06]SAM_PROTO_SignData [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 01 02 [15:50:06]Write to MH i2c: E2 08 00 45 10 80 0D 01 02 00 00 00 00 CE [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 45 10 00 90 00 C9 [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=255 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 2D FB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [15:50:06]Write to MH i2c: E2 02 01 46 10 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 2D FB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 69 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 46 10 00 90 00 CA [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=58 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CF B6 01 00 35 04 06 00 EB 69 54 D5 20 17 [15:50:06]Write to MH i2c: E2 3D 00 47 10 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CF B6 01 00 35 04 06 00 EB 69 54 D5 20 17 00 00 F8 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 03 00 47 10 00 90 00 CB [15:50:06]RAPDU: 90 00 [15:50:06]wFMCommunicate OK [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 0D 03 02 [15:50:06]Write to MH i2c: E2 08 00 48 10 80 0D 03 02 00 00 00 00 D3 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 0B 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 0B 00 48 10 00 9B C4 07 C5 53 8D 24 63 90 00 66 [15:50:06]RAPDU: 9B C4 07 C5 53 8D 24 63 90 00 [15:50:06]wFMCommunicate OK [15:50:06]SAM_PROTO_SignData done [15:50:06]FM_MakeSignedData done [15:50:06]CreateOFDProtocolMessage [15:50:06]wFMCommunicate request_size=4 [15:50:06]MH_SAM_APDU [15:50:06]CAPDU: 80 11 00 00 [15:50:06]Write to MH i2c: E2 08 00 49 10 80 11 00 00 00 00 00 00 D3 [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:06]Read from MH i2c: E2 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 17 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: E2 17 00 49 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [15:50:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:50:06]wFMCommunicate OK [15:50:06]CreateOFDProtocolMessage done [15:50:06]OFDSenderStorePacket 112335 [15:50:06]StoreOFDPacket docnum=112335 [15:50:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3F 01 00 00 9C BF 37 01 D4 01 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 2D FB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CF B6 01 00 35 04 06 00 EB 69 54 D5 20 17 9B C4 07 C5 53 8D 24 63 [15:50:06]CheckFolder [15:50:06]dirname=/storage/ofd_packets [15:50:06]CheckFolder done [15:50:06]ProducePacketName [15:50:06]name=ofd_packets/00112335 [15:50:06]NVStorageSaveData ofd_packets/00112335 [15:50:06]File name is /storage/ofd_packets/00112335 [15:50:06]Write 349 bytes [15:50:06]NVStorageSaveData done [15:50:06]OFDSenderStorePacket done [15:50:06]KKMCreateOFDPacket done [15:50:06]NVStorageSaveData kkm_last_timestamp [15:50:06]File name is /storage/kkm_last_timestamp [15:50:06]Write 4 bytes [15:50:06]NVStorageSaveData done [15:50:06]ExternCall_PrintAddStr [15:50:06]wPrintStart [15:50:06]Write to MH i2c: 01 00 00 4A 10 5A [15:50:06]Write i2c OK [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 07 00 [15:50:06]MH_I2C_Read... [15:50:06]Read from MH i2c: 01 07 00 4A 10 00 00 00 00 00 FF 0F 6F [15:50:06]RasterBufferAndPrint [15:50:06]line Счет N : (3)10429 [15:50:06]line ИНН: 02508201610067 [15:50:06]line Контрольно-Кассовый Чек [15:50:06]line ПРОДАЖА [15:50:06]line Товар: 2000032780015 [15:50:06]line Слойка DC треугольная курица 110г [15:50:06]line 4.000 * 65.00 [15:50:06]line = 260.00 [15:50:06]line НДС 12% НСП 1% [15:50:06]line > о реализуемом товаре [15:50:06]line ИТОГО: 260.00 [15:50:06]line НСП 1% : 2.30 [15:50:06]line НДС 12% : 27.61 [15:50:06]line Наличными: 260.00 [15:50:06]line Безнал.: 0.00 [15:50:06]line Место: АЗС № 47 "Партнер Нефть" [15:50:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:50:06]line СНО: Общий режим [15:50:06]line Чек 234 14.04.2024 15:50 [15:50:06]line Смена: 357 ФФД: 1.0 [15:50:06]line ЗНМ: 0300000138 [15:50:06]line РНМ: 0000000000094237 [15:50:06]line Версия ККМ: 001 [15:50:06]line ФМ: 0000000000875019 [15:50:06]line ФД: 112335 [15:50:06]line ФПД: 258837627346967 [15:50:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155005&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112335&fm=258837627346967&tin=02508201610067®Number=0000000000094237&sum=26000 [15:50:07]line 0 [15:50:07]OFD Sender: Processing packet 112335 [packets to send 71, broken 70] [15:50:07]ProducePacketName [15:50:07]name=ofd_packets/00112335 [15:50:07]OFD Sender: To server: pG, [15:50:07]CommunicateWithHost lk.salyk.kg:30040 [15:50:07]ConnectInit lk.salyk.kg [15:50:07]written 0, free lines is 4095 [15:50:07]Connected sock=10 [15:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3F 01 00 00 9C BF 37 01 D4 01 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 2D FB 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CF B6 01 00 35 04 06 00 EB 69 54 D5 20 17 9B C4 07 C5 53 8D 24 63 [15:50:07]Write to MH i2c: 01 00 00 73 10 83 [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 07 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: 01 07 00 73 10 00 00 00 00 00 FA 0C 90 [15:50:07]RasterBufferAndPrint [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]line [15:50:07]written 0, free lines is 3328 [15:50:07]MH_Cut [15:50:07]Write to MH i2c: D1 01 00 7A 10 01 5C [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 01 00 [15:50:07]MH_I2C_Read... [15:50:07]Read from MH i2c: D1 01 00 7A 10 00 5B [15:50:07]Write to MH i2c: 01 00 00 7B 10 8B [15:50:07]Write i2c OK [15:50:07]MH_I2C_Read... [15:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 BC A5 47 00 C8 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 CF B6 01 00 F4 03 04 00 B8 A2 1B 66 B6 04 01 00 00 D6 FA 6E F5 2B AA 87 B8 [15:50:07]CommunicateWithHost err = 0 [15:50:07]CheckOFDResponse [15:50:07]1017 (14) - 77093643461234 [15:50:07]1041 (16) - 0000000000875019 [15:50:07]1040 (4) - 112335 [15:50:07]1012 (4) - 14.04.2024 09:32 [15:50:07]1206 (1) - 0 [15:50:07]OFD Sender: Remove packet 112335 [15:50:07]ProducePacketName [15:50:07]name=ofd_packets/00112335 [15:50:07]NVStorageDeleteData [15:50:08]OFD Sender: No OFD packet to send [15:50:08]*** Cut start [15:50:08]*** Partial cut [15:50:08]*** CUTSNS_PIN = 1 [15:50:08]*** CUTSNS_PIN = 0 [15:50:08]*** Brake cut motor [15:50:08]Read from MH i2c: 01 [15:50:08]MH_I2C_Read... [15:50:08]*** Stop cut motor [15:50:08]*** Cut end [15:50:08]Read from MH i2c: 01 07 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: 01 07 00 7B 10 00 00 00 00 00 FF 0F A0 [15:50:08]process_action close_receipt done [15:50:08]requested_data is exist [15:50:08]produce_requested_data [15:50:08]requested_item fm.sn is exist - process it [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 11 00 00 [15:50:08]Write to MH i2c: E2 08 00 7C 10 80 11 00 00 00 00 00 00 06 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:50:08]Read from MH i2c: E2 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 17 00 [15:50:08]MH_I2C_Read... [15:50:08]Read from MH i2c: E2 17 00 7C 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 57 [15:50:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:50:08]wFMCommunicate OK [15:50:08]requested_item fd.num is exist - process it [15:50:08]SAM_PROTO_GetFieldsCounters [15:50:08]wFMCommunicate request_size=4 [15:50:08]MH_SAM_APDU [15:50:08]CAPDU: 80 13 00 00 [15:50:08]Write to MH i2c: E2 08 00 7D 10 80 13 00 00 00 00 00 00 09 [15:50:08]Write i2c OK [15:50:08]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 62 00 [15:50:09]MH_I2C_Read... [15:50:09]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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [15:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 CF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_GetFieldsCounters done [15:50:09]requested_item shift.num is exist - process it [15:50:09]requested_item shift.opened is exist - process it [15:50:09]req_shift_opened [15:50:09]FM_GetShiftState [15:50:09]SAM_PROTO_GetShiftState [15:50:09]wFMCommunicate request_size=4 [15:50:09]MH_SAM_APDU [15:50:09]CAPDU: 80 13 01 00 [15:50:09]Write to MH i2c: E2 08 00 7E 10 80 13 01 00 00 00 00 00 0B [15:50:09]Write i2c OK [15:50:09]MH_I2C_Read... [15:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:50:09]Read from MH i2c: E2 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0E 00 [15:50:09]MH_I2C_Read... [15:50:09]Read from MH i2c: E2 0E 00 7E 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [15:50:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:50:09]wFMCommunicate OK [15:50:09]SAM_PROTO_GetShiftState done [15:50:09]FM_GetShiftState done [15:50:09]req_shift_opened done [15:50:09]requested_item shift.open_date is exist - process it [15:50:09]req_shift_open_date [15:50:09]req_shift_open_date done [15:50:09]produce_requested_data done [15:50:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112335,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:50:09]process_action_free close_receipt [15:50:09]json_value_free [15:50:09]json_value_free done [15:50:09]process_json_proto returns [15:50:09]Send response to host [15:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112335,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:50:09]free response buf [15:50:09]execute_script done [15:50:09]execute_script returns [15:50:09]free content buf [15:50:09]Sock 8.Close socket [15:50:09]Sock 8.Thread stoped [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]accept exits with 9 [15:59:03]New connection [15:59:03]New thread 3066826084 created [15:59:03]Thread 3066682724 joined [15:59:03]Waiting for new connection... [15:59:03] Sock 9.Parse request [15:59:03]Sock 9.Check first char [15:59:03]Sock 9.First char is OK [15:59:03]request: POST /json_proto HTTP/1.0 [15:59:03]Method: POST [15:59:03]URL: /json_proto [15:59:03]Method is POST - this is cgi request [15:59:03]url: /json_proto [15:59:03]query_string will be loaded in cgi processing [15:59:03]execute_cgi json_proto POST (null) [15:59:03]execute_cgi path=json_proto method=POST [15:59:03]POST find Content-Length [15:59:03]Host: 172.17.96.197:8080 [15:59:03]Content-Length: 684 [15:59:03]Content-Type: application/json [15:59:03] [15:59:03]POST finish read [15:59:03]Found Content-Length = 684 [15:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 37.000, "sum" : 1209.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1209.00, "total" : 1209.00, "payments": [ { "type": 0, "sum" : 1209.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:03]execute_script... [15:59:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 37.000, "sum" : 1209.90, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1209.00, "total" : 1209.00, "payments": [ { "type": 0, "sum" : 1209.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:03]POST & json_proto [15:59:03]process_json_proto [15:59:03]json parsed OK: [15:59:03]protocol is kg_v1.0 [15:59:03]action value=close_receipt [15:59:03]process_action close_receipt [15:59:03]cmd_close_receipt [15:59:03]MH_GetDate [15:59:03]Write to MH i2c: F0 00 00 7F 10 7E [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: F0 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: F0 09 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: F0 09 00 7F 10 00 47 FD 1B 66 E0 85 7F 64 94 [15:59:03]GetLastDocTimeStamp 1713109805 [15:59:03]current date 1713110343 [15:59:03]FM_GetShiftState [15:59:03]SAM_PROTO_GetShiftState [15:59:03]wFMCommunicate request_size=4 [15:59:03]MH_SAM_APDU [15:59:03]CAPDU: 80 13 01 00 [15:59:03]Write to MH i2c: E2 08 00 80 10 80 13 01 00 00 00 00 00 0D [15:59:03]Write i2c OK [15:59:03]MH_I2C_Read... [15:59:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:03]Read from MH i2c: E2 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 0E 00 [15:59:03]MH_I2C_Read... [15:59:03]Read from MH i2c: E2 0E 00 80 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [15:59:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:59:03]wFMCommunicate OK [15:59:03]SAM_PROTO_GetShiftState done [15:59:03]FM_GetShiftState done [15:59:03]opened in 1713054696 [15:59:03]opened+sec_in_day 1713141096 [15:59:03]quantity*price = 120990 [15:59:03]sum+1 = 120991 [15:59:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.90 ИТОГО: 1209.00 Внесено: 1209.00 СДАЧА: 0.00 НСП 1% : 10.71 НДС 12% : 128.48 Наличными: 1209.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 235 14.04.2024 15:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112336 ФПД: 174845472081711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155903&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112336&fm=174845472081711&tin=02508201610067®Number=0000000000094237&sum=120900 [15:59:04]StoreToDocumentArchive [15:59:04]shift 357 fd 112336 [15:59:04]save to /storage/0357/doc_00112336 [15:59:04]save last doc name /storage/0357/doc_00112336 to /storage/kkm_last_doc_name [15:59:04]save OK [15:59:04]Clear old archive folders... [15:59:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [15:59:04]tlvbuf is B6D892F0 [15:59:04]SAM_PROTO_ClearQueue [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 09 00 00 [15:59:04]Write to MH i2c: E2 08 00 8D 10 80 09 00 00 00 00 00 00 0F [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 8D 10 00 90 00 11 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_ClearQueue done [15:59:04]KKMCreateOFDPacket [15:59:04]OFDProtocolAddRootSTLVToBuf [15:59:04]FM_MakeSignedData [15:59:04]FM_MakeSignedData [15:59:04]SAM_PROTO_SignData [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 0D 01 02 [15:59:04]Write to MH i2c: E2 08 00 8E 10 80 0D 01 02 00 00 00 00 17 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 8E 10 00 90 00 12 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=255 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 9E D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 32 00 00 00 00 07 04 06 00 44 D8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 47 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D0 B6 01 00 35 04 06 00 9F 05 [15:59:04]Write to MH i2c: E2 02 01 8F 10 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 9E D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 32 00 00 00 00 07 04 06 00 44 D8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 47 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D0 B6 01 00 35 04 06 00 9F 05 00 00 37 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 8F 10 00 90 00 13 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=9 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 0D 02 02 04 62 41 07 2F [15:59:04]Write to MH i2c: E2 0C 00 90 10 80 0D 02 02 04 00 62 41 07 2F 00 00 FB [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 03 00 90 10 00 90 00 14 [15:59:04]RAPDU: 90 00 [15:59:04]wFMCommunicate OK [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 0D 03 02 [15:59:04]Write to MH i2c: E2 08 00 91 10 80 0D 03 02 00 00 00 00 1C [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0B 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 0B 00 91 10 00 11 72 B3 03 D2 40 9B 8A 90 00 8D [15:59:04]RAPDU: 11 72 B3 03 D2 40 9B 8A 90 00 [15:59:04]wFMCommunicate OK [15:59:04]SAM_PROTO_SignData done [15:59:04]FM_MakeSignedData done [15:59:04]CreateOFDProtocolMessage [15:59:04]wFMCommunicate request_size=4 [15:59:04]MH_SAM_APDU [15:59:04]CAPDU: 80 11 00 00 [15:59:04]Write to MH i2c: E2 08 00 92 10 80 11 00 00 00 00 00 00 1C [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:04]Read from MH i2c: E2 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: E2 17 00 92 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6D [15:59:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:59:04]wFMCommunicate OK [15:59:04]CreateOFDProtocolMessage done [15:59:04]OFDSenderStorePacket 112336 [15:59:04]StoreOFDPacket docnum=112336 [15:59:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C3 7E 06 01 F5 ED 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 9E D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 32 00 00 00 00 07 04 06 00 44 D8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 47 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D0 B6 01 00 35 04 06 00 9F 05 62 41 07 2F 11 72 B3 03 D2 40 9B 8A [15:59:04]CheckFolder [15:59:04]dirname=/storage/ofd_packets [15:59:04]CheckFolder done [15:59:04]ProducePacketName [15:59:04]name=ofd_packets/00112336 [15:59:04]NVStorageSaveData ofd_packets/00112336 [15:59:04]File name is /storage/ofd_packets/00112336 [15:59:04]Write 300 bytes [15:59:04]NVStorageSaveData done [15:59:04]OFDSenderStorePacket done [15:59:04]KKMCreateOFDPacket done [15:59:04]NVStorageSaveData kkm_last_timestamp [15:59:04]File name is /storage/kkm_last_timestamp [15:59:04]Write 4 bytes [15:59:04]NVStorageSaveData done [15:59:04]ExternCall_PrintAddStr [15:59:04]wPrintStart [15:59:04]Write to MH i2c: 01 00 00 93 10 A3 [15:59:04]Write i2c OK [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 [15:59:04]MH_I2C_Read... [15:59:04]Read from MH i2c: 01 07 00 93 10 00 00 00 00 00 FF 0F B8 [15:59:04]RasterBufferAndPrint [15:59:04]line Счет N : (1)48647 [15:59:04]line ИНН: 02508201610067 [15:59:04]line Контрольно-Кассовый Чек [15:59:04]line ПРОДАЖА [15:59:04]line ТРК (МРК, ГНК) : 72 [15:59:04]line Товар: 2711190000 [15:59:04]line ГАЗ-К-5 [15:59:04]line 37.000 * 32.70 [15:59:04]line = 1209.90 [15:59:04]line НДС 12% НСП 1% [15:59:04]line > о реализуемом товаре [15:59:04]line ОКРУГЛЕНИЕ: -0.90 [15:59:04]line ИТОГО: 1209.00 [15:59:04]line Внесено: 1209.00 [15:59:04]line СДАЧА: 0.00 [15:59:04]line НСП 1% : 10.71 [15:59:04]line НДС 12% : 128.48 [15:59:04]line Наличными: 1209.00 [15:59:04]line Безнал.: 0.00 [15:59:04]line Место: АЗС № 47 "Партнер Нефть" [15:59:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:59:04]line СНО: Общий режим [15:59:04]line Чек 235 14.04.2024 15:59 [15:59:04]line Смена: 357 ФФД: 1.0 [15:59:05]line ЗНМ: 0300000138 [15:59:05]line РНМ: 0000000000094237 [15:59:05]line Версия ККМ: 001 [15:59:05]line ФМ: 0000000000875019 [15:59:05]line ФД: 112336 [15:59:05]line ФПД: 174845472081711 [15:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155903&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112336&fm=174845472081711&tin=02508201610067®Number=0000000000094237&sum=120900 [15:59:05]OFD Sender: Processing packet 112336 [packets to send 71, broken 70] [15:59:05]ProducePacketName [15:59:05]name=ofd_packets/00112336 [15:59:05]OFD Sender: To server: pG, [15:59:05]CommunicateWithHost lk.salyk.kg:30040 [15:59:05]ConnectInit lk.salyk.kg [15:59:05]written 0, free lines is 4095 [15:59:05]Connected sock=10 [15:59:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C3 7E 06 01 F5 ED 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 88 90 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 9E D8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 D8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 32 00 00 00 00 07 04 06 00 44 D8 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 47 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D0 B6 01 00 35 04 06 00 9F 05 62 41 07 2F 11 72 B3 03 D2 40 9B 8A [15:59:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 32 6A 47 00 E8 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D0 B6 01 00 F4 03 04 00 D2 A4 1B 66 B6 04 01 00 00 6C 6A 3C BD 4B 11 96 94 [15:59:05]CommunicateWithHost err = 0 [15:59:05]CheckOFDResponse [15:59:05]1017 (14) - 77093643461234 [15:59:05]1041 (16) - 0000000000875019 [15:59:05]1040 (4) - 112336 [15:59:05]1012 (4) - 14.04.2024 09:41 [15:59:05]1206 (1) - 0 [15:59:05]OFD Sender: Remove packet 112336 [15:59:05]ProducePacketName [15:59:05]name=ofd_packets/00112336 [15:59:05]NVStorageDeleteData [15:59:05]Write to MH i2c: 01 00 00 BE 10 CE [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: 01 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: 01 07 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: 01 07 00 BE 10 00 00 00 00 00 DF 0C C0 [15:59:05]RasterBufferAndPrint [15:59:05]line [15:59:05]line [15:59:05]line [15:59:05]line [15:59:05]line [15:59:05]written 0, free lines is 3301 [15:59:05]MH_Cut [15:59:05]Write to MH i2c: D1 01 00 C5 10 01 A7 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: D1 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: D1 01 00 [15:59:05]MH_I2C_Read... [15:59:05]Read from MH i2c: D1 01 00 C5 10 00 A6 [15:59:05]Write to MH i2c: 01 00 00 C6 10 D6 [15:59:05]Write i2c OK [15:59:05]MH_I2C_Read... [15:59:06]OFD Sender: No OFD packet to send [15:59:06]*** Cut start [15:59:06]*** Partial cut [15:59:06]*** CUTSNS_PIN = 1 [15:59:06]*** CUTSNS_PIN = 0 [15:59:06]*** Brake cut motor [15:59:07]Read from MH i2c: 01 [15:59:07]MH_I2C_Read... [15:59:07]*** Stop cut motor [15:59:07]*** Cut end [15:59:07]Read from MH i2c: 01 07 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: 01 07 00 C6 10 00 00 00 00 00 FF 0F EB [15:59:07]process_action close_receipt done [15:59:07]requested_data is exist [15:59:07]produce_requested_data [15:59:07]requested_item fm.sn is exist - process it [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 11 00 00 [15:59:07]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 17 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A2 [15:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:59:07]wFMCommunicate OK [15:59:07]requested_item fd.num is exist - process it [15:59:07]SAM_PROTO_GetFieldsCounters [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 13 00 00 [15:59:07]Write to MH i2c: E2 08 00 C8 10 80 13 00 00 00 00 00 00 54 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 62 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 62 00 C8 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [15:59:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_GetFieldsCounters done [15:59:07]requested_item shift.num is exist - process it [15:59:07]requested_item shift.opened is exist - process it [15:59:07]req_shift_opened [15:59:07]FM_GetShiftState [15:59:07]SAM_PROTO_GetShiftState [15:59:07]wFMCommunicate request_size=4 [15:59:07]MH_SAM_APDU [15:59:07]CAPDU: 80 13 01 00 [15:59:07]Write to MH i2c: E2 08 00 C9 10 80 13 01 00 00 00 00 00 56 [15:59:07]Write i2c OK [15:59:07]MH_I2C_Read... [15:59:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:07]Read from MH i2c: E2 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0E 00 [15:59:07]MH_I2C_Read... [15:59:07]Read from MH i2c: E2 0E 00 C9 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [15:59:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:59:07]wFMCommunicate OK [15:59:07]SAM_PROTO_GetShiftState done [15:59:07]FM_GetShiftState done [15:59:07]req_shift_opened done [15:59:07]requested_item shift.open_date is exist - process it [15:59:07]req_shift_open_date [15:59:07]req_shift_open_date done [15:59:07]produce_requested_data done [15:59:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112336,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:59:07]process_action_free close_receipt [15:59:07]json_value_free [15:59:07]json_value_free done [15:59:07]process_json_proto returns [15:59:07]Send response to host [15:59:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112336,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:59:07]free response buf [15:59:07]execute_script done [15:59:07]execute_script returns [15:59:07]free content buf [15:59:07]Sock 9.Close socket [15:59:07]Sock 9.Thread stoped [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]accept exits with 8 [15:59:36]New connection [15:59:36]New thread 3066682724 created [15:59:36]Thread 3066826084 joined [15:59:36]Waiting for new connection... [15:59:36] Sock 8.Parse request [15:59:36]Sock 8.Check first char [15:59:36]Sock 8.First char is OK [15:59:36]request: POST /json_proto HTTP/1.0 [15:59:36]Method: POST [15:59:36]URL: /json_proto [15:59:36]Method is POST - this is cgi request [15:59:36]url: /json_proto [15:59:36]query_string will be loaded in cgi processing [15:59:36]execute_cgi json_proto POST (null) [15:59:36]execute_cgi path=json_proto method=POST [15:59:36]POST find Content-Length [15:59:36]Host: 172.17.96.197:8080 [15:59:36]Content-Length: 676 [15:59:36]Content-Type: application/json [15:59:36] [15:59:36]POST finish read [15:59:36]Found Content-Length = 676 [15:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48648", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [15:59:36]execute_script... [15:59: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)48648", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [15:59:36]POST & json_proto [15:59:36]process_json_proto [15:59:36]json parsed OK: [15:59:36]protocol is kg_v1.0 [15:59:36]action value=close_receipt [15:59:36]process_action close_receipt [15:59:36]cmd_close_receipt [15:59:36]MH_GetDate [15:59:36]Write to MH i2c: F0 00 00 CA 10 C9 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: F0 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: F0 09 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: F0 09 00 CA 10 00 68 FD 1B 66 E0 85 7F 64 00 [15:59:36]GetLastDocTimeStamp 1713110343 [15:59:36]current date 1713110376 [15:59:36]FM_GetShiftState [15:59:36]SAM_PROTO_GetShiftState [15:59:36]wFMCommunicate request_size=4 [15:59:36]MH_SAM_APDU [15:59:36]CAPDU: 80 13 01 00 [15:59:36]Write to MH i2c: E2 08 00 CB 10 80 13 01 00 00 00 00 00 58 [15:59:36]Write i2c OK [15:59:36]MH_I2C_Read... [15:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:36]Read from MH i2c: E2 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 0E 00 [15:59:36]MH_I2C_Read... [15:59:36]Read from MH i2c: E2 0E 00 CB 10 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [15:59:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:59:36]wFMCommunicate OK [15:59:36]SAM_PROTO_GetShiftState done [15:59:36]FM_GetShiftState done [15:59:36]opened in 1713054696 [15:59:36]opened+sec_in_day 1713141096 [15:59:36]quantity*price = 30028 [15:59:36]sum+1 = 30029 [15:59:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 236 14.04.2024 15:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112337 ФПД: 164011341890001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155936&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112337&fm=164011341890001&tin=02508201610067®Number=0000000000094237&sum=30000 [15:59:37]StoreToDocumentArchive [15:59:37]shift 357 fd 112337 [15:59:37]save to /storage/0357/doc_00112337 [15:59:37]save last doc name /storage/0357/doc_00112337 to /storage/kkm_last_doc_name [15:59:37]save OK [15:59:37]Clear old archive folders... [15:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:59:37]tlvbuf is 00140120 [15:59:37]SAM_PROTO_ClearQueue [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 09 00 00 [15:59:37]Write to MH i2c: E2 08 00 D8 10 80 09 00 00 00 00 00 00 5A [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 D8 10 00 90 00 5C [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_ClearQueue done [15:59:37]KKMCreateOFDPacket [15:59:37]OFDProtocolAddRootSTLVToBuf [15:59:37]FM_MakeSignedData [15:59:37]FM_MakeSignedData [15:59:37]SAM_PROTO_SignData [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 01 02 [15:59:37]Write to MH i2c: E2 08 00 D9 10 80 0D 01 02 00 00 00 00 62 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 D9 10 00 90 00 5D [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]wFMCommunicate request_size=255 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 EC 00 00 00 F4 03 04 00 68 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D1 B6 01 00 35 04 06 00 95 [15:59:37]Write to MH i2c: E2 02 01 DA 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 EC 00 00 00 F4 03 04 00 68 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D1 B6 01 00 35 04 06 00 95 00 00 DD [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 DA 10 00 90 00 5E [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]wFMCommunicate request_size=10 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 02 02 05 2A DD C5 C1 D1 [15:59:37]Write to MH i2c: E2 0D 00 DB 10 80 0D 02 02 05 00 2A DD C5 C1 D1 00 00 CD [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 03 00 DB 10 00 90 00 5F [15:59:37]RAPDU: 90 00 [15:59:37]wFMCommunicate OK [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 0D 03 02 [15:59:37]Write to MH i2c: E2 08 00 DC 10 80 0D 03 02 00 00 00 00 67 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0B 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 0B 00 DC 10 00 BE C7 FB 45 BE 13 97 36 90 00 CB [15:59:37]RAPDU: BE C7 FB 45 BE 13 97 36 90 00 [15:59:37]wFMCommunicate OK [15:59:37]SAM_PROTO_SignData done [15:59:37]FM_MakeSignedData done [15:59:37]CreateOFDProtocolMessage [15:59:37]wFMCommunicate request_size=4 [15:59:37]MH_SAM_APDU [15:59:37]CAPDU: 80 11 00 00 [15:59:37]Write to MH i2c: E2 08 00 DD 10 80 11 00 00 00 00 00 00 67 [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:37]Read from MH i2c: E2 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: E2 17 00 DD 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B8 [15:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:59:37]wFMCommunicate OK [15:59:37]CreateOFDProtocolMessage done [15:59:37]OFDSenderStorePacket 112337 [15:59:37]StoreOFDPacket docnum=112337 [15:59:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 97 07 01 20 84 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 EC 00 00 00 F4 03 04 00 68 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D1 B6 01 00 35 04 06 00 95 2A DD C5 C1 D1 BE C7 FB 45 BE 13 97 36 [15:59:37]CheckFolder [15:59:37]dirname=/storage/ofd_packets [15:59:37]CheckFolder done [15:59:37]ProducePacketName [15:59:37]name=ofd_packets/00112337 [15:59:37]NVStorageSaveData ofd_packets/00112337 [15:59:37]File name is /storage/ofd_packets/00112337 [15:59:37]Write 301 bytes [15:59:37]NVStorageSaveData done [15:59:37]OFDSenderStorePacket done [15:59:37]KKMCreateOFDPacket done [15:59:37]NVStorageSaveData kkm_last_timestamp [15:59:37]File name is /storage/kkm_last_timestamp [15:59:37]Write 4 bytes [15:59:37]NVStorageSaveData done [15:59:37]ExternCall_PrintAddStr [15:59:37]wPrintStart [15:59:37]Write to MH i2c: 01 00 00 DE 10 EE [15:59:37]Write i2c OK [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 [15:59:37]MH_I2C_Read... [15:59:37]Read from MH i2c: 01 07 00 DE 10 00 00 00 00 00 FF 0F 03 [15:59:37]RasterBufferAndPrint [15:59:37]line Счет N : (1)48648 [15:59:37]line ИНН: 02508201610067 [15:59:37]line Контрольно-Кассовый Чек [15:59:37]line ПРОДАЖА [15:59:37]line ТРК (МРК, ГНК) : 32 [15:59:37]line Товар: 2710124130 [15:59:37]line Аи-92-К-5 [15:59:37]line 4.670 * 64.30 [15:59:37]line = 300.28 [15:59:37]line НДС 12% НСП 1% [15:59:37]line > о реализуемом товаре [15:59:37]line ОКРУГЛЕНИЕ: -0.28 [15:59:37]line ИТОГО: 300.00 [15:59:37]line Внесено: 300.00 [15:59:37]line СДАЧА: 0.00 [15:59:37]line НСП 1% : 2.66 [15:59:37]line НДС 12% : 31.89 [15:59:37]line Наличными: 300.00 [15:59:37]line Безнал.: 0.00 [15:59:37]line Место: АЗС № 47 "Партнер Нефть" [15:59:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [15:59:37]line СНО: Общий режим [15:59:37]line Чек 236 14.04.2024 15:59 [15:59:37]line Смена: 357 ФФД: 1.0 [15:59:37]line ЗНМ: 0300000138 [15:59:37]line РНМ: 0000000000094237 [15:59:37]line Версия ККМ: 001 [15:59:37]line ФМ: 0000000000875019 [15:59:37]line ФД: 112337 [15:59:37]line ФПД: 164011341890001 [15:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T155936&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112337&fm=164011341890001&tin=02508201610067®Number=0000000000094237&sum=30000 [15:59:38]OFD Sender: Processing packet 112337 [packets to send 71, broken 70] [15:59:38]ProducePacketName [15:59:38]name=ofd_packets/00112337 [15:59:38]OFD Sender: To server: pG, [15:59:38]CommunicateWithHost lk.salyk.kg:30040 [15:59:38]ConnectInit lk.salyk.kg [15:59:38]written 0, free lines is 4095 [15:59:38]Connected sock=10 [15:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 97 07 01 20 84 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 EC 00 00 00 F4 03 04 00 68 FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D1 B6 01 00 35 04 06 00 95 2A DD C5 C1 D1 BE C7 FB 45 BE 13 97 36 [15:59:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A9 EA 47 00 AC F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D1 B6 01 00 F4 03 04 00 F3 A4 1B 66 B6 04 01 00 00 48 7E 93 B4 58 F9 71 84 [15:59:38]CommunicateWithHost err = 0 [15:59:38]CheckOFDResponse [15:59:38]1017 (14) - 77093643461234 [15:59:38]1041 (16) - 0000000000875019 [15:59:38]1040 (4) - 112337 [15:59:38]1012 (4) - 14.04.2024 09:42 [15:59:38]1206 (1) - 0 [15:59:38]OFD Sender: Remove packet 112337 [15:59:38]ProducePacketName [15:59:38]name=ofd_packets/00112337 [15:59:38]NVStorageDeleteData [15:59:38]Write to MH i2c: 01 00 00 09 11 1A [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: 01 07 00 09 11 00 00 00 00 00 E4 0C 11 [15:59:38]RasterBufferAndPrint [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]line [15:59:38]written 0, free lines is 3306 [15:59:38]MH_Cut [15:59:38]Write to MH i2c: D1 01 00 10 11 01 F3 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 01 00 [15:59:38]MH_I2C_Read... [15:59:38]Read from MH i2c: D1 01 00 10 11 00 F2 [15:59:38]Write to MH i2c: 01 00 00 11 11 22 [15:59:38]Write i2c OK [15:59:38]MH_I2C_Read... [15:59:39]OFD Sender: No OFD packet to send [15:59:39]*** Cut start [15:59:39]*** Partial cut [15:59:39]*** CUTSNS_PIN = 1 [15:59:39]*** CUTSNS_PIN = 0 [15:59:39]*** Brake cut motor [15:59:39]Read from MH i2c: 01 [15:59:39]MH_I2C_Read... [15:59:39]*** Stop cut motor [15:59:39]*** Cut end [15:59:39]Read from MH i2c: 01 07 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: 01 07 00 11 11 00 00 00 00 00 FF 0F 37 [15:59:39]process_action close_receipt done [15:59:39]requested_data is exist [15:59:39]produce_requested_data [15:59:39]requested_item fm.sn is exist - process it [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 11 00 00 [15:59:39]Write to MH i2c: E2 08 00 12 11 80 11 00 00 00 00 00 00 9D [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:39]Read from MH i2c: E2 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 17 00 [15:59:39]MH_I2C_Read... [15:59:39]Read from MH i2c: E2 17 00 12 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EE [15:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [15:59:39]wFMCommunicate OK [15:59:39]requested_item fd.num is exist - process it [15:59:39]SAM_PROTO_GetFieldsCounters [15:59:39]wFMCommunicate request_size=4 [15:59:39]MH_SAM_APDU [15:59:39]CAPDU: 80 13 00 00 [15:59:39]Write to MH i2c: E2 08 00 13 11 80 13 00 00 00 00 00 00 A0 [15:59:39]Write i2c OK [15:59:39]MH_I2C_Read... [15:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:59:40]Read from MH i2c: E2 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 62 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 62 00 13 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:59:40]wFMCommunicate OK [15:59:40]SAM_PROTO_GetFieldsCounters done [15:59:40]requested_item shift.num is exist - process it [15:59:40]requested_item shift.opened is exist - process it [15:59:40]req_shift_opened [15:59:40]FM_GetShiftState [15:59:40]SAM_PROTO_GetShiftState [15:59:40]wFMCommunicate request_size=4 [15:59:40]MH_SAM_APDU [15:59:40]CAPDU: 80 13 01 00 [15:59:40]Write to MH i2c: E2 08 00 14 11 80 13 01 00 00 00 00 00 A2 [15:59:40]Write i2c OK [15:59:40]MH_I2C_Read... [15:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:40]Read from MH i2c: E2 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 0E 00 [15:59:40]MH_I2C_Read... [15:59:40]Read from MH i2c: E2 0E 00 14 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3A [15:59:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [15:59:40]wFMCommunicate OK [15:59:40]SAM_PROTO_GetShiftState done [15:59:40]FM_GetShiftState done [15:59:40]req_shift_opened done [15:59:40]requested_item shift.open_date is exist - process it [15:59:40]req_shift_open_date [15:59:40]req_shift_open_date done [15:59:40]produce_requested_data done [15:59:40]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112337,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [15:59:40]process_action_free close_receipt [15:59:40]json_value_free [15:59:40]json_value_free done [15:59:40]process_json_proto returns [15:59:40]Send response to host [15:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112337,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [15:59:40]free response buf [15:59:40]execute_script done [15:59:40]execute_script returns [15:59:40]free content buf [15:59:40]Sock 8.Close socket [15:59:40]Sock 8.Thread stoped [15:59:44]OFD Sender: No OFD packet to send [15:59:49]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:30]accept exits with 9 [16:00:30]New connection [16:00:30]New thread 3066826084 created [16:00:30]Thread 3066682724 joined [16:00:30]Waiting for new connection... [16:00:30] Sock 9.Parse request [16:00:30]Sock 9.Check first char [16:00:30]Sock 9.First char is OK [16:00:30]request: POST /json_proto HTTP/1.0 [16:00:30]Method: POST [16:00:30]URL: /json_proto [16:00:30]Method is POST - this is cgi request [16:00:30]url: /json_proto [16:00:30]query_string will be loaded in cgi processing [16:00:30]execute_cgi json_proto POST (null) [16:00:30]execute_cgi path=json_proto method=POST [16:00:30]POST find Content-Length [16:00:30]Host: 172.17.96.197:8080 [16:00:30]Content-Length: 678 [16:00:30]Content-Type: application/json [16:00:30] [16:00:30]POST finish read [16:00:30]Found Content-Length = 678 [16:00:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48649", "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.40, "quantity" : 15.200, "sum" : 1100.48, "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" ] } } [16:00:30]execute_script... [16:00: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)48649", "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.40, "quantity" : 15.200, "sum" : 1100.48, "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" ] } } [16:00:30]POST & json_proto [16:00:30]process_json_proto [16:00:30]json parsed OK: [16:00:30]protocol is kg_v1.0 [16:00:30]action value=close_receipt [16:00:30]process_action close_receipt [16:00:30]cmd_close_receipt [16:00:30]MH_GetDate [16:00:30]Write to MH i2c: F0 00 00 15 11 15 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 09 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: F0 09 00 15 11 00 9E FD 1B 66 E0 85 7F 64 82 [16:00:30]GetLastDocTimeStamp 1713110376 [16:00:30]current date 1713110430 [16:00:30]FM_GetShiftState [16:00:30]SAM_PROTO_GetShiftState [16:00:30]wFMCommunicate request_size=4 [16:00:30]MH_SAM_APDU [16:00:30]CAPDU: 80 13 01 00 [16:00:30]Write to MH i2c: E2 08 00 16 11 80 13 01 00 00 00 00 00 A4 [16:00:30]Write i2c OK [16:00:30]MH_I2C_Read... [16:00:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:30]Read from MH i2c: E2 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 [16:00:30]MH_I2C_Read... [16:00:30]Read from MH i2c: E2 0E 00 16 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [16:00:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:00:30]wFMCommunicate OK [16:00:30]SAM_PROTO_GetShiftState done [16:00:30]FM_GetShiftState done [16:00:30]opened in 1713054696 [16:00:30]opened+sec_in_day 1713141096 [16:00:30]quantity*price = 110048 [16:00:30]sum+1 = 110049 [16:00:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 237 14.04.2024 16:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112338 ФПД: 192655630041521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160030&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112338&fm=192655630041521&tin=02508201610067®Number=0000000000094237&sum=110000 [16:00:31]StoreToDocumentArchive [16:00:31]shift 357 fd 112338 [16:00:31]save to /storage/0357/doc_00112338 [16:00:31]save last doc name /storage/0357/doc_00112338 to /storage/kkm_last_doc_name [16:00:31]save OK [16:00:31]Clear old archive folders... [16:00:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:00:31]tlvbuf is 00133D30 [16:00:31]SAM_PROTO_ClearQueue [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 09 00 00 [16:00:31]Write to MH i2c: E2 08 00 23 11 80 09 00 00 00 00 00 00 A6 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 23 11 00 90 00 A8 [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]SAM_PROTO_ClearQueue done [16:00:31]KKMCreateOFDPacket [16:00:31]OFDProtocolAddRootSTLVToBuf [16:00:31]FM_MakeSignedData [16:00:31]FM_MakeSignedData [16:00:31]SAM_PROTO_SignData [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 01 02 [16:00:31]Write to MH i2c: E2 08 00 24 11 80 0D 01 02 00 00 00 00 AE [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 24 11 00 90 00 A9 [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=255 [16:00:31]MH_SAM_APDU [16:00:31]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 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 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 A6 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 ED 00 00 00 F4 03 04 00 9E FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D2 B6 01 00 35 04 06 00 AF 38 22 64 [16:00:31]Write to MH i2c: E2 02 01 25 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 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 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 A6 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 ED 00 00 00 F4 03 04 00 9E FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D2 B6 01 00 35 04 06 00 AF 38 22 64 00 00 5B [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 25 11 00 90 00 AA [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=7 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 02 02 02 81 B1 [16:00:31]Write to MH i2c: E2 0A 00 26 11 80 0D 02 02 02 00 81 B1 00 00 E7 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 03 00 26 11 00 90 00 AB [16:00:31]RAPDU: 90 00 [16:00:31]wFMCommunicate OK [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 0D 03 02 [16:00:31]Write to MH i2c: E2 08 00 27 11 80 0D 03 02 00 00 00 00 B3 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0B 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 0B 00 27 11 00 3E 04 49 78 19 57 C4 B4 90 00 9F [16:00:31]RAPDU: 3E 04 49 78 19 57 C4 B4 90 00 [16:00:31]wFMCommunicate OK [16:00:31]SAM_PROTO_SignData done [16:00:31]FM_MakeSignedData done [16:00:31]CreateOFDProtocolMessage [16:00:31]wFMCommunicate request_size=4 [16:00:31]MH_SAM_APDU [16:00:31]CAPDU: 80 11 00 00 [16:00:31]Write to MH i2c: E2 08 00 28 11 80 11 00 00 00 00 00 00 B3 [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:31]Read from MH i2c: E2 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 17 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: E2 17 00 28 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 04 [16:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:00:31]wFMCommunicate OK [16:00:31]CreateOFDProtocolMessage done [16:00:31]OFDSenderStorePacket 112338 [16:00:31]StoreOFDPacket docnum=112338 [16:00:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 D3 90 04 01 79 3A 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 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 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 A6 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 ED 00 00 00 F4 03 04 00 9E FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D2 B6 01 00 35 04 06 00 AF 38 22 64 81 B1 3E 04 49 78 19 57 C4 B4 [16:00:31]CheckFolder [16:00:31]dirname=/storage/ofd_packets [16:00:31]CheckFolder done [16:00:31]ProducePacketName [16:00:31]name=ofd_packets/00112338 [16:00:31]NVStorageSaveData ofd_packets/00112338 [16:00:31]File name is /storage/ofd_packets/00112338 [16:00:31]Write 298 bytes [16:00:31]NVStorageSaveData done [16:00:31]OFDSenderStorePacket done [16:00:31]KKMCreateOFDPacket done [16:00:31]NVStorageSaveData kkm_last_timestamp [16:00:31]File name is /storage/kkm_last_timestamp [16:00:31]Write 4 bytes [16:00:31]NVStorageSaveData done [16:00:31]ExternCall_PrintAddStr [16:00:31]wPrintStart [16:00:31]Write to MH i2c: 01 00 00 29 11 3A [16:00:31]Write i2c OK [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: 01 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: 01 07 00 [16:00:31]MH_I2C_Read... [16:00:31]Read from MH i2c: 01 07 00 29 11 00 00 00 00 00 FF 0F 4F [16:00:31]RasterBufferAndPrint [16:00:31]line Счет N : (1)48649 [16:00:31]line ИНН: 02508201610067 [16:00:31]line Контрольно-Кассовый Чек [16:00:31]line ПРОДАЖА [16:00:31]line ТРК (МРК, ГНК) : 51 [16:00:31]line Товар: 2710194210 [16:00:31]line ДТ-К-5 [16:00:31]line 15.200 * 72.40 [16:00:31]line = 1100.48 [16:00:31]line НДС 12% НСП 1% [16:00:31]line > о реализуемом товаре [16:00:31]line ОКРУГЛЕНИЕ: -0.48 [16:00:31]line ИТОГО: 1100.00 [16:00:31]line Внесено: 1100.00 [16:00:31]line СДАЧА: 0.00 [16:00:31]line НСП 1% : 9.74 [16:00:31]line НДС 12% : 116.86 [16:00:31]line Наличными: 1100.00 [16:00:31]line Безнал.: 0.00 [16:00:31]line Место: АЗС № 47 "Партнер Нефть" [16:00:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:00:31]line СНО: Общий режим [16:00:31]line Чек 237 14.04.2024 16:00 [16:00:31]line Смена: 357 ФФД: 1.0 [16:00:31]line ЗНМ: 0300000138 [16:00:31]line РНМ: 0000000000094237 [16:00:31]line Версия ККМ: 001 [16:00:31]line ФМ: 0000000000875019 [16:00:31]line ФД: 112338 [16:00:31]line ФПД: 192655630041521 [16:00:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160030&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112338&fm=192655630041521&tin=02508201610067®Number=0000000000094237&sum=110000 [16:00:32]OFD Sender: Processing packet 112338 [packets to send 71, broken 70] [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00112338 [16:00:32]OFD Sender: To server: pG, [16:00:32]CommunicateWithHost lk.salyk.kg:30040 [16:00:32]ConnectInit lk.salyk.kg [16:00:32]written 0, free lines is 4095 [16:00:32]Connected sock=10 [16:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 D3 90 04 01 79 3A 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 60 3B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 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 A6 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 ED 00 00 00 F4 03 04 00 9E FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D2 B6 01 00 35 04 06 00 AF 38 22 64 81 B1 3E 04 49 78 19 57 C4 B4 [16:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2B 8A 47 00 DC 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D2 B6 01 00 F4 03 04 00 29 A5 1B 66 B6 04 01 00 00 1D C2 5C 84 24 08 2A 8D [16:00:32]CommunicateWithHost err = 0 [16:00:32]CheckOFDResponse [16:00:32]1017 (14) - 77093643461234 [16:00:32]1041 (16) - 0000000000875019 [16:00:32]1040 (4) - 112338 [16:00:32]1012 (4) - 14.04.2024 09:43 [16:00:32]1206 (1) - 0 [16:00:32]OFD Sender: Remove packet 112338 [16:00:32]ProducePacketName [16:00:32]name=ofd_packets/00112338 [16:00:32]NVStorageDeleteData [16:00:32]Write to MH i2c: 01 00 00 54 11 65 [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: 01 07 00 54 11 00 00 00 00 00 E5 0C 5D [16:00:32]RasterBufferAndPrint [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]line [16:00:32]written 0, free lines is 3307 [16:00:32]MH_Cut [16:00:32]Write to MH i2c: D1 01 00 5B 11 01 3E [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 01 00 [16:00:32]MH_I2C_Read... [16:00:32]Read from MH i2c: D1 01 00 5B 11 00 3D [16:00:32]Write to MH i2c: 01 00 00 5C 11 6D [16:00:32]Write i2c OK [16:00:32]MH_I2C_Read... [16:00:33]OFD Sender: No OFD packet to send [16:00:33]*** Cut start [16:00:33]*** Partial cut [16:00:33]*** CUTSNS_PIN = 1 [16:00:33]*** CUTSNS_PIN = 0 [16:00:33]*** Brake cut motor [16:00:34]Read from MH i2c: 01 [16:00:34]MH_I2C_Read... [16:00:34]*** Stop cut motor [16:00:34]*** Cut end [16:00:34]Read from MH i2c: 01 07 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: 01 07 00 5C 11 00 00 00 00 00 FF 0F 82 [16:00:34]process_action close_receipt done [16:00:34]requested_data is exist [16:00:34]produce_requested_data [16:00:34]requested_item fm.sn is exist - process it [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 11 00 00 [16:00:34]Write to MH i2c: E2 08 00 5D 11 80 11 00 00 00 00 00 00 E8 [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 17 00 5D 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 39 [16:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:00:34]wFMCommunicate OK [16:00:34]requested_item fd.num is exist - process it [16:00:34]SAM_PROTO_GetFieldsCounters [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 00 00 [16:00:34]Write to MH i2c: E2 08 00 5E 11 80 13 00 00 00 00 00 00 EB [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 62 00 5E 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [16:00:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetFieldsCounters done [16:00:34]requested_item shift.num is exist - process it [16:00:34]requested_item shift.opened is exist - process it [16:00:34]req_shift_opened [16:00:34]FM_GetShiftState [16:00:34]SAM_PROTO_GetShiftState [16:00:34]wFMCommunicate request_size=4 [16:00:34]MH_SAM_APDU [16:00:34]CAPDU: 80 13 01 00 [16:00:34]Write to MH i2c: E2 08 00 5F 11 80 13 01 00 00 00 00 00 ED [16:00:34]Write i2c OK [16:00:34]MH_I2C_Read... [16:00:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:34]Read from MH i2c: E2 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 [16:00:34]MH_I2C_Read... [16:00:34]Read from MH i2c: E2 0E 00 5F 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 85 [16:00:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:00:34]wFMCommunicate OK [16:00:34]SAM_PROTO_GetShiftState done [16:00:34]FM_GetShiftState done [16:00:34]req_shift_opened done [16:00:34]requested_item shift.open_date is exist - process it [16:00:34]req_shift_open_date [16:00:34]req_shift_open_date done [16:00:34]produce_requested_data done [16:00:34]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112338,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:00:34]process_action_free close_receipt [16:00:34]json_value_free [16:00:34]json_value_free done [16:00:34]process_json_proto returns [16:00:34]Send response to host [16:00:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112338,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:00:34]free response buf [16:00:34]execute_script done [16:00:34]execute_script returns [16:00:34]free content buf [16:00:34]Sock 9.Close socket [16:00:34]Sock 9.Thread stoped [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:02]accept exits with 8 [16:02:02]New connection [16:02:02]New thread 3066682724 created [16:02:02]Thread 3066826084 joined [16:02:02]Waiting for new connection... [16:02:02] Sock 8.Parse request [16:02:02]Sock 8.Check first char [16:02:02]Sock 8.First char is OK [16:02:02]request: POST /json_proto HTTP/1.0 [16:02:02]Method: POST [16:02:02]URL: /json_proto [16:02:02]Method is POST - this is cgi request [16:02:02]url: /json_proto [16:02:02]query_string will be loaded in cgi processing [16:02:02]execute_cgi json_proto POST (null) [16:02:02]execute_cgi path=json_proto method=POST [16:02:02]POST find Content-Length [16:02:02]Host: 172.17.96.197:8080 [16:02:02]Content-Length: 678 [16:02:02]Content-Type: application/json [16:02:02] [16:02:02]POST finish read [16:02:02]Found Content-Length = 678 [16:02:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48650", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [16:02:02]execute_script... [16:02:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48650", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [16:02:02]POST & json_proto [16:02:02]process_json_proto [16:02:02]json parsed OK: [16:02:02]protocol is kg_v1.0 [16:02:02]action value=close_receipt [16:02:02]process_action close_receipt [16:02:02]cmd_close_receipt [16:02:02]MH_GetDate [16:02:02]Write to MH i2c: F0 00 00 60 11 60 [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 09 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: F0 09 00 60 11 00 FB FD 1B 66 E0 85 7F 64 2A [16:02:02]GetLastDocTimeStamp 1713110430 [16:02:02]current date 1713110523 [16:02:02]FM_GetShiftState [16:02:02]SAM_PROTO_GetShiftState [16:02:02]wFMCommunicate request_size=4 [16:02:02]MH_SAM_APDU [16:02:02]CAPDU: 80 13 01 00 [16:02:02]Write to MH i2c: E2 08 00 61 11 80 13 01 00 00 00 00 00 EF [16:02:02]Write i2c OK [16:02:02]MH_I2C_Read... [16:02:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:02]Read from MH i2c: E2 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 0E 00 [16:02:02]MH_I2C_Read... [16:02:02]Read from MH i2c: E2 0E 00 61 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [16:02:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:02:02]wFMCommunicate OK [16:02:02]SAM_PROTO_GetShiftState done [16:02:02]FM_GetShiftState done [16:02:02]opened in 1713054696 [16:02:02]opened+sec_in_day 1713141096 [16:02:02]quantity*price = 100056 [16:02:02]sum+1 = 100058 [16:02:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 238 14.04.2024 16:02 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112339 ФПД: 212828554499287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160203&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112339&fm=212828554499287&tin=02508201610067®Number=0000000000094237&sum=100000 [16:02:03]StoreToDocumentArchive [16:02:03]shift 357 fd 112339 [16:02:03]save to /storage/0357/doc_00112339 [16:02:03]save last doc name /storage/0357/doc_00112339 to /storage/kkm_last_doc_name [16:02:03]save OK [16:02:03]Clear old archive folders... [16:02:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:02:03]tlvbuf is 00140550 [16:02:03]SAM_PROTO_ClearQueue [16:02:03]wFMCommunicate request_size=4 [16:02:03]MH_SAM_APDU [16:02:03]CAPDU: 80 09 00 00 [16:02:03]Write to MH i2c: E2 08 00 6E 11 80 09 00 00 00 00 00 00 F1 [16:02:03]Write i2c OK [16:02:03]MH_I2C_Read... [16:02:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 6E 11 00 90 00 F3 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_ClearQueue done [16:02:04]KKMCreateOFDPacket [16:02:04]OFDProtocolAddRootSTLVToBuf [16:02:04]FM_MakeSignedData [16:02:04]FM_MakeSignedData [16:02:04]SAM_PROTO_SignData [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 01 02 [16:02:04]Write to MH i2c: E2 08 00 6F 11 80 0D 01 02 00 00 00 00 F9 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 6F 11 00 90 00 F4 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=255 [16:02:04]MH_SAM_APDU [16:02:04]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 EE 00 00 00 F4 03 04 00 FB FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D3 B6 01 00 35 04 06 00 C1 91 02 63 [16:02:04]Write to MH i2c: E2 02 01 70 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 EE 00 00 00 F4 03 04 00 FB FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D3 B6 01 00 35 04 06 00 C1 91 02 63 00 00 C7 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 70 11 00 90 00 F5 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=7 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 02 02 02 94 D7 [16:02:04]Write to MH i2c: E2 0A 00 71 11 80 0D 02 02 02 00 94 D7 00 00 6B [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 03 00 71 11 00 90 00 F6 [16:02:04]RAPDU: 90 00 [16:02:04]wFMCommunicate OK [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 0D 03 02 [16:02:04]Write to MH i2c: E2 08 00 72 11 80 0D 03 02 00 00 00 00 FE [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 0B 00 72 11 00 6C CD 28 EE 5E 45 D2 6C 90 00 2F [16:02:04]RAPDU: 6C CD 28 EE 5E 45 D2 6C 90 00 [16:02:04]wFMCommunicate OK [16:02:04]SAM_PROTO_SignData done [16:02:04]FM_MakeSignedData done [16:02:04]CreateOFDProtocolMessage [16:02:04]wFMCommunicate request_size=4 [16:02:04]MH_SAM_APDU [16:02:04]CAPDU: 80 11 00 00 [16:02:04]Write to MH i2c: E2 08 00 73 11 80 11 00 00 00 00 00 00 FE [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:04]Read from MH i2c: E2 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: E2 17 00 73 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [16:02:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:02:04]wFMCommunicate OK [16:02:04]CreateOFDProtocolMessage done [16:02:04]OFDSenderStorePacket 112339 [16:02:04]StoreOFDPacket docnum=112339 [16:02:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 D8 D3 04 01 D9 F9 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 EE 00 00 00 F4 03 04 00 FB FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D3 B6 01 00 35 04 06 00 C1 91 02 63 94 D7 6C CD 28 EE 5E 45 D2 6C [16:02:04]CheckFolder [16:02:04]dirname=/storage/ofd_packets [16:02:04]CheckFolder done [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00112339 [16:02:04]NVStorageSaveData ofd_packets/00112339 [16:02:04]File name is /storage/ofd_packets/00112339 [16:02:04]Write 298 bytes [16:02:04]NVStorageSaveData done [16:02:04]OFDSenderStorePacket done [16:02:04]KKMCreateOFDPacket done [16:02:04]NVStorageSaveData kkm_last_timestamp [16:02:04]File name is /storage/kkm_last_timestamp [16:02:04]Write 4 bytes [16:02:04]NVStorageSaveData done [16:02:04]ExternCall_PrintAddStr [16:02:04]wPrintStart [16:02:04]Write to MH i2c: 01 00 00 74 11 85 [16:02:04]Write i2c OK [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 [16:02:04]MH_I2C_Read... [16:02:04]Read from MH i2c: 01 07 00 74 11 00 00 00 00 00 FF 0F 9A [16:02:04]RasterBufferAndPrint [16:02:04]line Счет N : (1)48650 [16:02:04]line ИНН: 02508201610067 [16:02:04]line Контрольно-Кассовый Чек [16:02:04]line ПРОДАЖА [16:02:04]line ТРК (МРК, ГНК) : 61 [16:02:04]line Товар: 2710194210 [16:02:04]line ДТ-К-5 [16:02:04]line 13.820 * 72.40 [16:02:04]line = 1000.57 [16:02:04]line НДС 12% НСП 1% [16:02:04]line > о реализуемом товаре [16:02:04]line ОКРУГЛЕНИЕ: -0.57 [16:02:04]line ИТОГО: 1000.00 [16:02:04]line Внесено: 1000.00 [16:02:04]line СДАЧА: 0.00 [16:02:04]line НСП 1% : 8.85 [16:02:04]line НДС 12% : 106.25 [16:02:04]line Наличными: 1000.00 [16:02:04]line Безнал.: 0.00 [16:02:04]line Место: АЗС № 47 "Партнер Нефть" [16:02:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:02:04]line СНО: Общий режим [16:02:04]line Чек 238 14.04.2024 16:02 [16:02:04]line Смена: 357 ФФД: 1.0 [16:02:04]line ЗНМ: 0300000138 [16:02:04]line РНМ: 0000000000094237 [16:02:04]line Версия ККМ: 001 [16:02:04]line ФМ: 0000000000875019 [16:02:04]line ФД: 112339 [16:02:04]line ФПД: 212828554499287 [16:02:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160203&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112339&fm=212828554499287&tin=02508201610067®Number=0000000000094237&sum=100000 [16:02:04]OFD Sender: Processing packet 112339 [packets to send 71, broken 70] [16:02:04]ProducePacketName [16:02:04]name=ofd_packets/00112339 [16:02:04]OFD Sender: To server: pG, [16:02:04]CommunicateWithHost lk.salyk.kg:30040 [16:02:04]ConnectInit lk.salyk.kg [16:02:04]written 0, free lines is 4095 [16:02:04]Connected sock=10 [16:02:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 D8 D3 04 01 D9 F9 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 EE 00 00 00 F4 03 04 00 FB FD 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D3 B6 01 00 35 04 06 00 C1 91 02 63 94 D7 6C CD 28 EE 5E 45 D2 6C [16:02:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EA EB 47 00 2A B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D3 B6 01 00 F4 03 04 00 86 A5 1B 66 B6 04 01 00 00 F4 B4 50 C2 C5 E8 01 93 [16:02:05]CommunicateWithHost err = 0 [16:02:05]CheckOFDResponse [16:02:05]1017 (14) - 77093643461234 [16:02:05]1041 (16) - 0000000000875019 [16:02:05]1040 (4) - 112339 [16:02:05]1012 (4) - 14.04.2024 09:44 [16:02:05]1206 (1) - 0 [16:02:05]OFD Sender: Remove packet 112339 [16:02:05]ProducePacketName [16:02:05]name=ofd_packets/00112339 [16:02:05]NVStorageDeleteData [16:02:05]Write to MH i2c: 01 00 00 9F 11 B0 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: 01 07 00 9F 11 00 00 00 00 00 F3 0C B6 [16:02:05]RasterBufferAndPrint [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]line [16:02:05]written 0, free lines is 3321 [16:02:05]MH_Cut [16:02:05]Write to MH i2c: D1 01 00 A6 11 01 89 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 [16:02:05]MH_I2C_Read... [16:02:05]Read from MH i2c: D1 01 00 A6 11 00 88 [16:02:05]Write to MH i2c: 01 00 00 A7 11 B8 [16:02:05]Write i2c OK [16:02:05]MH_I2C_Read... [16:02:05]OFD Sender: No OFD packet to send [16:02:06]*** Cut start [16:02:06]*** Partial cut [16:02:06]*** CUTSNS_PIN = 1 [16:02:06]*** CUTSNS_PIN = 0 [16:02:06]*** Brake cut motor [16:02:06]Read from MH i2c: 01 [16:02:06]MH_I2C_Read... [16:02:06]*** Stop cut motor [16:02:06]*** Cut end [16:02:06]Read from MH i2c: 01 07 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: 01 07 00 A7 11 00 00 00 00 00 FF 0F CD [16:02:06]process_action close_receipt done [16:02:06]requested_data is exist [16:02:06]produce_requested_data [16:02:06]requested_item fm.sn is exist - process it [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 11 00 00 [16:02:06]Write to MH i2c: E2 08 00 A8 11 80 11 00 00 00 00 00 00 33 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 17 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 17 00 A8 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 84 [16:02:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:02:06]wFMCommunicate OK [16:02:06]requested_item fd.num is exist - process it [16:02:06]SAM_PROTO_GetFieldsCounters [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 13 00 00 [16:02:06]Write to MH i2c: E2 08 00 A9 11 80 13 00 00 00 00 00 00 36 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 62 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 62 00 A9 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:02:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_GetFieldsCounters done [16:02:06]requested_item shift.num is exist - process it [16:02:06]requested_item shift.opened is exist - process it [16:02:06]req_shift_opened [16:02:06]FM_GetShiftState [16:02:06]SAM_PROTO_GetShiftState [16:02:06]wFMCommunicate request_size=4 [16:02:06]MH_SAM_APDU [16:02:06]CAPDU: 80 13 01 00 [16:02:06]Write to MH i2c: E2 08 00 AA 11 80 13 01 00 00 00 00 00 38 [16:02:06]Write i2c OK [16:02:06]MH_I2C_Read... [16:02:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:02:06]Read from MH i2c: E2 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 [16:02:06]MH_I2C_Read... [16:02:06]Read from MH i2c: E2 0E 00 AA 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D0 [16:02:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:02:06]wFMCommunicate OK [16:02:06]SAM_PROTO_GetShiftState done [16:02:06]FM_GetShiftState done [16:02:06]req_shift_opened done [16:02:06]requested_item shift.open_date is exist - process it [16:02:06]req_shift_open_date [16:02:06]req_shift_open_date done [16:02:06]produce_requested_data done [16:02:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112339,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:02:06]process_action_free close_receipt [16:02:06]json_value_free [16:02:06]json_value_free done [16:02:06]process_json_proto returns [16:02:06]Send response to host [16:02:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112339,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:02:06]free response buf [16:02:06]execute_script done [16:02:06]execute_script returns [16:02:06]free content buf [16:02:06]Sock 8.Close socket [16:02:06]Sock 8.Thread stoped [16:02:10]OFD Sender: No OFD packet to send [16:02:15]OFD Sender: No OFD packet to send [16:02:20]OFD Sender: No OFD packet to send [16:02:25]OFD Sender: No OFD packet to send [16:02:30]OFD Sender: No OFD packet to send [16:02:35]OFD Sender: No OFD packet to send [16:02:40]OFD Sender: No OFD packet to send [16:02:45]OFD Sender: No OFD packet to send [16:02:50]OFD Sender: No OFD packet to send [16:02:55]OFD Sender: No OFD packet to send [16:03:00]OFD Sender: No OFD packet to send [16:03:05]OFD Sender: No OFD packet to send [16:03:10]OFD Sender: No OFD packet to send [16:03:15]OFD Sender: No OFD packet to send [16:03:20]OFD Sender: No OFD packet to send [16:03:25]OFD Sender: No OFD packet to send [16:03:30]OFD Sender: No OFD packet to send [16:03:35]OFD Sender: No OFD packet to send [16:03:40]OFD Sender: No OFD packet to send [16:03:45]OFD Sender: No OFD packet to send [16:03:50]OFD Sender: No OFD packet to send [16:03:55]OFD Sender: No OFD packet to send [16:04:00]OFD Sender: No OFD packet to send [16:04:05]OFD Sender: No OFD packet to send [16:04:10]OFD Sender: No OFD packet to send [16:04:15]OFD Sender: No OFD packet to send [16:04:20]OFD Sender: No OFD packet to send [16:04:25]OFD Sender: No OFD packet to send [16:04:30]OFD Sender: No OFD packet to send [16:04:35]OFD Sender: No OFD packet to send [16:04:40]OFD Sender: No OFD packet to send [16:04:45]OFD Sender: No OFD packet to send [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05: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:38]accept exits with 9 [16:07:38]New connection [16:07:38]New thread 3066826084 created [16:07:38]Thread 3066682724 joined [16:07:38]Waiting for new connection... [16:07:38] Sock 9.Parse request [16:07:38]Sock 9.Check first char [16:07:38]Sock 9.First char is OK [16:07:38]request: POST /json_proto HTTP/1.0 [16:07:38]Method: POST [16:07:38]URL: /json_proto [16:07:38]Method is POST - this is cgi request [16:07:38]url: /json_proto [16:07:38]query_string will be loaded in cgi processing [16:07:38]execute_cgi json_proto POST (null) [16:07:38]execute_cgi path=json_proto method=POST [16:07:38]POST find Content-Length [16:07:38]Host: 172.17.96.197:8080 [16:07:38]Content-Length: 676 [16:07:38]Content-Type: application/json [16:07:38] [16:07:38]POST finish read [16:07:38]Found Content-Length = 676 [16:07:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48651", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:07:38]execute_script... [16:07: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)48651", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:07:38]POST & json_proto [16:07:38]process_json_proto [16:07:38]json parsed OK: [16:07:38]protocol is kg_v1.0 [16:07:38]action value=close_receipt [16:07:38]process_action close_receipt [16:07:38]cmd_close_receipt [16:07:38]MH_GetDate [16:07:38]Write to MH i2c: F0 00 00 AB 11 AB [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 09 00 [16:07:38]MH_I2C_Read... [16:07:38]Read from MH i2c: F0 09 00 AB 11 00 4B FF 1B 66 E0 85 7F 64 C7 [16:07:38]GetLastDocTimeStamp 1713110523 [16:07:38]current date 1713110859 [16:07:38]FM_GetShiftState [16:07:38]SAM_PROTO_GetShiftState [16:07:38]wFMCommunicate request_size=4 [16:07:38]MH_SAM_APDU [16:07:38]CAPDU: 80 13 01 00 [16:07:38]Write to MH i2c: E2 08 00 AC 11 80 13 01 00 00 00 00 00 3A [16:07:38]Write i2c OK [16:07:38]MH_I2C_Read... [16:07:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:39]Read from MH i2c: E2 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 [16:07:39]MH_I2C_Read... [16:07:39]Read from MH i2c: E2 0E 00 AC 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D2 [16:07:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:07:39]wFMCommunicate OK [16:07:39]SAM_PROTO_GetShiftState done [16:07:39]FM_GetShiftState done [16:07:39]opened in 1713054696 [16:07:39]opened+sec_in_day 1713141096 [16:07:39]quantity*price = 50025 [16:07:39]sum+1 = 50026 [16:07:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 239 14.04.2024 16:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112340 ФПД: 70447560879675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160739&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112340&fm=70447560879675&tin=02508201610067®Number=0000000000094237&sum=50000 [16:07:40]StoreToDocumentArchive [16:07:40]shift 357 fd 112340 [16:07:40]save to /storage/0357/doc_00112340 [16:07:40]save last doc name /storage/0357/doc_00112340 to /storage/kkm_last_doc_name [16:07:40]save OK [16:07:40]Clear old archive folders... [16:07:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:07:40]tlvbuf is B6E89BB0 [16:07:40]SAM_PROTO_ClearQueue [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 09 00 00 [16:07:40]Write to MH i2c: E2 08 00 B9 11 80 09 00 00 00 00 00 00 3C [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 B9 11 00 90 00 3E [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]SAM_PROTO_ClearQueue done [16:07:40]KKMCreateOFDPacket [16:07:40]OFDProtocolAddRootSTLVToBuf [16:07:40]FM_MakeSignedData [16:07:40]FM_MakeSignedData [16:07:40]SAM_PROTO_SignData [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 0D 01 02 [16:07:40]Write to MH i2c: E2 08 00 BA 11 80 0D 01 02 00 00 00 00 44 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 BA 11 00 90 00 3F [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]wFMCommunicate request_size=255 [16:07:40]MH_SAM_APDU [16:07: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 EF 00 00 00 F4 03 04 00 4B FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D4 B6 01 00 35 04 06 00 40 [16:07:40]Write to MH i2c: E2 02 01 BB 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 EF 00 00 00 F4 03 04 00 4B FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D4 B6 01 00 35 04 06 00 40 00 00 D2 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 BB 11 00 90 00 40 [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]wFMCommunicate request_size=10 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 0D 02 02 05 12 59 D7 6E 3B [16:07:40]Write to MH i2c: E2 0D 00 BC 11 80 0D 02 02 05 00 12 59 D7 6E 3B 00 00 3C [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 03 00 BC 11 00 90 00 41 [16:07:40]RAPDU: 90 00 [16:07:40]wFMCommunicate OK [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 0D 03 02 [16:07:40]Write to MH i2c: E2 08 00 BD 11 80 0D 03 02 00 00 00 00 49 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 0B 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 0B 00 BD 11 00 4F 31 C4 B6 FE 49 B8 A2 90 00 E5 [16:07:40]RAPDU: 4F 31 C4 B6 FE 49 B8 A2 90 00 [16:07:40]wFMCommunicate OK [16:07:40]SAM_PROTO_SignData done [16:07:40]FM_MakeSignedData done [16:07:40]CreateOFDProtocolMessage [16:07:40]wFMCommunicate request_size=4 [16:07:40]MH_SAM_APDU [16:07:40]CAPDU: 80 11 00 00 [16:07:40]Write to MH i2c: E2 08 00 BE 11 80 11 00 00 00 00 00 00 49 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:40]Read from MH i2c: E2 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 17 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: E2 17 00 BE 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9A [16:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:07:40]wFMCommunicate OK [16:07:40]CreateOFDProtocolMessage done [16:07:40]OFDSenderStorePacket 112340 [16:07:40]StoreOFDPacket docnum=112340 [16:07:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D6 30 07 01 F1 F6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 EF 00 00 00 F4 03 04 00 4B FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D4 B6 01 00 35 04 06 00 40 12 59 D7 6E 3B 4F 31 C4 B6 FE 49 B8 A2 [16:07:40]CheckFolder [16:07:40]dirname=/storage/ofd_packets [16:07:40]CheckFolder done [16:07:40]ProducePacketName [16:07:40]name=ofd_packets/00112340 [16:07:40]NVStorageSaveData ofd_packets/00112340 [16:07:40]File name is /storage/ofd_packets/00112340 [16:07:40]Write 301 bytes [16:07:40]NVStorageSaveData done [16:07:40]OFDSenderStorePacket done [16:07:40]KKMCreateOFDPacket done [16:07:40]NVStorageSaveData kkm_last_timestamp [16:07:40]File name is /storage/kkm_last_timestamp [16:07:40]Write 4 bytes [16:07:40]NVStorageSaveData done [16:07:40]ExternCall_PrintAddStr [16:07:40]wPrintStart [16:07:40]Write to MH i2c: 01 00 00 BF 11 D0 [16:07:40]Write i2c OK [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 07 00 [16:07:40]MH_I2C_Read... [16:07:40]Read from MH i2c: 01 07 00 BF 11 00 00 00 00 00 FF 0F E5 [16:07:40]RasterBufferAndPrint [16:07:40]line Счет N : (1)48651 [16:07:40]line ИНН: 02508201610067 [16:07:40]line Контрольно-Кассовый Чек [16:07:40]line ПРОДАЖА [16:07:40]line ТРК (МРК, ГНК) : 42 [16:07:40]line Товар: 2710124130 [16:07:40]line Аи-92-К-5 [16:07:40]line 7.780 * 64.30 [16:07:40]line = 500.25 [16:07:40]line НДС 12% НСП 1% [16:07:40]line > о реализуемом товаре [16:07:40]line ОКРУГЛЕНИЕ: -0.25 [16:07:40]line ИТОГО: 500.00 [16:07:40]line Внесено: 500.00 [16:07:40]line СДАЧА: 0.00 [16:07:40]line НСП 1% : 4.43 [16:07:40]line НДС 12% : 53.12 [16:07:40]line Наличными: 500.00 [16:07:40]line Безнал.: 0.00 [16:07:40]line Место: АЗС № 47 "Партнер Нефть" [16:07:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:07:40]line СНО: Общий режим [16:07:40]line Чек 239 14.04.2024 16:07 [16:07:40]line Смена: 357 ФФД: 1.0 [16:07:40]line ЗНМ: 0300000138 [16:07:40]line РНМ: 0000000000094237 [16:07:40]line Версия ККМ: 001 [16:07:40]line ФМ: 0000000000875019 [16:07:40]line ФД: 112340 [16:07:40]line ФПД: 70447560879675 [16:07:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160739&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112340&fm=70447560879675&tin=02508201610067®Number=0000000000094237&sum=50000 [16:07:41]OFD Sender: Processing packet 112340 [packets to send 71, broken 70] [16:07:41]ProducePacketName [16:07:41]name=ofd_packets/00112340 [16:07:41]OFD Sender: To server: pG, [16:07:41]CommunicateWithHost lk.salyk.kg:30040 [16:07:41]ConnectInit lk.salyk.kg [16:07:41]written 0, free lines is 4095 [16:07:41]Connected sock=10 [16:07:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D6 30 07 01 F1 F6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 EF 00 00 00 F4 03 04 00 4B FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D4 B6 01 00 35 04 06 00 40 12 59 D7 6E 3B 4F 31 C4 B6 FE 49 B8 A2 [16:07:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7F 8D 47 00 0B 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D4 B6 01 00 F4 03 04 00 D6 A6 1B 66 B6 04 01 00 00 48 0C 67 83 66 AE 91 BE [16:07:41]CommunicateWithHost err = 0 [16:07:41]CheckOFDResponse [16:07:41]1017 (14) - 77093643461234 [16:07:41]1041 (16) - 0000000000875019 [16:07:41]1040 (4) - 112340 [16:07:41]1012 (4) - 14.04.2024 09:50 [16:07:41]1206 (1) - 0 [16:07:41]OFD Sender: Remove packet 112340 [16:07:41]ProducePacketName [16:07:41]name=ofd_packets/00112340 [16:07:41]NVStorageDeleteData [16:07:41]Write to MH i2c: 01 00 00 EA 11 FB [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 07 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: 01 07 00 EA 11 00 00 00 00 00 E8 0C F6 [16:07:41]RasterBufferAndPrint [16:07:41]line [16:07:41]line [16:07:41]line [16:07:41]line [16:07:41]line [16:07:41]written 0, free lines is 3310 [16:07:41]MH_Cut [16:07:41]Write to MH i2c: D1 01 00 F1 11 01 D4 [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: D1 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: D1 01 00 [16:07:41]MH_I2C_Read... [16:07:41]Read from MH i2c: D1 01 00 F1 11 00 D3 [16:07:41]Write to MH i2c: 01 00 00 F2 11 03 [16:07:41]Write i2c OK [16:07:41]MH_I2C_Read... [16:07:41]OFD Sender: No OFD packet to send [16:07:42]*** Cut start [16:07:42]*** Partial cut [16:07:42]*** CUTSNS_PIN = 1 [16:07:42]*** CUTSNS_PIN = 0 [16:07:42]*** Brake cut motor [16:07:42]Read from MH i2c: 01 [16:07:42]MH_I2C_Read... [16:07:42]*** Stop cut motor [16:07:42]*** Cut end [16:07:42]Read from MH i2c: 01 07 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: 01 07 00 F2 11 00 00 00 00 00 FF 0F 18 [16:07:42]process_action close_receipt done [16:07:42]requested_data is exist [16:07:42]produce_requested_data [16:07:42]requested_item fm.sn is exist - process it [16:07:42]wFMCommunicate request_size=4 [16:07:42]MH_SAM_APDU [16:07:42]CAPDU: 80 11 00 00 [16:07:42]Write to MH i2c: E2 08 00 F3 11 80 11 00 00 00 00 00 00 7E [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:42]Read from MH i2c: E2 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 17 00 [16:07:42]MH_I2C_Read... [16:07:42]Read from MH i2c: E2 17 00 F3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [16:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:07:42]wFMCommunicate OK [16:07:42]requested_item fd.num is exist - process it [16:07:42]SAM_PROTO_GetFieldsCounters [16:07:42]wFMCommunicate request_size=4 [16:07:42]MH_SAM_APDU [16:07:42]CAPDU: 80 13 00 00 [16:07:42]Write to MH i2c: E2 08 00 F4 11 80 13 00 00 00 00 00 00 81 [16:07:42]Write i2c OK [16:07:42]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 62 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 62 00 F4 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:07:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:43]wFMCommunicate OK [16:07:43]SAM_PROTO_GetFieldsCounters done [16:07:43]requested_item shift.num is exist - process it [16:07:43]requested_item shift.opened is exist - process it [16:07:43]req_shift_opened [16:07:43]FM_GetShiftState [16:07:43]SAM_PROTO_GetShiftState [16:07:43]wFMCommunicate request_size=4 [16:07:43]MH_SAM_APDU [16:07:43]CAPDU: 80 13 01 00 [16:07:43]Write to MH i2c: E2 08 00 F5 11 80 13 01 00 00 00 00 00 83 [16:07:43]Write i2c OK [16:07:43]MH_I2C_Read... [16:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:43]Read from MH i2c: E2 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 [16:07:43]MH_I2C_Read... [16:07:43]Read from MH i2c: E2 0E 00 F5 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1B [16:07:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:07:43]wFMCommunicate OK [16:07:43]SAM_PROTO_GetShiftState done [16:07:43]FM_GetShiftState done [16:07:43]req_shift_opened done [16:07:43]requested_item shift.open_date is exist - process it [16:07:43]req_shift_open_date [16:07:43]req_shift_open_date done [16:07:43]produce_requested_data done [16:07:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112340,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:07:43]process_action_free close_receipt [16:07:43]json_value_free [16:07:43]json_value_free done [16:07:43]process_json_proto returns [16:07:43]Send response to host [16:07:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112340,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:07:43]free response buf [16:07:43]execute_script done [16:07:43]execute_script returns [16:07:43]free content buf [16:07:43]Sock 9.Close socket [16:07:43]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:06]accept exits with 8 [16:09:06]New connection [16:09:06]New thread 3066682724 created [16:09:06]Thread 3066826084 joined [16:09:06]Waiting for new connection... [16:09:06] Sock 8.Parse request [16:09:06]Sock 8.Check first char [16:09:06]Sock 8.First char is OK [16:09:06]request: POST /json_proto HTTP/1.0 [16:09:06]Method: POST [16:09:06]URL: /json_proto [16:09:06]Method is POST - this is cgi request [16:09:06]url: /json_proto [16:09:06]query_string will be loaded in cgi processing [16:09:06]execute_cgi json_proto POST (null) [16:09:06]execute_cgi path=json_proto method=POST [16:09:06]POST find Content-Length [16:09:06]Host: 172.17.96.197:8080 [16:09:06]Content-Length: 681 [16:09:06]Content-Type: application/json [16:09:06] [16:09:06]POST finish read [16:09:06]Found Content-Length = 681 [16:09:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [16:09:06]execute_script... [16:09: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)48653", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [16:09:06]POST & json_proto [16:09:06]process_json_proto [16:09:06]json parsed OK: [16:09:06]protocol is kg_v1.0 [16:09:06]action value=close_receipt [16:09:06]process_action close_receipt [16:09:06]cmd_close_receipt [16:09:06]MH_GetDate [16:09:06]Write to MH i2c: F0 00 00 F6 11 F6 [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 09 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: F0 09 00 F6 11 00 A3 FF 1B 66 E0 85 7F 64 6A [16:09:06]GetLastDocTimeStamp 1713110859 [16:09:06]current date 1713110947 [16:09:06]FM_GetShiftState [16:09:06]SAM_PROTO_GetShiftState [16:09:06]wFMCommunicate request_size=4 [16:09:06]MH_SAM_APDU [16:09:06]CAPDU: 80 13 01 00 [16:09:06]Write to MH i2c: E2 08 00 F7 11 80 13 01 00 00 00 00 00 85 [16:09:06]Write i2c OK [16:09:06]MH_I2C_Read... [16:09:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:06]Read from MH i2c: E2 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 0E 00 [16:09:06]MH_I2C_Read... [16:09:06]Read from MH i2c: E2 0E 00 F7 11 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1D [16:09:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:06]wFMCommunicate OK [16:09:06]SAM_PROTO_GetShiftState done [16:09:06]FM_GetShiftState done [16:09:06]opened in 1713054696 [16:09:06]opened+sec_in_day 1713141096 [16:09:06]quantity*price = 200037 [16:09:06]sum+1 = 200038 [16:09:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 240 14.04.2024 16:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112341 ФПД: 53806134320650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112341&fm=53806134320650&tin=02508201610067®Number=0000000000094237&sum=200000 [16:09:08]StoreToDocumentArchive [16:09:08]shift 357 fd 112341 [16:09:08]save to /storage/0357/doc_00112341 [16:09:08]save last doc name /storage/0357/doc_00112341 to /storage/kkm_last_doc_name [16:09:08]save OK [16:09:08]Clear old archive folders... [16:09:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:08]tlvbuf is B6E89340 [16:09:08]SAM_PROTO_ClearQueue [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 09 00 00 [16:09:08]Write to MH i2c: E2 08 00 04 12 80 09 00 00 00 00 00 00 88 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:08]Read from MH i2c: E2 03 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 04 12 00 90 00 8A [16:09:08]RAPDU: 90 00 [16:09:08]wFMCommunicate OK [16:09:08]SAM_PROTO_ClearQueue done [16:09:08]KKMCreateOFDPacket [16:09:08]OFDProtocolAddRootSTLVToBuf [16:09:08]FM_MakeSignedData [16:09:08]FM_MakeSignedData [16:09:08]SAM_PROTO_SignData [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 0D 01 02 [16:09:08]Write to MH i2c: E2 08 00 05 12 80 0D 01 02 00 00 00 00 90 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 05 12 00 90 00 8B [16:09:08]RAPDU: 90 00 [16:09:08]wFMCommunicate OK [16:09:08]wFMCommunicate request_size=255 [16:09:08]MH_SAM_APDU [16:09: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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 F0 00 00 00 F4 03 04 00 A3 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D5 B6 01 00 35 04 06 00 30 [16:09:08]Write to MH i2c: E2 02 01 06 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 F0 00 00 00 F4 03 04 00 A3 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D5 B6 01 00 35 04 06 00 30 00 00 55 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 06 12 00 90 00 8C [16:09:08]RAPDU: 90 00 [16:09:08]wFMCommunicate OK [16:09:08]wFMCommunicate request_size=10 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 0D 02 02 05 EF B7 85 DE 0A [16:09:08]Write to MH i2c: E2 0D 00 07 12 80 0D 02 02 05 00 EF B7 85 DE 0A 00 00 B0 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 03 00 07 12 00 90 00 8D [16:09:08]RAPDU: 90 00 [16:09:08]wFMCommunicate OK [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 0D 03 02 [16:09:08]Write to MH i2c: E2 08 00 08 12 80 0D 03 02 00 00 00 00 95 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0B 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 0B 00 08 12 00 84 2E C4 DE CE 11 99 1D 90 00 7F [16:09:08]RAPDU: 84 2E C4 DE CE 11 99 1D 90 00 [16:09:08]wFMCommunicate OK [16:09:08]SAM_PROTO_SignData done [16:09:08]FM_MakeSignedData done [16:09:08]CreateOFDProtocolMessage [16:09:08]wFMCommunicate request_size=4 [16:09:08]MH_SAM_APDU [16:09:08]CAPDU: 80 11 00 00 [16:09:08]Write to MH i2c: E2 08 00 09 12 80 11 00 00 00 00 00 00 95 [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:08]Read from MH i2c: E2 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 17 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: E2 17 00 09 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E6 [16:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:08]wFMCommunicate OK [16:09:08]CreateOFDProtocolMessage done [16:09:08]OFDSenderStorePacket 112341 [16:09:08]StoreOFDPacket docnum=112341 [16:09:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 5B 07 01 C9 E9 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 F0 00 00 00 F4 03 04 00 A3 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D5 B6 01 00 35 04 06 00 30 EF B7 85 DE 0A 84 2E C4 DE CE 11 99 1D [16:09:08]CheckFolder [16:09:08]dirname=/storage/ofd_packets [16:09:08]CheckFolder done [16:09:08]ProducePacketName [16:09:08]name=ofd_packets/00112341 [16:09:08]NVStorageSaveData ofd_packets/00112341 [16:09:08]File name is /storage/ofd_packets/00112341 [16:09:08]Write 301 bytes [16:09:08]NVStorageSaveData done [16:09:08]OFDSenderStorePacket done [16:09:08]KKMCreateOFDPacket done [16:09:08]NVStorageSaveData kkm_last_timestamp [16:09:08]File name is /storage/kkm_last_timestamp [16:09:08]Write 4 bytes [16:09:08]NVStorageSaveData done [16:09:08]ExternCall_PrintAddStr [16:09:08]wPrintStart [16:09:08]Write to MH i2c: 01 00 00 0A 12 1C [16:09:08]Write i2c OK [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 07 00 [16:09:08]MH_I2C_Read... [16:09:08]Read from MH i2c: 01 07 00 0A 12 00 00 00 00 00 FF 0F 31 [16:09:08]RasterBufferAndPrint [16:09:08]line Счет N : (1)48653 [16:09:08]line ИНН: 02508201610067 [16:09:08]line Контрольно-Кассовый Чек [16:09:08]line ПРОДАЖА [16:09:08]line ТРК (МРК, ГНК) : 11 [16:09:08]line Товар: 2710124130 [16:09:08]line Аи-92-К-5 [16:09:08]line 31.110 * 64.30 [16:09:08]line = 2000.37 [16:09:08]line НДС 12% НСП 1% [16:09:08]line > о реализуемом товаре [16:09:08]line ОКРУГЛЕНИЕ: -0.37 [16:09:08]line ИТОГО: 2000.00 [16:09:08]line Внесено: 2000.00 [16:09:08]line СДАЧА: 0.00 [16:09:08]line НСП 1% : 17.70 [16:09:08]line НДС 12% : 212.43 [16:09:08]line Наличными: 2000.00 [16:09:08]line Безнал.: 0.00 [16:09:08]line Место: АЗС № 47 "Партнер Нефть" [16:09:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:09:08]line СНО: Общий режим [16:09:08]line Чек 240 14.04.2024 16:09 [16:09:08]line Смена: 357 ФФД: 1.0 [16:09:08]line ЗНМ: 0300000138 [16:09:08]line РНМ: 0000000000094237 [16:09:08]line Версия ККМ: 001 [16:09:08]line ФМ: 0000000000875019 [16:09:08]line ФД: 112341 [16:09:08]line ФПД: 53806134320650 [16:09:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160907&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112341&fm=53806134320650&tin=02508201610067®Number=0000000000094237&sum=200000 [16:09:08]OFD Sender: Processing packet 112341 [packets to send 71, broken 70] [16:09:08]ProducePacketName [16:09:08]name=ofd_packets/00112341 [16:09:08]OFD Sender: To server: pG, [16:09:08]CommunicateWithHost lk.salyk.kg:30040 [16:09:08]ConnectInit lk.salyk.kg [16:09:08]written 0, free lines is 4095 [16:09:09]Connected sock=10 [16:09:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 5B 07 01 C9 E9 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 F0 00 00 00 F4 03 04 00 A3 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D5 B6 01 00 35 04 06 00 30 EF B7 85 DE 0A 84 2E C4 DE CE 11 99 1D [16:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 32 35 47 00 D6 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 38 37 35 30 31 39 10 04 04 00 D5 B6 01 00 F4 03 04 00 2E A7 1B 66 B6 04 01 00 00 35 A0 FB C4 AC 8C D1 72 [16:09:09]CommunicateWithHost err = 0 [16:09:09]CheckOFDResponse [16:09:09]1017 (14) - 77093643461234 [16:09:09]1041 (16) - 0000000000875019 [16:09:09]1040 (4) - 112341 [16:09:09]1012 (4) - 14.04.2024 09:51 [16:09:09]1206 (1) - 0 [16:09:09]OFD Sender: Remove packet 112341 [16:09:09]ProducePacketName [16:09:09]name=ofd_packets/00112341 [16:09:09]NVStorageDeleteData [16:09:09]Write to MH i2c: 01 00 00 35 12 47 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: 01 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: 01 07 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: 01 07 00 35 12 00 00 00 00 00 E6 0C 40 [16:09:09]RasterBufferAndPrint [16:09:09]line [16:09:09]line [16:09:09]line [16:09:09]line [16:09:09]line [16:09:09]written 0, free lines is 3308 [16:09:09]MH_Cut [16:09:09]Write to MH i2c: D1 01 00 3C 12 01 20 [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: D1 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: D1 01 00 [16:09:09]MH_I2C_Read... [16:09:09]Read from MH i2c: D1 01 00 3C 12 00 1F [16:09:09]Write to MH i2c: 01 00 00 3D 12 4F [16:09:09]Write i2c OK [16:09:09]MH_I2C_Read... [16:09:09]OFD Sender: No OFD packet to send [16:09:10]*** Cut start [16:09:10]*** Partial cut [16:09:10]*** CUTSNS_PIN = 1 [16:09:10]*** CUTSNS_PIN = 0 [16:09:10]*** Brake cut motor [16:09:10]Read from MH i2c: 01 [16:09:10]MH_I2C_Read... [16:09:10]*** Stop cut motor [16:09:10]*** Cut end [16:09:10]Read from MH i2c: 01 07 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: 01 07 00 3D 12 00 00 00 00 00 FF 0F 64 [16:09:10]process_action close_receipt done [16:09:10]requested_data is exist [16:09:10]produce_requested_data [16:09:10]requested_item fm.sn is exist - process it [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 11 00 00 [16:09:10]Write to MH i2c: E2 08 00 3E 12 80 11 00 00 00 00 00 00 CA [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:10]Read from MH i2c: E2 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 17 00 [16:09:10]MH_I2C_Read... [16:09:10]Read from MH i2c: E2 17 00 3E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1B [16:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:10]wFMCommunicate OK [16:09:10]requested_item fd.num is exist - process it [16:09:10]SAM_PROTO_GetFieldsCounters [16:09:10]wFMCommunicate request_size=4 [16:09:10]MH_SAM_APDU [16:09:10]CAPDU: 80 13 00 00 [16:09:10]Write to MH i2c: E2 08 00 3F 12 80 13 00 00 00 00 00 00 CD [16:09:10]Write i2c OK [16:09:10]MH_I2C_Read... [16:09:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:11]Read from MH i2c: E2 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 62 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 62 00 3F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:09:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:11]wFMCommunicate OK [16:09:11]SAM_PROTO_GetFieldsCounters done [16:09:11]requested_item shift.num is exist - process it [16:09:11]requested_item shift.opened is exist - process it [16:09:11]req_shift_opened [16:09:11]FM_GetShiftState [16:09:11]SAM_PROTO_GetShiftState [16:09:11]wFMCommunicate request_size=4 [16:09:11]MH_SAM_APDU [16:09:11]CAPDU: 80 13 01 00 [16:09:11]Write to MH i2c: E2 08 00 40 12 80 13 01 00 00 00 00 00 CF [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:11]Read from MH i2c: E2 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 0E 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 0E 00 40 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [16:09:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:11]wFMCommunicate OK [16:09:11]SAM_PROTO_GetShiftState done [16:09:11]FM_GetShiftState done [16:09:11]req_shift_opened done [16:09:11]requested_item shift.open_date is exist - process it [16:09:11]req_shift_open_date [16:09:11]req_shift_open_date done [16:09:11]produce_requested_data done [16:09:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112341,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:09:11]process_action_free close_receipt [16:09:11]json_value_free [16:09:11]json_value_free done [16:09:11]process_json_proto returns [16:09:11]Send response to host [16:09:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112341,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:09:11]free response buf [16:09:11]execute_script done [16:09:11]execute_script returns [16:09:11]free content buf [16:09:11]Sock 8.Close socket [16:09:11]Sock 8.Thread stoped [16:09:11]accept exits with 9 [16:09:11]New connection [16:09:11]New thread 3066826084 created [16:09:11]Thread 3066682724 joined [16:09:11]Waiting for new connection... [16:09:11] Sock 9.Parse request [16:09:11]Sock 9.Check first char [16:09:11]Sock 9.First char is OK [16:09:11]request: POST /json_proto HTTP/1.0 [16:09:11]Method: POST [16:09:11]URL: /json_proto [16:09:11]Method is POST - this is cgi request [16:09:11]url: /json_proto [16:09:11]query_string will be loaded in cgi processing [16:09:11]execute_cgi json_proto POST (null) [16:09:11]execute_cgi path=json_proto method=POST [16:09:11]POST find Content-Length [16:09:11]Host: 172.17.96.197:8080 [16:09:11]Content-Length: 815 [16:09:11]Content-Type: application/json [16:09:11] [16:09:11]POST finish read [16:09:11]Found Content-Length = 815 [16:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48652", "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.30, "quantity" : 2.000, "sum" : 128.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 128.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:11]execute_script... [16:09: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)48652", "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.30, "quantity" : 2.000, "sum" : 128.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 128.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:11]POST & json_proto [16:09:11]process_json_proto [16:09:11]json parsed OK: [16:09:11]protocol is kg_v1.0 [16:09:11]action value=close_receipt [16:09:11]process_action close_receipt [16:09:11]cmd_close_receipt [16:09:11]MH_GetDate [16:09:11]Write to MH i2c: F0 00 00 41 12 42 [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: F0 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: F0 09 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: F0 09 00 41 12 00 A8 FF 1B 66 E0 85 7F 64 BB [16:09:11]GetLastDocTimeStamp 1713110947 [16:09:11]current date 1713110952 [16:09:11]FM_GetShiftState [16:09:11]SAM_PROTO_GetShiftState [16:09:11]wFMCommunicate request_size=4 [16:09:11]MH_SAM_APDU [16:09:11]CAPDU: 80 13 01 00 [16:09:11]Write to MH i2c: E2 08 00 42 12 80 13 01 00 00 00 00 00 D1 [16:09:11]Write i2c OK [16:09:11]MH_I2C_Read... [16:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:11]Read from MH i2c: E2 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 0E 00 [16:09:11]MH_I2C_Read... [16:09:11]Read from MH i2c: E2 0E 00 42 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 69 [16:09:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:11]wFMCommunicate OK [16:09:11]SAM_PROTO_GetShiftState done [16:09:11]FM_GetShiftState done [16:09:11]opened in 1713054696 [16:09:11]opened+sec_in_day 1713141096 [16:09:11]quantity*price = 12860 [16:09:11]sum+1 = 12861 [16:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 128.60 НСП 1% : 1.14 НДС 12% : 13.66 Наличными: 0.00 Безнал.: 128.60 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 241 14.04.2024 16:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112342 ФПД: 216067666059620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160912&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112342&fm=216067666059620&tin=02508201610067®Number=0000000000094237&sum=12860 [16:09:12]StoreToDocumentArchive [16:09:12]shift 357 fd 112342 [16:09:12]save to /storage/0357/doc_00112342 [16:09:12]save last doc name /storage/0357/doc_00112342 to /storage/kkm_last_doc_name [16:09:12]save OK [16:09:12]Clear old archive folders... [16:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:12]tlvbuf is 00197020 [16:09:12]SAM_PROTO_ClearQueue [16:09:12]wFMCommunicate request_size=4 [16:09:12]MH_SAM_APDU [16:09:12]CAPDU: 80 09 00 00 [16:09:12]Write to MH i2c: E2 08 00 4F 12 80 09 00 00 00 00 00 00 D3 [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:12]Read from MH i2c: E2 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 03 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 03 00 4F 12 00 90 00 D5 [16:09:12]RAPDU: 90 00 [16:09:12]wFMCommunicate OK [16:09:12]SAM_PROTO_ClearQueue done [16:09:12]KKMCreateOFDPacket [16:09:12]OFDProtocolAddRootSTLVToBuf [16:09:12]FM_MakeSignedData [16:09:12]FM_MakeSignedData [16:09:12]SAM_PROTO_SignData [16:09:12]wFMCommunicate request_size=4 [16:09:12]MH_SAM_APDU [16:09:12]CAPDU: 80 0D 01 02 [16:09:12]Write to MH i2c: E2 08 00 50 12 80 0D 01 02 00 00 00 00 DB [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:12]Read from MH i2c: E2 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 03 00 [16:09:12]MH_I2C_Read... [16:09:12]Read from MH i2c: E2 03 00 50 12 00 90 00 D6 [16:09:12]RAPDU: 90 00 [16:09:12]wFMCommunicate OK [16:09:12]wFMCommunicate request_size=255 [16:09:12]MH_SAM_APDU [16:09: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D6 B6 01 00 35 04 06 00 C4 [16:09:12]Write to MH i2c: E2 02 01 51 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 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D6 B6 01 00 35 04 06 00 C4 00 00 D8 [16:09:12]Write i2c OK [16:09:12]MH_I2C_Read... [16:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:13]Read from MH i2c: E2 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 03 00 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 03 00 51 12 00 90 00 D7 [16:09:13]RAPDU: 90 00 [16:09:13]wFMCommunicate OK [16:09:13]wFMCommunicate request_size=10 [16:09:13]MH_SAM_APDU [16:09:13]CAPDU: 80 0D 02 02 05 83 2C 7B A1 64 [16:09:13]Write to MH i2c: E2 0D 00 52 12 80 0D 02 02 05 00 83 2C 7B A1 64 00 00 17 [16:09:13]Write i2c OK [16:09:13]MH_I2C_Read... [16:09:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:13]Read from MH i2c: E2 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 03 00 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 03 00 52 12 00 90 00 D8 [16:09:13]RAPDU: 90 00 [16:09:13]wFMCommunicate OK [16:09:13]wFMCommunicate request_size=4 [16:09:13]MH_SAM_APDU [16:09:13]CAPDU: 80 0D 03 02 [16:09:13]Write to MH i2c: E2 08 00 53 12 80 0D 03 02 00 00 00 00 E0 [16:09:13]Write i2c OK [16:09:13]MH_I2C_Read... [16:09:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:13]Read from MH i2c: E2 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 0B 00 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 0B 00 53 12 00 94 48 06 17 06 5D 15 A2 90 00 F4 [16:09:13]RAPDU: 94 48 06 17 06 5D 15 A2 90 00 [16:09:13]wFMCommunicate OK [16:09:13]SAM_PROTO_SignData done [16:09:13]FM_MakeSignedData done [16:09:13]CreateOFDProtocolMessage [16:09:13]wFMCommunicate request_size=4 [16:09:13]MH_SAM_APDU [16:09:13]CAPDU: 80 11 00 00 [16:09:13]Write to MH i2c: E2 08 00 54 12 80 11 00 00 00 00 00 00 E0 [16:09:13]Write i2c OK [16:09:13]MH_I2C_Read... [16:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:13]Read from MH i2c: E2 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 17 00 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: E2 17 00 54 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 31 [16:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:13]wFMCommunicate OK [16:09:13]CreateOFDProtocolMessage done [16:09:13]OFDSenderStorePacket 112342 [16:09:13]StoreOFDPacket docnum=112342 [16:09:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 5C 07 01 7A C0 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 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D6 B6 01 00 35 04 06 00 C4 83 2C 7B A1 64 94 48 06 17 06 5D 15 A2 [16:09:13]CheckFolder [16:09:13]dirname=/storage/ofd_packets [16:09:13]CheckFolder done [16:09:13]ProducePacketName [16:09:13]name=ofd_packets/00112342 [16:09:13]NVStorageSaveData ofd_packets/00112342 [16:09:13]File name is /storage/ofd_packets/00112342 [16:09:13]Write 301 bytes [16:09:13]NVStorageSaveData done [16:09:13]OFDSenderStorePacket done [16:09:13]KKMCreateOFDPacket done [16:09:13]NVStorageSaveData kkm_last_timestamp [16:09:13]File name is /storage/kkm_last_timestamp [16:09:13]Write 4 bytes [16:09:13]NVStorageSaveData done [16:09:13]ExternCall_PrintAddStr [16:09:13]wPrintStart [16:09:13]Write to MH i2c: 01 00 00 55 12 67 [16:09:13]Write i2c OK [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: 01 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: 01 07 00 [16:09:13]MH_I2C_Read... [16:09:13]Read from MH i2c: 01 07 00 55 12 00 00 00 00 00 FF 0F 7C [16:09:13]RasterBufferAndPrint [16:09:13]line Счет N : (1)48652 [16:09:13]line ИНН: 02508201610067 [16:09:13]line Контрольно-Кассовый Чек [16:09:13]line ПРОДАЖА [16:09:13]line ТРК (МРК, ГНК) : 32 [16:09:13]line Товар: 2710124130 [16:09:13]line Аи-92-К-5 [16:09:13]line 2.000 * 64.30 [16:09:13]line = 128.60 [16:09:13]line НДС 12% НСП 1% [16:09:13]line > о реализуемом товаре [16:09:13]line ИТОГО: 128.60 [16:09:13]line НСП 1% : 1.14 [16:09:13]line НДС 12% : 13.66 [16:09:13]line Наличными: 0.00 [16:09:13]line Безнал.: 128.60 [16:09:13]line Место: АЗС № 47 "Партнер Нефть" [16:09:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:09:13]line СНО: Общий режим [16:09:13]line Чек 241 14.04.2024 16:09 [16:09:13]line Смена: 357 ФФД: 1.0 [16:09:13]line ЗНМ: 0300000138 [16:09:13]line РНМ: 0000000000094237 [16:09:13]line Версия ККМ: 001 [16:09:13]line Платежная система: Бакай Банк [16:09:13]line ФМ: 0000000000875019 [16:09:13]line ФД: 112342 [16:09:13]line ФПД: 216067666059620 [16:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160912&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112342&fm=216067666059620&tin=02508201610067®Number=0000000000094237&sum=12860 [16:09:13]OFD Sender: Processing packet 112342 [packets to send 71, broken 70] [16:09:13]ProducePacketName [16:09:13]name=ofd_packets/00112342 [16:09:13]OFD Sender: To server: pG, [16:09:13]CommunicateWithHost lk.salyk.kg:30040 [16:09:13]ConnectInit lk.salyk.kg [16:09:13]written 0, free lines is 4095 [16:09:13]Connected sock=11 [16:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 80 5C 07 01 7A C0 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 D0 07 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 3C 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3C 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 A8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D6 B6 01 00 35 04 06 00 C4 83 2C 7B A1 64 94 48 06 17 06 5D 15 A2 [16:09:14]Write to MH i2c: 01 00 00 7F 12 91 [16:09:14]Write i2c OK [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: 01 [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: 01 07 00 [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: 01 07 00 7F 12 00 00 00 00 00 ED 0C 91 [16:09:14]RasterBufferAndPrint [16:09:14]line [16:09:14]line [16:09:14]line [16:09:14]line [16:09:14]line [16:09:14]written 0, free lines is 3319 [16:09:14]MH_Cut [16:09:14]Write to MH i2c: D1 01 00 86 12 01 6A [16:09:14]Write i2c OK [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: D1 [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: D1 01 00 [16:09:14]MH_I2C_Read... [16:09:14]Read from MH i2c: D1 01 00 86 12 00 69 [16:09:14]Write to MH i2c: 01 00 00 87 12 99 [16:09:14]Write i2c OK [16:09:14]MH_I2C_Read... [16:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D9 28 47 00 94 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D6 B6 01 00 F4 03 04 00 33 A7 1B 66 B6 04 01 00 00 7D AF 66 C2 5D 05 80 A7 [16:09:14]CommunicateWithHost err = 0 [16:09:14]CheckOFDResponse [16:09:14]1017 (14) - 77093643461234 [16:09:14]1041 (16) - 0000000000875019 [16:09:14]1040 (4) - 112342 [16:09:14]1012 (4) - 14.04.2024 09:51 [16:09:14]1206 (1) - 0 [16:09:14]OFD Sender: Remove packet 112342 [16:09:14]ProducePacketName [16:09:14]name=ofd_packets/00112342 [16:09:14]NVStorageDeleteData [16:09:14]OFD Sender: No OFD packet to send [16:09:14]*** Cut start [16:09:14]*** Partial cut [16:09:14]*** CUTSNS_PIN = 1 [16:09:15]*** CUTSNS_PIN = 0 [16:09:15]*** Brake cut motor [16:09:15]Read from MH i2c: 01 [16:09:15]MH_I2C_Read... [16:09:15]*** Stop cut motor [16:09:15]*** Cut end [16:09:15]Read from MH i2c: 01 07 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: 01 07 00 87 12 00 00 00 00 00 FF 0F AE [16:09:15]process_action close_receipt done [16:09:15]requested_data is exist [16:09:15]produce_requested_data [16:09:15]requested_item fm.sn is exist - process it [16:09:15]wFMCommunicate request_size=4 [16:09:15]MH_SAM_APDU [16:09:15]CAPDU: 80 11 00 00 [16:09:15]Write to MH i2c: E2 08 00 88 12 80 11 00 00 00 00 00 00 14 [16:09:15]Write i2c OK [16:09:15]MH_I2C_Read... [16:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:15]Read from MH i2c: E2 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 17 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 17 00 88 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [16:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:15]wFMCommunicate OK [16:09:15]requested_item fd.num is exist - process it [16:09:15]SAM_PROTO_GetFieldsCounters [16:09:15]wFMCommunicate request_size=4 [16:09:15]MH_SAM_APDU [16:09:15]CAPDU: 80 13 00 00 [16:09:15]Write to MH i2c: E2 08 00 89 12 80 13 00 00 00 00 00 00 17 [16:09:15]Write i2c OK [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 [16:09:15]MH_I2C_Read... [16:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:15]Read from MH i2c: E2 62 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 62 00 89 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [16:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:15]wFMCommunicate OK [16:09:15]SAM_PROTO_GetFieldsCounters done [16:09:15]requested_item shift.num is exist - process it [16:09:15]requested_item shift.opened is exist - process it [16:09:15]req_shift_opened [16:09:15]FM_GetShiftState [16:09:15]SAM_PROTO_GetShiftState [16:09:15]wFMCommunicate request_size=4 [16:09:15]MH_SAM_APDU [16:09:15]CAPDU: 80 13 01 00 [16:09:15]Write to MH i2c: E2 08 00 8A 12 80 13 01 00 00 00 00 00 19 [16:09:15]Write i2c OK [16:09:15]MH_I2C_Read... [16:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:15]Read from MH i2c: E2 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 0E 00 [16:09:15]MH_I2C_Read... [16:09:15]Read from MH i2c: E2 0E 00 8A 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B1 [16:09:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:15]wFMCommunicate OK [16:09:15]SAM_PROTO_GetShiftState done [16:09:15]FM_GetShiftState done [16:09:15]req_shift_opened done [16:09:15]requested_item shift.open_date is exist - process it [16:09:15]req_shift_open_date [16:09:15]req_shift_open_date done [16:09:15]produce_requested_data done [16:09:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112342,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:09:15]process_action_free close_receipt [16:09:15]json_value_free [16:09:15]json_value_free done [16:09:15]process_json_proto returns [16:09:15]Send response to host [16:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112342,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:09:15]free response buf [16:09:15]execute_script done [16:09:15]execute_script returns [16:09:15]free content buf [16:09:15]Sock 9.Close socket [16:09:15]Sock 9.Thread stoped [16:09:19]OFD Sender: No OFD packet to send [16:09:24]OFD Sender: No OFD packet to send [16:09:29]OFD Sender: No OFD packet to send [16:09:34]OFD Sender: No OFD packet to send [16:09:39]OFD Sender: No OFD packet to send [16:09:43]accept exits with 8 [16:09:43]New connection [16:09:43]New thread 3066682724 created [16:09:43]Thread 3066826084 joined [16:09:43]Waiting for new connection... [16:09:43] Sock 8.Parse request [16:09:43]Sock 8.Check first char [16:09:43]Sock 8.First char is OK [16:09:43]request: POST /json_proto HTTP/1.0 [16:09:43]Method: POST [16:09:43]URL: /json_proto [16:09:43]Method is POST - this is cgi request [16:09:43]url: /json_proto [16:09:43]query_string will be loaded in cgi processing [16:09:43]execute_cgi json_proto POST (null) [16:09:43]execute_cgi path=json_proto method=POST [16:09:43]POST find Content-Length [16:09:43]Host: 172.17.96.197:8080 [16:09:43]Content-Length: 676 [16:09:43]Content-Type: application/json [16:09:43] [16:09:43]POST finish read [16:09:43]Found Content-Length = 676 [16:09:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48654", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [16:09:43]execute_script... [16:09: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)48654", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [16:09:43]POST & json_proto [16:09:43]process_json_proto [16:09:43]json parsed OK: [16:09:43]protocol is kg_v1.0 [16:09:43]action value=close_receipt [16:09:43]process_action close_receipt [16:09:43]cmd_close_receipt [16:09:43]MH_GetDate [16:09:43]Write to MH i2c: F0 00 00 8B 12 8C [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: F0 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: F0 09 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: F0 09 00 8B 12 00 C8 FF 1B 66 E0 85 7F 64 25 [16:09:43]GetLastDocTimeStamp 1713110952 [16:09:43]current date 1713110984 [16:09:43]FM_GetShiftState [16:09:43]SAM_PROTO_GetShiftState [16:09:43]wFMCommunicate request_size=4 [16:09:43]MH_SAM_APDU [16:09:43]CAPDU: 80 13 01 00 [16:09:43]Write to MH i2c: E2 08 00 8C 12 80 13 01 00 00 00 00 00 1B [16:09:43]Write i2c OK [16:09:43]MH_I2C_Read... [16:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:43]Read from MH i2c: E2 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0E 00 [16:09:43]MH_I2C_Read... [16:09:43]Read from MH i2c: E2 0E 00 8C 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B3 [16:09:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:43]wFMCommunicate OK [16:09:43]SAM_PROTO_GetShiftState done [16:09:43]FM_GetShiftState done [16:09:43]opened in 1713054696 [16:09:43]opened+sec_in_day 1713141096 [16:09:43]quantity*price = 30028 [16:09:43]sum+1 = 30029 [16:09:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 242 14.04.2024 16:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112343 ФПД: 100240211186708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112343&fm=100240211186708&tin=02508201610067®Number=0000000000094237&sum=30000 [16:09:45]StoreToDocumentArchive [16:09:45]shift 357 fd 112343 [16:09:45]save to /storage/0357/doc_00112343 [16:09:45]save last doc name /storage/0357/doc_00112343 to /storage/kkm_last_doc_name [16:09:45]save OK [16:09:45]Clear old archive folders... [16:09:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:45]tlvbuf is 001403D0 [16:09:45]SAM_PROTO_ClearQueue [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 09 00 00 [16:09:45]Write to MH i2c: E2 08 00 99 12 80 09 00 00 00 00 00 00 1D [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:45]Read from MH i2c: E2 03 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 99 12 00 90 00 1F [16:09:45]RAPDU: 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_ClearQueue done [16:09:45]KKMCreateOFDPacket [16:09:45]OFDProtocolAddRootSTLVToBuf [16:09:45]FM_MakeSignedData [16:09:45]FM_MakeSignedData [16:09:45]SAM_PROTO_SignData [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 0D 01 02 [16:09:45]Write to MH i2c: E2 08 00 9A 12 80 0D 01 02 00 00 00 00 25 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 9A 12 00 90 00 20 [16:09:45]RAPDU: 90 00 [16:09:45]wFMCommunicate OK [16:09:45]wFMCommunicate request_size=255 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 F2 00 00 00 F4 03 04 00 C8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D7 B6 01 00 35 04 06 00 5B [16:09:45]Write to MH i2c: E2 02 01 9B 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 F2 00 00 00 F4 03 04 00 C8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D7 B6 01 00 35 04 06 00 5B 00 00 D4 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 9B 12 00 90 00 21 [16:09:45]RAPDU: 90 00 [16:09:45]wFMCommunicate OK [16:09:45]wFMCommunicate request_size=10 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 0D 02 02 05 2A FE 2E 14 14 [16:09:45]Write to MH i2c: E2 0D 00 9C 12 80 0D 02 02 05 00 2A FE 2E 14 14 00 00 B0 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 03 00 9C 12 00 90 00 22 [16:09:45]RAPDU: 90 00 [16:09:45]wFMCommunicate OK [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 0D 03 02 [16:09:45]Write to MH i2c: E2 08 00 9D 12 80 0D 03 02 00 00 00 00 2A [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0B 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 0B 00 9D 12 00 0C 8A A3 3F 98 38 50 3B 90 00 FE [16:09:45]RAPDU: 0C 8A A3 3F 98 38 50 3B 90 00 [16:09:45]wFMCommunicate OK [16:09:45]SAM_PROTO_SignData done [16:09:45]FM_MakeSignedData done [16:09:45]CreateOFDProtocolMessage [16:09:45]wFMCommunicate request_size=4 [16:09:45]MH_SAM_APDU [16:09:45]CAPDU: 80 11 00 00 [16:09:45]Write to MH i2c: E2 08 00 9E 12 80 11 00 00 00 00 00 00 2A [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:45]Read from MH i2c: E2 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 17 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: E2 17 00 9E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7B [16:09:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:45]wFMCommunicate OK [16:09:45]CreateOFDProtocolMessage done [16:09:45]OFDSenderStorePacket 112343 [16:09:45]StoreOFDPacket docnum=112343 [16:09:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0B 11 07 01 79 0B 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 F2 00 00 00 F4 03 04 00 C8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D7 B6 01 00 35 04 06 00 5B 2A FE 2E 14 14 0C 8A A3 3F 98 38 50 3B [16:09:45]CheckFolder [16:09:45]dirname=/storage/ofd_packets [16:09:45]CheckFolder done [16:09:45]ProducePacketName [16:09:45]name=ofd_packets/00112343 [16:09:45]NVStorageSaveData ofd_packets/00112343 [16:09:45]File name is /storage/ofd_packets/00112343 [16:09:45]Write 301 bytes [16:09:45]NVStorageSaveData done [16:09:45]OFDSenderStorePacket done [16:09:45]KKMCreateOFDPacket done [16:09:45]NVStorageSaveData kkm_last_timestamp [16:09:45]File name is /storage/kkm_last_timestamp [16:09:45]Write 4 bytes [16:09:45]NVStorageSaveData done [16:09:45]ExternCall_PrintAddStr [16:09:45]wPrintStart [16:09:45]Write to MH i2c: 01 00 00 9F 12 B1 [16:09:45]Write i2c OK [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 [16:09:45]MH_I2C_Read... [16:09:45]Read from MH i2c: 01 07 00 9F 12 00 00 00 00 00 FF 0F C6 [16:09:45]RasterBufferAndPrint [16:09:45]line Счет N : (1)48654 [16:09:45]line ИНН: 02508201610067 [16:09:45]line Контрольно-Кассовый Чек [16:09:45]line ПРОДАЖА [16:09:45]line ТРК (МРК, ГНК) : 42 [16:09:45]line Товар: 2710124130 [16:09:45]line Аи-92-К-5 [16:09:45]line 4.670 * 64.30 [16:09:45]line = 300.28 [16:09:45]line НДС 12% НСП 1% [16:09:45]line > о реализуемом товаре [16:09:45]line ОКРУГЛЕНИЕ: -0.28 [16:09:45]line ИТОГО: 300.00 [16:09:45]line Внесено: 300.00 [16:09:45]line СДАЧА: 0.00 [16:09:45]line НСП 1% : 2.66 [16:09:45]line НДС 12% : 31.89 [16:09:45]line Наличными: 300.00 [16:09:45]line Безнал.: 0.00 [16:09:45]line Место: АЗС № 47 "Партнер Нефть" [16:09:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:09:45]line СНО: Общий режим [16:09:45]line Чек 242 14.04.2024 16:09 [16:09:45]line Смена: 357 ФФД: 1.0 [16:09:45]line ЗНМ: 0300000138 [16:09:45]line РНМ: 0000000000094237 [16:09:45]line Версия ККМ: 001 [16:09:45]line ФМ: 0000000000875019 [16:09:45]line ФД: 112343 [16:09:45]line ФПД: 100240211186708 [16:09:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160944&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112343&fm=100240211186708&tin=02508201610067®Number=0000000000094237&sum=30000 [16:09:45]written 0, free lines is 4095 [16:09:45]OFD Sender: Processing packet 112343 [packets to send 71, broken 70] [16:09:45]ProducePacketName [16:09:45]name=ofd_packets/00112343 [16:09:45]OFD Sender: To server: pG, [16:09:45]CommunicateWithHost lk.salyk.kg:30040 [16:09:45]ConnectInit lk.salyk.kg [16:09:46]Connected sock=11 [16:09:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0B 11 07 01 79 0B 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 F2 00 00 00 F4 03 04 00 C8 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D7 B6 01 00 35 04 06 00 5B 2A FE 2E 14 14 0C 8A A3 3F 98 38 50 3B [16:09:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 87 54 47 00 80 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 38 37 35 30 31 39 10 04 04 00 D7 B6 01 00 F4 03 04 00 53 A7 1B 66 B6 04 01 00 00 AD A2 6D EE 76 D3 25 70 [16:09:46]CommunicateWithHost err = 0 [16:09:46]CheckOFDResponse [16:09:46]1017 (14) - 77093643461234 [16:09:46]1041 (16) - 0000000000875019 [16:09:46]1040 (4) - 112343 [16:09:46]1012 (4) - 14.04.2024 09:52 [16:09:46]1206 (1) - 0 [16:09:46]OFD Sender: Remove packet 112343 [16:09:46]ProducePacketName [16:09:46]name=ofd_packets/00112343 [16:09:46]NVStorageDeleteData [16:09:46]Write to MH i2c: 01 00 00 CA 12 DC [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: 01 07 00 CA 12 00 00 00 00 00 E4 0C D3 [16:09:46]RasterBufferAndPrint [16:09:46]line [16:09:46]line [16:09:46]line [16:09:46]line [16:09:46]line [16:09:46]written 0, free lines is 3306 [16:09:46]MH_Cut [16:09:46]Write to MH i2c: D1 01 00 D1 12 01 B5 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D1 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D1 01 00 [16:09:46]MH_I2C_Read... [16:09:46]Read from MH i2c: D1 01 00 D1 12 00 B4 [16:09:46]Write to MH i2c: 01 00 00 D2 12 E4 [16:09:46]Write i2c OK [16:09:46]MH_I2C_Read... [16:09:46]OFD Sender: No OFD packet to send [16:09:47]*** Cut start [16:09:47]*** Partial cut [16:09:47]*** CUTSNS_PIN = 1 [16:09:47]*** CUTSNS_PIN = 0 [16:09:47]*** Brake cut motor [16:09:47]Read from MH i2c: 01 [16:09:47]MH_I2C_Read... [16:09:47]*** Stop cut motor [16:09:47]*** Cut end [16:09:47]Read from MH i2c: 01 07 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: 01 07 00 D2 12 00 00 00 00 00 FF 0F F9 [16:09:47]process_action close_receipt done [16:09:47]requested_data is exist [16:09:47]produce_requested_data [16:09:47]requested_item fm.sn is exist - process it [16:09:47]wFMCommunicate request_size=4 [16:09:47]MH_SAM_APDU [16:09:47]CAPDU: 80 11 00 00 [16:09:47]Write to MH i2c: E2 08 00 D3 12 80 11 00 00 00 00 00 00 5F [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 17 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 17 00 D3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B0 [16:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:47]wFMCommunicate OK [16:09:47]requested_item fd.num is exist - process it [16:09:47]SAM_PROTO_GetFieldsCounters [16:09:47]wFMCommunicate request_size=4 [16:09:47]MH_SAM_APDU [16:09:47]CAPDU: 80 13 00 00 [16:09:47]Write to MH i2c: E2 08 00 D4 12 80 13 00 00 00 00 00 00 62 [16:09:47]Write i2c OK [16:09:47]MH_I2C_Read... [16:09:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:47]Read from MH i2c: E2 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 62 00 [16:09:47]MH_I2C_Read... [16:09:47]Read from MH i2c: E2 62 00 D4 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [16:09:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_GetFieldsCounters done [16:09:48]requested_item shift.num is exist - process it [16:09:48]requested_item shift.opened is exist - process it [16:09:48]req_shift_opened [16:09:48]FM_GetShiftState [16:09:48]SAM_PROTO_GetShiftState [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 13 01 00 [16:09:48]Write to MH i2c: E2 08 00 D5 12 80 13 01 00 00 00 00 00 64 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0E 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0E 00 D5 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FC [16:09:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_GetShiftState done [16:09:48]FM_GetShiftState done [16:09:48]req_shift_opened done [16:09:48]requested_item shift.open_date is exist - process it [16:09:48]req_shift_open_date [16:09:48]req_shift_open_date done [16:09:48]produce_requested_data done [16:09:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112343,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:09:48]process_action_free close_receipt [16:09:48]json_value_free [16:09:48]json_value_free done [16:09:48]process_json_proto returns [16:09:48]Send response to host [16:09:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112343,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:09:48]free response buf [16:09:48]execute_script done [16:09:48]execute_script returns [16:09:48]free content buf [16:09:48]Sock 8.Close socket [16:09:48]Sock 8.Thread stoped [16:09:51]OFD Sender: No OFD packet to send [16:09:52]accept exits with 9 [16:09:52]New connection [16:09:52]New thread 3066826084 created [16:09:52]Thread 3066682724 joined [16:09:52]Waiting for new connection... [16:09:52] Sock 9.Parse request [16:09:52]Sock 9.Check first char [16:09:52]Sock 9.First char is OK [16:09:52]request: POST /json_proto HTTP/1.0 [16:09:52]Method: POST [16:09:52]URL: /json_proto [16:09:52]Method is POST - this is cgi request [16:09:52]url: /json_proto [16:09:52]query_string will be loaded in cgi processing [16:09:52]execute_cgi json_proto POST (null) [16:09:52]execute_cgi path=json_proto method=POST [16:09:52]POST find Content-Length [16:09:52]Host: 172.17.96.197:8080 [16:09:52]Content-Length: 1628 [16:09:52]Content-Type: application/json [16:09:52] [16:09:52]POST finish read [16:09:52]Found Content-Length = 1628 [16:09:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10430", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 272.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:52]execute_script... [16:09:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10430", "tax_sys" : 0, "items" : [ { "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46141538", "name": "\u0420/\u0436 Orbit Bubblemint 13,6\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 2.000, "sum" : 82.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001157913", "name": "\u0412\u043E\u0434\u0430 ASU 0,5\u043B c \u0431\u0435\u0437 \u0433\u0430\u0437\u0430", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 272.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:52]POST & json_proto [16:09:52]process_json_proto [16:09:52]json parsed OK: [16:09:52]protocol is kg_v1.0 [16:09:52]action value=close_receipt [16:09:52]process_action close_receipt [16:09:52]cmd_close_receipt [16:09:52]MH_GetDate [16:09:52]Write to MH i2c: F0 00 00 D6 12 D7 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: F0 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: F0 09 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: F0 09 00 D6 12 00 D1 FF 1B 66 E0 85 7F 64 79 [16:09:52]GetLastDocTimeStamp 1713110984 [16:09:52]current date 1713110993 [16:09:52]FM_GetShiftState [16:09:52]SAM_PROTO_GetShiftState [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 13 01 00 [16:09:52]Write to MH i2c: E2 08 00 D7 12 80 13 01 00 00 00 00 00 66 [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0E 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0E 00 D7 12 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FE [16:09:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:52]wFMCommunicate OK [16:09:52]SAM_PROTO_GetShiftState done [16:09:52]FM_GetShiftState done [16:09:52]opened in 1713054696 [16:09:52]opened+sec_in_day 1713141096 [16:09:52]quantity*price = 11000 [16:09:52]sum+1 = 11001 [16:09:52]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46141538 Р/ж Orbit Bubblemint 13,6г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6921211114420 Карамель ЧЧ 3D В-РОР Тропический 8*45 2.000 * 41.00 = 82.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001157913 Вода ASU 0,5л c без газа 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 272.00 НСП 1% : 2.40 НДС 12% : 28.89 Наличными: 0.00 Безнал.: 272.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 243 14.04.2024 16:09 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112344 ФПД: 59298317245696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160953&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112344&fm=59298317245696&tin=02508201610067®Number=0000000000094237&sum=27200 0 [16:09:54]StoreToDocumentArchive [16:09:54]shift 357 fd 112344 [16:09:54]save to /storage/0357/doc_00112344 [16:09:54]save last doc name /storage/0357/doc_00112344 to /storage/kkm_last_doc_name [16:09:54]save OK [16:09:54]Clear old archive folders... [16:09:54]ProcessDocumentItem done err = 0, tmpTLVsize=616 [16:09:54]tlvbuf is 001D2BB0 [16:09:54]SAM_PROTO_ClearQueue [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 09 00 00 [16:09:54]Write to MH i2c: E2 08 00 E4 12 80 09 00 00 00 00 00 00 68 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 E4 12 00 90 00 6A [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]SAM_PROTO_ClearQueue done [16:09:54]KKMCreateOFDPacket [16:09:54]OFDProtocolAddRootSTLVToBuf [16:09:54]FM_MakeSignedData [16:09:54]FM_MakeSignedData [16:09:54]SAM_PROTO_SignData [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 01 02 [16:09:54]Write to MH i2c: E2 08 00 E5 12 80 0D 01 02 00 00 00 00 70 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 E5 12 00 90 00 6B [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=255 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 02 02 FA 03 00 68 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 [16:09:54]Write to MH i2c: E2 02 01 E6 12 80 0D 02 02 FA 00 03 00 68 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 00 00 70 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 E6 12 00 90 00 6C [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=255 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 02 02 FA D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [16:09:54]Write to MH i2c: E2 02 01 E7 12 80 0D 02 02 FA 00 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 F4 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 E7 12 00 90 00 6D [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=125 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 02 02 78 00 49 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 D1 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D8 B6 01 00 35 04 06 00 35 EE 77 22 9D 00 [16:09:54]Write to MH i2c: E2 80 00 E8 12 80 0D 02 02 78 00 00 49 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 D1 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D8 B6 01 00 35 04 06 00 35 EE 77 22 9D 00 00 00 2C [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 03 00 E8 12 00 90 00 6E [16:09:54]RAPDU: 90 00 [16:09:54]wFMCommunicate OK [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 0D 03 02 [16:09:54]Write to MH i2c: E2 08 00 E9 12 80 0D 03 02 00 00 00 00 76 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 0B 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 0B 00 E9 12 00 D3 8B 4F E1 45 D3 D5 E6 90 00 D8 [16:09:54]RAPDU: D3 8B 4F E1 45 D3 D5 E6 90 00 [16:09:54]wFMCommunicate OK [16:09:54]SAM_PROTO_SignData done [16:09:54]FM_MakeSignedData done [16:09:54]CreateOFDProtocolMessage [16:09:54]wFMCommunicate request_size=4 [16:09:54]MH_SAM_APDU [16:09:54]CAPDU: 80 11 00 00 [16:09:54]Write to MH i2c: E2 08 00 EA 12 80 11 00 00 00 00 00 00 76 [16:09:54]Write i2c OK [16:09:54]MH_I2C_Read... [16:09:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:54]Read from MH i2c: E2 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 17 00 [16:09:54]MH_I2C_Read... [16:09:54]Read from MH i2c: E2 17 00 EA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C7 [16:09:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:54]wFMCommunicate OK [16:09:54]CreateOFDProtocolMessage done [16:09:54]OFDSenderStorePacket 112344 [16:09:54]StoreOFDPacket docnum=112344 [16:09:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 7C 02 00 00 75 15 74 02 B4 31 5A 03 01 00 03 00 68 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 D1 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D8 B6 01 00 35 04 06 00 35 EE 77 22 9D 00 D3 8B 4F E1 45 D3 D5 E6 [16:09:54]CheckFolder [16:09:54]dirname=/storage/ofd_packets [16:09:54]CheckFolder done [16:09:54]ProducePacketName [16:09:54]name=ofd_packets/00112344 [16:09:54]NVStorageSaveData ofd_packets/00112344 [16:09:54]File name is /storage/ofd_packets/00112344 [16:09:54]Write 666 bytes [16:09:54]NVStorageSaveData done [16:09:54]OFDSenderStorePacket done [16:09:54]KKMCreateOFDPacket done [16:09:54]NVStorageSaveData kkm_last_timestamp [16:09:55]File name is /storage/kkm_last_timestamp [16:09:55]Write 4 bytes [16:09:55]NVStorageSaveData done [16:09:55]ExternCall_PrintAddStr [16:09:55]wPrintStart [16:09:55]Write to MH i2c: 01 00 00 EB 12 FD [16:09:55]Write i2c OK [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 [16:09:55]MH_I2C_Read... [16:09:55]Read from MH i2c: 01 07 00 EB 12 00 00 00 00 00 FF 0F 12 [16:09:55]RasterBufferAndPrint [16:09:55]line Счет N : (3)10430 [16:09:55]line ИНН: 02508201610067 [16:09:55]line Контрольно-Кассовый Чек [16:09:55]line ПРОДАЖА [16:09:55]line Товар: 4860019001353 [16:09:55]line Вода Боржоми 0,5л ПЭТ [16:09:55]line 1.000 * 110.00 [16:09:55]line = 110.00 [16:09:55]line НДС 12% НСП 1% [16:09:55]line > о реализуемом товаре [16:09:55]line Товар: 46141538 [16:09:55]line Р/ж Orbit Bubblemint 13,6г [16:09:55]line 1.000 * 40.00 [16:09:55]line = 40.00 [16:09:55]line НДС 12% НСП 1% [16:09:55]line > о реализуемом товаре [16:09:55]line Товар: 6921211114420 [16:09:55]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [16:09:55]line 2.000 * 41.00 [16:09:55]line = 82.00 [16:09:55]line НДС 12% НСП 1% [16:09:55]line > о реализуемом товаре [16:09:55]line Товар: 4870001157913 [16:09:55]line Вода ASU 0,5л c без газа [16:09:55]line 1.000 * 40.00 [16:09:55]line = 40.00 [16:09:55]line НДС 12% НСП 1% [16:09:55]line > о реализуемом товаре [16:09:55]line ИТОГО: 272.00 [16:09:55]line НСП 1% : 2.40 [16:09:55]line НДС 12% : 28.89 [16:09:55]line Наличными: 0.00 [16:09:55]line Безнал.: 272.00 [16:09:55]line Место: АЗС № 47 "Партнер Нефть" [16:09:55]OFD Sender: Processing packet 112344 [packets to send 71, broken 70] [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00112344 [16:09:55]OFD Sender: To server: pG, [16:09:55]CommunicateWithHost lk.salyk.kg:30040 [16:09:55]ConnectInit lk.salyk.kg [16:09:55]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:09:55]line СНО: Общий режим [16:09:55]line Чек 243 14.04.2024 16:09 [16:09:55]line Смена: 357 ФФД: 1.0 [16:09:55]line ЗНМ: 0300000138 [16:09:55]line РНМ: 0000000000094237 [16:09:55]line Версия ККМ: 001 [16:09:55]line Платежная система: Бакай Банк [16:09:55]line ФМ: 0000000000875019 [16:09:55]line ФД: 112344 [16:09:55]line ФПД: 59298317245696 [16:09:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T160953&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112344&fm=59298317245696&tin=02508201610067®Number=0000000000094237&sum=27200 [16:09:55]Connected sock=10 [16:09:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 7C 02 00 00 75 15 74 02 B4 31 5A 03 01 00 03 00 68 02 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 08 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 37 39 31 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 30 2C 35 D0 BB 20 63 20 D0 B1 D0 B5 D0 B7 20 D0 B3 D0 B0 D0 B7 D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 49 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 6A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 D1 FF 1B 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D8 B6 01 00 35 04 06 00 35 EE 77 22 9D 00 D3 8B 4F E1 45 D3 D5 E6 [16:09:55]line 0 [16:09:55]written 0, free lines is 4095 [16:09:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AA 20 47 00 68 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D8 B6 01 00 F4 03 04 00 5C A7 1B 66 B6 04 01 00 00 29 DF 99 83 68 C1 08 BD [16:09:55]CommunicateWithHost err = 0 [16:09:55]CheckOFDResponse [16:09:55]1017 (14) - 77093643461234 [16:09:55]1041 (16) - 0000000000875019 [16:09:55]1040 (4) - 112344 [16:09:55]1012 (4) - 14.04.2024 09:52 [16:09:55]1206 (1) - 0 [16:09:55]OFD Sender: Remove packet 112344 [16:09:55]ProducePacketName [16:09:55]name=ofd_packets/00112344 [16:09:55]NVStorageDeleteData [16:09:56]Write to MH i2c: 01 00 00 28 13 3B [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 07 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: 01 07 00 28 13 00 00 00 00 00 E7 0B 34 [16:09:56]RasterBufferAndPrint [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]line [16:09:56]written 0, free lines is 3061 [16:09:56]MH_Cut [16:09:56]Write to MH i2c: D1 01 00 2F 13 01 14 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 01 00 [16:09:56]MH_I2C_Read... [16:09:56]Read from MH i2c: D1 01 00 2F 13 00 13 [16:09:56]Write to MH i2c: 01 00 00 30 13 43 [16:09:56]Write i2c OK [16:09:56]MH_I2C_Read... [16:09:56]OFD Sender: No OFD packet to send [16:09:57]*** Cut start [16:09:57]*** Partial cut [16:09:57]*** CUTSNS_PIN = 1 [16:09:57]*** CUTSNS_PIN = 0 [16:09:57]*** Brake cut motor [16:09:57]Read from MH i2c: 01 [16:09:57]MH_I2C_Read... [16:09:57]*** Stop cut motor [16:09:57]*** Cut end [16:09:57]Read from MH i2c: 01 07 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 FF 0F 58 [16:09:57]process_action close_receipt done [16:09:57]requested_data is exist [16:09:57]produce_requested_data [16:09:57]requested_item fm.sn is exist - process it [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 11 00 00 [16:09:57]Write to MH i2c: E2 08 00 31 13 80 11 00 00 00 00 00 00 BE [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 17 00 31 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [16:09:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:09:57]wFMCommunicate OK [16:09:57]requested_item fd.num is exist - process it [16:09:57]SAM_PROTO_GetFieldsCounters [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 00 00 [16:09:57]Write to MH i2c: E2 08 00 32 13 80 13 00 00 00 00 00 00 C1 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:57]Read from MH i2c: E2 62 00 [16:09:57]MH_I2C_Read... [16:09:57]Read from MH i2c: E2 62 00 32 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [16:09:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:57]wFMCommunicate OK [16:09:57]SAM_PROTO_GetFieldsCounters done [16:09:57]requested_item shift.num is exist - process it [16:09:57]requested_item shift.opened is exist - process it [16:09:57]req_shift_opened [16:09:57]FM_GetShiftState [16:09:57]SAM_PROTO_GetShiftState [16:09:57]wFMCommunicate request_size=4 [16:09:57]MH_SAM_APDU [16:09:57]CAPDU: 80 13 01 00 [16:09:57]Write to MH i2c: E2 08 00 33 13 80 13 01 00 00 00 00 00 C3 [16:09:57]Write i2c OK [16:09:57]MH_I2C_Read... [16:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:58]Read from MH i2c: E2 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 0E 00 [16:09:58]MH_I2C_Read... [16:09:58]Read from MH i2c: E2 0E 00 33 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5B [16:09:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:09:58]wFMCommunicate OK [16:09:58]SAM_PROTO_GetShiftState done [16:09:58]FM_GetShiftState done [16:09:58]req_shift_opened done [16:09:58]requested_item shift.open_date is exist - process it [16:09:58]req_shift_open_date [16:09:58]req_shift_open_date done [16:09:58]produce_requested_data done [16:09:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112344,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:09:58]process_action_free close_receipt [16:09:58]json_value_free [16:09:58]json_value_free done [16:09:58]process_json_proto returns [16:09:58]Send response to host [16:09:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112344,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:09:58]free response buf [16:09:58]execute_script done [16:09:58]execute_script returns [16:09:58]free content buf [16:09:58]Sock 9.Close socket [16:09:58]Sock 9.Thread stoped [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:48]accept exits with 8 [16:12:48]New connection [16:12:48]New thread 3066682724 created [16:12:48]Thread 3066826084 joined [16:12:48]Waiting for new connection... [16:12:48] Sock 8.Parse request [16:12:48]Sock 8.Check first char [16:12:48]Sock 8.First char is OK [16:12:48]request: POST /json_proto HTTP/1.0 [16:12:48]Method: POST [16:12:48]URL: /json_proto [16:12:48]Method is POST - this is cgi request [16:12:48]url: /json_proto [16:12:48]query_string will be loaded in cgi processing [16:12:48]execute_cgi json_proto POST (null) [16:12:48]execute_cgi path=json_proto method=POST [16:12:48]POST find Content-Length [16:12:48]Host: 172.17.96.197:8080 [16:12:48]Content-Length: 676 [16:12:48]Content-Type: application/json [16:12:48] [16:12:48]POST finish read [16:12:48]Found Content-Length = 676 [16:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48655", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:12:48]execute_script... [16:12: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)48655", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:12:48]POST & json_proto [16:12:48]process_json_proto [16:12:48]json parsed OK: [16:12:48]protocol is kg_v1.0 [16:12:48]action value=close_receipt [16:12:48]process_action close_receipt [16:12:48]cmd_close_receipt [16:12:48]MH_GetDate [16:12:48]Write to MH i2c: F0 00 00 34 13 36 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: F0 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: F0 09 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: F0 09 00 34 13 00 81 00 1C 66 E0 85 7F 64 8A [16:12:48]GetLastDocTimeStamp 1713110993 [16:12:48]current date 1713111169 [16:12:48]FM_GetShiftState [16:12:48]SAM_PROTO_GetShiftState [16:12:48]wFMCommunicate request_size=4 [16:12:48]MH_SAM_APDU [16:12:48]CAPDU: 80 13 01 00 [16:12:48]Write to MH i2c: E2 08 00 35 13 80 13 01 00 00 00 00 00 C5 [16:12:48]Write i2c OK [16:12:48]MH_I2C_Read... [16:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:48]Read from MH i2c: E2 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 [16:12:48]MH_I2C_Read... [16:12:48]Read from MH i2c: E2 0E 00 35 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5D [16:12:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:12:48]wFMCommunicate OK [16:12:48]SAM_PROTO_GetShiftState done [16:12:48]FM_GetShiftState done [16:12:48]opened in 1713054696 [16:12:48]opened+sec_in_day 1713141096 [16:12:48]quantity*price = 50025 [16:12:48]sum+1 = 50026 [16:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 244 14.04.2024 16:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112345 ФПД: 53685580435197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T161249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112345&fm=53685580435197&tin=02508201610067®Number=0000000000094237&sum=50000 [16:12:49]StoreToDocumentArchive [16:12:49]shift 357 fd 112345 [16:12:49]save to /storage/0357/doc_00112345 [16:12:49]save last doc name /storage/0357/doc_00112345 to /storage/kkm_last_doc_name [16:12:49]save OK [16:12:49]Clear old archive folders... [16:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:12:49]tlvbuf is 00174FF0 [16:12:49]SAM_PROTO_ClearQueue [16:12:49]wFMCommunicate request_size=4 [16:12:49]MH_SAM_APDU [16:12:49]CAPDU: 80 09 00 00 [16:12:49]Write to MH i2c: E2 08 00 42 13 80 09 00 00 00 00 00 00 C7 [16:12:49]Write i2c OK [16:12:49]MH_I2C_Read... [16:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:12:49]Read from MH i2c: E2 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 42 13 00 90 00 C9 [16:12:49]RAPDU: 90 00 [16:12:49]wFMCommunicate OK [16:12:49]SAM_PROTO_ClearQueue done [16:12:49]KKMCreateOFDPacket [16:12:49]OFDProtocolAddRootSTLVToBuf [16:12:49]FM_MakeSignedData [16:12:49]FM_MakeSignedData [16:12:49]SAM_PROTO_SignData [16:12:49]wFMCommunicate request_size=4 [16:12:49]MH_SAM_APDU [16:12:49]CAPDU: 80 0D 01 02 [16:12:49]Write to MH i2c: E2 08 00 43 13 80 0D 01 02 00 00 00 00 CF [16:12:49]Write i2c OK [16:12:49]MH_I2C_Read... [16:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:12:49]Read from MH i2c: E2 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 43 13 00 90 00 CA [16:12:49]RAPDU: 90 00 [16:12:49]wFMCommunicate OK [16:12:49]wFMCommunicate request_size=255 [16:12:49]MH_SAM_APDU [16:12: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F4 00 00 00 F4 03 04 00 81 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D9 B6 01 00 35 04 06 00 30 [16:12:49]Write to MH i2c: E2 02 01 44 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F4 00 00 00 F4 03 04 00 81 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D9 B6 01 00 35 04 06 00 30 00 00 8F [16:12:49]Write i2c OK [16:12:49]MH_I2C_Read... [16:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:49]Read from MH i2c: E2 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 [16:12:49]MH_I2C_Read... [16:12:49]Read from MH i2c: E2 03 00 44 13 00 90 00 CB [16:12:49]RAPDU: 90 00 [16:12:49]wFMCommunicate OK [16:12:49]wFMCommunicate request_size=10 [16:12:49]MH_SAM_APDU [16:12:49]CAPDU: 80 0D 02 02 05 D3 A5 F3 8E FD [16:12:49]Write to MH i2c: E2 0D 00 45 13 80 0D 02 02 05 00 D3 A5 F3 8E FD 00 00 D2 [16:12:49]Write i2c OK [16:12:49]MH_I2C_Read... [16:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:12:50]Read from MH i2c: E2 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 03 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 03 00 45 13 00 90 00 CC [16:12:50]RAPDU: 90 00 [16:12:50]wFMCommunicate OK [16:12:50]wFMCommunicate request_size=4 [16:12:50]MH_SAM_APDU [16:12:50]CAPDU: 80 0D 03 02 [16:12:50]Write to MH i2c: E2 08 00 46 13 80 0D 03 02 00 00 00 00 D4 [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:12:50]Read from MH i2c: E2 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 0B 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 0B 00 46 13 00 7F 9B 52 D1 76 A5 86 C2 90 00 75 [16:12:50]RAPDU: 7F 9B 52 D1 76 A5 86 C2 90 00 [16:12:50]wFMCommunicate OK [16:12:50]SAM_PROTO_SignData done [16:12:50]FM_MakeSignedData done [16:12:50]CreateOFDProtocolMessage [16:12:50]wFMCommunicate request_size=4 [16:12:50]MH_SAM_APDU [16:12:50]CAPDU: 80 11 00 00 [16:12:50]Write to MH i2c: E2 08 00 47 13 80 11 00 00 00 00 00 00 D4 [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:50]Read from MH i2c: E2 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 17 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: E2 17 00 47 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [16:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:12:50]wFMCommunicate OK [16:12:50]CreateOFDProtocolMessage done [16:12:50]OFDSenderStorePacket 112345 [16:12:50]StoreOFDPacket docnum=112345 [16:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7D 61 07 01 8B B5 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F4 00 00 00 F4 03 04 00 81 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D9 B6 01 00 35 04 06 00 30 D3 A5 F3 8E FD 7F 9B 52 D1 76 A5 86 C2 [16:12:50]CheckFolder [16:12:50]dirname=/storage/ofd_packets [16:12:50]CheckFolder done [16:12:50]ProducePacketName [16:12:50]name=ofd_packets/00112345 [16:12:50]NVStorageSaveData ofd_packets/00112345 [16:12:50]File name is /storage/ofd_packets/00112345 [16:12:50]Write 301 bytes [16:12:50]NVStorageSaveData done [16:12:50]OFDSenderStorePacket done [16:12:50]KKMCreateOFDPacket done [16:12:50]NVStorageSaveData kkm_last_timestamp [16:12:50]File name is /storage/kkm_last_timestamp [16:12:50]Write 4 bytes [16:12:50]NVStorageSaveData done [16:12:50]ExternCall_PrintAddStr [16:12:50]wPrintStart [16:12:50]Write to MH i2c: 01 00 00 48 13 5B [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 07 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 07 00 48 13 00 00 00 00 00 FF 0F 70 [16:12:50]RasterBufferAndPrint [16:12:50]line Счет N : (1)48655 [16:12:50]line ИНН: 02508201610067 [16:12:50]line Контрольно-Кассовый Чек [16:12:50]line ПРОДАЖА [16:12:50]line ТРК (МРК, ГНК) : 32 [16:12:50]line Товар: 2710124130 [16:12:50]line Аи-92-К-5 [16:12:50]line 7.780 * 64.30 [16:12:50]line = 500.25 [16:12:50]line НДС 12% НСП 1% [16:12:50]line > о реализуемом товаре [16:12:50]line ОКРУГЛЕНИЕ: -0.25 [16:12:50]line ИТОГО: 500.00 [16:12:50]line Внесено: 500.00 [16:12:50]line СДАЧА: 0.00 [16:12:50]line НСП 1% : 4.43 [16:12:50]line НДС 12% : 53.12 [16:12:50]line Наличными: 500.00 [16:12:50]line Безнал.: 0.00 [16:12:50]line Место: АЗС № 47 "Партнер Нефть" [16:12:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:12:50]line СНО: Общий режим [16:12:50]line Чек 244 14.04.2024 16:12 [16:12:50]line Смена: 357 ФФД: 1.0 [16:12:50]line ЗНМ: 0300000138 [16:12:50]line РНМ: 0000000000094237 [16:12:50]line Версия ККМ: 001 [16:12:50]line ФМ: 0000000000875019 [16:12:50]line ФД: 112345 [16:12:50]line ФПД: 53685580435197 [16:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T161249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112345&fm=53685580435197&tin=02508201610067®Number=0000000000094237&sum=50000 [16:12:50]OFD Sender: Processing packet 112345 [packets to send 71, broken 70] [16:12:50]ProducePacketName [16:12:50]name=ofd_packets/00112345 [16:12:50]OFD Sender: To server: pG, [16:12:50]CommunicateWithHost lk.salyk.kg:30040 [16:12:50]ConnectInit lk.salyk.kg [16:12:50]written 0, free lines is 4095 [16:12:50]Connected sock=10 [16:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7D 61 07 01 8B B5 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F4 00 00 00 F4 03 04 00 81 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D9 B6 01 00 35 04 06 00 30 D3 A5 F3 8E FD 7F 9B 52 D1 76 A5 86 C2 [16:12:50]Write to MH i2c: 01 00 00 73 13 86 [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 07 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: 01 07 00 73 13 00 00 00 00 00 DC 0C 75 [16:12:50]RasterBufferAndPrint [16:12:50]line [16:12:50]line [16:12:50]line [16:12:50]line [16:12:50]line [16:12:50]written 0, free lines is 3298 [16:12:50]MH_Cut [16:12:50]Write to MH i2c: D1 01 00 7A 13 01 5F [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: D1 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: D1 01 00 [16:12:50]MH_I2C_Read... [16:12:50]Read from MH i2c: D1 01 00 7A 13 00 5E [16:12:50]Write to MH i2c: 01 00 00 7B 13 8E [16:12:50]Write i2c OK [16:12:50]MH_I2C_Read... [16:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 81 46 47 00 0D 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 D9 B6 01 00 F4 03 04 00 0C A8 1B 66 B6 04 01 00 00 D6 79 46 FC 8B 21 98 D4 [16:12:50]CommunicateWithHost err = 0 [16:12:50]CheckOFDResponse [16:12:50]1017 (14) - 77093643461234 [16:12:50]1041 (16) - 0000000000875019 [16:12:50]1040 (4) - 112345 [16:12:50]1012 (4) - 14.04.2024 09:55 [16:12:50]1206 (1) - 0 [16:12:50]OFD Sender: Remove packet 112345 [16:12:50]ProducePacketName [16:12:50]name=ofd_packets/00112345 [16:12:50]NVStorageDeleteData [16:12:51]OFD Sender: No OFD packet to send [16:12:51]*** Cut start [16:12:51]*** Partial cut [16:12:51]*** CUTSNS_PIN = 1 [16:12:51]*** CUTSNS_PIN = 0 [16:12:51]*** Brake cut motor [16:12:52]Read from MH i2c: 01 [16:12:52]MH_I2C_Read... [16:12:52]*** Stop cut motor [16:12:52]*** Cut end [16:12:52]Read from MH i2c: 01 07 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [16:12:52]process_action close_receipt done [16:12:52]requested_data is exist [16:12:52]produce_requested_data [16:12:52]requested_item fm.sn is exist - process it [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 11 00 00 [16:12:52]Write to MH i2c: E2 08 00 7C 13 80 11 00 00 00 00 00 00 09 [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 17 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 17 00 7C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5A [16:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:12:52]wFMCommunicate OK [16:12:52]requested_item fd.num is exist - process it [16:12:52]SAM_PROTO_GetFieldsCounters [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 13 00 00 [16:12:52]Write to MH i2c: E2 08 00 7D 13 80 13 00 00 00 00 00 00 0C [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 62 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 62 00 7D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [16:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 D9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_GetFieldsCounters done [16:12:52]requested_item shift.num is exist - process it [16:12:52]requested_item shift.opened is exist - process it [16:12:52]req_shift_opened [16:12:52]FM_GetShiftState [16:12:52]SAM_PROTO_GetShiftState [16:12:52]wFMCommunicate request_size=4 [16:12:52]MH_SAM_APDU [16:12:52]CAPDU: 80 13 01 00 [16:12:52]Write to MH i2c: E2 08 00 7E 13 80 13 01 00 00 00 00 00 0E [16:12:52]Write i2c OK [16:12:52]MH_I2C_Read... [16:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:12:52]Read from MH i2c: E2 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0E 00 [16:12:52]MH_I2C_Read... [16:12:52]Read from MH i2c: E2 0E 00 7E 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A6 [16:12:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:12:52]wFMCommunicate OK [16:12:52]SAM_PROTO_GetShiftState done [16:12:52]FM_GetShiftState done [16:12:52]req_shift_opened done [16:12:52]requested_item shift.open_date is exist - process it [16:12:52]req_shift_open_date [16:12:52]req_shift_open_date done [16:12:52]produce_requested_data done [16:12:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112345,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:12:52]process_action_free close_receipt [16:12:52]json_value_free [16:12:52]json_value_free done [16:12:52]process_json_proto returns [16:12:52]Send response to host [16:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112345,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:12:52]free response buf [16:12:52]execute_script done [16:12:52]execute_script returns [16:12:52]free content buf [16:12:52]Sock 8.Close socket [16:12:52]Sock 8.Thread stoped [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:08]accept exits with 9 [16:13:08]New connection [16:13:08]New thread 3066826084 created [16:13:08] Sock 9.Parse request [16:13:08]Thread 3066682724 joined [16:13:08]Sock 9.Check first char [16:13:08]Waiting for new connection... [16:13:08]Sock 9.First char is OK [16:13:08]request: POST /json_proto HTTP/1.0 [16:13:08]Method: POST [16:13:08]URL: /json_proto [16:13:08]Method is POST - this is cgi request [16:13:08]url: /json_proto [16:13:08]query_string will be loaded in cgi processing [16:13:08]execute_cgi json_proto POST (null) [16:13:08]execute_cgi path=json_proto method=POST [16:13:08]POST find Content-Length [16:13:08]Host: 172.17.96.197:8080 [16:13:08]Content-Length: 669 [16:13:08]Content-Type: application/json [16:13:08] [16:13:08]POST finish read [16:13:08]Found Content-Length = 669 [16:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 4.910, "sum" : 320.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]execute_script... [16:13:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48656", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 4.910, "sum" : 320.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]POST & json_proto [16:13:08]process_json_proto [16:13:08]json parsed OK: [16:13:08]protocol is kg_v1.0 [16:13:08]action value=close_receipt [16:13:08]process_action close_receipt [16:13:08]cmd_close_receipt [16:13:08]MH_GetDate [16:13:08]Write to MH i2c: F0 00 00 7F 13 81 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 7F 13 00 95 00 1C 66 E0 85 7F 64 E9 [16:13:08]GetLastDocTimeStamp 1713111169 [16:13:08]current date 1713111189 [16:13:08]FM_GetShiftState [16:13:08]SAM_PROTO_GetShiftState [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 13 01 00 [16:13:08]Write to MH i2c: E2 08 00 80 13 80 13 01 00 00 00 00 00 10 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 80 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A8 [16:13:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_GetShiftState done [16:13:08]FM_GetShiftState done [16:13:08]opened in 1713054696 [16:13:08]opened+sec_in_day 1713141096 [16:13:08]quantity*price = 32062 [16:13:08]sum+1 = 32063 [16:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 320.00 Внесено: 320.00 СДАЧА: 0.00 НСП 1% : 2.84 НДС 12% : 34.05 Наличными: 320.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 245 14.04.2024 16:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112346 ФПД: 168821211413912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T161309&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112346&fm=168821211413912&tin=02508201610067®Number=0000000000094237&sum=32000 [16:13:09]StoreToDocumentArchive [16:13:09]shift 357 fd 112346 [16:13:09]save to /storage/0357/doc_00112346 [16:13:09]save last doc name /storage/0357/doc_00112346 to /storage/kkm_last_doc_name [16:13:09]save OK [16:13:09]Clear old archive folders... [16:13:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:13:10]tlvbuf is 0015BA10 [16:13:10]SAM_PROTO_ClearQueue [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 09 00 00 [16:13:10]Write to MH i2c: E2 08 00 8D 13 80 09 00 00 00 00 00 00 12 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 8D 13 00 90 00 14 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_ClearQueue done [16:13:10]KKMCreateOFDPacket [16:13:10]OFDProtocolAddRootSTLVToBuf [16:13:10]FM_MakeSignedData [16:13:10]FM_MakeSignedData [16:13:10]SAM_PROTO_SignData [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 01 02 [16:13:10]Write to MH i2c: E2 08 00 8E 13 80 0D 01 02 00 00 00 00 1A [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 8E 13 00 90 00 15 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=255 [16:13:10]MH_SAM_APDU [16:13:10]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 13 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3E 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 95 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DA B6 01 00 35 04 06 00 [16:13:10]Write to MH i2c: E2 02 01 8F 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 13 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3E 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 95 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DA B6 01 00 35 04 06 00 00 00 CA [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 8F 13 00 90 00 16 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=11 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 02 02 06 99 8A C0 56 3D 98 [16:13:10]Write to MH i2c: E2 0E 00 90 13 80 0D 02 02 06 00 99 8A C0 56 3D 98 00 00 37 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 90 13 00 90 00 17 [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 03 02 [16:13:10]Write to MH i2c: E2 08 00 91 13 80 0D 03 02 00 00 00 00 1F [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 91 13 00 A9 44 B9 38 84 47 79 27 90 00 69 [16:13:10]RAPDU: A9 44 B9 38 84 47 79 27 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_SignData done [16:13:10]FM_MakeSignedData done [16:13:10]CreateOFDProtocolMessage [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 92 13 80 11 00 00 00 00 00 00 1F [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 92 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 70 [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:13:10]wFMCommunicate OK [16:13:10]CreateOFDProtocolMessage done [16:13:10]OFDSenderStorePacket 112346 [16:13:10]StoreOFDPacket docnum=112346 [16:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 1E 08 01 B4 F0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 13 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3E 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 95 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DA B6 01 00 35 04 06 00 99 8A C0 56 3D 98 A9 44 B9 38 84 47 79 27 [16:13:10]CheckFolder [16:13:10]dirname=/storage/ofd_packets [16:13:10]CheckFolder done [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00112346 [16:13:10]NVStorageSaveData ofd_packets/00112346 [16:13:10]File name is /storage/ofd_packets/00112346 [16:13:10]Write 302 bytes [16:13:10]NVStorageSaveData done [16:13:10]OFDSenderStorePacket done [16:13:10]KKMCreateOFDPacket done [16:13:10]NVStorageSaveData kkm_last_timestamp [16:13:10]File name is /storage/kkm_last_timestamp [16:13:10]Write 4 bytes [16:13:10]NVStorageSaveData done [16:13:10]ExternCall_PrintAddStr [16:13:10]wPrintStart [16:13:10]Write to MH i2c: 01 00 00 93 13 A6 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 93 13 00 00 00 00 00 FF 0F BB [16:13:10]RasterBufferAndPrint [16:13:10]line Счет N : (1)48656 [16:13:10]line ИНН: 02508201610067 [16:13:10]line Контрольно-Кассовый Чек [16:13:10]line ПРОДАЖА [16:13:10]line ТРК (МРК, ГНК) : 52 [16:13:10]line Товар: 2710124130 [16:13:10]line SUPER 92-К-5 [16:13:10]line 4.910 * 65.30 [16:13:10]line = 320.62 [16:13:10]line НДС 12% НСП 1% [16:13:10]line > о реализуемом товаре [16:13:10]line ОКРУГЛЕНИЕ: -0.62 [16:13:10]line ИТОГО: 320.00 [16:13:10]line Внесено: 320.00 [16:13:10]line СДАЧА: 0.00 [16:13:10]line НСП 1% : 2.84 [16:13:10]line НДС 12% : 34.05 [16:13:10]line Наличными: 320.00 [16:13:10]line Безнал.: 0.00 [16:13:10]line Место: АЗС № 47 "Партнер Нефть" [16:13:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:13:10]line СНО: Общий режим [16:13:10]line Чек 245 14.04.2024 16:13 [16:13:10]line Смена: 357 ФФД: 1.0 [16:13:10]line ЗНМ: 0300000138 [16:13:10]line РНМ: 0000000000094237 [16:13:10]line Версия ККМ: 001 [16:13:10]line ФМ: 0000000000875019 [16:13:10]line ФД: 112346 [16:13:10]line ФПД: 168821211413912 [16:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T161309&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112346&fm=168821211413912&tin=02508201610067®Number=0000000000094237&sum=32000 [16:13:10]OFD Sender: Processing packet 112346 [packets to send 71, broken 70] [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00112346 [16:13:10]OFD Sender: To server: pG, [16:13:10]CommunicateWithHost lk.salyk.kg:30040 [16:13:10]ConnectInit lk.salyk.kg [16:13:10]written 0, free lines is 4095 [16:13:11]Connected sock=11 [16:13:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 87 1E 08 01 B4 F0 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 2E 13 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 3E 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 95 00 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DA B6 01 00 35 04 06 00 99 8A C0 56 3D 98 A9 44 B9 38 84 47 79 27 [16:13:11]Write to MH i2c: 01 00 00 BE 13 D1 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: 01 07 00 [16:13:11]MH_I2C_Read... [16:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8A 81 47 00 9F BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DA B6 01 00 F4 03 04 00 20 A8 1B 66 B6 04 01 00 00 48 F5 95 D7 27 63 CA DD [16:13:11]CommunicateWithHost err = 0 [16:13:11]CheckOFDResponse [16:13:11]1017 (14) - 77093643461234 [16:13:11]1041 (16) - 0000000000875019 [16:13:11]1040 (4) - 112346 [16:13:11]1012 (4) - 14.04.2024 09:55 [16:13:11]1206 (1) - 0 [16:13:11]OFD Sender: Remove packet 112346 [16:13:11]ProducePacketName [16:13:11]name=ofd_packets/00112346 [16:13:11]NVStorageDeleteData [16:13:11]Read from MH i2c: 01 07 00 BE 13 00 00 00 00 00 E5 0C C9 [16:13:11]RasterBufferAndPrint [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]line [16:13:11]written 0, free lines is 3344 [16:13:11]MH_Cut [16:13:11]Write to MH i2c: D1 01 00 C5 13 01 AA [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 C5 13 00 A9 [16:13:11]Write to MH i2c: 01 00 00 C6 13 D9 [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]OFD Sender: No OFD packet to send [16:13:12]*** Cut start [16:13:12]*** Partial cut [16:13:12]*** CUTSNS_PIN = 1 [16:13:12]*** CUTSNS_PIN = 0 [16:13:12]*** Brake cut motor [16:13:12]Read from MH i2c: 01 [16:13:12]MH_I2C_Read... [16:13:12]*** Stop cut motor [16:13:12]*** Cut end [16:13:12]Read from MH i2c: 01 07 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [16:13:12]process_action close_receipt done [16:13:12]requested_data is exist [16:13:12]produce_requested_data [16:13:12]requested_item fm.sn is exist - process it [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 11 00 00 [16:13:12]Write to MH i2c: E2 08 00 C7 13 80 11 00 00 00 00 00 00 54 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 C7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A5 [16:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:13:12]wFMCommunicate OK [16:13:12]requested_item fd.num is exist - process it [16:13:12]SAM_PROTO_GetFieldsCounters [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 00 00 [16:13:12]Write to MH i2c: E2 08 00 C8 13 80 13 00 00 00 00 00 00 57 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 C8 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [16:13:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetFieldsCounters done [16:13:12]requested_item shift.num is exist - process it [16:13:12]requested_item shift.opened is exist - process it [16:13:12]req_shift_opened [16:13:12]FM_GetShiftState [16:13:12]SAM_PROTO_GetShiftState [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 01 00 [16:13:12]Write to MH i2c: E2 08 00 C9 13 80 13 01 00 00 00 00 00 59 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 C9 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F1 [16:13:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetShiftState done [16:13:12]FM_GetShiftState done [16:13:12]req_shift_opened done [16:13:12]requested_item shift.open_date is exist - process it [16:13:12]req_shift_open_date [16:13:12]req_shift_open_date done [16:13:12]produce_requested_data done [16:13:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112346,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:13:12]process_action_free close_receipt [16:13:12]json_value_free [16:13:12]json_value_free done [16:13:12]process_json_proto returns [16:13:12]Send response to host [16:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112346,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:13:12]free response buf [16:13:12]execute_script done [16:13:12]execute_script returns [16:13:12]free content buf [16:13:12]Sock 9.Close socket [16:13:12]Sock 9.Thread stoped [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:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19: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:40]accept exits with 8 [16:20:40]New connection [16:20:40]New thread 3066682724 created [16:20:40]Thread 3066826084 joined [16:20:40]Waiting for new connection... [16:20:40] Sock 8.Parse request [16:20:40]Sock 8.Check first char [16:20:40]Sock 8.First char is OK [16:20:40]request: POST /json_proto HTTP/1.0 [16:20:40]Method: POST [16:20:40]URL: /json_proto [16:20:40]Method is POST - this is cgi request [16:20:40]url: /json_proto [16:20:40]query_string will be loaded in cgi processing [16:20:40]execute_cgi json_proto POST (null) [16:20:40]execute_cgi path=json_proto method=POST [16:20:40]POST find Content-Length [16:20:40]Host: 172.17.96.197:8080 [16:20:40]Content-Length: 619 [16:20:40]Content-Type: application/json [16:20:40] [16:20:40]POST finish read [16:20:40]Found Content-Length = 619 [16:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10431", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:40]execute_script... [16:20:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10431", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 2.000, "sum" : 276.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:40]POST & json_proto [16:20:40]process_json_proto [16:20:40]json parsed OK: [16:20:40]protocol is kg_v1.0 [16:20:40]action value=close_receipt [16:20:40]process_action close_receipt [16:20:40]cmd_close_receipt [16:20:40]MH_GetDate [16:20:40]Write to MH i2c: F0 00 00 CA 13 CC [16:20:40]Write i2c OK [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: F0 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: F0 09 00 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: F0 09 00 CA 13 00 59 02 1C 66 E0 85 7F 64 FA [16:20:40]GetLastDocTimeStamp 1713111189 [16:20:40]current date 1713111641 [16:20:40]FM_GetShiftState [16:20:40]SAM_PROTO_GetShiftState [16:20:40]wFMCommunicate request_size=4 [16:20:40]MH_SAM_APDU [16:20:40]CAPDU: 80 13 01 00 [16:20:40]Write to MH i2c: E2 08 00 CB 13 80 13 01 00 00 00 00 00 5B [16:20:40]Write i2c OK [16:20:40]MH_I2C_Read... [16:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:40]Read from MH i2c: E2 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: E2 0E 00 [16:20:40]MH_I2C_Read... [16:20:40]Read from MH i2c: E2 0E 00 CB 13 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F3 [16:20:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:20:40]wFMCommunicate OK [16:20:40]SAM_PROTO_GetShiftState done [16:20:40]FM_GetShiftState done [16:20:40]opened in 1713054696 [16:20:40]opened+sec_in_day 1713141096 [16:20:40]quantity*price = 27600 [16:20:40]sum+1 = 27601 [16:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.44 НДС 12% : 29.31 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 246 14.04.2024 16:20 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112347 ФПД: 119618624599859 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162041&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112347&fm=119618624599859&tin=02508201610067®Number=0000000000094237&sum=27600 0 [16:20:42]StoreToDocumentArchive [16:20:42]shift 357 fd 112347 [16:20:42]save to /storage/0357/doc_00112347 [16:20:42]save last doc name /storage/0357/doc_00112347 to /storage/kkm_last_doc_name [16:20:42]save OK [16:20:42]Clear old archive folders... [16:20:42]ProcessDocumentItem done err = 0, tmpTLVsize=272 [16:20:42]tlvbuf is 0017E2C0 [16:20:42]SAM_PROTO_ClearQueue [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 09 00 00 [16:20:42]Write to MH i2c: E2 08 00 D8 13 80 09 00 00 00 00 00 00 5D [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 D8 13 00 90 00 5F [16:20:42]RAPDU: 90 00 [16:20:42]wFMCommunicate OK [16:20:42]SAM_PROTO_ClearQueue done [16:20:42]KKMCreateOFDPacket [16:20:42]OFDProtocolAddRootSTLVToBuf [16:20:42]FM_MakeSignedData [16:20:42]FM_MakeSignedData [16:20:42]SAM_PROTO_SignData [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 0D 01 02 [16:20:42]Write to MH i2c: E2 08 00 D9 13 80 0D 01 02 00 00 00 00 65 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 D9 13 00 90 00 60 [16:20:42]RAPDU: 90 00 [16:20:42]wFMCommunicate OK [16:20:42]wFMCommunicate request_size=255 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 59 02 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [16:20:42]Write to MH i2c: E2 02 01 DA 13 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 59 02 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 46 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]OFD Sender: No OFD packet to send [16:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 DA 13 00 90 00 61 [16:20:42]RAPDU: 90 00 [16:20:42]wFMCommunicate OK [16:20:42]wFMCommunicate request_size=31 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 DB B6 01 00 35 04 06 00 6C CA E1 A0 B7 33 [16:20:42]Write to MH i2c: E2 22 00 DB 13 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 DB B6 01 00 35 04 06 00 6C CA E1 A0 B7 33 00 00 C4 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 03 00 DB 13 00 90 00 62 [16:20:42]RAPDU: 90 00 [16:20:42]wFMCommunicate OK [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 0D 03 02 [16:20:42]Write to MH i2c: E2 08 00 DC 13 80 0D 03 02 00 00 00 00 6A [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 0B 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 0B 00 DC 13 00 F9 6D EC FE 32 9E 6A 07 90 00 FC [16:20:42]RAPDU: F9 6D EC FE 32 9E 6A 07 90 00 [16:20:42]wFMCommunicate OK [16:20:42]SAM_PROTO_SignData done [16:20:42]FM_MakeSignedData done [16:20:42]CreateOFDProtocolMessage [16:20:42]wFMCommunicate request_size=4 [16:20:42]MH_SAM_APDU [16:20:42]CAPDU: 80 11 00 00 [16:20:42]Write to MH i2c: E2 08 00 DD 13 80 11 00 00 00 00 00 00 6A [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:42]Read from MH i2c: E2 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 17 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: E2 17 00 DD 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BB [16:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:20:42]wFMCommunicate OK [16:20:42]CreateOFDProtocolMessage done [16:20:42]OFDSenderStorePacket 112347 [16:20:42]StoreOFDPacket docnum=112347 [16:20:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 0D 65 1C 01 17 6E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 59 02 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DB B6 01 00 35 04 06 00 6C CA E1 A0 B7 33 F9 6D EC FE 32 9E 6A 07 [16:20:42]CheckFolder [16:20:42]dirname=/storage/ofd_packets [16:20:42]CheckFolder done [16:20:42]ProducePacketName [16:20:42]name=ofd_packets/00112347 [16:20:42]NVStorageSaveData ofd_packets/00112347 [16:20:42]File name is /storage/ofd_packets/00112347 [16:20:42]Write 322 bytes [16:20:42]NVStorageSaveData done [16:20:42]OFDSenderStorePacket done [16:20:42]KKMCreateOFDPacket done [16:20:42]NVStorageSaveData kkm_last_timestamp [16:20:42]File name is /storage/kkm_last_timestamp [16:20:42]Write 4 bytes [16:20:42]NVStorageSaveData done [16:20:42]ExternCall_PrintAddStr [16:20:42]wPrintStart [16:20:42]Write to MH i2c: 01 00 00 DE 13 F1 [16:20:42]Write i2c OK [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: 01 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: 01 07 00 [16:20:42]MH_I2C_Read... [16:20:42]Read from MH i2c: 01 07 00 DE 13 00 00 00 00 00 FF 0F 06 [16:20:42]RasterBufferAndPrint [16:20:42]line Счет N : (3)10431 [16:20:42]line ИНН: 02508201610067 [16:20:42]line Контрольно-Кассовый Чек [16:20:42]line ПРОДАЖА [16:20:42]line Товар: 4640030091607 [16:20:42]line Сигареты ESSE Exchange [16:20:42]line 2.000 * 138.00 [16:20:42]line = 276.00 [16:20:42]line НДС 12% НСП 1% [16:20:42]line > о реализуемом товаре [16:20:42]line ИТОГО: 276.00 [16:20:42]line НСП 1% : 2.44 [16:20:42]line НДС 12% : 29.31 [16:20:42]line Наличными: 276.00 [16:20:42]line Безнал.: 0.00 [16:20:42]line Место: АЗС № 47 "Партнер Нефть" [16:20:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:20:42]line СНО: Общий режим [16:20:42]line Чек 246 14.04.2024 16:20 [16:20:42]line Смена: 357 ФФД: 1.0 [16:20:42]line ЗНМ: 0300000138 [16:20:42]line РНМ: 0000000000094237 [16:20:42]line Версия ККМ: 001 [16:20:42]line ФМ: 0000000000875019 [16:20:42]line ФД: 112347 [16:20:42]line ФПД: 119618624599859 [16:20:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162041&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112347&fm=119618624599859&tin=02508201610067®Number=0000000000094237&sum=27600 [16:20:42]line 0 [16:20:42]OFD Sender: Processing packet 112347 [packets to send 71, broken 70] [16:20:42]ProducePacketName [16:20:42]name=ofd_packets/00112347 [16:20:42]OFD Sender: To server: pG, [16:20:42]CommunicateWithHost lk.salyk.kg:30040 [16:20:42]ConnectInit lk.salyk.kg [16:20:42]written 0, free lines is 4095 [16:20:43]Connected sock=11 [16:20:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 0D 65 1C 01 17 6E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 D0 6B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 59 02 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DB B6 01 00 35 04 06 00 6C CA E1 A0 B7 33 F9 6D EC FE 32 9E 6A 07 [16:20:43]Write to MH i2c: 01 00 00 06 14 1A [16:20:43]Write i2c OK [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: 01 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: 01 07 00 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: 01 07 00 06 14 00 00 00 00 00 13 0D 41 [16:20:43]RasterBufferAndPrint [16:20:43]line [16:20:43]line [16:20:43]line [16:20:43]line [16:20:43]line [16:20:43]written 0, free lines is 3354 [16:20:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0A D0 47 00 17 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 38 37 35 30 31 39 10 04 04 00 DB B6 01 00 F4 03 04 00 E4 A9 1B 66 B6 04 01 00 00 34 B2 DE 9A 4C 63 63 51 [16:20:43]CommunicateWithHost err = 0 [16:20:43]CheckOFDResponse [16:20:43]1017 (14) - 77093643461234 [16:20:43]1041 (16) - 0000000000875019 [16:20:43]1040 (4) - 112347 [16:20:43]1012 (4) - 14.04.2024 10:03 [16:20:43]1206 (1) - 0 [16:20:43]OFD Sender: Remove packet 112347 [16:20:43]ProducePacketName [16:20:43]name=ofd_packets/00112347 [16:20:43]NVStorageDeleteData [16:20:43]MH_Cut [16:20:43]Write to MH i2c: D1 01 00 0D 14 01 F3 [16:20:43]Write i2c OK [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: D1 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: D1 01 00 [16:20:43]MH_I2C_Read... [16:20:43]Read from MH i2c: D1 01 00 0D 14 00 F2 [16:20:43]Write to MH i2c: 01 00 00 0E 14 22 [16:20:43]Write i2c OK [16:20:43]MH_I2C_Read... [16:20:43]OFD Sender: No OFD packet to send [16:20:44]*** Cut start [16:20:44]*** Partial cut [16:20:44]*** CUTSNS_PIN = 1 [16:20:44]*** CUTSNS_PIN = 0 [16:20:44]*** Brake cut motor [16:20:44]Read from MH i2c: 01 [16:20:44]MH_I2C_Read... [16:20:44]*** Stop cut motor [16:20:44]*** Cut end [16:20:44]Read from MH i2c: 01 07 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: 01 07 00 0E 14 00 00 00 00 00 FF 0F 37 [16:20:44]process_action close_receipt done [16:20:44]requested_data is exist [16:20:44]produce_requested_data [16:20:44]requested_item fm.sn is exist - process it [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 11 00 00 [16:20:44]Write to MH i2c: E2 08 00 0F 14 80 11 00 00 00 00 00 00 9D [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 17 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 17 00 0F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EE [16:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:20:44]wFMCommunicate OK [16:20:44]requested_item fd.num is exist - process it [16:20:44]SAM_PROTO_GetFieldsCounters [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 13 00 00 [16:20:44]Write to MH i2c: E2 08 00 10 14 80 13 00 00 00 00 00 00 A0 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 62 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 62 00 10 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [16:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:20:44]wFMCommunicate OK [16:20:44]SAM_PROTO_GetFieldsCounters done [16:20:44]requested_item shift.num is exist - process it [16:20:44]requested_item shift.opened is exist - process it [16:20:44]req_shift_opened [16:20:44]FM_GetShiftState [16:20:44]SAM_PROTO_GetShiftState [16:20:44]wFMCommunicate request_size=4 [16:20:44]MH_SAM_APDU [16:20:44]CAPDU: 80 13 01 00 [16:20:44]Write to MH i2c: E2 08 00 11 14 80 13 01 00 00 00 00 00 A2 [16:20:44]Write i2c OK [16:20:44]MH_I2C_Read... [16:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:44]Read from MH i2c: E2 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 0E 00 [16:20:44]MH_I2C_Read... [16:20:44]Read from MH i2c: E2 0E 00 11 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3A [16:20:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:20:44]wFMCommunicate OK [16:20:44]SAM_PROTO_GetShiftState done [16:20:44]FM_GetShiftState done [16:20:44]req_shift_opened done [16:20:44]requested_item shift.open_date is exist - process it [16:20:44]req_shift_open_date [16:20:44]req_shift_open_date done [16:20:44]produce_requested_data done [16:20:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112347,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:20:44]process_action_free close_receipt [16:20:44]json_value_free [16:20:44]json_value_free done [16:20:44]process_json_proto returns [16:20:44]Send response to host [16:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112347,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:20:44]free response buf [16:20:44]execute_script done [16:20:44]execute_script returns [16:20:44]free content buf [16:20:44]Sock 8.Close socket [16:20:44]Sock 8.Thread stoped [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:39]OFD Sender: No OFD packet to send [16:22:44]OFD Sender: No OFD packet to send [16:22:49]OFD Sender: No OFD packet to send [16:22:54]OFD Sender: No OFD packet to send [16:22:59]OFD Sender: No OFD packet to send [16:23:04]OFD Sender: No OFD packet to send [16:23:09]OFD Sender: No OFD packet to send [16:23:14]OFD Sender: No OFD packet to send [16:23:19]OFD Sender: No OFD packet to send [16:23:24]OFD Sender: No OFD packet to send [16:23:29]OFD Sender: No OFD packet to send [16:23:34]OFD Sender: No OFD packet to send [16:23:39]OFD Sender: No OFD packet to send [16:23:44]OFD Sender: No OFD packet to send [16:23:45]accept exits with 9 [16:23:45]New connection [16:23:45]New thread 3066826084 created [16:23:45]Thread 3066682724 joined [16:23:45]Waiting for new connection... [16:23:45] Sock 9.Parse request [16:23:45]Sock 9.Check first char [16:23:45]Sock 9.First char is OK [16:23:45]request: POST /json_proto HTTP/1.0 [16:23:45]Method: POST [16:23:45]URL: /json_proto [16:23:45]Method is POST - this is cgi request [16:23:45]url: /json_proto [16:23:45]query_string will be loaded in cgi processing [16:23:45]execute_cgi json_proto POST (null) [16:23:45]execute_cgi path=json_proto method=POST [16:23:45]POST find Content-Length [16:23:45]Host: 172.17.96.197:8080 [16:23:45]Content-Length: 681 [16:23:45]Content-Type: application/json [16:23:45] [16:23:45]POST finish read [16:23:45]Found Content-Length = 681 [16:23:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [16:23:45]execute_script... [16:23: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)48658", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [16:23:45]POST & json_proto [16:23:45]process_json_proto [16:23:45]json parsed OK: [16:23:45]protocol is kg_v1.0 [16:23:45]action value=close_receipt [16:23:45]process_action close_receipt [16:23:45]cmd_close_receipt [16:23:45]MH_GetDate [16:23:45]Write to MH i2c: F0 00 00 12 14 15 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: F0 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: F0 09 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: F0 09 00 12 14 00 12 03 1C 66 E0 85 7F 64 FD [16:23:45]GetLastDocTimeStamp 1713111641 [16:23:45]current date 1713111826 [16:23:45]FM_GetShiftState [16:23:45]SAM_PROTO_GetShiftState [16:23:45]wFMCommunicate request_size=4 [16:23:45]MH_SAM_APDU [16:23:45]CAPDU: 80 13 01 00 [16:23:45]Write to MH i2c: E2 08 00 13 14 80 13 01 00 00 00 00 00 A4 [16:23:45]Write i2c OK [16:23:45]MH_I2C_Read... [16:23:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:45]Read from MH i2c: E2 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0E 00 [16:23:45]MH_I2C_Read... [16:23:45]Read from MH i2c: E2 0E 00 13 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [16:23:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:23:45]wFMCommunicate OK [16:23:45]SAM_PROTO_GetShiftState done [16:23:45]FM_GetShiftState done [16:23:45]opened in 1713054696 [16:23:45]opened+sec_in_day 1713141096 [16:23:45]quantity*price = 100050 [16:23:45]sum+1 = 100051 [16:23:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 247 14.04.2024 16:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112348 ФПД: 181329440034101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162346&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112348&fm=181329440034101&tin=02508201610067®Number=0000000000094237&sum=100000 [16:23:46]StoreToDocumentArchive [16:23:46]shift 357 fd 112348 [16:23:46]save to /storage/0357/doc_00112348 [16:23:46]save last doc name /storage/0357/doc_00112348 to /storage/kkm_last_doc_name [16:23:46]save OK [16:23:46]Clear old archive folders... [16:23:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:46]tlvbuf is 0018AA30 [16:23:46]SAM_PROTO_ClearQueue [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 09 00 00 [16:23:46]Write to MH i2c: E2 08 00 20 14 80 09 00 00 00 00 00 00 A6 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 03 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 03 00 20 14 00 90 00 A8 [16:23:46]RAPDU: 90 00 [16:23:46]wFMCommunicate OK [16:23:46]SAM_PROTO_ClearQueue done [16:23:46]KKMCreateOFDPacket [16:23:46]OFDProtocolAddRootSTLVToBuf [16:23:46]FM_MakeSignedData [16:23:46]FM_MakeSignedData [16:23:46]SAM_PROTO_SignData [16:23:46]wFMCommunicate request_size=4 [16:23:46]MH_SAM_APDU [16:23:46]CAPDU: 80 0D 01 02 [16:23:46]Write to MH i2c: E2 08 00 21 14 80 0D 01 02 00 00 00 00 AE [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 [16:23:46]MH_I2C_Read... [16:23:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:46]Read from MH i2c: E2 03 00 [16:23:46]MH_I2C_Read... [16:23:46]Read from MH i2c: E2 03 00 21 14 00 90 00 A9 [16:23:46]RAPDU: 90 00 [16:23:46]wFMCommunicate OK [16:23:46]wFMCommunicate request_size=255 [16:23:46]MH_SAM_APDU [16:23: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 F7 00 00 00 F4 03 04 00 12 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DC B6 01 00 35 04 06 00 A4 [16:23:46]Write to MH i2c: E2 02 01 22 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 F7 00 00 00 F4 03 04 00 12 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DC B6 01 00 35 04 06 00 A4 00 00 39 [16:23:46]Write i2c OK [16:23:46]MH_I2C_Read... [16:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:47]Read from MH i2c: E2 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 03 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 03 00 22 14 00 90 00 AA [16:23:47]RAPDU: 90 00 [16:23:47]wFMCommunicate OK [16:23:47]wFMCommunicate request_size=10 [16:23:47]MH_SAM_APDU [16:23:47]CAPDU: 80 0D 02 02 05 EB 0C DC 4D 35 [16:23:47]Write to MH i2c: E2 0D 00 23 14 80 0D 02 02 05 00 EB 0C DC 4D 35 00 00 10 [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:47]Read from MH i2c: E2 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 03 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 03 00 23 14 00 90 00 AB [16:23:47]RAPDU: 90 00 [16:23:47]wFMCommunicate OK [16:23:47]wFMCommunicate request_size=4 [16:23:47]MH_SAM_APDU [16:23:47]CAPDU: 80 0D 03 02 [16:23:47]Write to MH i2c: E2 08 00 24 14 80 0D 03 02 00 00 00 00 B3 [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:47]Read from MH i2c: E2 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 0B 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 0B 00 24 14 00 1A 75 F9 4E C7 B9 EE C6 90 00 BE [16:23:47]RAPDU: 1A 75 F9 4E C7 B9 EE C6 90 00 [16:23:47]wFMCommunicate OK [16:23:47]SAM_PROTO_SignData done [16:23:47]FM_MakeSignedData done [16:23:47]CreateOFDProtocolMessage [16:23:47]wFMCommunicate request_size=4 [16:23:47]MH_SAM_APDU [16:23:47]CAPDU: 80 11 00 00 [16:23:47]Write to MH i2c: E2 08 00 25 14 80 11 00 00 00 00 00 00 B3 [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:47]Read from MH i2c: E2 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 17 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: E2 17 00 25 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 04 [16:23:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:23:47]wFMCommunicate OK [16:23:47]CreateOFDProtocolMessage done [16:23:47]OFDSenderStorePacket 112348 [16:23:47]StoreOFDPacket docnum=112348 [16:23:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8F 18 07 01 BE 18 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 F7 00 00 00 F4 03 04 00 12 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DC B6 01 00 35 04 06 00 A4 EB 0C DC 4D 35 1A 75 F9 4E C7 B9 EE C6 [16:23:47]CheckFolder [16:23:47]dirname=/storage/ofd_packets [16:23:47]CheckFolder done [16:23:47]ProducePacketName [16:23:47]name=ofd_packets/00112348 [16:23:47]NVStorageSaveData ofd_packets/00112348 [16:23:47]File name is /storage/ofd_packets/00112348 [16:23:47]Write 301 bytes [16:23:47]NVStorageSaveData done [16:23:47]OFDSenderStorePacket done [16:23:47]KKMCreateOFDPacket done [16:23:47]NVStorageSaveData kkm_last_timestamp [16:23:47]File name is /storage/kkm_last_timestamp [16:23:47]Write 4 bytes [16:23:47]NVStorageSaveData done [16:23:47]ExternCall_PrintAddStr [16:23:47]wPrintStart [16:23:47]Write to MH i2c: 01 00 00 26 14 3A [16:23:47]Write i2c OK [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: 01 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: 01 07 00 [16:23:47]MH_I2C_Read... [16:23:47]Read from MH i2c: 01 07 00 26 14 00 00 00 00 00 FF 0F 4F [16:23:47]RasterBufferAndPrint [16:23:47]line Счет N : (1)48658 [16:23:47]line ИНН: 02508201610067 [16:23:47]line Контрольно-Кассовый Чек [16:23:47]line ПРОДАЖА [16:23:47]line ТРК (МРК, ГНК) : 12 [16:23:47]line Товар: 2710124500 [16:23:47]line Аи-95-К-5 [16:23:47]line 13.800 * 72.50 [16:23:47]line = 1000.50 [16:23:47]line НДС 12% НСП 1% [16:23:47]line > о реализуемом товаре [16:23:47]line ОКРУГЛЕНИЕ: -0.50 [16:23:47]line ИТОГО: 1000.00 [16:23:47]line Внесено: 1000.00 [16:23:47]line СДАЧА: 0.00 [16:23:47]line НСП 1% : 8.85 [16:23:47]line НДС 12% : 106.25 [16:23:47]line Наличными: 1000.00 [16:23:47]line Безнал.: 0.00 [16:23:47]line Место: АЗС № 47 "Партнер Нефть" [16:23:47]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:23:47]line СНО: Общий режим [16:23:47]line Чек 247 14.04.2024 16:23 [16:23:47]line Смена: 357 ФФД: 1.0 [16:23:47]line ЗНМ: 0300000138 [16:23:47]line РНМ: 0000000000094237 [16:23:47]line Версия ККМ: 001 [16:23:47]line ФМ: 0000000000875019 [16:23:47]line ФД: 112348 [16:23:47]line ФПД: 181329440034101 [16:23:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162346&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112348&fm=181329440034101&tin=02508201610067®Number=0000000000094237&sum=100000 [16:23:47]OFD Sender: Processing packet 112348 [packets to send 71, broken 70] [16:23:47]ProducePacketName [16:23:47]name=ofd_packets/00112348 [16:23:47]OFD Sender: To server: pG, [16:23:47]CommunicateWithHost lk.salyk.kg:30040 [16:23:47]ConnectInit lk.salyk.kg [16:23:47]written 0, free lines is 4095 [16:23:47]Connected sock=10 [16:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8F 18 07 01 BE 18 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 F7 00 00 00 F4 03 04 00 12 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DC B6 01 00 35 04 06 00 A4 EB 0C DC 4D 35 1A 75 F9 4E C7 B9 EE C6 [16:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FF C8 47 00 E8 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 38 37 35 30 31 39 10 04 04 00 DC B6 01 00 F4 03 04 00 9D AA 1B 66 B6 04 01 00 00 34 43 49 35 F4 63 6C 74 [16:23:48]CommunicateWithHost err = 0 [16:23:48]CheckOFDResponse [16:23:48]1017 (14) - 77093643461234 [16:23:48]1041 (16) - 0000000000875019 [16:23:48]1040 (4) - 112348 [16:23:48]1012 (4) - 14.04.2024 10:06 [16:23:48]1206 (1) - 0 [16:23:48]OFD Sender: Remove packet 112348 [16:23:48]ProducePacketName [16:23:48]name=ofd_packets/00112348 [16:23:48]NVStorageDeleteData [16:23:48]Write to MH i2c: 01 00 00 51 14 65 [16:23:48]Write i2c OK [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: 01 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: 01 07 00 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: 01 07 00 51 14 00 00 00 00 00 E3 0C 5B [16:23:48]RasterBufferAndPrint [16:23:48]line [16:23:48]line [16:23:48]line [16:23:48]line [16:23:48]line [16:23:48]written 0, free lines is 3305 [16:23:48]MH_Cut [16:23:48]Write to MH i2c: D1 01 00 58 14 01 3E [16:23:48]Write i2c OK [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: D1 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: D1 01 00 [16:23:48]MH_I2C_Read... [16:23:48]Read from MH i2c: D1 01 00 58 14 00 3D [16:23:48]Write to MH i2c: 01 00 00 59 14 6D [16:23:48]Write i2c OK [16:23:48]MH_I2C_Read... [16:23:48]OFD Sender: No OFD packet to send [16:23:48]*** Cut start [16:23:48]*** Partial cut [16:23:48]*** CUTSNS_PIN = 1 [16:23:48]*** CUTSNS_PIN = 0 [16:23:49]*** Brake cut motor [16:23:49]Read from MH i2c: 01 [16:23:49]MH_I2C_Read... [16:23:49]*** Stop cut motor [16:23:49]*** Cut end [16:23:49]Read from MH i2c: 01 07 00 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: 01 07 00 59 14 00 00 00 00 00 FF 0F 82 [16:23:49]process_action close_receipt done [16:23:49]requested_data is exist [16:23:49]produce_requested_data [16:23:49]requested_item fm.sn is exist - process it [16:23:49]wFMCommunicate request_size=4 [16:23:49]MH_SAM_APDU [16:23:49]CAPDU: 80 11 00 00 [16:23:49]Write to MH i2c: E2 08 00 5A 14 80 11 00 00 00 00 00 00 E8 [16:23:49]Write i2c OK [16:23:49]MH_I2C_Read... [16:23:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:49]Read from MH i2c: E2 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 17 00 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 17 00 5A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 39 [16:23:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:23:49]wFMCommunicate OK [16:23:49]requested_item fd.num is exist - process it [16:23:49]SAM_PROTO_GetFieldsCounters [16:23:49]wFMCommunicate request_size=4 [16:23:49]MH_SAM_APDU [16:23:49]CAPDU: 80 13 00 00 [16:23:49]Write to MH i2c: E2 08 00 5B 14 80 13 00 00 00 00 00 00 EB [16:23:49]Write i2c OK [16:23:49]MH_I2C_Read... [16:23:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:49]Read from MH i2c: E2 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 62 00 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 62 00 5B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [16:23:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:49]wFMCommunicate OK [16:23:49]SAM_PROTO_GetFieldsCounters done [16:23:49]requested_item shift.num is exist - process it [16:23:49]requested_item shift.opened is exist - process it [16:23:49]req_shift_opened [16:23:49]FM_GetShiftState [16:23:49]SAM_PROTO_GetShiftState [16:23:49]wFMCommunicate request_size=4 [16:23:49]MH_SAM_APDU [16:23:49]CAPDU: 80 13 01 00 [16:23:49]Write to MH i2c: E2 08 00 5C 14 80 13 01 00 00 00 00 00 ED [16:23:49]Write i2c OK [16:23:49]MH_I2C_Read... [16:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:49]Read from MH i2c: E2 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 0E 00 [16:23:49]MH_I2C_Read... [16:23:49]Read from MH i2c: E2 0E 00 5C 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 85 [16:23:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:23:49]wFMCommunicate OK [16:23:49]SAM_PROTO_GetShiftState done [16:23:49]FM_GetShiftState done [16:23:49]req_shift_opened done [16:23:49]requested_item shift.open_date is exist - process it [16:23:49]req_shift_open_date [16:23:49]req_shift_open_date done [16:23:49]produce_requested_data done [16:23:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112348,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:23:49]process_action_free close_receipt [16:23:49]json_value_free [16:23:49]json_value_free done [16:23:49]process_json_proto returns [16:23:49]Send response to host [16:23:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112348,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:23:49]free response buf [16:23:49]execute_script done [16:23:49]execute_script returns [16:23:49]free content buf [16:23:49]Sock 9.Close socket [16:23:49]Sock 9.Thread stoped [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:56]accept exits with 8 [16:24:56]New connection [16:24:56]New thread 3066682724 created [16:24:56]Thread 3066826084 joined [16:24:56]Waiting for new connection... [16:24:56] Sock 8.Parse request [16:24:56]Sock 8.Check first char [16:24:56]Sock 8.First char is OK [16:24:56]request: POST /json_proto HTTP/1.0 [16:24:56]Method: POST [16:24:56]URL: /json_proto [16:24:56]Method is POST - this is cgi request [16:24:56]url: /json_proto [16:24:56]query_string will be loaded in cgi processing [16:24:56]execute_cgi json_proto POST (null) [16:24:56]execute_cgi path=json_proto method=POST [16:24:56]POST find Content-Length [16:24:56]Host: 172.17.96.197:8080 [16:24:56]Content-Length: 676 [16:24:56]Content-Type: application/json [16:24:56] [16:24:56]POST finish read [16:24:56]Found Content-Length = 676 [16:24:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "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" ] } } [16:24:56]execute_script... [16:24: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)48659", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 1.560, "sum" : 100.31, "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" ] } } [16:24:56]POST & json_proto [16:24:56]process_json_proto [16:24:56]json parsed OK: [16:24:56]protocol is kg_v1.0 [16:24:56]action value=close_receipt [16:24:56]process_action close_receipt [16:24:56]cmd_close_receipt [16:24:56]MH_GetDate [16:24:56]Write to MH i2c: F0 00 00 5D 14 60 [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: F0 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: F0 09 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: F0 09 00 5D 14 00 59 03 1C 66 E0 85 7F 64 8F [16:24:56]GetLastDocTimeStamp 1713111826 [16:24:56]current date 1713111897 [16:24:56]FM_GetShiftState [16:24:56]SAM_PROTO_GetShiftState [16:24:56]wFMCommunicate request_size=4 [16:24:56]MH_SAM_APDU [16:24:56]CAPDU: 80 13 01 00 [16:24:56]Write to MH i2c: E2 08 00 5E 14 80 13 01 00 00 00 00 00 EF [16:24:56]Write i2c OK [16:24:56]MH_I2C_Read... [16:24:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:56]Read from MH i2c: E2 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 [16:24:56]MH_I2C_Read... [16:24:56]Read from MH i2c: E2 0E 00 5E 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [16:24:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:24:56]wFMCommunicate OK [16:24:56]SAM_PROTO_GetShiftState done [16:24:56]FM_GetShiftState done [16:24:56]opened in 1713054696 [16:24:56]opened+sec_in_day 1713141096 [16:24:56]quantity*price = 10030 [16:24:56]sum+1 = 10032 [16:24:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.65 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 248 14.04.2024 16:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112349 ФПД: 165060006364224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162457&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112349&fm=165060006364224&tin=02508201610067®Number=0000000000094237&sum=10000 [16:24:57]StoreToDocumentArchive [16:24:57]shift 357 fd 112349 [16:24:57]save to /storage/0357/doc_00112349 [16:24:57]save last doc name /storage/0357/doc_00112349 to /storage/kkm_last_doc_name [16:24:57]save OK [16:24:57]Clear old archive folders... [16:24:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:24:57]tlvbuf is 001B81F0 [16:24:57]SAM_PROTO_ClearQueue [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 09 00 00 [16:24:57]Write to MH i2c: E2 08 00 6B 14 80 09 00 00 00 00 00 00 F1 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 6B 14 00 90 00 F3 [16:24:57]RAPDU: 90 00 [16:24:57]wFMCommunicate OK [16:24:57]SAM_PROTO_ClearQueue done [16:24:57]KKMCreateOFDPacket [16:24:57]OFDProtocolAddRootSTLVToBuf [16:24:57]FM_MakeSignedData [16:24:57]FM_MakeSignedData [16:24:57]SAM_PROTO_SignData [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 0D 01 02 [16:24:57]Write to MH i2c: E2 08 00 6C 14 80 0D 01 02 00 00 00 00 F9 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 6C 14 00 90 00 F4 [16:24:57]RAPDU: 90 00 [16:24:57]wFMCommunicate OK [16:24:57]wFMCommunicate request_size=255 [16:24:57]MH_SAM_APDU [16:24:57]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 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 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 29 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 F8 00 00 00 F4 03 04 00 59 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DD B6 01 00 35 04 06 00 96 [16:24:57]Write to MH i2c: E2 02 01 6D 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 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 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 29 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 F8 00 00 00 F4 03 04 00 59 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DD B6 01 00 35 04 06 00 96 00 00 06 [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:57]Read from MH i2c: E2 03 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 6D 14 00 90 00 F5 [16:24:57]RAPDU: 90 00 [16:24:57]wFMCommunicate OK [16:24:57]wFMCommunicate request_size=10 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 0D 02 02 05 1F 07 0B C4 40 [16:24:57]Write to MH i2c: E2 0D 00 6E 14 80 0D 02 02 05 00 1F 07 0B C4 40 00 00 3B [16:24:57]Write i2c OK [16:24:57]MH_I2C_Read... [16:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:57]Read from MH i2c: E2 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 [16:24:57]MH_I2C_Read... [16:24:57]Read from MH i2c: E2 03 00 6E 14 00 90 00 F6 [16:24:57]RAPDU: 90 00 [16:24:57]wFMCommunicate OK [16:24:57]wFMCommunicate request_size=4 [16:24:57]MH_SAM_APDU [16:24:57]CAPDU: 80 0D 03 02 [16:24:57]Write to MH i2c: E2 08 00 6F 14 80 0D 03 02 00 00 00 00 FE [16:24:57]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:58]Read from MH i2c: E2 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0B 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 0B 00 6F 14 00 20 D8 DF EB 98 D7 E3 21 90 00 34 [16:24:58]RAPDU: 20 D8 DF EB 98 D7 E3 21 90 00 [16:24:58]wFMCommunicate OK [16:24:58]SAM_PROTO_SignData done [16:24:58]FM_MakeSignedData done [16:24:58]CreateOFDProtocolMessage [16:24:58]wFMCommunicate request_size=4 [16:24:58]MH_SAM_APDU [16:24:58]CAPDU: 80 11 00 00 [16:24:58]Write to MH i2c: E2 08 00 70 14 80 11 00 00 00 00 00 00 FE [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:58]Read from MH i2c: E2 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 17 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: E2 17 00 70 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [16:24:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:24:58]wFMCommunicate OK [16:24:58]CreateOFDProtocolMessage done [16:24:58]OFDSenderStorePacket 112349 [16:24:58]StoreOFDPacket docnum=112349 [16:24:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CD 18 07 01 A5 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 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 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 29 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 F8 00 00 00 F4 03 04 00 59 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DD B6 01 00 35 04 06 00 96 1F 07 0B C4 40 20 D8 DF EB 98 D7 E3 21 [16:24:58]CheckFolder [16:24:58]dirname=/storage/ofd_packets [16:24:58]CheckFolder done [16:24:58]ProducePacketName [16:24:58]name=ofd_packets/00112349 [16:24:58]NVStorageSaveData ofd_packets/00112349 [16:24:58]File name is /storage/ofd_packets/00112349 [16:24:58]Write 301 bytes [16:24:58]NVStorageSaveData done [16:24:58]OFDSenderStorePacket done [16:24:58]KKMCreateOFDPacket done [16:24:58]NVStorageSaveData kkm_last_timestamp [16:24:58]File name is /storage/kkm_last_timestamp [16:24:58]Write 4 bytes [16:24:58]NVStorageSaveData done [16:24:58]ExternCall_PrintAddStr [16:24:58]wPrintStart [16:24:58]Write to MH i2c: 01 00 00 71 14 85 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 07 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 07 00 71 14 00 00 00 00 00 FF 0F 9A [16:24:58]RasterBufferAndPrint [16:24:58]line Счет N : (1)48659 [16:24:58]line ИНН: 02508201610067 [16:24:58]line Контрольно-Кассовый Чек [16:24:58]line ПРОДАЖА [16:24:58]line ТРК (МРК, ГНК) : 21 [16:24:58]line Товар: 2710124130 [16:24:58]line Аи-92-К-5 [16:24:58]line 1.560 * 64.30 [16:24:58]line = 100.31 [16:24:58]line НДС 12% НСП 1% [16:24:58]line > о реализуемом товаре [16:24:58]line ОКРУГЛЕНИЕ: -0.31 [16:24:58]line ИТОГО: 100.00 [16:24:58]line Внесено: 100.00 [16:24:58]line СДАЧА: 0.00 [16:24:58]line НСП 1% : 0.89 [16:24:58]line НДС 12% : 10.65 [16:24:58]line Наличными: 100.00 [16:24:58]line Безнал.: 0.00 [16:24:58]line Место: АЗС № 47 "Партнер Нефть" [16:24:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:24:58]line СНО: Общий режим [16:24:58]line Чек 248 14.04.2024 16:24 [16:24:58]line Смена: 357 ФФД: 1.0 [16:24:58]line ЗНМ: 0300000138 [16:24:58]line РНМ: 0000000000094237 [16:24:58]line Версия ККМ: 001 [16:24:58]line ФМ: 0000000000875019 [16:24:58]line ФД: 112349 [16:24:58]line ФПД: 165060006364224 [16:24:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162457&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112349&fm=165060006364224&tin=02508201610067®Number=0000000000094237&sum=10000 [16:24:58]OFD Sender: Processing packet 112349 [packets to send 71, broken 70] [16:24:58]ProducePacketName [16:24:58]name=ofd_packets/00112349 [16:24:58]OFD Sender: To server: pG, [16:24:58]CommunicateWithHost lk.salyk.kg:30040 [16:24:58]ConnectInit lk.salyk.kg [16:24:58]written 0, free lines is 4095 [16:24:58]Connected sock=10 [16:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CD 18 07 01 A5 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 18 06 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2F 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 29 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 F8 00 00 00 F4 03 04 00 59 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DD B6 01 00 35 04 06 00 96 1F 07 0B C4 40 20 D8 DF EB 98 D7 E3 21 [16:24:58]Write to MH i2c: 01 00 00 9C 14 B0 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 07 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: 01 07 00 9C 14 00 00 00 00 00 E4 0C A7 [16:24:58]RasterBufferAndPrint [16:24:58]line [16:24:58]line [16:24:58]line [16:24:58]line [16:24:58]line [16:24:58]written 0, free lines is 3306 [16:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 54 FF 47 00 43 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DD B6 01 00 F4 03 04 00 E4 AA 1B 66 B6 04 01 00 00 0B 73 65 5C D6 D6 A8 91 [16:24:58]CommunicateWithHost err = 0 [16:24:58]CheckOFDResponse [16:24:58]1017 (14) - 77093643461234 [16:24:58]1041 (16) - 0000000000875019 [16:24:58]1040 (4) - 112349 [16:24:58]1012 (4) - 14.04.2024 10:07 [16:24:58]1206 (1) - 0 [16:24:58]OFD Sender: Remove packet 112349 [16:24:58]ProducePacketName [16:24:58]name=ofd_packets/00112349 [16:24:58]NVStorageDeleteData [16:24:58]MH_Cut [16:24:58]Write to MH i2c: D1 01 00 A3 14 01 89 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: D1 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: D1 01 00 [16:24:58]MH_I2C_Read... [16:24:58]Read from MH i2c: D1 01 00 A3 14 00 88 [16:24:58]Write to MH i2c: 01 00 00 A4 14 B8 [16:24:58]Write i2c OK [16:24:58]MH_I2C_Read... [16:24:59]OFD Sender: No OFD packet to send [16:24:59]*** Cut start [16:24:59]*** Partial cut [16:24:59]*** CUTSNS_PIN = 1 [16:24:59]*** CUTSNS_PIN = 0 [16:24:59]*** Brake cut motor [16:25:00]Read from MH i2c: 01 [16:25:00]MH_I2C_Read... [16:25:00]*** Stop cut motor [16:25:00]*** Cut end [16:25:00]Read from MH i2c: 01 07 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: 01 07 00 A4 14 00 00 00 00 00 FF 0F CD [16:25:00]process_action close_receipt done [16:25:00]requested_data is exist [16:25:00]produce_requested_data [16:25:00]requested_item fm.sn is exist - process it [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 11 00 00 [16:25:00]Write to MH i2c: E2 08 00 A5 14 80 11 00 00 00 00 00 00 33 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 17 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 17 00 A5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 84 [16:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:25:00]wFMCommunicate OK [16:25:00]requested_item fd.num is exist - process it [16:25:00]SAM_PROTO_GetFieldsCounters [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 13 00 00 [16:25:00]Write to MH i2c: E2 08 00 A6 14 80 13 00 00 00 00 00 00 36 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 62 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 62 00 A6 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [16:25:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:00]wFMCommunicate OK [16:25:00]SAM_PROTO_GetFieldsCounters done [16:25:00]requested_item shift.num is exist - process it [16:25:00]requested_item shift.opened is exist - process it [16:25:00]req_shift_opened [16:25:00]FM_GetShiftState [16:25:00]SAM_PROTO_GetShiftState [16:25:00]wFMCommunicate request_size=4 [16:25:00]MH_SAM_APDU [16:25:00]CAPDU: 80 13 01 00 [16:25:00]Write to MH i2c: E2 08 00 A7 14 80 13 01 00 00 00 00 00 38 [16:25:00]Write i2c OK [16:25:00]MH_I2C_Read... [16:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:00]Read from MH i2c: E2 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 0E 00 [16:25:00]MH_I2C_Read... [16:25:00]Read from MH i2c: E2 0E 00 A7 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D0 [16:25:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:25:00]wFMCommunicate OK [16:25:00]SAM_PROTO_GetShiftState done [16:25:00]FM_GetShiftState done [16:25:00]req_shift_opened done [16:25:00]requested_item shift.open_date is exist - process it [16:25:00]req_shift_open_date [16:25:00]req_shift_open_date done [16:25:00]produce_requested_data done [16:25:00]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112349,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:25:00]process_action_free close_receipt [16:25:00]json_value_free [16:25:00]json_value_free done [16:25:00]process_json_proto returns [16:25:00]Send response to host [16:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112349,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:25:00]free response buf [16:25:00]execute_script done [16:25:00]execute_script returns [16:25:00]free content buf [16:25:00]Sock 8.Close socket [16:25:00]Sock 8.Thread stoped [16:25:04]OFD Sender: No OFD packet to send [16:25:09]OFD Sender: No OFD packet to send [16:25:14]OFD Sender: No OFD packet to send [16:25:19]OFD Sender: No OFD packet to send [16:25:24]OFD Sender: No OFD packet to send [16:25:28]accept exits with 9 [16:25:28]New connection [16:25:28]New thread 3066826084 created [16:25:28]Thread 3066682724 joined [16:25:28]Waiting for new connection... [16:25:28] Sock 9.Parse request [16:25:28]Sock 9.Check first char [16:25:28]Sock 9.First char is OK [16:25:28]request: POST /json_proto HTTP/1.0 [16:25:28]Method: POST [16:25:28]URL: /json_proto [16:25:28]Method is POST - this is cgi request [16:25:28]url: /json_proto [16:25:28]query_string will be loaded in cgi processing [16:25:28]execute_cgi json_proto POST (null) [16:25:28]execute_cgi path=json_proto method=POST [16:25:28]POST find Content-Length [16:25:28]Host: 172.17.96.197:8080 [16:25:28]Content-Length: 676 [16:25:28]Content-Type: application/json [16:25:28] [16:25:28]POST finish read [16:25:28]Found Content-Length = 676 [16:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48660", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:25:28]execute_script... [16:25: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)48660", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [16:25:28]POST & json_proto [16:25:28]process_json_proto [16:25:28]json parsed OK: [16:25:28]protocol is kg_v1.0 [16:25:28]action value=close_receipt [16:25:28]process_action close_receipt [16:25:28]cmd_close_receipt [16:25:28]MH_GetDate [16:25:28]Write to MH i2c: F0 00 00 A8 14 AB [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 09 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: F0 09 00 A8 14 00 79 03 1C 66 E0 85 7F 64 FA [16:25:28]GetLastDocTimeStamp 1713111897 [16:25:28]current date 1713111929 [16:25:28]FM_GetShiftState [16:25:28]SAM_PROTO_GetShiftState [16:25:28]wFMCommunicate request_size=4 [16:25:28]MH_SAM_APDU [16:25:28]CAPDU: 80 13 01 00 [16:25:28]Write to MH i2c: E2 08 00 A9 14 80 13 01 00 00 00 00 00 3A [16:25:28]Write i2c OK [16:25:28]MH_I2C_Read... [16:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:28]Read from MH i2c: E2 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 [16:25:28]MH_I2C_Read... [16:25:28]Read from MH i2c: E2 0E 00 A9 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D2 [16:25:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:25:28]wFMCommunicate OK [16:25:28]SAM_PROTO_GetShiftState done [16:25:28]FM_GetShiftState done [16:25:28]opened in 1713054696 [16:25:28]opened+sec_in_day 1713141096 [16:25:28]quantity*price = 50025 [16:25:28]sum+1 = 50026 [16:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 249 14.04.2024 16:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112350 ФПД: 103582881589877 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162529&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112350&fm=103582881589877&tin=02508201610067®Number=0000000000094237&sum=50000 [16:25:29]StoreToDocumentArchive [16:25:29]shift 357 fd 112350 [16:25:29]save to /storage/0357/doc_00112350 [16:25:29]save last doc name /storage/0357/doc_00112350 to /storage/kkm_last_doc_name [16:25:29]save OK [16:25:29]Clear old archive folders... [16:25:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:25:29]tlvbuf is 001BADB0 [16:25:29]SAM_PROTO_ClearQueue [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 09 00 00 [16:25:29]Write to MH i2c: E2 08 00 B6 14 80 09 00 00 00 00 00 00 3C [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 B6 14 00 90 00 3E [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]SAM_PROTO_ClearQueue done [16:25:29]KKMCreateOFDPacket [16:25:29]OFDProtocolAddRootSTLVToBuf [16:25:29]FM_MakeSignedData [16:25:29]FM_MakeSignedData [16:25:29]SAM_PROTO_SignData [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 01 02 [16:25:29]Write to MH i2c: E2 08 00 B7 14 80 0D 01 02 00 00 00 00 44 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 B7 14 00 90 00 3F [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]wFMCommunicate request_size=255 [16:25:29]MH_SAM_APDU [16:25: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F9 00 00 00 F4 03 04 00 79 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DE B6 01 00 35 04 06 00 5E [16:25:29]Write to MH i2c: E2 02 01 B8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F9 00 00 00 F4 03 04 00 79 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DE B6 01 00 35 04 06 00 5E 00 00 37 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 B8 14 00 90 00 40 [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]wFMCommunicate request_size=10 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 02 02 05 35 44 DC AA 75 [16:25:29]Write to MH i2c: E2 0D 00 B9 14 80 0D 02 02 05 00 35 44 DC AA 75 00 00 C5 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 03 00 B9 14 00 90 00 41 [16:25:29]RAPDU: 90 00 [16:25:29]wFMCommunicate OK [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 0D 03 02 [16:25:29]Write to MH i2c: E2 08 00 BA 14 80 0D 03 02 00 00 00 00 49 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:25:29]Read from MH i2c: E2 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 0B 00 [16:25:29]MH_I2C_Read... [16:25:29]Read from MH i2c: E2 0B 00 BA 14 00 80 CA E2 64 AF 35 94 A4 90 00 F6 [16:25:29]RAPDU: 80 CA E2 64 AF 35 94 A4 90 00 [16:25:29]wFMCommunicate OK [16:25:29]SAM_PROTO_SignData done [16:25:29]FM_MakeSignedData done [16:25:29]CreateOFDProtocolMessage [16:25:29]wFMCommunicate request_size=4 [16:25:29]MH_SAM_APDU [16:25:29]CAPDU: 80 11 00 00 [16:25:29]Write to MH i2c: E2 08 00 BB 14 80 11 00 00 00 00 00 00 49 [16:25:29]Write i2c OK [16:25:29]MH_I2C_Read... [16:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:30]Read from MH i2c: E2 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: E2 17 00 BB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9A [16:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:25:30]wFMCommunicate OK [16:25:30]CreateOFDProtocolMessage done [16:25:30]OFDSenderStorePacket 112350 [16:25:30]StoreOFDPacket docnum=112350 [16:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9C 40 07 01 BC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F9 00 00 00 F4 03 04 00 79 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DE B6 01 00 35 04 06 00 5E 35 44 DC AA 75 80 CA E2 64 AF 35 94 A4 [16:25:30]CheckFolder [16:25:30]dirname=/storage/ofd_packets [16:25:30]CheckFolder done [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00112350 [16:25:30]NVStorageSaveData ofd_packets/00112350 [16:25:30]File name is /storage/ofd_packets/00112350 [16:25:30]Write 301 bytes [16:25:30]NVStorageSaveData done [16:25:30]OFDSenderStorePacket done [16:25:30]KKMCreateOFDPacket done [16:25:30]NVStorageSaveData kkm_last_timestamp [16:25:30]File name is /storage/kkm_last_timestamp [16:25:30]Write 4 bytes [16:25:30]NVStorageSaveData done [16:25:30]ExternCall_PrintAddStr [16:25:30]wPrintStart [16:25:30]Write to MH i2c: 01 00 00 BC 14 D0 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 BC 14 00 00 00 00 00 FF 0F E5 [16:25:30]RasterBufferAndPrint [16:25:30]line Счет N : (1)48660 [16:25:30]line ИНН: 02508201610067 [16:25:30]line Контрольно-Кассовый Чек [16:25:30]line ПРОДАЖА [16:25:30]line ТРК (МРК, ГНК) : 42 [16:25:30]line Товар: 2710124130 [16:25:30]line Аи-92-К-5 [16:25:30]line 7.780 * 64.30 [16:25:30]line = 500.25 [16:25:30]line НДС 12% НСП 1% [16:25:30]line > о реализуемом товаре [16:25:30]line ОКРУГЛЕНИЕ: -0.25 [16:25:30]line ИТОГО: 500.00 [16:25:30]line Внесено: 500.00 [16:25:30]line СДАЧА: 0.00 [16:25:30]line НСП 1% : 4.43 [16:25:30]line НДС 12% : 53.12 [16:25:30]line Наличными: 500.00 [16:25:30]line Безнал.: 0.00 [16:25:30]line Место: АЗС № 47 "Партнер Нефть" [16:25:30]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:25:30]line СНО: Общий режим [16:25:30]line Чек 249 14.04.2024 16:25 [16:25:30]line Смена: 357 ФФД: 1.0 [16:25:30]line ЗНМ: 0300000138 [16:25:30]line РНМ: 0000000000094237 [16:25:30]line Версия ККМ: 001 [16:25:30]line ФМ: 0000000000875019 [16:25:30]line ФД: 112350 [16:25:30]line ФПД: 103582881589877 [16:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162529&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112350&fm=103582881589877&tin=02508201610067®Number=0000000000094237&sum=50000 [16:25:30]OFD Sender: Processing packet 112350 [packets to send 71, broken 70] [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00112350 [16:25:30]OFD Sender: To server: pG, [16:25:30]CommunicateWithHost lk.salyk.kg:30040 [16:25:30]ConnectInit lk.salyk.kg [16:25:30]written 0, free lines is 4095 [16:25:30]Connected sock=10 [16:25:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9C 40 07 01 BC 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 F9 00 00 00 F4 03 04 00 79 03 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DE B6 01 00 35 04 06 00 5E 35 44 DC AA 75 80 CA E2 64 AF 35 94 A4 [16:25:30]Write to MH i2c: 01 00 00 E7 14 FB [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: 01 07 00 E7 14 00 00 00 00 00 E1 0C EF [16:25:30]RasterBufferAndPrint [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]line [16:25:30]written 0, free lines is 3303 [16:25:30]MH_Cut [16:25:30]Write to MH i2c: D1 01 00 EE 14 01 D4 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 01 00 [16:25:30]MH_I2C_Read... [16:25:30]Read from MH i2c: D1 01 00 EE 14 00 D3 [16:25:30]Write to MH i2c: 01 00 00 EF 14 03 [16:25:30]Write i2c OK [16:25:30]MH_I2C_Read... [16:25:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 41 A4 47 00 29 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DE B6 01 00 F4 03 04 00 04 AB 1B 66 B6 04 01 00 00 2D 2F 4B 3B 29 A1 23 89 [16:25:30]CommunicateWithHost err = 0 [16:25:30]CheckOFDResponse [16:25:30]1017 (14) - 77093643461234 [16:25:30]1041 (16) - 0000000000875019 [16:25:30]1040 (4) - 112350 [16:25:30]1012 (4) - 14.04.2024 10:08 [16:25:30]1206 (1) - 0 [16:25:30]OFD Sender: Remove packet 112350 [16:25:30]ProducePacketName [16:25:30]name=ofd_packets/00112350 [16:25:30]NVStorageDeleteData [16:25:31]OFD Sender: No OFD packet to send [16:25:31]*** Cut start [16:25:31]*** Partial cut [16:25:31]*** CUTSNS_PIN = 1 [16:25:31]*** CUTSNS_PIN = 0 [16:25:31]*** Brake cut motor [16:25:32]Read from MH i2c: 01 [16:25:32]MH_I2C_Read... [16:25:32]*** Stop cut motor [16:25:32]*** Cut end [16:25:32]Read from MH i2c: 01 07 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 FF 0F 18 [16:25:32]process_action close_receipt done [16:25:32]requested_data is exist [16:25:32]produce_requested_data [16:25:32]requested_item fm.sn is exist - process it [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 11 00 00 [16:25:32]Write to MH i2c: E2 08 00 F0 14 80 11 00 00 00 00 00 00 7E [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 17 00 F0 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [16:25:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:25:32]wFMCommunicate OK [16:25:32]requested_item fd.num is exist - process it [16:25:32]SAM_PROTO_GetFieldsCounters [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 13 00 00 [16:25:32]Write to MH i2c: E2 08 00 F1 14 80 13 00 00 00 00 00 00 81 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 62 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 62 00 F1 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:25:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:25:32]wFMCommunicate OK [16:25:32]SAM_PROTO_GetFieldsCounters done [16:25:32]requested_item shift.num is exist - process it [16:25:32]requested_item shift.opened is exist - process it [16:25:32]req_shift_opened [16:25:32]FM_GetShiftState [16:25:32]SAM_PROTO_GetShiftState [16:25:32]wFMCommunicate request_size=4 [16:25:32]MH_SAM_APDU [16:25:32]CAPDU: 80 13 01 00 [16:25:32]Write to MH i2c: E2 08 00 F2 14 80 13 01 00 00 00 00 00 83 [16:25:32]Write i2c OK [16:25:32]MH_I2C_Read... [16:25:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:25:32]Read from MH i2c: E2 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 0E 00 [16:25:32]MH_I2C_Read... [16:25:32]Read from MH i2c: E2 0E 00 F2 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1B [16:25:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:25:32]wFMCommunicate OK [16:25:32]SAM_PROTO_GetShiftState done [16:25:32]FM_GetShiftState done [16:25:32]req_shift_opened done [16:25:32]requested_item shift.open_date is exist - process it [16:25:32]req_shift_open_date [16:25:32]req_shift_open_date done [16:25:32]produce_requested_data done [16:25:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112350,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:25:32]process_action_free close_receipt [16:25:32]json_value_free [16:25:32]json_value_free done [16:25:32]process_json_proto returns [16:25:32]Send response to host [16:25:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112350,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:25:32]free response buf [16:25:32]execute_script done [16:25:32]execute_script returns [16:25:32]free content buf [16:25:32]Sock 9.Close socket [16:25:32]Sock 9.Thread stoped [16:25:36]OFD Sender: No OFD packet to send [16:25:41]OFD Sender: No OFD packet to send [16:25:46]OFD Sender: No OFD packet to send [16:25:51]OFD Sender: No OFD packet to send [16:25:56]OFD Sender: No OFD packet to send [16:26:01]OFD Sender: No OFD packet to send [16:26:06]OFD Sender: No OFD packet to send [16:26:11]OFD Sender: No OFD packet to send [16:26:16]OFD Sender: No OFD packet to send [16:26:21]OFD Sender: No OFD packet to send [16:26:26]OFD Sender: No OFD packet to send [16:26:31]OFD Sender: No OFD packet to send [16:26:36]OFD Sender: No OFD packet to send [16:26:41]OFD Sender: No OFD packet to send [16:26:46]OFD Sender: No OFD packet to send [16:26:51]OFD Sender: No OFD packet to send [16:26:56]OFD Sender: No OFD packet to send [16:27:01]OFD Sender: No OFD packet to send [16:27:06]OFD Sender: No OFD packet to send [16:27:11]OFD Sender: No OFD packet to send [16:27:16]OFD Sender: No OFD packet to send [16:27:21]OFD Sender: No OFD packet to send [16:27:26]OFD Sender: No OFD packet to send [16:27:31]OFD Sender: No OFD packet to send [16:27:36]accept exits with 8 [16:27:36]New connection [16:27:36]New thread 3066682724 created [16:27:36]Thread 3066826084 joined [16:27:36]Waiting for new connection... [16:27:36] Sock 8.Parse request [16:27:36]Sock 8.Check first char [16:27:36]Sock 8.First char is OK [16:27:36]request: POST /json_proto HTTP/1.0 [16:27:36]Method: POST [16:27:36]URL: /json_proto [16:27:36]Method is POST - this is cgi request [16:27:36]url: /json_proto [16:27:36]query_string will be loaded in cgi processing [16:27:36]execute_cgi json_proto POST (null) [16:27:36]execute_cgi path=json_proto method=POST [16:27:36]POST find Content-Length [16:27:36]Host: 172.17.96.197:8080 [16:27:36]Content-Length: 215 [16:27:36]Content-Type: application/json [16:27:36] [16:27:36]POST finish read [16:27:36]Found Content-Length = 215 [16:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:36]execute_script... [16:27:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:36]POST & json_proto [16:27:36]process_json_proto [16:27:36]json parsed OK: [16:27:36]protocol is kg_v1.0 [16:27:36]action value=get_value [16:27:36]process_action get_value [16:27:36]cmd_get_value [16:27:36]process_action get_value done [16:27:36]requested_data is exist [16:27:36]produce_requested_data [16:27:36]requested_item kkm.sn is exist - process it [16:27:36]requested_item kkm.ver is exist - process it [16:27:36]requested_item fm.sn is exist - process it [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 11 00 00 [16:27:36]Write to MH i2c: E2 08 00 F3 14 80 11 00 00 00 00 00 00 81 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 F3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D2 [16:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:27:36]wFMCommunicate OK [16:27:36]requested_item fd.num is exist - process it [16:27:36]SAM_PROTO_GetFieldsCounters [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 00 00 [16:27:36]Write to MH i2c: E2 08 00 F4 14 80 13 00 00 00 00 00 00 84 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 62 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 62 00 F4 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [16:27:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_GetFieldsCounters done [16:27:36]requested_item shift.num is exist - process it [16:27:36]requested_item shift.opened is exist - process it [16:27:36]req_shift_opened [16:27:36]FM_GetShiftState [16:27:36]SAM_PROTO_GetShiftState [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 01 00 [16:27:36]Write to MH i2c: E2 08 00 F5 14 80 13 01 00 00 00 00 00 86 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 0E 00 F5 14 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1E [16:27:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:27:36]wFMCommunicate OK [16:27:36]SAM_PROTO_GetShiftState done [16:27:36]FM_GetShiftState done [16:27:36]req_shift_opened done [16:27:36]requested_item shift.open_date is exist - process it [16:27:36]req_shift_open_date [16:27:36]req_shift_open_date done [16:27:36]produce_requested_data done [16:27:36]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112350,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:27:36]process_action_free get_value [16:27:36]json_value_free [16:27:36]json_value_free done [16:27:36]process_json_proto returns [16:27:36]Send response to host [16:27:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112350,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:27:36]free response buf [16:27:36]execute_script done [16:27:36]execute_script returns [16:27:36]free content buf [16:27:36]Sock 8.Close socket [16:27:36]Sock 8.Thread stoped [16:27:36]accept exits with 9 [16:27:36]New connection [16:27:36]New thread 3066826084 created [16:27:36]Thread 3066682724 joined [16:27:36]Waiting for new connection... [16:27:36] Sock 9.Parse request [16:27:36]Sock 9.Check first char [16:27:36]Sock 9.First char is OK [16:27:36]request: POST /json_proto HTTP/1.0 [16:27:36]Method: POST [16:27:36]URL: /json_proto [16:27:36]Method is POST - this is cgi request [16:27:36]url: /json_proto [16:27:36]query_string will be loaded in cgi processing [16:27:36]execute_cgi json_proto POST (null) [16:27:36]execute_cgi path=json_proto method=POST [16:27:36]POST find Content-Length [16:27:36]Host: 172.17.96.197:8080 [16:27:36]Content-Length: 331 [16:27:36]Content-Type: application/json [16:27:36] [16:27:36]POST finish read [16:27:36]Found Content-Length = 331 [16:27:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [16:27:36]execute_script... [16:27: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" ] } } [16:27:36]POST & json_proto [16:27:36]process_json_proto [16:27:36]json parsed OK: [16:27:36]protocol is kg_v1.0 [16:27:36]action value=get_value [16:27:36]process_action get_value [16:27:36]cmd_get_value [16:27:36]process_action get_value done [16:27:36]requested_data is exist [16:27:36]produce_requested_data [16:27:36]requested_item fm.sale.total is exist - process it [16:27:36]SAM_PROTO_GetFMData [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 03 00 [16:27:36]Write to MH i2c: E2 08 00 F6 14 80 13 03 00 00 00 00 00 89 [16:27:36]OFD Sender: No OFD packet to send [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 F6 14 00 C8 04 85 04 C4 04 6E 04 04 00 14 B4 01 00 69 04 A3 00 6F 04 04 00 9C AE 01 00 B1 04 05 00 3F 88 A2 C8 01 70 04 05 00 1E 67 BC 87 01 72 04 04 00 21 21 E6 40 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 3F 87 81 30 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 3C A8 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 D9 [16:27:37]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 14 B4 01 00 69 04 A3 00 6F 04 04 00 9C AE 01 00 B1 04 05 00 3F 88 A2 C8 01 70 04 05 00 1E 67 BC 87 01 72 04 04 00 21 21 E6 40 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 3F 87 81 30 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 3C A8 0A 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [16:27:37]wFMCommunicate OK [16:27:37]wFMCommunicate request_size=4 [16:27:37]MH_SAM_APDU [16:27:37]CAPDU: 80 17 00 00 [16:27:37]Write to MH i2c: E2 08 00 F7 14 80 17 00 00 00 00 00 00 8B [16:27:37]Write i2c OK [16:27:37]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 F7 14 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 62 [16:27:37]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:27:37]wFMCommunicate OK [16:27:37]wFMCommunicate request_size=4 [16:27:37]MH_SAM_APDU [16:27:37]CAPDU: 80 17 00 00 [16:27:37]Write to MH i2c: E2 08 00 F8 14 80 17 00 00 00 00 00 00 8C [16:27:37]Write i2c OK [16:27:37]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 F8 14 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 64 [16:27:37]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [16:27:37]wFMCommunicate OK [16:27:37]wFMCommunicate request_size=4 [16:27:37]MH_SAM_APDU [16:27:37]CAPDU: 80 17 00 00 [16:27:37]Write to MH i2c: E2 08 00 F9 14 80 17 00 00 00 00 00 00 8D [16:27:37]Write i2c OK [16:27:37]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 FD 00 F9 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 05 [16:27:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [16:27:37]wFMCommunicate OK [16:27:37]wFMCommunicate request_size=4 [16:27:37]MH_SAM_APDU [16:27:37]CAPDU: 80 17 00 00 [16:27:37]Write to MH i2c: E2 08 00 FA 14 80 17 00 00 00 00 00 00 8E [16:27:37]Write i2c OK [16:27:37]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 E5 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 E5 00 FA 14 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 72 [16:27:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]SAM_PROTO_GetFMData done [16:27:38]requested_item fm.sale_refund.total is exist - process it [16:27:38]requested_item fm.buy.total is exist - process it [16:27:38]requested_item shift.sale.total is exist - process it [16:27:38]SAM_PROTO_GetShiftData [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 13 02 00 [16:27:38]Write to MH i2c: E2 08 00 FB 14 80 13 02 00 00 00 00 00 8D [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 FD 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 FD 00 FB 14 00 BA 04 AA 04 B6 04 6E 04 04 00 F9 00 00 00 69 04 9D 00 6F 04 04 00 F7 00 00 00 B1 04 04 00 8B AE 02 01 70 04 03 00 B4 4B DC 72 04 03 00 D7 62 26 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 00 7B 1B 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 2F 4A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 67 [16:27:38]RAPDU: BA 04 AA 04 B6 04 6E 04 04 00 F9 00 00 00 69 04 9D 00 6F 04 04 00 F7 00 00 00 B1 04 04 00 8B AE 02 01 70 04 03 00 B4 4B DC 72 04 03 00 D7 62 26 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 00 7B 1B 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 2F 4A 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 17 00 00 [16:27:38]Write to MH i2c: E2 08 00 FC 14 80 17 00 00 00 00 00 00 90 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:38]Read from MH i2c: E2 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 FD 00 [16:27:38]MH_I2C_Read... [16:27:38]Read from MH i2c: E2 FD 00 FC 14 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 25 [16:27:38]RAPDU: EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 90 00 [16:27:38]wFMCommunicate OK [16:27:38]wFMCommunicate request_size=4 [16:27:38]MH_SAM_APDU [16:27:38]CAPDU: 80 17 00 00 [16:27:38]Write to MH i2c: E2 08 00 FD 14 80 17 00 00 00 00 00 00 91 [16:27:38]Write i2c OK [16:27:38]MH_I2C_Read... [16:27:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:39]Read from MH i2c: E2 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 FD 00 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 FD 00 FD 14 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 BD [16:27:39]RAPDU: 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 90 00 [16:27:39]wFMCommunicate OK [16:27:39]wFMCommunicate request_size=4 [16:27:39]MH_SAM_APDU [16:27:39]CAPDU: 80 17 00 00 [16:27:39]Write to MH i2c: E2 08 00 FE 14 80 17 00 00 00 00 00 00 92 [16:27:39]Write i2c OK [16:27:39]MH_I2C_Read... [16:27:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [16:27:39]Read from MH i2c: E2 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 FD 00 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 FD 00 FE 14 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 0A [16:27:39]RAPDU: 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 90 00 [16:27:39]wFMCommunicate OK [16:27:39]wFMCommunicate request_size=4 [16:27:39]MH_SAM_APDU [16:27:39]CAPDU: 80 17 00 00 [16:27:39]Write to MH i2c: E2 08 00 FF 14 80 17 00 00 00 00 00 00 93 [16:27:39]Write i2c OK [16:27:39]MH_I2C_Read... [16:27:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 212! [16:27:39]Read from MH i2c: E2 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 D7 00 [16:27:39]MH_I2C_Read... [16:27:39]Read from MH i2c: E2 D7 00 FF 14 00 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 76 [16:27:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [16:27:39]wFMCommunicate OK [16:27:39]SAM_PROTO_GetShiftData done [16:27:39]requested_item shift.sale.total_cash is exist - process it [16:27:39]requested_item shift.sale_refund.total is exist - process it [16:27:39]requested_item shift.sale_refund.total_cash is exist - process it [16:27:39]requested_item shift.buy.total is exist - process it [16:27:39]requested_item shift.buy.total_cash is exist - process it [16:27:39]produce_requested_data done [16:27:39]produce_requested_data return {"fm.sale.total":76610622.07,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":169529.71,"shift.sale.total_cash":144373.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [16:27:39]process_action_free get_value [16:27:39]json_value_free [16:27:39]json_value_free done [16:27:39]process_json_proto returns [16:27:39]Send response to host [16:27:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76610622.07,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":169529.71,"shift.sale.total_cash":144373.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [16:27:39]free response buf [16:27:39]execute_script done [16:27:39]execute_script returns [16:27:39]free content buf [16:27:39]Sock 9.Close socket [16:27:39]Sock 9.Thread stoped [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:53]accept exits with 8 [16:27:53]New connection [16:27:53]New thread 3066682724 created [16:27:53]Thread 3066826084 joined [16:27:53]Waiting for new connection... [16:27:53] Sock 8.Parse request [16:27:53]Sock 8.Check first char [16:27:53]Sock 8.First char is OK [16:27:53]request: POST /json_proto HTTP/1.0 [16:27:53]Method: POST [16:27:53]URL: /json_proto [16:27:53]Method is POST - this is cgi request [16:27:53]url: /json_proto [16:27:53]query_string will be loaded in cgi processing [16:27:53]execute_cgi json_proto POST (null) [16:27:53]execute_cgi path=json_proto method=POST [16:27:53]POST find Content-Length [16:27:53]Host: 172.17.96.197:8080 [16:27:53]Content-Length: 676 [16:27:53]Content-Type: application/json [16:27:53] [16:27:53]POST finish read [16:27:53]Found Content-Length = 676 [16:27:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:53]execute_script... [16:27: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)48657", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:53]POST & json_proto [16:27:53]process_json_proto [16:27:53]json parsed OK: [16:27:53]protocol is kg_v1.0 [16:27:53]action value=close_receipt [16:27:53]process_action close_receipt [16:27:53]cmd_close_receipt [16:27:53]MH_GetDate [16:27:53]Write to MH i2c: F0 00 00 00 15 04 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 09 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: F0 09 00 00 15 00 0A 04 1C 66 E0 85 7F 64 E5 [16:27:53]GetLastDocTimeStamp 1713111929 [16:27:53]current date 1713112074 [16:27:53]FM_GetShiftState [16:27:53]SAM_PROTO_GetShiftState [16:27:53]wFMCommunicate request_size=4 [16:27:53]MH_SAM_APDU [16:27:53]CAPDU: 80 13 01 00 [16:27:53]Write to MH i2c: E2 08 00 01 15 80 13 01 00 00 00 00 00 93 [16:27:53]Write i2c OK [16:27:53]MH_I2C_Read... [16:27:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:53]Read from MH i2c: E2 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: E2 0E 00 [16:27:53]MH_I2C_Read... [16:27:53]Read from MH i2c: E2 0E 00 01 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2B [16:27:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:27:53]wFMCommunicate OK [16:27:53]SAM_PROTO_GetShiftState done [16:27:53]FM_GetShiftState done [16:27:53]opened in 1713054696 [16:27:53]opened+sec_in_day 1713141096 [16:27:53]quantity*price = 60056 [16:27:53]sum+1 = 60057 [16:27:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 250 14.04.2024 16:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112351 ФПД: 222929046370548 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162754&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112351&fm=222929046370548&tin=02508201610067®Number=0000000000094237&sum=60000 [16:27:55]StoreToDocumentArchive [16:27:55]shift 357 fd 112351 [16:27:55]save to /storage/0357/doc_00112351 [16:27:55]save last doc name /storage/0357/doc_00112351 to /storage/kkm_last_doc_name [16:27:55]save OK [16:27:55]Clear old archive folders... [16:27:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:27:55]tlvbuf is 0015B240 [16:27:55]SAM_PROTO_ClearQueue [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 09 00 00 [16:27:55]Write to MH i2c: E2 08 00 0E 15 80 09 00 00 00 00 00 00 95 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_ClearQueue done [16:27:55]KKMCreateOFDPacket [16:27:55]OFDProtocolAddRootSTLVToBuf [16:27:55]FM_MakeSignedData [16:27:55]FM_MakeSignedData [16:27:55]SAM_PROTO_SignData [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 01 02 [16:27:55]Write to MH i2c: E2 08 00 0F 15 80 0D 01 02 00 00 00 00 9D [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=255 [16:27:55]MH_SAM_APDU [16:27: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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 FA 00 00 00 F4 03 04 00 0A 04 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DF B6 01 00 35 04 06 00 CA [16:27:55]Write to MH i2c: E2 02 01 10 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 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 FA 00 00 00 F4 03 04 00 0A 04 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DF B6 01 00 35 04 06 00 CA 00 00 F2 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=10 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 02 02 05 C0 B6 9E 78 F4 [16:27:55]Write to MH i2c: E2 0D 00 11 15 80 0D 02 02 05 00 C0 B6 9E 78 F4 00 00 2A [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [16:27:55]RAPDU: 90 00 [16:27:55]wFMCommunicate OK [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 0D 03 02 [16:27:55]Write to MH i2c: E2 08 00 12 15 80 0D 03 02 00 00 00 00 A2 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 0B 00 12 15 00 51 53 6B FE DB 07 76 D1 90 00 D9 [16:27:55]RAPDU: 51 53 6B FE DB 07 76 D1 90 00 [16:27:55]wFMCommunicate OK [16:27:55]SAM_PROTO_SignData done [16:27:55]FM_MakeSignedData done [16:27:55]CreateOFDProtocolMessage [16:27:55]wFMCommunicate request_size=4 [16:27:55]MH_SAM_APDU [16:27:55]CAPDU: 80 11 00 00 [16:27:55]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:55]Read from MH i2c: E2 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [16:27:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:27:55]wFMCommunicate OK [16:27:55]CreateOFDProtocolMessage done [16:27:55]OFDSenderStorePacket 112351 [16:27:55]StoreOFDPacket docnum=112351 [16:27:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 96 2C 07 01 A1 19 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 FA 00 00 00 F4 03 04 00 0A 04 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DF B6 01 00 35 04 06 00 CA C0 B6 9E 78 F4 51 53 6B FE DB 07 76 D1 [16:27:55]CheckFolder [16:27:55]dirname=/storage/ofd_packets [16:27:55]CheckFolder done [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00112351 [16:27:55]NVStorageSaveData ofd_packets/00112351 [16:27:55]File name is /storage/ofd_packets/00112351 [16:27:55]Write 301 bytes [16:27:55]NVStorageSaveData done [16:27:55]OFDSenderStorePacket done [16:27:55]KKMCreateOFDPacket done [16:27:55]NVStorageSaveData kkm_last_timestamp [16:27:55]File name is /storage/kkm_last_timestamp [16:27:55]Write 4 bytes [16:27:55]NVStorageSaveData done [16:27:55]ExternCall_PrintAddStr [16:27:55]wPrintStart [16:27:55]Write to MH i2c: 01 00 00 14 15 29 [16:27:55]Write i2c OK [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 [16:27:55]MH_I2C_Read... [16:27:55]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [16:27:55]RasterBufferAndPrint [16:27:55]line Счет N : (1)48657 [16:27:55]line ИНН: 02508201610067 [16:27:55]line Контрольно-Кассовый Чек [16:27:55]line ПРОДАЖА [16:27:55]line ТРК (МРК, ГНК) : 32 [16:27:55]line Товар: 2710124100 [16:27:55]line Аи-92-К-1 [16:27:55]line 9.340 * 64.30 [16:27:55]line = 600.56 [16:27:55]line НДС 12% НСП 1% [16:27:55]line > о реализуемом товаре [16:27:55]line ОКРУГЛЕНИЕ: -0.56 [16:27:55]line ИТОГО: 600.00 [16:27:55]line Внесено: 600.00 [16:27:55]line СДАЧА: 0.00 [16:27:55]line НСП 1% : 5.31 [16:27:55]line НДС 12% : 63.78 [16:27:55]line Наличными: 600.00 [16:27:55]line Безнал.: 0.00 [16:27:55]line Место: АЗС № 47 "Партнер Нефть" [16:27:55]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:27:55]line СНО: Общий режим [16:27:55]line Чек 250 14.04.2024 16:27 [16:27:55]line Смена: 357 ФФД: 1.0 [16:27:55]line ЗНМ: 0300000138 [16:27:55]line РНМ: 0000000000094237 [16:27:55]line Версия ККМ: 001 [16:27:55]line ФМ: 0000000000875019 [16:27:55]line ФД: 112351 [16:27:55]line ФПД: 222929046370548 [16:27:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T162754&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112351&fm=222929046370548&tin=02508201610067®Number=0000000000094237&sum=60000 [16:27:55]OFD Sender: Processing packet 112351 [packets to send 71, broken 70] [16:27:55]ProducePacketName [16:27:55]name=ofd_packets/00112351 [16:27:55]OFD Sender: To server: pG, [16:27:55]CommunicateWithHost lk.salyk.kg:30040 [16:27:55]ConnectInit lk.salyk.kg [16:27:55]written 0, free lines is 4095 [16:27:56]Connected sock=10 [16:27:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 96 2C 07 01 A1 19 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 FA 00 00 00 F4 03 04 00 0A 04 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DF B6 01 00 35 04 06 00 CA C0 B6 9E 78 F4 51 53 6B FE DB 07 76 D1 [16:27:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C0 EF 47 00 53 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 DF B6 01 00 F4 03 04 00 95 AB 1B 66 B6 04 01 00 00 8D 35 2D 69 96 64 50 64 [16:27:56]CommunicateWithHost err = 0 [16:27:56]CheckOFDResponse [16:27:56]1017 (14) - 77093643461234 [16:27:56]1041 (16) - 0000000000875019 [16:27:56]1040 (4) - 112351 [16:27:56]1012 (4) - 14.04.2024 10:10 [16:27:56]1206 (1) - 0 [16:27:56]OFD Sender: Remove packet 112351 [16:27:56]ProducePacketName [16:27:56]name=ofd_packets/00112351 [16:27:56]NVStorageDeleteData [16:27:56]Write to MH i2c: 01 00 00 3F 15 54 [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 ED 0C 54 [16:27:56]RasterBufferAndPrint [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]line [16:27:56]written 0, free lines is 3315 [16:27:56]MH_Cut [16:27:56]Write to MH i2c: D1 01 00 46 15 01 2D [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 [16:27:56]MH_I2C_Read... [16:27:56]Read from MH i2c: D1 01 00 46 15 00 2C [16:27:56]Write to MH i2c: 01 00 00 47 15 5C [16:27:56]Write i2c OK [16:27:56]MH_I2C_Read... [16:27:56]OFD Sender: No OFD packet to send [16:27:57]*** Cut start [16:27:57]*** Partial cut [16:27:57]*** CUTSNS_PIN = 1 [16:27:57]*** CUTSNS_PIN = 0 [16:27:57]*** Brake cut motor [16:27:57]Read from MH i2c: 01 [16:27:57]MH_I2C_Read... [16:27:57]*** Stop cut motor [16:27:57]*** Cut end [16:27:57]Read from MH i2c: 01 07 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [16:27:57]process_action close_receipt done [16:27:57]requested_data is exist [16:27:57]produce_requested_data [16:27:57]requested_item fm.sn is exist - process it [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 11 00 00 [16:27:57]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [16:27:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:27:57]wFMCommunicate OK [16:27:57]requested_item fd.num is exist - process it [16:27:57]SAM_PROTO_GetFieldsCounters [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 13 00 00 [16:27:57]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 62 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 62 00 49 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [16:27:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 DF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:27:57]wFMCommunicate OK [16:27:57]SAM_PROTO_GetFieldsCounters done [16:27:57]requested_item shift.num is exist - process it [16:27:57]requested_item shift.opened is exist - process it [16:27:57]req_shift_opened [16:27:57]FM_GetShiftState [16:27:57]SAM_PROTO_GetShiftState [16:27:57]wFMCommunicate request_size=4 [16:27:57]MH_SAM_APDU [16:27:57]CAPDU: 80 13 01 00 [16:27:57]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [16:27:57]Write i2c OK [16:27:57]MH_I2C_Read... [16:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:57]Read from MH i2c: E2 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0E 00 [16:27:57]MH_I2C_Read... [16:27:57]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [16:27:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:27:57]wFMCommunicate OK [16:27:57]SAM_PROTO_GetShiftState done [16:27:57]FM_GetShiftState done [16:27:57]req_shift_opened done [16:27:57]requested_item shift.open_date is exist - process it [16:27:57]req_shift_open_date [16:27:57]req_shift_open_date done [16:27:57]produce_requested_data done [16:27:57]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112351,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:27:57]process_action_free close_receipt [16:27:57]json_value_free [16:27:57]json_value_free done [16:27:57]process_json_proto returns [16:27:57]Send response to host [16:27:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112351,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:27:57]free response buf [16:27:57]execute_script done [16:27:57]execute_script returns [16:27:57]free content buf [16:27:57]Sock 8.Close socket [16:27:57]Sock 8.Thread stoped [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30: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]accept exits with 9 [16:36:37]New connection [16:36:37]New thread 3066826084 created [16:36:37]Thread 3066682724 joined [16:36:37]Waiting for new connection... [16:36:37] Sock 9.Parse request [16:36:37]Sock 9.Check first char [16:36:37]Sock 9.First char is OK [16:36:37]request: POST /json_proto HTTP/1.0 [16:36:37]Method: POST [16:36:37]URL: /json_proto [16:36:37]Method is POST - this is cgi request [16:36:37]url: /json_proto [16:36:37]query_string will be loaded in cgi processing [16:36:37]execute_cgi json_proto POST (null) [16:36:37]execute_cgi path=json_proto method=POST [16:36:37]POST find Content-Length [16:36:37]Host: 172.17.96.197:8080 [16:36:37]Content-Length: 669 [16:36:37]Content-Type: application/json [16:36:37] [16:36:37]POST finish read [16:36:37]Found Content-Length = 669 [16:36:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10432", "tax_sys" : 0, "items" : [ { "code": "4600682007470", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,45\u043B \u042F\u0433\u043E", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:37]execute_script... [16:36:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10432", "tax_sys" : 0, "items" : [ { "code": "4600682007470", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,45\u043B \u042F\u0433\u043E", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:36:37]POST & json_proto [16:36:37]process_json_proto [16:36:37]json parsed OK: [16:36:37]protocol is kg_v1.0 [16:36:37]action value=close_receipt [16:36:37]process_action close_receipt [16:36:37]cmd_close_receipt [16:36:37]MH_GetDate [16:36:37]Write to MH i2c: F0 00 00 4B 15 4F [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: F0 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: F0 09 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: F0 09 00 4B 15 00 15 06 1C 66 E0 85 7F 64 3D [16:36:37]GetLastDocTimeStamp 1713112074 [16:36:37]current date 1713112597 [16:36:37]FM_GetShiftState [16:36:37]SAM_PROTO_GetShiftState [16:36:37]wFMCommunicate request_size=4 [16:36:37]MH_SAM_APDU [16:36:37]CAPDU: 80 13 01 00 [16:36:37]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [16:36:37]Write i2c OK [16:36:37]MH_I2C_Read... [16:36:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:37]Read from MH i2c: E2 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: E2 0E 00 [16:36:37]MH_I2C_Read... [16:36:37]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [16:36:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:36:37]wFMCommunicate OK [16:36:37]SAM_PROTO_GetShiftState done [16:36:37]FM_GetShiftState done [16:36:37]opened in 1713054696 [16:36:37]opened+sec_in_day 1713141096 [16:36:37]quantity*price = 8500 [16:36:37]sum+1 = 8501 [16:36:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 251 14.04.2024 16:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112352 ФПД: 221418120127180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T163637&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112352&fm=221418120127180&tin=02508201610067®Number=0000000000094237&sum=8500 0 [16:36:38]StoreToDocumentArchive [16:36:38]shift 357 fd 112352 [16:36:38]save to /storage/0357/doc_00112352 [16:36:38]save last doc name /storage/0357/doc_00112352 to /storage/kkm_last_doc_name [16:36:38]save OK [16:36:38]Clear old archive folders... [16:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=297 [16:36:38]tlvbuf is B6E89A80 [16:36:38]SAM_PROTO_ClearQueue [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 09 00 00 [16:36:38]Write to MH i2c: E2 08 00 59 15 80 09 00 00 00 00 00 00 E0 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:36:38]Read from MH i2c: E2 03 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [16:36:38]RAPDU: 90 00 [16:36:38]wFMCommunicate OK [16:36:38]SAM_PROTO_ClearQueue done [16:36:38]KKMCreateOFDPacket [16:36:38]OFDProtocolAddRootSTLVToBuf [16:36:38]FM_MakeSignedData [16:36:38]FM_MakeSignedData [16:36:38]SAM_PROTO_SignData [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 0D 01 02 [16:36:38]Write to MH i2c: E2 08 00 5A 15 80 0D 01 02 00 00 00 00 E8 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [16:36:38]RAPDU: 90 00 [16:36:38]wFMCommunicate OK [16:36:38]wFMCommunicate request_size=255 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 37 34 37 30 06 04 37 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 AF D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [16:36:38]Write to MH i2c: E2 02 01 5B 15 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 37 34 37 30 06 04 37 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 AF D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 25 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [16:36:38]RAPDU: 90 00 [16:36:38]wFMCommunicate OK [16:36:38]wFMCommunicate request_size=56 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E0 B6 01 00 35 04 06 00 C9 60 EC 65 A2 CC [16:36:38]Write to MH i2c: E2 3B 00 5C 15 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E0 B6 01 00 35 04 06 00 C9 60 EC 65 A2 CC 00 00 F3 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [16:36:38]RAPDU: 90 00 [16:36:38]wFMCommunicate OK [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 0D 03 02 [16:36:38]Write to MH i2c: E2 08 00 5D 15 80 0D 03 02 00 00 00 00 ED [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0B 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 0B 00 5D 15 00 7F 65 C3 C8 40 08 79 3D 90 00 5B [16:36:38]RAPDU: 7F 65 C3 C8 40 08 79 3D 90 00 [16:36:38]wFMCommunicate OK [16:36:38]SAM_PROTO_SignData done [16:36:38]FM_MakeSignedData done [16:36:38]CreateOFDProtocolMessage [16:36:38]wFMCommunicate request_size=4 [16:36:38]MH_SAM_APDU [16:36:38]CAPDU: 80 11 00 00 [16:36:38]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:38]Read from MH i2c: E2 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 17 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [16:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:36:38]wFMCommunicate OK [16:36:38]CreateOFDProtocolMessage done [16:36:38]OFDSenderStorePacket 112352 [16:36:38]StoreOFDPacket docnum=112352 [16:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3D 01 00 00 5B 38 35 01 44 A1 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 37 34 37 30 06 04 37 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 AF D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E0 B6 01 00 35 04 06 00 C9 60 EC 65 A2 CC 7F 65 C3 C8 40 08 79 3D [16:36:38]CheckFolder [16:36:38]dirname=/storage/ofd_packets [16:36:38]CheckFolder done [16:36:38]ProducePacketName [16:36:38]name=ofd_packets/00112352 [16:36:38]NVStorageSaveData ofd_packets/00112352 [16:36:38]File name is /storage/ofd_packets/00112352 [16:36:38]Write 347 bytes [16:36:38]NVStorageSaveData done [16:36:38]OFDSenderStorePacket done [16:36:38]KKMCreateOFDPacket done [16:36:38]NVStorageSaveData kkm_last_timestamp [16:36:38]File name is /storage/kkm_last_timestamp [16:36:38]Write 4 bytes [16:36:38]NVStorageSaveData done [16:36:38]ExternCall_PrintAddStr [16:36:38]wPrintStart [16:36:38]Write to MH i2c: 01 00 00 5F 15 74 [16:36:38]Write i2c OK [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: 01 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: 01 07 00 [16:36:38]MH_I2C_Read... [16:36:38]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [16:36:38]RasterBufferAndPrint [16:36:38]line Счет N : (3)10432 [16:36:38]line ИНН: 02508201610067 [16:36:38]line Контрольно-Кассовый Чек [16:36:38]line ПРОДАЖА [16:36:38]line Товар: 4600682007470 [16:36:38]line Напиток FLash up energy эн ж/б 0,45л Яго [16:36:38]line 1.000 * 85.00 [16:36:38]line = 85.00 [16:36:38]line НДС 12% НСП 1% [16:36:38]line > о реализуемом товаре [16:36:38]line ИТОГО: 85.00 [16:36:38]line НСП 1% : 0.75 [16:36:38]line НДС 12% : 9.03 [16:36:38]line Наличными: 85.00 [16:36:38]line Безнал.: 0.00 [16:36:38]line Место: АЗС № 47 "Партнер Нефть" [16:36:38]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:36:38]line СНО: Общий режим [16:36:38]line Чек 251 14.04.2024 16:36 [16:36:38]line Смена: 357 ФФД: 1.0 [16:36:38]line ЗНМ: 0300000138 [16:36:38]line РНМ: 0000000000094237 [16:36:38]line Версия ККМ: 001 [16:36:38]line ФМ: 0000000000875019 [16:36:38]line ФД: 112352 [16:36:38]line ФПД: 221418120127180 [16:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T163637&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112352&fm=221418120127180&tin=02508201610067®Number=0000000000094237&sum=8500 [16:36:39]OFD Sender: Processing packet 112352 [packets to send 71, broken 70] [16:36:39]ProducePacketName [16:36:39]name=ofd_packets/00112352 [16:36:39]OFD Sender: To server: pG, [16:36:39]CommunicateWithHost lk.salyk.kg:30040 [16:36:39]ConnectInit lk.salyk.kg [16:36:39]line 0 [16:36:39]written 0, free lines is 4095 [16:36:39]Connected sock=10 [16:36:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3D 01 00 00 5B 38 35 01 44 A1 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 36 38 32 30 30 37 34 37 30 06 04 37 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 AF D0 B3 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 15 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E0 B6 01 00 35 04 06 00 C9 60 EC 65 A2 CC 7F 65 C3 C8 40 08 79 3D [16:36:39]Write to MH i2c: 01 00 00 88 15 9D [16:36:39]Write i2c OK [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 07 00 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: 01 07 00 88 15 00 00 00 00 00 F1 0C A1 [16:36:39]RasterBufferAndPrint [16:36:39]line [16:36:39]line [16:36:39]line [16:36:39]line [16:36:39]line [16:36:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 65 4A 47 00 0D AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E0 B6 01 00 F4 03 04 00 A0 AD 1B 66 B6 04 01 00 00 8C D1 95 59 D0 12 4D 7E [16:36:39]CommunicateWithHost err = 0 [16:36:39]CheckOFDResponse [16:36:39]1017 (14) - 77093643461234 [16:36:39]1041 (16) - 0000000000875019 [16:36:39]1040 (4) - 112352 [16:36:39]1012 (4) - 14.04.2024 10:19 [16:36:39]1206 (1) - 0 [16:36:39]OFD Sender: Remove packet 112352 [16:36:39]ProducePacketName [16:36:39]name=ofd_packets/00112352 [16:36:39]NVStorageDeleteData [16:36:39]written 0, free lines is 3344 [16:36:39]MH_Cut [16:36:39]Write to MH i2c: D1 01 00 8F 15 01 76 [16:36:39]Write i2c OK [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: D1 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: D1 01 00 [16:36:39]MH_I2C_Read... [16:36:39]Read from MH i2c: D1 01 00 8F 15 00 75 [16:36:39]Write to MH i2c: 01 00 00 90 15 A5 [16:36:39]Write i2c OK [16:36:39]MH_I2C_Read... [16:36:40]OFD Sender: No OFD packet to send [16:36:40]*** Cut start [16:36:40]*** Partial cut [16:36:40]*** CUTSNS_PIN = 1 [16:36:40]*** CUTSNS_PIN = 0 [16:36:40]*** Brake cut motor [16:36:41]Read from MH i2c: 01 [16:36:41]MH_I2C_Read... [16:36:41]*** Stop cut motor [16:36:41]*** Cut end [16:36:41]Read from MH i2c: 01 07 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: 01 07 00 90 15 00 00 00 00 00 FF 0F BA [16:36:41]process_action close_receipt done [16:36:41]requested_data is exist [16:36:41]produce_requested_data [16:36:41]requested_item fm.sn is exist - process it [16:36:41]wFMCommunicate request_size=4 [16:36:41]MH_SAM_APDU [16:36:41]CAPDU: 80 11 00 00 [16:36:41]Write to MH i2c: E2 08 00 91 15 80 11 00 00 00 00 00 00 20 [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:36:41]Read from MH i2c: E2 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 17 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 17 00 91 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 71 [16:36:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:36:41]wFMCommunicate OK [16:36:41]requested_item fd.num is exist - process it [16:36:41]SAM_PROTO_GetFieldsCounters [16:36:41]wFMCommunicate request_size=4 [16:36:41]MH_SAM_APDU [16:36:41]CAPDU: 80 13 00 00 [16:36:41]Write to MH i2c: E2 08 00 92 15 80 13 00 00 00 00 00 00 23 [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:36:41]Read from MH i2c: E2 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 62 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 62 00 92 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [16:36:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:36:41]wFMCommunicate OK [16:36:41]SAM_PROTO_GetFieldsCounters done [16:36:41]requested_item shift.num is exist - process it [16:36:41]requested_item shift.opened is exist - process it [16:36:41]req_shift_opened [16:36:41]FM_GetShiftState [16:36:41]SAM_PROTO_GetShiftState [16:36:41]wFMCommunicate request_size=4 [16:36:41]MH_SAM_APDU [16:36:41]CAPDU: 80 13 01 00 [16:36:41]Write to MH i2c: E2 08 00 93 15 80 13 01 00 00 00 00 00 25 [16:36:41]Write i2c OK [16:36:41]MH_I2C_Read... [16:36:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:36:41]Read from MH i2c: E2 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 0E 00 [16:36:41]MH_I2C_Read... [16:36:41]Read from MH i2c: E2 0E 00 93 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BD [16:36:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:36:41]wFMCommunicate OK [16:36:41]SAM_PROTO_GetShiftState done [16:36:41]FM_GetShiftState done [16:36:41]req_shift_opened done [16:36:41]requested_item shift.open_date is exist - process it [16:36:41]req_shift_open_date [16:36:41]req_shift_open_date done [16:36:41]produce_requested_data done [16:36:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112352,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:36:41]process_action_free close_receipt [16:36:41]json_value_free [16:36:41]json_value_free done [16:36:41]process_json_proto returns [16:36:41]Send response to host [16:36:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112352,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:36:41]free response buf [16:36:41]execute_script done [16:36:41]execute_script returns [16:36:41]free content buf [16:36:41]Sock 9.Close socket [16:36:41]Sock 9.Thread stoped [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:39:59]accept exits with 8 [16:39:59]New connection [16:39:59]New thread 3066682724 created [16:39:59]Thread 3066826084 joined [16:39:59]Waiting for new connection... [16:39:59] Sock 8.Parse request [16:39:59]Sock 8.Check first char [16:39:59]Sock 8.First char is OK [16:39:59]request: POST /json_proto HTTP/1.0 [16:39:59]Method: POST [16:39:59]URL: /json_proto [16:39:59]Method is POST - this is cgi request [16:39:59]url: /json_proto [16:39:59]query_string will be loaded in cgi processing [16:39:59]execute_cgi json_proto POST (null) [16:39:59]execute_cgi path=json_proto method=POST [16:39:59]POST find Content-Length [16:39:59]Host: 172.17.96.197:8080 [16:39:59]Content-Length: 638 [16:39:59]Content-Type: application/json [16:39:59] [16:39:59]POST finish read [16:39:59]Found Content-Length = 638 [16:39:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48661", "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.40, "quantity" : 60.000, "sum" : 4344.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4344.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:59]execute_script... [16:39: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)48661", "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.40, "quantity" : 60.000, "sum" : 4344.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4344.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:59]POST & json_proto [16:39:59]process_json_proto [16:39:59]json parsed OK: [16:39:59]protocol is kg_v1.0 [16:39:59]action value=close_receipt [16:39:59]process_action close_receipt [16:39:59]cmd_close_receipt [16:39:59]MH_GetDate [16:39:59]Write to MH i2c: F0 00 00 94 15 98 [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: F0 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: F0 09 00 [16:39:59]MH_I2C_Read... [16:39:59]Read from MH i2c: F0 09 00 94 15 00 E0 06 1C 66 E0 85 7F 64 51 [16:39:59]GetLastDocTimeStamp 1713112597 [16:39:59]current date 1713112800 [16:39:59]FM_GetShiftState [16:39:59]SAM_PROTO_GetShiftState [16:39:59]wFMCommunicate request_size=4 [16:39:59]MH_SAM_APDU [16:39:59]CAPDU: 80 13 01 00 [16:39:59]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [16:39:59]Write i2c OK [16:39:59]MH_I2C_Read... [16:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:00]Read from MH i2c: E2 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: E2 0E 00 [16:40:00]MH_I2C_Read... [16:40:00]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BF [16:40:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:40:00]wFMCommunicate OK [16:40:00]SAM_PROTO_GetShiftState done [16:40:00]FM_GetShiftState done [16:40:00]opened in 1713054696 [16:40:00]opened+sec_in_day 1713141096 [16:40:00]quantity*price = 434400 [16:40:00]sum+1 = 434401 [16:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4344.00 НСП 1% : 38.44 НДС 12% : 461.31 Наличными: 4344.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 252 14.04.2024 16:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112353 ФПД: 137253882174678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164000&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112353&fm=137253882174678&tin=02508201610067®Number=0000000000094237&sum=434400 [16:40:01]StoreToDocumentArchive [16:40:01]shift 357 fd 112353 [16:40:01]save to /storage/0357/doc_00112353 [16:40:01]save last doc name /storage/0357/doc_00112353 to /storage/kkm_last_doc_name [16:40:01]save OK [16:40:01]Clear old archive folders... [16:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=248 [16:40:01]tlvbuf is B6EA23D0 [16:40:01]SAM_PROTO_ClearQueue [16:40:01]wFMCommunicate request_size=4 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 09 00 00 [16:40:01]Write to MH i2c: E2 08 00 A2 15 80 09 00 00 00 00 00 00 29 [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 A2 15 00 90 00 2B [16:40:01]RAPDU: 90 00 [16:40:01]wFMCommunicate OK [16:40:01]SAM_PROTO_ClearQueue done [16:40:01]KKMCreateOFDPacket [16:40:01]OFDProtocolAddRootSTLVToBuf [16:40:01]FM_MakeSignedData [16:40:01]FM_MakeSignedData [16:40:01]SAM_PROTO_SignData [16:40:01]wFMCommunicate request_size=4 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 0D 01 02 [16:40:01]Write to MH i2c: E2 08 00 A3 15 80 0D 01 02 00 00 00 00 31 [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 A3 15 00 90 00 2C [16:40:01]RAPDU: 90 00 [16:40:01]wFMCommunicate OK [16:40:01]wFMCommunicate request_size=255 [16:40:01]MH_SAM_APDU [16:40: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 60 EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 A0 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 B4 00 00 00 00 07 04 06 00 E0 A0 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E1 B6 01 00 35 04 06 00 7C D4 E8 E4 [16:40:01]Write to MH i2c: E2 02 01 A4 15 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 60 EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 A0 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 B4 00 00 00 00 07 04 06 00 E0 A0 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E1 B6 01 00 35 04 06 00 7C D4 E8 E4 00 00 44 [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [16:40:01]RAPDU: 90 00 [16:40:01]wFMCommunicate OK [16:40:01]wFMCommunicate request_size=7 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 0D 02 02 02 1C D6 [16:40:01]Write to MH i2c: E2 0A 00 A5 15 80 0D 02 02 02 00 1C D6 00 00 2A [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [16:40:01]RAPDU: 90 00 [16:40:01]wFMCommunicate OK [16:40:01]wFMCommunicate request_size=4 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 0D 03 02 [16:40:01]Write to MH i2c: E2 08 00 A6 15 80 0D 03 02 00 00 00 00 36 [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 0B 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 0B 00 A6 15 00 B4 C5 AA 4E AE E4 FA 62 90 00 96 [16:40:01]RAPDU: B4 C5 AA 4E AE E4 FA 62 90 00 [16:40:01]wFMCommunicate OK [16:40:01]SAM_PROTO_SignData done [16:40:01]FM_MakeSignedData done [16:40:01]CreateOFDProtocolMessage [16:40:01]wFMCommunicate request_size=4 [16:40:01]MH_SAM_APDU [16:40:01]CAPDU: 80 11 00 00 [16:40:01]Write to MH i2c: E2 08 00 A7 15 80 11 00 00 00 00 00 00 36 [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:01]Read from MH i2c: E2 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 17 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: E2 17 00 A7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 87 [16:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:40:01]wFMCommunicate OK [16:40:01]CreateOFDProtocolMessage done [16:40:01]OFDSenderStorePacket 112353 [16:40:01]StoreOFDPacket docnum=112353 [16:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 AD 50 04 01 91 B5 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 60 EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 A0 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 B4 00 00 00 00 07 04 06 00 E0 A0 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E1 B6 01 00 35 04 06 00 7C D4 E8 E4 1C D6 B4 C5 AA 4E AE E4 FA 62 [16:40:01]CheckFolder [16:40:01]dirname=/storage/ofd_packets [16:40:01]CheckFolder done [16:40:01]ProducePacketName [16:40:01]name=ofd_packets/00112353 [16:40:01]NVStorageSaveData ofd_packets/00112353 [16:40:01]File name is /storage/ofd_packets/00112353 [16:40:01]Write 298 bytes [16:40:01]NVStorageSaveData done [16:40:01]OFDSenderStorePacket done [16:40:01]KKMCreateOFDPacket done [16:40:01]NVStorageSaveData kkm_last_timestamp [16:40:01]File name is /storage/kkm_last_timestamp [16:40:01]Write 4 bytes [16:40:01]NVStorageSaveData done [16:40:01]OFD Sender: Processing packet 112353 [packets to send 71, broken 70] [16:40:01]ProducePacketName [16:40:01]name=ofd_packets/00112353 [16:40:01]OFD Sender: To server: pG, [16:40:01]CommunicateWithHost lk.salyk.kg:30040 [16:40:01]ConnectInit lk.salyk.kg [16:40:01]ExternCall_PrintAddStr [16:40:01]wPrintStart [16:40:01]Write to MH i2c: 01 00 00 A8 15 BD [16:40:01]Write i2c OK [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 [16:40:01]MH_I2C_Read... [16:40:01]Read from MH i2c: 01 07 00 A8 15 00 00 00 00 00 FF 0F D2 [16:40:01]RasterBufferAndPrint [16:40:01]line Счет N : (1)48661 [16:40:01]line ИНН: 02508201610067 [16:40:01]line Контрольно-Кассовый Чек [16:40:01]line ПРОДАЖА [16:40:01]line ТРК (МРК, ГНК) : 51 [16:40:01]line Товар: 2710194210 [16:40:01]line ДТ-К-5 [16:40:01]line 60.000 * 72.40 [16:40:01]line = 4344.00 [16:40:01]line НДС 12% НСП 1% [16:40:01]line > о реализуемом товаре [16:40:01]line ИТОГО: 4344.00 [16:40:01]line НСП 1% : 38.44 [16:40:01]line НДС 12% : 461.31 [16:40:01]line Наличными: 4344.00 [16:40:01]line Безнал.: 0.00 [16:40:01]line Место: АЗС № 47 "Партнер Нефть" [16:40:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:40:01]line СНО: Общий режим [16:40:01]line Чек 252 14.04.2024 16:40 [16:40:01]line Смена: 357 ФФД: 1.0 [16:40:01]line ЗНМ: 0300000138 [16:40:01]line РНМ: 0000000000094237 [16:40:01]line Версия ККМ: 001 [16:40:01]line ФМ: 0000000000875019 [16:40:01]line ФД: 112353 [16:40:01]line ФПД: 137253882174678 [16:40:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164000&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112353&fm=137253882174678&tin=02508201610067®Number=0000000000094237&sum=434400 [16:40:01]Connected sock=11 [16:40:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 AD 50 04 01 91 B5 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 60 EA 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E0 A0 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 A0 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 04 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 B4 00 00 00 00 07 04 06 00 E0 A0 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 E0 06 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E1 B6 01 00 35 04 06 00 7C D4 E8 E4 1C D6 B4 C5 AA 4E AE E4 FA 62 [16:40:01]written 0, free lines is 4095 [16:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F5 E3 47 00 D9 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E1 B6 01 00 F4 03 04 00 6B AE 1B 66 B6 04 01 00 00 7B 06 CF 84 E4 44 1C E9 [16:40:02]CommunicateWithHost err = 0 [16:40:02]CheckOFDResponse [16:40:02]1017 (14) - 77093643461234 [16:40:02]1041 (16) - 0000000000875019 [16:40:02]1040 (4) - 112353 [16:40:02]1012 (4) - 14.04.2024 10:22 [16:40:02]1206 (1) - 0 [16:40:02]OFD Sender: Remove packet 112353 [16:40:02]ProducePacketName [16:40:02]name=ofd_packets/00112353 [16:40:02]NVStorageDeleteData [16:40:02]Write to MH i2c: 01 00 00 D0 15 E5 [16:40:02]Write i2c OK [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: 01 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: 01 07 00 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: 01 07 00 D0 15 00 00 00 00 00 08 0D 01 [16:40:02]RasterBufferAndPrint [16:40:02]line [16:40:02]line [16:40:02]line [16:40:02]line [16:40:02]line [16:40:02]written 0, free lines is 3342 [16:40:02]MH_Cut [16:40:02]Write to MH i2c: D1 01 00 D7 15 01 BE [16:40:02]Write i2c OK [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: D1 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: D1 01 00 [16:40:02]MH_I2C_Read... [16:40:02]Read from MH i2c: D1 01 00 D7 15 00 BD [16:40:02]Write to MH i2c: 01 00 00 D8 15 ED [16:40:02]Write i2c OK [16:40:02]MH_I2C_Read... [16:40:02]OFD Sender: No OFD packet to send [16:40:03]*** Cut start [16:40:03]*** Partial cut [16:40:03]*** CUTSNS_PIN = 1 [16:40:03]*** CUTSNS_PIN = 0 [16:40:03]*** Brake cut motor [16:40:03]Read from MH i2c: 01 [16:40:03]MH_I2C_Read... [16:40:03]*** Stop cut motor [16:40:03]*** Cut end [16:40:03]Read from MH i2c: 01 07 00 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: 01 07 00 D8 15 00 00 00 00 00 FF 0F 02 [16:40:03]process_action close_receipt done [16:40:03]requested_data is exist [16:40:03]produce_requested_data [16:40:03]requested_item fm.sn is exist - process it [16:40:03]wFMCommunicate request_size=4 [16:40:03]MH_SAM_APDU [16:40:03]CAPDU: 80 11 00 00 [16:40:03]Write to MH i2c: E2 08 00 D9 15 80 11 00 00 00 00 00 00 68 [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:03]Read from MH i2c: E2 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 17 00 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 17 00 D9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B9 [16:40:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:40:03]wFMCommunicate OK [16:40:03]requested_item fd.num is exist - process it [16:40:03]SAM_PROTO_GetFieldsCounters [16:40:03]wFMCommunicate request_size=4 [16:40:03]MH_SAM_APDU [16:40:03]CAPDU: 80 13 00 00 [16:40:03]Write to MH i2c: E2 08 00 DA 15 80 13 00 00 00 00 00 00 6B [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:03]Read from MH i2c: E2 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 62 00 [16:40:03]MH_I2C_Read... [16:40:03]Read from MH i2c: E2 62 00 DA 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [16:40:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:40:03]wFMCommunicate OK [16:40:03]SAM_PROTO_GetFieldsCounters done [16:40:03]requested_item shift.num is exist - process it [16:40:03]requested_item shift.opened is exist - process it [16:40:03]req_shift_opened [16:40:03]FM_GetShiftState [16:40:03]SAM_PROTO_GetShiftState [16:40:03]wFMCommunicate request_size=4 [16:40:03]MH_SAM_APDU [16:40:03]CAPDU: 80 13 01 00 [16:40:03]Write to MH i2c: E2 08 00 DB 15 80 13 01 00 00 00 00 00 6D [16:40:03]Write i2c OK [16:40:03]MH_I2C_Read... [16:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:04]Read from MH i2c: E2 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 0E 00 [16:40:04]MH_I2C_Read... [16:40:04]Read from MH i2c: E2 0E 00 DB 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 05 [16:40:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:40:04]wFMCommunicate OK [16:40:04]SAM_PROTO_GetShiftState done [16:40:04]FM_GetShiftState done [16:40:04]req_shift_opened done [16:40:04]requested_item shift.open_date is exist - process it [16:40:04]req_shift_open_date [16:40:04]req_shift_open_date done [16:40:04]produce_requested_data done [16:40:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112353,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:40:04]process_action_free close_receipt [16:40:04]json_value_free [16:40:04]json_value_free done [16:40:04]process_json_proto returns [16:40:04]Send response to host [16:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112353,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:40:04]free response buf [16:40:04]execute_script done [16:40:04]execute_script returns [16:40:04]free content buf [16:40:04]Sock 8.Close socket [16:40:04]Sock 8.Thread stoped [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:40:59]accept exits with 9 [16:40:59]New connection [16:40:59]New thread 3066826084 created [16:40:59]Thread 3066682724 joined [16:40:59]Waiting for new connection... [16:40:59] Sock 9.Parse request [16:40:59]Sock 9.Check first char [16:40:59]Sock 9.First char is OK [16:40:59]request: POST /json_proto HTTP/1.0 [16:40:59]Method: POST [16:40:59]URL: /json_proto [16:40:59]Method is POST - this is cgi request [16:40:59]url: /json_proto [16:40:59]query_string will be loaded in cgi processing [16:40:59]execute_cgi json_proto POST (null) [16:40:59]execute_cgi path=json_proto method=POST [16:40:59]POST find Content-Length [16:40:59]Host: 172.17.96.197:8080 [16:40:59]Content-Length: 676 [16:40:59]Content-Type: application/json [16:40:59] [16:40:59]POST finish read [16:40:59]Found Content-Length = 676 [16:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48662", "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.30, "quantity" : 7.000, "sum" : 450.10, "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" ] } } [16:40:59]execute_script... [16:40: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)48662", "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.30, "quantity" : 7.000, "sum" : 450.10, "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" ] } } [16:40:59]POST & json_proto [16:40:59]process_json_proto [16:40:59]json parsed OK: [16:40:59]protocol is kg_v1.0 [16:40:59]action value=close_receipt [16:40:59]process_action close_receipt [16:40:59]cmd_close_receipt [16:40:59]MH_GetDate [16:40:59]Write to MH i2c: F0 00 00 DC 15 E0 [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: F0 09 00 DC 15 00 1C 07 1C 66 E0 85 7F 64 D6 [16:40:59]GetLastDocTimeStamp 1713112800 [16:40:59]current date 1713112860 [16:40:59]FM_GetShiftState [16:40:59]SAM_PROTO_GetShiftState [16:40:59]wFMCommunicate request_size=4 [16:40:59]MH_SAM_APDU [16:40:59]CAPDU: 80 13 01 00 [16:40:59]Write to MH i2c: E2 08 00 DD 15 80 13 01 00 00 00 00 00 6F [16:40:59]Write i2c OK [16:40:59]MH_I2C_Read... [16:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:59]Read from MH i2c: E2 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 [16:40:59]MH_I2C_Read... [16:40:59]Read from MH i2c: E2 0E 00 DD 15 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 07 [16:40:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:40:59]wFMCommunicate OK [16:40:59]SAM_PROTO_GetShiftState done [16:40:59]FM_GetShiftState done [16:40:59]opened in 1713054696 [16:40:59]opened+sec_in_day 1713141096 [16:40:59]quantity*price = 45010 [16:40:59]sum+1 = 45011 [16:40:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 450.00 Внесено: 450.00 СДАЧА: 0.00 НСП 1% : 3.98 НДС 12% : 47.80 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 253 14.04.2024 16:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112354 ФПД: 195919761110540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164100&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112354&fm=195919761110540&tin=02508201610067®Number=0000000000094237&sum=45000 [16:41:00]StoreToDocumentArchive [16:41:00]shift 357 fd 112354 [16:41:00]save to /storage/0357/doc_00112354 [16:41:00]save last doc name /storage/0357/doc_00112354 to /storage/kkm_last_doc_name [16:41:00]save OK [16:41:00]Clear old archive folders... [16:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:41:00]tlvbuf is 00138AF0 [16:41:00]SAM_PROTO_ClearQueue [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 09 00 00 [16:41:00]Write to MH i2c: E2 08 00 EA 15 80 09 00 00 00 00 00 00 71 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 EA 15 00 90 00 73 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]SAM_PROTO_ClearQueue done [16:41:00]KKMCreateOFDPacket [16:41:00]OFDProtocolAddRootSTLVToBuf [16:41:00]FM_MakeSignedData [16:41:00]FM_MakeSignedData [16:41:00]SAM_PROTO_SignData [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 01 02 [16:41:00]Write to MH i2c: E2 08 00 EB 15 80 0D 01 02 00 00 00 00 79 [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 EB 15 00 90 00 74 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=255 [16:41:00]MH_SAM_APDU [16:41:00]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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 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 AC 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 FD 00 00 00 F4 03 04 00 1C 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E2 B6 01 00 35 04 06 00 B2 [16:41:00]Write to MH i2c: E2 02 01 EC 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 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 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 AC 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 FD 00 00 00 F4 03 04 00 1C 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E2 B6 01 00 35 04 06 00 B2 00 00 3A [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 EC 15 00 90 00 75 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=10 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 02 02 05 30 1F C3 F6 0C [16:41:00]Write to MH i2c: E2 0D 00 ED 15 80 0D 02 02 05 00 30 1F C3 F6 0C 00 00 9A [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:41:00]Read from MH i2c: E2 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 [16:41:00]MH_I2C_Read... [16:41:00]Read from MH i2c: E2 03 00 ED 15 00 90 00 76 [16:41:00]RAPDU: 90 00 [16:41:00]wFMCommunicate OK [16:41:00]wFMCommunicate request_size=4 [16:41:00]MH_SAM_APDU [16:41:00]CAPDU: 80 0D 03 02 [16:41:00]Write to MH i2c: E2 08 00 EE 15 80 0D 03 02 00 00 00 00 7E [16:41:00]Write i2c OK [16:41:00]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 0B 00 EE 15 00 73 54 01 3D DB 21 A2 A1 90 00 C3 [16:41:01]RAPDU: 73 54 01 3D DB 21 A2 A1 90 00 [16:41:01]wFMCommunicate OK [16:41:01]SAM_PROTO_SignData done [16:41:01]FM_MakeSignedData done [16:41:01]CreateOFDProtocolMessage [16:41:01]wFMCommunicate request_size=4 [16:41:01]MH_SAM_APDU [16:41:01]CAPDU: 80 11 00 00 [16:41:01]Write to MH i2c: E2 08 00 EF 15 80 11 00 00 00 00 00 00 7E [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:01]Read from MH i2c: E2 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: E2 17 00 EF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [16:41:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:41:01]wFMCommunicate OK [16:41:01]CreateOFDProtocolMessage done [16:41:01]OFDSenderStorePacket 112354 [16:41:01]StoreOFDPacket docnum=112354 [16:41:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F3 92 07 01 E2 1F 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 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 AC 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 FD 00 00 00 F4 03 04 00 1C 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E2 B6 01 00 35 04 06 00 B2 30 1F C3 F6 0C 73 54 01 3D DB 21 A2 A1 [16:41:01]CheckFolder [16:41:01]dirname=/storage/ofd_packets [16:41:01]CheckFolder done [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00112354 [16:41:01]NVStorageSaveData ofd_packets/00112354 [16:41:01]File name is /storage/ofd_packets/00112354 [16:41:01]Write 301 bytes [16:41:01]NVStorageSaveData done [16:41:01]OFDSenderStorePacket done [16:41:01]KKMCreateOFDPacket done [16:41:01]NVStorageSaveData kkm_last_timestamp [16:41:01]File name is /storage/kkm_last_timestamp [16:41:01]Write 4 bytes [16:41:01]NVStorageSaveData done [16:41:01]ExternCall_PrintAddStr [16:41:01]wPrintStart [16:41:01]Write to MH i2c: 01 00 00 F0 15 05 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 F0 15 00 00 00 00 00 FF 0F 1A [16:41:01]RasterBufferAndPrint [16:41:01]line Счет N : (1)48662 [16:41:01]line ИНН: 02508201610067 [16:41:01]line Контрольно-Кассовый Чек [16:41:01]line ПРОДАЖА [16:41:01]line ТРК (МРК, ГНК) : 32 [16:41:01]line Товар: 2710124130 [16:41:01]line Аи-92-К-5 [16:41:01]line 7.000 * 64.30 [16:41:01]line = 450.10 [16:41:01]line НДС 12% НСП 1% [16:41:01]line > о реализуемом товаре [16:41:01]line ОКРУГЛЕНИЕ: -0.10 [16:41:01]line ИТОГО: 450.00 [16:41:01]line Внесено: 450.00 [16:41:01]line СДАЧА: 0.00 [16:41:01]line НСП 1% : 3.98 [16:41:01]line НДС 12% : 47.80 [16:41:01]line Наличными: 450.00 [16:41:01]line Безнал.: 0.00 [16:41:01]line Место: АЗС № 47 "Партнер Нефть" [16:41:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:41:01]line СНО: Общий режим [16:41:01]line Чек 253 14.04.2024 16:41 [16:41:01]line Смена: 357 ФФД: 1.0 [16:41:01]line ЗНМ: 0300000138 [16:41:01]line РНМ: 0000000000094237 [16:41:01]line Версия ККМ: 001 [16:41:01]line ФМ: 0000000000875019 [16:41:01]line ФД: 112354 [16:41:01]line ФПД: 195919761110540 [16:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164100&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112354&fm=195919761110540&tin=02508201610067®Number=0000000000094237&sum=45000 [16:41:01]written 0, free lines is 4095 [16:41:01]OFD Sender: Processing packet 112354 [packets to send 71, broken 70] [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00112354 [16:41:01]OFD Sender: To server: pG, [16:41:01]CommunicateWithHost lk.salyk.kg:30040 [16:41:01]ConnectInit lk.salyk.kg [16:41:01]Connected sock=10 [16:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F3 92 07 01 E2 1F 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 1B 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 D2 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 AC 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 FD 00 00 00 F4 03 04 00 1C 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E2 B6 01 00 35 04 06 00 B2 30 1F C3 F6 0C 73 54 01 3D DB 21 A2 A1 [16:41:01]Write to MH i2c: 01 00 00 1B 16 31 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: 01 07 00 1B 16 00 00 00 00 00 D9 0C 1D [16:41:01]RasterBufferAndPrint [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]line [16:41:01]written 0, free lines is 3296 [16:41:01]MH_Cut [16:41:01]Write to MH i2c: D1 01 00 22 16 01 0A [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 [16:41:01]MH_I2C_Read... [16:41:01]Read from MH i2c: D1 01 00 22 16 00 09 [16:41:01]Write to MH i2c: 01 00 00 23 16 39 [16:41:01]Write i2c OK [16:41:01]MH_I2C_Read... [16:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A4 1B 47 00 D1 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E2 B6 01 00 F4 03 04 00 A7 AE 1B 66 B6 04 01 00 00 F2 A3 2F E3 96 07 A6 54 [16:41:01]CommunicateWithHost err = 0 [16:41:01]CheckOFDResponse [16:41:01]1017 (14) - 77093643461234 [16:41:01]1041 (16) - 0000000000875019 [16:41:01]1040 (4) - 112354 [16:41:01]1012 (4) - 14.04.2024 10:23 [16:41:01]1206 (1) - 0 [16:41:01]OFD Sender: Remove packet 112354 [16:41:01]ProducePacketName [16:41:01]name=ofd_packets/00112354 [16:41:01]NVStorageDeleteData [16:41:02]OFD Sender: No OFD packet to send [16:41:02]*** Cut start [16:41:02]*** Partial cut [16:41:02]*** CUTSNS_PIN = 1 [16:41:02]*** CUTSNS_PIN = 0 [16:41:02]*** Brake cut motor [16:41:03]Read from MH i2c: 01 [16:41:03]MH_I2C_Read... [16:41:03]*** Stop cut motor [16:41:03]*** Cut end [16:41:03]Read from MH i2c: 01 07 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: 01 07 00 23 16 00 00 00 00 00 FF 0F 4E [16:41:03]process_action close_receipt done [16:41:03]requested_data is exist [16:41:03]produce_requested_data [16:41:03]requested_item fm.sn is exist - process it [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 11 00 00 [16:41:03]Write to MH i2c: E2 08 00 24 16 80 11 00 00 00 00 00 00 B4 [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 17 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 17 00 24 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 05 [16:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:41:03]wFMCommunicate OK [16:41:03]requested_item fd.num is exist - process it [16:41:03]SAM_PROTO_GetFieldsCounters [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 13 00 00 [16:41:03]Write to MH i2c: E2 08 00 25 16 80 13 00 00 00 00 00 00 B7 [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 62 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 62 00 25 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [16:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:41:03]wFMCommunicate OK [16:41:03]SAM_PROTO_GetFieldsCounters done [16:41:03]requested_item shift.num is exist - process it [16:41:03]requested_item shift.opened is exist - process it [16:41:03]req_shift_opened [16:41:03]FM_GetShiftState [16:41:03]SAM_PROTO_GetShiftState [16:41:03]wFMCommunicate request_size=4 [16:41:03]MH_SAM_APDU [16:41:03]CAPDU: 80 13 01 00 [16:41:03]Write to MH i2c: E2 08 00 26 16 80 13 01 00 00 00 00 00 B9 [16:41:03]Write i2c OK [16:41:03]MH_I2C_Read... [16:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:41:03]Read from MH i2c: E2 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 0E 00 [16:41:03]MH_I2C_Read... [16:41:03]Read from MH i2c: E2 0E 00 26 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 51 [16:41:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:41:03]wFMCommunicate OK [16:41:03]SAM_PROTO_GetShiftState done [16:41:03]FM_GetShiftState done [16:41:03]req_shift_opened done [16:41:03]requested_item shift.open_date is exist - process it [16:41:03]req_shift_open_date [16:41:03]req_shift_open_date done [16:41:03]produce_requested_data done [16:41:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112354,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:41:03]process_action_free close_receipt [16:41:03]json_value_free [16:41:03]json_value_free done [16:41:03]process_json_proto returns [16:41:03]Send response to host [16:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112354,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:41:03]free response buf [16:41:03]execute_script done [16:41:03]execute_script returns [16:41:03]free content buf [16:41:03]Sock 9.Close socket [16:41:03]Sock 9.Thread stoped [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:41]accept exits with 8 [16:42:41]New connection [16:42:41]New thread 3066682724 created [16:42:41]Thread 3066826084 joined [16:42:41]Waiting for new connection... [16:42:41] Sock 8.Parse request [16:42:41]Sock 8.Check first char [16:42:41]Sock 8.First char is OK [16:42:41]request: POST /json_proto HTTP/1.0 [16:42:41]Method: POST [16:42:41]URL: /json_proto [16:42:41]Method is POST - this is cgi request [16:42:41]url: /json_proto [16:42:41]query_string will be loaded in cgi processing [16:42:41]execute_cgi json_proto POST (null) [16:42:41]execute_cgi path=json_proto method=POST [16:42:41]POST find Content-Length [16:42:41]Host: 172.17.96.197:8080 [16:42:41]Content-Length: 681 [16:42:41]Content-Type: application/json [16:42:41] [16:42:41]POST finish read [16:42:41]Found Content-Length = 681 [16:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48663", "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.30, "quantity" : 15.560, "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" ] } } [16:42:41]execute_script... [16:42: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)48663", "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.30, "quantity" : 15.560, "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" ] } } [16:42:41]POST & json_proto [16:42:41]process_json_proto [16:42:41]json parsed OK: [16:42:41]protocol is kg_v1.0 [16:42:41]action value=close_receipt [16:42:41]process_action close_receipt [16:42:41]cmd_close_receipt [16:42:41]MH_GetDate [16:42:41]Write to MH i2c: F0 00 00 27 16 2C [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: F0 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: F0 09 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: F0 09 00 27 16 00 82 07 1C 66 E0 85 7F 64 88 [16:42:41]GetLastDocTimeStamp 1713112860 [16:42:41]current date 1713112962 [16:42:41]FM_GetShiftState [16:42:41]SAM_PROTO_GetShiftState [16:42:41]wFMCommunicate request_size=4 [16:42:41]MH_SAM_APDU [16:42:41]CAPDU: 80 13 01 00 [16:42:41]Write to MH i2c: E2 08 00 28 16 80 13 01 00 00 00 00 00 BB [16:42:41]Write i2c OK [16:42:41]MH_I2C_Read... [16:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:41]Read from MH i2c: E2 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0E 00 [16:42:41]MH_I2C_Read... [16:42:41]Read from MH i2c: E2 0E 00 28 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 53 [16:42:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:42:41]wFMCommunicate OK [16:42:41]SAM_PROTO_GetShiftState done [16:42:41]FM_GetShiftState done [16:42:41]opened in 1713054696 [16:42:41]opened+sec_in_day 1713141096 [16:42:41]quantity*price = 100050 [16:42:41]sum+1 = 100052 [16:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 254 14.04.2024 16:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112355 ФПД: 159164866163516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164242&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112355&fm=159164866163516&tin=02508201610067®Number=0000000000094237&sum=100000 [16:42:42]StoreToDocumentArchive [16:42:42]shift 357 fd 112355 [16:42:42]save to /storage/0357/doc_00112355 [16:42:42]save last doc name /storage/0357/doc_00112355 to /storage/kkm_last_doc_name [16:42:42]save OK [16:42:42]Clear old archive folders... [16:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:42:42]tlvbuf is B6F39620 [16:42:42]SAM_PROTO_ClearQueue [16:42:42]wFMCommunicate request_size=4 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 09 00 00 [16:42:42]Write to MH i2c: E2 08 00 35 16 80 09 00 00 00 00 00 00 BD [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:42]Read from MH i2c: E2 03 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 35 16 00 90 00 BF [16:42:42]RAPDU: 90 00 [16:42:42]wFMCommunicate OK [16:42:42]SAM_PROTO_ClearQueue done [16:42:42]KKMCreateOFDPacket [16:42:42]OFDProtocolAddRootSTLVToBuf [16:42:42]FM_MakeSignedData [16:42:42]FM_MakeSignedData [16:42:42]SAM_PROTO_SignData [16:42:42]wFMCommunicate request_size=4 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 0D 01 02 [16:42:42]Write to MH i2c: E2 08 00 36 16 80 0D 01 02 00 00 00 00 C5 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 36 16 00 90 00 C0 [16:42:42]RAPDU: 90 00 [16:42:42]wFMCommunicate OK [16:42:42]wFMCommunicate request_size=255 [16:42:42]MH_SAM_APDU [16:42: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 FE 00 00 00 F4 03 04 00 82 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E3 B6 01 00 35 04 06 00 90 [16:42:42]Write to MH i2c: E2 02 01 37 16 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 3C 00 00 00 00 00 37 04 06 00 1E 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 FE 00 00 00 F4 03 04 00 82 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E3 B6 01 00 35 04 06 00 90 00 00 6B [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]OFD Sender: No OFD packet to send [16:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 37 16 00 90 00 C1 [16:42:42]RAPDU: 90 00 [16:42:42]wFMCommunicate OK [16:42:42]wFMCommunicate request_size=10 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 0D 02 02 05 C2 75 4E F3 3C [16:42:42]Write to MH i2c: E2 0D 00 38 16 80 0D 02 02 05 00 C2 75 4E F3 3C 00 00 86 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 03 00 38 16 00 90 00 C2 [16:42:42]RAPDU: 90 00 [16:42:42]wFMCommunicate OK [16:42:42]wFMCommunicate request_size=4 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 0D 03 02 [16:42:42]Write to MH i2c: E2 08 00 39 16 80 0D 03 02 00 00 00 00 CA [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 0B 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 0B 00 39 16 00 4E 8D F6 03 64 95 1D AF 90 00 64 [16:42:42]RAPDU: 4E 8D F6 03 64 95 1D AF 90 00 [16:42:42]wFMCommunicate OK [16:42:42]SAM_PROTO_SignData done [16:42:42]FM_MakeSignedData done [16:42:42]CreateOFDProtocolMessage [16:42:42]wFMCommunicate request_size=4 [16:42:42]MH_SAM_APDU [16:42:42]CAPDU: 80 11 00 00 [16:42:42]Write to MH i2c: E2 08 00 3A 16 80 11 00 00 00 00 00 00 CA [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:42]Read from MH i2c: E2 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 17 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: E2 17 00 3A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1B [16:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:42:42]wFMCommunicate OK [16:42:42]CreateOFDProtocolMessage done [16:42:42]OFDSenderStorePacket 112355 [16:42:42]StoreOFDPacket docnum=112355 [16:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 2B 6E 07 01 51 66 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 3C 00 00 00 00 00 37 04 06 00 1E 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 FE 00 00 00 F4 03 04 00 82 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E3 B6 01 00 35 04 06 00 90 C2 75 4E F3 3C 4E 8D F6 03 64 95 1D AF [16:42:42]CheckFolder [16:42:42]dirname=/storage/ofd_packets [16:42:42]CheckFolder done [16:42:42]ProducePacketName [16:42:42]name=ofd_packets/00112355 [16:42:42]NVStorageSaveData ofd_packets/00112355 [16:42:42]File name is /storage/ofd_packets/00112355 [16:42:42]Write 301 bytes [16:42:42]NVStorageSaveData done [16:42:42]OFDSenderStorePacket done [16:42:42]KKMCreateOFDPacket done [16:42:42]NVStorageSaveData kkm_last_timestamp [16:42:42]File name is /storage/kkm_last_timestamp [16:42:42]Write 4 bytes [16:42:42]NVStorageSaveData done [16:42:42]ExternCall_PrintAddStr [16:42:42]wPrintStart [16:42:42]Write to MH i2c: 01 00 00 3B 16 51 [16:42:42]Write i2c OK [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 07 00 [16:42:42]MH_I2C_Read... [16:42:42]Read from MH i2c: 01 07 00 3B 16 00 00 00 00 00 FF 0F 66 [16:42:42]RasterBufferAndPrint [16:42:42]line Счет N : (1)48663 [16:42:42]line ИНН: 02508201610067 [16:42:42]line Контрольно-Кассовый Чек [16:42:42]line ПРОДАЖА [16:42:42]line ТРК (МРК, ГНК) : 42 [16:42:42]line Товар: 2710124130 [16:42:42]line Аи-92-К-5 [16:42:42]line 15.560 * 64.30 [16:42:42]line = 1000.51 [16:42:42]line НДС 12% НСП 1% [16:42:42]line > о реализуемом товаре [16:42:42]line ОКРУГЛЕНИЕ: -0.51 [16:42:42]line ИТОГО: 1000.00 [16:42:42]line Внесено: 1000.00 [16:42:42]line СДАЧА: 0.00 [16:42:42]line НСП 1% : 8.85 [16:42:42]line НДС 12% : 106.25 [16:42:42]line Наличными: 1000.00 [16:42:42]line Безнал.: 0.00 [16:42:42]line Место: АЗС № 47 "Партнер Нефть" [16:42:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:42:42]line СНО: Общий режим [16:42:42]line Чек 254 14.04.2024 16:42 [16:42:42]line Смена: 357 ФФД: 1.0 [16:42:42]line ЗНМ: 0300000138 [16:42:42]line РНМ: 0000000000094237 [16:42:42]line Версия ККМ: 001 [16:42:42]line ФМ: 0000000000875019 [16:42:42]line ФД: 112355 [16:42:42]line ФПД: 159164866163516 [16:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164242&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112355&fm=159164866163516&tin=02508201610067®Number=0000000000094237&sum=100000 [16:42:43]OFD Sender: Processing packet 112355 [packets to send 71, broken 70] [16:42:43]ProducePacketName [16:42:43]name=ofd_packets/00112355 [16:42:43]OFD Sender: To server: pG, [16:42:43]CommunicateWithHost lk.salyk.kg:30040 [16:42:43]ConnectInit lk.salyk.kg [16:42:43]written 0, free lines is 4095 [16:42:43]Connected sock=10 [16:42:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 2B 6E 07 01 51 66 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 3C 00 00 00 00 00 37 04 06 00 1E 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 FE 00 00 00 F4 03 04 00 82 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E3 B6 01 00 35 04 06 00 90 C2 75 4E F3 3C 4E 8D F6 03 64 95 1D AF [16:42:43]Write to MH i2c: 01 00 00 66 16 7C [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: 01 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: 01 07 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: 01 07 00 66 16 00 00 00 00 00 EC 0C 7B [16:42:43]RasterBufferAndPrint [16:42:43]line [16:42:43]line [16:42:43]line [16:42:43]line [16:42:43]line [16:42:43]written 0, free lines is 3314 [16:42:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 05 86 47 00 38 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E3 B6 01 00 F4 03 04 00 0C AF 1B 66 B6 04 01 00 00 68 91 D5 FB A8 4E F9 51 [16:42:43]CommunicateWithHost err = 0 [16:42:43]CheckOFDResponse [16:42:43]1017 (14) - 77093643461234 [16:42:43]1041 (16) - 0000000000875019 [16:42:43]1040 (4) - 112355 [16:42:43]1012 (4) - 14.04.2024 10:25 [16:42:43]1206 (1) - 0 [16:42:43]OFD Sender: Remove packet 112355 [16:42:43]ProducePacketName [16:42:43]name=ofd_packets/00112355 [16:42:43]NVStorageDeleteData [16:42:43]MH_Cut [16:42:43]Write to MH i2c: D1 01 00 6D 16 01 55 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: D1 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: D1 01 00 [16:42:43]MH_I2C_Read... [16:42:43]Read from MH i2c: D1 01 00 6D 16 00 54 [16:42:43]Write to MH i2c: 01 00 00 6E 16 84 [16:42:43]Write i2c OK [16:42:43]MH_I2C_Read... [16:42:44]OFD Sender: No OFD packet to send [16:42:44]*** Cut start [16:42:44]*** Partial cut [16:42:44]*** CUTSNS_PIN = 1 [16:42:44]*** CUTSNS_PIN = 0 [16:42:44]*** Brake cut motor [16:42:45]Read from MH i2c: 01 [16:42:45]MH_I2C_Read... [16:42:45]*** Stop cut motor [16:42:45]*** Cut end [16:42:45]Read from MH i2c: 01 07 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: 01 07 00 6E 16 00 00 00 00 00 FF 0F 99 [16:42:45]process_action close_receipt done [16:42:45]requested_data is exist [16:42:45]produce_requested_data [16:42:45]requested_item fm.sn is exist - process it [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 11 00 00 [16:42:45]Write to MH i2c: E2 08 00 6F 16 80 11 00 00 00 00 00 00 FF [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 17 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 17 00 6F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 50 [16:42:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:42:45]wFMCommunicate OK [16:42:45]requested_item fd.num is exist - process it [16:42:45]SAM_PROTO_GetFieldsCounters [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 13 00 00 [16:42:45]Write to MH i2c: E2 08 00 70 16 80 13 00 00 00 00 00 00 02 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 62 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 62 00 70 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [16:42:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:42:45]wFMCommunicate OK [16:42:45]SAM_PROTO_GetFieldsCounters done [16:42:45]requested_item shift.num is exist - process it [16:42:45]requested_item shift.opened is exist - process it [16:42:45]req_shift_opened [16:42:45]FM_GetShiftState [16:42:45]SAM_PROTO_GetShiftState [16:42:45]wFMCommunicate request_size=4 [16:42:45]MH_SAM_APDU [16:42:45]CAPDU: 80 13 01 00 [16:42:45]Write to MH i2c: E2 08 00 71 16 80 13 01 00 00 00 00 00 04 [16:42:45]Write i2c OK [16:42:45]MH_I2C_Read... [16:42:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:45]Read from MH i2c: E2 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 0E 00 [16:42:45]MH_I2C_Read... [16:42:45]Read from MH i2c: E2 0E 00 71 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9C [16:42:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:42:45]wFMCommunicate OK [16:42:45]SAM_PROTO_GetShiftState done [16:42:45]FM_GetShiftState done [16:42:45]req_shift_opened done [16:42:45]requested_item shift.open_date is exist - process it [16:42:45]req_shift_open_date [16:42:45]req_shift_open_date done [16:42:45]produce_requested_data done [16:42:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112355,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:42:45]process_action_free close_receipt [16:42:45]json_value_free [16:42:45]json_value_free done [16:42:45]process_json_proto returns [16:42:45]Send response to host [16:42:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112355,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:42:45]free response buf [16:42:45]execute_script done [16:42:45]execute_script returns [16:42:45]free content buf [16:42:45]Sock 8.Close socket [16:42:45]Sock 8.Thread stoped [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:04]accept exits with 9 [16:43:04]New connection [16:43:04]New thread 3066826084 created [16:43:04]Thread 3066682724 joined [16:43:04]Waiting for new connection... [16:43:04] Sock 9.Parse request [16:43:04]Sock 9.Check first char [16:43:04]Sock 9.First char is OK [16:43:04]request: POST /json_proto HTTP/1.0 [16:43:04]Method: POST [16:43:04]URL: /json_proto [16:43:04]Method is POST - this is cgi request [16:43:04]url: /json_proto [16:43:04]query_string will be loaded in cgi processing [16:43:04]execute_cgi json_proto POST (null) [16:43:04]execute_cgi path=json_proto method=POST [16:43:04]POST find Content-Length [16:43:04]Host: 172.17.96.197:8080 [16:43:04]Content-Length: 681 [16:43:04]Content-Type: application/json [16:43:04] [16:43:04]POST finish read [16:43:04]Found Content-Length = 681 [16:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [16:43:04]execute_script... [16: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)48664", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [16:43:04]POST & json_proto [16:43:04]process_json_proto [16:43:04]json parsed OK: [16:43:04]protocol is kg_v1.0 [16:43:04]action value=close_receipt [16:43:04]process_action close_receipt [16:43:04]cmd_close_receipt [16:43:04]MH_GetDate [16:43:04]Write to MH i2c: F0 00 00 72 16 77 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 09 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: F0 09 00 72 16 00 99 07 1C 66 E0 85 7F 64 EA [16:43:04]GetLastDocTimeStamp 1713112962 [16:43:04]current date 1713112985 [16:43:04]FM_GetShiftState [16:43:04]SAM_PROTO_GetShiftState [16:43:04]wFMCommunicate request_size=4 [16:43:04]MH_SAM_APDU [16:43:04]CAPDU: 80 13 01 00 [16:43:04]Write to MH i2c: E2 08 00 73 16 80 13 01 00 00 00 00 00 06 [16:43:04]Write i2c OK [16:43:04]MH_I2C_Read... [16:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:04]Read from MH i2c: E2 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 [16:43:04]MH_I2C_Read... [16:43:04]Read from MH i2c: E2 0E 00 73 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9E [16:43:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:43:04]wFMCommunicate OK [16:43:04]SAM_PROTO_GetShiftState done [16:43:04]FM_GetShiftState done [16:43:04]opened in 1713054696 [16:43:04]opened+sec_in_day 1713141096 [16:43:04]quantity*price = 100050 [16:43:04]sum+1 = 100051 [16:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 255 14.04.2024 16:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112356 ФПД: 174456595169457 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164305&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112356&fm=174456595169457&tin=02508201610067®Number=0000000000094237&sum=100000 [16:43:05]StoreToDocumentArchive [16:43:05]shift 357 fd 112356 [16:43:05]save to /storage/0357/doc_00112356 [16:43:05]save last doc name /storage/0357/doc_00112356 to /storage/kkm_last_doc_name [16:43:05]save OK [16:43:05]Clear old archive folders... [16:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:43:05]tlvbuf is 001387E0 [16:43:05]SAM_PROTO_ClearQueue [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 09 00 00 [16:43:05]Write to MH i2c: E2 08 00 80 16 80 09 00 00 00 00 00 00 08 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 80 16 00 90 00 0A [16:43:05]RAPDU: 90 00 [16:43:05]wFMCommunicate OK [16:43:05]SAM_PROTO_ClearQueue done [16:43:05]KKMCreateOFDPacket [16:43:05]OFDProtocolAddRootSTLVToBuf [16:43:05]FM_MakeSignedData [16:43:05]FM_MakeSignedData [16:43:05]SAM_PROTO_SignData [16:43:05]wFMCommunicate request_size=4 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 0D 01 02 [16:43:05]Write to MH i2c: E2 08 00 81 16 80 0D 01 02 00 00 00 00 10 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:43:05]Read from MH i2c: E2 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 [16:43:05]MH_I2C_Read... [16:43:05]Read from MH i2c: E2 03 00 81 16 00 90 00 0B [16:43:05]RAPDU: 90 00 [16:43:05]wFMCommunicate OK [16:43:05]wFMCommunicate request_size=255 [16:43:05]MH_SAM_APDU [16:43:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 FF 00 00 00 F4 03 04 00 99 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E4 B6 01 00 35 04 06 00 9E [16:43:05]Write to MH i2c: E2 02 01 82 16 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 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 FF 00 00 00 F4 03 04 00 99 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E4 B6 01 00 35 04 06 00 9E 00 00 30 [16:43:05]Write i2c OK [16:43:05]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 82 16 00 90 00 0C [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]wFMCommunicate request_size=10 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 0D 02 02 05 AA D7 62 40 B1 [16:43:06]Write to MH i2c: E2 0D 00 83 16 80 0D 02 02 05 00 AA D7 62 40 B1 00 00 F1 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 03 00 83 16 00 90 00 0D [16:43:06]RAPDU: 90 00 [16:43:06]wFMCommunicate OK [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 0D 03 02 [16:43:06]Write to MH i2c: E2 08 00 84 16 80 0D 03 02 00 00 00 00 15 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0B 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 0B 00 84 16 00 D6 CD E2 D3 AB 0C 53 1B 90 00 93 [16:43:06]RAPDU: D6 CD E2 D3 AB 0C 53 1B 90 00 [16:43:06]wFMCommunicate OK [16:43:06]SAM_PROTO_SignData done [16:43:06]FM_MakeSignedData done [16:43:06]CreateOFDProtocolMessage [16:43:06]wFMCommunicate request_size=4 [16:43:06]MH_SAM_APDU [16:43:06]CAPDU: 80 11 00 00 [16:43:06]Write to MH i2c: E2 08 00 85 16 80 11 00 00 00 00 00 00 15 [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:06]Read from MH i2c: E2 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 17 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: E2 17 00 85 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 66 [16:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:43:06]wFMCommunicate OK [16:43:06]CreateOFDProtocolMessage done [16:43:06]OFDSenderStorePacket 112356 [16:43:06]StoreOFDPacket docnum=112356 [16:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CD 66 07 01 F9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 FF 00 00 00 F4 03 04 00 99 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E4 B6 01 00 35 04 06 00 9E AA D7 62 40 B1 D6 CD E2 D3 AB 0C 53 1B [16:43:06]CheckFolder [16:43:06]dirname=/storage/ofd_packets [16:43:06]CheckFolder done [16:43:06]ProducePacketName [16:43:06]name=ofd_packets/00112356 [16:43:06]NVStorageSaveData ofd_packets/00112356 [16:43:06]File name is /storage/ofd_packets/00112356 [16:43:06]Write 301 bytes [16:43:06]NVStorageSaveData done [16:43:06]OFDSenderStorePacket done [16:43:06]KKMCreateOFDPacket done [16:43:06]NVStorageSaveData kkm_last_timestamp [16:43:06]File name is /storage/kkm_last_timestamp [16:43:06]Write 4 bytes [16:43:06]NVStorageSaveData done [16:43:06]ExternCall_PrintAddStr [16:43:06]wPrintStart [16:43:06]Write to MH i2c: 01 00 00 86 16 9C [16:43:06]Write i2c OK [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 [16:43:06]MH_I2C_Read... [16:43:06]Read from MH i2c: 01 07 00 86 16 00 00 00 00 00 FF 0F B1 [16:43:06]RasterBufferAndPrint [16:43:06]line Счет N : (1)48664 [16:43:06]line ИНН: 02508201610067 [16:43:06]line Контрольно-Кассовый Чек [16:43:06]line ПРОДАЖА [16:43:06]line ТРК (МРК, ГНК) : 22 [16:43:06]line Товар: 2710124500 [16:43:06]line Аи-95-К-5 [16:43:06]line 13.800 * 72.50 [16:43:06]line = 1000.50 [16:43:06]line НДС 12% НСП 1% [16:43:06]line > о реализуемом товаре [16:43:06]line ОКРУГЛЕНИЕ: -0.50 [16:43:06]line ИТОГО: 1000.00 [16:43:06]line Внесено: 1000.00 [16:43:06]line СДАЧА: 0.00 [16:43:06]line НСП 1% : 8.85 [16:43:06]line НДС 12% : 106.25 [16:43:06]line Наличными: 1000.00 [16:43:06]line Безнал.: 0.00 [16:43:06]line Место: АЗС № 47 "Партнер Нефть" [16:43:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:43:06]line СНО: Общий режим [16:43:06]line Чек 255 14.04.2024 16:43 [16:43:06]line Смена: 357 ФФД: 1.0 [16:43:06]line ЗНМ: 0300000138 [16:43:06]line РНМ: 0000000000094237 [16:43:06]line Версия ККМ: 001 [16:43:06]line ФМ: 0000000000875019 [16:43:06]line ФД: 112356 [16:43:06]line ФПД: 174456595169457 [16:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164305&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112356&fm=174456595169457&tin=02508201610067®Number=0000000000094237&sum=100000 [16:43:06]OFD Sender: Processing packet 112356 [packets to send 71, broken 70] [16:43:06]ProducePacketName [16:43:06]name=ofd_packets/00112356 [16:43:06]OFD Sender: To server: pG, [16:43:06]CommunicateWithHost lk.salyk.kg:30040 [16:43:06]ConnectInit lk.salyk.kg [16:43:06]written 0, free lines is 4095 [16:43:06]Connected sock=10 [16:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CD 66 07 01 F9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 FF 00 00 00 F4 03 04 00 99 07 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E4 B6 01 00 35 04 06 00 9E AA D7 62 40 B1 D6 CD E2 D3 AB 0C 53 1B [16:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 82 E0 47 00 0A 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 38 37 35 30 31 39 10 04 04 00 E4 B6 01 00 F4 03 04 00 24 AF 1B 66 B6 04 01 00 00 03 B0 50 9D FF 5F 64 B8 [16:43:07]CommunicateWithHost err = 0 [16:43:07]CheckOFDResponse [16:43:07]1017 (14) - 77093643461234 [16:43:07]1041 (16) - 0000000000875019 [16:43:07]1040 (4) - 112356 [16:43:07]1012 (4) - 14.04.2024 10:25 [16:43:07]1206 (1) - 0 [16:43:07]OFD Sender: Remove packet 112356 [16:43:07]ProducePacketName [16:43:07]name=ofd_packets/00112356 [16:43:07]NVStorageDeleteData [16:43:07]Write to MH i2c: 01 00 00 B1 16 C7 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: 01 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: 01 07 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: 01 07 00 B1 16 00 00 00 00 00 E9 0C C3 [16:43:07]RasterBufferAndPrint [16:43:07]line [16:43:07]line [16:43:07]line [16:43:07]line [16:43:07]line [16:43:07]written 0, free lines is 3311 [16:43:07]MH_Cut [16:43:07]Write to MH i2c: D1 01 00 B8 16 01 A0 [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 01 00 [16:43:07]MH_I2C_Read... [16:43:07]Read from MH i2c: D1 01 00 B8 16 00 9F [16:43:07]Write to MH i2c: 01 00 00 B9 16 CF [16:43:07]Write i2c OK [16:43:07]MH_I2C_Read... [16:43:07]OFD Sender: No OFD packet to send [16:43:07]*** Cut start [16:43:07]*** Partial cut [16:43:07]*** CUTSNS_PIN = 1 [16:43:07]*** CUTSNS_PIN = 0 [16:43:08]*** Brake cut motor [16:43:08]Read from MH i2c: 01 [16:43:08]MH_I2C_Read... [16:43:08]*** Stop cut motor [16:43:08]*** Cut end [16:43:08]Read from MH i2c: 01 07 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: 01 07 00 B9 16 00 00 00 00 00 FF 0F E4 [16:43:08]process_action close_receipt done [16:43:08]requested_data is exist [16:43:08]produce_requested_data [16:43:08]requested_item fm.sn is exist - process it [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 11 00 00 [16:43:08]Write to MH i2c: E2 08 00 BA 16 80 11 00 00 00 00 00 00 4A [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 17 00 BA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9B [16:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:43:08]wFMCommunicate OK [16:43:08]requested_item fd.num is exist - process it [16:43:08]SAM_PROTO_GetFieldsCounters [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 13 00 00 [16:43:08]Write to MH i2c: E2 08 00 BB 16 80 13 00 00 00 00 00 00 4D [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 62 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 62 00 BB 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [16:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_GetFieldsCounters done [16:43:08]requested_item shift.num is exist - process it [16:43:08]requested_item shift.opened is exist - process it [16:43:08]req_shift_opened [16:43:08]FM_GetShiftState [16:43:08]SAM_PROTO_GetShiftState [16:43:08]wFMCommunicate request_size=4 [16:43:08]MH_SAM_APDU [16:43:08]CAPDU: 80 13 01 00 [16:43:08]Write to MH i2c: E2 08 00 BC 16 80 13 01 00 00 00 00 00 4F [16:43:08]Write i2c OK [16:43:08]MH_I2C_Read... [16:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:43:08]Read from MH i2c: E2 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 [16:43:08]MH_I2C_Read... [16:43:08]Read from MH i2c: E2 0E 00 BC 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E7 [16:43:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:43:08]wFMCommunicate OK [16:43:08]SAM_PROTO_GetShiftState done [16:43:08]FM_GetShiftState done [16:43:08]req_shift_opened done [16:43:08]requested_item shift.open_date is exist - process it [16:43:08]req_shift_open_date [16:43:08]req_shift_open_date done [16:43:08]produce_requested_data done [16:43:08]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112356,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:43:08]process_action_free close_receipt [16:43:08]json_value_free [16:43:08]json_value_free done [16:43:08]process_json_proto returns [16:43:08]Send response to host [16:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112356,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:43:08]free response buf [16:43:08]execute_script done [16:43:08]execute_script returns [16:43:08]free content buf [16:43:08]Sock 9.Close socket [16:43:08]Sock 9.Thread stoped [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:57]OFD Sender: No OFD packet to send [16:45:02]OFD Sender: No OFD packet to send [16:45:07]OFD Sender: No OFD packet to send [16:45:12]OFD Sender: No OFD packet to send [16:45:17]OFD Sender: No OFD packet to send [16:45:22]OFD Sender: No OFD packet to send [16:45:27]OFD Sender: No OFD packet to send [16:45:32]OFD Sender: No OFD packet to send [16:45:37]OFD Sender: No OFD packet to send [16:45:42]OFD Sender: No OFD packet to send [16:45:47]OFD Sender: No OFD packet to send [16:45:52]OFD Sender: No OFD packet to send [16:45:57]OFD Sender: No OFD packet to send [16:46:02]OFD Sender: No OFD packet to send [16:46:07]OFD Sender: No OFD packet to send [16:46:12]OFD Sender: No OFD packet to send [16:46:17]OFD Sender: No OFD packet to send [16:46:22]OFD Sender: No OFD packet to send [16:46:27]OFD Sender: No OFD packet to send [16:46:32]OFD Sender: No OFD packet to send [16:46:37]OFD Sender: No OFD packet to send [16:46:42]OFD Sender: No OFD packet to send [16:46:47]accept exits with 8 [16:46:47]New connection [16:46:47]New thread 3066682724 created [16:46:47]Thread 3066826084 joined [16:46:47]Waiting for new connection... [16:46:47] Sock 8.Parse request [16:46:47]Sock 8.Check first char [16:46:47]Sock 8.First char is OK [16:46:47]request: POST /json_proto HTTP/1.0 [16:46:47]Method: POST [16:46:47]URL: /json_proto [16:46:47]Method is POST - this is cgi request [16:46:47]url: /json_proto [16:46:47]query_string will be loaded in cgi processing [16:46:47]execute_cgi json_proto POST (null) [16:46:47]execute_cgi path=json_proto method=POST [16:46:47]POST find Content-Length [16:46:47]Host: 172.17.96.197:8080 [16:46:47]Content-Length: 680 [16:46:47]Content-Type: application/json [16:46:47] [16:46:47]POST finish read [16:46:47]Found Content-Length = 680 [16:46:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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" ] } } [16:46:47]execute_script... [16:46: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)48665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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" ] } } [16:46:47]POST & json_proto [16:46:47]process_json_proto [16:46:47]json parsed OK: [16:46:47]protocol is kg_v1.0 [16:46:47]action value=close_receipt [16:46:47]process_action close_receipt [16:46:47]cmd_close_receipt [16:46:47]MH_GetDate [16:46:47]Write to MH i2c: F0 00 00 BD 16 C2 [16:46:47]Write i2c OK [16:46:47]MH_I2C_Read... [16:46:47]Read from MH i2c: F0 [16:46:47]MH_I2C_Read... [16:46:47]Read from MH i2c: F0 09 00 [16:46:47]MH_I2C_Read... [16:46:47]Read from MH i2c: F0 09 00 BD 16 00 78 08 1C 66 E0 85 7F 64 15 [16:46:47]GetLastDocTimeStamp 1713112985 [16:46:47]current date 1713113208 [16:46:47]FM_GetShiftState [16:46:47]SAM_PROTO_GetShiftState [16:46:47]wFMCommunicate request_size=4 [16:46:47]MH_SAM_APDU [16:46:47]CAPDU: 80 13 01 00 [16:46:47]Write to MH i2c: E2 08 00 BE 16 80 13 01 00 00 00 00 00 51 [16:46:47]Write i2c OK [16:46:47]MH_I2C_Read... [16:46:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:47]Read from MH i2c: E2 [16:46:47]MH_I2C_Read... [16:46:47]Read from MH i2c: E2 0E 00 [16:46:47]MH_I2C_Read... [16:46:47]Read from MH i2c: E2 0E 00 BE 16 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E9 [16:46:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:46:47]wFMCommunicate OK [16:46:47]SAM_PROTO_GetShiftState done [16:46:47]FM_GetShiftState done [16:46:47]opened in 1713054696 [16:46:47]opened+sec_in_day 1713141096 [16:46:47]quantity*price = 50031 [16:46:47]sum+1 = 50032 [16:46:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 256 14.04.2024 16:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112357 ФПД: 240204854259599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164648&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112357&fm=240204854259599&tin=02508201610067®Number=0000000000094237&sum=50000 [16:46:48]StoreToDocumentArchive [16:46:48]shift 357 fd 112357 [16:46:48]save to /storage/0357/doc_00112357 [16:46:48]save last doc name /storage/0357/doc_00112357 to /storage/kkm_last_doc_name [16:46:48]save OK [16:46:48]Clear old archive folders... [16:46:48]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:46:48]tlvbuf is 00138740 [16:46:48]SAM_PROTO_ClearQueue [16:46:48]wFMCommunicate request_size=4 [16:46:48]MH_SAM_APDU [16:46:48]CAPDU: 80 09 00 00 [16:46:48]Write to MH i2c: E2 08 00 CB 16 80 09 00 00 00 00 00 00 53 [16:46:48]Write i2c OK [16:46:48]MH_I2C_Read... [16:46:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:48]Read from MH i2c: E2 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: E2 03 00 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: E2 03 00 CB 16 00 90 00 55 [16:46:48]RAPDU: 90 00 [16:46:48]wFMCommunicate OK [16:46:48]SAM_PROTO_ClearQueue done [16:46:48]KKMCreateOFDPacket [16:46:48]OFDProtocolAddRootSTLVToBuf [16:46:48]FM_MakeSignedData [16:46:48]FM_MakeSignedData [16:46:48]SAM_PROTO_SignData [16:46:48]wFMCommunicate request_size=4 [16:46:48]MH_SAM_APDU [16:46:48]CAPDU: 80 0D 01 02 [16:46:48]Write to MH i2c: E2 08 00 CC 16 80 0D 01 02 00 00 00 00 5B [16:46:48]Write i2c OK [16:46:48]MH_I2C_Read... [16:46:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:48]Read from MH i2c: E2 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: E2 03 00 [16:46:48]MH_I2C_Read... [16:46:48]Read from MH i2c: E2 03 00 CC 16 00 90 00 56 [16:46:48]RAPDU: 90 00 [16:46:48]wFMCommunicate OK [16:46:48]wFMCommunicate request_size=255 [16:46:48]MH_SAM_APDU [16:46:48]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 78 08 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E5 B6 01 00 35 04 06 00 DA 77 [16:46:48]Write to MH i2c: E2 02 01 CD 16 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 78 08 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E5 B6 01 00 35 04 06 00 DA 77 00 00 1A [16:46:48]Write i2c OK [16:46:48]MH_I2C_Read... [16:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:49]Read from MH i2c: E2 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 03 00 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 03 00 CD 16 00 90 00 57 [16:46:49]RAPDU: 90 00 [16:46:49]wFMCommunicate OK [16:46:49]wFMCommunicate request_size=9 [16:46:49]MH_SAM_APDU [16:46:49]CAPDU: 80 0D 02 02 04 0D 02 EF 8F [16:46:49]Write to MH i2c: E2 0C 00 CE 16 80 0D 02 02 04 00 0D 02 EF 8F 00 00 F3 [16:46:49]Write i2c OK [16:46:49]MH_I2C_Read... [16:46:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:49]Read from MH i2c: E2 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 03 00 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 03 00 CE 16 00 90 00 58 [16:46:49]RAPDU: 90 00 [16:46:49]wFMCommunicate OK [16:46:49]wFMCommunicate request_size=4 [16:46:49]MH_SAM_APDU [16:46:49]CAPDU: 80 0D 03 02 [16:46:49]Write to MH i2c: E2 08 00 CF 16 80 0D 03 02 00 00 00 00 60 [16:46:49]Write i2c OK [16:46:49]MH_I2C_Read... [16:46:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:49]Read from MH i2c: E2 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 0B 00 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 0B 00 CF 16 00 9C 0B 24 6F 69 D0 36 5D 90 00 67 [16:46:49]RAPDU: 9C 0B 24 6F 69 D0 36 5D 90 00 [16:46:49]wFMCommunicate OK [16:46:49]SAM_PROTO_SignData done [16:46:49]FM_MakeSignedData done [16:46:49]CreateOFDProtocolMessage [16:46:49]wFMCommunicate request_size=4 [16:46:49]MH_SAM_APDU [16:46:49]CAPDU: 80 11 00 00 [16:46:49]Write to MH i2c: E2 08 00 D0 16 80 11 00 00 00 00 00 00 60 [16:46:49]Write i2c OK [16:46:49]MH_I2C_Read... [16:46:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:49]Read from MH i2c: E2 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 17 00 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: E2 17 00 D0 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B1 [16:46:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:46:49]wFMCommunicate OK [16:46:49]CreateOFDProtocolMessage done [16:46:49]OFDSenderStorePacket 112357 [16:46:49]StoreOFDPacket docnum=112357 [16:46:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 CC 7D 06 01 D5 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 78 08 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E5 B6 01 00 35 04 06 00 DA 77 0D 02 EF 8F 9C 0B 24 6F 69 D0 36 5D [16:46:49]CheckFolder [16:46:49]dirname=/storage/ofd_packets [16:46:49]CheckFolder done [16:46:49]ProducePacketName [16:46:49]name=ofd_packets/00112357 [16:46:49]NVStorageSaveData ofd_packets/00112357 [16:46:49]File name is /storage/ofd_packets/00112357 [16:46:49]Write 300 bytes [16:46:49]NVStorageSaveData done [16:46:49]OFDSenderStorePacket done [16:46:49]KKMCreateOFDPacket done [16:46:49]NVStorageSaveData kkm_last_timestamp [16:46:49]File name is /storage/kkm_last_timestamp [16:46:49]Write 4 bytes [16:46:49]NVStorageSaveData done [16:46:49]ExternCall_PrintAddStr [16:46:49]wPrintStart [16:46:49]Write to MH i2c: 01 00 00 D1 16 E7 [16:46:49]Write i2c OK [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: 01 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: 01 07 00 [16:46:49]MH_I2C_Read... [16:46:49]Read from MH i2c: 01 07 00 D1 16 00 00 00 00 00 FF 0F FC [16:46:49]RasterBufferAndPrint [16:46:49]line Счет N : (1)48665 [16:46:49]line ИНН: 02508201610067 [16:46:49]line Контрольно-Кассовый Чек [16:46:49]line ПРОДАЖА [16:46:49]line ТРК (МРК, ГНК) : 72 [16:46:49]line Товар: 2711190000 [16:46:49]line ГАЗ-К-5 [16:46:49]line 15.300 * 32.70 [16:46:49]line = 500.31 [16:46:49]line НДС 12% НСП 1% [16:46:49]line > о реализуемом товаре [16:46:49]line ОКРУГЛЕНИЕ: -0.31 [16:46:49]line ИТОГО: 500.00 [16:46:49]line Внесено: 500.00 [16:46:49]line СДАЧА: 0.00 [16:46:49]line НСП 1% : 4.43 [16:46:49]line НДС 12% : 53.13 [16:46:49]line Наличными: 500.00 [16:46:49]line Безнал.: 0.00 [16:46:49]line Место: АЗС № 47 "Партнер Нефть" [16:46:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [16:46:49]line СНО: Общий режим [16:46:49]line Чек 256 14.04.2024 16:46 [16:46:49]line Смена: 357 ФФД: 1.0 [16:46:49]line ЗНМ: 0300000138 [16:46:49]line РНМ: 0000000000094237 [16:46:49]line Версия ККМ: 001 [16:46:49]line ФМ: 0000000000875019 [16:46:49]line ФД: 112357 [16:46:49]line ФПД: 240204854259599 [16:46:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T164648&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112357&fm=240204854259599&tin=02508201610067®Number=0000000000094237&sum=50000 [16:46:49]OFD Sender: Processing packet 112357 [packets to send 71, broken 70] [16:46:49]ProducePacketName [16:46:49]name=ofd_packets/00112357 [16:46:49]OFD Sender: To server: pG, [16:46:49]CommunicateWithHost lk.salyk.kg:30040 [16:46:49]ConnectInit lk.salyk.kg [16:46:49]written 0, free lines is 4095 [16:46:49]Connected sock=10 [16:46:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 CC 7D 06 01 D5 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 78 08 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E5 B6 01 00 35 04 06 00 DA 77 0D 02 EF 8F 9C 0B 24 6F 69 D0 36 5D [16:46:50]Write to MH i2c: 01 00 00 FC 16 12 [16:46:50]Write i2c OK [16:46:50]MH_I2C_Read... [16:46:50]Read from MH i2c: 01 [16:46:50]MH_I2C_Read... [16:46:50]Read from MH i2c: 01 07 00 [16:46:50]MH_I2C_Read... [16:46:50]Read from MH i2c: 01 07 00 FC 16 00 00 00 00 00 E4 0C 09 [16:46:50]RasterBufferAndPrint [16:46:50]line [16:46:50]line [16:46:50]line [16:46:50]line [16:46:50]line [16:46:50]written 0, free lines is 3306 [16:46:50]MH_Cut [16:46:50]Write to MH i2c: D1 01 00 03 17 01 EC [16:46:50]Write i2c OK [16:46:50]MH_I2C_Read... [16:46:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C5 E5 47 00 6F 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E5 B6 01 00 F4 03 04 00 03 B0 1B 66 B6 04 01 00 00 7F B8 E1 78 74 F1 50 9D [16:46:50]CommunicateWithHost err = 0 [16:46:50]CheckOFDResponse [16:46:50]1017 (14) - 77093643461234 [16:46:50]1041 (16) - 0000000000875019 [16:46:50]1040 (4) - 112357 [16:46:50]1012 (4) - 14.04.2024 10:29 [16:46:50]1206 (1) - 0 [16:46:50]OFD Sender: Remove packet 112357 [16:46:50]ProducePacketName [16:46:50]name=ofd_packets/00112357 [16:46:50]NVStorageDeleteData [16:46:50]Read from MH i2c: D1 [16:46:50]MH_I2C_Read... [16:46:50]Read from MH i2c: D1 01 00 [16:46:50]MH_I2C_Read... [16:46:50]Read from MH i2c: D1 01 00 03 17 00 EB [16:46:50]Write to MH i2c: 01 00 00 04 17 1B [16:46:50]Write i2c OK [16:46:50]MH_I2C_Read... [16:46:50]OFD Sender: No OFD packet to send [16:46:50]*** Cut start [16:46:50]*** Partial cut [16:46:50]*** CUTSNS_PIN = 1 [16:46:50]*** CUTSNS_PIN = 0 [16:46:51]*** Brake cut motor [16:46:51]Read from MH i2c: 01 [16:46:51]MH_I2C_Read... [16:46:51]*** Stop cut motor [16:46:51]*** Cut end [16:46:51]Read from MH i2c: 01 07 00 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: 01 07 00 04 17 00 00 00 00 00 FF 0F 30 [16:46:51]process_action close_receipt done [16:46:51]requested_data is exist [16:46:51]produce_requested_data [16:46:51]requested_item fm.sn is exist - process it [16:46:51]wFMCommunicate request_size=4 [16:46:51]MH_SAM_APDU [16:46:51]CAPDU: 80 11 00 00 [16:46:51]Write to MH i2c: E2 08 00 05 17 80 11 00 00 00 00 00 00 96 [16:46:51]Write i2c OK [16:46:51]MH_I2C_Read... [16:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:51]Read from MH i2c: E2 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 17 00 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 17 00 05 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E7 [16:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [16:46:51]wFMCommunicate OK [16:46:51]requested_item fd.num is exist - process it [16:46:51]SAM_PROTO_GetFieldsCounters [16:46:51]wFMCommunicate request_size=4 [16:46:51]MH_SAM_APDU [16:46:51]CAPDU: 80 13 00 00 [16:46:51]Write to MH i2c: E2 08 00 06 17 80 13 00 00 00 00 00 00 99 [16:46:51]Write i2c OK [16:46:51]MH_I2C_Read... [16:46:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:51]Read from MH i2c: E2 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 62 00 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 62 00 06 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 BD [16:46:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:51]wFMCommunicate OK [16:46:51]SAM_PROTO_GetFieldsCounters done [16:46:51]requested_item shift.num is exist - process it [16:46:51]requested_item shift.opened is exist - process it [16:46:51]req_shift_opened [16:46:51]FM_GetShiftState [16:46:51]SAM_PROTO_GetShiftState [16:46:51]wFMCommunicate request_size=4 [16:46:51]MH_SAM_APDU [16:46:51]CAPDU: 80 13 01 00 [16:46:51]Write to MH i2c: E2 08 00 07 17 80 13 01 00 00 00 00 00 9B [16:46:51]Write i2c OK [16:46:51]MH_I2C_Read... [16:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:51]Read from MH i2c: E2 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 0E 00 [16:46:51]MH_I2C_Read... [16:46:51]Read from MH i2c: E2 0E 00 07 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 33 [16:46:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [16:46:51]wFMCommunicate OK [16:46:51]SAM_PROTO_GetShiftState done [16:46:51]FM_GetShiftState done [16:46:51]req_shift_opened done [16:46:51]requested_item shift.open_date is exist - process it [16:46:51]req_shift_open_date [16:46:51]req_shift_open_date done [16:46:51]produce_requested_data done [16:46:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112357,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [16:46:51]process_action_free close_receipt [16:46:51]json_value_free [16:46:51]json_value_free done [16:46:51]process_json_proto returns [16:46:51]Send response to host [16:46:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112357,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [16:46:51]free response buf [16:46:51]execute_script done [16:46:51]execute_script returns [16:46:51]free content buf [16:46:51]Sock 8.Close socket [16:46:51]Sock 8.Thread stoped [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:10]OFD Sender: No OFD packet to send [16:47:15]OFD Sender: No OFD packet to send [16:47:20]OFD Sender: No OFD packet to send [16:47:25]OFD Sender: No OFD packet to send [16:47:30]OFD Sender: No OFD packet to send [16:47:35]OFD Sender: No OFD packet to send [16:47:40]OFD Sender: No OFD packet to send [16:47:45]OFD Sender: No OFD packet to send [16:47:50]OFD Sender: No OFD packet to send [16:47:55]OFD Sender: No OFD packet to send [16:48:00]OFD Sender: No OFD packet to send [16:48:05]OFD Sender: No OFD packet to send [16:48:10]OFD Sender: No OFD packet to send [16:48:15]OFD Sender: No OFD packet to send [16:48:20]OFD Sender: No OFD packet to send [16:48:25]OFD Sender: No OFD packet to send [16:48:30]OFD Sender: No OFD packet to send [16:48:35]OFD Sender: No OFD packet to send [16:48:40]OFD Sender: No OFD packet to send [16:48:45]OFD Sender: No OFD packet to send [16:48:50]OFD Sender: No OFD packet to send [16:48:55]OFD Sender: No OFD packet to send [16:49:00]OFD Sender: No OFD packet to send [16:49:05]OFD Sender: No OFD packet to send [16:49:10]OFD Sender: No OFD packet to send [16:49:15]OFD Sender: No OFD packet to send [16:49:20]OFD Sender: No OFD packet to send [16:49:25]OFD Sender: No OFD packet to send [16:49:30]OFD Sender: No OFD packet to send [16:49:35]OFD Sender: No OFD packet to send [16:49:40]OFD Sender: No OFD packet to send [16:49:45]OFD Sender: No OFD packet to send [16:49:50]OFD Sender: No OFD packet to send [16:49:55]OFD Sender: No OFD packet to send [16:50:00]OFD Sender: No OFD packet to send [16:50:05]OFD Sender: No OFD packet to send [16:50:10]OFD Sender: No OFD packet to send [16:50:15]OFD Sender: No OFD packet to send [16:50:20]OFD Sender: No OFD packet to send [16:50:25]OFD Sender: No OFD packet to send [16:50:30]OFD Sender: No OFD packet to send [16:50:35]OFD Sender: No OFD packet to send [16:50:40]OFD Sender: No OFD packet to send [16:50:45]OFD Sender: No OFD packet to send [16:50:50]OFD Sender: No OFD packet to send [16:50:55]OFD Sender: No OFD packet to send [16:51:00]OFD Sender: No OFD packet to send [16:51:05]OFD Sender: No OFD packet to send [16:51:10]OFD Sender: No OFD packet to send [16:51:15]OFD Sender: No OFD packet to send [16:51:20]OFD Sender: No OFD packet to send [16:51:25]OFD Sender: No OFD packet to send [16:51:30]OFD Sender: No OFD packet to send [16:51:35]OFD Sender: No OFD packet to send [16:51:40]OFD Sender: No OFD packet to send [16:51:45]OFD Sender: No OFD packet to send [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:21]OFD Sender: No OFD packet to send [16:54:26]OFD Sender: No OFD packet to send [16:54:31]OFD Sender: No OFD packet to send [16:54:36]OFD Sender: No OFD packet to send [16:54:41]OFD Sender: No OFD packet to send [16:54:46]OFD Sender: No OFD packet to send [16:54:51]OFD Sender: No OFD packet to send [16:54:56]OFD Sender: No OFD packet to send [16:55:01]OFD Sender: No OFD packet to send [16:55:06]OFD Sender: No OFD packet to send [16:55:11]OFD Sender: No OFD packet to send [16:55:16]OFD Sender: No OFD packet to send [16:55:21]OFD Sender: No OFD packet to send [16:55:26]OFD Sender: No OFD packet to send [16:55:31]OFD Sender: No OFD packet to send [16:55:36]OFD Sender: No OFD packet to send [16:55:41]OFD Sender: No OFD packet to send [16:55:46]OFD Sender: No OFD packet to send [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:06]OFD Sender: No OFD packet to send [16:58:11]OFD Sender: No OFD packet to send [16:58:16]OFD Sender: No OFD packet to send [16:58:21]OFD Sender: No OFD packet to send [16:58:26]OFD Sender: No OFD packet to send [16:58:31]OFD Sender: No OFD packet to send [16:58:36]OFD Sender: No OFD packet to send [16:58:41]OFD Sender: No OFD packet to send [16:58:46]OFD Sender: No OFD packet to send [16:58:51]OFD Sender: No OFD packet to send [16:58:56]OFD Sender: No OFD packet to send [16:59:01]OFD Sender: No OFD packet to send [16:59:06]OFD Sender: No OFD packet to send [16:59:11]OFD Sender: No OFD packet to send [16:59:16]OFD Sender: No OFD packet to send [16:59:21]OFD Sender: No OFD packet to send [16:59:26]OFD Sender: No OFD packet to send [16:59:31]OFD Sender: No OFD packet to send [16:59:36]OFD Sender: No OFD packet to send [16:59:41]OFD Sender: No OFD packet to send [16:59:46]OFD Sender: No OFD packet to send [16:59:51]OFD Sender: No OFD packet to send [16:59:56]OFD Sender: No OFD packet to send [17:00:01]OFD Sender: No OFD packet to send [17:00:06]OFD Sender: No OFD packet to send [17:00:11]OFD Sender: No OFD packet to send [17:00:16]OFD Sender: No OFD packet to send [17:00:21]OFD Sender: No OFD packet to send [17:00:26]OFD Sender: No OFD packet to send [17:00:31]OFD Sender: No OFD packet to send [17:00:36]OFD Sender: No OFD packet to send [17:00:41]OFD Sender: No OFD packet to send [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:10]accept exits with 9 [17:01:10]New connection [17:01:10]New thread 3066826084 created [17:01:10]Thread 3066682724 joined [17:01:10]Waiting for new connection... [17:01:10] Sock 9.Parse request [17:01:10]Sock 9.Check first char [17:01:10]Sock 9.First char is OK [17:01:10]request: POST /json_proto HTTP/1.0 [17:01:10]Method: POST [17:01:10]URL: /json_proto [17:01:10]Method is POST - this is cgi request [17:01:10]url: /json_proto [17:01:10]query_string will be loaded in cgi processing [17:01:10]execute_cgi json_proto POST (null) [17:01:10]execute_cgi path=json_proto method=POST [17:01:10]POST find Content-Length [17:01:10]Host: 172.17.96.197:8080 [17:01:10]Content-Length: 674 [17:01:10]Content-Type: application/json [17:01:10] [17:01:10]POST finish read [17:01:10]Found Content-Length = 674 [17:01:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48666", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [17:01:10]execute_script... [17:01:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48666", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [17:01:10]POST & json_proto [17:01:10]process_json_proto [17:01:10]json parsed OK: [17:01:10]protocol is kg_v1.0 [17:01:10]action value=close_receipt [17:01:10]process_action close_receipt [17:01:10]cmd_close_receipt [17:01:10]MH_GetDate [17:01:10]Write to MH i2c: F0 00 00 08 17 0E [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 09 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: F0 09 00 08 17 00 D7 0B 1C 66 E0 85 7F 64 C3 [17:01:10]GetLastDocTimeStamp 1713113208 [17:01:10]current date 1713114071 [17:01:10]FM_GetShiftState [17:01:10]SAM_PROTO_GetShiftState [17:01:10]wFMCommunicate request_size=4 [17:01:10]MH_SAM_APDU [17:01:10]CAPDU: 80 13 01 00 [17:01:10]Write to MH i2c: E2 08 00 09 17 80 13 01 00 00 00 00 00 9D [17:01:10]Write i2c OK [17:01:10]MH_I2C_Read... [17:01:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:10]Read from MH i2c: E2 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 [17:01:10]MH_I2C_Read... [17:01:10]Read from MH i2c: E2 0E 00 09 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 35 [17:01:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:01:10]wFMCommunicate OK [17:01:10]SAM_PROTO_GetShiftState done [17:01:10]FM_GetShiftState done [17:01:10]opened in 1713054696 [17:01:10]opened+sec_in_day 1713141096 [17:01:10]quantity*price = 100039 [17:01:10]sum+1 = 100041 [17:01:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 257 14.04.2024 17:01 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112358 ФПД: 60729833530033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T170111&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112358&fm=60729833530033&tin=02508201610067®Number=0000000000094237&sum=100000 [17:01:11]StoreToDocumentArchive [17:01:11]shift 357 fd 112358 [17:01:11]save to /storage/0357/doc_00112358 [17:01:11]save last doc name /storage/0357/doc_00112358 to /storage/kkm_last_doc_name [17:01:11]save OK [17:01:11]Clear old archive folders... [17:01:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:01:11]tlvbuf is 0015B0A0 [17:01:11]SAM_PROTO_ClearQueue [17:01:11]wFMCommunicate request_size=4 [17:01:11]MH_SAM_APDU [17:01:11]CAPDU: 80 09 00 00 [17:01:11]Write to MH i2c: E2 08 00 16 17 80 09 00 00 00 00 00 00 9F [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 03 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 03 00 16 17 00 90 00 A1 [17:01:11]RAPDU: 90 00 [17:01:11]wFMCommunicate OK [17:01:11]SAM_PROTO_ClearQueue done [17:01:11]KKMCreateOFDPacket [17:01:11]OFDProtocolAddRootSTLVToBuf [17:01:11]FM_MakeSignedData [17:01:11]FM_MakeSignedData [17:01:11]SAM_PROTO_SignData [17:01:11]wFMCommunicate request_size=4 [17:01:11]MH_SAM_APDU [17:01:11]CAPDU: 80 0D 01 02 [17:01:11]Write to MH i2c: E2 08 00 17 17 80 0D 01 02 00 00 00 00 A7 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:11]Read from MH i2c: E2 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 03 00 [17:01:11]MH_I2C_Read... [17:01:11]Read from MH i2c: E2 03 00 17 17 00 90 00 A2 [17:01:11]RAPDU: 90 00 [17:01:11]wFMCommunicate OK [17:01:11]wFMCommunicate request_size=255 [17:01:11]MH_SAM_APDU [17:01:11]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 01 01 00 00 F4 03 04 00 D7 0B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E6 B6 01 00 35 04 06 00 [17:01:11]Write to MH i2c: E2 02 01 18 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 01 01 00 00 F4 03 04 00 D7 0B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E6 B6 01 00 35 04 06 00 00 00 21 [17:01:11]Write i2c OK [17:01:11]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 18 17 00 90 00 A3 [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]wFMCommunicate request_size=11 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 02 02 06 37 3B C4 27 A2 B1 [17:01:12]Write to MH i2c: E2 0E 00 19 17 80 0D 02 02 06 00 37 3B C4 27 A2 B1 00 00 66 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 03 00 19 17 00 90 00 A4 [17:01:12]RAPDU: 90 00 [17:01:12]wFMCommunicate OK [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 0D 03 02 [17:01:12]Write to MH i2c: E2 08 00 1A 17 80 0D 03 02 00 00 00 00 AC [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 0B 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 0B 00 1A 17 00 1E B1 9F 4A DD B3 04 03 90 00 FC [17:01:12]RAPDU: 1E B1 9F 4A DD B3 04 03 90 00 [17:01:12]wFMCommunicate OK [17:01:12]SAM_PROTO_SignData done [17:01:12]FM_MakeSignedData done [17:01:12]CreateOFDProtocolMessage [17:01:12]wFMCommunicate request_size=4 [17:01:12]MH_SAM_APDU [17:01:12]CAPDU: 80 11 00 00 [17:01:12]Write to MH i2c: E2 08 00 1B 17 80 11 00 00 00 00 00 00 AC [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:12]Read from MH i2c: E2 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 17 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: E2 17 00 1B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FD [17:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:01:12]wFMCommunicate OK [17:01:12]CreateOFDProtocolMessage done [17:01:12]OFDSenderStorePacket 112358 [17:01:12]StoreOFDPacket docnum=112358 [17:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 6E 64 08 01 E2 F5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 01 01 00 00 F4 03 04 00 D7 0B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E6 B6 01 00 35 04 06 00 37 3B C4 27 A2 B1 1E B1 9F 4A DD B3 04 03 [17:01:12]CheckFolder [17:01:12]dirname=/storage/ofd_packets [17:01:12]CheckFolder done [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00112358 [17:01:12]NVStorageSaveData ofd_packets/00112358 [17:01:12]File name is /storage/ofd_packets/00112358 [17:01:12]Write 302 bytes [17:01:12]NVStorageSaveData done [17:01:12]OFDSenderStorePacket done [17:01:12]KKMCreateOFDPacket done [17:01:12]NVStorageSaveData kkm_last_timestamp [17:01:12]File name is /storage/kkm_last_timestamp [17:01:12]Write 4 bytes [17:01:12]NVStorageSaveData done [17:01:12]ExternCall_PrintAddStr [17:01:12]wPrintStart [17:01:12]Write to MH i2c: 01 00 00 1C 17 33 [17:01:12]Write i2c OK [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 07 00 [17:01:12]MH_I2C_Read... [17:01:12]Read from MH i2c: 01 07 00 1C 17 00 00 00 00 00 FF 0F 48 [17:01:12]RasterBufferAndPrint [17:01:12]line Счет N : (1)48666 [17:01:12]line ИНН: 02508201610067 [17:01:12]line Контрольно-Кассовый Чек [17:01:12]line ПРОДАЖА [17:01:12]line ТРК (МРК, ГНК) : 31 [17:01:12]line Товар: 2710124130 [17:01:12]line SUPER 92-К-5 [17:01:12]line 15.320 * 65.30 [17:01:12]line = 1000.40 [17:01:12]line НДС 12% НСП 1% [17:01:12]line > о реализуемом товаре [17:01:12]line ОКРУГЛЕНИЕ: -0.40 [17:01:12]line ИТОГО: 1000.00 [17:01:12]line Внесено: 1000.00 [17:01:12]line СДАЧА: 0.00 [17:01:12]line НСП 1% : 8.85 [17:01:12]line НДС 12% : 106.24 [17:01:12]line Наличными: 1000.00 [17:01:12]line Безнал.: 0.00 [17:01:12]line Место: АЗС № 47 "Партнер Нефть" [17:01:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:01:12]line СНО: Общий режим [17:01:12]line Чек 257 14.04.2024 17:01 [17:01:12]line Смена: 357 ФФД: 1.0 [17:01:12]line ЗНМ: 0300000138 [17:01:12]line РНМ: 0000000000094237 [17:01:12]line Версия ККМ: 001 [17:01:12]line ФМ: 0000000000875019 [17:01:12]line ФД: 112358 [17:01:12]line ФПД: 60729833530033 [17:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T170111&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112358&fm=60729833530033&tin=02508201610067®Number=0000000000094237&sum=100000 [17:01:12]OFD Sender: Processing packet 112358 [packets to send 71, broken 70] [17:01:12]ProducePacketName [17:01:12]name=ofd_packets/00112358 [17:01:12]OFD Sender: To server: pG, [17:01:12]CommunicateWithHost lk.salyk.kg:30040 [17:01:12]ConnectInit lk.salyk.kg [17:01:12]written 0, free lines is 4095 [17:01:12]Connected sock=10 [17:01:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 6E 64 08 01 E2 F5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 01 01 00 00 F4 03 04 00 D7 0B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E6 B6 01 00 35 04 06 00 37 3B C4 27 A2 B1 1E B1 9F 4A DD B3 04 03 [17:01:13]Write to MH i2c: 01 00 00 47 17 5E [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 07 00 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: 01 07 00 47 17 00 00 00 00 00 E4 0C 55 [17:01:13]RasterBufferAndPrint [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]line [17:01:13]written 0, free lines is 3306 [17:01:13]MH_Cut [17:01:13]Write to MH i2c: D1 01 00 4E 17 01 37 [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 01 00 [17:01:13]MH_I2C_Read... [17:01:13]Read from MH i2c: D1 01 00 4E 17 00 36 [17:01:13]Write to MH i2c: 01 00 00 4F 17 66 [17:01:13]Write i2c OK [17:01:13]MH_I2C_Read... [17:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 36 6E 47 00 6E 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 38 37 35 30 31 39 10 04 04 00 E6 B6 01 00 F4 03 04 00 62 B3 1B 66 B6 04 01 00 00 64 F0 49 49 E1 FE 9A F4 [17:01:13]CommunicateWithHost err = 0 [17:01:13]CheckOFDResponse [17:01:13]1017 (14) - 77093643461234 [17:01:13]1041 (16) - 0000000000875019 [17:01:13]1040 (4) - 112358 [17:01:13]1012 (4) - 14.04.2024 10:43 [17:01:13]1206 (1) - 0 [17:01:13]OFD Sender: Remove packet 112358 [17:01:13]ProducePacketName [17:01:13]name=ofd_packets/00112358 [17:01:13]NVStorageDeleteData [17:01:13]OFD Sender: No OFD packet to send [17:01:13]*** Cut start [17:01:13]*** Partial cut [17:01:13]*** CUTSNS_PIN = 1 [17:01:13]*** CUTSNS_PIN = 0 [17:01:14]*** Brake cut motor [17:01:14]Read from MH i2c: 01 [17:01:14]MH_I2C_Read... [17:01:14]*** Stop cut motor [17:01:14]*** Cut end [17:01:14]Read from MH i2c: 01 07 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: 01 07 00 4F 17 00 00 00 00 00 FF 0F 7B [17:01:14]process_action close_receipt done [17:01:14]requested_data is exist [17:01:14]produce_requested_data [17:01:14]requested_item fm.sn is exist - process it [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 11 00 00 [17:01:14]Write to MH i2c: E2 08 00 50 17 80 11 00 00 00 00 00 00 E1 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 17 00 50 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 32 [17:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:01:14]wFMCommunicate OK [17:01:14]requested_item fd.num is exist - process it [17:01:14]SAM_PROTO_GetFieldsCounters [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 00 00 [17:01:14]Write to MH i2c: E2 08 00 51 17 80 13 00 00 00 00 00 00 E4 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 62 00 51 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [17:01:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetFieldsCounters done [17:01:14]requested_item shift.num is exist - process it [17:01:14]requested_item shift.opened is exist - process it [17:01:14]req_shift_opened [17:01:14]FM_GetShiftState [17:01:14]SAM_PROTO_GetShiftState [17:01:14]wFMCommunicate request_size=4 [17:01:14]MH_SAM_APDU [17:01:14]CAPDU: 80 13 01 00 [17:01:14]Write to MH i2c: E2 08 00 52 17 80 13 01 00 00 00 00 00 E6 [17:01:14]Write i2c OK [17:01:14]MH_I2C_Read... [17:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:14]Read from MH i2c: E2 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 [17:01:14]MH_I2C_Read... [17:01:14]Read from MH i2c: E2 0E 00 52 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7E [17:01:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:01:14]wFMCommunicate OK [17:01:14]SAM_PROTO_GetShiftState done [17:01:14]FM_GetShiftState done [17:01:14]req_shift_opened done [17:01:14]requested_item shift.open_date is exist - process it [17:01:14]req_shift_open_date [17:01:14]req_shift_open_date done [17:01:14]produce_requested_data done [17:01:14]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112358,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:01:14]process_action_free close_receipt [17:01:14]json_value_free [17:01:14]json_value_free done [17:01:14]process_json_proto returns [17:01:14]Send response to host [17:01:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112358,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:01:14]free response buf [17:01:14]execute_script done [17:01:14]execute_script returns [17:01:14]free content buf [17:01:14]Sock 9.Close socket [17:01:14]Sock 9.Thread stoped [17:01:18]OFD Sender: No OFD packet to send [17:01:23]OFD Sender: No OFD packet to send [17:01:28]OFD Sender: No OFD packet to send [17:01:33]OFD Sender: No OFD packet to send [17:01:38]OFD Sender: No OFD packet to send [17:01:43]OFD Sender: No OFD packet to send [17:01:48]OFD Sender: No OFD packet to send [17:01:53]OFD Sender: No OFD packet to send [17:01:58]OFD Sender: No OFD packet to send [17:02:03]OFD Sender: No OFD packet to send [17:02:08]OFD Sender: No OFD packet to send [17:02:13]OFD Sender: No OFD packet to send [17:02:18]OFD Sender: No OFD packet to send [17:02:23]OFD Sender: No OFD packet to send [17:02:28]OFD Sender: No OFD packet to send [17:02:33]OFD Sender: No OFD packet to send [17:02:38]OFD Sender: No OFD packet to send [17:02:43]OFD Sender: No OFD packet to send [17:02:48]OFD Sender: No OFD packet to send [17:02:53]OFD Sender: No OFD packet to send [17:02:58]OFD Sender: No OFD packet to send [17:03:03]OFD Sender: No OFD packet to send [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]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 [17:06:14]OFD Sender: No OFD packet to send [17:06:19]OFD Sender: No OFD packet to send [17:06:24]OFD Sender: No OFD packet to send [17:06:29]OFD Sender: No OFD packet to send [17:06:34]OFD Sender: No OFD packet to send [17:06:39]OFD Sender: No OFD packet to send [17:06:44]OFD Sender: No OFD packet to send [17:06:49]OFD Sender: No OFD packet to send [17:06:54]OFD Sender: No OFD packet to send [17:06:59]OFD Sender: No OFD packet to send [17:07:04]OFD Sender: No OFD packet to send [17:07:09]OFD Sender: No OFD packet to send [17:07:14]OFD Sender: No OFD packet to send [17:07:19]OFD Sender: No OFD packet to send [17:07:24]OFD Sender: No OFD packet to send [17:07:29]OFD Sender: No OFD packet to send [17:07:34]OFD Sender: No OFD packet to send [17:07:39]OFD Sender: No OFD packet to send [17:07:44]OFD Sender: No OFD packet to send [17:07:49]OFD Sender: No OFD packet to send [17:07:54]OFD Sender: No OFD packet to send [17:07:59]OFD Sender: No OFD packet to send [17:08:04]OFD Sender: No OFD packet to send [17:08:09]OFD Sender: No OFD packet to send [17:08:14]OFD Sender: No OFD packet to send [17:08:17]accept exits with 8 [17:08:17]New connection [17:08:17]New thread 3066682724 created [17:08:17]Thread 3066826084 joined [17:08:17]Waiting for new connection... [17:08:17] Sock 8.Parse request [17:08:17]Sock 8.Check first char [17:08:17]Sock 8.First char is OK [17:08:17]request: POST /json_proto HTTP/1.0 [17:08:17]Method: POST [17:08:17]URL: /json_proto [17:08:17]Method is POST - this is cgi request [17:08:17]url: /json_proto [17:08:17]query_string will be loaded in cgi processing [17:08:17]execute_cgi json_proto POST (null) [17:08:17]execute_cgi path=json_proto method=POST [17:08:17]POST find Content-Length [17:08:17]Host: 172.17.96.197:8080 [17:08:17]Content-Length: 676 [17:08:17]Content-Type: application/json [17:08:17] [17:08:17]POST finish read [17:08:17]Found Content-Length = 676 [17:08:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48667", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:08:17]execute_script... [17: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)48667", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:08:17]POST & json_proto [17:08:17]process_json_proto [17:08:17]json parsed OK: [17:08:17]protocol is kg_v1.0 [17:08:17]action value=close_receipt [17:08:17]process_action close_receipt [17:08:17]cmd_close_receipt [17:08:17]MH_GetDate [17:08:17]Write to MH i2c: F0 00 00 53 17 59 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 09 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: F0 09 00 53 17 00 82 0D 1C 66 E0 85 7F 64 BB [17:08:17]GetLastDocTimeStamp 1713114071 [17:08:17]current date 1713114498 [17:08:17]FM_GetShiftState [17:08:17]SAM_PROTO_GetShiftState [17:08:17]wFMCommunicate request_size=4 [17:08:17]MH_SAM_APDU [17:08:17]CAPDU: 80 13 01 00 [17:08:17]Write to MH i2c: E2 08 00 54 17 80 13 01 00 00 00 00 00 E8 [17:08:17]Write i2c OK [17:08:17]MH_I2C_Read... [17:08:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:17]Read from MH i2c: E2 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 [17:08:17]MH_I2C_Read... [17:08:17]Read from MH i2c: E2 0E 00 54 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 80 [17:08:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:08:17]wFMCommunicate OK [17:08:17]SAM_PROTO_GetShiftState done [17:08:17]FM_GetShiftState done [17:08:17]opened in 1713054696 [17:08:17]opened+sec_in_day 1713141096 [17:08:17]quantity*price = 50025 [17:08:17]sum+1 = 50026 [17:08:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 258 14.04.2024 17:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112359 ФПД: 152896606915150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T170818&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112359&fm=152896606915150&tin=02508201610067®Number=0000000000094237&sum=50000 [17:08:18]StoreToDocumentArchive [17:08:18]shift 357 fd 112359 [17:08:18]save to /storage/0357/doc_00112359 [17:08:18]save last doc name /storage/0357/doc_00112359 to /storage/kkm_last_doc_name [17:08:18]save OK [17:08:18]Clear old archive folders... [17:08:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:08:18]tlvbuf is B6D895C0 [17:08:18]SAM_PROTO_ClearQueue [17:08:18]wFMCommunicate request_size=4 [17:08:18]MH_SAM_APDU [17:08:18]CAPDU: 80 09 00 00 [17:08:18]Write to MH i2c: E2 08 00 61 17 80 09 00 00 00 00 00 00 EA [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:08:18]Read from MH i2c: E2 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 03 00 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 03 00 61 17 00 90 00 EC [17:08:18]RAPDU: 90 00 [17:08:18]wFMCommunicate OK [17:08:18]SAM_PROTO_ClearQueue done [17:08:18]KKMCreateOFDPacket [17:08:18]OFDProtocolAddRootSTLVToBuf [17:08:18]FM_MakeSignedData [17:08:18]FM_MakeSignedData [17:08:18]SAM_PROTO_SignData [17:08:18]wFMCommunicate request_size=4 [17:08:18]MH_SAM_APDU [17:08:18]CAPDU: 80 0D 01 02 [17:08:18]Write to MH i2c: E2 08 00 62 17 80 0D 01 02 00 00 00 00 F2 [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:08:18]Read from MH i2c: E2 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 03 00 [17:08:18]MH_I2C_Read... [17:08:18]Read from MH i2c: E2 03 00 62 17 00 90 00 ED [17:08:18]RAPDU: 90 00 [17:08:18]wFMCommunicate OK [17:08:18]wFMCommunicate request_size=255 [17:08:18]MH_SAM_APDU [17:08: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 02 01 00 00 F4 03 04 00 82 0D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E7 B6 01 00 35 04 06 00 8B [17:08:18]Write to MH i2c: E2 02 01 63 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 02 01 00 00 F4 03 04 00 82 0D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E7 B6 01 00 35 04 06 00 8B 00 00 38 [17:08:18]Write i2c OK [17:08:18]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 03 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 03 00 63 17 00 90 00 EE [17:08:19]RAPDU: 90 00 [17:08:19]wFMCommunicate OK [17:08:19]wFMCommunicate request_size=10 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 0D 02 02 05 0F 03 F1 4A 4E [17:08:19]Write to MH i2c: E2 0D 00 64 17 80 0D 02 02 05 00 0F 03 F1 4A 4E 00 00 9A [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 03 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 03 00 64 17 00 90 00 EF [17:08:19]RAPDU: 90 00 [17:08:19]wFMCommunicate OK [17:08:19]wFMCommunicate request_size=4 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 0D 03 02 [17:08:19]Write to MH i2c: E2 08 00 65 17 80 0D 03 02 00 00 00 00 F7 [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:08:19]OFD Sender: No OFD packet to send [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0B 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 0B 00 65 17 00 4C EB 24 9C 53 E2 E2 F5 90 00 FB [17:08:19]RAPDU: 4C EB 24 9C 53 E2 E2 F5 90 00 [17:08:19]wFMCommunicate OK [17:08:19]SAM_PROTO_SignData done [17:08:19]FM_MakeSignedData done [17:08:19]CreateOFDProtocolMessage [17:08:19]wFMCommunicate request_size=4 [17:08:19]MH_SAM_APDU [17:08:19]CAPDU: 80 11 00 00 [17:08:19]Write to MH i2c: E2 08 00 66 17 80 11 00 00 00 00 00 00 F7 [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:19]Read from MH i2c: E2 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 17 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: E2 17 00 66 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 48 [17:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:08:19]wFMCommunicate OK [17:08:19]CreateOFDProtocolMessage done [17:08:19]OFDSenderStorePacket 112359 [17:08:19]StoreOFDPacket docnum=112359 [17:08:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AC A2 07 01 7A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 02 01 00 00 F4 03 04 00 82 0D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E7 B6 01 00 35 04 06 00 8B 0F 03 F1 4A 4E 4C EB 24 9C 53 E2 E2 F5 [17:08:19]CheckFolder [17:08:19]dirname=/storage/ofd_packets [17:08:19]CheckFolder done [17:08:19]ProducePacketName [17:08:19]name=ofd_packets/00112359 [17:08:19]NVStorageSaveData ofd_packets/00112359 [17:08:19]File name is /storage/ofd_packets/00112359 [17:08:19]Write 301 bytes [17:08:19]NVStorageSaveData done [17:08:19]OFDSenderStorePacket done [17:08:19]KKMCreateOFDPacket done [17:08:19]NVStorageSaveData kkm_last_timestamp [17:08:19]File name is /storage/kkm_last_timestamp [17:08:19]Write 4 bytes [17:08:19]NVStorageSaveData done [17:08:19]ExternCall_PrintAddStr [17:08:19]wPrintStart [17:08:19]Write to MH i2c: 01 00 00 67 17 7E [17:08:19]Write i2c OK [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: 01 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: 01 07 00 [17:08:19]MH_I2C_Read... [17:08:19]Read from MH i2c: 01 07 00 67 17 00 00 00 00 00 FF 0F 93 [17:08:19]RasterBufferAndPrint [17:08:19]line Счет N : (1)48667 [17:08:19]line ИНН: 02508201610067 [17:08:19]line Контрольно-Кассовый Чек [17:08:19]line ПРОДАЖА [17:08:19]line ТРК (МРК, ГНК) : 42 [17:08:19]line Товар: 2710124130 [17:08:19]line Аи-92-К-5 [17:08:19]line 7.780 * 64.30 [17:08:19]line = 500.25 [17:08:19]line НДС 12% НСП 1% [17:08:19]line > о реализуемом товаре [17:08:19]line ОКРУГЛЕНИЕ: -0.25 [17:08:19]line ИТОГО: 500.00 [17:08:19]line Внесено: 500.00 [17:08:19]line СДАЧА: 0.00 [17:08:19]line НСП 1% : 4.43 [17:08:19]line НДС 12% : 53.12 [17:08:19]line Наличными: 500.00 [17:08:19]line Безнал.: 0.00 [17:08:19]line Место: АЗС № 47 "Партнер Нефть" [17:08:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:08:19]line СНО: Общий режим [17:08:19]line Чек 258 14.04.2024 17:08 [17:08:19]line Смена: 357 ФФД: 1.0 [17:08:19]line ЗНМ: 0300000138 [17:08:19]line РНМ: 0000000000094237 [17:08:19]line Версия ККМ: 001 [17:08:19]line ФМ: 0000000000875019 [17:08:19]line ФД: 112359 [17:08:19]line ФПД: 152896606915150 [17:08:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T170818&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112359&fm=152896606915150&tin=02508201610067®Number=0000000000094237&sum=50000 [17:08:19]OFD Sender: Processing packet 112359 [packets to send 71, broken 70] [17:08:19]ProducePacketName [17:08:19]name=ofd_packets/00112359 [17:08:19]OFD Sender: To server: pG, [17:08:19]CommunicateWithHost lk.salyk.kg:30040 [17:08:19]ConnectInit lk.salyk.kg [17:08:19]written 0, free lines is 4095 [17:08:19]Connected sock=10 [17:08:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AC A2 07 01 7A 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 02 01 00 00 F4 03 04 00 82 0D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E7 B6 01 00 35 04 06 00 8B 0F 03 F1 4A 4E 4C EB 24 9C 53 E2 E2 F5 [17:08:20]Write to MH i2c: 01 00 00 92 17 A9 [17:08:20]Write i2c OK [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: 01 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: 01 07 00 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: 01 07 00 92 17 00 00 00 00 00 E4 0C A0 [17:08:20]RasterBufferAndPrint [17:08:20]line [17:08:20]line [17:08:20]line [17:08:20]line [17:08:20]line [17:08:20]written 0, free lines is 3306 [17:08:20]MH_Cut [17:08:20]Write to MH i2c: D1 01 00 99 17 01 82 [17:08:20]Write i2c OK [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: D1 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: D1 01 00 [17:08:20]MH_I2C_Read... [17:08:20]Read from MH i2c: D1 01 00 99 17 00 81 [17:08:20]Write to MH i2c: 01 00 00 9A 17 B1 [17:08:20]Write i2c OK [17:08:20]MH_I2C_Read... [17:08:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 88 1A 47 00 DF E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E7 B6 01 00 F4 03 04 00 0D B5 1B 66 B6 04 01 00 00 A9 91 CA F9 3E 36 2A F4 [17:08:20]CommunicateWithHost err = 0 [17:08:20]CheckOFDResponse [17:08:20]1017 (14) - 77093643461234 [17:08:20]1041 (16) - 0000000000875019 [17:08:20]1040 (4) - 112359 [17:08:20]1012 (4) - 14.04.2024 10:50 [17:08:20]1206 (1) - 0 [17:08:20]OFD Sender: Remove packet 112359 [17:08:20]ProducePacketName [17:08:20]name=ofd_packets/00112359 [17:08:20]NVStorageDeleteData [17:08:20]OFD Sender: No OFD packet to send [17:08:20]*** Cut start [17:08:20]*** Partial cut [17:08:20]*** CUTSNS_PIN = 1 [17:08:20]*** CUTSNS_PIN = 0 [17:08:21]*** Brake cut motor [17:08:21]Read from MH i2c: 01 [17:08:21]MH_I2C_Read... [17:08:21]*** Stop cut motor [17:08:21]*** Cut end [17:08:21]Read from MH i2c: 01 07 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: 01 07 00 9A 17 00 00 00 00 00 FF 0F C6 [17:08:21]process_action close_receipt done [17:08:21]requested_data is exist [17:08:21]produce_requested_data [17:08:21]requested_item fm.sn is exist - process it [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 11 00 00 [17:08:21]Write to MH i2c: E2 08 00 9B 17 80 11 00 00 00 00 00 00 2C [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 17 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 17 00 9B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7D [17:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:08:21]wFMCommunicate OK [17:08:21]requested_item fd.num is exist - process it [17:08:21]SAM_PROTO_GetFieldsCounters [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 13 00 00 [17:08:21]Write to MH i2c: E2 08 00 9C 17 80 13 00 00 00 00 00 00 2F [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 62 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 62 00 9C 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [17:08:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:08:21]wFMCommunicate OK [17:08:21]SAM_PROTO_GetFieldsCounters done [17:08:21]requested_item shift.num is exist - process it [17:08:21]requested_item shift.opened is exist - process it [17:08:21]req_shift_opened [17:08:21]FM_GetShiftState [17:08:21]SAM_PROTO_GetShiftState [17:08:21]wFMCommunicate request_size=4 [17:08:21]MH_SAM_APDU [17:08:21]CAPDU: 80 13 01 00 [17:08:21]Write to MH i2c: E2 08 00 9D 17 80 13 01 00 00 00 00 00 31 [17:08:21]Write i2c OK [17:08:21]MH_I2C_Read... [17:08:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:08:21]Read from MH i2c: E2 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0E 00 [17:08:21]MH_I2C_Read... [17:08:21]Read from MH i2c: E2 0E 00 9D 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C9 [17:08:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:08:21]wFMCommunicate OK [17:08:21]SAM_PROTO_GetShiftState done [17:08:21]FM_GetShiftState done [17:08:21]req_shift_opened done [17:08:21]requested_item shift.open_date is exist - process it [17:08:21]req_shift_open_date [17:08:21]req_shift_open_date done [17:08:21]produce_requested_data done [17:08:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112359,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:08:21]process_action_free close_receipt [17:08:21]json_value_free [17:08:21]json_value_free done [17:08:21]process_json_proto returns [17:08:21]Send response to host [17:08:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112359,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:08:21]free response buf [17:08:21]execute_script done [17:08:21]execute_script returns [17:08:21]free content buf [17:08:21]Sock 8.Close socket [17:08:21]Sock 8.Thread stoped [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:12:57]accept exits with 9 [17:12:57]New connection [17:12:57]New thread 3066826084 created [17:12:57]Thread 3066682724 joined [17:12:57]Waiting for new connection... [17:12:57] Sock 9.Parse request [17:12:57]Sock 9.Check first char [17:12:57]Sock 9.First char is OK [17:12:57]request: POST /json_proto HTTP/1.0 [17:12:57]Method: POST [17:12:57]URL: /json_proto [17:12:57]Method is POST - this is cgi request [17:12:57]url: /json_proto [17:12:57]query_string will be loaded in cgi processing [17:12:57]execute_cgi json_proto POST (null) [17:12:57]execute_cgi path=json_proto method=POST [17:12:57]POST find Content-Length [17:12:57]Host: 172.17.96.197:8080 [17:12:57]Content-Length: 660 [17:12:57]Content-Type: application/json [17:12:57] [17:12:57]POST finish read [17:12:57]Found Content-Length = 660 [17:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48668", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:57]execute_script... [17:12: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)48668", "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.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:57]POST & json_proto [17:12:57]process_json_proto [17:12:57]json parsed OK: [17:12:57]protocol is kg_v1.0 [17:12:57]action value=close_receipt [17:12:57]process_action close_receipt [17:12:57]cmd_close_receipt [17:12:57]MH_GetDate [17:12:57]Write to MH i2c: F0 00 00 9E 17 A4 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: F0 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: F0 09 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: F0 09 00 9E 17 00 9A 0E 1C 66 E0 85 7F 64 1F [17:12:57]GetLastDocTimeStamp 1713114498 [17:12:57]current date 1713114778 [17:12:57]FM_GetShiftState [17:12:57]SAM_PROTO_GetShiftState [17:12:57]wFMCommunicate request_size=4 [17:12:57]MH_SAM_APDU [17:12:57]CAPDU: 80 13 01 00 [17:12:57]Write to MH i2c: E2 08 00 9F 17 80 13 01 00 00 00 00 00 33 [17:12:57]Write i2c OK [17:12:57]MH_I2C_Read... [17:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:57]Read from MH i2c: E2 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0E 00 [17:12:57]MH_I2C_Read... [17:12:57]Read from MH i2c: E2 0E 00 9F 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [17:12:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:12:57]wFMCommunicate OK [17:12:57]SAM_PROTO_GetShiftState done [17:12:57]FM_GetShiftState done [17:12:57]opened in 1713054696 [17:12:57]opened+sec_in_day 1713141096 [17:12:57]quantity*price = 64300 [17:12:57]sum+1 = 64301 [17:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 Внесено: 1000.00 СДАЧА: 357.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 259 14.04.2024 17:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112360 ФПД: 137326648153185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171258&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112360&fm=137326648153185&tin=02508201610067®Number=0000000000094237&sum=64300 [17:12:59]StoreToDocumentArchive [17:12:59]shift 357 fd 112360 [17:12:59]save to /storage/0357/doc_00112360 [17:12:59]save last doc name /storage/0357/doc_00112360 to /storage/kkm_last_doc_name [17:12:59]save OK [17:12:59]Clear old archive folders... [17:12:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:59]tlvbuf is 001ADFF0 [17:12:59]SAM_PROTO_ClearQueue [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 09 00 00 [17:12:59]Write to MH i2c: E2 08 00 AC 17 80 09 00 00 00 00 00 00 35 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 AC 17 00 90 00 37 [17:12:59]RAPDU: 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_ClearQueue done [17:12:59]KKMCreateOFDPacket [17:12:59]OFDProtocolAddRootSTLVToBuf [17:12:59]FM_MakeSignedData [17:12:59]FM_MakeSignedData [17:12:59]SAM_PROTO_SignData [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 0D 01 02 [17:12:59]Write to MH i2c: E2 08 00 AD 17 80 0D 01 02 00 00 00 00 3D [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [17:12:59]RAPDU: 90 00 [17:12:59]wFMCommunicate OK [17:12:59]wFMCommunicate request_size=255 [17:12:59]MH_SAM_APDU [17:12:59]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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 9A 0E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E8 B6 01 00 35 04 06 00 7C [17:12:59]Write to MH i2c: E2 02 01 AE 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 9A 0E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E8 B6 01 00 35 04 06 00 7C 00 00 D8 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [17:12:59]RAPDU: 90 00 [17:12:59]wFMCommunicate OK [17:12:59]wFMCommunicate request_size=10 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 0D 02 02 05 E5 DA 14 D4 61 [17:12:59]Write to MH i2c: E2 0D 00 AF 17 80 0D 02 02 05 00 E5 DA 14 D4 61 00 00 52 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 03 00 AF 17 00 90 00 3A [17:12:59]RAPDU: 90 00 [17:12:59]wFMCommunicate OK [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 0D 03 02 [17:12:59]Write to MH i2c: E2 08 00 B0 17 80 0D 03 02 00 00 00 00 42 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 0B 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 0B 00 B0 17 00 44 18 A4 BA 8A 83 13 24 90 00 41 [17:12:59]RAPDU: 44 18 A4 BA 8A 83 13 24 90 00 [17:12:59]wFMCommunicate OK [17:12:59]SAM_PROTO_SignData done [17:12:59]FM_MakeSignedData done [17:12:59]CreateOFDProtocolMessage [17:12:59]wFMCommunicate request_size=4 [17:12:59]MH_SAM_APDU [17:12:59]CAPDU: 80 11 00 00 [17:12:59]Write to MH i2c: E2 08 00 B1 17 80 11 00 00 00 00 00 00 42 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:59]Read from MH i2c: E2 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: E2 17 00 B1 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [17:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:12:59]wFMCommunicate OK [17:12:59]CreateOFDProtocolMessage done [17:12:59]OFDSenderStorePacket 112360 [17:12:59]StoreOFDPacket docnum=112360 [17:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6F 02 07 01 2E CE 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 9A 0E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E8 B6 01 00 35 04 06 00 7C E5 DA 14 D4 61 44 18 A4 BA 8A 83 13 24 [17:12:59]CheckFolder [17:12:59]dirname=/storage/ofd_packets [17:12:59]CheckFolder done [17:12:59]ProducePacketName [17:12:59]name=ofd_packets/00112360 [17:12:59]NVStorageSaveData ofd_packets/00112360 [17:12:59]File name is /storage/ofd_packets/00112360 [17:12:59]Write 301 bytes [17:12:59]NVStorageSaveData done [17:12:59]OFDSenderStorePacket done [17:12:59]KKMCreateOFDPacket done [17:12:59]NVStorageSaveData kkm_last_timestamp [17:12:59]File name is /storage/kkm_last_timestamp [17:12:59]Write 4 bytes [17:12:59]NVStorageSaveData done [17:12:59]ExternCall_PrintAddStr [17:12:59]wPrintStart [17:12:59]Write to MH i2c: 01 00 00 B2 17 C9 [17:12:59]Write i2c OK [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: 01 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: 01 07 00 [17:12:59]MH_I2C_Read... [17:12:59]Read from MH i2c: 01 07 00 B2 17 00 00 00 00 00 FF 0F DE [17:12:59]RasterBufferAndPrint [17:12:59]line Счет N : (1)48668 [17:12:59]line ИНН: 02508201610067 [17:12:59]line Контрольно-Кассовый Чек [17:12:59]line ПРОДАЖА [17:12:59]line ТРК (МРК, ГНК) : 42 [17:12:59]line Товар: 2710124130 [17:12:59]line Аи-92-К-5 [17:12:59]line 10.000 * 64.30 [17:12:59]line = 643.00 [17:12:59]line НДС 12% НСП 1% [17:12:59]line > о реализуемом товаре [17:12:59]line ИТОГО: 643.00 [17:12:59]line Внесено: 1000.00 [17:12:59]line СДАЧА: 357.00 [17:12:59]line НСП 1% : 5.69 [17:12:59]line НДС 12% : 68.28 [17:12:59]line Наличными: 643.00 [17:12:59]line Безнал.: 0.00 [17:12:59]line Место: АЗС № 47 "Партнер Нефть" [17:12:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:12:59]line СНО: Общий режим [17:12:59]line Чек 259 14.04.2024 17:12 [17:12:59]line Смена: 357 ФФД: 1.0 [17:12:59]line ЗНМ: 0300000138 [17:12:59]line РНМ: 0000000000094237 [17:12:59]line Версия ККМ: 001 [17:12:59]line ФМ: 0000000000875019 [17:12:59]line ФД: 112360 [17:12:59]line ФПД: 137326648153185 [17:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171258&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112360&fm=137326648153185&tin=02508201610067®Number=0000000000094237&sum=64300 [17:12:59]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:12:59]ProducePacketName [17:12:59]name=ofd_packets/00112360 [17:12:59]OFD Sender: To server: pG, [17:12:59]CommunicateWithHost lk.salyk.kg:30040 [17:12:59]ConnectInit lk.salyk.kg [17:12:59]written 0, free lines is 4095 [17:13:00]Write to MH i2c: 01 00 00 DC 17 F3 [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: 01 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: 01 07 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: 01 07 00 DC 17 00 00 00 00 00 E5 0C EB [17:13:00]RasterBufferAndPrint [17:13:00]line [17:13:00]line [17:13:00]line [17:13:00]line [17:13:00]line [17:13:00]written 0, free lines is 3307 [17:13:00]MH_Cut [17:13:00]Write to MH i2c: D1 01 00 E3 17 01 CC [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: D1 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: D1 01 00 [17:13:00]MH_I2C_Read... [17:13:00]Read from MH i2c: D1 01 00 E3 17 00 CB [17:13:00]Write to MH i2c: 01 00 00 E4 17 FB [17:13:00]Write i2c OK [17:13:00]MH_I2C_Read... [17:13:01]*** Cut start [17:13:01]*** Partial cut [17:13:01]*** CUTSNS_PIN = 1 [17:13:01]*** CUTSNS_PIN = 0 [17:13:01]*** Brake cut motor [17:13:01]Read from MH i2c: 01 [17:13:01]MH_I2C_Read... [17:13:01]*** Stop cut motor [17:13:01]*** Cut end [17:13:01]Read from MH i2c: 01 07 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: 01 07 00 E4 17 00 00 00 00 00 FF 0F 10 [17:13:01]process_action close_receipt done [17:13:01]requested_data is exist [17:13:01]produce_requested_data [17:13:01]requested_item fm.sn is exist - process it [17:13:01]wFMCommunicate request_size=4 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 11 00 00 [17:13:01]Write to MH i2c: E2 08 00 E5 17 80 11 00 00 00 00 00 00 76 [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:01]Read from MH i2c: E2 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 17 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 17 00 E5 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C7 [17:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:13:01]wFMCommunicate OK [17:13:01]requested_item fd.num is exist - process it [17:13:01]SAM_PROTO_GetFieldsCounters [17:13:01]wFMCommunicate request_size=4 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 13 00 00 [17:13:01]Write to MH i2c: E2 08 00 E6 17 80 13 00 00 00 00 00 00 79 [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:01]Read from MH i2c: E2 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 62 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 62 00 E6 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:01]wFMCommunicate OK [17:13:01]SAM_PROTO_GetFieldsCounters done [17:13:01]requested_item shift.num is exist - process it [17:13:01]requested_item shift.opened is exist - process it [17:13:01]req_shift_opened [17:13:01]FM_GetShiftState [17:13:01]SAM_PROTO_GetShiftState [17:13:01]wFMCommunicate request_size=4 [17:13:01]MH_SAM_APDU [17:13:01]CAPDU: 80 13 01 00 [17:13:01]Write to MH i2c: E2 08 00 E7 17 80 13 01 00 00 00 00 00 7B [17:13:01]Write i2c OK [17:13:01]MH_I2C_Read... [17:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:01]Read from MH i2c: E2 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 0E 00 [17:13:01]MH_I2C_Read... [17:13:01]Read from MH i2c: E2 0E 00 E7 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 13 [17:13:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:13:01]wFMCommunicate OK [17:13:01]SAM_PROTO_GetShiftState done [17:13:01]FM_GetShiftState done [17:13:01]req_shift_opened done [17:13:01]requested_item shift.open_date is exist - process it [17:13:01]req_shift_open_date [17:13:01]req_shift_open_date done [17:13:01]produce_requested_data done [17:13:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112360,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:13:01]process_action_free close_receipt [17:13:01]json_value_free [17:13:01]json_value_free done [17:13:01]process_json_proto returns [17:13:01]Send response to host [17:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112360,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:13:01]free response buf [17:13:01]execute_script done [17:13:01]execute_script returns [17:13:01]free content buf [17:13:01]Sock 9.Close socket [17:13:01]Sock 9.Thread stoped [17:13:04]ConnectInit Can't take IP for lk.salyk.kg [17:13:04]CommunicateWithHost connect error [17:13:04]CommunicateWithHost err = -1 [17:13:04]OFD Sender: Server communicate error [17:13:09]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:09]ProducePacketName [17:13:09]name=ofd_packets/00112360 [17:13:09]OFD Sender: To server: pG, [17:13:09]CommunicateWithHost lk.salyk.kg:30040 [17:13:09]ConnectInit lk.salyk.kg [17:13:14]ConnectInit Can't take IP for lk.salyk.kg [17:13:14]CommunicateWithHost connect error [17:13:14]CommunicateWithHost err = -1 [17:13:14]OFD Sender: Server communicate error [17:13:19]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:19]ProducePacketName [17:13:19]name=ofd_packets/00112360 [17:13:19]OFD Sender: To server: pG, [17:13:19]CommunicateWithHost lk.salyk.kg:30040 [17:13:19]ConnectInit lk.salyk.kg [17:13:24]ConnectInit Can't take IP for lk.salyk.kg [17:13:24]CommunicateWithHost connect error [17:13:24]CommunicateWithHost err = -1 [17:13:24]OFD Sender: Server communicate error [17:13:29]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:29]ProducePacketName [17:13:29]name=ofd_packets/00112360 [17:13:29]OFD Sender: To server: pG, [17:13:29]CommunicateWithHost lk.salyk.kg:30040 [17:13:29]ConnectInit lk.salyk.kg [17:13:34]ConnectInit Can't take IP for lk.salyk.kg [17:13:34]CommunicateWithHost connect error [17:13:34]CommunicateWithHost err = -1 [17:13:34]OFD Sender: Server communicate error [17:13:39]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:39]ProducePacketName [17:13:39]name=ofd_packets/00112360 [17:13:39]OFD Sender: To server: pG, [17:13:39]CommunicateWithHost lk.salyk.kg:30040 [17:13:39]ConnectInit lk.salyk.kg [17:13:44]ConnectInit Can't take IP for lk.salyk.kg [17:13:44]CommunicateWithHost connect error [17:13:44]CommunicateWithHost err = -1 [17:13:44]OFD Sender: Server communicate error [17:13:49]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:49]ProducePacketName [17:13:49]name=ofd_packets/00112360 [17:13:49]OFD Sender: To server: pG, [17:13:49]CommunicateWithHost lk.salyk.kg:30040 [17:13:49]ConnectInit lk.salyk.kg [17:13:54]ConnectInit Can't take IP for lk.salyk.kg [17:13:54]CommunicateWithHost connect error [17:13:54]CommunicateWithHost err = -1 [17:13:54]OFD Sender: Server communicate error [17:13:59]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:13:59]ProducePacketName [17:13:59]name=ofd_packets/00112360 [17:13:59]OFD Sender: To server: pG, [17:13:59]CommunicateWithHost lk.salyk.kg:30040 [17:13:59]ConnectInit lk.salyk.kg [17:14:04]ConnectInit Can't take IP for lk.salyk.kg [17:14:04]CommunicateWithHost connect error [17:14:04]CommunicateWithHost err = -1 [17:14:04]OFD Sender: Server communicate error [17:14:06]ConnectInit Can't connect to host [17:14:09]OFD Sender: Processing packet 112360 [packets to send 71, broken 70] [17:14:09]ProducePacketName [17:14:09]name=ofd_packets/00112360 [17:14:09]OFD Sender: To server: pG, [17:14:09]CommunicateWithHost lk.salyk.kg:30040 [17:14:09]ConnectInit lk.salyk.kg [17:14:10]Connected sock=8 [17:14:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 6F 02 07 01 2E CE 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 9A 0E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E8 B6 01 00 35 04 06 00 7C E5 DA 14 D4 61 44 18 A4 BA 8A 83 13 24 [17:14:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D7 7C 47 00 1A 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E8 B6 01 00 F4 03 04 00 6B B6 1B 66 B6 04 01 00 00 21 96 AF E1 CA 1F F1 FE [17:14:10]CommunicateWithHost err = 0 [17:14:10]CheckOFDResponse [17:14:10]1017 (14) - 77093643461234 [17:14:10]1041 (16) - 0000000000875019 [17:14:10]1040 (4) - 112360 [17:14:10]1012 (4) - 14.04.2024 10:56 [17:14:10]1206 (1) - 0 [17:14:10]OFD Sender: Remove packet 112360 [17:14:10]ProducePacketName [17:14:10]name=ofd_packets/00112360 [17:14:10]NVStorageDeleteData [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:39]accept exits with 10 [17:16:39]New connection [17:16:39]New thread 3066682724 created [17:16:39]Thread 3066826084 joined [17:16:39]Waiting for new connection... [17:16:39] Sock 10.Parse request [17:16:39]Sock 10.Check first char [17:16:39]Sock 10.First char is OK [17:16:39]request: POST /json_proto HTTP/1.0 [17:16:39]Method: POST [17:16:39]URL: /json_proto [17:16:39]Method is POST - this is cgi request [17:16:39]url: /json_proto [17:16:39]query_string will be loaded in cgi processing [17:16:39]execute_cgi json_proto POST (null) [17:16:39]execute_cgi path=json_proto method=POST [17:16:39]POST find Content-Length [17:16:39]Host: 172.17.96.197:8080 [17:16:39]Content-Length: 676 [17:16:39]Content-Type: application/json [17:16:39] [17:16:39]POST finish read [17:16:39]Found Content-Length = 676 [17:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48670", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:16:39]execute_script... [17:16: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)48670", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:16:39]POST & json_proto [17:16:39]process_json_proto [17:16:39]json parsed OK: [17:16:39]protocol is kg_v1.0 [17:16:39]action value=close_receipt [17:16:39]process_action close_receipt [17:16:39]cmd_close_receipt [17:16:39]MH_GetDate [17:16:39]Write to MH i2c: F0 00 00 E8 17 EE [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 09 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 09 00 E8 17 00 78 0F 1C 66 E0 85 7F 64 48 [17:16:39]GetLastDocTimeStamp 1713114778 [17:16:39]current date 1713115000 [17:16:39]FM_GetShiftState [17:16:39]SAM_PROTO_GetShiftState [17:16:39]wFMCommunicate request_size=4 [17:16:39]MH_SAM_APDU [17:16:39]CAPDU: 80 13 01 00 [17:16:39]Write to MH i2c: E2 08 00 E9 17 80 13 01 00 00 00 00 00 7D [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0E 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0E 00 E9 17 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 15 [17:16:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:16:39]wFMCommunicate OK [17:16:39]SAM_PROTO_GetShiftState done [17:16:39]FM_GetShiftState done [17:16:39]opened in 1713054696 [17:16:39]opened+sec_in_day 1713141096 [17:16:39]quantity*price = 50025 [17:16:39]sum+1 = 50026 [17:16:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 260 14.04.2024 17:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112361 ФПД: 27543194668657 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171640&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112361&fm=27543194668657&tin=02508201610067®Number=0000000000094237&sum=50000 [17:16:40]StoreToDocumentArchive [17:16:40]shift 357 fd 112361 [17:16:40]save to /storage/0357/doc_00112361 [17:16:40]save last doc name /storage/0357/doc_00112361 to /storage/kkm_last_doc_name [17:16:40]save OK [17:16:40]Clear old archive folders... [17:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:16:40]tlvbuf is B6F36010 [17:16:40]SAM_PROTO_ClearQueue [17:16:40]wFMCommunicate request_size=4 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 09 00 00 [17:16:40]Write to MH i2c: E2 08 00 F6 17 80 09 00 00 00 00 00 00 7F [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 F6 17 00 90 00 81 [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]SAM_PROTO_ClearQueue done [17:16:40]KKMCreateOFDPacket [17:16:40]OFDProtocolAddRootSTLVToBuf [17:16:40]FM_MakeSignedData [17:16:40]FM_MakeSignedData [17:16:40]SAM_PROTO_SignData [17:16:40]wFMCommunicate request_size=4 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 01 02 [17:16:40]Write to MH i2c: E2 08 00 F7 17 80 0D 01 02 00 00 00 00 87 [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 F7 17 00 90 00 82 [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]wFMCommunicate request_size=255 [17:16:40]MH_SAM_APDU [17:16: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 04 01 00 00 F4 03 04 00 78 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E9 B6 01 00 35 04 06 00 19 [17:16:40]Write to MH i2c: E2 02 01 F8 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 04 01 00 00 F4 03 04 00 78 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E9 B6 01 00 35 04 06 00 19 00 00 57 [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 F8 17 00 90 00 83 [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]wFMCommunicate request_size=10 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 02 02 05 0C E6 55 8E 71 [17:16:40]Write to MH i2c: E2 0D 00 F9 17 80 0D 02 02 05 00 0C E6 55 8E 71 00 00 DA [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 F9 17 00 90 00 84 [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]wFMCommunicate request_size=4 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 03 02 [17:16:40]Write to MH i2c: E2 08 00 FA 17 80 0D 03 02 00 00 00 00 8C [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0B 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0B 00 FA 17 00 1F 76 58 F2 72 21 5A B3 90 00 0C [17:16:41]RAPDU: 1F 76 58 F2 72 21 5A B3 90 00 [17:16:41]wFMCommunicate OK [17:16:41]SAM_PROTO_SignData done [17:16:41]FM_MakeSignedData done [17:16:41]CreateOFDProtocolMessage [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 11 00 00 [17:16:41]Write to MH i2c: E2 08 00 FB 17 80 11 00 00 00 00 00 00 8C [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 FB 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DD [17:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:16:41]wFMCommunicate OK [17:16:41]CreateOFDProtocolMessage done [17:16:41]OFDSenderStorePacket 112361 [17:16:41]StoreOFDPacket docnum=112361 [17:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3E CF 07 01 1D 08 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 04 01 00 00 F4 03 04 00 78 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E9 B6 01 00 35 04 06 00 19 0C E6 55 8E 71 1F 76 58 F2 72 21 5A B3 [17:16:41]CheckFolder [17:16:41]dirname=/storage/ofd_packets [17:16:41]CheckFolder done [17:16:41]ProducePacketName [17:16:41]name=ofd_packets/00112361 [17:16:41]NVStorageSaveData ofd_packets/00112361 [17:16:41]File name is /storage/ofd_packets/00112361 [17:16:41]Write 301 bytes [17:16:41]NVStorageSaveData done [17:16:41]OFDSenderStorePacket done [17:16:41]KKMCreateOFDPacket done [17:16:41]NVStorageSaveData kkm_last_timestamp [17:16:41]File name is /storage/kkm_last_timestamp [17:16:41]Write 4 bytes [17:16:41]NVStorageSaveData done [17:16:41]ExternCall_PrintAddStr [17:16:41]wPrintStart [17:16:41]Write to MH i2c: 01 00 00 FC 17 13 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 FC 17 00 00 00 00 00 FF 0F 28 [17:16:41]RasterBufferAndPrint [17:16:41]line Счет N : (1)48670 [17:16:41]line ИНН: 02508201610067 [17:16:41]line Контрольно-Кассовый Чек [17:16:41]line ПРОДАЖА [17:16:41]line ТРК (МРК, ГНК) : 32 [17:16:41]line Товар: 2710124130 [17:16:41]line Аи-92-К-5 [17:16:41]line 7.780 * 64.30 [17:16:41]line = 500.25 [17:16:41]line НДС 12% НСП 1% [17:16:41]line > о реализуемом товаре [17:16:41]line ОКРУГЛЕНИЕ: -0.25 [17:16:41]line ИТОГО: 500.00 [17:16:41]line Внесено: 500.00 [17:16:41]line СДАЧА: 0.00 [17:16:41]line НСП 1% : 4.43 [17:16:41]line НДС 12% : 53.12 [17:16:41]line Наличными: 500.00 [17:16:41]line Безнал.: 0.00 [17:16:41]line Место: АЗС № 47 "Партнер Нефть" [17:16:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:16:41]line СНО: Общий режим [17:16:41]line Чек 260 14.04.2024 17:16 [17:16:41]line Смена: 357 ФФД: 1.0 [17:16:41]line ЗНМ: 0300000138 [17:16:41]line РНМ: 0000000000094237 [17:16:41]line Версия ККМ: 001 [17:16:41]line ФМ: 0000000000875019 [17:16:41]line ФД: 112361 [17:16:41]line ФПД: 27543194668657 [17:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171640&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112361&fm=27543194668657&tin=02508201610067®Number=0000000000094237&sum=50000 [17:16:41]OFD Sender: Processing packet 112361 [packets to send 71, broken 70] [17:16:41]ProducePacketName [17:16:41]name=ofd_packets/00112361 [17:16:41]OFD Sender: To server: pG, [17:16:41]CommunicateWithHost lk.salyk.kg:30040 [17:16:41]ConnectInit lk.salyk.kg [17:16:41]written 0, free lines is 4095 [17:16:41]Connected sock=9 [17:16:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3E CF 07 01 1D 08 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 04 01 00 00 F4 03 04 00 78 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 E9 B6 01 00 35 04 06 00 19 0C E6 55 8E 71 1F 76 58 F2 72 21 5A B3 [17:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AE 47 47 00 E1 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 38 37 35 30 31 39 10 04 04 00 E9 B6 01 00 F4 03 04 00 03 B7 1B 66 B6 04 01 00 00 EA F4 5F 47 BF B0 12 C6 [17:16:41]CommunicateWithHost err = 0 [17:16:41]CheckOFDResponse [17:16:41]1017 (14) - 77093643461234 [17:16:41]1041 (16) - 0000000000875019 [17:16:41]1040 (4) - 112361 [17:16:41]1012 (4) - 14.04.2024 10:59 [17:16:41]1206 (1) - 0 [17:16:41]OFD Sender: Remove packet 112361 [17:16:41]ProducePacketName [17:16:41]name=ofd_packets/00112361 [17:16:41]NVStorageDeleteData [17:16:41]Write to MH i2c: 01 00 00 27 18 3F [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 27 18 00 00 00 00 00 E2 0C 34 [17:16:41]RasterBufferAndPrint [17:16:41]line [17:16:41]line [17:16:41]line [17:16:41]line [17:16:41]line [17:16:41]written 0, free lines is 3304 [17:16:41]MH_Cut [17:16:41]Write to MH i2c: D1 01 00 2E 18 01 18 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: D1 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: D1 01 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: D1 01 00 2E 18 00 17 [17:16:41]Write to MH i2c: 01 00 00 2F 18 47 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:42]OFD Sender: No OFD packet to send [17:16:42]*** Cut start [17:16:42]*** Partial cut [17:16:42]*** CUTSNS_PIN = 1 [17:16:42]*** CUTSNS_PIN = 0 [17:16:42]*** Brake cut motor [17:16:43]Read from MH i2c: 01 [17:16:43]MH_I2C_Read... [17:16:43]*** Stop cut motor [17:16:43]*** Cut end [17:16:43]Read from MH i2c: 01 07 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 2F 18 00 00 00 00 00 FF 0F 5C [17:16:43]process_action close_receipt done [17:16:43]requested_data is exist [17:16:43]produce_requested_data [17:16:43]requested_item fm.sn is exist - process it [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 11 00 00 [17:16:43]Write to MH i2c: E2 08 00 30 18 80 11 00 00 00 00 00 00 C2 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 17 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 17 00 30 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 13 [17:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:16:43]wFMCommunicate OK [17:16:43]requested_item fd.num is exist - process it [17:16:43]SAM_PROTO_GetFieldsCounters [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 13 00 00 [17:16:43]Write to MH i2c: E2 08 00 31 18 80 13 00 00 00 00 00 00 C5 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 62 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 62 00 31 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 F9 [17:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 E9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:43]wFMCommunicate OK [17:16:43]SAM_PROTO_GetFieldsCounters done [17:16:43]requested_item shift.num is exist - process it [17:16:43]requested_item shift.opened is exist - process it [17:16:43]req_shift_opened [17:16:43]FM_GetShiftState [17:16:43]SAM_PROTO_GetShiftState [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 13 01 00 [17:16:43]Write to MH i2c: E2 08 00 32 18 80 13 01 00 00 00 00 00 C7 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 32 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5F [17:16:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:16:43]wFMCommunicate OK [17:16:43]SAM_PROTO_GetShiftState done [17:16:43]FM_GetShiftState done [17:16:43]req_shift_opened done [17:16:43]requested_item shift.open_date is exist - process it [17:16:43]req_shift_open_date [17:16:43]req_shift_open_date done [17:16:43]produce_requested_data done [17:16:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112361,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:16:43]process_action_free close_receipt [17:16:43]json_value_free [17:16:43]json_value_free done [17:16:43]process_json_proto returns [17:16:43]Send response to host [17:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112361,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:16:43]free response buf [17:16:43]execute_script done [17:16:43]execute_script returns [17:16:43]free content buf [17:16:43]Sock 10.Close socket [17:16:43]Sock 10.Thread stoped [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:16:57]accept exits with 8 [17:16:57]New connection [17:16:57]New thread 3066826084 created [17:16:57]Thread 3066682724 joined [17:16:57]Waiting for new connection... [17:16:57] Sock 8.Parse request [17:16:57]Sock 8.Check first char [17:16:57]Sock 8.First char is OK [17:16:57]request: POST /json_proto HTTP/1.0 [17:16:57]Method: POST [17:16:57]URL: /json_proto [17:16:57]Method is POST - this is cgi request [17:16:57]url: /json_proto [17:16:57]query_string will be loaded in cgi processing [17:16:57]execute_cgi json_proto POST (null) [17:16:57]execute_cgi path=json_proto method=POST [17:16:57]POST find Content-Length [17:16:57]Host: 172.17.96.197:8080 [17:16:57]Content-Length: 623 [17:16:57]Content-Type: application/json [17:16:57] [17:16:57]POST finish read [17:16:57]Found Content-Length = 623 [17:16:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10433", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:57]execute_script... [17:16:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10433", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:57]POST & json_proto [17:16:57]process_json_proto [17:16:57]json parsed OK: [17:16:57]protocol is kg_v1.0 [17:16:57]action value=close_receipt [17:16:57]process_action close_receipt [17:16:57]cmd_close_receipt [17:16:57]MH_GetDate [17:16:57]Write to MH i2c: F0 00 00 33 18 3A [17:16:57]Write i2c OK [17:16:57]MH_I2C_Read... [17:16:57]Read from MH i2c: F0 [17:16:57]MH_I2C_Read... [17:16:57]Read from MH i2c: F0 09 00 [17:16:57]MH_I2C_Read... [17:16:57]Read from MH i2c: F0 09 00 33 18 00 8A 0F 1C 66 E0 85 7F 64 A6 [17:16:57]GetLastDocTimeStamp 1713115000 [17:16:57]current date 1713115018 [17:16:57]FM_GetShiftState [17:16:57]SAM_PROTO_GetShiftState [17:16:57]wFMCommunicate request_size=4 [17:16:57]MH_SAM_APDU [17:16:57]CAPDU: 80 13 01 00 [17:16:57]Write to MH i2c: E2 08 00 34 18 80 13 01 00 00 00 00 00 C9 [17:16:57]Write i2c OK [17:16:57]MH_I2C_Read... [17:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:57]Read from MH i2c: E2 [17:16:57]MH_I2C_Read... [17:16:57]Read from MH i2c: E2 0E 00 [17:16:57]MH_I2C_Read... [17:16:57]Read from MH i2c: E2 0E 00 34 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 61 [17:16:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:16:57]wFMCommunicate OK [17:16:57]SAM_PROTO_GetShiftState done [17:16:57]FM_GetShiftState done [17:16:57]opened in 1713054696 [17:16:57]opened+sec_in_day 1713141096 [17:16:57]quantity*price = 30200 [17:16:57]sum+1 = 30201 [17:16:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 261 14.04.2024 17:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112362 ФПД: 228123667274467 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112362&fm=228123667274467&tin=02508201610067®Number=0000000000094237&sum=30200 0 [17:16:59]StoreToDocumentArchive [17:16:59]shift 357 fd 112362 [17:16:59]save to /storage/0357/doc_00112362 [17:16:59]save last doc name /storage/0357/doc_00112362 to /storage/kkm_last_doc_name [17:16:59]save OK [17:16:59]Clear old archive folders... [17:16:59]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:16:59]tlvbuf is 001A4BB0 [17:16:59]SAM_PROTO_ClearQueue [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 09 00 00 [17:16:59]Write to MH i2c: E2 08 00 41 18 80 09 00 00 00 00 00 00 CB [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 41 18 00 90 00 CD [17:16:59]RAPDU: 90 00 [17:16:59]wFMCommunicate OK [17:16:59]SAM_PROTO_ClearQueue done [17:16:59]KKMCreateOFDPacket [17:16:59]OFDProtocolAddRootSTLVToBuf [17:16:59]FM_MakeSignedData [17:16:59]FM_MakeSignedData [17:16:59]SAM_PROTO_SignData [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 0D 01 02 [17:16:59]Write to MH i2c: E2 08 00 42 18 80 0D 01 02 00 00 00 00 D3 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 42 18 00 90 00 CE [17:16:59]RAPDU: 90 00 [17:16:59]wFMCommunicate OK [17:16:59]wFMCommunicate request_size=255 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 05 01 00 00 F4 03 04 00 8A 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 [17:16:59]Write to MH i2c: E2 02 01 43 18 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 05 01 00 00 F4 03 04 00 8A 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 00 00 0D [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 43 18 00 90 00 CF [17:16:59]RAPDU: 90 00 [17:16:59]wFMCommunicate OK [17:16:59]wFMCommunicate request_size=35 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EA B6 01 00 35 04 06 00 CF 7A 2E 27 1A E3 [17:16:59]Write to MH i2c: E2 26 00 44 18 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EA B6 01 00 35 04 06 00 CF 7A 2E 27 1A E3 00 00 03 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 03 00 44 18 00 90 00 D0 [17:16:59]RAPDU: 90 00 [17:16:59]wFMCommunicate OK [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 0D 03 02 [17:16:59]Write to MH i2c: E2 08 00 45 18 80 0D 03 02 00 00 00 00 D8 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0B 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 0B 00 45 18 00 D5 4C 98 90 E2 A7 E7 03 90 00 95 [17:16:59]RAPDU: D5 4C 98 90 E2 A7 E7 03 90 00 [17:16:59]wFMCommunicate OK [17:16:59]SAM_PROTO_SignData done [17:16:59]FM_MakeSignedData done [17:16:59]CreateOFDProtocolMessage [17:16:59]wFMCommunicate request_size=4 [17:16:59]MH_SAM_APDU [17:16:59]CAPDU: 80 11 00 00 [17:16:59]Write to MH i2c: E2 08 00 46 18 80 11 00 00 00 00 00 00 D8 [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:59]Read from MH i2c: E2 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 17 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: E2 17 00 46 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 29 [17:16:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:16:59]wFMCommunicate OK [17:16:59]CreateOFDProtocolMessage done [17:16:59]OFDSenderStorePacket 112362 [17:16:59]StoreOFDPacket docnum=112362 [17:16:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 DB EA 20 01 78 05 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 05 01 00 00 F4 03 04 00 8A 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EA B6 01 00 35 04 06 00 CF 7A 2E 27 1A E3 D5 4C 98 90 E2 A7 E7 03 [17:16:59]CheckFolder [17:16:59]dirname=/storage/ofd_packets [17:16:59]CheckFolder done [17:16:59]ProducePacketName [17:16:59]name=ofd_packets/00112362 [17:16:59]NVStorageSaveData ofd_packets/00112362 [17:16:59]File name is /storage/ofd_packets/00112362 [17:16:59]Write 326 bytes [17:16:59]NVStorageSaveData done [17:16:59]OFDSenderStorePacket done [17:16:59]KKMCreateOFDPacket done [17:16:59]NVStorageSaveData kkm_last_timestamp [17:16:59]File name is /storage/kkm_last_timestamp [17:16:59]Write 4 bytes [17:16:59]NVStorageSaveData done [17:16:59]ExternCall_PrintAddStr [17:16:59]wPrintStart [17:16:59]Write to MH i2c: 01 00 00 47 18 5F [17:16:59]Write i2c OK [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: 01 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: 01 07 00 [17:16:59]MH_I2C_Read... [17:16:59]Read from MH i2c: 01 07 00 47 18 00 00 00 00 00 FF 0F 74 [17:16:59]RasterBufferAndPrint [17:16:59]line Счет N : (3)10433 [17:16:59]line ИНН: 02508201610067 [17:16:59]line Контрольно-Кассовый Чек [17:16:59]line ПРОДАЖА [17:16:59]line Товар: 48742245 [17:16:59]line Сигареты Parliament Silver Blue [17:16:59]line 2.000 * 151.00 [17:16:59]line = 302.00 [17:16:59]line НДС 12% НСП 1% [17:16:59]line > о реализуемом товаре [17:16:59]line ИТОГО: 302.00 [17:16:59]line НСП 1% : 2.67 [17:16:59]line НДС 12% : 32.07 [17:16:59]line Наличными: 302.00 [17:16:59]line Безнал.: 0.00 [17:16:59]line Место: АЗС № 47 "Партнер Нефть" [17:16:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:16:59]line СНО: Общий режим [17:16:59]line Чек 261 14.04.2024 17:16 [17:16:59]line Смена: 357 ФФД: 1.0 [17:16:59]line ЗНМ: 0300000138 [17:16:59]line РНМ: 0000000000094237 [17:16:59]line Версия ККМ: 001 [17:16:59]line ФМ: 0000000000875019 [17:16:59]line ФД: 112362 [17:16:59]line ФПД: 228123667274467 [17:16:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112362&fm=228123667274467&tin=02508201610067®Number=0000000000094237&sum=30200 [17:16:59]line 0 [17:16:59]OFD Sender: Processing packet 112362 [packets to send 71, broken 70] [17:16:59]ProducePacketName [17:16:59]name=ofd_packets/00112362 [17:16:59]OFD Sender: To server: pG, [17:16:59]CommunicateWithHost lk.salyk.kg:30040 [17:16:59]ConnectInit lk.salyk.kg [17:16:59]written 0, free lines is 4095 [17:17:00]Connected sock=10 [17:17:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 DB EA 20 01 78 05 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 05 01 00 00 F4 03 04 00 8A 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EA B6 01 00 35 04 06 00 CF 7A 2E 27 1A E3 D5 4C 98 90 E2 A7 E7 03 [17:17:00]Write to MH i2c: 01 00 00 70 18 88 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: 01 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: 01 07 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: 01 07 00 70 18 00 00 00 00 00 DF 0C 7A [17:17:00]RasterBufferAndPrint [17:17:00]line [17:17:00]line [17:17:00]line [17:17:00]line [17:17:00]line [17:17:00]written 0, free lines is 3301 [17:17:00]MH_Cut [17:17:00]Write to MH i2c: D1 01 00 77 18 01 61 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: D1 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: D1 01 00 [17:17:00]MH_I2C_Read... [17:17:00]Read from MH i2c: D1 01 00 77 18 00 60 [17:17:00]Write to MH i2c: 01 00 00 78 18 90 [17:17:00]Write i2c OK [17:17:00]MH_I2C_Read... [17:17:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5B C5 47 00 AF AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EA B6 01 00 F4 03 04 00 15 B7 1B 66 B6 04 01 00 00 DA 7D 48 D5 54 15 46 DF [17:17:00]CommunicateWithHost err = 0 [17:17:00]CheckOFDResponse [17:17:00]1017 (14) - 77093643461234 [17:17:00]1041 (16) - 0000000000875019 [17:17:00]1040 (4) - 112362 [17:17:00]1012 (4) - 14.04.2024 10:59 [17:17:00]1206 (1) - 0 [17:17:00]OFD Sender: Remove packet 112362 [17:17:00]ProducePacketName [17:17:00]name=ofd_packets/00112362 [17:17:00]NVStorageDeleteData [17:17:00]OFD Sender: No OFD packet to send [17:17:01]*** Cut start [17:17:01]*** Partial cut [17:17:01]*** CUTSNS_PIN = 1 [17:17:01]*** CUTSNS_PIN = 0 [17:17:01]*** Brake cut motor [17:17:01]Read from MH i2c: 01 [17:17:01]MH_I2C_Read... [17:17:01]*** Stop cut motor [17:17:01]*** Cut end [17:17:01]Read from MH i2c: 01 07 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: 01 07 00 78 18 00 00 00 00 00 FF 0F A5 [17:17:01]process_action close_receipt done [17:17:01]requested_data is exist [17:17:01]produce_requested_data [17:17:01]requested_item fm.sn is exist - process it [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 11 00 00 [17:17:01]Write to MH i2c: E2 08 00 79 18 80 11 00 00 00 00 00 00 0B [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 17 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 17 00 79 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5C [17:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:17:01]wFMCommunicate OK [17:17:01]requested_item fd.num is exist - process it [17:17:01]SAM_PROTO_GetFieldsCounters [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 13 00 00 [17:17:01]Write to MH i2c: E2 08 00 7A 18 80 13 00 00 00 00 00 00 0E [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 62 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 62 00 7A 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [17:17:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:17:01]wFMCommunicate OK [17:17:01]SAM_PROTO_GetFieldsCounters done [17:17:01]requested_item shift.num is exist - process it [17:17:01]requested_item shift.opened is exist - process it [17:17:01]req_shift_opened [17:17:01]FM_GetShiftState [17:17:01]SAM_PROTO_GetShiftState [17:17:01]wFMCommunicate request_size=4 [17:17:01]MH_SAM_APDU [17:17:01]CAPDU: 80 13 01 00 [17:17:01]Write to MH i2c: E2 08 00 7B 18 80 13 01 00 00 00 00 00 10 [17:17:01]Write i2c OK [17:17:01]MH_I2C_Read... [17:17:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:01]Read from MH i2c: E2 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0E 00 [17:17:01]MH_I2C_Read... [17:17:01]Read from MH i2c: E2 0E 00 7B 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A8 [17:17:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:17:01]wFMCommunicate OK [17:17:01]SAM_PROTO_GetShiftState done [17:17:01]FM_GetShiftState done [17:17:01]req_shift_opened done [17:17:01]requested_item shift.open_date is exist - process it [17:17:01]req_shift_open_date [17:17:01]req_shift_open_date done [17:17:01]produce_requested_data done [17:17:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112362,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:17:01]process_action_free close_receipt [17:17:01]json_value_free [17:17:01]json_value_free done [17:17:01]process_json_proto returns [17:17:01]Send response to host [17:17:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112362,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:17:01]free response buf [17:17:01]execute_script done [17:17:01]execute_script returns [17:17:01]free content buf [17:17:01]Sock 8.Close socket [17:17:01]Sock 8.Thread stoped [17:17:05]OFD Sender: No OFD packet to send [17:17:10]OFD Sender: No OFD packet to send [17:17:15]OFD Sender: No OFD packet to send [17:17:20]OFD Sender: No OFD packet to send [17:17:25]OFD Sender: No OFD packet to send [17:17:30]OFD Sender: No OFD packet to send [17:17:35]OFD Sender: No OFD packet to send [17:17:40]OFD Sender: No OFD packet to send [17:17:45]OFD Sender: No OFD packet to send [17:17:50]OFD Sender: No OFD packet to send [17:17:55]OFD Sender: No OFD packet to send [17:18:00]OFD Sender: No OFD packet to send [17:18:05]OFD Sender: No OFD packet to send [17:18:10]OFD Sender: No OFD packet to send [17:18:15]OFD Sender: No OFD packet to send [17:18:20]OFD Sender: No OFD packet to send [17:18:25]OFD Sender: No OFD packet to send [17:18:29]accept exits with 9 [17:18:29]New connection [17:18:29]New thread 3066682724 created [17:18:29]Thread 3066826084 joined [17:18:29]Waiting for new connection... [17:18:29] Sock 9.Parse request [17:18:29]Sock 9.Check first char [17:18:29]Sock 9.First char is OK [17:18:29]request: POST /json_proto HTTP/1.0 [17:18:29]Method: POST [17:18:29]URL: /json_proto [17:18:29]Method is POST - this is cgi request [17:18:29]url: /json_proto [17:18:29]query_string will be loaded in cgi processing [17:18:29]execute_cgi json_proto POST (null) [17:18:29]execute_cgi path=json_proto method=POST [17:18:29]POST find Content-Length [17:18:29]Host: 172.17.96.197:8080 [17:18:29]Content-Length: 681 [17:18:29]Content-Type: application/json [17:18:29] [17:18:29]POST finish read [17:18:29]Found Content-Length = 681 [17:18:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [17:18:29]execute_script... [17:18: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)48671", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 13.800, "sum" : 1000.50, "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" ] } } [17:18:29]POST & json_proto [17:18:29]process_json_proto [17:18:29]json parsed OK: [17:18:29]protocol is kg_v1.0 [17:18:29]action value=close_receipt [17:18:29]process_action close_receipt [17:18:29]cmd_close_receipt [17:18:29]MH_GetDate [17:18:29]Write to MH i2c: F0 00 00 7C 18 83 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 09 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: F0 09 00 7C 18 00 E6 0F 1C 66 E0 85 7F 64 4B [17:18:29]GetLastDocTimeStamp 1713115018 [17:18:29]current date 1713115110 [17:18:29]FM_GetShiftState [17:18:29]SAM_PROTO_GetShiftState [17:18:29]wFMCommunicate request_size=4 [17:18:29]MH_SAM_APDU [17:18:29]CAPDU: 80 13 01 00 [17:18:29]Write to MH i2c: E2 08 00 7D 18 80 13 01 00 00 00 00 00 12 [17:18:29]Write i2c OK [17:18:29]MH_I2C_Read... [17:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:29]Read from MH i2c: E2 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 [17:18:29]MH_I2C_Read... [17:18:29]Read from MH i2c: E2 0E 00 7D 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AA [17:18:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:18:29]wFMCommunicate OK [17:18:29]SAM_PROTO_GetShiftState done [17:18:29]FM_GetShiftState done [17:18:29]opened in 1713054696 [17:18:29]opened+sec_in_day 1713141096 [17:18:29]quantity*price = 100050 [17:18:29]sum+1 = 100051 [17:18:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 262 14.04.2024 17:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112363 ФПД: 137115015517740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171830&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112363&fm=137115015517740&tin=02508201610067®Number=0000000000094237&sum=100000 [17:18:31]StoreToDocumentArchive [17:18:31]shift 357 fd 112363 [17:18:31]save to /storage/0357/doc_00112363 [17:18:31]save last doc name /storage/0357/doc_00112363 to /storage/kkm_last_doc_name [17:18:31]save OK [17:18:31]Clear old archive folders... [17:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:18:31]tlvbuf is B6E894E0 [17:18:31]SAM_PROTO_ClearQueue [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 09 00 00 [17:18:31]Write to MH i2c: E2 08 00 8A 18 80 09 00 00 00 00 00 00 14 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 8A 18 00 90 00 16 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]SAM_PROTO_ClearQueue done [17:18:31]KKMCreateOFDPacket [17:18:31]OFDProtocolAddRootSTLVToBuf [17:18:31]FM_MakeSignedData [17:18:31]FM_MakeSignedData [17:18:31]SAM_PROTO_SignData [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 01 02 [17:18:31]Write to MH i2c: E2 08 00 8B 18 80 0D 01 02 00 00 00 00 1C [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 8B 18 00 90 00 17 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]wFMCommunicate request_size=255 [17:18:31]MH_SAM_APDU [17:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 06 01 00 00 F4 03 04 00 E6 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EB B6 01 00 35 04 06 00 7C [17:18:31]Write to MH i2c: E2 02 01 8C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 06 01 00 00 F4 03 04 00 E6 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EB B6 01 00 35 04 06 00 7C 00 00 7E [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 8C 18 00 90 00 18 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]wFMCommunicate request_size=10 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 02 02 05 B4 93 CB 16 2C [17:18:31]Write to MH i2c: E2 0D 00 8D 18 80 0D 02 02 05 00 B4 93 CB 16 2C 00 00 7D [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 03 00 8D 18 00 90 00 19 [17:18:31]RAPDU: 90 00 [17:18:31]wFMCommunicate OK [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 0D 03 02 [17:18:31]Write to MH i2c: E2 08 00 8E 18 80 0D 03 02 00 00 00 00 21 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0B 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 0B 00 8E 18 00 FD 24 CB 05 98 B9 D6 5F 90 00 99 [17:18:31]RAPDU: FD 24 CB 05 98 B9 D6 5F 90 00 [17:18:31]wFMCommunicate OK [17:18:31]SAM_PROTO_SignData done [17:18:31]FM_MakeSignedData done [17:18:31]CreateOFDProtocolMessage [17:18:31]wFMCommunicate request_size=4 [17:18:31]MH_SAM_APDU [17:18:31]CAPDU: 80 11 00 00 [17:18:31]Write to MH i2c: E2 08 00 8F 18 80 11 00 00 00 00 00 00 21 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:31]Read from MH i2c: E2 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 17 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: E2 17 00 8F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 72 [17:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:18:31]wFMCommunicate OK [17:18:31]CreateOFDProtocolMessage done [17:18:31]OFDSenderStorePacket 112363 [17:18:31]StoreOFDPacket docnum=112363 [17:18:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C1 14 07 01 0F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 06 01 00 00 F4 03 04 00 E6 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EB B6 01 00 35 04 06 00 7C B4 93 CB 16 2C FD 24 CB 05 98 B9 D6 5F [17:18:31]CheckFolder [17:18:31]dirname=/storage/ofd_packets [17:18:31]CheckFolder done [17:18:31]ProducePacketName [17:18:31]name=ofd_packets/00112363 [17:18:31]NVStorageSaveData ofd_packets/00112363 [17:18:31]File name is /storage/ofd_packets/00112363 [17:18:31]Write 301 bytes [17:18:31]NVStorageSaveData done [17:18:31]OFDSenderStorePacket done [17:18:31]KKMCreateOFDPacket done [17:18:31]NVStorageSaveData kkm_last_timestamp [17:18:31]File name is /storage/kkm_last_timestamp [17:18:31]Write 4 bytes [17:18:31]NVStorageSaveData done [17:18:31]ExternCall_PrintAddStr [17:18:31]wPrintStart [17:18:31]Write to MH i2c: 01 00 00 90 18 A8 [17:18:31]Write i2c OK [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 07 00 [17:18:31]MH_I2C_Read... [17:18:31]Read from MH i2c: 01 07 00 90 18 00 00 00 00 00 FF 0F BD [17:18:31]RasterBufferAndPrint [17:18:31]line Счет N : (1)48671 [17:18:31]line ИНН: 02508201610067 [17:18:31]line Контрольно-Кассовый Чек [17:18:31]line ПРОДАЖА [17:18:31]line ТРК (МРК, ГНК) : 22 [17:18:31]line Товар: 2710124500 [17:18:31]line Аи-95-К-5 [17:18:31]line 13.800 * 72.50 [17:18:31]line = 1000.50 [17:18:31]line НДС 12% НСП 1% [17:18:31]line > о реализуемом товаре [17:18:31]line ОКРУГЛЕНИЕ: -0.50 [17:18:31]line ИТОГО: 1000.00 [17:18:31]line Внесено: 1000.00 [17:18:31]line СДАЧА: 0.00 [17:18:31]line НСП 1% : 8.85 [17:18:31]line НДС 12% : 106.25 [17:18:31]line Наличными: 1000.00 [17:18:31]line Безнал.: 0.00 [17:18:31]line Место: АЗС № 47 "Партнер Нефть" [17:18:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:18:31]line СНО: Общий режим [17:18:31]line Чек 262 14.04.2024 17:18 [17:18:31]line Смена: 357 ФФД: 1.0 [17:18:31]line ЗНМ: 0300000138 [17:18:31]line РНМ: 0000000000094237 [17:18:31]line Версия ККМ: 001 [17:18:31]line ФМ: 0000000000875019 [17:18:31]line ФД: 112363 [17:18:31]line ФПД: 137115015517740 [17:18:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171830&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112363&fm=137115015517740&tin=02508201610067®Number=0000000000094237&sum=100000 [17:18:31]OFD Sender: Processing packet 112363 [packets to send 71, broken 70] [17:18:31]ProducePacketName [17:18:31]name=ofd_packets/00112363 [17:18:31]OFD Sender: To server: pG, [17:18:31]CommunicateWithHost lk.salyk.kg:30040 [17:18:31]ConnectInit lk.salyk.kg [17:18:31]written 0, free lines is 4095 [17:18:32]Connected sock=10 [17:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C1 14 07 01 0F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 E8 35 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D2 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 06 01 00 00 F4 03 04 00 E6 0F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EB B6 01 00 35 04 06 00 7C B4 93 CB 16 2C FD 24 CB 05 98 B9 D6 5F [17:18:32]Write to MH i2c: 01 00 00 BB 18 D3 [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 07 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: 01 07 00 BB 18 00 00 00 00 00 D9 0C BF [17:18:32]RasterBufferAndPrint [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]line [17:18:32]written 0, free lines is 3296 [17:18:32]MH_Cut [17:18:32]Write to MH i2c: D1 01 00 C2 18 01 AC [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: D1 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: D1 01 00 [17:18:32]MH_I2C_Read... [17:18:32]Read from MH i2c: D1 01 00 C2 18 00 AB [17:18:32]Write to MH i2c: 01 00 00 C3 18 DB [17:18:32]Write i2c OK [17:18:32]MH_I2C_Read... [17:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 30 4C 47 00 8F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EB B6 01 00 F4 03 04 00 71 B7 1B 66 B6 04 01 00 00 97 3A 68 2C C7 9E 6E 32 [17:18:32]CommunicateWithHost err = 0 [17:18:32]CheckOFDResponse [17:18:32]1017 (14) - 77093643461234 [17:18:32]1041 (16) - 0000000000875019 [17:18:32]1040 (4) - 112363 [17:18:32]1012 (4) - 14.04.2024 11:01 [17:18:32]1206 (1) - 0 [17:18:32]OFD Sender: Remove packet 112363 [17:18:32]ProducePacketName [17:18:32]name=ofd_packets/00112363 [17:18:32]NVStorageDeleteData [17:18:32]OFD Sender: No OFD packet to send [17:18:33]*** Cut start [17:18:33]*** Partial cut [17:18:33]*** CUTSNS_PIN = 1 [17:18:33]*** CUTSNS_PIN = 0 [17:18:33]*** Brake cut motor [17:18:33]Read from MH i2c: 01 [17:18:33]MH_I2C_Read... [17:18:33]*** Stop cut motor [17:18:33]*** Cut end [17:18:33]Read from MH i2c: 01 07 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: 01 07 00 C3 18 00 00 00 00 00 FF 0F F0 [17:18:33]process_action close_receipt done [17:18:33]requested_data is exist [17:18:33]produce_requested_data [17:18:33]requested_item fm.sn is exist - process it [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 11 00 00 [17:18:33]Write to MH i2c: E2 08 00 C4 18 80 11 00 00 00 00 00 00 56 [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 17 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 17 00 C4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A7 [17:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:18:33]wFMCommunicate OK [17:18:33]requested_item fd.num is exist - process it [17:18:33]SAM_PROTO_GetFieldsCounters [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 13 00 00 [17:18:33]Write to MH i2c: E2 08 00 C5 18 80 13 00 00 00 00 00 00 59 [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 62 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 62 00 C5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 95 [17:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:33]wFMCommunicate OK [17:18:33]SAM_PROTO_GetFieldsCounters done [17:18:33]requested_item shift.num is exist - process it [17:18:33]requested_item shift.opened is exist - process it [17:18:33]req_shift_opened [17:18:33]FM_GetShiftState [17:18:33]SAM_PROTO_GetShiftState [17:18:33]wFMCommunicate request_size=4 [17:18:33]MH_SAM_APDU [17:18:33]CAPDU: 80 13 01 00 [17:18:33]Write to MH i2c: E2 08 00 C6 18 80 13 01 00 00 00 00 00 5B [17:18:33]Write i2c OK [17:18:33]MH_I2C_Read... [17:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:33]Read from MH i2c: E2 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 0E 00 [17:18:33]MH_I2C_Read... [17:18:33]Read from MH i2c: E2 0E 00 C6 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F3 [17:18:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:18:33]wFMCommunicate OK [17:18:33]SAM_PROTO_GetShiftState done [17:18:33]FM_GetShiftState done [17:18:33]req_shift_opened done [17:18:33]requested_item shift.open_date is exist - process it [17:18:33]req_shift_open_date [17:18:33]req_shift_open_date done [17:18:33]produce_requested_data done [17:18:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112363,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:18:33]process_action_free close_receipt [17:18:33]json_value_free [17:18:33]json_value_free done [17:18:33]process_json_proto returns [17:18:33]Send response to host [17:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112363,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:18:33]free response buf [17:18:33]execute_script done [17:18:33]execute_script returns [17:18:33]free content buf [17:18:33]Sock 9.Close socket [17:18:33]Sock 9.Thread stoped [17:18:37]OFD Sender: No OFD packet to send [17:18:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:08]accept exits with 8 [17:19:08]New connection [17:19:08]New thread 3066826084 created [17:19:08]Thread 3066682724 joined [17:19:08]Waiting for new connection... [17:19:08] Sock 8.Parse request [17:19:08]Sock 8.Check first char [17:19:08]Sock 8.First char is OK [17:19:08]request: POST /json_proto HTTP/1.0 [17:19:08]Method: POST [17:19:08]URL: /json_proto [17:19:08]Method is POST - this is cgi request [17:19:08]url: /json_proto [17:19:08]query_string will be loaded in cgi processing [17:19:08]execute_cgi json_proto POST (null) [17:19:08]execute_cgi path=json_proto method=POST [17:19:08]POST find Content-Length [17:19:08]Host: 172.17.96.197:8080 [17:19:08]Content-Length: 684 [17:19:08]Content-Type: application/json [17:19:08] [17:19:08]POST finish read [17:19:08]Found Content-Length = 684 [17:19:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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" ] } } [17:19:08]execute_script... [17:19:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48669", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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" ] } } [17:19:08]POST & json_proto [17:19:08]process_json_proto [17:19:08]json parsed OK: [17:19:08]protocol is kg_v1.0 [17:19:08]action value=close_receipt [17:19:08]process_action close_receipt [17:19:08]cmd_close_receipt [17:19:08]MH_GetDate [17:19:08]Write to MH i2c: F0 00 00 C7 18 CE [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: F0 09 00 C7 18 00 0D 10 1C 66 E0 85 7F 64 BE [17:19:08]GetLastDocTimeStamp 1713115110 [17:19:08]current date 1713115149 [17:19:08]FM_GetShiftState [17:19:08]SAM_PROTO_GetShiftState [17:19:08]wFMCommunicate request_size=4 [17:19:08]MH_SAM_APDU [17:19:08]CAPDU: 80 13 01 00 [17:19:08]Write to MH i2c: E2 08 00 C8 18 80 13 01 00 00 00 00 00 5D [17:19:08]Write i2c OK [17:19:08]MH_I2C_Read... [17:19:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:08]Read from MH i2c: E2 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 [17:19:08]MH_I2C_Read... [17:19:08]Read from MH i2c: E2 0E 00 C8 18 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F5 [17:19:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:19:08]wFMCommunicate OK [17:19:08]SAM_PROTO_GetShiftState done [17:19:08]FM_GetShiftState done [17:19:08]opened in 1713054696 [17:19:08]opened+sec_in_day 1713141096 [17:19:08]quantity*price = 100029 [17:19:08]sum+1 = 100030 [17:19:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 263 14.04.2024 17:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112364 ФПД: 145350965951992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171909&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112364&fm=145350965951992&tin=02508201610067®Number=0000000000094237&sum=100000 [17:19:09]StoreToDocumentArchive [17:19:09]shift 357 fd 112364 [17:19:09]save to /storage/0357/doc_00112364 [17:19:09]save last doc name /storage/0357/doc_00112364 to /storage/kkm_last_doc_name [17:19:09]save OK [17:19:09]Clear old archive folders... [17:19:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [17:19:09]tlvbuf is 001B8610 [17:19:09]SAM_PROTO_ClearQueue [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 09 00 00 [17:19:09]Write to MH i2c: E2 08 00 D5 18 80 09 00 00 00 00 00 00 5F [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]SAM_PROTO_ClearQueue done [17:19:09]KKMCreateOFDPacket [17:19:09]OFDProtocolAddRootSTLVToBuf [17:19:09]FM_MakeSignedData [17:19:09]FM_MakeSignedData [17:19:09]SAM_PROTO_SignData [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 01 02 [17:19:09]Write to MH i2c: E2 08 00 D6 18 80 0D 01 02 00 00 00 00 67 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 D6 18 00 90 00 62 [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]wFMCommunicate request_size=255 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0D 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EC B6 01 00 35 04 06 00 84 32 [17:19:09]Write to MH i2c: E2 02 01 D7 18 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0D 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EC B6 01 00 35 04 06 00 84 32 00 00 F4 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 D7 18 00 90 00 63 [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]wFMCommunicate request_size=9 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 02 02 04 28 B1 7D F8 [17:19:09]Write to MH i2c: E2 0C 00 D8 18 80 0D 02 02 04 00 28 B1 7D F8 00 00 C0 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 03 00 D8 18 00 90 00 64 [17:19:09]RAPDU: 90 00 [17:19:09]wFMCommunicate OK [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 0D 03 02 [17:19:09]Write to MH i2c: E2 08 00 D9 18 80 0D 03 02 00 00 00 00 6C [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 0B 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 0B 00 D9 18 00 08 09 EA 15 FC B2 AF C6 90 00 A0 [17:19:09]RAPDU: 08 09 EA 15 FC B2 AF C6 90 00 [17:19:09]wFMCommunicate OK [17:19:09]SAM_PROTO_SignData done [17:19:09]FM_MakeSignedData done [17:19:09]CreateOFDProtocolMessage [17:19:09]wFMCommunicate request_size=4 [17:19:09]MH_SAM_APDU [17:19:09]CAPDU: 80 11 00 00 [17:19:09]Write to MH i2c: E2 08 00 DA 18 80 11 00 00 00 00 00 00 6C [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:09]Read from MH i2c: E2 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 17 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: E2 17 00 DA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BD [17:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:19:09]wFMCommunicate OK [17:19:09]CreateOFDProtocolMessage done [17:19:09]OFDSenderStorePacket 112364 [17:19:09]StoreOFDPacket docnum=112364 [17:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 8A FD 06 01 C9 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0D 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EC B6 01 00 35 04 06 00 84 32 28 B1 7D F8 08 09 EA 15 FC B2 AF C6 [17:19:09]CheckFolder [17:19:09]dirname=/storage/ofd_packets [17:19:09]CheckFolder done [17:19:09]ProducePacketName [17:19:09]name=ofd_packets/00112364 [17:19:09]NVStorageSaveData ofd_packets/00112364 [17:19:09]File name is /storage/ofd_packets/00112364 [17:19:09]Write 300 bytes [17:19:09]NVStorageSaveData done [17:19:09]OFDSenderStorePacket done [17:19:09]KKMCreateOFDPacket done [17:19:09]NVStorageSaveData kkm_last_timestamp [17:19:09]File name is /storage/kkm_last_timestamp [17:19:09]Write 4 bytes [17:19:09]NVStorageSaveData done [17:19:09]ExternCall_PrintAddStr [17:19:09]wPrintStart [17:19:09]Write to MH i2c: 01 00 00 DB 18 F3 [17:19:09]Write i2c OK [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: 01 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: 01 07 00 [17:19:09]MH_I2C_Read... [17:19:09]Read from MH i2c: 01 07 00 DB 18 00 00 00 00 00 FF 0F 08 [17:19:09]RasterBufferAndPrint [17:19:09]line Счет N : (1)48669 [17:19:09]line ИНН: 02508201610067 [17:19:09]line Контрольно-Кассовый Чек [17:19:09]line ПРОДАЖА [17:19:09]line ТРК (МРК, ГНК) : 72 [17:19:09]line Товар: 2711190000 [17:19:09]line ГАЗ-К-5 [17:19:09]line 30.590 * 32.70 [17:19:09]line = 1000.29 [17:19:09]line НДС 12% НСП 1% [17:19:09]line > о реализуемом товаре [17:19:09]line ОКРУГЛЕНИЕ: -0.29 [17:19:09]line ИТОГО: 1000.00 [17:19:09]line Внесено: 1000.00 [17:19:09]line СДАЧА: 0.00 [17:19:09]line НСП 1% : 8.85 [17:19:09]line НДС 12% : 106.22 [17:19:09]line Наличными: 1000.00 [17:19:09]line Безнал.: 0.00 [17:19:09]line Место: АЗС № 47 "Партнер Нефть" [17:19:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:19:09]line СНО: Общий режим [17:19:09]line Чек 263 14.04.2024 17:19 [17:19:09]line Смена: 357 ФФД: 1.0 [17:19:09]line ЗНМ: 0300000138 [17:19:09]line РНМ: 0000000000094237 [17:19:09]line Версия ККМ: 001 [17:19:09]line ФМ: 0000000000875019 [17:19:09]line ФД: 112364 [17:19:09]line ФПД: 145350965951992 [17:19:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171909&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112364&fm=145350965951992&tin=02508201610067®Number=0000000000094237&sum=100000 [17:19:10]OFD Sender: Processing packet 112364 [packets to send 71, broken 70] [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00112364 [17:19:10]OFD Sender: To server: pG, [17:19:10]CommunicateWithHost lk.salyk.kg:30040 [17:19:10]ConnectInit lk.salyk.kg [17:19:10]written 0, free lines is 4095 [17:19:10]Connected sock=10 [17:19:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 8A FD 06 01 C9 80 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 0D 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EC B6 01 00 35 04 06 00 84 32 28 B1 7D F8 08 09 EA 15 FC B2 AF C6 [17:19:10]Write to MH i2c: 01 00 00 06 19 1F [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: 01 07 00 06 19 00 00 00 00 00 DD 0C 0F [17:19:10]RasterBufferAndPrint [17:19:10]line [17:19:10]line [17:19:10]line [17:19:10]line [17:19:10]line [17:19:10]written 0, free lines is 3299 [17:19:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 93 6E 47 00 02 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EC B6 01 00 F4 03 04 00 98 B7 1B 66 B6 04 01 00 00 09 98 AD B3 43 EB 70 C6 [17:19:10]CommunicateWithHost err = 0 [17:19:10]CheckOFDResponse [17:19:10]1017 (14) - 77093643461234 [17:19:10]1041 (16) - 0000000000875019 [17:19:10]1040 (4) - 112364 [17:19:10]1012 (4) - 14.04.2024 11:01 [17:19:10]1206 (1) - 0 [17:19:10]OFD Sender: Remove packet 112364 [17:19:10]ProducePacketName [17:19:10]name=ofd_packets/00112364 [17:19:10]NVStorageDeleteData [17:19:10]MH_Cut [17:19:10]Write to MH i2c: D1 01 00 0D 19 01 F8 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: D1 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: D1 01 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: D1 01 00 0D 19 00 F7 [17:19:10]Write to MH i2c: 01 00 00 0E 19 27 [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:11]OFD Sender: No OFD packet to send [17:19:11]*** Cut start [17:19:11]*** Partial cut [17:19:11]*** CUTSNS_PIN = 1 [17:19:11]*** CUTSNS_PIN = 0 [17:19:11]*** Brake cut motor [17:19:12]Read from MH i2c: 01 [17:19:12]MH_I2C_Read... [17:19:12]*** Stop cut motor [17:19:12]*** Cut end [17:19:12]Read from MH i2c: 01 07 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 0E 19 00 00 00 00 00 FF 0F 3C [17:19:12]process_action close_receipt done [17:19:12]requested_data is exist [17:19:12]produce_requested_data [17:19:12]requested_item fm.sn is exist - process it [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 11 00 00 [17:19:12]Write to MH i2c: E2 08 00 0F 19 80 11 00 00 00 00 00 00 A2 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 0F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [17:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:19:12]wFMCommunicate OK [17:19:12]requested_item fd.num is exist - process it [17:19:12]SAM_PROTO_GetFieldsCounters [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 00 00 [17:19:12]Write to MH i2c: E2 08 00 10 19 80 13 00 00 00 00 00 00 A5 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 62 00 10 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [17:19:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetFieldsCounters done [17:19:12]requested_item shift.num is exist - process it [17:19:12]requested_item shift.opened is exist - process it [17:19:12]req_shift_opened [17:19:12]FM_GetShiftState [17:19:12]SAM_PROTO_GetShiftState [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 13 01 00 [17:19:12]Write to MH i2c: E2 08 00 11 19 80 13 01 00 00 00 00 00 A7 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0E 00 11 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3F [17:19:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_GetShiftState done [17:19:12]FM_GetShiftState done [17:19:12]req_shift_opened done [17:19:12]requested_item shift.open_date is exist - process it [17:19:12]req_shift_open_date [17:19:12]req_shift_open_date done [17:19:12]produce_requested_data done [17:19:12]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112364,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:19:12]process_action_free close_receipt [17:19:12]json_value_free [17:19:12]json_value_free done [17:19:12]process_json_proto returns [17:19:12]Send response to host [17:19:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112364,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:19:12]free response buf [17:19:12]execute_script done [17:19:12]execute_script returns [17:19:12]free content buf [17:19:12]Sock 8.Close socket [17:19:12]Sock 8.Thread stoped [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:29]accept exits with 9 [17:19:29]New connection [17:19:29]New thread 3066682724 created [17:19:29]Thread 3066826084 joined [17:19:29]Waiting for new connection... [17:19:29] Sock 9.Parse request [17:19:29]Sock 9.Check first char [17:19:29]Sock 9.First char is OK [17:19:29]request: POST /json_proto HTTP/1.0 [17:19:29]Method: POST [17:19:29]URL: /json_proto [17:19:29]Method is POST - this is cgi request [17:19:29]url: /json_proto [17:19:29]query_string will be loaded in cgi processing [17:19:29]execute_cgi json_proto POST (null) [17:19:29]execute_cgi path=json_proto method=POST [17:19:29]POST find Content-Length [17:19:29]Host: 172.17.96.197:8080 [17:19:29]Content-Length: 676 [17:19:29]Content-Type: application/json [17:19:29] [17:19:29]POST finish read [17:19:29]Found Content-Length = 676 [17:19:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [17:19:29]execute_script... [17:19:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48672", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [17:19:29]POST & json_proto [17:19:29]process_json_proto [17:19:29]json parsed OK: [17:19:29]protocol is kg_v1.0 [17:19:29]action value=close_receipt [17:19:29]process_action close_receipt [17:19:29]cmd_close_receipt [17:19:29]MH_GetDate [17:19:29]Write to MH i2c: F0 00 00 12 19 1A [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: F0 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: F0 09 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: F0 09 00 12 19 00 22 10 1C 66 E0 85 7F 64 1F [17:19:29]GetLastDocTimeStamp 1713115149 [17:19:29]current date 1713115170 [17:19:29]FM_GetShiftState [17:19:29]SAM_PROTO_GetShiftState [17:19:29]wFMCommunicate request_size=4 [17:19:29]MH_SAM_APDU [17:19:29]CAPDU: 80 13 01 00 [17:19:29]Write to MH i2c: E2 08 00 13 19 80 13 01 00 00 00 00 00 A9 [17:19:29]Write i2c OK [17:19:29]MH_I2C_Read... [17:19:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:29]Read from MH i2c: E2 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 [17:19:29]MH_I2C_Read... [17:19:29]Read from MH i2c: E2 0E 00 13 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [17:19:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:19:29]wFMCommunicate OK [17:19:29]SAM_PROTO_GetShiftState done [17:19:29]FM_GetShiftState done [17:19:29]opened in 1713054696 [17:19:29]opened+sec_in_day 1713141096 [17:19:29]quantity*price = 60056 [17:19:29]sum+1 = 60057 [17:19:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 264 14.04.2024 17:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112365 ФПД: 77724053207156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171930&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112365&fm=77724053207156&tin=02508201610067®Number=0000000000094237&sum=60000 [17:19:30]StoreToDocumentArchive [17:19:30]shift 357 fd 112365 [17:19:30]save to /storage/0357/doc_00112365 [17:19:30]save last doc name /storage/0357/doc_00112365 to /storage/kkm_last_doc_name [17:19:30]save OK [17:19:30]Clear old archive folders... [17:19:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:19:30]tlvbuf is 001B8470 [17:19:30]SAM_PROTO_ClearQueue [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 09 00 00 [17:19:30]Write to MH i2c: E2 08 00 20 19 80 09 00 00 00 00 00 00 AB [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 20 19 00 90 00 AD [17:19:30]RAPDU: 90 00 [17:19:30]wFMCommunicate OK [17:19:30]SAM_PROTO_ClearQueue done [17:19:30]KKMCreateOFDPacket [17:19:30]OFDProtocolAddRootSTLVToBuf [17:19:30]FM_MakeSignedData [17:19:30]FM_MakeSignedData [17:19:30]SAM_PROTO_SignData [17:19:30]wFMCommunicate request_size=4 [17:19:30]MH_SAM_APDU [17:19:30]CAPDU: 80 0D 01 02 [17:19:30]Write to MH i2c: E2 08 00 21 19 80 0D 01 02 00 00 00 00 B3 [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:30]Read from MH i2c: E2 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 [17:19:30]MH_I2C_Read... [17:19:30]Read from MH i2c: E2 03 00 21 19 00 90 00 AE [17:19:30]RAPDU: 90 00 [17:19:30]wFMCommunicate OK [17:19:30]wFMCommunicate request_size=255 [17:19:30]MH_SAM_APDU [17:19: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 08 01 00 00 F4 03 04 00 22 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 ED B6 01 00 35 04 06 00 46 [17:19:30]Write to MH i2c: E2 02 01 22 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 08 01 00 00 F4 03 04 00 22 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 ED B6 01 00 35 04 06 00 46 00 00 CC [17:19:30]Write i2c OK [17:19:30]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 03 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 03 00 22 19 00 90 00 AF [17:19:31]RAPDU: 90 00 [17:19:31]wFMCommunicate OK [17:19:31]wFMCommunicate request_size=10 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 0D 02 02 05 B0 8A 94 F8 74 [17:19:31]Write to MH i2c: E2 0D 00 23 19 80 0D 02 02 05 00 B0 8A 94 F8 74 00 00 FA [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 03 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 03 00 23 19 00 90 00 B0 [17:19:31]RAPDU: 90 00 [17:19:31]wFMCommunicate OK [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 0D 03 02 [17:19:31]Write to MH i2c: E2 08 00 24 19 80 0D 03 02 00 00 00 00 B8 [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:31]OFD Sender: No OFD packet to send [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0B 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 0B 00 24 19 00 9C 42 C1 09 83 E2 F2 71 90 00 29 [17:19:31]RAPDU: 9C 42 C1 09 83 E2 F2 71 90 00 [17:19:31]wFMCommunicate OK [17:19:31]SAM_PROTO_SignData done [17:19:31]FM_MakeSignedData done [17:19:31]CreateOFDProtocolMessage [17:19:31]wFMCommunicate request_size=4 [17:19:31]MH_SAM_APDU [17:19:31]CAPDU: 80 11 00 00 [17:19:31]Write to MH i2c: E2 08 00 25 19 80 11 00 00 00 00 00 00 B8 [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:31]Read from MH i2c: E2 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 17 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: E2 17 00 25 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 09 [17:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:19:31]wFMCommunicate OK [17:19:31]CreateOFDProtocolMessage done [17:19:31]OFDSenderStorePacket 112365 [17:19:31]StoreOFDPacket docnum=112365 [17:19:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E3 55 07 01 DE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 08 01 00 00 F4 03 04 00 22 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 ED B6 01 00 35 04 06 00 46 B0 8A 94 F8 74 9C 42 C1 09 83 E2 F2 71 [17:19:31]CheckFolder [17:19:31]dirname=/storage/ofd_packets [17:19:31]CheckFolder done [17:19:31]ProducePacketName [17:19:31]name=ofd_packets/00112365 [17:19:31]NVStorageSaveData ofd_packets/00112365 [17:19:31]File name is /storage/ofd_packets/00112365 [17:19:31]Write 301 bytes [17:19:31]NVStorageSaveData done [17:19:31]OFDSenderStorePacket done [17:19:31]KKMCreateOFDPacket done [17:19:31]NVStorageSaveData kkm_last_timestamp [17:19:31]File name is /storage/kkm_last_timestamp [17:19:31]Write 4 bytes [17:19:31]NVStorageSaveData done [17:19:31]ExternCall_PrintAddStr [17:19:31]wPrintStart [17:19:31]Write to MH i2c: 01 00 00 26 19 3F [17:19:31]Write i2c OK [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 07 00 [17:19:31]MH_I2C_Read... [17:19:31]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 FF 0F 54 [17:19:31]RasterBufferAndPrint [17:19:31]line Счет N : (1)48672 [17:19:31]line ИНН: 02508201610067 [17:19:31]line Контрольно-Кассовый Чек [17:19:31]line ПРОДАЖА [17:19:31]line ТРК (МРК, ГНК) : 11 [17:19:31]line Товар: 2710124130 [17:19:31]line Аи-92-К-5 [17:19:31]line 9.340 * 64.30 [17:19:31]line = 600.56 [17:19:31]line НДС 12% НСП 1% [17:19:31]line > о реализуемом товаре [17:19:31]line ОКРУГЛЕНИЕ: -0.56 [17:19:31]line ИТОГО: 600.00 [17:19:31]line Внесено: 600.00 [17:19:31]line СДАЧА: 0.00 [17:19:31]line НСП 1% : 5.31 [17:19:31]line НДС 12% : 63.78 [17:19:31]line Наличными: 600.00 [17:19:31]line Безнал.: 0.00 [17:19:31]line Место: АЗС № 47 "Партнер Нефть" [17:19:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:19:31]line СНО: Общий режим [17:19:31]line Чек 264 14.04.2024 17:19 [17:19:31]line Смена: 357 ФФД: 1.0 [17:19:31]line ЗНМ: 0300000138 [17:19:31]line РНМ: 0000000000094237 [17:19:31]line Версия ККМ: 001 [17:19:31]line ФМ: 0000000000875019 [17:19:31]line ФД: 112365 [17:19:31]line ФПД: 77724053207156 [17:19:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T171930&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112365&fm=77724053207156&tin=02508201610067®Number=0000000000094237&sum=60000 [17:19:31]OFD Sender: Processing packet 112365 [packets to send 71, broken 70] [17:19:31]ProducePacketName [17:19:31]name=ofd_packets/00112365 [17:19:31]OFD Sender: To server: pG, [17:19:31]CommunicateWithHost lk.salyk.kg:30040 [17:19:31]ConnectInit lk.salyk.kg [17:19:31]written 0, free lines is 4095 [17:19:31]Connected sock=10 [17:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E3 55 07 01 DE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 08 01 00 00 F4 03 04 00 22 10 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 ED B6 01 00 35 04 06 00 46 B0 8A 94 F8 74 9C 42 C1 09 83 E2 F2 71 [17:19:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AE 24 47 00 A8 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 ED B6 01 00 F4 03 04 00 AD B7 1B 66 B6 04 01 00 00 CB 54 18 EE 59 53 E2 0A [17:19:32]CommunicateWithHost err = 0 [17:19:32]CheckOFDResponse [17:19:32]1017 (14) - 77093643461234 [17:19:32]1041 (16) - 0000000000875019 [17:19:32]1040 (4) - 112365 [17:19:32]1012 (4) - 14.04.2024 11:02 [17:19:32]1206 (1) - 0 [17:19:32]OFD Sender: Remove packet 112365 [17:19:32]ProducePacketName [17:19:32]name=ofd_packets/00112365 [17:19:32]NVStorageDeleteData [17:19:32]Write to MH i2c: 01 00 00 51 19 6A [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 07 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: 01 07 00 51 19 00 00 00 00 00 EB 0C 68 [17:19:32]RasterBufferAndPrint [17:19:32]line [17:19:32]line [17:19:32]line [17:19:32]line [17:19:32]line [17:19:32]written 0, free lines is 3313 [17:19:32]MH_Cut [17:19:32]Write to MH i2c: D1 01 00 58 19 01 43 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: D1 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: D1 01 00 [17:19:32]MH_I2C_Read... [17:19:32]Read from MH i2c: D1 01 00 58 19 00 42 [17:19:32]Write to MH i2c: 01 00 00 59 19 72 [17:19:32]Write i2c OK [17:19:32]MH_I2C_Read... [17:19:32]OFD Sender: No OFD packet to send [17:19:32]*** Cut start [17:19:32]*** Partial cut [17:19:32]*** CUTSNS_PIN = 1 [17:19:32]*** CUTSNS_PIN = 0 [17:19:33]*** Brake cut motor [17:19:33]Read from MH i2c: 01 [17:19:33]MH_I2C_Read... [17:19:33]*** Stop cut motor [17:19:33]*** Cut end [17:19:33]Read from MH i2c: 01 07 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: 01 07 00 59 19 00 00 00 00 00 FF 0F 87 [17:19:33]process_action close_receipt done [17:19:33]requested_data is exist [17:19:33]produce_requested_data [17:19:33]requested_item fm.sn is exist - process it [17:19:33]wFMCommunicate request_size=4 [17:19:33]MH_SAM_APDU [17:19:33]CAPDU: 80 11 00 00 [17:19:33]Write to MH i2c: E2 08 00 5A 19 80 11 00 00 00 00 00 00 ED [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:33]Read from MH i2c: E2 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 17 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 17 00 5A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [17:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:19:33]wFMCommunicate OK [17:19:33]requested_item fd.num is exist - process it [17:19:33]SAM_PROTO_GetFieldsCounters [17:19:33]wFMCommunicate request_size=4 [17:19:33]MH_SAM_APDU [17:19:33]CAPDU: 80 13 00 00 [17:19:33]Write to MH i2c: E2 08 00 5B 19 80 13 00 00 00 00 00 00 F0 [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:33]Read from MH i2c: E2 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 62 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 62 00 5B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 ED B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:19:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 ED B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:33]wFMCommunicate OK [17:19:33]SAM_PROTO_GetFieldsCounters done [17:19:33]requested_item shift.num is exist - process it [17:19:33]requested_item shift.opened is exist - process it [17:19:33]req_shift_opened [17:19:33]FM_GetShiftState [17:19:33]SAM_PROTO_GetShiftState [17:19:33]wFMCommunicate request_size=4 [17:19:33]MH_SAM_APDU [17:19:33]CAPDU: 80 13 01 00 [17:19:33]Write to MH i2c: E2 08 00 5C 19 80 13 01 00 00 00 00 00 F2 [17:19:33]Write i2c OK [17:19:33]MH_I2C_Read... [17:19:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:33]Read from MH i2c: E2 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 0E 00 [17:19:33]MH_I2C_Read... [17:19:33]Read from MH i2c: E2 0E 00 5C 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8A [17:19:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:19:33]wFMCommunicate OK [17:19:33]SAM_PROTO_GetShiftState done [17:19:33]FM_GetShiftState done [17:19:33]req_shift_opened done [17:19:33]requested_item shift.open_date is exist - process it [17:19:33]req_shift_open_date [17:19:33]req_shift_open_date done [17:19:33]produce_requested_data done [17:19:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112365,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:19:33]process_action_free close_receipt [17:19:33]json_value_free [17:19:33]json_value_free done [17:19:33]process_json_proto returns [17:19:33]Send response to host [17:19:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112365,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:19:33]free response buf [17:19:33]execute_script done [17:19:33]execute_script returns [17:19:33]free content buf [17:19:33]Sock 9.Close socket [17:19:33]Sock 9.Thread stoped [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:54]accept exits with 8 [17:30:54]New connection [17:30:54]New thread 3066826084 created [17:30:54]Thread 3066682724 joined [17:30:54]Waiting for new connection... [17:30:54] Sock 8.Parse request [17:30:54]Sock 8.Check first char [17:30:54]Sock 8.First char is OK [17:30:54]request: POST /json_proto HTTP/1.0 [17:30:54]Method: POST [17:30:54]URL: /json_proto [17:30:54]Method is POST - this is cgi request [17:30:54]url: /json_proto [17:30:54]query_string will be loaded in cgi processing [17:30:54]execute_cgi json_proto POST (null) [17:30:54]execute_cgi path=json_proto method=POST [17:30:54]POST find Content-Length [17:30:54]Host: 172.17.96.197:8080 [17:30:54]Content-Length: 678 [17:30:54]Content-Type: application/json [17:30:54] [17:30:54]POST finish read [17:30:54]Found Content-Length = 678 [17:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48673", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [17:30:54]execute_script... [17:30: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)48673", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [17:30:54]POST & json_proto [17:30:54]process_json_proto [17:30:54]json parsed OK: [17:30:54]protocol is kg_v1.0 [17:30:54]action value=close_receipt [17:30:54]process_action close_receipt [17:30:54]cmd_close_receipt [17:30:54]MH_GetDate [17:30:54]Write to MH i2c: F0 00 00 5D 19 65 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: F0 09 00 5D 19 00 CF 12 1C 66 E0 85 7F 64 19 [17:30:54]GetLastDocTimeStamp 1713115170 [17:30:54]current date 1713115855 [17:30:54]FM_GetShiftState [17:30:54]SAM_PROTO_GetShiftState [17:30:54]wFMCommunicate request_size=4 [17:30:54]MH_SAM_APDU [17:30:54]CAPDU: 80 13 01 00 [17:30:54]Write to MH i2c: E2 08 00 5E 19 80 13 01 00 00 00 00 00 F4 [17:30:54]Write i2c OK [17:30:54]MH_I2C_Read... [17:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:54]Read from MH i2c: E2 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 [17:30:54]MH_I2C_Read... [17:30:54]Read from MH i2c: E2 0E 00 5E 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8C [17:30:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:30:54]wFMCommunicate OK [17:30:54]SAM_PROTO_GetShiftState done [17:30:54]FM_GetShiftState done [17:30:54]opened in 1713054696 [17:30:54]opened+sec_in_day 1713141096 [17:30:54]quantity*price = 100056 [17:30:54]sum+1 = 100058 [17:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 265 14.04.2024 17:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112366 ФПД: 29413478862572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173055&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112366&fm=29413478862572&tin=02508201610067®Number=0000000000094237&sum=100000 [17:30:55]StoreToDocumentArchive [17:30:55]shift 357 fd 112366 [17:30:55]save to /storage/0357/doc_00112366 [17:30:55]save last doc name /storage/0357/doc_00112366 to /storage/kkm_last_doc_name [17:30:55]save OK [17:30:55]Clear old archive folders... [17:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:30:55]tlvbuf is 00175520 [17:30:55]SAM_PROTO_ClearQueue [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 09 00 00 [17:30:55]Write to MH i2c: E2 08 00 6B 19 80 09 00 00 00 00 00 00 F6 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 6B 19 00 90 00 F8 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]SAM_PROTO_ClearQueue done [17:30:55]KKMCreateOFDPacket [17:30:55]OFDProtocolAddRootSTLVToBuf [17:30:55]FM_MakeSignedData [17:30:55]FM_MakeSignedData [17:30:55]SAM_PROTO_SignData [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 01 02 [17:30:55]Write to MH i2c: E2 08 00 6C 19 80 0D 01 02 00 00 00 00 FE [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 6C 19 00 90 00 F9 [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=255 [17:30:55]MH_SAM_APDU [17:30:55]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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 09 01 00 00 F4 03 04 00 CF 12 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EE B6 01 00 35 04 06 00 1A C0 5B F5 [17:30:55]Write to MH i2c: E2 02 01 6D 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 09 01 00 00 F4 03 04 00 CF 12 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EE B6 01 00 35 04 06 00 1A C0 5B F5 00 00 60 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 6D 19 00 90 00 FA [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=7 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 02 02 02 8E EC [17:30:55]Write to MH i2c: E2 0A 00 6E 19 80 0D 02 02 02 00 8E EC 00 00 7F [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:55]Read from MH i2c: E2 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 [17:30:55]MH_I2C_Read... [17:30:55]Read from MH i2c: E2 03 00 6E 19 00 90 00 FB [17:30:55]RAPDU: 90 00 [17:30:55]wFMCommunicate OK [17:30:55]wFMCommunicate request_size=4 [17:30:55]MH_SAM_APDU [17:30:55]CAPDU: 80 0D 03 02 [17:30:55]Write to MH i2c: E2 08 00 6F 19 80 0D 03 02 00 00 00 00 03 [17:30:55]Write i2c OK [17:30:55]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 0B 00 6F 19 00 CB 3A 76 8D 67 99 C0 DA 90 00 A6 [17:30:56]RAPDU: CB 3A 76 8D 67 99 C0 DA 90 00 [17:30:56]wFMCommunicate OK [17:30:56]SAM_PROTO_SignData done [17:30:56]FM_MakeSignedData done [17:30:56]CreateOFDProtocolMessage [17:30:56]wFMCommunicate request_size=4 [17:30:56]MH_SAM_APDU [17:30:56]CAPDU: 80 11 00 00 [17:30:56]Write to MH i2c: E2 08 00 70 19 80 11 00 00 00 00 00 00 03 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:56]Read from MH i2c: E2 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: E2 17 00 70 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 54 [17:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:30:56]wFMCommunicate OK [17:30:56]CreateOFDProtocolMessage done [17:30:56]OFDSenderStorePacket 112366 [17:30:56]StoreOFDPacket docnum=112366 [17:30:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 92 B8 04 01 09 BE 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 09 01 00 00 F4 03 04 00 CF 12 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EE B6 01 00 35 04 06 00 1A C0 5B F5 8E EC CB 3A 76 8D 67 99 C0 DA [17:30:56]CheckFolder [17:30:56]dirname=/storage/ofd_packets [17:30:56]CheckFolder done [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00112366 [17:30:56]NVStorageSaveData ofd_packets/00112366 [17:30:56]File name is /storage/ofd_packets/00112366 [17:30:56]Write 298 bytes [17:30:56]NVStorageSaveData done [17:30:56]OFDSenderStorePacket done [17:30:56]KKMCreateOFDPacket done [17:30:56]NVStorageSaveData kkm_last_timestamp [17:30:56]File name is /storage/kkm_last_timestamp [17:30:56]Write 4 bytes [17:30:56]NVStorageSaveData done [17:30:56]ExternCall_PrintAddStr [17:30:56]wPrintStart [17:30:56]Write to MH i2c: 01 00 00 71 19 8A [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 FF 0F 9F [17:30:56]RasterBufferAndPrint [17:30:56]line Счет N : (1)48673 [17:30:56]line ИНН: 02508201610067 [17:30:56]line Контрольно-Кассовый Чек [17:30:56]line ПРОДАЖА [17:30:56]line ТРК (МРК, ГНК) : 51 [17:30:56]line Товар: 2710194210 [17:30:56]line ДТ-К-5 [17:30:56]line 13.820 * 72.40 [17:30:56]line = 1000.57 [17:30:56]line НДС 12% НСП 1% [17:30:56]line > о реализуемом товаре [17:30:56]line ОКРУГЛЕНИЕ: -0.57 [17:30:56]line ИТОГО: 1000.00 [17:30:56]line Внесено: 1000.00 [17:30:56]line СДАЧА: 0.00 [17:30:56]line НСП 1% : 8.85 [17:30:56]line НДС 12% : 106.25 [17:30:56]line Наличными: 1000.00 [17:30:56]line Безнал.: 0.00 [17:30:56]line Место: АЗС № 47 "Партнер Нефть" [17:30:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:30:56]line СНО: Общий режим [17:30:56]line Чек 265 14.04.2024 17:30 [17:30:56]line Смена: 357 ФФД: 1.0 [17:30:56]line ЗНМ: 0300000138 [17:30:56]line РНМ: 0000000000094237 [17:30:56]line Версия ККМ: 001 [17:30:56]line ФМ: 0000000000875019 [17:30:56]line ФД: 112366 [17:30:56]line ФПД: 29413478862572 [17:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173055&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112366&fm=29413478862572&tin=02508201610067®Number=0000000000094237&sum=100000 [17:30:56]OFD Sender: Processing packet 112366 [packets to send 71, broken 70] [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00112366 [17:30:56]OFD Sender: To server: pG, [17:30:56]CommunicateWithHost lk.salyk.kg:30040 [17:30:56]ConnectInit lk.salyk.kg [17:30:56]written 0, free lines is 4095 [17:30:56]Connected sock=10 [17:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 92 B8 04 01 09 BE 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 09 01 00 00 F4 03 04 00 CF 12 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EE B6 01 00 35 04 06 00 1A C0 5B F5 8E EC CB 3A 76 8D 67 99 C0 DA [17:30:56]Write to MH i2c: 01 00 00 9C 19 B5 [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: 01 07 00 9C 19 00 00 00 00 00 DE 0C A6 [17:30:56]RasterBufferAndPrint [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]line [17:30:56]written 0, free lines is 3300 [17:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 87 1F 47 00 93 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EE B6 01 00 F4 03 04 00 5A BA 1B 66 B6 04 01 00 00 A6 10 8C 7A EF 8A 68 D3 [17:30:56]CommunicateWithHost err = 0 [17:30:56]CheckOFDResponse [17:30:56]1017 (14) - 77093643461234 [17:30:56]1041 (16) - 0000000000875019 [17:30:56]1040 (4) - 112366 [17:30:56]1012 (4) - 14.04.2024 11:13 [17:30:56]1206 (1) - 0 [17:30:56]OFD Sender: Remove packet 112366 [17:30:56]ProducePacketName [17:30:56]name=ofd_packets/00112366 [17:30:56]NVStorageDeleteData [17:30:56]MH_Cut [17:30:56]Write to MH i2c: D1 01 00 A3 19 01 8E [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 01 00 [17:30:56]MH_I2C_Read... [17:30:56]Read from MH i2c: D1 01 00 A3 19 00 8D [17:30:56]Write to MH i2c: 01 00 00 A4 19 BD [17:30:56]Write i2c OK [17:30:56]MH_I2C_Read... [17:30:57]OFD Sender: No OFD packet to send [17:30:57]*** Cut start [17:30:57]*** Partial cut [17:30:57]*** CUTSNS_PIN = 1 [17:30:57]*** CUTSNS_PIN = 0 [17:30:57]*** Brake cut motor [17:30:58]Read from MH i2c: 01 [17:30:58]MH_I2C_Read... [17:30:58]*** Stop cut motor [17:30:58]*** Cut end [17:30:58]Read from MH i2c: 01 07 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: 01 07 00 A4 19 00 00 00 00 00 FF 0F D2 [17:30:58]process_action close_receipt done [17:30:58]requested_data is exist [17:30:58]produce_requested_data [17:30:58]requested_item fm.sn is exist - process it [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 11 00 00 [17:30:58]Write to MH i2c: E2 08 00 A5 19 80 11 00 00 00 00 00 00 38 [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 17 00 A5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 89 [17:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:30:58]wFMCommunicate OK [17:30:58]requested_item fd.num is exist - process it [17:30:58]SAM_PROTO_GetFieldsCounters [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 00 00 [17:30:58]Write to MH i2c: E2 08 00 A6 19 80 13 00 00 00 00 00 00 3B [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 62 00 A6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [17:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetFieldsCounters done [17:30:58]requested_item shift.num is exist - process it [17:30:58]requested_item shift.opened is exist - process it [17:30:58]req_shift_opened [17:30:58]FM_GetShiftState [17:30:58]SAM_PROTO_GetShiftState [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 13 01 00 [17:30:58]Write to MH i2c: E2 08 00 A7 19 80 13 01 00 00 00 00 00 3D [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 0E 00 A7 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [17:30:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_GetShiftState done [17:30:58]FM_GetShiftState done [17:30:58]req_shift_opened done [17:30:58]requested_item shift.open_date is exist - process it [17:30:58]req_shift_open_date [17:30:58]req_shift_open_date done [17:30:58]produce_requested_data done [17:30:58]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112366,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:30:58]process_action_free close_receipt [17:30:58]json_value_free [17:30:58]json_value_free done [17:30:58]process_json_proto returns [17:30:58]Send response to host [17:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112366,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:30:58]free response buf [17:30:58]execute_script done [17:30:58]execute_script returns [17:30:58]free content buf [17:30:58]Sock 8.Close socket [17:30:58]Sock 8.Thread stoped [17:31:02]OFD Sender: No OFD packet to send [17:31:07]OFD Sender: No OFD packet to send [17:31:12]OFD Sender: No OFD packet to send [17:31:17]OFD Sender: No OFD packet to send [17:31:22]OFD Sender: No OFD packet to send [17:31:27]OFD Sender: No OFD packet to send [17:31:32]OFD Sender: No OFD packet to send [17:31:37]OFD Sender: No OFD packet to send [17:31:42]OFD Sender: No OFD packet to send [17:31:47]OFD Sender: No OFD packet to send [17:31:52]OFD Sender: No OFD packet to send [17:31:57]OFD Sender: No OFD packet to send [17:32:02]OFD Sender: No OFD packet to send [17:32:07]OFD Sender: No OFD packet to send [17:32:12]OFD Sender: No OFD packet to send [17:32:17]OFD Sender: No OFD packet to send [17:32:19]accept exits with 9 [17:32:19]New connection [17:32:19]New thread 3066682724 created [17:32:19]Thread 3066826084 joined [17:32:19]Waiting for new connection... [17:32:19] Sock 9.Parse request [17:32:19]Sock 9.Check first char [17:32:19]Sock 9.First char is OK [17:32:19]request: POST /json_proto HTTP/1.0 [17:32:19]Method: POST [17:32:19]URL: /json_proto [17:32:19]Method is POST - this is cgi request [17:32:19]url: /json_proto [17:32:19]query_string will be loaded in cgi processing [17:32:19]execute_cgi json_proto POST (null) [17:32:19]execute_cgi path=json_proto method=POST [17:32:19]POST find Content-Length [17:32:19]Host: 172.17.96.197:8080 [17:32:19]Content-Length: 808 [17:32:19]Content-Type: application/json [17:32:19] [17:32:19]POST finish read [17:32:19]Found Content-Length = 808 [17:32:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48674", "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.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:19]execute_script... [17:32: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)48674", "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.30, "quantity" : 7.660, "sum" : 500.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:19]POST & json_proto [17:32:19]process_json_proto [17:32:19]json parsed OK: [17:32:19]protocol is kg_v1.0 [17:32:19]action value=close_receipt [17:32:19]process_action close_receipt [17:32:19]cmd_close_receipt [17:32:19]MH_GetDate [17:32:19]Write to MH i2c: F0 00 00 A8 19 B0 [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 09 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: F0 09 00 A8 19 00 24 13 1C 66 E0 85 7F 64 BA [17:32:19]GetLastDocTimeStamp 1713115855 [17:32:19]current date 1713115940 [17:32:19]FM_GetShiftState [17:32:19]SAM_PROTO_GetShiftState [17:32:19]wFMCommunicate request_size=4 [17:32:19]MH_SAM_APDU [17:32:19]CAPDU: 80 13 01 00 [17:32:19]Write to MH i2c: E2 08 00 A9 19 80 13 01 00 00 00 00 00 3F [17:32:19]Write i2c OK [17:32:19]MH_I2C_Read... [17:32:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:19]Read from MH i2c: E2 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 [17:32:19]MH_I2C_Read... [17:32:19]Read from MH i2c: E2 0E 00 A9 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D7 [17:32:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:32:19]wFMCommunicate OK [17:32:19]SAM_PROTO_GetShiftState done [17:32:19]FM_GetShiftState done [17:32:19]opened in 1713054696 [17:32:19]opened+sec_in_day 1713141096 [17:32:19]quantity*price = 50019 [17:32:19]sum+1 = 50021 [17:32:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.20 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.20 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 266 14.04.2024 17:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112367 ФПД: 29859810998992 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173220&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112367&fm=29859810998992&tin=02508201610067®Number=0000000000094237&sum=50020 [17:32:20]StoreToDocumentArchive [17:32:20]shift 357 fd 112367 [17:32:20]save to /storage/0357/doc_00112367 [17:32:20]save last doc name /storage/0357/doc_00112367 to /storage/kkm_last_doc_name [17:32:20]save OK [17:32:20]Clear old archive folders... [17:32:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:32:20]tlvbuf is B6D89700 [17:32:20]SAM_PROTO_ClearQueue [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 09 00 00 [17:32:20]Write to MH i2c: E2 08 00 B6 19 80 09 00 00 00 00 00 00 41 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 B6 19 00 90 00 43 [17:32:20]RAPDU: 90 00 [17:32:20]wFMCommunicate OK [17:32:20]SAM_PROTO_ClearQueue done [17:32:20]KKMCreateOFDPacket [17:32:20]OFDProtocolAddRootSTLVToBuf [17:32:20]FM_MakeSignedData [17:32:20]FM_MakeSignedData [17:32:20]SAM_PROTO_SignData [17:32:20]wFMCommunicate request_size=4 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 0D 01 02 [17:32:20]Write to MH i2c: E2 08 00 B7 19 80 0D 01 02 00 00 00 00 49 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 B7 19 00 90 00 44 [17:32:20]RAPDU: 90 00 [17:32:20]wFMCommunicate OK [17:32:20]wFMCommunicate request_size=255 [17:32:20]MH_SAM_APDU [17:32:20]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 24 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B6 01 00 35 04 06 00 [17:32:20]Write to MH i2c: E2 02 01 B8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 24 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B6 01 00 35 04 06 00 00 00 67 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:20]Read from MH i2c: E2 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 [17:32:20]MH_I2C_Read... [17:32:20]Read from MH i2c: E2 03 00 B8 19 00 90 00 45 [17:32:20]RAPDU: 90 00 [17:32:20]wFMCommunicate OK [17:32:20]wFMCommunicate request_size=11 [17:32:20]MH_SAM_APDU [17:32:20]CAPDU: 80 0D 02 02 06 1B 28 47 6D 7A D0 [17:32:20]Write to MH i2c: E2 0E 00 B9 19 80 0D 02 02 06 00 1B 28 47 6D 7A D0 00 00 99 [17:32:20]Write i2c OK [17:32:20]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 03 00 B9 19 00 90 00 46 [17:32:21]RAPDU: 90 00 [17:32:21]wFMCommunicate OK [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 0D 03 02 [17:32:21]Write to MH i2c: E2 08 00 BA 19 80 0D 03 02 00 00 00 00 4E [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0B 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 0B 00 BA 19 00 E3 2C 24 13 35 DB BA 13 90 00 72 [17:32:21]RAPDU: E3 2C 24 13 35 DB BA 13 90 00 [17:32:21]wFMCommunicate OK [17:32:21]SAM_PROTO_SignData done [17:32:21]FM_MakeSignedData done [17:32:21]CreateOFDProtocolMessage [17:32:21]wFMCommunicate request_size=4 [17:32:21]MH_SAM_APDU [17:32:21]CAPDU: 80 11 00 00 [17:32:21]Write to MH i2c: E2 08 00 BB 19 80 11 00 00 00 00 00 00 4E [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:21]Read from MH i2c: E2 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: E2 17 00 BB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9F [17:32:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:32:21]wFMCommunicate OK [17:32:21]CreateOFDProtocolMessage done [17:32:21]OFDSenderStorePacket 112367 [17:32:21]StoreOFDPacket docnum=112367 [17:32:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 90 D1 08 01 17 4E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 24 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B6 01 00 35 04 06 00 1B 28 47 6D 7A D0 E3 2C 24 13 35 DB BA 13 [17:32:21]CheckFolder [17:32:21]dirname=/storage/ofd_packets [17:32:21]CheckFolder done [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00112367 [17:32:21]NVStorageSaveData ofd_packets/00112367 [17:32:21]File name is /storage/ofd_packets/00112367 [17:32:21]Write 302 bytes [17:32:21]NVStorageSaveData done [17:32:21]OFDSenderStorePacket done [17:32:21]KKMCreateOFDPacket done [17:32:21]NVStorageSaveData kkm_last_timestamp [17:32:21]File name is /storage/kkm_last_timestamp [17:32:21]Write 4 bytes [17:32:21]NVStorageSaveData done [17:32:21]ExternCall_PrintAddStr [17:32:21]wPrintStart [17:32:21]Write to MH i2c: 01 00 00 BC 19 D5 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 FF 0F EA [17:32:21]RasterBufferAndPrint [17:32:21]line Счет N : (1)48674 [17:32:21]line ИНН: 02508201610067 [17:32:21]line Контрольно-Кассовый Чек [17:32:21]line ПРОДАЖА [17:32:21]line ТРК (МРК, ГНК) : 41 [17:32:21]line Товар: 2710124130 [17:32:21]line SUPER 92-К-5 [17:32:21]line 7.660 * 65.30 [17:32:21]line = 500.20 [17:32:21]line НДС 12% НСП 1% [17:32:21]line > о реализуемом товаре [17:32:21]line ИТОГО: 500.20 [17:32:21]line НСП 1% : 4.43 [17:32:21]line НДС 12% : 53.12 [17:32:21]line Наличными: 0.00 [17:32:21]line Безнал.: 500.20 [17:32:21]line Место: АЗС № 47 "Партнер Нефть" [17:32:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:32:21]line СНО: Общий режим [17:32:21]line Чек 266 14.04.2024 17:32 [17:32:21]line Смена: 357 ФФД: 1.0 [17:32:21]line ЗНМ: 0300000138 [17:32:21]line РНМ: 0000000000094237 [17:32:21]line Версия ККМ: 001 [17:32:21]line Платежная система: Бакай Банк [17:32:21]line ФМ: 0000000000875019 [17:32:21]line ФД: 112367 [17:32:21]line ФПД: 29859810998992 [17:32:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173220&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112367&fm=29859810998992&tin=02508201610067®Number=0000000000094237&sum=50020 [17:32:21]OFD Sender: Processing packet 112367 [packets to send 71, broken 70] [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00112367 [17:32:21]OFD Sender: To server: pG, [17:32:21]CommunicateWithHost lk.salyk.kg:30040 [17:32:21]ConnectInit lk.salyk.kg [17:32:21]written 0, free lines is 4095 [17:32:21]Connected sock=10 [17:32:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 90 D1 08 01 17 4E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 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 64 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 01 00 00 F4 03 04 00 24 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B6 01 00 35 04 06 00 1B 28 47 6D 7A D0 E3 2C 24 13 35 DB BA 13 [17:32:21]Write to MH i2c: 01 00 00 E6 19 FF [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: 01 07 00 E6 19 00 00 00 00 00 E5 0C F7 [17:32:21]RasterBufferAndPrint [17:32:21]line [17:32:21]line [17:32:21]line [17:32:21]line [17:32:21]line [17:32:21]written 0, free lines is 3307 [17:32:21]MH_Cut [17:32:21]Write to MH i2c: D1 01 00 ED 19 01 D8 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: D1 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: D1 01 00 [17:32:21]MH_I2C_Read... [17:32:21]Read from MH i2c: D1 01 00 ED 19 00 D7 [17:32:21]Write to MH i2c: 01 00 00 EE 19 07 [17:32:21]Write i2c OK [17:32:21]MH_I2C_Read... [17:32:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F1 E4 47 00 ED 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 EF B6 01 00 F4 03 04 00 AF BA 1B 66 B6 04 01 00 00 E9 FE BF D5 53 39 74 0B [17:32:21]CommunicateWithHost err = 0 [17:32:21]CheckOFDResponse [17:32:21]1017 (14) - 77093643461234 [17:32:21]1041 (16) - 0000000000875019 [17:32:21]1040 (4) - 112367 [17:32:21]1012 (4) - 14.04.2024 11:14 [17:32:21]1206 (1) - 0 [17:32:21]OFD Sender: Remove packet 112367 [17:32:21]ProducePacketName [17:32:21]name=ofd_packets/00112367 [17:32:21]NVStorageDeleteData [17:32:22]OFD Sender: No OFD packet to send [17:32:22]*** Cut start [17:32:22]*** Partial cut [17:32:22]*** CUTSNS_PIN = 1 [17:32:22]*** CUTSNS_PIN = 0 [17:32:22]*** Brake cut motor [17:32:23]Read from MH i2c: 01 [17:32:23]MH_I2C_Read... [17:32:23]*** Stop cut motor [17:32:23]*** Cut end [17:32:23]Read from MH i2c: 01 07 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: 01 07 00 EE 19 00 00 00 00 00 FF 0F 1C [17:32:23]process_action close_receipt done [17:32:23]requested_data is exist [17:32:23]produce_requested_data [17:32:23]requested_item fm.sn is exist - process it [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 11 00 00 [17:32:23]Write to MH i2c: E2 08 00 EF 19 80 11 00 00 00 00 00 00 82 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:23]Read from MH i2c: E2 17 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 17 00 EF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D3 [17:32:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:32:23]wFMCommunicate OK [17:32:23]requested_item fd.num is exist - process it [17:32:23]SAM_PROTO_GetFieldsCounters [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 13 00 00 [17:32:23]Write to MH i2c: E2 08 00 F0 19 80 13 00 00 00 00 00 00 85 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 62 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 62 00 F0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:32:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 EF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_GetFieldsCounters done [17:32:23]requested_item shift.num is exist - process it [17:32:23]requested_item shift.opened is exist - process it [17:32:23]req_shift_opened [17:32:23]FM_GetShiftState [17:32:23]SAM_PROTO_GetShiftState [17:32:23]wFMCommunicate request_size=4 [17:32:23]MH_SAM_APDU [17:32:23]CAPDU: 80 13 01 00 [17:32:23]Write to MH i2c: E2 08 00 F1 19 80 13 01 00 00 00 00 00 87 [17:32:23]Write i2c OK [17:32:23]MH_I2C_Read... [17:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:23]Read from MH i2c: E2 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0E 00 [17:32:23]MH_I2C_Read... [17:32:23]Read from MH i2c: E2 0E 00 F1 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1F [17:32:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:32:23]wFMCommunicate OK [17:32:23]SAM_PROTO_GetShiftState done [17:32:23]FM_GetShiftState done [17:32:23]req_shift_opened done [17:32:23]requested_item shift.open_date is exist - process it [17:32:23]req_shift_open_date [17:32:23]req_shift_open_date done [17:32:23]produce_requested_data done [17:32:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112367,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:32:23]process_action_free close_receipt [17:32:23]json_value_free [17:32:23]json_value_free done [17:32:23]process_json_proto returns [17:32:23]Send response to host [17:32:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112367,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:32:23]free response buf [17:32:23]execute_script done [17:32:23]execute_script returns [17:32:23]free content buf [17:32:23]Sock 9.Close socket [17:32:23]Sock 9.Thread stoped [17:32:27]OFD Sender: No OFD packet to send [17:32:32]OFD Sender: No OFD packet to send [17:32:37]OFD Sender: No OFD packet to send [17:32:42]OFD Sender: No OFD packet to send [17:32:47]OFD Sender: No OFD packet to send [17:32:52]OFD Sender: No OFD packet to send [17:32:57]OFD Sender: No OFD packet to send [17:33:02]OFD Sender: No OFD packet to send [17:33:07]OFD Sender: No OFD packet to send [17:33:12]OFD Sender: No OFD packet to send [17:33:17]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:12]OFD Sender: No OFD packet to send [17:34:17]OFD Sender: No OFD packet to send [17:34:17]accept exits with 8 [17:34:17]New connection [17:34:17]New thread 3066826084 created [17:34:17]Thread 3066682724 joined [17:34:17]Waiting for new connection... [17:34:17] Sock 8.Parse request [17:34:17]Sock 8.Check first char [17:34:17]Sock 8.First char is OK [17:34:17]request: POST /json_proto HTTP/1.0 [17:34:17]Method: POST [17:34:17]URL: /json_proto [17:34:17]Method is POST - this is cgi request [17:34:17]url: /json_proto [17:34:17]query_string will be loaded in cgi processing [17:34:17]execute_cgi json_proto POST (null) [17:34:17]execute_cgi path=json_proto method=POST [17:34:17]POST find Content-Length [17:34:17]Host: 172.17.96.197:8080 [17:34:17]Content-Length: 669 [17:34:17]Content-Type: application/json [17:34:17] [17:34:17]POST finish read [17:34:17]Found Content-Length = 669 [17:34:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48676", "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.30, "quantity" : 4.600, "sum" : 300.38, "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" ] } } [17:34:17]execute_script... [17:34: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)48676", "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.30, "quantity" : 4.600, "sum" : 300.38, "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" ] } } [17:34:17]POST & json_proto [17:34:17]process_json_proto [17:34:17]json parsed OK: [17:34:17]protocol is kg_v1.0 [17:34:17]action value=close_receipt [17:34:17]process_action close_receipt [17:34:17]cmd_close_receipt [17:34:17]MH_GetDate [17:34:17]Write to MH i2c: F0 00 00 F2 19 FA [17:34:17]Write i2c OK [17:34:17]MH_I2C_Read... [17:34:17]Read from MH i2c: F0 [17:34:17]MH_I2C_Read... [17:34:17]Read from MH i2c: F0 09 00 [17:34:17]MH_I2C_Read... [17:34:17]Read from MH i2c: F0 09 00 F2 19 00 9A 13 1C 66 E0 85 7F 64 7A [17:34:17]GetLastDocTimeStamp 1713115940 [17:34:17]current date 1713116058 [17:34:17]FM_GetShiftState [17:34:17]SAM_PROTO_GetShiftState [17:34:17]wFMCommunicate request_size=4 [17:34:17]MH_SAM_APDU [17:34:17]CAPDU: 80 13 01 00 [17:34:17]Write to MH i2c: E2 08 00 F3 19 80 13 01 00 00 00 00 00 89 [17:34:17]Write i2c OK [17:34:17]MH_I2C_Read... [17:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:17]Read from MH i2c: E2 [17:34:17]MH_I2C_Read... [17:34:17]Read from MH i2c: E2 0E 00 [17:34:17]MH_I2C_Read... [17:34:17]Read from MH i2c: E2 0E 00 F3 19 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 21 [17:34:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:34:17]wFMCommunicate OK [17:34:17]SAM_PROTO_GetShiftState done [17:34:17]FM_GetShiftState done [17:34:17]opened in 1713054696 [17:34:17]opened+sec_in_day 1713141096 [17:34:17]quantity*price = 30038 [17:34:17]sum+1 = 30039 [17:34:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 267 14.04.2024 17:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112368 ФПД: 193971615496775 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173418&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112368&fm=193971615496775&tin=02508201610067®Number=0000000000094237&sum=30000 [17:34:18]StoreToDocumentArchive [17:34:18]shift 357 fd 112368 [17:34:18]save to /storage/0357/doc_00112368 [17:34:18]save last doc name /storage/0357/doc_00112368 to /storage/kkm_last_doc_name [17:34:18]save OK [17:34:18]Clear old archive folders... [17:34:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:34:18]tlvbuf is 00174FA0 [17:34:18]SAM_PROTO_ClearQueue [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 09 00 00 [17:34:18]Write to MH i2c: E2 08 00 00 1A 80 09 00 00 00 00 00 00 8C [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:18]Read from MH i2c: E2 03 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 03 00 00 1A 00 90 00 8E [17:34:18]RAPDU: 90 00 [17:34:18]wFMCommunicate OK [17:34:18]SAM_PROTO_ClearQueue done [17:34:18]KKMCreateOFDPacket [17:34:18]OFDProtocolAddRootSTLVToBuf [17:34:18]FM_MakeSignedData [17:34:18]FM_MakeSignedData [17:34:18]SAM_PROTO_SignData [17:34:18]wFMCommunicate request_size=4 [17:34:18]MH_SAM_APDU [17:34:18]CAPDU: 80 0D 01 02 [17:34:18]Write to MH i2c: E2 08 00 01 1A 80 0D 01 02 00 00 00 00 94 [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:18]Read from MH i2c: E2 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 03 00 [17:34:18]MH_I2C_Read... [17:34:18]Read from MH i2c: E2 03 00 01 1A 00 90 00 8F [17:34:18]RAPDU: 90 00 [17:34:18]wFMCommunicate OK [17:34:18]wFMCommunicate request_size=255 [17:34:18]MH_SAM_APDU [17:34:18]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 9A 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B6 01 00 35 04 06 00 [17:34:18]Write to MH i2c: E2 02 01 02 1A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 9A 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B6 01 00 35 04 06 00 00 00 C7 [17:34:18]Write i2c OK [17:34:18]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 02 1A 00 90 00 90 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]wFMCommunicate request_size=11 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 0D 02 02 06 B0 6A 89 3C FA 47 [17:34:19]Write to MH i2c: E2 0E 00 03 1A 80 0D 02 02 06 00 B0 6A 89 3C FA 47 00 00 C3 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 03 00 03 1A 00 90 00 91 [17:34:19]RAPDU: 90 00 [17:34:19]wFMCommunicate OK [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 0D 03 02 [17:34:19]Write to MH i2c: E2 08 00 04 1A 80 0D 03 02 00 00 00 00 99 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 0B 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 0B 00 04 1A 00 01 79 4A 2C 5D 2C 14 A7 90 00 CE [17:34:19]RAPDU: 01 79 4A 2C 5D 2C 14 A7 90 00 [17:34:19]wFMCommunicate OK [17:34:19]SAM_PROTO_SignData done [17:34:19]FM_MakeSignedData done [17:34:19]CreateOFDProtocolMessage [17:34:19]wFMCommunicate request_size=4 [17:34:19]MH_SAM_APDU [17:34:19]CAPDU: 80 11 00 00 [17:34:19]Write to MH i2c: E2 08 00 05 1A 80 11 00 00 00 00 00 00 99 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:19]Read from MH i2c: E2 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 17 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: E2 17 00 05 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EA [17:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:34:19]wFMCommunicate OK [17:34:19]CreateOFDProtocolMessage done [17:34:19]OFDSenderStorePacket 112368 [17:34:19]StoreOFDPacket docnum=112368 [17:34:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 AB 9D 08 01 98 79 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 9A 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B6 01 00 35 04 06 00 B0 6A 89 3C FA 47 01 79 4A 2C 5D 2C 14 A7 [17:34:19]CheckFolder [17:34:19]dirname=/storage/ofd_packets [17:34:19]CheckFolder done [17:34:19]ProducePacketName [17:34:19]name=ofd_packets/00112368 [17:34:19]NVStorageSaveData ofd_packets/00112368 [17:34:19]File name is /storage/ofd_packets/00112368 [17:34:19]Write 302 bytes [17:34:19]NVStorageSaveData done [17:34:19]OFDSenderStorePacket done [17:34:19]KKMCreateOFDPacket done [17:34:19]NVStorageSaveData kkm_last_timestamp [17:34:19]File name is /storage/kkm_last_timestamp [17:34:19]Write 4 bytes [17:34:19]NVStorageSaveData done [17:34:19]ExternCall_PrintAddStr [17:34:19]wPrintStart [17:34:19]Write to MH i2c: 01 00 00 06 1A 20 [17:34:19]Write i2c OK [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 07 00 [17:34:19]MH_I2C_Read... [17:34:19]Read from MH i2c: 01 07 00 06 1A 00 00 00 00 00 FF 0F 35 [17:34:19]RasterBufferAndPrint [17:34:19]line Счет N : (1)48676 [17:34:19]line ИНН: 02508201610067 [17:34:19]line Контрольно-Кассовый Чек [17:34:19]line ПРОДАЖА [17:34:19]line ТРК (МРК, ГНК) : 41 [17:34:19]line Товар: 2710124130 [17:34:19]line SUPER 92-К-5 [17:34:19]line 4.600 * 65.30 [17:34:19]line = 300.38 [17:34:19]line НДС 12% НСП 1% [17:34:19]line > о реализуемом товаре [17:34:19]line ОКРУГЛЕНИЕ: -0.38 [17:34:19]line ИТОГО: 300.00 [17:34:19]line Внесено: 300.00 [17:34:19]line СДАЧА: 0.00 [17:34:19]line НСП 1% : 2.66 [17:34:19]line НДС 12% : 31.90 [17:34:19]line Наличными: 300.00 [17:34:19]line Безнал.: 0.00 [17:34:19]line Место: АЗС № 47 "Партнер Нефть" [17:34:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:34:19]line СНО: Общий режим [17:34:19]line Чек 267 14.04.2024 17:34 [17:34:19]line Смена: 357 ФФД: 1.0 [17:34:19]line ЗНМ: 0300000138 [17:34:19]line РНМ: 0000000000094237 [17:34:19]line Версия ККМ: 001 [17:34:19]line ФМ: 0000000000875019 [17:34:19]line ФД: 112368 [17:34:19]line ФПД: 193971615496775 [17:34:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173418&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112368&fm=193971615496775&tin=02508201610067®Number=0000000000094237&sum=30000 [17:34:19]OFD Sender: Processing packet 112368 [packets to send 71, broken 70] [17:34:19]ProducePacketName [17:34:19]name=ofd_packets/00112368 [17:34:19]OFD Sender: To server: pG, [17:34:19]CommunicateWithHost lk.salyk.kg:30040 [17:34:19]ConnectInit lk.salyk.kg [17:34:19]written 0, free lines is 4095 [17:34:19]Connected sock=10 [17:34:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 AB 9D 08 01 98 79 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F8 11 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 9A 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B6 01 00 35 04 06 00 B0 6A 89 3C FA 47 01 79 4A 2C 5D 2C 14 A7 [17:34:20]Write to MH i2c: 01 00 00 31 1A 4B [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 07 00 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: 01 07 00 31 1A 00 00 00 00 00 D9 0C 37 [17:34:20]RasterBufferAndPrint [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]line [17:34:20]written 0, free lines is 3296 [17:34:20]MH_Cut [17:34:20]Write to MH i2c: D1 01 00 38 1A 01 24 [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 01 00 [17:34:20]MH_I2C_Read... [17:34:20]Read from MH i2c: D1 01 00 38 1A 00 23 [17:34:20]Write to MH i2c: 01 00 00 39 1A 53 [17:34:20]Write i2c OK [17:34:20]MH_I2C_Read... [17:34:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F3 2C 47 00 CE 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F0 B6 01 00 F4 03 04 00 25 BB 1B 66 B6 04 01 00 00 E7 C4 03 87 AA 61 3D 53 [17:34:20]CommunicateWithHost err = 0 [17:34:20]CheckOFDResponse [17:34:20]1017 (14) - 77093643461234 [17:34:20]1041 (16) - 0000000000875019 [17:34:20]1040 (4) - 112368 [17:34:20]1012 (4) - 14.04.2024 11:16 [17:34:20]1206 (1) - 0 [17:34:20]OFD Sender: Remove packet 112368 [17:34:20]ProducePacketName [17:34:20]name=ofd_packets/00112368 [17:34:20]NVStorageDeleteData [17:34:20]OFD Sender: No OFD packet to send [17:34:20]*** Cut start [17:34:20]*** Partial cut [17:34:20]*** CUTSNS_PIN = 1 [17:34:20]*** CUTSNS_PIN = 0 [17:34:21]*** Brake cut motor [17:34:21]Read from MH i2c: 01 [17:34:21]MH_I2C_Read... [17:34:21]*** Stop cut motor [17:34:21]*** Cut end [17:34:21]Read from MH i2c: 01 07 00 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: 01 07 00 39 1A 00 00 00 00 00 FF 0F 68 [17:34:21]process_action close_receipt done [17:34:21]requested_data is exist [17:34:21]produce_requested_data [17:34:21]requested_item fm.sn is exist - process it [17:34:21]wFMCommunicate request_size=4 [17:34:21]MH_SAM_APDU [17:34:21]CAPDU: 80 11 00 00 [17:34:21]Write to MH i2c: E2 08 00 3A 1A 80 11 00 00 00 00 00 00 CE [17:34:21]Write i2c OK [17:34:21]MH_I2C_Read... [17:34:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:21]Read from MH i2c: E2 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 17 00 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 17 00 3A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1F [17:34:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:34:21]wFMCommunicate OK [17:34:21]requested_item fd.num is exist - process it [17:34:21]SAM_PROTO_GetFieldsCounters [17:34:21]wFMCommunicate request_size=4 [17:34:21]MH_SAM_APDU [17:34:21]CAPDU: 80 13 00 00 [17:34:21]Write to MH i2c: E2 08 00 3B 1A 80 13 00 00 00 00 00 00 D1 [17:34:21]Write i2c OK [17:34:21]MH_I2C_Read... [17:34:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:21]Read from MH i2c: E2 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 62 00 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 62 00 3B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [17:34:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F0 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:21]wFMCommunicate OK [17:34:21]SAM_PROTO_GetFieldsCounters done [17:34:21]requested_item shift.num is exist - process it [17:34:21]requested_item shift.opened is exist - process it [17:34:21]req_shift_opened [17:34:21]FM_GetShiftState [17:34:21]SAM_PROTO_GetShiftState [17:34:21]wFMCommunicate request_size=4 [17:34:21]MH_SAM_APDU [17:34:21]CAPDU: 80 13 01 00 [17:34:21]Write to MH i2c: E2 08 00 3C 1A 80 13 01 00 00 00 00 00 D3 [17:34:21]Write i2c OK [17:34:21]MH_I2C_Read... [17:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:21]Read from MH i2c: E2 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 0E 00 [17:34:21]MH_I2C_Read... [17:34:21]Read from MH i2c: E2 0E 00 3C 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6B [17:34:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:34:21]wFMCommunicate OK [17:34:21]SAM_PROTO_GetShiftState done [17:34:21]FM_GetShiftState done [17:34:21]req_shift_opened done [17:34:21]requested_item shift.open_date is exist - process it [17:34:21]req_shift_open_date [17:34:21]req_shift_open_date done [17:34:21]produce_requested_data done [17:34:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112368,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:34:21]process_action_free close_receipt [17:34:21]json_value_free [17:34:21]json_value_free done [17:34:21]process_json_proto returns [17:34:21]Send response to host [17:34:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112368,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:34:21]free response buf [17:34:21]execute_script done [17:34:21]execute_script returns [17:34:21]free content buf [17:34:21]Sock 8.Close socket [17:34:21]Sock 8.Thread stoped [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:49]accept exits with 9 [17:34:49]New connection [17:34:49]New thread 3066682724 created [17:34:49]Thread 3066826084 joined [17:34:49]Waiting for new connection... [17:34:49] Sock 9.Parse request [17:34:49]Sock 9.Check first char [17:34:49]Sock 9.First char is OK [17:34:49]request: POST /json_proto HTTP/1.0 [17:34:49]Method: POST [17:34:49]URL: /json_proto [17:34:49]Method is POST - this is cgi request [17:34:49]url: /json_proto [17:34:49]query_string will be loaded in cgi processing [17:34:49]execute_cgi json_proto POST (null) [17:34:49]execute_cgi path=json_proto method=POST [17:34:49]POST find Content-Length [17:34:49]Host: 172.17.96.197:8080 [17:34:49]Content-Length: 678 [17:34:49]Content-Type: application/json [17:34:49] [17:34:49]POST finish read [17:34:49]Found Content-Length = 678 [17:34:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48675", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [17:34:49]execute_script... [17:34:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48675", "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.40, "quantity" : 27.630, "sum" : 2000.41, "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" ] } } [17:34:49]POST & json_proto [17:34:49]process_json_proto [17:34:49]json parsed OK: [17:34:49]protocol is kg_v1.0 [17:34:49]action value=close_receipt [17:34:49]process_action close_receipt [17:34:49]cmd_close_receipt [17:34:49]MH_GetDate [17:34:49]Write to MH i2c: F0 00 00 3D 1A 46 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: F0 09 00 3D 1A 00 BA 13 1C 66 E0 85 7F 64 E6 [17:34:49]GetLastDocTimeStamp 1713116058 [17:34:49]current date 1713116090 [17:34:49]FM_GetShiftState [17:34:49]SAM_PROTO_GetShiftState [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 13 01 00 [17:34:49]Write to MH i2c: E2 08 00 3E 1A 80 13 01 00 00 00 00 00 D5 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0E 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 0E 00 3E 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6D [17:34:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_GetShiftState done [17:34:49]FM_GetShiftState done [17:34:49]opened in 1713054696 [17:34:49]opened+sec_in_day 1713141096 [17:34:49]quantity*price = 200041 [17:34:49]sum+1 = 200042 [17:34:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 268 14.04.2024 17:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112369 ФПД: 56870320664222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112369&fm=56870320664222&tin=02508201610067®Number=0000000000094237&sum=200000 [17:34:50]StoreToDocumentArchive [17:34:50]shift 357 fd 112369 [17:34:50]save to /storage/0357/doc_00112369 [17:34:50]save last doc name /storage/0357/doc_00112369 to /storage/kkm_last_doc_name [17:34:50]save OK [17:34:50]Clear old archive folders... [17:34:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:34:50]tlvbuf is 001384C0 [17:34:50]SAM_PROTO_ClearQueue [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 09 00 00 [17:34:50]Write to MH i2c: E2 08 00 4B 1A 80 09 00 00 00 00 00 00 D7 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 4B 1A 00 90 00 D9 [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_ClearQueue done [17:34:50]KKMCreateOFDPacket [17:34:50]OFDProtocolAddRootSTLVToBuf [17:34:50]FM_MakeSignedData [17:34:50]FM_MakeSignedData [17:34:50]SAM_PROTO_SignData [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 01 02 [17:34:50]Write to MH i2c: E2 08 00 4C 1A 80 0D 01 02 00 00 00 00 DF [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 4C 1A 00 90 00 DA [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]wFMCommunicate request_size=255 [17:34:50]MH_SAM_APDU [17:34:50]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0C 01 00 00 F4 03 04 00 BA 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B6 01 00 35 04 06 00 33 B9 27 42 [17:34:50]Write to MH i2c: E2 02 01 4D 1A 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0C 01 00 00 F4 03 04 00 BA 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B6 01 00 35 04 06 00 33 B9 27 42 00 00 0C [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 4D 1A 00 90 00 DB [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]wFMCommunicate request_size=7 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 02 02 02 EE 9E [17:34:50]Write to MH i2c: E2 0A 00 4E 1A 80 0D 02 02 02 00 EE 9E 00 00 72 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 03 00 4E 1A 00 90 00 DC [17:34:50]RAPDU: 90 00 [17:34:50]wFMCommunicate OK [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 0D 03 02 [17:34:50]Write to MH i2c: E2 08 00 4F 1A 80 0D 03 02 00 00 00 00 E4 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]OFD Sender: No OFD packet to send [17:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0B 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0B 00 4F 1A 00 C0 02 4C C5 1A 1C 3B 1B 90 00 44 [17:34:50]RAPDU: C0 02 4C C5 1A 1C 3B 1B 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_SignData done [17:34:50]FM_MakeSignedData done [17:34:50]CreateOFDProtocolMessage [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 11 00 00 [17:34:50]Write to MH i2c: E2 08 00 50 1A 80 11 00 00 00 00 00 00 E4 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 50 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 35 [17:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:34:50]wFMCommunicate OK [17:34:50]CreateOFDProtocolMessage done [17:34:50]OFDSenderStorePacket 112369 [17:34:50]StoreOFDPacket docnum=112369 [17:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 4A 36 04 01 E7 C1 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0C 01 00 00 F4 03 04 00 BA 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B6 01 00 35 04 06 00 33 B9 27 42 EE 9E C0 02 4C C5 1A 1C 3B 1B [17:34:50]CheckFolder [17:34:50]dirname=/storage/ofd_packets [17:34:50]CheckFolder done [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00112369 [17:34:50]NVStorageSaveData ofd_packets/00112369 [17:34:50]File name is /storage/ofd_packets/00112369 [17:34:50]Write 298 bytes [17:34:50]NVStorageSaveData done [17:34:50]OFDSenderStorePacket done [17:34:50]KKMCreateOFDPacket done [17:34:50]NVStorageSaveData kkm_last_timestamp [17:34:50]File name is /storage/kkm_last_timestamp [17:34:50]Write 4 bytes [17:34:50]NVStorageSaveData done [17:34:50]ExternCall_PrintAddStr [17:34:50]wPrintStart [17:34:50]Write to MH i2c: 01 00 00 51 1A 6B [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 51 1A 00 00 00 00 00 FF 0F 80 [17:34:50]RasterBufferAndPrint [17:34:50]line Счет N : (1)48675 [17:34:50]line ИНН: 02508201610067 [17:34:50]line Контрольно-Кассовый Чек [17:34:50]line ПРОДАЖА [17:34:50]line ТРК (МРК, ГНК) : 51 [17:34:50]line Товар: 2710194210 [17:34:50]line ДТ-К-5 [17:34:50]line 27.630 * 72.40 [17:34:50]line = 2000.41 [17:34:50]line НДС 12% НСП 1% [17:34:50]line > о реализуемом товаре [17:34:50]line ОКРУГЛЕНИЕ: -0.41 [17:34:50]line ИТОГО: 2000.00 [17:34:50]line Внесено: 2000.00 [17:34:50]line СДАЧА: 0.00 [17:34:50]line НСП 1% : 17.70 [17:34:50]line НДС 12% : 212.43 [17:34:50]line Наличными: 2000.00 [17:34:50]line Безнал.: 0.00 [17:34:50]line Место: АЗС № 47 "Партнер Нефть" [17:34:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:34:50]line СНО: Общий режим [17:34:50]line Чек 268 14.04.2024 17:34 [17:34:50]line Смена: 357 ФФД: 1.0 [17:34:50]line ЗНМ: 0300000138 [17:34:50]line РНМ: 0000000000094237 [17:34:50]line Версия ККМ: 001 [17:34:50]line ФМ: 0000000000875019 [17:34:50]line ФД: 112369 [17:34:50]line ФПД: 56870320664222 [17:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112369&fm=56870320664222&tin=02508201610067®Number=0000000000094237&sum=200000 [17:34:51]OFD Sender: Processing packet 112369 [packets to send 71, broken 70] [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00112369 [17:34:51]OFD Sender: To server: pG, [17:34:51]CommunicateWithHost lk.salyk.kg:30040 [17:34:51]ConnectInit lk.salyk.kg [17:34:51]written 0, free lines is 4095 [17:34:51]Connected sock=10 [17:34:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 4A 36 04 01 E7 C1 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 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 0C 01 00 00 F4 03 04 00 BA 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B6 01 00 35 04 06 00 33 B9 27 42 EE 9E C0 02 4C C5 1A 1C 3B 1B [17:34:51]Write to MH i2c: 01 00 00 7C 1A 96 [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: 01 07 00 7C 1A 00 00 00 00 00 E2 0C 8B [17:34:51]RasterBufferAndPrint [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]line [17:34:51]written 0, free lines is 3304 [17:34:51]MH_Cut [17:34:51]Write to MH i2c: D1 01 00 83 1A 01 6F [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 [17:34:51]MH_I2C_Read... [17:34:51]Read from MH i2c: D1 01 00 83 1A 00 6E [17:34:51]Write to MH i2c: 01 00 00 84 1A 9E [17:34:51]Write i2c OK [17:34:51]MH_I2C_Read... [17:34:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1B 94 47 00 5C 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F1 B6 01 00 F4 03 04 00 45 BB 1B 66 B6 04 01 00 00 52 CC 69 BA 5C 38 B3 28 [17:34:51]CommunicateWithHost err = 0 [17:34:51]CheckOFDResponse [17:34:51]1017 (14) - 77093643461234 [17:34:51]1041 (16) - 0000000000875019 [17:34:51]1040 (4) - 112369 [17:34:51]1012 (4) - 14.04.2024 11:17 [17:34:51]1206 (1) - 0 [17:34:51]OFD Sender: Remove packet 112369 [17:34:51]ProducePacketName [17:34:51]name=ofd_packets/00112369 [17:34:51]NVStorageDeleteData [17:34:52]OFD Sender: No OFD packet to send [17:34:52]*** Cut start [17:34:52]*** Partial cut [17:34:52]*** CUTSNS_PIN = 1 [17:34:52]*** CUTSNS_PIN = 0 [17:34:52]*** Brake cut motor [17:34:52]Read from MH i2c: 01 [17:34:53]MH_I2C_Read... [17:34:53]*** Stop cut motor [17:34:53]*** Cut end [17:34:53]Read from MH i2c: 01 07 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: 01 07 00 84 1A 00 00 00 00 00 FF 0F B3 [17:34:53]process_action close_receipt done [17:34:53]requested_data is exist [17:34:53]produce_requested_data [17:34:53]requested_item fm.sn is exist - process it [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 11 00 00 [17:34:53]Write to MH i2c: E2 08 00 85 1A 80 11 00 00 00 00 00 00 19 [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 17 00 85 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6A [17:34:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:34:53]wFMCommunicate OK [17:34:53]requested_item fd.num is exist - process it [17:34:53]SAM_PROTO_GetFieldsCounters [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 00 00 [17:34:53]Write to MH i2c: E2 08 00 86 1A 80 13 00 00 00 00 00 00 1C [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 62 00 86 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 70 [17:34:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F1 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetFieldsCounters done [17:34:53]requested_item shift.num is exist - process it [17:34:53]requested_item shift.opened is exist - process it [17:34:53]req_shift_opened [17:34:53]FM_GetShiftState [17:34:53]SAM_PROTO_GetShiftState [17:34:53]wFMCommunicate request_size=4 [17:34:53]MH_SAM_APDU [17:34:53]CAPDU: 80 13 01 00 [17:34:53]Write to MH i2c: E2 08 00 87 1A 80 13 01 00 00 00 00 00 1E [17:34:53]Write i2c OK [17:34:53]MH_I2C_Read... [17:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:53]Read from MH i2c: E2 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 [17:34:53]MH_I2C_Read... [17:34:53]Read from MH i2c: E2 0E 00 87 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B6 [17:34:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:34:53]wFMCommunicate OK [17:34:53]SAM_PROTO_GetShiftState done [17:34:53]FM_GetShiftState done [17:34:53]req_shift_opened done [17:34:53]requested_item shift.open_date is exist - process it [17:34:53]req_shift_open_date [17:34:53]req_shift_open_date done [17:34:53]produce_requested_data done [17:34:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112369,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:34:53]process_action_free close_receipt [17:34:53]json_value_free [17:34:53]json_value_free done [17:34:53]process_json_proto returns [17:34:53]Send response to host [17:34:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112369,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:34:53]free response buf [17:34:53]execute_script done [17:34:53]execute_script returns [17:34:53]free content buf [17:34:53]Sock 9.Close socket [17:34:53]Sock 9.Thread stoped [17:34:57]OFD Sender: No OFD packet to send [17:35:02]OFD Sender: No OFD packet to send [17:35:07]OFD Sender: No OFD packet to send [17:35:12]OFD Sender: No OFD packet to send [17:35:17]OFD Sender: No OFD packet to send [17:35:22]OFD Sender: No OFD packet to send [17:35:27]OFD Sender: No OFD packet to send [17:35:32]OFD Sender: No OFD packet to send [17:35:36]accept exits with 8 [17:35:36]New connection [17:35:36]New thread 3066826084 created [17:35:36]Thread 3066682724 joined [17:35:36]Waiting for new connection... [17:35:36] Sock 8.Parse request [17:35:36]Sock 8.Check first char [17:35:36]Sock 8.First char is OK [17:35:36]request: POST /json_proto HTTP/1.0 [17:35:36]Method: POST [17:35:36]URL: /json_proto [17:35:36]Method is POST - this is cgi request [17:35:36]url: /json_proto [17:35:36]query_string will be loaded in cgi processing [17:35:36]execute_cgi json_proto POST (null) [17:35:36]execute_cgi path=json_proto method=POST [17:35:36]POST find Content-Length [17:35:36]Host: 172.17.96.197:8080 [17:35:36]Content-Length: 1689 [17:35:36]Content-Type: application/json [17:35:36] [17:35:36]POST finish read [17:35:36]Found Content-Length = 1689 [17:35:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10434", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193121", "name": "\u041E\u0440\u0435\u043E \u042D\u0441\u043A\u0438\u043C\u043E 100\u0433", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 494.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:36]execute_script... [17:35:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10434", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193121", "name": "\u041E\u0440\u0435\u043E \u042D\u0441\u043A\u0438\u043C\u043E 100\u0433", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 494.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:36]POST & json_proto [17:35:36]process_json_proto [17:35:36]json parsed OK: [17:35:36]protocol is kg_v1.0 [17:35:36]action value=close_receipt [17:35:36]process_action close_receipt [17:35:36]cmd_close_receipt [17:35:36]MH_GetDate [17:35:36]Write to MH i2c: F0 00 00 88 1A 91 [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 09 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: F0 09 00 88 1A 00 E9 13 1C 66 E0 85 7F 64 60 [17:35:36]GetLastDocTimeStamp 1713116090 [17:35:36]current date 1713116137 [17:35:36]FM_GetShiftState [17:35:36]SAM_PROTO_GetShiftState [17:35:36]wFMCommunicate request_size=4 [17:35:36]MH_SAM_APDU [17:35:36]CAPDU: 80 13 01 00 [17:35:36]Write to MH i2c: E2 08 00 89 1A 80 13 01 00 00 00 00 00 20 [17:35:36]Write i2c OK [17:35:36]MH_I2C_Read... [17:35:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:36]Read from MH i2c: E2 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 0E 00 [17:35:36]MH_I2C_Read... [17:35:36]Read from MH i2c: E2 0E 00 89 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B8 [17:35:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:35:36]wFMCommunicate OK [17:35:36]SAM_PROTO_GetShiftState done [17:35:36]FM_GetShiftState done [17:35:36]opened in 1713054696 [17:35:36]opened+sec_in_day 1713141096 [17:35:36]quantity*price = 9500 [17:35:36]sum+1 = 9501 [17:35:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 2.000 * 90.00 = 180.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021193121 Орео Эскимо 100г 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870001570057 Напиток Pepsi 0,5л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 494.00 НСП 1% : 4.37 НДС 12% : 52.46 Наличными: 0.00 Безнал.: 494.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 269 14.04.2024 17:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112370 ФПД: 86221767013346 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173537&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112370&fm=86221767013346&tin=02508201610067®Number=0000000000094237&sum=49400 0 [17:35:37]StoreToDocumentArchive [17:35:37]shift 357 fd 112370 [17:35:37]save to /storage/0357/doc_00112370 [17:35:37]save last doc name /storage/0357/doc_00112370 to /storage/kkm_last_doc_name [17:35:37]save OK [17:35:37]Clear old archive folders... [17:35:37]ProcessDocumentItem done err = 0, tmpTLVsize=639 [17:35:37]tlvbuf is 00140020 [17:35:37]SAM_PROTO_ClearQueue [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 09 00 00 [17:35:37]Write to MH i2c: E2 08 00 96 1A 80 09 00 00 00 00 00 00 22 [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 96 1A 00 90 00 24 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]SAM_PROTO_ClearQueue done [17:35:37]KKMCreateOFDPacket [17:35:37]OFDProtocolAddRootSTLVToBuf [17:35:37]FM_MakeSignedData [17:35:37]FM_MakeSignedData [17:35:37]SAM_PROTO_SignData [17:35:37]wFMCommunicate request_size=4 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 0D 01 02 [17:35:37]Write to MH i2c: E2 08 00 97 1A 80 0D 01 02 00 00 00 00 2A [17:35:37]Write i2c OK [17:35:37]MH_I2C_Read... [17:35:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:37]Read from MH i2c: E2 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 [17:35:37]MH_I2C_Read... [17:35:37]Read from MH i2c: E2 03 00 97 1A 00 90 00 25 [17:35:37]RAPDU: 90 00 [17:35:37]wFMCommunicate OK [17:35:37]wFMCommunicate request_size=255 [17:35:37]MH_SAM_APDU [17:35:37]CAPDU: 80 0D 02 02 FA 03 00 7F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 [17:35:37]Write to MH i2c: E2 02 01 98 1A 80 0D 02 02 FA 00 03 00 7F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 00 00 E7 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 98 1A 00 90 00 26 [17:35:38]RAPDU: 90 00 [17:35:38]wFMCommunicate OK [17:35:38]wFMCommunicate request_size=255 [17:35:38]MH_SAM_APDU [17:35:38]CAPDU: 80 0D 02 02 FA 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [17:35:38]Write to MH i2c: E2 02 01 99 1A 80 0D 02 02 FA 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 19 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 99 1A 00 90 00 27 [17:35:38]RAPDU: 90 00 [17:35:38]wFMCommunicate OK [17:35:38]wFMCommunicate request_size=148 [17:35:38]MH_SAM_APDU [17:35:38]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E9 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B6 01 00 35 04 06 00 4E 6B 11 CB 73 E2 [17:35:38]Write to MH i2c: E2 97 00 9A 1A 80 0D 02 02 8F 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E9 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B6 01 00 35 04 06 00 4E 6B 11 CB 73 E2 00 00 FD [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 03 00 9A 1A 00 90 00 28 [17:35:38]RAPDU: 90 00 [17:35:38]wFMCommunicate OK [17:35:38]wFMCommunicate request_size=4 [17:35:38]MH_SAM_APDU [17:35:38]CAPDU: 80 0D 03 02 [17:35:38]Write to MH i2c: E2 08 00 9B 1A 80 0D 03 02 00 00 00 00 30 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 0B 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 0B 00 9B 1A 00 AD CA 84 54 76 F5 B9 B8 90 00 5C [17:35:38]RAPDU: AD CA 84 54 76 F5 B9 B8 90 00 [17:35:38]wFMCommunicate OK [17:35:38]SAM_PROTO_SignData done [17:35:38]FM_MakeSignedData done [17:35:38]CreateOFDProtocolMessage [17:35:38]wFMCommunicate request_size=4 [17:35:38]MH_SAM_APDU [17:35:38]CAPDU: 80 11 00 00 [17:35:38]Write to MH i2c: E2 08 00 9C 1A 80 11 00 00 00 00 00 00 30 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:38]Read from MH i2c: E2 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 17 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: E2 17 00 9C 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 81 [17:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:35:38]wFMCommunicate OK [17:35:38]CreateOFDProtocolMessage done [17:35:38]OFDSenderStorePacket 112370 [17:35:38]StoreOFDPacket docnum=112370 [17:35:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 93 02 00 00 C5 3D 8B 02 2F A7 5A 03 01 00 03 00 7F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E9 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B6 01 00 35 04 06 00 4E 6B 11 CB 73 E2 AD CA 84 54 76 F5 B9 B8 [17:35:38]CheckFolder [17:35:38]dirname=/storage/ofd_packets [17:35:38]CheckFolder done [17:35:38]ProducePacketName [17:35:38]name=ofd_packets/00112370 [17:35:38]NVStorageSaveData ofd_packets/00112370 [17:35:38]File name is /storage/ofd_packets/00112370 [17:35:38]Write 689 bytes [17:35:38]NVStorageSaveData done [17:35:38]OFDSenderStorePacket done [17:35:38]KKMCreateOFDPacket done [17:35:38]NVStorageSaveData kkm_last_timestamp [17:35:38]File name is /storage/kkm_last_timestamp [17:35:38]Write 4 bytes [17:35:38]NVStorageSaveData done [17:35:38]ExternCall_PrintAddStr [17:35:38]wPrintStart [17:35:38]Write to MH i2c: 01 00 00 9D 1A B7 [17:35:38]Write i2c OK [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 07 00 [17:35:38]MH_I2C_Read... [17:35:38]Read from MH i2c: 01 07 00 9D 1A 00 00 00 00 00 FF 0F CC [17:35:38]RasterBufferAndPrint [17:35:38]line Счет N : (3)10434 [17:35:38]line ИНН: 02508201610067 [17:35:39]line Контрольно-Кассовый Чек [17:35:39]line ПРОДАЖА [17:35:39]line Товар: 4700000481989 [17:35:39]line Напиток энерг Nitro киви-мангостин 0,45 [17:35:39]line 1.000 * 95.00 [17:35:39]line = 95.00 [17:35:39]line НДС 12% НСП 1% [17:35:39]line > о реализуемом товаре [17:35:39]line Товар: 4650243870968 [17:35:39]line Напиток Gorilla ж/б 0,45л Персик Абрикос [17:35:39]line 2.000 * 90.00 [17:35:39]line = 180.00 [17:35:39]line НДС 12% НСП 1% [17:35:39]line > о реализуемом товаре [17:35:39]line Товар: 4620021193121 [17:35:39]line Орео Эскимо 100г [17:35:39]line 1.000 * 139.00 [17:35:39]line = 139.00 [17:35:39]line НДС 12% НСП 1% [17:35:39]line > о реализуемом товаре [17:35:39]line Товар: 4870001570057 [17:35:39]line Напиток Pepsi 0,5л [17:35:39]line 1.000 * 80.00 [17:35:39]line = 80.00 [17:35:39]line НДС 12% НСП 1% [17:35:39]line > о реализуемом товаре [17:35:39]line ИТОГО: 494.00 [17:35:39]line НСП 1% : 4.37 [17:35:39]line НДС 12% : 52.46 [17:35:39]line Наличными: 0.00 [17:35:39]line Безнал.: 494.00 [17:35:39]line Место: АЗС № 47 "Партнер Нефть" [17:35:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:35:39]line СНО: Общий режим [17:35:39]line Чек 269 14.04.2024 17:35 [17:35:39]line Смена: 357 ФФД: 1.0 [17:35:39]line ЗНМ: 0300000138 [17:35:39]line РНМ: 0000000000094237 [17:35:39]line Версия ККМ: 001 [17:35:39]line Платежная система: О! деньги [17:35:39]line ФМ: 0000000000875019 [17:35:39]line ФД: 112370 [17:35:39]line ФПД: 86221767013346 [17:35:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173537&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112370&fm=86221767013346&tin=02508201610067®Number=0000000000094237&sum=49400 [17:35:39]line 0 [17:35:39]OFD Sender: Processing packet 112370 [packets to send 71, broken 70] [17:35:39]ProducePacketName [17:35:39]name=ofd_packets/00112370 [17:35:39]OFD Sender: To server: pG, [17:35:39]CommunicateWithHost lk.salyk.kg:30040 [17:35:39]ConnectInit lk.salyk.kg [17:35:39]written 0, free lines is 4095 [17:35:39]Connected sock=10 [17:35:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 93 02 00 00 C5 3D 8B 02 2F A7 5A 03 01 00 03 00 7F 02 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F8 C0 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 01 00 00 F4 03 04 00 E9 13 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B6 01 00 35 04 06 00 4E 6B 11 CB 73 E2 AD CA 84 54 76 F5 B9 B8 [17:35:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2D 45 47 00 CB AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F2 B6 01 00 F4 03 04 00 74 BB 1B 66 B6 04 01 00 00 C7 F4 C1 52 5D 7A 9F 9B [17:35:39]CommunicateWithHost err = 0 [17:35:39]CheckOFDResponse [17:35:39]1017 (14) - 77093643461234 [17:35:39]1041 (16) - 0000000000875019 [17:35:39]1040 (4) - 112370 [17:35:39]1012 (4) - 14.04.2024 11:18 [17:35:39]1206 (1) - 0 [17:35:39]OFD Sender: Remove packet 112370 [17:35:39]ProducePacketName [17:35:39]name=ofd_packets/00112370 [17:35:39]NVStorageDeleteData [17:35:39]Write to MH i2c: 01 00 00 DB 1A F5 [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: 01 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: 01 07 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: 01 07 00 DB 1A 00 00 00 00 00 B4 0B BB [17:35:39]RasterBufferAndPrint [17:35:39]line [17:35:39]line [17:35:39]line [17:35:39]line [17:35:39]line [17:35:39]written 0, free lines is 3005 [17:35:39]MH_Cut [17:35:39]Write to MH i2c: D1 01 00 E2 1A 01 CE [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: D1 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: D1 01 00 [17:35:39]MH_I2C_Read... [17:35:39]Read from MH i2c: D1 01 00 E2 1A 00 CD [17:35:39]Write to MH i2c: 01 00 00 E3 1A FD [17:35:39]Write i2c OK [17:35:39]MH_I2C_Read... [17:35:40]OFD Sender: No OFD packet to send [17:35:40]*** Cut start [17:35:40]*** Partial cut [17:35:40]*** CUTSNS_PIN = 1 [17:35:40]*** CUTSNS_PIN = 0 [17:35:41]*** Brake cut motor [17:35:41]Read from MH i2c: 01 [17:35:41]MH_I2C_Read... [17:35:41]*** Stop cut motor [17:35:41]*** Cut end [17:35:41]Read from MH i2c: 01 07 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: 01 07 00 E3 1A 00 00 00 00 00 FF 0F 12 [17:35:41]process_action close_receipt done [17:35:41]requested_data is exist [17:35:41]produce_requested_data [17:35:41]requested_item fm.sn is exist - process it [17:35:41]wFMCommunicate request_size=4 [17:35:41]MH_SAM_APDU [17:35:41]CAPDU: 80 11 00 00 [17:35:41]Write to MH i2c: E2 08 00 E4 1A 80 11 00 00 00 00 00 00 78 [17:35:41]Write i2c OK [17:35:41]MH_I2C_Read... [17:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:41]Read from MH i2c: E2 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 17 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 17 00 E4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C9 [17:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:35:41]wFMCommunicate OK [17:35:41]requested_item fd.num is exist - process it [17:35:41]SAM_PROTO_GetFieldsCounters [17:35:41]wFMCommunicate request_size=4 [17:35:41]MH_SAM_APDU [17:35:41]CAPDU: 80 13 00 00 [17:35:41]Write to MH i2c: E2 08 00 E5 1A 80 13 00 00 00 00 00 00 7B [17:35:41]Write i2c OK [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 [17:35:41]MH_I2C_Read... [17:35:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:41]Read from MH i2c: E2 62 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 62 00 E5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [17:35:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F2 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:35:41]wFMCommunicate OK [17:35:41]SAM_PROTO_GetFieldsCounters done [17:35:41]requested_item shift.num is exist - process it [17:35:41]requested_item shift.opened is exist - process it [17:35:41]req_shift_opened [17:35:41]FM_GetShiftState [17:35:41]SAM_PROTO_GetShiftState [17:35:41]wFMCommunicate request_size=4 [17:35:41]MH_SAM_APDU [17:35:41]CAPDU: 80 13 01 00 [17:35:41]Write to MH i2c: E2 08 00 E6 1A 80 13 01 00 00 00 00 00 7D [17:35:41]Write i2c OK [17:35:41]MH_I2C_Read... [17:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:41]Read from MH i2c: E2 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 0E 00 [17:35:41]MH_I2C_Read... [17:35:41]Read from MH i2c: E2 0E 00 E6 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 15 [17:35:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:35:41]wFMCommunicate OK [17:35:41]SAM_PROTO_GetShiftState done [17:35:41]FM_GetShiftState done [17:35:41]req_shift_opened done [17:35:41]requested_item shift.open_date is exist - process it [17:35:41]req_shift_open_date [17:35:41]req_shift_open_date done [17:35:41]produce_requested_data done [17:35:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112370,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:35:41]process_action_free close_receipt [17:35:41]json_value_free [17:35:41]json_value_free done [17:35:41]process_json_proto returns [17:35:41]Send response to host [17:35:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112370,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:35:41]free response buf [17:35:41]execute_script done [17:35:41]execute_script returns [17:35:41]free content buf [17:35:41]Sock 8.Close socket [17:35:41]Sock 8.Thread stoped [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:32]accept exits with 9 [17:39:32]New connection [17:39:32]New thread 3066682724 created [17:39:32]Thread 3066826084 joined [17:39:32]Waiting for new connection... [17:39:32] Sock 9.Parse request [17:39:32]Sock 9.Check first char [17:39:32]Sock 9.First char is OK [17:39:32]request: POST /json_proto HTTP/1.0 [17:39:32]Method: POST [17:39:32]URL: /json_proto [17:39:32]Method is POST - this is cgi request [17:39:32]url: /json_proto [17:39:32]query_string will be loaded in cgi processing [17:39:32]execute_cgi json_proto POST (null) [17:39:32]execute_cgi path=json_proto method=POST [17:39:32]POST find Content-Length [17:39:32]Host: 172.17.96.197:8080 [17:39:32]Content-Length: 676 [17:39:32]Content-Type: application/json [17:39:32] [17:39:32]POST finish read [17:39:32]Found Content-Length = 676 [17:39:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48677", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:39:32]execute_script... [17:39: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)48677", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:39:32]POST & json_proto [17:39:32]process_json_proto [17:39:32]json parsed OK: [17:39:32]protocol is kg_v1.0 [17:39:32]action value=close_receipt [17:39:32]process_action close_receipt [17:39:32]cmd_close_receipt [17:39:32]MH_GetDate [17:39:32]Write to MH i2c: F0 00 00 E7 1A F0 [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 09 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: F0 09 00 E7 1A 00 D5 14 1C 66 E0 85 7F 64 AC [17:39:32]GetLastDocTimeStamp 1713116137 [17:39:32]current date 1713116373 [17:39:32]FM_GetShiftState [17:39:32]SAM_PROTO_GetShiftState [17:39:32]wFMCommunicate request_size=4 [17:39:32]MH_SAM_APDU [17:39:32]CAPDU: 80 13 01 00 [17:39:32]Write to MH i2c: E2 08 00 E8 1A 80 13 01 00 00 00 00 00 7F [17:39:32]Write i2c OK [17:39:32]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 E8 1A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 17 [17:39:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetShiftState done [17:39:32]FM_GetShiftState done [17:39:32]opened in 1713054696 [17:39:32]opened+sec_in_day 1713141096 [17:39:32]quantity*price = 50025 [17:39:32]sum+1 = 50026 [17:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 270 14.04.2024 17:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112371 ФПД: 225197926763444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173933&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112371&fm=225197926763444&tin=02508201610067®Number=0000000000094237&sum=50000 [17:39:33]StoreToDocumentArchive [17:39:33]shift 357 fd 112371 [17:39:33]save to /storage/0357/doc_00112371 [17:39:33]save last doc name /storage/0357/doc_00112371 to /storage/kkm_last_doc_name [17:39:33]save OK [17:39:33]Clear old archive folders... [17:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:33]tlvbuf is B6EBB7C0 [17:39:33]SAM_PROTO_ClearQueue [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 09 00 00 [17:39:33]Write to MH i2c: E2 08 00 F5 1A 80 09 00 00 00 00 00 00 81 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 F5 1A 00 90 00 83 [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_ClearQueue done [17:39:33]KKMCreateOFDPacket [17:39:33]OFDProtocolAddRootSTLVToBuf [17:39:33]FM_MakeSignedData [17:39:33]FM_MakeSignedData [17:39:33]SAM_PROTO_SignData [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 01 02 [17:39:33]Write to MH i2c: E2 08 00 F6 1A 80 0D 01 02 00 00 00 00 89 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 F6 1A 00 90 00 84 [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=255 [17:39:33]MH_SAM_APDU [17:39: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 0E 01 00 00 F4 03 04 00 D5 14 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B6 01 00 35 04 06 00 CC [17:39:33]Write to MH i2c: E2 02 01 F7 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 0E 01 00 00 F4 03 04 00 D5 14 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B6 01 00 35 04 06 00 CC 00 00 82 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 F7 1A 00 90 00 85 [17:39:34]RAPDU: 90 00 [17:39:34]wFMCommunicate OK [17:39:34]wFMCommunicate request_size=10 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 0D 02 02 05 D0 FA 6D CB B4 [17:39:34]Write to MH i2c: E2 0D 00 F8 1A 80 0D 02 02 05 00 D0 FA 6D CB B4 00 00 4C [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 03 00 F8 1A 00 90 00 86 [17:39:34]RAPDU: 90 00 [17:39:34]wFMCommunicate OK [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 0D 03 02 [17:39:34]Write to MH i2c: E2 08 00 F9 1A 80 0D 03 02 00 00 00 00 8E [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0B 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 0B 00 F9 1A 00 BE F8 4C 49 31 B3 17 32 90 00 07 [17:39:34]RAPDU: BE F8 4C 49 31 B3 17 32 90 00 [17:39:34]wFMCommunicate OK [17:39:34]SAM_PROTO_SignData done [17:39:34]FM_MakeSignedData done [17:39:34]CreateOFDProtocolMessage [17:39:34]wFMCommunicate request_size=4 [17:39:34]MH_SAM_APDU [17:39:34]CAPDU: 80 11 00 00 [17:39:34]Write to MH i2c: E2 08 00 FA 1A 80 11 00 00 00 00 00 00 8E [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:34]Read from MH i2c: E2 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: E2 17 00 FA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DF [17:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:39:34]wFMCommunicate OK [17:39:34]CreateOFDProtocolMessage done [17:39:34]OFDSenderStorePacket 112371 [17:39:34]StoreOFDPacket docnum=112371 [17:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C9 EA 07 01 42 F1 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 0E 01 00 00 F4 03 04 00 D5 14 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B6 01 00 35 04 06 00 CC D0 FA 6D CB B4 BE F8 4C 49 31 B3 17 32 [17:39:34]CheckFolder [17:39:34]dirname=/storage/ofd_packets [17:39:34]CheckFolder done [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00112371 [17:39:34]NVStorageSaveData ofd_packets/00112371 [17:39:34]File name is /storage/ofd_packets/00112371 [17:39:34]Write 301 bytes [17:39:34]NVStorageSaveData done [17:39:34]OFDSenderStorePacket done [17:39:34]KKMCreateOFDPacket done [17:39:34]NVStorageSaveData kkm_last_timestamp [17:39:34]File name is /storage/kkm_last_timestamp [17:39:34]Write 4 bytes [17:39:34]NVStorageSaveData done [17:39:34]ExternCall_PrintAddStr [17:39:34]wPrintStart [17:39:34]Write to MH i2c: 01 00 00 FB 1A 15 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 FB 1A 00 00 00 00 00 FF 0F 2A [17:39:34]RasterBufferAndPrint [17:39:34]line Счет N : (1)48677 [17:39:34]line ИНН: 02508201610067 [17:39:34]line Контрольно-Кассовый Чек [17:39:34]line ПРОДАЖА [17:39:34]line ТРК (МРК, ГНК) : 42 [17:39:34]line Товар: 2710124130 [17:39:34]line Аи-92-К-5 [17:39:34]line 7.780 * 64.30 [17:39:34]line = 500.25 [17:39:34]line НДС 12% НСП 1% [17:39:34]line > о реализуемом товаре [17:39:34]line ОКРУГЛЕНИЕ: -0.25 [17:39:34]line ИТОГО: 500.00 [17:39:34]line Внесено: 500.00 [17:39:34]line СДАЧА: 0.00 [17:39:34]line НСП 1% : 4.43 [17:39:34]line НДС 12% : 53.12 [17:39:34]line Наличными: 500.00 [17:39:34]line Безнал.: 0.00 [17:39:34]line Место: АЗС № 47 "Партнер Нефть" [17:39:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:39:34]line СНО: Общий режим [17:39:34]line Чек 270 14.04.2024 17:39 [17:39:34]line Смена: 357 ФФД: 1.0 [17:39:34]line ЗНМ: 0300000138 [17:39:34]line РНМ: 0000000000094237 [17:39:34]line Версия ККМ: 001 [17:39:34]line ФМ: 0000000000875019 [17:39:34]line ФД: 112371 [17:39:34]line ФПД: 225197926763444 [17:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T173933&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112371&fm=225197926763444&tin=02508201610067®Number=0000000000094237&sum=50000 [17:39:34]OFD Sender: Processing packet 112371 [packets to send 71, broken 70] [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00112371 [17:39:34]OFD Sender: To server: pG, [17:39:34]CommunicateWithHost lk.salyk.kg:30040 [17:39:34]ConnectInit lk.salyk.kg [17:39:34]written 0, free lines is 4095 [17:39:34]Connected sock=10 [17:39:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C9 EA 07 01 42 F1 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 0E 01 00 00 F4 03 04 00 D5 14 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B6 01 00 35 04 06 00 CC D0 FA 6D CB B4 BE F8 4C 49 31 B3 17 32 [17:39:35]Write to MH i2c: 01 00 00 26 1B 41 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: 01 07 00 26 1B 00 00 00 00 00 D4 0C 28 [17:39:35]RasterBufferAndPrint [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]line [17:39:35]written 0, free lines is 3288 [17:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 26 4B 47 00 CD 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F3 B6 01 00 F4 03 04 00 60 BC 1B 66 B6 04 01 00 00 63 B0 93 A2 4D 3A 73 69 [17:39:35]CommunicateWithHost err = 0 [17:39:35]CheckOFDResponse [17:39:35]1017 (14) - 77093643461234 [17:39:35]1041 (16) - 0000000000875019 [17:39:35]1040 (4) - 112371 [17:39:35]1012 (4) - 14.04.2024 11:22 [17:39:35]1206 (1) - 0 [17:39:35]OFD Sender: Remove packet 112371 [17:39:35]ProducePacketName [17:39:35]name=ofd_packets/00112371 [17:39:35]NVStorageDeleteData [17:39:35]MH_Cut [17:39:35]Write to MH i2c: D1 01 00 2D 1B 01 1A [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 01 00 [17:39:35]MH_I2C_Read... [17:39:35]Read from MH i2c: D1 01 00 2D 1B 00 19 [17:39:35]Write to MH i2c: 01 00 00 2E 1B 49 [17:39:35]Write i2c OK [17:39:35]MH_I2C_Read... [17:39:35]OFD Sender: No OFD packet to send [17:39:35]*** Cut start [17:39:35]*** Partial cut [17:39:35]*** CUTSNS_PIN = 1 [17:39:35]*** CUTSNS_PIN = 0 [17:39:36]*** Brake cut motor [17:39:36]Read from MH i2c: 01 [17:39:36]MH_I2C_Read... [17:39:36]*** Stop cut motor [17:39:36]*** Cut end [17:39:36]Read from MH i2c: 01 07 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 2E 1B 00 00 00 00 00 FF 0F 5E [17:39:36]process_action close_receipt done [17:39:36]requested_data is exist [17:39:36]produce_requested_data [17:39:36]requested_item fm.sn is exist - process it [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 11 00 00 [17:39:36]Write to MH i2c: E2 08 00 2F 1B 80 11 00 00 00 00 00 00 C4 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 2F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 15 [17:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:39:36]wFMCommunicate OK [17:39:36]requested_item fd.num is exist - process it [17:39:36]SAM_PROTO_GetFieldsCounters [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 00 00 [17:39:36]Write to MH i2c: E2 08 00 30 1B 80 13 00 00 00 00 00 00 C7 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 62 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 62 00 30 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [17:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F3 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetFieldsCounters done [17:39:36]requested_item shift.num is exist - process it [17:39:36]requested_item shift.opened is exist - process it [17:39:36]req_shift_opened [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 31 1B 80 13 01 00 00 00 00 00 C9 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 31 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 61 [17:39:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]req_shift_opened done [17:39:36]requested_item shift.open_date is exist - process it [17:39:36]req_shift_open_date [17:39:36]req_shift_open_date done [17:39:36]produce_requested_data done [17:39:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112371,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:39:36]process_action_free close_receipt [17:39:36]json_value_free [17:39:36]json_value_free done [17:39:36]process_json_proto returns [17:39:36]Send response to host [17:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112371,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:39:36]free response buf [17:39:36]execute_script done [17:39:36]execute_script returns [17:39:36]free content buf [17:39:36]Sock 9.Close socket [17:39:36]Sock 9.Thread stoped [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:40:56]accept exits with 8 [17:40:56]New connection [17:40:56]New thread 3066826084 created [17:40:56]Thread 3066682724 joined [17:40:56]Waiting for new connection... [17:40:56] Sock 8.Parse request [17:40:56]Sock 8.Check first char [17:40:56]Sock 8.First char is OK [17:40:56]request: POST /json_proto HTTP/1.0 [17:40:56]Method: POST [17:40:56]URL: /json_proto [17:40:56]Method is POST - this is cgi request [17:40:56]url: /json_proto [17:40:56]query_string will be loaded in cgi processing [17:40:56]execute_cgi json_proto POST (null) [17:40:56]execute_cgi path=json_proto method=POST [17:40:56]POST find Content-Length [17:40:56]Host: 172.17.96.197:8080 [17:40:56]Content-Length: 676 [17:40:56]Content-Type: application/json [17:40:56] [17:40:56]POST finish read [17:40:56]Found Content-Length = 676 [17:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48678", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [17:40:56]execute_script... [17:40: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)48678", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [17:40:56]POST & json_proto [17:40:56]process_json_proto [17:40:56]json parsed OK: [17:40:56]protocol is kg_v1.0 [17:40:56]action value=close_receipt [17:40:56]process_action close_receipt [17:40:56]cmd_close_receipt [17:40:56]MH_GetDate [17:40:56]Write to MH i2c: F0 00 00 32 1B 3C [17:40:56]Write i2c OK [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: F0 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: F0 09 00 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: F0 09 00 32 1B 00 29 15 1C 66 E0 85 7F 64 4D [17:40:56]GetLastDocTimeStamp 1713116373 [17:40:56]current date 1713116457 [17:40:56]FM_GetShiftState [17:40:56]SAM_PROTO_GetShiftState [17:40:56]wFMCommunicate request_size=4 [17:40:56]MH_SAM_APDU [17:40:56]CAPDU: 80 13 01 00 [17:40:56]Write to MH i2c: E2 08 00 33 1B 80 13 01 00 00 00 00 00 CB [17:40:56]Write i2c OK [17:40:56]MH_I2C_Read... [17:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:56]Read from MH i2c: E2 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: E2 0E 00 [17:40:56]MH_I2C_Read... [17:40:56]Read from MH i2c: E2 0E 00 33 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 63 [17:40:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:40:56]wFMCommunicate OK [17:40:56]SAM_PROTO_GetShiftState done [17:40:56]FM_GetShiftState done [17:40:56]opened in 1713054696 [17:40:56]opened+sec_in_day 1713141096 [17:40:56]quantity*price = 30028 [17:40:56]sum+1 = 30029 [17:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 271 14.04.2024 17:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112372 ФПД: 90874467004514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174057&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112372&fm=90874467004514&tin=02508201610067®Number=0000000000094237&sum=30000 [17:40:57]StoreToDocumentArchive [17:40:57]shift 357 fd 112372 [17:40:57]save to /storage/0357/doc_00112372 [17:40:57]save last doc name /storage/0357/doc_00112372 to /storage/kkm_last_doc_name [17:40:57]save OK [17:40:57]Clear old archive folders... [17:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:40:57]tlvbuf is 001B8C50 [17:40:57]SAM_PROTO_ClearQueue [17:40:57]wFMCommunicate request_size=4 [17:40:57]MH_SAM_APDU [17:40:57]CAPDU: 80 09 00 00 [17:40:57]Write to MH i2c: E2 08 00 40 1B 80 09 00 00 00 00 00 00 CD [17:40:57]Write i2c OK [17:40:57]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:58]Read from MH i2c: E2 03 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 03 00 40 1B 00 90 00 CF [17:40:58]RAPDU: 90 00 [17:40:58]wFMCommunicate OK [17:40:58]SAM_PROTO_ClearQueue done [17:40:58]KKMCreateOFDPacket [17:40:58]OFDProtocolAddRootSTLVToBuf [17:40:58]FM_MakeSignedData [17:40:58]FM_MakeSignedData [17:40:58]SAM_PROTO_SignData [17:40:58]wFMCommunicate request_size=4 [17:40:58]MH_SAM_APDU [17:40:58]CAPDU: 80 0D 01 02 [17:40:58]Write to MH i2c: E2 08 00 41 1B 80 0D 01 02 00 00 00 00 D5 [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:58]Read from MH i2c: E2 03 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 03 00 41 1B 00 90 00 D0 [17:40:58]RAPDU: 90 00 [17:40:58]wFMCommunicate OK [17:40:58]wFMCommunicate request_size=255 [17:40:58]MH_SAM_APDU [17:40: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 0F 01 00 00 F4 03 04 00 29 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B6 01 00 35 04 06 00 52 [17:40:58]Write to MH i2c: E2 02 01 42 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 0F 01 00 00 F4 03 04 00 29 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B6 01 00 35 04 06 00 52 00 00 2E [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:58]Read from MH i2c: E2 03 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 03 00 42 1B 00 90 00 D1 [17:40:58]RAPDU: 90 00 [17:40:58]wFMCommunicate OK [17:40:58]wFMCommunicate request_size=10 [17:40:58]MH_SAM_APDU [17:40:58]CAPDU: 80 0D 02 02 05 A6 5C 53 30 62 [17:40:58]Write to MH i2c: E2 0D 00 43 1B 80 0D 02 02 05 00 A6 5C 53 30 62 00 00 C9 [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 03 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 03 00 43 1B 00 90 00 D2 [17:40:58]RAPDU: 90 00 [17:40:58]wFMCommunicate OK [17:40:58]wFMCommunicate request_size=4 [17:40:58]MH_SAM_APDU [17:40:58]CAPDU: 80 0D 03 02 [17:40:58]Write to MH i2c: E2 08 00 44 1B 80 0D 03 02 00 00 00 00 DA [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 0B 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 0B 00 44 1B 00 F0 42 3A AB 73 0B 04 BA 90 00 2E [17:40:58]RAPDU: F0 42 3A AB 73 0B 04 BA 90 00 [17:40:58]wFMCommunicate OK [17:40:58]SAM_PROTO_SignData done [17:40:58]FM_MakeSignedData done [17:40:58]CreateOFDProtocolMessage [17:40:58]wFMCommunicate request_size=4 [17:40:58]MH_SAM_APDU [17:40:58]CAPDU: 80 11 00 00 [17:40:58]Write to MH i2c: E2 08 00 45 1B 80 11 00 00 00 00 00 00 DA [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:58]Read from MH i2c: E2 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 17 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: E2 17 00 45 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2B [17:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:40:58]wFMCommunicate OK [17:40:58]CreateOFDProtocolMessage done [17:40:58]OFDSenderStorePacket 112372 [17:40:58]StoreOFDPacket docnum=112372 [17:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9C DF 07 01 79 77 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 0F 01 00 00 F4 03 04 00 29 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B6 01 00 35 04 06 00 52 A6 5C 53 30 62 F0 42 3A AB 73 0B 04 BA [17:40:58]CheckFolder [17:40:58]dirname=/storage/ofd_packets [17:40:58]CheckFolder done [17:40:58]ProducePacketName [17:40:58]name=ofd_packets/00112372 [17:40:58]NVStorageSaveData ofd_packets/00112372 [17:40:58]File name is /storage/ofd_packets/00112372 [17:40:58]Write 301 bytes [17:40:58]NVStorageSaveData done [17:40:58]OFDSenderStorePacket done [17:40:58]KKMCreateOFDPacket done [17:40:58]NVStorageSaveData kkm_last_timestamp [17:40:58]File name is /storage/kkm_last_timestamp [17:40:58]Write 4 bytes [17:40:58]NVStorageSaveData done [17:40:58]ExternCall_PrintAddStr [17:40:58]wPrintStart [17:40:58]Write to MH i2c: 01 00 00 46 1B 61 [17:40:58]Write i2c OK [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: 01 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: 01 07 00 [17:40:58]MH_I2C_Read... [17:40:58]Read from MH i2c: 01 07 00 46 1B 00 00 00 00 00 FF 0F 76 [17:40:58]RasterBufferAndPrint [17:40:58]line Счет N : (1)48678 [17:40:58]line ИНН: 02508201610067 [17:40:58]line Контрольно-Кассовый Чек [17:40:58]line ПРОДАЖА [17:40:58]line ТРК (МРК, ГНК) : 42 [17:40:58]line Товар: 2710124130 [17:40:58]line Аи-92-К-5 [17:40:58]line 4.670 * 64.30 [17:40:58]line = 300.28 [17:40:58]line НДС 12% НСП 1% [17:40:58]line > о реализуемом товаре [17:40:58]line ОКРУГЛЕНИЕ: -0.28 [17:40:58]line ИТОГО: 300.00 [17:40:58]line Внесено: 300.00 [17:40:58]line СДАЧА: 0.00 [17:40:58]line НСП 1% : 2.66 [17:40:58]line НДС 12% : 31.89 [17:40:58]line Наличными: 300.00 [17:40:58]line Безнал.: 0.00 [17:40:58]line Место: АЗС № 47 "Партнер Нефть" [17:40:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:40:58]line СНО: Общий режим [17:40:58]line Чек 271 14.04.2024 17:40 [17:40:58]line Смена: 357 ФФД: 1.0 [17:40:58]line ЗНМ: 0300000138 [17:40:58]line РНМ: 0000000000094237 [17:40:58]line Версия ККМ: 001 [17:40:58]line ФМ: 0000000000875019 [17:40:58]line ФД: 112372 [17:40:58]line ФПД: 90874467004514 [17:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174057&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112372&fm=90874467004514&tin=02508201610067®Number=0000000000094237&sum=30000 [17:40:58]written 0, free lines is 4095 [17:40:58]OFD Sender: Processing packet 112372 [packets to send 71, broken 70] [17:40:58]ProducePacketName [17:40:58]name=ofd_packets/00112372 [17:40:58]OFD Sender: To server: pG, [17:40:58]CommunicateWithHost lk.salyk.kg:30040 [17:40:58]ConnectInit lk.salyk.kg [17:40:59]Connected sock=9 [17:40:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 9C DF 07 01 79 77 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 0F 01 00 00 F4 03 04 00 29 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B6 01 00 35 04 06 00 52 A6 5C 53 30 62 F0 42 3A AB 73 0B 04 BA [17:40:59]Write to MH i2c: 01 00 00 71 1B 8C [17:40:59]Write i2c OK [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: 01 [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: 01 07 00 [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: 01 07 00 71 1B 00 00 00 00 00 D4 0C 73 [17:40:59]RasterBufferAndPrint [17:40:59]line [17:40:59]line [17:40:59]line [17:40:59]line [17:40:59]line [17:40:59]written 0, free lines is 3292 [17:40:59]MH_Cut [17:40:59]Write to MH i2c: D1 01 00 78 1B 01 65 [17:40:59]Write i2c OK [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: D1 [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: D1 01 00 [17:40:59]MH_I2C_Read... [17:40:59]Read from MH i2c: D1 01 00 78 1B 00 64 [17:40:59]Write to MH i2c: 01 00 00 79 1B 94 [17:40:59]Write i2c OK [17:40:59]MH_I2C_Read... [17:40:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DF 1E 47 00 3D 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F4 B6 01 00 F4 03 04 00 B4 BC 1B 66 B6 04 01 00 00 49 A6 09 7E CA BF D1 76 [17:40:59]CommunicateWithHost err = 0 [17:40:59]CheckOFDResponse [17:40:59]1017 (14) - 77093643461234 [17:40:59]1041 (16) - 0000000000875019 [17:40:59]1040 (4) - 112372 [17:40:59]1012 (4) - 14.04.2024 11:23 [17:40:59]1206 (1) - 0 [17:40:59]OFD Sender: Remove packet 112372 [17:40:59]ProducePacketName [17:40:59]name=ofd_packets/00112372 [17:40:59]NVStorageDeleteData [17:40:59]OFD Sender: No OFD packet to send [17:41:00]*** Cut start [17:41:00]*** Partial cut [17:41:00]*** CUTSNS_PIN = 1 [17:41:00]*** CUTSNS_PIN = 0 [17:41:00]*** Brake cut motor [17:41:00]Read from MH i2c: 01 [17:41:00]MH_I2C_Read... [17:41:00]*** Stop cut motor [17:41:00]*** Cut end [17:41:00]Read from MH i2c: 01 07 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: 01 07 00 79 1B 00 00 00 00 00 FF 0F A9 [17:41:00]process_action close_receipt done [17:41:00]requested_data is exist [17:41:00]produce_requested_data [17:41:00]requested_item fm.sn is exist - process it [17:41:00]wFMCommunicate request_size=4 [17:41:00]MH_SAM_APDU [17:41:00]CAPDU: 80 11 00 00 [17:41:00]Write to MH i2c: E2 08 00 7A 1B 80 11 00 00 00 00 00 00 0F [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:00]Read from MH i2c: E2 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 17 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 17 00 7A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 60 [17:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:41:00]wFMCommunicate OK [17:41:00]requested_item fd.num is exist - process it [17:41:00]SAM_PROTO_GetFieldsCounters [17:41:00]wFMCommunicate request_size=4 [17:41:00]MH_SAM_APDU [17:41:00]CAPDU: 80 13 00 00 [17:41:00]Write to MH i2c: E2 08 00 7B 1B 80 13 00 00 00 00 00 00 12 [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:00]Read from MH i2c: E2 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 62 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 62 00 7B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [17:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F4 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:00]wFMCommunicate OK [17:41:00]SAM_PROTO_GetFieldsCounters done [17:41:00]requested_item shift.num is exist - process it [17:41:00]requested_item shift.opened is exist - process it [17:41:00]req_shift_opened [17:41:00]FM_GetShiftState [17:41:00]SAM_PROTO_GetShiftState [17:41:00]wFMCommunicate request_size=4 [17:41:00]MH_SAM_APDU [17:41:00]CAPDU: 80 13 01 00 [17:41:00]Write to MH i2c: E2 08 00 7C 1B 80 13 01 00 00 00 00 00 14 [17:41:00]Write i2c OK [17:41:00]MH_I2C_Read... [17:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:00]Read from MH i2c: E2 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 [17:41:00]MH_I2C_Read... [17:41:00]Read from MH i2c: E2 0E 00 7C 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AC [17:41:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:41:00]wFMCommunicate OK [17:41:00]SAM_PROTO_GetShiftState done [17:41:00]FM_GetShiftState done [17:41:00]req_shift_opened done [17:41:00]requested_item shift.open_date is exist - process it [17:41:00]req_shift_open_date [17:41:00]req_shift_open_date done [17:41:00]produce_requested_data done [17:41:00]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112372,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:41:00]process_action_free close_receipt [17:41:00]json_value_free [17:41:00]json_value_free done [17:41:00]process_json_proto returns [17:41:00]Send response to host [17:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112372,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:41:00]free response buf [17:41:00]execute_script done [17:41:00]execute_script returns [17:41:00]free content buf [17:41:00]Sock 8.Close socket [17:41:00]Sock 8.Thread stoped [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:15]accept exits with 10 [17:43:15]New connection [17:43:15]New thread 3066682724 created [17:43:15]Thread 3066826084 joined [17:43:15]Waiting for new connection... [17:43:15] Sock 10.Parse request [17:43:15]Sock 10.Check first char [17:43:15]Sock 10.First char is OK [17:43:15]request: POST /json_proto HTTP/1.0 [17:43:15]Method: POST [17:43:15]URL: /json_proto [17:43:15]Method is POST - this is cgi request [17:43:15]url: /json_proto [17:43:15]query_string will be loaded in cgi processing [17:43:15]execute_cgi json_proto POST (null) [17:43:15]execute_cgi path=json_proto method=POST [17:43:15]POST find Content-Length [17:43:15]Host: 172.17.96.197:8080 [17:43:15]Content-Length: 1249 [17:43:15]Content-Type: application/json [17:43:15] [17:43:15]POST finish read [17:43:15]Found Content-Length = 1249 [17:43:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10435", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193121", "name": "\u041E\u0440\u0435\u043E \u042D\u0441\u043A\u0438\u043C\u043E 100\u0433", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:15]execute_script... [17:43:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10435", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243870968", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B \u041F\u0435\u0440\u0441\u0438\u043A \u0410\u0431\u0440\u0438\u043A\u043E\u0441", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620021193121", "name": "\u041E\u0440\u0435\u043E \u042D\u0441\u043A\u0438\u043C\u043E 100\u0433", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:15]POST & json_proto [17:43:15]process_json_proto [17:43:15]json parsed OK: [17:43:15]protocol is kg_v1.0 [17:43:15]action value=close_receipt [17:43:15]process_action close_receipt [17:43:15]cmd_close_receipt [17:43:15]MH_GetDate [17:43:15]Write to MH i2c: F0 00 00 7D 1B 87 [17:43:15]Write i2c OK [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 09 00 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: F0 09 00 7D 1B 00 B4 15 1C 66 E0 85 7F 64 23 [17:43:15]GetLastDocTimeStamp 1713116457 [17:43:15]current date 1713116596 [17:43:15]FM_GetShiftState [17:43:15]SAM_PROTO_GetShiftState [17:43:15]wFMCommunicate request_size=4 [17:43:15]MH_SAM_APDU [17:43:15]CAPDU: 80 13 01 00 [17:43:15]Write to MH i2c: E2 08 00 7E 1B 80 13 01 00 00 00 00 00 16 [17:43:15]Write i2c OK [17:43:15]MH_I2C_Read... [17:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:15]Read from MH i2c: E2 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: E2 0E 00 [17:43:15]MH_I2C_Read... [17:43:15]Read from MH i2c: E2 0E 00 7E 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AE [17:43:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:43:15]wFMCommunicate OK [17:43:15]SAM_PROTO_GetShiftState done [17:43:15]FM_GetShiftState done [17:43:15]opened in 1713054696 [17:43:15]opened+sec_in_day 1713141096 [17:43:15]quantity*price = 11000 [17:43:15]sum+1 = 11001 [17:43:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243870968 Напиток Gorilla ж/б 0,45л Персик Абрикос 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620021193121 Орео Эскимо 100г 1.000 * 139.00 = 139.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 272 14.04.2024 17:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112373 ФПД: 146650064851129 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174316&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112373&fm=146650064851129&tin=02508201610067®Number=0000000000094237&sum=33900 0 [17:43:16]StoreToDocumentArchive [17:43:16]shift 357 fd 112373 [17:43:16]save to /storage/0357/doc_00112373 [17:43:16]save last doc name /storage/0357/doc_00112373 to /storage/kkm_last_doc_name [17:43:16]save OK [17:43:16]Clear old archive folders... [17:43:16]ProcessDocumentItem done err = 0, tmpTLVsize=528 [17:43:16]tlvbuf is B6E89140 [17:43:16]SAM_PROTO_ClearQueue [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 09 00 00 [17:43:16]Write to MH i2c: E2 08 00 8B 1B 80 09 00 00 00 00 00 00 18 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 *** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:16] [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 8B 1B 00 90 00 1A [17:43:16]RAPDU: 90 00 [17:43:16]wFMCommunicate OK [17:43:16]SAM_PROTO_ClearQueue done [17:43:16]KKMCreateOFDPacket [17:43:16]OFDProtocolAddRootSTLVToBuf [17:43:16]FM_MakeSignedData [17:43:16]FM_MakeSignedData [17:43:16]SAM_PROTO_SignData [17:43:16]wFMCommunicate request_size=4 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 0D 01 02 [17:43:16]Write to MH i2c: E2 08 00 8C 1B 80 0D 01 02 00 00 00 00 20 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:16]Read from MH i2c: E2 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 [17:43:16]MH_I2C_Read... [17:43:16]Read from MH i2c: E2 03 00 8C 1B 00 90 00 1B [17:43:16]RAPDU: 90 00 [17:43:16]wFMCommunicate OK [17:43:16]wFMCommunicate request_size=255 [17:43:16]MH_SAM_APDU [17:43:16]CAPDU: 80 0D 02 02 FA 03 00 10 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 [17:43:16]Write to MH i2c: E2 02 01 8D 1B 80 0D 02 02 FA 00 03 00 10 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 59 [17:43:16]Write i2c OK [17:43:16]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 8D 1B 00 90 00 1C [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=255 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 B4 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 [17:43:17]Write to MH i2c: E2 02 01 8E 1B 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 B4 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 00 00 E9 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 8E 1B 00 90 00 1D [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=37 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B6 01 00 35 04 06 00 85 60 A1 05 90 B9 [17:43:17]Write to MH i2c: E2 28 00 8F 1B 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B6 01 00 35 04 06 00 85 60 A1 05 90 B9 00 00 F9 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 03 00 8F 1B 00 90 00 1E [17:43:17]RAPDU: 90 00 [17:43:17]wFMCommunicate OK [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 0D 03 02 [17:43:17]Write to MH i2c: E2 08 00 90 1B 80 0D 03 02 00 00 00 00 26 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 0B 00 90 1B 00 25 7C BA 4A 24 2D 62 8D 90 00 0C [17:43:17]RAPDU: 25 7C BA 4A 24 2D 62 8D 90 00 [17:43:17]wFMCommunicate OK [17:43:17]SAM_PROTO_SignData done [17:43:17]FM_MakeSignedData done [17:43:17]CreateOFDProtocolMessage [17:43:17]wFMCommunicate request_size=4 [17:43:17]MH_SAM_APDU [17:43:17]CAPDU: 80 11 00 00 [17:43:17]Write to MH i2c: E2 08 00 91 1B 80 11 00 00 00 00 00 00 26 [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:17]Read from MH i2c: E2 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: E2 17 00 91 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 77 [17:43:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:43:17]wFMCommunicate OK [17:43:17]CreateOFDProtocolMessage done [17:43:17]OFDSenderStorePacket 112373 [17:43:17]StoreOFDPacket docnum=112373 [17:43:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 02 00 00 E0 93 1C 02 0F 7F 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 B4 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B6 01 00 35 04 06 00 85 60 A1 05 90 B9 25 7C BA 4A 24 2D 62 8D [17:43:17]CheckFolder [17:43:17]dirname=/storage/ofd_packets [17:43:17]CheckFolder done [17:43:17]ProducePacketName [17:43:17]name=ofd_packets/00112373 [17:43:17]NVStorageSaveData ofd_packets/00112373 [17:43:17]File name is /storage/ofd_packets/00112373 [17:43:17]Write 578 bytes [17:43:17]NVStorageSaveData done [17:43:17]OFDSenderStorePacket done [17:43:17]KKMCreateOFDPacket done [17:43:17]NVStorageSaveData kkm_last_timestamp [17:43:17]File name is /storage/kkm_last_timestamp [17:43:17]Write 4 bytes [17:43:17]NVStorageSaveData done [17:43:17]ExternCall_PrintAddStr [17:43:17]wPrintStart [17:43:17]Write to MH i2c: 01 00 00 92 1B AD [17:43:17]Write i2c OK [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 [17:43:17]MH_I2C_Read... [17:43:17]Read from MH i2c: 01 07 00 92 1B 00 00 00 00 00 FF 0F C2 [17:43:17]RasterBufferAndPrint [17:43:17]line Счет N : (3)10435 [17:43:17]line ИНН: 02508201610067 [17:43:17]line Контрольно-Кассовый Чек [17:43:17]line ПРОДАЖА [17:43:17]line Товар: 4650243871828 [17:43:17]line Gorilla эн нап манго-кокос 0,45 ж/б [17:43:17]line 1.000 * 110.00 [17:43:17]line = 110.00 [17:43:17]line НДС 12% НСП 1% [17:43:17]line > о реализуемом товаре [17:43:17]line Товар: 4650243870968 [17:43:17]line Напиток Gorilla ж/б 0,45л Персик Абрикос [17:43:17]line 1.000 * 90.00 [17:43:17]line = 90.00 [17:43:17]line НДС 12% НСП 1% [17:43:17]line > о реализуемом товаре [17:43:17]line Товар: 4620021193121 [17:43:17]line Орео Эскимо 100г [17:43:17]line 1.000 * 139.00 [17:43:17]line = 139.00 [17:43:17]line НДС 12% НСП 1% [17:43:17]line > о реализуемом товаре [17:43:17]line ИТОГО: 339.00 [17:43:17]line НСП 1% : 3.00 [17:43:17]line НДС 12% : 36.00 [17:43:17]line Наличными: 339.00 [17:43:17]line Безнал.: 0.00 [17:43:17]line Место: АЗС № 47 "Партнер Нефть" [17:43:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:43:17]line СНО: Общий режим [17:43:17]line Чек 272 14.04.2024 17:43 [17:43:17]line Смена: 357 ФФД: 1.0 [17:43:17]line ЗНМ: 0300000138 [17:43:17]line РНМ: 0000000000094237 [17:43:17]line Версия ККМ: 001 [17:43:17]line ФМ: 0000000000875019 [17:43:17]line ФД: 112373 [17:43:17]line ФПД: 146650064851129 [17:43:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174316&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112373&fm=146650064851129&tin=02508201610067®Number=0000000000094237&sum=33900 [17:43:17]line 0 [17:43:17]OFD Sender: Processing packet 112373 [packets to send 71, broken 70] [17:43:17]ProducePacketName [17:43:17]name=ofd_packets/00112373 [17:43:17]OFD Sender: To server: pG, [17:43:17]CommunicateWithHost lk.salyk.kg:30040 [17:43:17]ConnectInit lk.salyk.kg [17:43:17]written 0, free lines is 4095 [17:43:17]Connected sock=9 [17:43:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 02 00 00 E0 93 1C 02 0F 7F 5A 03 01 00 03 00 10 02 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 83 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 30 39 36 38 06 04 3F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 D0 9F D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 90 D0 B1 D1 80 D0 B8 D0 BA D0 BE D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 32 31 31 39 33 31 32 31 06 04 1B 00 D0 9E D1 80 D0 B5 D0 BE 20 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 01 00 00 F4 03 04 00 B4 15 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B6 01 00 35 04 06 00 85 60 A1 05 90 B9 25 7C BA 4A 24 2D 62 8D [17:43:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0A 16 47 00 6C E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F5 B6 01 00 F4 03 04 00 3F BD 1B 66 B6 04 01 00 00 3A 5F 51 09 E2 C7 A9 B8 [17:43:18]CommunicateWithHost err = 0 [17:43:18]CheckOFDResponse [17:43:18]1017 (14) - 77093643461234 [17:43:18]1041 (16) - 0000000000875019 [17:43:18]1040 (4) - 112373 [17:43:18]1012 (4) - 14.04.2024 11:25 [17:43:18]1206 (1) - 0 [17:43:18]OFD Sender: Remove packet 112373 [17:43:18]ProducePacketName [17:43:18]name=ofd_packets/00112373 [17:43:18]NVStorageDeleteData [17:43:18]Write to MH i2c: 01 00 00 C8 1B E3 [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: 01 07 00 C8 1B 00 00 00 00 00 31 0C 27 [17:43:18]RasterBufferAndPrint [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]line [17:43:18]written 0, free lines is 3127 [17:43:18]MH_Cut [17:43:18]Write to MH i2c: D1 01 00 CF 1B 01 BC [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 [17:43:18]MH_I2C_Read... [17:43:18]Read from MH i2c: D1 01 00 CF 1B 00 BB [17:43:18]Write to MH i2c: 01 00 00 D0 1B EB [17:43:18]Write i2c OK [17:43:18]MH_I2C_Read... [17:43:18]OFD Sender: No OFD packet to send [17:43:19]*** Cut start [17:43:19]*** Partial cut [17:43:19]*** CUTSNS_PIN = 1 [17:43:19]*** CUTSNS_PIN = 0 [17:43:19]*** Brake cut motor [17:43:19]Read from MH i2c: 01 [17:43:19]MH_I2C_Read... [17:43:19]*** Stop cut motor [17:43:19]*** Cut end [17:43:19]Read from MH i2c: 01 07 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: 01 07 00 D0 1B 00 00 00 00 00 FF 0F 00 [17:43:19]process_action close_receipt done [17:43:19]requested_data is exist [17:43:19]produce_requested_data [17:43:19]requested_item fm.sn is exist - process it [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 11 00 00 [17:43:19]Write to MH i2c: E2 08 00 D1 1B 80 11 00 00 00 00 00 00 66 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:19]Read from MH i2c: E2 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 [17:43:19]MH_I2C_Read... [17:43:19]Read from MH i2c: E2 17 00 D1 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B7 [17:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:43:19]wFMCommunicate OK [17:43:19]requested_item fd.num is exist - process it [17:43:19]SAM_PROTO_GetFieldsCounters [17:43:19]wFMCommunicate request_size=4 [17:43:19]MH_SAM_APDU [17:43:19]CAPDU: 80 13 00 00 [17:43:19]Write to MH i2c: E2 08 00 D2 1B 80 13 00 00 00 00 00 00 69 [17:43:19]Write i2c OK [17:43:19]MH_I2C_Read... [17:43:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 62 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 62 00 D2 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [17:43:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F5 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetFieldsCounters done [17:43:20]requested_item shift.num is exist - process it [17:43:20]requested_item shift.opened is exist - process it [17:43:20]req_shift_opened [17:43:20]FM_GetShiftState [17:43:20]SAM_PROTO_GetShiftState [17:43:20]wFMCommunicate request_size=4 [17:43:20]MH_SAM_APDU [17:43:20]CAPDU: 80 13 01 00 [17:43:20]Write to MH i2c: E2 08 00 D3 1B 80 13 01 00 00 00 00 00 6B [17:43:20]Write i2c OK [17:43:20]MH_I2C_Read... [17:43:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:20]Read from MH i2c: E2 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 [17:43:20]MH_I2C_Read... [17:43:20]Read from MH i2c: E2 0E 00 D3 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 03 [17:43:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:43:20]wFMCommunicate OK [17:43:20]SAM_PROTO_GetShiftState done [17:43:20]FM_GetShiftState done [17:43:20]req_shift_opened done [17:43:20]requested_item shift.open_date is exist - process it [17:43:20]req_shift_open_date [17:43:20]req_shift_open_date done [17:43:20]produce_requested_data done [17:43:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112373,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:43:20]process_action_free close_receipt [17:43:20]json_value_free [17:43:20]json_value_free done [17:43:20]process_json_proto returns [17:43:20]Send response to host [17:43:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112373,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:43:20]free response buf [17:43:20]execute_script done [17:43:20]execute_script returns [17:43:20]free content buf [17:43:20]Sock 10.Close socket [17:43:20]Sock 10.Thread stoped [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45:03]OFD Sender: No OFD packet to send [17:45:08]OFD Sender: No OFD packet to send [17:45:13]OFD Sender: No OFD packet to send [17:45:18]OFD Sender: No OFD packet to send [17:45:23]OFD Sender: No OFD packet to send [17:45:28]OFD Sender: No OFD packet to send [17:45:33]OFD Sender: No OFD packet to send [17:45:38]OFD Sender: No OFD packet to send [17:45:43]OFD Sender: No OFD packet to send [17:45:48]OFD Sender: No OFD packet to send [17:45:53]OFD Sender: No OFD packet to send [17:45:58]OFD Sender: No OFD packet to send [17:46:03]OFD Sender: No OFD packet to send [17:46:08]OFD Sender: No OFD packet to send [17:46:13]OFD Sender: No OFD packet to send [17:46:18]OFD Sender: No OFD packet to send [17:46:23]OFD Sender: No OFD packet to send [17:46:28]OFD Sender: No OFD packet to send [17:46:33]OFD Sender: No OFD packet to send [17:46:38]OFD Sender: No OFD packet to send [17:46:43]OFD Sender: No OFD packet to send [17:46:48]OFD Sender: No OFD packet to send [17:46:53]OFD Sender: No OFD packet to send [17:46:58]OFD Sender: No OFD packet to send [17:47:03]OFD Sender: No OFD packet to send [17:47:08]OFD Sender: No OFD packet to send [17:47:13]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:37]accept exits with 8 [17:48:37]New connection [17:48:37]New thread 3066826084 created [17:48:37]Thread 3066682724 joined [17:48:37]Waiting for new connection... [17:48:37] Sock 8.Parse request [17:48:37]Sock 8.Check first char [17:48:37]Sock 8.First char is OK [17:48:37]request: POST /json_proto HTTP/1.0 [17:48:37]Method: POST [17:48:37]URL: /json_proto [17:48:37]Method is POST - this is cgi request [17:48:37]url: /json_proto [17:48:37]query_string will be loaded in cgi processing [17:48:37]execute_cgi json_proto POST (null) [17:48:37]execute_cgi path=json_proto method=POST [17:48:37]POST find Content-Length [17:48:37]Host: 172.17.96.197:8080 [17:48:37]Content-Length: 676 [17:48:37]Content-Type: application/json [17:48:37] [17:48:37]POST finish read [17:48:37]Found Content-Length = 676 [17:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48679", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:48:37]execute_script... [17:48: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)48679", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [17:48:37]POST & json_proto [17:48:37]process_json_proto [17:48:37]json parsed OK: [17:48:37]protocol is kg_v1.0 [17:48:37]action value=close_receipt [17:48:37]process_action close_receipt [17:48:37]cmd_close_receipt [17:48:37]MH_GetDate [17:48:37]Write to MH i2c: F0 00 00 D4 1B DE [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: F0 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: F0 09 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: F0 09 00 D4 1B 00 F6 16 1C 66 E0 85 7F 64 BD [17:48:37]GetLastDocTimeStamp 1713116596 [17:48:37]current date 1713116918 [17:48:37]FM_GetShiftState [17:48:37]SAM_PROTO_GetShiftState [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 13 01 00 [17:48:37]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0E 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 05 [17:48:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_GetShiftState done [17:48:37]FM_GetShiftState done [17:48:37]opened in 1713054696 [17:48:37]opened+sec_in_day 1713141096 [17:48:37]quantity*price = 50025 [17:48:37]sum+1 = 50026 [17:48:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 273 14.04.2024 17:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112374 ФПД: 101758925698352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174838&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112374&fm=101758925698352&tin=02508201610067®Number=0000000000094237&sum=50000 [17:48:38]StoreToDocumentArchive [17:48:38]shift 357 fd 112374 [17:48:38]save to /storage/0357/doc_00112374 [17:48:38]save last doc name /storage/0357/doc_00112374 to /storage/kkm_last_doc_name [17:48:38]save OK [17:48:38]Clear old archive folders... [17:48:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:38]tlvbuf is B6D89650 [17:48:38]SAM_PROTO_ClearQueue [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 09 00 00 [17:48:38]Write to MH i2c: E2 08 00 E2 1B 80 09 00 00 00 00 00 00 6F [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 E2 1B 00 90 00 71 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_ClearQueue done [17:48:38]KKMCreateOFDPacket [17:48:38]OFDProtocolAddRootSTLVToBuf [17:48:38]FM_MakeSignedData [17:48:38]FM_MakeSignedData [17:48:38]SAM_PROTO_SignData [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 01 02 [17:48:38]Write to MH i2c: E2 08 00 E3 1B 80 0D 01 02 00 00 00 00 77 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 E3 1B 00 90 00 72 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=255 [17:48:38]MH_SAM_APDU [17:48: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 11 01 00 00 F4 03 04 00 F6 16 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B6 01 00 35 04 06 00 5C [17:48:38]Write to MH i2c: E2 02 01 E4 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 11 01 00 00 F4 03 04 00 F6 16 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B6 01 00 35 04 06 00 5C 00 00 29 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=10 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 02 02 05 8C 98 9E 75 30 [17:48:38]Write to MH i2c: E2 0D 00 E5 1B 80 0D 02 02 05 00 8C 98 9E 75 30 00 00 EB [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 03 02 [17:48:38]Write to MH i2c: E2 08 00 E6 1B 80 0D 03 02 00 00 00 00 7C [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0B 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0B 00 E6 1B 00 D7 2C 34 E7 4D 3A 87 B9 90 00 62 [17:48:38]RAPDU: D7 2C 34 E7 4D 3A 87 B9 90 00 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_SignData done [17:48:38]FM_MakeSignedData done [17:48:38]CreateOFDProtocolMessage [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 11 00 00 [17:48:38]Write to MH i2c: E2 08 00 E7 1B 80 11 00 00 00 00 00 00 7C [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 E7 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CD [17:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:48:38]wFMCommunicate OK [17:48:38]CreateOFDProtocolMessage done [17:48:38]OFDSenderStorePacket 112374 [17:48:38]StoreOFDPacket docnum=112374 [17:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B1 76 07 01 C5 A6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 11 01 00 00 F4 03 04 00 F6 16 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B6 01 00 35 04 06 00 5C 8C 98 9E 75 30 D7 2C 34 E7 4D 3A 87 B9 [17:48:38]CheckFolder [17:48:38]dirname=/storage/ofd_packets [17:48:38]CheckFolder done [17:48:38]ProducePacketName [17:48:38]name=ofd_packets/00112374 [17:48:38]NVStorageSaveData ofd_packets/00112374 [17:48:38]File name is /storage/ofd_packets/00112374 [17:48:38]Write 301 bytes [17:48:38]NVStorageSaveData done [17:48:38]OFDSenderStorePacket done [17:48:38]KKMCreateOFDPacket done [17:48:38]NVStorageSaveData kkm_last_timestamp [17:48:38]File name is /storage/kkm_last_timestamp [17:48:38]Write 4 bytes [17:48:38]NVStorageSaveData done [17:48:38]ExternCall_PrintAddStr [17:48:38]wPrintStart [17:48:38]Write to MH i2c: 01 00 00 E8 1B 03 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 E8 1B 00 00 00 00 00 FF 0F 18 [17:48:38]RasterBufferAndPrint [17:48:38]line Счет N : (1)48679 [17:48:38]line ИНН: 02508201610067 [17:48:38]line Контрольно-Кассовый Чек [17:48:38]line ПРОДАЖА [17:48:38]line ТРК (МРК, ГНК) : 42 [17:48:38]line Товар: 2710124130 [17:48:38]line Аи-92-К-5 [17:48:38]line 7.780 * 64.30 [17:48:38]line = 500.25 [17:48:38]line НДС 12% НСП 1% [17:48:38]line > о реализуемом товаре [17:48:38]line ОКРУГЛЕНИЕ: -0.25 [17:48:38]line ИТОГО: 500.00 [17:48:38]line Внесено: 500.00 [17:48:38]line СДАЧА: 0.00 [17:48:38]line НСП 1% : 4.43 [17:48:38]line НДС 12% : 53.12 [17:48:38]line Наличными: 500.00 [17:48:38]line Безнал.: 0.00 [17:48:38]line Место: АЗС № 47 "Партнер Нефть" [17:48:38]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:48:38]line СНО: Общий режим [17:48:38]line Чек 273 14.04.2024 17:48 [17:48:38]line Смена: 357 ФФД: 1.0 [17:48:38]line ЗНМ: 0300000138 [17:48:38]line РНМ: 0000000000094237 [17:48:38]line Версия ККМ: 001 [17:48:38]line ФМ: 0000000000875019 [17:48:38]line ФД: 112374 [17:48:38]line ФПД: 101758925698352 [17:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174838&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112374&fm=101758925698352&tin=02508201610067®Number=0000000000094237&sum=50000 [17:48:39]OFD Sender: Processing packet 112374 [packets to send 71, broken 70] [17:48:39]ProducePacketName [17:48:39]name=ofd_packets/00112374 [17:48:39]OFD Sender: To server: pG, [17:48:39]CommunicateWithHost lk.salyk.kg:30040 [17:48:39]ConnectInit lk.salyk.kg [17:48:39]written 0, free lines is 4095 [17:48:39]Connected sock=10 [17:48:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B1 76 07 01 C5 A6 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 11 01 00 00 F4 03 04 00 F6 16 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B6 01 00 35 04 06 00 5C 8C 98 9E 75 30 D7 2C 34 E7 4D 3A 87 B9 [17:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 35 7A 47 00 C4 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F6 B6 01 00 F4 03 04 00 80 BE 1B 66 B6 04 01 00 00 B4 EA 06 C9 5F A3 91 98 [17:48:39]CommunicateWithHost err = 0 [17:48:39]CheckOFDResponse [17:48:39]1017 (14) - 77093643461234 [17:48:39]1041 (16) - 0000000000875019 [17:48:39]1040 (4) - 112374 [17:48:39]1012 (4) - 14.04.2024 11:31 [17:48:39]1206 (1) - 0 [17:48:39]OFD Sender: Remove packet 112374 [17:48:39]ProducePacketName [17:48:39]name=ofd_packets/00112374 [17:48:39]NVStorageDeleteData [17:48:39]Write to MH i2c: 01 00 00 13 1C 2F [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 07 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 07 00 13 1C 00 00 00 00 00 D8 0C 1A [17:48:39]RasterBufferAndPrint [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]written 0, free lines is 3295 [17:48:39]MH_Cut [17:48:39]Write to MH i2c: D1 01 00 1A 1C 01 08 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 01 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 01 00 1A 1C 00 07 [17:48:39]Write to MH i2c: 01 00 00 1B 1C 37 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:40]OFD Sender: No OFD packet to send [17:48:40]*** Cut start [17:48:40]*** Partial cut [17:48:40]*** CUTSNS_PIN = 1 [17:48:40]*** CUTSNS_PIN = 0 [17:48:40]*** Brake cut motor [17:48:40]Read from MH i2c: 01 [17:48:40]MH_I2C_Read... [17:48:40]*** Stop cut motor [17:48:40]*** Cut end [17:48:40]Read from MH i2c: 01 07 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: 01 07 00 1B 1C 00 00 00 00 00 FF 0F 4C [17:48:40]process_action close_receipt done [17:48:40]requested_data is exist [17:48:40]produce_requested_data [17:48:40]requested_item fm.sn is exist - process it [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 11 00 00 [17:48:40]Write to MH i2c: E2 08 00 1C 1C 80 11 00 00 00 00 00 00 B2 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 17 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 17 00 1C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 03 [17:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:48:41]wFMCommunicate OK [17:48:41]requested_item fd.num is exist - process it [17:48:41]SAM_PROTO_GetFieldsCounters [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 13 00 00 [17:48:41]Write to MH i2c: E2 08 00 1D 1C 80 13 00 00 00 00 00 00 B5 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 62 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 62 00 1D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [17:48:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F6 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:41]wFMCommunicate OK [17:48:41]SAM_PROTO_GetFieldsCounters done [17:48:41]requested_item shift.num is exist - process it [17:48:41]requested_item shift.opened is exist - process it [17:48:41]req_shift_opened [17:48:41]FM_GetShiftState [17:48:41]SAM_PROTO_GetShiftState [17:48:41]wFMCommunicate request_size=4 [17:48:41]MH_SAM_APDU [17:48:41]CAPDU: 80 13 01 00 [17:48:41]Write to MH i2c: E2 08 00 1E 1C 80 13 01 00 00 00 00 00 B7 [17:48:41]Write i2c OK [17:48:41]MH_I2C_Read... [17:48:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:41]Read from MH i2c: E2 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0E 00 [17:48:41]MH_I2C_Read... [17:48:41]Read from MH i2c: E2 0E 00 1E 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4F [17:48:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:48:41]wFMCommunicate OK [17:48:41]SAM_PROTO_GetShiftState done [17:48:41]FM_GetShiftState done [17:48:41]req_shift_opened done [17:48:41]requested_item shift.open_date is exist - process it [17:48:41]req_shift_open_date [17:48:41]req_shift_open_date done [17:48:41]produce_requested_data done [17:48:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112374,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:48:41]process_action_free close_receipt [17:48:41]json_value_free [17:48:41]json_value_free done [17:48:41]process_json_proto returns [17:48:41]Send response to host [17:48:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112374,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:48:41]free response buf [17:48:41]execute_script done [17:48:41]execute_script returns [17:48:41]free content buf [17:48:41]Sock 8.Close socket [17:48:41]Sock 8.Thread stoped [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:52]accept exits with 9 [17:48:52]New connection [17:48:52]New thread 3066682724 created [17:48:52]Thread 3066826084 joined [17:48:52]Waiting for new connection... [17:48:52] Sock 9.Parse request [17:48:52]Sock 9.Check first char [17:48:52]Sock 9.First char is OK [17:48:52]request: POST /json_proto HTTP/1.0 [17:48:52]Method: POST [17:48:52]URL: /json_proto [17:48:52]Method is POST - this is cgi request [17:48:52]url: /json_proto [17:48:52]query_string will be loaded in cgi processing [17:48:52]execute_cgi json_proto POST (null) [17:48:52]execute_cgi path=json_proto method=POST [17:48:52]POST find Content-Length [17:48:52]Host: 172.17.96.197:8080 [17:48:52]Content-Length: 815 [17:48:52]Content-Type: application/json [17:48:52] [17:48:52]POST finish read [17:48:52]Found Content-Length = 815 [17:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:52]execute_script... [17:48: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)48680", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 200.62 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:52]POST & json_proto [17:48:52]process_json_proto [17:48:52]json parsed OK: [17:48:52]protocol is kg_v1.0 [17:48:52]action value=close_receipt [17:48:52]process_action close_receipt [17:48:52]cmd_close_receipt [17:48:52]MH_GetDate [17:48:52]Write to MH i2c: F0 00 00 1F 1C 2A [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 09 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: F0 09 00 1F 1C 00 05 17 1C 66 E0 85 7F 64 19 [17:48:52]GetLastDocTimeStamp 1713116918 [17:48:52]current date 1713116933 [17:48:52]FM_GetShiftState [17:48:52]SAM_PROTO_GetShiftState [17:48:52]wFMCommunicate request_size=4 [17:48:52]MH_SAM_APDU [17:48:52]CAPDU: 80 13 01 00 [17:48:52]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [17:48:52]Write i2c OK [17:48:52]MH_I2C_Read... [17:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:52]Read from MH i2c: E2 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 [17:48:52]MH_I2C_Read... [17:48:52]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 51 [17:48:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:48:52]wFMCommunicate OK [17:48:52]SAM_PROTO_GetShiftState done [17:48:52]FM_GetShiftState done [17:48:52]opened in 1713054696 [17:48:52]opened+sec_in_day 1713141096 [17:48:52]quantity*price = 20061 [17:48:52]sum+1 = 20063 [17:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.62 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 0.00 Безнал.: 200.62 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 274 14.04.2024 17:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112375 ФПД: 146224621615381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174853&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112375&fm=146224621615381&tin=02508201610067®Number=0000000000094237&sum=20062 [17:48:53]StoreToDocumentArchive [17:48:53]shift 357 fd 112375 [17:48:53]save to /storage/0357/doc_00112375 [17:48:53]save last doc name /storage/0357/doc_00112375 to /storage/kkm_last_doc_name [17:48:53]save OK [17:48:53]Clear old archive folders... [17:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:48:53]tlvbuf is 001C9580 [17:48:53]SAM_PROTO_ClearQueue [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 09 00 00 [17:48:53]Write to MH i2c: E2 08 00 2D 1C 80 09 00 00 00 00 00 00 BB [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 2D 1C 00 90 00 BD [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]SAM_PROTO_ClearQueue done [17:48:53]KKMCreateOFDPacket [17:48:53]OFDProtocolAddRootSTLVToBuf [17:48:53]FM_MakeSignedData [17:48:53]FM_MakeSignedData [17:48:53]SAM_PROTO_SignData [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 0D 01 02 [17:48:53]Write to MH i2c: E2 08 00 2E 1C 80 0D 01 02 00 00 00 00 C3 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 2E 1C 00 90 00 BE [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=255 [17:48:53]MH_SAM_APDU [17:48: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 05 17 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B6 01 00 35 04 06 00 84 [17:48:53]Write to MH i2c: E2 02 01 2F 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 05 17 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B6 01 00 35 04 06 00 84 00 00 96 [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=10 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 0D 02 02 05 FD 92 A0 F9 15 [17:48:53]Write to MH i2c: E2 0D 00 30 1C 80 0D 02 02 05 00 FD 92 A0 F9 15 00 00 0D [17:48:53]Write i2c OK [17:48:53]MH_I2C_Read... [17:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:53]Read from MH i2c: E2 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 [17:48:53]MH_I2C_Read... [17:48:53]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [17:48:53]RAPDU: 90 00 [17:48:53]wFMCommunicate OK [17:48:53]wFMCommunicate request_size=4 [17:48:53]MH_SAM_APDU [17:48:53]CAPDU: 80 0D 03 02 [17:48:53]Write to MH i2c: E2 08 00 31 1C 80 0D 03 02 00 00 00 00 C8 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 0B 00 31 1C 00 29 FF 46 1D 14 F0 60 9E 90 00 56 [17:48:54]RAPDU: 29 FF 46 1D 14 F0 60 9E 90 00 [17:48:54]wFMCommunicate OK [17:48:54]SAM_PROTO_SignData done [17:48:54]FM_MakeSignedData done [17:48:54]CreateOFDProtocolMessage [17:48:54]wFMCommunicate request_size=4 [17:48:54]MH_SAM_APDU [17:48:54]CAPDU: 80 11 00 00 [17:48:54]Write to MH i2c: E2 08 00 32 1C 80 11 00 00 00 00 00 00 C8 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:54]Read from MH i2c: E2 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: E2 17 00 32 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 19 [17:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:48:54]wFMCommunicate OK [17:48:54]CreateOFDProtocolMessage done [17:48:54]OFDSenderStorePacket 112375 [17:48:54]StoreOFDPacket docnum=112375 [17:48:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 6A 07 01 E7 65 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 05 17 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B6 01 00 35 04 06 00 84 FD 92 A0 F9 15 29 FF 46 1D 14 F0 60 9E [17:48:54]CheckFolder [17:48:54]dirname=/storage/ofd_packets [17:48:54]CheckFolder done [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00112375 [17:48:54]NVStorageSaveData ofd_packets/00112375 [17:48:54]File name is /storage/ofd_packets/00112375 [17:48:54]Write 301 bytes [17:48:54]NVStorageSaveData done [17:48:54]OFDSenderStorePacket done [17:48:54]KKMCreateOFDPacket done [17:48:54]NVStorageSaveData kkm_last_timestamp [17:48:54]File name is /storage/kkm_last_timestamp [17:48:54]Write 4 bytes [17:48:54]NVStorageSaveData done [17:48:54]ExternCall_PrintAddStr [17:48:54]wPrintStart [17:48:54]Write to MH i2c: 01 00 00 33 1C 4F [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 33 1C 00 00 00 00 00 FF 0F 64 [17:48:54]RasterBufferAndPrint [17:48:54]line Счет N : (1)48680 [17:48:54]line ИНН: 02508201610067 [17:48:54]line Контрольно-Кассовый Чек [17:48:54]line ПРОДАЖА [17:48:54]line ТРК (МРК, ГНК) : 21 [17:48:54]line Товар: 2710124130 [17:48:54]line Аи-92-К-5 [17:48:54]line 3.120 * 64.30 [17:48:54]line = 200.62 [17:48:54]line НДС 12% НСП 1% [17:48:54]line > о реализуемом товаре [17:48:54]line ИТОГО: 200.62 [17:48:54]line НСП 1% : 1.77 [17:48:54]line НДС 12% : 21.30 [17:48:54]line Наличными: 0.00 [17:48:54]line Безнал.: 200.62 [17:48:54]line Место: АЗС № 47 "Партнер Нефть" [17:48:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:48:54]line СНО: Общий режим [17:48:54]line Чек 274 14.04.2024 17:48 [17:48:54]line Смена: 357 ФФД: 1.0 [17:48:54]line ЗНМ: 0300000138 [17:48:54]line РНМ: 0000000000094237 [17:48:54]line Версия ККМ: 001 [17:48:54]line Платежная система: Бакай Банк [17:48:54]line ФМ: 0000000000875019 [17:48:54]line ФД: 112375 [17:48:54]line ФПД: 146224621615381 [17:48:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T174853&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112375&fm=146224621615381&tin=02508201610067®Number=0000000000094237&sum=20062 [17:48:54]written 0, free lines is 4095 [17:48:54]OFD Sender: Processing packet 112375 [packets to send 71, broken 70] [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00112375 [17:48:54]OFD Sender: To server: pG, [17:48:54]CommunicateWithHost lk.salyk.kg:30040 [17:48:54]ConnectInit lk.salyk.kg [17:48:54]Connected sock=8 [17:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4A 6A 07 01 E7 65 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 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 52 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 05 17 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B6 01 00 35 04 06 00 84 FD 92 A0 F9 15 29 FF 46 1D 14 F0 60 9E [17:48:54]Write to MH i2c: 01 00 00 5D 1C 79 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: 01 07 00 5D 1C 00 00 00 00 00 EC 0C 78 [17:48:54]RasterBufferAndPrint [17:48:54]line [17:48:54]line [17:48:54]line [17:48:54]line [17:48:54]line [17:48:54]written 0, free lines is 3314 [17:48:54]MH_Cut [17:48:54]Write to MH i2c: D1 01 00 64 1C 01 52 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: D1 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: D1 01 00 [17:48:54]MH_I2C_Read... [17:48:54]Read from MH i2c: D1 01 00 64 1C 00 51 [17:48:54]Write to MH i2c: 01 00 00 65 1C 81 [17:48:54]Write i2c OK [17:48:54]MH_I2C_Read... [17:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 08 EE 47 00 00 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F7 B6 01 00 F4 03 04 00 90 BE 1B 66 B6 04 01 00 00 E3 79 29 A6 31 2A 87 8C [17:48:54]CommunicateWithHost err = 0 [17:48:54]CheckOFDResponse [17:48:54]1017 (14) - 77093643461234 [17:48:54]1041 (16) - 0000000000875019 [17:48:54]1040 (4) - 112375 [17:48:54]1012 (4) - 14.04.2024 11:31 [17:48:54]1206 (1) - 0 [17:48:54]OFD Sender: Remove packet 112375 [17:48:54]ProducePacketName [17:48:54]name=ofd_packets/00112375 [17:48:54]NVStorageDeleteData [17:48:55]OFD Sender: No OFD packet to send [17:48:55]*** Cut start [17:48:55]*** Partial cut [17:48:55]*** CUTSNS_PIN = 1 [17:48:55]*** CUTSNS_PIN = 0 [17:48:55]*** Brake cut motor [17:48:55]Read from MH i2c: 01 [17:48:55]MH_I2C_Read... [17:48:55]*** Stop cut motor [17:48:55]*** Cut end [17:48:55]Read from MH i2c: 01 07 00 [17:48:55]MH_I2C_Read... [17:48:55]Read from MH i2c: 01 07 00 65 1C 00 00 00 00 00 FF 0F 96 [17:48:55]process_action close_receipt done [17:48:55]requested_data is exist [17:48:55]produce_requested_data [17:48:55]requested_item fm.sn is exist - process it [17:48:55]wFMCommunicate request_size=4 [17:48:55]MH_SAM_APDU [17:48:55]CAPDU: 80 11 00 00 [17:48:55]Write to MH i2c: E2 08 00 66 1C 80 11 00 00 00 00 00 00 FC [17:48:55]Write i2c OK [17:48:55]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 17 00 66 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4D [17:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:48:56]wFMCommunicate OK [17:48:56]requested_item fd.num is exist - process it [17:48:56]SAM_PROTO_GetFieldsCounters [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 00 00 [17:48:56]Write to MH i2c: E2 08 00 67 1C 80 13 00 00 00 00 00 00 FF [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 62 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 62 00 67 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 6B [17:48:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F7 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_GetFieldsCounters done [17:48:56]requested_item shift.num is exist - process it [17:48:56]requested_item shift.opened is exist - process it [17:48:56]req_shift_opened [17:48:56]FM_GetShiftState [17:48:56]SAM_PROTO_GetShiftState [17:48:56]wFMCommunicate request_size=4 [17:48:56]MH_SAM_APDU [17:48:56]CAPDU: 80 13 01 00 [17:48:56]Write to MH i2c: E2 08 00 68 1C 80 13 01 00 00 00 00 00 01 [17:48:56]Write i2c OK [17:48:56]MH_I2C_Read... [17:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:56]Read from MH i2c: E2 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 [17:48:56]MH_I2C_Read... [17:48:56]Read from MH i2c: E2 0E 00 68 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 99 [17:48:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:48:56]wFMCommunicate OK [17:48:56]SAM_PROTO_GetShiftState done [17:48:56]FM_GetShiftState done [17:48:56]req_shift_opened done [17:48:56]requested_item shift.open_date is exist - process it [17:48:56]req_shift_open_date [17:48:56]req_shift_open_date done [17:48:56]produce_requested_data done [17:48:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112375,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:48:56]process_action_free close_receipt [17:48:56]json_value_free [17:48:56]json_value_free done [17:48:56]process_json_proto returns [17:48:56]Send response to host [17:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112375,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:48:56]free response buf [17:48:56]execute_script done [17:48:56]execute_script returns [17:48:56]free content buf [17:48:56]Sock 9.Close socket [17:48:56]Sock 9.Thread stoped [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:55]OFD Sender: No OFD packet to send [17:50:00]OFD Sender: No OFD packet to send [17:50:05]OFD Sender: No OFD packet to send [17:50:10]OFD Sender: No OFD packet to send [17:50:15]OFD Sender: No OFD packet to send [17:50:20]OFD Sender: No OFD packet to send [17:50:25]OFD Sender: No OFD packet to send [17:50:30]OFD Sender: No OFD packet to send [17:50:35]OFD Sender: No OFD packet to send [17:50:40]OFD Sender: No OFD packet to send [17:50:45]OFD Sender: No OFD packet to send [17:50:50]OFD Sender: No OFD packet to send [17:50:55]OFD Sender: No OFD packet to send [17:51:00]OFD Sender: No OFD packet to send [17:51:05]OFD Sender: No OFD packet to send [17:51:10]OFD Sender: No OFD packet to send [17:51:15]OFD Sender: No OFD packet to send [17:51:20]OFD Sender: No OFD packet to send [17:51:25]OFD Sender: No OFD packet to send [17:51:30]OFD Sender: No OFD packet to send [17:51:35]OFD Sender: No OFD packet to send [17:51:40]OFD Sender: No OFD packet to send [17:51:45]OFD Sender: No OFD packet to send [17:51:50]OFD Sender: No OFD packet to send [17:51:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:17]accept exits with 10 [17:53:17]New connection [17:53:17]New thread 3066826084 created [17:53:17]Thread 3066682724 joined [17:53:17]Waiting for new connection... [17:53:17] Sock 10.Parse request [17:53:17]Sock 10.Check first char [17:53:17]Sock 10.First char is OK [17:53:17]request: POST /json_proto HTTP/1.0 [17:53:17]Method: POST [17:53:17]URL: /json_proto [17:53:17]Method is POST - this is cgi request [17:53:17]url: /json_proto [17:53:17]query_string will be loaded in cgi processing [17:53:17]execute_cgi json_proto POST (null) [17:53:17]execute_cgi path=json_proto method=POST [17:53:17]POST find Content-Length [17:53:17]Host: 172.17.96.197:8080 [17:53:17]Content-Length: 674 [17:53:17]Content-Type: application/json [17:53:17] [17:53:17]POST finish read [17:53:17]Found Content-Length = 674 [17:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48681", "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.40, "quantity" : 12.020, "sum" : 870.25, "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" ] } } [17:53:17]execute_script... [17:53: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)48681", "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.40, "quantity" : 12.020, "sum" : 870.25, "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" ] } } [17:53:17]POST & json_proto [17:53:17]process_json_proto [17:53:17]json parsed OK: [17:53:17]protocol is kg_v1.0 [17:53:17]action value=close_receipt [17:53:17]process_action close_receipt [17:53:17]cmd_close_receipt [17:53:17]MH_GetDate [17:53:17]Write to MH i2c: F0 00 00 69 1C 74 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 69 1C 00 0F 18 1C 66 E0 85 7F 64 6E [17:53:17]GetLastDocTimeStamp 1713116933 [17:53:17]current date 1713117199 [17:53:17]FM_GetShiftState [17:53:17]SAM_PROTO_GetShiftState [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 13 01 00 [17:53:17]Write to MH i2c: E2 08 00 6A 1C 80 13 01 00 00 00 00 00 03 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 6A 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9B [17:53:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:53:18]wFMCommunicate OK [17:53:18]SAM_PROTO_GetShiftState done [17:53:18]FM_GetShiftState done [17:53:18]opened in 1713054696 [17:53:18]opened+sec_in_day 1713141096 [17:53:18]quantity*price = 87024 [17:53:18]sum+1 = 87026 [17:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.42 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 275 14.04.2024 17:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112376 ФПД: 86560384040739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112376&fm=86560384040739&tin=02508201610067®Number=0000000000094237&sum=87000 [17:53:19]StoreToDocumentArchive [17:53:19]shift 357 fd 112376 [17:53:19]save to /storage/0357/doc_00112376 [17:53:19]save last doc name /storage/0357/doc_00112376 to /storage/kkm_last_doc_name [17:53:19]save OK [17:53:19]Clear old archive folders... [17:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:53:19]tlvbuf is 001C9EC0 [17:53:19]SAM_PROTO_ClearQueue [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 09 00 00 [17:53:19]Write to MH i2c: E2 08 00 77 1C 80 09 00 00 00 00 00 00 05 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 77 1C 00 90 00 07 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_ClearQueue done [17:53:19]KKMCreateOFDPacket [17:53:19]OFDProtocolAddRootSTLVToBuf [17:53:19]FM_MakeSignedData [17:53:19]FM_MakeSignedData [17:53:19]SAM_PROTO_SignData [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 01 02 [17:53:19]Write to MH i2c: E2 08 00 78 1C 80 0D 01 02 00 00 00 00 0D [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 78 1C 00 90 00 08 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=255 [17:53:19]MH_SAM_APDU [17:53:19]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 F4 2E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F1 53 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 1A 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 13 01 00 00 F4 03 04 00 0F 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B6 01 00 35 04 06 00 4E B9 E8 F1 [17:53:19]Write to MH i2c: E2 02 01 79 1C 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 F4 2E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F1 53 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 1A 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 13 01 00 00 F4 03 04 00 0F 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B6 01 00 35 04 06 00 4E B9 E8 F1 00 00 80 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 79 1C 00 90 00 09 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=7 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 02 02 02 3F 23 [17:53:19]Write to MH i2c: E2 0A 00 7A 1C 80 0D 02 02 02 00 3F 23 00 00 76 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 03 02 [17:53:19]Write to MH i2c: E2 08 00 7B 1C 80 0D 03 02 00 00 00 00 12 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 7B 1C 00 2B 86 08 A1 5F 97 C9 19 90 00 45 [17:53:19]RAPDU: 2B 86 08 A1 5F 97 C9 19 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_SignData done [17:53:19]FM_MakeSignedData done [17:53:19]CreateOFDProtocolMessage [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 11 00 00 [17:53:19]Write to MH i2c: E2 08 00 7C 1C 80 11 00 00 00 00 00 00 12 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 7C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 63 [17:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:53:19]wFMCommunicate OK [17:53:19]CreateOFDProtocolMessage done [17:53:19]OFDSenderStorePacket 112376 [17:53:19]StoreOFDPacket docnum=112376 [17:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 90 E0 04 01 E3 3A 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 F4 2E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F1 53 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 1A 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 13 01 00 00 F4 03 04 00 0F 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B6 01 00 35 04 06 00 4E B9 E8 F1 3F 23 2B 86 08 A1 5F 97 C9 19 [17:53:19]CheckFolder [17:53:19]dirname=/storage/ofd_packets [17:53:19]CheckFolder done [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00112376 [17:53:19]NVStorageSaveData ofd_packets/00112376 [17:53:19]File name is /storage/ofd_packets/00112376 [17:53:19]Write 298 bytes [17:53:19]NVStorageSaveData done [17:53:19]OFDSenderStorePacket done [17:53:19]KKMCreateOFDPacket done [17:53:19]NVStorageSaveData kkm_last_timestamp [17:53:19]File name is /storage/kkm_last_timestamp [17:53:19]Write 4 bytes [17:53:19]NVStorageSaveData done [17:53:19]ExternCall_PrintAddStr [17:53:19]wPrintStart [17:53:19]Write to MH i2c: 01 00 00 7D 1C 99 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 7D 1C 00 00 00 00 00 FF 0F AE [17:53:19]RasterBufferAndPrint [17:53:19]line Счет N : (1)48681 [17:53:19]line ИНН: 02508201610067 [17:53:19]line Контрольно-Кассовый Чек [17:53:19]line ПРОДАЖА [17:53:19]line ТРК (МРК, ГНК) : 51 [17:53:19]line Товар: 2710194210 [17:53:19]line ДТ-К-5 [17:53:19]line 12.020 * 72.40 [17:53:19]line = 870.25 [17:53:19]line НДС 12% НСП 1% [17:53:19]line > о реализуемом товаре [17:53:19]line ОКРУГЛЕНИЕ: -0.25 [17:53:19]line ИТОГО: 870.00 [17:53:19]line Внесено: 870.00 [17:53:19]line СДАЧА: 0.00 [17:53:19]line НСП 1% : 7.70 [17:53:19]line НДС 12% : 92.42 [17:53:19]line Наличными: 870.00 [17:53:19]line Безнал.: 0.00 [17:53:19]line Место: АЗС № 47 "Партнер Нефть" [17:53:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:53:19]line СНО: Общий режим [17:53:19]line Чек 275 14.04.2024 17:53 [17:53:19]line Смена: 357 ФФД: 1.0 [17:53:19]line ЗНМ: 0300000138 [17:53:19]line РНМ: 0000000000094237 [17:53:19]line Версия ККМ: 001 [17:53:19]line ФМ: 0000000000875019 [17:53:19]line ФД: 112376 [17:53:19]line ФПД: 86560384040739 [17:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112376&fm=86560384040739&tin=02508201610067®Number=0000000000094237&sum=87000 [17:53:20]OFD Sender: Processing packet 112376 [packets to send 71, broken 70] [17:53:20]ProducePacketName [17:53:20]name=ofd_packets/00112376 [17:53:20]OFD Sender: To server: pG, [17:53:20]CommunicateWithHost lk.salyk.kg:30040 [17:53:20]ConnectInit lk.salyk.kg [17:53:20]written 0, free lines is 4095 [17:53:20]Connected sock=9 [17:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 90 E0 04 01 E3 3A 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 F4 2E 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F1 53 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 1A 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 13 01 00 00 F4 03 04 00 0F 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F8 B6 01 00 35 04 06 00 4E B9 E8 F1 3F 23 2B 86 08 A1 5F 97 C9 19 [17:53:20]Write to MH i2c: 01 00 00 A8 1C C4 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 80 5C 47 00 9A 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 38 37 35 30 31 39 10 04 04 00 F8 B6 01 00 F4 03 04 00 99 BF 1B 66 B6 04 01 00 00 4C C7 2D 16 BA 95 2B 9C [17:53:20]CommunicateWithHost err = 0 [17:53:20]CheckOFDResponse [17:53:20]1017 (14) - 77093643461234 [17:53:20]1041 (16) - 0000000000875019 [17:53:20]1040 (4) - 112376 [17:53:20]1012 (4) - 14.04.2024 11:35 [17:53:20]1206 (1) - 0 [17:53:20]OFD Sender: Remove packet 112376 [17:53:20]ProducePacketName [17:53:20]name=ofd_packets/00112376 [17:53:20]NVStorageDeleteData [17:53:20]Read from MH i2c: 01 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 A8 1C 00 00 00 00 00 CF 0C A6 [17:53:20]RasterBufferAndPrint [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]written 0, free lines is 3297 [17:53:20]MH_Cut [17:53:20]Write to MH i2c: D1 01 00 AF 1C 01 9D [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 01 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 01 00 AF 1C 00 9C [17:53:20]Write to MH i2c: 01 00 00 B0 1C CC [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]OFD Sender: No OFD packet to send [17:53:21]*** Cut start [17:53:21]*** Partial cut [17:53:21]*** CUTSNS_PIN = 1 [17:53:21]*** CUTSNS_PIN = 0 [17:53:21]*** Brake cut motor [17:53:21]Read from MH i2c: 01 [17:53:21]MH_I2C_Read... [17:53:21]*** Stop cut motor [17:53:21]*** Cut end [17:53:21]Read from MH i2c: 01 07 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: 01 07 00 B0 1C 00 00 00 00 00 FF 0F E1 [17:53:21]process_action close_receipt done [17:53:21]requested_data is exist [17:53:21]produce_requested_data [17:53:21]requested_item fm.sn is exist - process it [17:53:21]wFMCommunicate request_size=4 [17:53:21]MH_SAM_APDU [17:53:21]CAPDU: 80 11 00 00 [17:53:21]Write to MH i2c: E2 08 00 B1 1C 80 11 00 00 00 00 00 00 47 [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:21]Read from MH i2c: E2 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 17 00 [17:53:21]MH_I2C_Read... [17:53:21]Read from MH i2c: E2 17 00 B1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 98 [17:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:53:21]wFMCommunicate OK [17:53:21]requested_item fd.num is exist - process it [17:53:21]SAM_PROTO_GetFieldsCounters [17:53:21]wFMCommunicate request_size=4 [17:53:21]MH_SAM_APDU [17:53:21]CAPDU: 80 13 00 00 [17:53:21]Write to MH i2c: E2 08 00 B2 1C 80 13 00 00 00 00 00 00 4A [17:53:21]Write i2c OK [17:53:21]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 B2 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 BA [17:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F8 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetFieldsCounters done [17:53:22]requested_item shift.num is exist - process it [17:53:22]requested_item shift.opened is exist - process it [17:53:22]req_shift_opened [17:53:22]FM_GetShiftState [17:53:22]SAM_PROTO_GetShiftState [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 13 01 00 [17:53:22]Write to MH i2c: E2 08 00 B3 1C 80 13 01 00 00 00 00 00 4C [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 B3 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E4 [17:53:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetShiftState done [17:53:22]FM_GetShiftState done [17:53:22]req_shift_opened done [17:53:22]requested_item shift.open_date is exist - process it [17:53:22]req_shift_open_date [17:53:22]req_shift_open_date done [17:53:22]produce_requested_data done [17:53:22]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112376,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:53:22]process_action_free close_receipt [17:53:22]json_value_free [17:53:22]json_value_free done [17:53:22]process_json_proto returns [17:53:22]Send response to host [17:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112376,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:53:22]free response buf [17:53:22]execute_script done [17:53:22]execute_script returns [17:53:22]free content buf [17:53:22]Sock 10.Close socket [17:53:22]Sock 10.Thread stoped [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:45]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:09]accept exits with 8 [17:54:09]New connection [17:54:09]New thread 3066682724 created [17:54:09]Thread 3066826084 joined [17:54:09]Waiting for new connection... [17:54:09] Sock 8.Parse request [17:54:09]Sock 8.Check first char [17:54:09]Sock 8.First char is OK [17:54:09]request: POST /json_proto HTTP/1.0 [17:54:09]Method: POST [17:54:09]URL: /json_proto [17:54:09]Method is POST - this is cgi request [17:54:09]url: /json_proto [17:54:09]query_string will be loaded in cgi processing [17:54:09]execute_cgi json_proto POST (null) [17:54:09]execute_cgi path=json_proto method=POST [17:54:09]POST find Content-Length [17:54:09]Host: 172.17.96.197:8080 [17:54:09]Content-Length: 619 [17:54:09]Content-Type: application/json [17:54:09] [17:54:09]POST finish read [17:54:09]Found Content-Length = 619 [17:54:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10436", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:09]execute_script... [17:54:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10436", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:54:09]POST & json_proto [17:54:09]process_json_proto [17:54:09]json parsed OK: [17:54:09]protocol is kg_v1.0 [17:54:09]action value=close_receipt [17:54:09]process_action close_receipt [17:54:09]cmd_close_receipt [17:54:09]MH_GetDate [17:54:09]Write to MH i2c: F0 00 00 B4 1C BF [17:54:09]Write i2c OK [17:54:09]MH_I2C_Read... [17:54:09]Read from MH i2c: F0 [17:54:09]MH_I2C_Read... [17:54:09]Read from MH i2c: F0 09 00 [17:54:09]MH_I2C_Read... [17:54:09]Read from MH i2c: F0 09 00 B4 1C 00 42 18 1C 66 E0 85 7F 64 EC [17:54:09]GetLastDocTimeStamp 1713117199 [17:54:09]current date 1713117250 [17:54:09]FM_GetShiftState [17:54:09]SAM_PROTO_GetShiftState [17:54:09]wFMCommunicate request_size=4 [17:54:09]MH_SAM_APDU [17:54:09]CAPDU: 80 13 01 00 [17:54:09]Write to MH i2c: E2 08 00 B5 1C 80 13 01 00 00 00 00 00 4E [17:54:09]Write i2c OK [17:54:09]MH_I2C_Read... [17:54:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:09]Read from MH i2c: E2 [17:54:09]MH_I2C_Read... [17:54:09]Read from MH i2c: E2 0E 00 [17:54:09]MH_I2C_Read... [17:54:09]Read from MH i2c: E2 0E 00 B5 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E6 [17:54:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:54:09]wFMCommunicate OK [17:54:09]SAM_PROTO_GetShiftState done [17:54:09]FM_GetShiftState done [17:54:09]opened in 1713054696 [17:54:09]opened+sec_in_day 1713141096 [17:54:09]quantity*price = 13000 [17:54:09]sum+1 = 13001 [17:54:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 276 14.04.2024 17:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112377 ФПД: 167151578587483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112377&fm=167151578587483&tin=02508201610067®Number=0000000000094237&sum=13000 0 [17:54:10]StoreToDocumentArchive [17:54:10]shift 357 fd 112377 [17:54:10]save to /storage/0357/doc_00112377 [17:54:10]save last doc name /storage/0357/doc_00112377 to /storage/kkm_last_doc_name [17:54:10]save OK [17:54:10]Clear old archive folders... [17:54:10]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:54:10]tlvbuf is B6D89950 [17:54:10]SAM_PROTO_ClearQueue [17:54:10]wFMCommunicate request_size=4 [17:54:10]MH_SAM_APDU [17:54:10]CAPDU: 80 09 00 00 [17:54:10]Write to MH i2c: E2 08 00 C2 1C 80 09 00 00 00 00 00 00 50 [17:54:10]Write i2c OK [17:54:10]MH_I2C_Read... [17:54:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:54:10]Read from MH i2c: E2 [17:54:10]MH_I2C_Read... [17:54:10]Read from MH i2c: E2 03 00 [17:54:10]MH_I2C_Read... [17:54:10]Read from MH i2c: E2 03 00 C2 1C 00 90 00 52 [17:54:10]RAPDU: 90 00 [17:54:10]wFMCommunicate OK [17:54:10]SAM_PROTO_ClearQueue done [17:54:10]KKMCreateOFDPacket [17:54:10]OFDProtocolAddRootSTLVToBuf [17:54:10]FM_MakeSignedData [17:54:10]FM_MakeSignedData [17:54:10]SAM_PROTO_SignData [17:54:10]wFMCommunicate request_size=4 [17:54:10]MH_SAM_APDU [17:54:10]CAPDU: 80 0D 01 02 [17:54:10]Write to MH i2c: E2 08 00 C3 1C 80 0D 01 02 00 00 00 00 58 [17:54:10]Write i2c OK [17:54:10]MH_I2C_Read... [17:54:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:54:10]Read from MH i2c: E2 [17:54:10]MH_I2C_Read... [17:54:10]Read from MH i2c: E2 03 00 [17:54:10]MH_I2C_Read... [17:54:10]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [17:54:10]RAPDU: 90 00 [17:54:10]wFMCommunicate OK [17:54:10]wFMCommunicate request_size=255 [17:54:10]MH_SAM_APDU [17:54:10]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 42 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [17:54:10]Write to MH i2c: E2 02 01 C4 1C 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 42 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 58 [17:54:10]Write i2c OK [17:54:10]MH_I2C_Read... [17:54:11]OFD Sender: No OFD packet to send [17:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:11]Read from MH i2c: E2 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 03 00 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [17:54:11]RAPDU: 90 00 [17:54:11]wFMCommunicate OK [17:54:11]wFMCommunicate request_size=31 [17:54:11]MH_SAM_APDU [17:54:11]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 F9 B6 01 00 35 04 06 00 98 06 02 77 21 5B [17:54:11]Write to MH i2c: E2 22 00 C5 1C 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 F9 B6 01 00 35 04 06 00 98 06 02 77 21 5B 00 00 C7 [17:54:11]Write i2c OK [17:54:11]MH_I2C_Read... [17:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:54:11]Read from MH i2c: E2 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 03 00 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [17:54:11]RAPDU: 90 00 [17:54:11]wFMCommunicate OK [17:54:11]wFMCommunicate request_size=4 [17:54:11]MH_SAM_APDU [17:54:11]CAPDU: 80 0D 03 02 [17:54:11]Write to MH i2c: E2 08 00 C6 1C 80 0D 03 02 00 00 00 00 5D [17:54:11]Write i2c OK [17:54:11]MH_I2C_Read... [17:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:54:11]Read from MH i2c: E2 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 0B 00 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 0B 00 C6 1C 00 DB 7A B0 13 5F 53 54 D0 90 00 4C [17:54:11]RAPDU: DB 7A B0 13 5F 53 54 D0 90 00 [17:54:11]wFMCommunicate OK [17:54:11]SAM_PROTO_SignData done [17:54:11]FM_MakeSignedData done [17:54:11]CreateOFDProtocolMessage [17:54:11]wFMCommunicate request_size=4 [17:54:11]MH_SAM_APDU [17:54:11]CAPDU: 80 11 00 00 [17:54:11]Write to MH i2c: E2 08 00 C7 1C 80 11 00 00 00 00 00 00 5D [17:54:11]Write i2c OK [17:54:11]MH_I2C_Read... [17:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:11]Read from MH i2c: E2 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 17 00 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: E2 17 00 C7 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AE [17:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:54:11]wFMCommunicate OK [17:54:11]CreateOFDProtocolMessage done [17:54:11]OFDSenderStorePacket 112377 [17:54:11]StoreOFDPacket docnum=112377 [17:54:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 55 9B 1C 01 E2 CE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 42 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B6 01 00 35 04 06 00 98 06 02 77 21 5B DB 7A B0 13 5F 53 54 D0 [17:54:11]CheckFolder [17:54:11]dirname=/storage/ofd_packets [17:54:11]CheckFolder done [17:54:11]ProducePacketName [17:54:11]name=ofd_packets/00112377 [17:54:11]NVStorageSaveData ofd_packets/00112377 [17:54:11]File name is /storage/ofd_packets/00112377 [17:54:11]Write 322 bytes [17:54:11]NVStorageSaveData done [17:54:11]OFDSenderStorePacket done [17:54:11]KKMCreateOFDPacket done [17:54:11]NVStorageSaveData kkm_last_timestamp [17:54:11]File name is /storage/kkm_last_timestamp [17:54:11]Write 4 bytes [17:54:11]NVStorageSaveData done [17:54:11]ExternCall_PrintAddStr [17:54:11]wPrintStart [17:54:11]Write to MH i2c: 01 00 00 C8 1C E4 [17:54:11]Write i2c OK [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: 01 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: 01 07 00 [17:54:11]MH_I2C_Read... [17:54:11]Read from MH i2c: 01 07 00 C8 1C 00 00 00 00 00 FF 0F F9 [17:54:11]RasterBufferAndPrint [17:54:11]line Счет N : (3)10436 [17:54:11]line ИНН: 02508201610067 [17:54:11]line Контрольно-Кассовый Чек [17:54:11]line ПРОДАЖА [17:54:11]line Товар: 48745000 [17:54:11]line Сигареты Winston Purple Mix [17:54:11]line 1.000 * 130.00 [17:54:11]line = 130.00 [17:54:11]line НДС 12% НСП 1% [17:54:11]line > о реализуемом товаре [17:54:11]line ИТОГО: 130.00 [17:54:11]line НСП 1% : 1.15 [17:54:11]line НДС 12% : 13.80 [17:54:11]line Наличными: 130.00 [17:54:11]line Безнал.: 0.00 [17:54:11]line Место: АЗС № 47 "Партнер Нефть" [17:54:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:54:11]line СНО: Общий режим [17:54:11]line Чек 276 14.04.2024 17:54 [17:54:11]line Смена: 357 ФФД: 1.0 [17:54:11]line ЗНМ: 0300000138 [17:54:11]line РНМ: 0000000000094237 [17:54:11]line Версия ККМ: 001 [17:54:11]line ФМ: 0000000000875019 [17:54:11]line ФД: 112377 [17:54:11]line ФПД: 167151578587483 [17:54:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175410&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112377&fm=167151578587483&tin=02508201610067®Number=0000000000094237&sum=13000 [17:54:11]line 0 [17:54:11]OFD Sender: Processing packet 112377 [packets to send 71, broken 70] [17:54:11]ProducePacketName [17:54:11]name=ofd_packets/00112377 [17:54:11]OFD Sender: To server: pG, [17:54:11]CommunicateWithHost lk.salyk.kg:30040 [17:54:11]ConnectInit lk.salyk.kg [17:54:11]written 0, free lines is 4095 [17:54:11]Connected sock=10 [17:54:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 55 9B 1C 01 E2 CE 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 01 00 00 F4 03 04 00 42 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 F9 B6 01 00 35 04 06 00 98 06 02 77 21 5B DB 7A B0 13 5F 53 54 D0 [17:54:12]Write to MH i2c: 01 00 00 F0 1C 0C [17:54:12]Write i2c OK [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: 01 [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: 01 07 00 [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: 01 07 00 F0 1C 00 00 00 00 00 E5 0C 04 [17:54:12]RasterBufferAndPrint [17:54:12]line [17:54:12]line [17:54:12]line [17:54:12]line [17:54:12]line [17:54:12]written 0, free lines is 3307 [17:54:12]MH_Cut [17:54:12]Write to MH i2c: D1 01 00 F7 1C 01 E5 [17:54:12]Write i2c OK [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: D1 [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: D1 01 00 [17:54:12]MH_I2C_Read... [17:54:12]Read from MH i2c: D1 01 00 F7 1C 00 E4 [17:54:12]Write to MH i2c: 01 00 00 F8 1C 14 [17:54:12]Write i2c OK [17:54:12]MH_I2C_Read... [17:54:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 01 03 47 00 A8 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 38 37 35 30 31 39 10 04 04 00 F9 B6 01 00 F4 03 04 00 CD BF 1B 66 B6 04 01 00 00 B4 B0 DC F5 74 4F 21 2C [17:54:12]CommunicateWithHost err = 0 [17:54:12]CheckOFDResponse [17:54:12]1017 (14) - 77093643461234 [17:54:12]1041 (16) - 0000000000875019 [17:54:12]1040 (4) - 112377 [17:54:12]1012 (4) - 14.04.2024 11:36 [17:54:12]1206 (1) - 0 [17:54:12]OFD Sender: Remove packet 112377 [17:54:12]ProducePacketName [17:54:12]name=ofd_packets/00112377 [17:54:12]NVStorageDeleteData [17:54:12]OFD Sender: No OFD packet to send [17:54:12]*** Cut start [17:54:12]*** Partial cut [17:54:12]*** CUTSNS_PIN = 1 [17:54:12]*** CUTSNS_PIN = 0 [17:54:13]*** Brake cut motor [17:54:13]Read from MH i2c: 01 [17:54:13]MH_I2C_Read... [17:54:13]*** Stop cut motor [17:54:13]*** Cut end [17:54:13]Read from MH i2c: 01 07 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 FF 0F 29 [17:54:13]process_action close_receipt done [17:54:13]requested_data is exist [17:54:13]produce_requested_data [17:54:13]requested_item fm.sn is exist - process it [17:54:13]wFMCommunicate request_size=4 [17:54:13]MH_SAM_APDU [17:54:13]CAPDU: 80 11 00 00 [17:54:13]Write to MH i2c: E2 08 00 F9 1C 80 11 00 00 00 00 00 00 8F [17:54:13]Write i2c OK [17:54:13]MH_I2C_Read... [17:54:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:54:13]Read from MH i2c: E2 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 17 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 17 00 F9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E0 [17:54:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:54:13]wFMCommunicate OK [17:54:13]requested_item fd.num is exist - process it [17:54:13]SAM_PROTO_GetFieldsCounters [17:54:13]wFMCommunicate request_size=4 [17:54:13]MH_SAM_APDU [17:54:13]CAPDU: 80 13 00 00 [17:54:13]Write to MH i2c: E2 08 00 FA 1C 80 13 00 00 00 00 00 00 92 [17:54:13]Write i2c OK [17:54:13]MH_I2C_Read... [17:54:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:54:13]Read from MH i2c: E2 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 62 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 62 00 FA 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [17:54:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 F9 B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:54:13]wFMCommunicate OK [17:54:13]SAM_PROTO_GetFieldsCounters done [17:54:13]requested_item shift.num is exist - process it [17:54:13]requested_item shift.opened is exist - process it [17:54:13]req_shift_opened [17:54:13]FM_GetShiftState [17:54:13]SAM_PROTO_GetShiftState [17:54:13]wFMCommunicate request_size=4 [17:54:13]MH_SAM_APDU [17:54:13]CAPDU: 80 13 01 00 [17:54:13]Write to MH i2c: E2 08 00 FB 1C 80 13 01 00 00 00 00 00 94 [17:54:13]Write i2c OK [17:54:13]MH_I2C_Read... [17:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:54:13]Read from MH i2c: E2 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 0E 00 [17:54:13]MH_I2C_Read... [17:54:13]Read from MH i2c: E2 0E 00 FB 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2C [17:54:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:54:13]wFMCommunicate OK [17:54:13]SAM_PROTO_GetShiftState done [17:54:13]FM_GetShiftState done [17:54:13]req_shift_opened done [17:54:13]requested_item shift.open_date is exist - process it [17:54:13]req_shift_open_date [17:54:13]req_shift_open_date done [17:54:13]produce_requested_data done [17:54:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112377,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:54:13]process_action_free close_receipt [17:54:13]json_value_free [17:54:13]json_value_free done [17:54:13]process_json_proto returns [17:54:13]Send response to host [17:54:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112377,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:54:13]free response buf [17:54:13]execute_script done [17:54:13]execute_script returns [17:54:13]free content buf [17:54:13]Sock 8.Close socket [17:54:13]Sock 8.Thread stoped [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:23]accept exits with 9 [17:55:23]New connection [17:55:23]New thread 3066826084 created [17:55:23]Thread 3066682724 joined [17:55:23]Waiting for new connection... [17:55:23] Sock 9.Parse request [17:55:23]Sock 9.Check first char [17:55:23]Sock 9.First char is OK [17:55:23]request: POST /json_proto HTTP/1.0 [17:55:23]Method: POST [17:55:23]URL: /json_proto [17:55:23]Method is POST - this is cgi request [17:55:23]url: /json_proto [17:55:23]query_string will be loaded in cgi processing [17:55:23]execute_cgi json_proto POST (null) [17:55:23]execute_cgi path=json_proto method=POST [17:55:23]POST find Content-Length [17:55:23]Host: 172.17.96.197:8080 [17:55:23]Content-Length: 678 [17:55:23]Content-Type: application/json [17:55:23] [17:55:23]POST finish read [17:55:23]Found Content-Length = 678 [17:55:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48682", "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.40, "quantity" : 20.720, "sum" : 1500.13, "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" ] } } [17:55:23]execute_script... [17:55: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)48682", "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.40, "quantity" : 20.720, "sum" : 1500.13, "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" ] } } [17:55:23]POST & json_proto [17:55:23]process_json_proto [17:55:23]json parsed OK: [17:55:23]protocol is kg_v1.0 [17:55:23]action value=close_receipt [17:55:23]process_action close_receipt [17:55:23]cmd_close_receipt [17:55:23]MH_GetDate [17:55:23]Write to MH i2c: F0 00 00 FC 1C 07 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: F0 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: F0 09 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: F0 09 00 FC 1C 00 8C 18 1C 66 E0 85 7F 64 7E [17:55:23]GetLastDocTimeStamp 1713117250 [17:55:23]current date 1713117324 [17:55:23]FM_GetShiftState [17:55:23]SAM_PROTO_GetShiftState [17:55:23]wFMCommunicate request_size=4 [17:55:23]MH_SAM_APDU [17:55:23]CAPDU: 80 13 01 00 [17:55:23]Write to MH i2c: E2 08 00 FD 1C 80 13 01 00 00 00 00 00 96 [17:55:23]Write i2c OK [17:55:23]MH_I2C_Read... [17:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:23]Read from MH i2c: E2 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 0E 00 [17:55:23]MH_I2C_Read... [17:55:23]Read from MH i2c: E2 0E 00 FD 1C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2E [17:55:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:55:23]wFMCommunicate OK [17:55:23]SAM_PROTO_GetShiftState done [17:55:23]FM_GetShiftState done [17:55:23]opened in 1713054696 [17:55:23]opened+sec_in_day 1713141096 [17:55:23]quantity*price = 150012 [17:55:23]sum+1 = 150014 [17:55:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 277 14.04.2024 17:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112378 ФПД: 81417610333107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175524&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112378&fm=81417610333107&tin=02508201610067®Number=0000000000094237&sum=150000 [17:55:24]StoreToDocumentArchive [17:55:24]shift 357 fd 112378 [17:55:24]save to /storage/0357/doc_00112378 [17:55:24]save last doc name /storage/0357/doc_00112378 to /storage/kkm_last_doc_name [17:55:24]save OK [17:55:24]Clear old archive folders... [17:55:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:55:24]tlvbuf is 0015B270 [17:55:24]SAM_PROTO_ClearQueue [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 09 00 00 [17:55:24]Write to MH i2c: E2 08 00 0A 1D 80 09 00 00 00 00 00 00 99 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 [17:55:24]MH_I2C_Read... [17:55:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:55:24]Read from MH i2c: E2 03 00 [17:55:24]MH_I2C_Read... [17:55:24]Read from MH i2c: E2 03 00 0A 1D 00 90 00 9B [17:55:24]RAPDU: 90 00 [17:55:24]wFMCommunicate OK [17:55:24]SAM_PROTO_ClearQueue done [17:55:24]KKMCreateOFDPacket [17:55:24]OFDProtocolAddRootSTLVToBuf [17:55:24]FM_MakeSignedData [17:55:24]FM_MakeSignedData [17:55:24]SAM_PROTO_SignData [17:55:24]wFMCommunicate request_size=4 [17:55:24]MH_SAM_APDU [17:55:24]CAPDU: 80 0D 01 02 [17:55:24]Write to MH i2c: E2 08 00 0B 1D 80 0D 01 02 00 00 00 00 A1 [17:55:24]Write i2c OK [17:55:24]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 [17:55:25]MH_I2C_Read... [17:55:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:55:25]Read from MH i2c: E2 03 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 03 00 0B 1D 00 90 00 9C [17:55:25]RAPDU: 90 00 [17:55:25]wFMCommunicate OK [17:55:25]wFMCommunicate request_size=255 [17:55:25]MH_SAM_APDU [17:55:25]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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 15 01 00 00 F4 03 04 00 8C 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B6 01 00 35 04 06 00 4A 0C 83 BE [17:55:25]Write to MH i2c: E2 02 01 0C 1D 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 15 01 00 00 F4 03 04 00 8C 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B6 01 00 35 04 06 00 4A 0C 83 BE 00 00 F5 [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:25]Read from MH i2c: E2 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 03 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 03 00 0C 1D 00 90 00 9D [17:55:25]RAPDU: 90 00 [17:55:25]wFMCommunicate OK [17:55:25]wFMCommunicate request_size=7 [17:55:25]MH_SAM_APDU [17:55:25]CAPDU: 80 0D 02 02 02 0B B3 [17:55:25]Write to MH i2c: E2 0A 00 0D 1D 80 0D 02 02 02 00 0B B3 00 00 66 [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:55:25]Read from MH i2c: E2 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 03 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 03 00 0D 1D 00 90 00 9E [17:55:25]RAPDU: 90 00 [17:55:25]wFMCommunicate OK [17:55:25]wFMCommunicate request_size=4 [17:55:25]MH_SAM_APDU [17:55:25]CAPDU: 80 0D 03 02 [17:55:25]Write to MH i2c: E2 08 00 0E 1D 80 0D 03 02 00 00 00 00 A6 [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:55:25]Read from MH i2c: E2 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 0B 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 0B 00 0E 1D 00 AB 01 B6 D6 2F DD 97 4A 90 00 CC [17:55:25]RAPDU: AB 01 B6 D6 2F DD 97 4A 90 00 [17:55:25]wFMCommunicate OK [17:55:25]SAM_PROTO_SignData done [17:55:25]FM_MakeSignedData done [17:55:25]CreateOFDProtocolMessage [17:55:25]wFMCommunicate request_size=4 [17:55:25]MH_SAM_APDU [17:55:25]CAPDU: 80 11 00 00 [17:55:25]Write to MH i2c: E2 08 00 0F 1D 80 11 00 00 00 00 00 00 A6 [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:25]Read from MH i2c: E2 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 17 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: E2 17 00 0F 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F7 [17:55:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:55:25]wFMCommunicate OK [17:55:25]CreateOFDProtocolMessage done [17:55:25]OFDSenderStorePacket 112378 [17:55:25]StoreOFDPacket docnum=112378 [17:55:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 75 18 04 01 C9 6B 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 15 01 00 00 F4 03 04 00 8C 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B6 01 00 35 04 06 00 4A 0C 83 BE 0B B3 AB 01 B6 D6 2F DD 97 4A [17:55:25]CheckFolder [17:55:25]dirname=/storage/ofd_packets [17:55:25]CheckFolder done [17:55:25]ProducePacketName [17:55:25]name=ofd_packets/00112378 [17:55:25]NVStorageSaveData ofd_packets/00112378 [17:55:25]File name is /storage/ofd_packets/00112378 [17:55:25]Write 298 bytes [17:55:25]NVStorageSaveData done [17:55:25]OFDSenderStorePacket done [17:55:25]KKMCreateOFDPacket done [17:55:25]NVStorageSaveData kkm_last_timestamp [17:55:25]File name is /storage/kkm_last_timestamp [17:55:25]Write 4 bytes [17:55:25]NVStorageSaveData done [17:55:25]ExternCall_PrintAddStr [17:55:25]wPrintStart [17:55:25]Write to MH i2c: 01 00 00 10 1D 2D [17:55:25]Write i2c OK [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 07 00 [17:55:25]MH_I2C_Read... [17:55:25]Read from MH i2c: 01 07 00 10 1D 00 00 00 00 00 FF 0F 42 [17:55:25]RasterBufferAndPrint [17:55:25]line Счет N : (1)48682 [17:55:25]line ИНН: 02508201610067 [17:55:25]line Контрольно-Кассовый Чек [17:55:25]line ПРОДАЖА [17:55:25]line ТРК (МРК, ГНК) : 51 [17:55:25]line Товар: 2710194210 [17:55:25]line ДТ-К-5 [17:55:25]line 20.720 * 72.40 [17:55:25]line = 1500.13 [17:55:25]line НДС 12% НСП 1% [17:55:25]line > о реализуемом товаре [17:55:25]line ОКРУГЛЕНИЕ: -0.13 [17:55:25]line ИТОГО: 1500.00 [17:55:25]line Внесено: 1500.00 [17:55:25]line СДАЧА: 0.00 [17:55:25]line НСП 1% : 13.27 [17:55:25]line НДС 12% : 159.31 [17:55:25]line Наличными: 1500.00 [17:55:25]line Безнал.: 0.00 [17:55:25]line Место: АЗС № 47 "Партнер Нефть" [17:55:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:55:25]line СНО: Общий режим [17:55:25]line Чек 277 14.04.2024 17:55 [17:55:25]line Смена: 357 ФФД: 1.0 [17:55:25]line ЗНМ: 0300000138 [17:55:25]line РНМ: 0000000000094237 [17:55:25]line Версия ККМ: 001 [17:55:25]line ФМ: 0000000000875019 [17:55:25]line ФД: 112378 [17:55:25]line ФПД: 81417610333107 [17:55:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175524&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112378&fm=81417610333107&tin=02508201610067®Number=0000000000094237&sum=150000 [17:55:25]OFD Sender: Processing packet 112378 [packets to send 71, broken 70] [17:55:25]ProducePacketName [17:55:25]name=ofd_packets/00112378 [17:55:25]OFD Sender: To server: pG, [17:55:25]CommunicateWithHost lk.salyk.kg:30040 [17:55:25]ConnectInit lk.salyk.kg [17:55:25]written 0, free lines is 4095 [17:55:26]Connected sock=10 [17:55:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 75 18 04 01 C9 6B 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 15 01 00 00 F4 03 04 00 8C 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B6 01 00 35 04 06 00 4A 0C 83 BE 0B B3 AB 01 B6 D6 2F DD 97 4A [17:55:26]Write to MH i2c: 01 00 00 3B 1D 58 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: 01 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: 01 07 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: 01 07 00 3B 1D 00 00 00 00 00 D4 0C 3F [17:55:26]RasterBufferAndPrint [17:55:26]line [17:55:26]line [17:55:26]line [17:55:26]line [17:55:26]line [17:55:26]written 0, free lines is 3292 [17:55:26]MH_Cut [17:55:26]Write to MH i2c: D1 01 00 42 1D 01 31 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: D1 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: D1 01 00 [17:55:26]MH_I2C_Read... [17:55:26]Read from MH i2c: D1 01 00 42 1D 00 30 [17:55:26]Write to MH i2c: 01 00 00 43 1D 60 [17:55:26]Write i2c OK [17:55:26]MH_I2C_Read... [17:55:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E5 27 47 00 F2 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FA B6 01 00 F4 03 04 00 17 C0 1B 66 B6 04 01 00 00 77 34 B4 9A 8D A5 B7 B5 [17:55:26]CommunicateWithHost err = 0 [17:55:26]CheckOFDResponse [17:55:26]1017 (14) - 77093643461234 [17:55:26]1041 (16) - 0000000000875019 [17:55:26]1040 (4) - 112378 [17:55:26]1012 (4) - 14.04.2024 11:37 [17:55:26]1206 (1) - 0 [17:55:26]OFD Sender: Remove packet 112378 [17:55:26]ProducePacketName [17:55:26]name=ofd_packets/00112378 [17:55:26]NVStorageDeleteData [17:55:26]OFD Sender: No OFD packet to send [17:55:26]*** Cut start [17:55:26]*** Partial cut [17:55:26]*** CUTSNS_PIN = 1 [17:55:27]*** CUTSNS_PIN = 0 [17:55:27]*** Brake cut motor [17:55:27]Read from MH i2c: 01 [17:55:27]MH_I2C_Read... [17:55:27]*** Stop cut motor [17:55:27]*** Cut end [17:55:27]Read from MH i2c: 01 07 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: 01 07 00 43 1D 00 00 00 00 00 FF 0F 75 [17:55:27]process_action close_receipt done [17:55:27]requested_data is exist [17:55:27]produce_requested_data [17:55:27]requested_item fm.sn is exist - process it [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 11 00 00 [17:55:27]Write to MH i2c: E2 08 00 44 1D 80 11 00 00 00 00 00 00 DB [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 17 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 17 00 44 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2C [17:55:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:55:27]wFMCommunicate OK [17:55:27]requested_item fd.num is exist - process it [17:55:27]SAM_PROTO_GetFieldsCounters [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 13 00 00 [17:55:27]Write to MH i2c: E2 08 00 45 1D 80 13 00 00 00 00 00 00 DE [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 62 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 62 00 45 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 56 [17:55:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FA B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:55:27]wFMCommunicate OK [17:55:27]SAM_PROTO_GetFieldsCounters done [17:55:27]requested_item shift.num is exist - process it [17:55:27]requested_item shift.opened is exist - process it [17:55:27]req_shift_opened [17:55:27]FM_GetShiftState [17:55:27]SAM_PROTO_GetShiftState [17:55:27]wFMCommunicate request_size=4 [17:55:27]MH_SAM_APDU [17:55:27]CAPDU: 80 13 01 00 [17:55:27]Write to MH i2c: E2 08 00 46 1D 80 13 01 00 00 00 00 00 E0 [17:55:27]Write i2c OK [17:55:27]MH_I2C_Read... [17:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:55:27]Read from MH i2c: E2 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 0E 00 [17:55:27]MH_I2C_Read... [17:55:27]Read from MH i2c: E2 0E 00 46 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 78 [17:55:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:55:27]wFMCommunicate OK [17:55:27]SAM_PROTO_GetShiftState done [17:55:27]FM_GetShiftState done [17:55:27]req_shift_opened done [17:55:27]requested_item shift.open_date is exist - process it [17:55:27]req_shift_open_date [17:55:27]req_shift_open_date done [17:55:27]produce_requested_data done [17:55:27]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112378,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:55:27]process_action_free close_receipt [17:55:27]json_value_free [17:55:27]json_value_free done [17:55:27]process_json_proto returns [17:55:27]Send response to host [17:55:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112378,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:55:27]free response buf [17:55:27]execute_script done [17:55:27]execute_script returns [17:55:27]free content buf [17:55:27]Sock 9.Close socket [17:55:27]Sock 9.Thread stoped [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:30]accept exits with 8 [17:56:30]New connection [17:56:30]New thread 3066682724 created [17:56:30]Thread 3066826084 joined [17:56:30]Waiting for new connection... [17:56:30] Sock 8.Parse request [17:56:30]Sock 8.Check first char [17:56:30]Sock 8.First char is OK [17:56:30]request: POST /json_proto HTTP/1.0 [17:56:30]Method: POST [17:56:30]URL: /json_proto [17:56:30]Method is POST - this is cgi request [17:56:30]url: /json_proto [17:56:30]query_string will be loaded in cgi processing [17:56:30]execute_cgi json_proto POST (null) [17:56:30]execute_cgi path=json_proto method=POST [17:56:30]POST find Content-Length [17:56:30]Host: 172.17.96.197:8080 [17:56:30]Content-Length: 638 [17:56:30]Content-Type: application/json [17:56:30] [17:56:30]POST finish read [17:56:30]Found Content-Length = 638 [17:56:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10437", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:30]execute_script... [17:56:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10437", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:56:30]POST & json_proto [17:56:30]process_json_proto [17:56:30]json parsed OK: [17:56:30]protocol is kg_v1.0 [17:56:30]action value=close_receipt [17:56:30]process_action close_receipt [17:56:30]cmd_close_receipt [17:56:30]MH_GetDate [17:56:30]Write to MH i2c: F0 00 00 47 1D 53 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: F0 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: F0 09 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: F0 09 00 47 1D 00 CF 18 1C 66 E0 85 7F 64 0D [17:56:30]GetLastDocTimeStamp 1713117324 [17:56:30]current date 1713117391 [17:56:30]FM_GetShiftState [17:56:30]SAM_PROTO_GetShiftState [17:56:30]wFMCommunicate request_size=4 [17:56:30]MH_SAM_APDU [17:56:30]CAPDU: 80 13 01 00 [17:56:30]Write to MH i2c: E2 08 00 48 1D 80 13 01 00 00 00 00 00 E2 [17:56:30]Write i2c OK [17:56:30]MH_I2C_Read... [17:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:30]Read from MH i2c: E2 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 0E 00 [17:56:30]MH_I2C_Read... [17:56:30]Read from MH i2c: E2 0E 00 48 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7A [17:56:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:56:30]wFMCommunicate OK [17:56:30]SAM_PROTO_GetShiftState done [17:56:30]FM_GetShiftState done [17:56:30]opened in 1713054696 [17:56:30]opened+sec_in_day 1713141096 [17:56:30]quantity*price = 11000 [17:56:30]sum+1 = 11001 [17:56:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 278 14.04.2024 17:56 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112379 ФПД: 246520680935659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175631&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112379&fm=246520680935659&tin=02508201610067®Number=0000000000094237&sum=11000 0 [17:56:31]StoreToDocumentArchive [17:56:31]shift 357 fd 112379 [17:56:31]save to /storage/0357/doc_00112379 [17:56:31]save last doc name /storage/0357/doc_00112379 to /storage/kkm_last_doc_name [17:56:31]save OK [17:56:31]Clear old archive folders... [17:56:31]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:56:31]tlvbuf is 00163D00 [17:56:31]SAM_PROTO_ClearQueue [17:56:31]wFMCommunicate request_size=4 [17:56:31]MH_SAM_APDU [17:56:31]CAPDU: 80 09 00 00 [17:56:31]Write to MH i2c: E2 08 00 55 1D 80 09 00 00 00 00 00 00 E4 [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:56:31]Read from MH i2c: E2 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 [17:56:31]MH_I2C_Read... [17:56:31]Read from MH i2c: E2 03 00 55 1D 00 90 00 E6 [17:56:31]RAPDU: 90 00 [17:56:31]wFMCommunicate OK [17:56:31]SAM_PROTO_ClearQueue done [17:56:31]KKMCreateOFDPacket [17:56:31]OFDProtocolAddRootSTLVToBuf [17:56:31]FM_MakeSignedData [17:56:31]FM_MakeSignedData [17:56:31]SAM_PROTO_SignData [17:56:31]wFMCommunicate request_size=4 [17:56:31]MH_SAM_APDU [17:56:31]CAPDU: 80 0D 01 02 [17:56:31]Write to MH i2c: E2 08 00 56 1D 80 0D 01 02 00 00 00 00 EC [17:56:31]Write i2c OK [17:56:31]MH_I2C_Read... [17:56:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:56:32]Read from MH i2c: E2 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 56 1D 00 90 00 E7 [17:56:32]RAPDU: 90 00 [17:56:32]wFMCommunicate OK [17:56:32]wFMCommunicate request_size=255 [17:56:32]MH_SAM_APDU [17:56:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CF 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:56:32]Write to MH i2c: E2 02 01 57 1D 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CF 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 A1 [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:32]Read from MH i2c: E2 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 57 1D 00 90 00 E8 [17:56:32]RAPDU: 90 00 [17:56:32]wFMCommunicate OK [17:56:32]wFMCommunicate request_size=30 [17:56:32]MH_SAM_APDU [17:56:32]CAPDU: 80 0D 02 02 19 30 38 37 35 30 31 39 10 04 04 00 FB B6 01 00 35 04 06 00 E0 35 91 9D F0 EB [17:56:32]Write to MH i2c: E2 21 00 58 1D 80 0D 02 02 19 00 30 38 37 35 30 31 39 10 04 04 00 FB B6 01 00 35 04 06 00 E0 35 91 9D F0 EB 00 00 B6 [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:56:32]Read from MH i2c: E2 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 03 00 58 1D 00 90 00 E9 [17:56:32]RAPDU: 90 00 [17:56:32]wFMCommunicate OK [17:56:32]wFMCommunicate request_size=4 [17:56:32]MH_SAM_APDU [17:56:32]CAPDU: 80 0D 03 02 [17:56:32]Write to MH i2c: E2 08 00 59 1D 80 0D 03 02 00 00 00 00 F1 [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:56:32]Read from MH i2c: E2 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 0B 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 0B 00 59 1D 00 4D 07 47 D2 1B 0B 52 1B 90 00 F2 [17:56:32]RAPDU: 4D 07 47 D2 1B 0B 52 1B 90 00 [17:56:32]wFMCommunicate OK [17:56:32]SAM_PROTO_SignData done [17:56:32]FM_MakeSignedData done [17:56:32]CreateOFDProtocolMessage [17:56:32]wFMCommunicate request_size=4 [17:56:32]MH_SAM_APDU [17:56:32]CAPDU: 80 11 00 00 [17:56:32]Write to MH i2c: E2 08 00 5A 1D 80 11 00 00 00 00 00 00 F1 [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:32]Read from MH i2c: E2 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 17 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: E2 17 00 5A 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 42 [17:56:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:56:32]wFMCommunicate OK [17:56:32]CreateOFDProtocolMessage done [17:56:32]OFDSenderStorePacket 112379 [17:56:32]StoreOFDPacket docnum=112379 [17:56:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 23 01 00 00 55 27 1B 01 51 42 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CF 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B6 01 00 35 04 06 00 E0 35 91 9D F0 EB 4D 07 47 D2 1B 0B 52 1B [17:56:32]CheckFolder [17:56:32]dirname=/storage/ofd_packets [17:56:32]CheckFolder done [17:56:32]ProducePacketName [17:56:32]name=ofd_packets/00112379 [17:56:32]NVStorageSaveData ofd_packets/00112379 [17:56:32]File name is /storage/ofd_packets/00112379 [17:56:32]Write 321 bytes [17:56:32]NVStorageSaveData done [17:56:32]OFDSenderStorePacket done [17:56:32]KKMCreateOFDPacket done [17:56:32]NVStorageSaveData kkm_last_timestamp [17:56:32]File name is /storage/kkm_last_timestamp [17:56:32]Write 4 bytes [17:56:32]NVStorageSaveData done [17:56:32]ExternCall_PrintAddStr [17:56:32]wPrintStart [17:56:32]Write to MH i2c: 01 00 00 5B 1D 78 [17:56:32]Write i2c OK [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 [17:56:32]MH_I2C_Read... [17:56:32]Read from MH i2c: 01 07 00 5B 1D 00 00 00 00 00 FF 0F 8D [17:56:32]RasterBufferAndPrint [17:56:32]line Счет N : (3)10437 [17:56:32]line ИНН: 02508201610067 [17:56:32]line Контрольно-Кассовый Чек [17:56:32]line ПРОДАЖА [17:56:32]line Товар: 5449000006271 [17:56:32]line Напиток Фанта 1л [17:56:32]line 1.000 * 110.00 [17:56:32]line = 110.00 [17:56:32]line НДС 12% НСП 1% [17:56:32]line > о реализуемом товаре [17:56:32]line ИТОГО: 110.00 [17:56:32]line НСП 1% : 0.97 [17:56:32]line НДС 12% : 11.68 [17:56:32]line Наличными: 110.00 [17:56:32]line Безнал.: 0.00 [17:56:32]line Место: АЗС № 47 "Партнер Нефть" [17:56:32]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [17:56:32]line СНО: Общий режим [17:56:32]line Чек 278 14.04.2024 17:56 [17:56:32]line Смена: 357 ФФД: 1.0 [17:56:32]line ЗНМ: 0300000138 [17:56:32]line РНМ: 0000000000094237 [17:56:32]line Версия ККМ: 001 [17:56:32]line ФМ: 0000000000875019 [17:56:32]line ФД: 112379 [17:56:32]line ФПД: 246520680935659 [17:56:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T175631&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112379&fm=246520680935659&tin=02508201610067®Number=0000000000094237&sum=11000 [17:56:32]line 0 [17:56:32]OFD Sender: Processing packet 112379 [packets to send 71, broken 70] [17:56:32]ProducePacketName [17:56:32]name=ofd_packets/00112379 [17:56:32]OFD Sender: To server: pG, [17:56:32]CommunicateWithHost lk.salyk.kg:30040 [17:56:32]ConnectInit lk.salyk.kg [17:56:32]written 0, free lines is 4095 [17:56:32]Connected sock=10 [17:56:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 23 01 00 00 55 27 1B 01 51 42 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 CF 18 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B6 01 00 35 04 06 00 E0 35 91 9D F0 EB 4D 07 47 D2 1B 0B 52 1B [17:56:33]Write to MH i2c: 01 00 00 83 1D A0 [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: 01 07 00 83 1D 00 00 00 00 00 FF 0C B2 [17:56:33]RasterBufferAndPrint [17:56:33]line [17:56:33]line [17:56:33]line [17:56:33]line [17:56:33]line [17:56:33]written 0, free lines is 3332 [17:56:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 37 50 47 00 9B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FB B6 01 00 F4 03 04 00 5A C0 1B 66 B6 04 01 00 00 ED 76 6C 7B 2A 04 F3 2D [17:56:33]CommunicateWithHost err = 0 [17:56:33]CheckOFDResponse [17:56:33]1017 (14) - 77093643461234 [17:56:33]1041 (16) - 0000000000875019 [17:56:33]1040 (4) - 112379 [17:56:33]1012 (4) - 14.04.2024 11:39 [17:56:33]1206 (1) - 0 [17:56:33]OFD Sender: Remove packet 112379 [17:56:33]ProducePacketName [17:56:33]name=ofd_packets/00112379 [17:56:33]NVStorageDeleteData [17:56:33]MH_Cut [17:56:33]Write to MH i2c: D1 01 00 8A 1D 01 79 [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D1 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D1 01 00 [17:56:33]MH_I2C_Read... [17:56:33]Read from MH i2c: D1 01 00 8A 1D 00 78 [17:56:33]Write to MH i2c: 01 00 00 8B 1D A8 [17:56:33]Write i2c OK [17:56:33]MH_I2C_Read... [17:56:33]OFD Sender: No OFD packet to send [17:56:33]*** Cut start [17:56:33]*** Partial cut [17:56:33]*** CUTSNS_PIN = 1 [17:56:33]*** CUTSNS_PIN = 0 [17:56:34]*** Brake cut motor [17:56:34]Read from MH i2c: 01 [17:56:34]MH_I2C_Read... [17:56:34]*** Stop cut motor [17:56:34]*** Cut end [17:56:34]Read from MH i2c: 01 07 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: 01 07 00 8B 1D 00 00 00 00 00 FF 0F BD [17:56:34]process_action close_receipt done [17:56:34]requested_data is exist [17:56:34]produce_requested_data [17:56:34]requested_item fm.sn is exist - process it [17:56:34]wFMCommunicate request_size=4 [17:56:34]MH_SAM_APDU [17:56:34]CAPDU: 80 11 00 00 [17:56:34]Write to MH i2c: E2 08 00 8C 1D 80 11 00 00 00 00 00 00 23 [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:56:34]Read from MH i2c: E2 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 17 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 17 00 8C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 74 [17:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [17:56:34]wFMCommunicate OK [17:56:34]requested_item fd.num is exist - process it [17:56:34]SAM_PROTO_GetFieldsCounters [17:56:34]wFMCommunicate request_size=4 [17:56:34]MH_SAM_APDU [17:56:34]CAPDU: 80 13 00 00 [17:56:34]Write to MH i2c: E2 08 00 8D 1D 80 13 00 00 00 00 00 00 26 [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:56:34]Read from MH i2c: E2 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 62 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 62 00 8D 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [17:56:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FB B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:56:34]wFMCommunicate OK [17:56:34]SAM_PROTO_GetFieldsCounters done [17:56:34]requested_item shift.num is exist - process it [17:56:34]requested_item shift.opened is exist - process it [17:56:34]req_shift_opened [17:56:34]FM_GetShiftState [17:56:34]SAM_PROTO_GetShiftState [17:56:34]wFMCommunicate request_size=4 [17:56:34]MH_SAM_APDU [17:56:34]CAPDU: 80 13 01 00 [17:56:34]Write to MH i2c: E2 08 00 8E 1D 80 13 01 00 00 00 00 00 28 [17:56:34]Write i2c OK [17:56:34]MH_I2C_Read... [17:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:56:34]Read from MH i2c: E2 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 0E 00 [17:56:34]MH_I2C_Read... [17:56:34]Read from MH i2c: E2 0E 00 8E 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C0 [17:56:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [17:56:34]wFMCommunicate OK [17:56:34]SAM_PROTO_GetShiftState done [17:56:34]FM_GetShiftState done [17:56:34]req_shift_opened done [17:56:34]requested_item shift.open_date is exist - process it [17:56:34]req_shift_open_date [17:56:34]req_shift_open_date done [17:56:34]produce_requested_data done [17:56:34]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112379,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [17:56:34]process_action_free close_receipt [17:56:34]json_value_free [17:56:34]json_value_free done [17:56:34]process_json_proto returns [17:56:34]Send response to host [17:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112379,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [17:56:34]free response buf [17:56:34]execute_script done [17:56:34]execute_script returns [17:56:34]free content buf [17:56:34]Sock 8.Close socket [17:56:34]Sock 8.Thread stoped [17:56:38]OFD Sender: No OFD packet to send [17:56:43]OFD Sender: No OFD packet to send [17:56:48]OFD Sender: No OFD packet to send [17:56:53]OFD Sender: No OFD packet to send [17:56:58]OFD Sender: No OFD packet to send [17:57:03]OFD Sender: No OFD packet to send [17:57:08]OFD Sender: No OFD packet to send [17:57:13]OFD Sender: No OFD packet to send [17:57:18]OFD Sender: No OFD packet to send [17:57:23]OFD Sender: No OFD packet to send [17:57:28]OFD Sender: No OFD packet to send [17:57:33]OFD Sender: No OFD packet to send [17:57:38]OFD Sender: No OFD packet to send [17:57:43]OFD Sender: No OFD packet to send [17:57:48]OFD Sender: No OFD packet to send [17:57:53]OFD Sender: No OFD packet to send [17:57:58]OFD Sender: No OFD packet to send [17:58:03]OFD Sender: No OFD packet to send [17:58:08]OFD Sender: No OFD packet to send [17:58:13]OFD Sender: No OFD packet to send [17:58:18]OFD Sender: No OFD packet to send [17:58:23]OFD Sender: No OFD packet to send [17:58:28]OFD Sender: No OFD packet to send [17:58:33]OFD Sender: No OFD packet to send [17:58:38]OFD Sender: No OFD packet to send [17:58:43]OFD Sender: No OFD packet to send [17:58:48]OFD Sender: No OFD packet to send [17:58:53]OFD Sender: No OFD packet to send [17:58:58]OFD Sender: No OFD packet to send [17:59:03]OFD Sender: No OFD packet to send [17:59:08]OFD Sender: No OFD packet to send [17:59:13]OFD Sender: No OFD packet to send [17:59:18]OFD Sender: No OFD packet to send [17:59:23]OFD Sender: No OFD packet to send [17:59:28]OFD Sender: No OFD packet to send [17:59:33]OFD Sender: No OFD packet to send [17:59:38]OFD Sender: No OFD packet to send [17:59:43]OFD Sender: No OFD packet to send [17:59:48]OFD Sender: No OFD packet to send [17:59:53]OFD Sender: No OFD packet to send [17:59:58]OFD Sender: No OFD packet to send [18:00:03]OFD Sender: No OFD packet to send [18:00:08]OFD Sender: No OFD packet to send [18:00:13]OFD Sender: No OFD packet to send [18:00:18]OFD Sender: No OFD packet to send [18:00:23]OFD Sender: No OFD packet to send [18:00:27]accept exits with 9 [18:00:27]New connection [18:00:27]New thread 3066826084 created [18:00:27]Thread 3066682724 joined [18:00:27]Waiting for new connection... [18:00:27] Sock 9.Parse request [18:00:27]Sock 9.Check first char [18:00:27]Sock 9.First char is OK [18:00:27]request: POST /json_proto HTTP/1.0 [18:00:27]Method: POST [18:00:27]URL: /json_proto [18:00:27]Method is POST - this is cgi request [18:00:27]url: /json_proto [18:00:27]query_string will be loaded in cgi processing [18:00:27]execute_cgi json_proto POST (null) [18:00:27]execute_cgi path=json_proto method=POST [18:00:27]POST find Content-Length [18:00:27]Host: 172.17.96.197:8080 [18:00:27]Content-Length: 638 [18:00:27]Content-Type: application/json [18:00:27] [18:00:27]POST finish read [18:00:27]Found Content-Length = 638 [18:00:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:27]execute_script... [18:00:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48683", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:00:27]POST & json_proto [18:00:27]process_json_proto [18:00:27]json parsed OK: [18:00:27]protocol is kg_v1.0 [18:00:27]action value=close_receipt [18:00:27]process_action close_receipt [18:00:27]cmd_close_receipt [18:00:27]MH_GetDate [18:00:27]Write to MH i2c: F0 00 00 8F 1D 9B [18:00:27]Write i2c OK [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: F0 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: F0 09 00 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: F0 09 00 8F 1D 00 BC 19 1C 66 E0 85 7F 64 43 [18:00:27]GetLastDocTimeStamp 1713117391 [18:00:27]current date 1713117628 [18:00:27]FM_GetShiftState [18:00:27]SAM_PROTO_GetShiftState [18:00:27]wFMCommunicate request_size=4 [18:00:27]MH_SAM_APDU [18:00:27]CAPDU: 80 13 01 00 [18:00:27]Write to MH i2c: E2 08 00 90 1D 80 13 01 00 00 00 00 00 2A [18:00:27]Write i2c OK [18:00:27]MH_I2C_Read... [18:00:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:27]Read from MH i2c: E2 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: E2 0E 00 [18:00:27]MH_I2C_Read... [18:00:27]Read from MH i2c: E2 0E 00 90 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C2 [18:00:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:00:27]wFMCommunicate OK [18:00:27]SAM_PROTO_GetShiftState done [18:00:27]FM_GetShiftState done [18:00:27]opened in 1713054696 [18:00:27]opened+sec_in_day 1713141096 [18:00:27]quantity*price = 29000 [18:00:27]sum+1 = 29001 [18:00:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 290.00 НСП 1% : 2.57 НДС 12% : 30.80 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 279 14.04.2024 18:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112380 ФПД: 32832871259790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T180028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112380&fm=32832871259790&tin=02508201610067®Number=0000000000094237&sum=29000 [18:00:28]StoreToDocumentArchive [18:00:28]shift 357 fd 112380 [18:00:28]save to /storage/0357/doc_00112380 [18:00:28]save last doc name /storage/0357/doc_00112380 to /storage/kkm_last_doc_name [18:00:28]save OK [18:00:28]Clear old archive folders... [18:00:28]OFD Sender: No OFD packet to send [18:00:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:00:28]tlvbuf is 001637F0 [18:00:28]SAM_PROTO_ClearQueue [18:00:28]wFMCommunicate request_size=4 [18:00:28]MH_SAM_APDU [18:00:28]CAPDU: 80 09 00 00 [18:00:28]Write to MH i2c: E2 08 00 9D 1D 80 09 00 00 00 00 00 00 2C [18:00:28]Write i2c OK [18:00:28]MH_I2C_Read... [18:00:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 9D 1D 00 90 00 2E [18:00:29]RAPDU: 90 00 [18:00:29]wFMCommunicate OK [18:00:29]SAM_PROTO_ClearQueue done [18:00:29]KKMCreateOFDPacket [18:00:29]OFDProtocolAddRootSTLVToBuf [18:00:29]FM_MakeSignedData [18:00:29]FM_MakeSignedData [18:00:29]SAM_PROTO_SignData [18:00:29]wFMCommunicate request_size=4 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 0D 01 02 [18:00:29]Write to MH i2c: E2 08 00 9E 1D 80 0D 01 02 00 00 00 00 34 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 9E 1D 00 90 00 2F [18:00:29]RAPDU: 90 00 [18:00:29]wFMCommunicate OK [18:00:29]wFMCommunicate request_size=255 [18:00:29]MH_SAM_APDU [18:00: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 A0 0F 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 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 01 00 00 F4 03 04 00 BC 19 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B6 01 00 35 04 06 00 1D [18:00:29]Write to MH i2c: E2 02 01 9F 1D 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 A0 0F 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 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 01 00 00 F4 03 04 00 BC 19 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B6 01 00 35 04 06 00 1D 00 00 43 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 9F 1D 00 90 00 30 [18:00:29]RAPDU: 90 00 [18:00:29]wFMCommunicate OK [18:00:29]wFMCommunicate request_size=10 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 0D 02 02 05 DC 7F A0 DE 8E [18:00:29]Write to MH i2c: E2 0D 00 A0 1D 80 0D 02 02 05 00 DC 7F A0 DE 8E 00 00 A8 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 03 00 A0 1D 00 90 00 31 [18:00:29]RAPDU: 90 00 [18:00:29]wFMCommunicate OK [18:00:29]wFMCommunicate request_size=4 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 0D 03 02 [18:00:29]Write to MH i2c: E2 08 00 A1 1D 80 0D 03 02 00 00 00 00 39 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 0B 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 0B 00 A1 1D 00 A0 A8 7A 77 AC 09 A1 1E 90 00 E7 [18:00:29]RAPDU: A0 A8 7A 77 AC 09 A1 1E 90 00 [18:00:29]wFMCommunicate OK [18:00:29]SAM_PROTO_SignData done [18:00:29]FM_MakeSignedData done [18:00:29]CreateOFDProtocolMessage [18:00:29]wFMCommunicate request_size=4 [18:00:29]MH_SAM_APDU [18:00:29]CAPDU: 80 11 00 00 [18:00:29]Write to MH i2c: E2 08 00 A2 1D 80 11 00 00 00 00 00 00 39 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:29]Read from MH i2c: E2 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 17 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: E2 17 00 A2 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8A [18:00:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:00:29]wFMCommunicate OK [18:00:29]CreateOFDProtocolMessage done [18:00:29]OFDSenderStorePacket 112380 [18:00:29]StoreOFDPacket docnum=112380 [18:00:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E1 6D 07 01 1B A4 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 A0 0F 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 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 01 00 00 F4 03 04 00 BC 19 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B6 01 00 35 04 06 00 1D DC 7F A0 DE 8E A0 A8 7A 77 AC 09 A1 1E [18:00:29]CheckFolder [18:00:29]dirname=/storage/ofd_packets [18:00:29]CheckFolder done [18:00:29]ProducePacketName [18:00:29]name=ofd_packets/00112380 [18:00:29]NVStorageSaveData ofd_packets/00112380 [18:00:29]File name is /storage/ofd_packets/00112380 [18:00:29]Write 301 bytes [18:00:29]NVStorageSaveData done [18:00:29]OFDSenderStorePacket done [18:00:29]KKMCreateOFDPacket done [18:00:29]NVStorageSaveData kkm_last_timestamp [18:00:29]File name is /storage/kkm_last_timestamp [18:00:29]Write 4 bytes [18:00:29]NVStorageSaveData done [18:00:29]ExternCall_PrintAddStr [18:00:29]wPrintStart [18:00:29]Write to MH i2c: 01 00 00 A3 1D C0 [18:00:29]Write i2c OK [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: 01 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: 01 07 00 [18:00:29]MH_I2C_Read... [18:00:29]Read from MH i2c: 01 07 00 A3 1D 00 00 00 00 00 FF 0F D5 [18:00:29]RasterBufferAndPrint [18:00:29]line Счет N : (1)48683 [18:00:29]line ИНН: 02508201610067 [18:00:29]line Контрольно-Кассовый Чек [18:00:29]line ПРОДАЖА [18:00:29]line ТРК (МРК, ГНК) : 12 [18:00:29]line Товар: 2710124500 [18:00:29]line Аи-95-К-5 [18:00:29]line 4.000 * 72.50 [18:00:29]line = 290.00 [18:00:29]line НДС 12% НСП 1% [18:00:29]line > о реализуемом товаре [18:00:29]line ИТОГО: 290.00 [18:00:29]line НСП 1% : 2.57 [18:00:29]line НДС 12% : 30.80 [18:00:29]line Наличными: 290.00 [18:00:29]line Безнал.: 0.00 [18:00:29]line Место: АЗС № 47 "Партнер Нефть" [18:00:29]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:00:29]line СНО: Общий режим [18:00:29]line Чек 279 14.04.2024 18:00 [18:00:29]line Смена: 357 ФФД: 1.0 [18:00:29]line ЗНМ: 0300000138 [18:00:29]line РНМ: 0000000000094237 [18:00:29]line Версия ККМ: 001 [18:00:29]line ФМ: 0000000000875019 [18:00:29]line ФД: 112380 [18:00:29]line ФПД: 32832871259790 [18:00:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T180028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112380&fm=32832871259790&tin=02508201610067®Number=0000000000094237&sum=29000 [18:00:29]OFD Sender: Processing packet 112380 [packets to send 71, broken 70] [18:00:29]ProducePacketName [18:00:29]name=ofd_packets/00112380 [18:00:29]OFD Sender: To server: pG, [18:00:29]CommunicateWithHost lk.salyk.kg:30040 [18:00:29]ConnectInit lk.salyk.kg [18:00:29]written 0, free lines is 4095 [18:00:30]Connected sock=10 [18:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E1 6D 07 01 1B A4 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 A0 0F 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 0C 00 00 00 00 07 04 06 00 48 71 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 01 00 00 F4 03 04 00 BC 19 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B6 01 00 35 04 06 00 1D DC 7F A0 DE 8E A0 A8 7A 77 AC 09 A1 1E [18:00:30]Write to MH i2c: 01 00 00 CB 1D E8 [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: 01 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: 01 07 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: 01 07 00 CB 1D 00 00 00 00 00 0A 0D 06 [18:00:30]RasterBufferAndPrint [18:00:30]line [18:00:30]line [18:00:30]line [18:00:30]line [18:00:30]line [18:00:30]written 0, free lines is 3344 [18:00:30]MH_Cut [18:00:30]Write to MH i2c: D1 01 00 D2 1D 01 C1 [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: D1 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: D1 01 00 [18:00:30]MH_I2C_Read... [18:00:30]Read from MH i2c: D1 01 00 D2 1D 00 C0 [18:00:30]Write to MH i2c: 01 00 00 D3 1D F0 [18:00:30]Write i2c OK [18:00:30]MH_I2C_Read... [18:00:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A9 67 47 00 A1 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FC B6 01 00 F4 03 04 00 47 C1 1B 66 B6 04 01 00 00 B8 16 33 39 47 79 EC 1A [18:00:30]CommunicateWithHost err = 0 [18:00:30]CheckOFDResponse [18:00:30]1017 (14) - 77093643461234 [18:00:30]1041 (16) - 0000000000875019 [18:00:30]1040 (4) - 112380 [18:00:30]1012 (4) - 14.04.2024 11:43 [18:00:30]1206 (1) - 0 [18:00:30]OFD Sender: Remove packet 112380 [18:00:30]ProducePacketName [18:00:30]name=ofd_packets/00112380 [18:00:30]NVStorageDeleteData [18:00:30]OFD Sender: No OFD packet to send [18:00:30]*** Cut start [18:00:30]*** Partial cut [18:00:30]*** CUTSNS_PIN = 1 [18:00:31]*** CUTSNS_PIN = 0 [18:00:31]*** Brake cut motor [18:00:31]Read from MH i2c: 01 [18:00:31]MH_I2C_Read... [18:00:31]*** Stop cut motor [18:00:31]*** Cut end [18:00:31]Read from MH i2c: 01 07 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: 01 07 00 D3 1D 00 00 00 00 00 FF 0F 05 [18:00:31]process_action close_receipt done [18:00:31]requested_data is exist [18:00:31]produce_requested_data [18:00:31]requested_item fm.sn is exist - process it [18:00:31]wFMCommunicate request_size=4 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 11 00 00 [18:00:31]Write to MH i2c: E2 08 00 D4 1D 80 11 00 00 00 00 00 00 6B [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 17 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 17 00 D4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BC [18:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:00:31]wFMCommunicate OK [18:00:31]requested_item fd.num is exist - process it [18:00:31]SAM_PROTO_GetFieldsCounters [18:00:31]wFMCommunicate request_size=4 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 13 00 00 [18:00:31]Write to MH i2c: E2 08 00 D5 1D 80 13 00 00 00 00 00 00 6E [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 62 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 62 00 D5 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [18:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FC B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:00:31]wFMCommunicate OK [18:00:31]SAM_PROTO_GetFieldsCounters done [18:00:31]requested_item shift.num is exist - process it [18:00:31]requested_item shift.opened is exist - process it [18:00:31]req_shift_opened [18:00:31]FM_GetShiftState [18:00:31]SAM_PROTO_GetShiftState [18:00:31]wFMCommunicate request_size=4 [18:00:31]MH_SAM_APDU [18:00:31]CAPDU: 80 13 01 00 [18:00:31]Write to MH i2c: E2 08 00 D6 1D 80 13 01 00 00 00 00 00 70 [18:00:31]Write i2c OK [18:00:31]MH_I2C_Read... [18:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:31]Read from MH i2c: E2 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 0E 00 [18:00:31]MH_I2C_Read... [18:00:31]Read from MH i2c: E2 0E 00 D6 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 08 [18:00:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:00:31]wFMCommunicate OK [18:00:31]SAM_PROTO_GetShiftState done [18:00:31]FM_GetShiftState done [18:00:31]req_shift_opened done [18:00:31]requested_item shift.open_date is exist - process it [18:00:31]req_shift_open_date [18:00:31]req_shift_open_date done [18:00:31]produce_requested_data done [18:00:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112380,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:00:31]process_action_free close_receipt [18:00:31]json_value_free [18:00:31]json_value_free done [18:00:31]process_json_proto returns [18:00:31]Send response to host [18:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112380,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:00:31]free response buf [18:00:31]execute_script done [18:00:31]execute_script returns [18:00:31]free content buf [18:00:31]Sock 9.Close socket [18:00:31]Sock 9.Thread stoped [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:51]OFD Sender: No OFD packet to send [18:03:56]OFD Sender: No OFD packet to send [18:04:01]OFD Sender: No OFD packet to send [18:04:06]OFD Sender: No OFD packet to send [18:04:11]OFD Sender: No OFD packet to send [18:04:16]OFD Sender: No OFD packet to send [18:04:21]OFD Sender: No OFD packet to send [18:04:26]OFD Sender: No OFD packet to send [18:04:31]OFD Sender: No OFD packet to send [18:04:36]OFD Sender: No OFD packet to send [18:04:41]OFD Sender: No OFD packet to send [18:04:46]OFD Sender: No OFD packet to send [18:04:51]OFD Sender: No OFD packet to send [18:04:56]OFD Sender: No OFD packet to send [18:05:01]OFD Sender: No OFD packet to send [18:05:06]OFD Sender: No OFD packet to send [18:05:11]OFD Sender: No OFD packet to send [18:05:16]OFD Sender: No OFD packet to send [18:05:21]OFD Sender: No OFD packet to send [18:05:26]OFD Sender: No OFD packet to send [18:05:31]OFD Sender: No OFD packet to send [18:05:36]OFD Sender: No OFD packet to send [18:05:41]OFD Sender: No OFD packet to send [18:05:46]OFD Sender: No OFD packet to send [18:05:51]OFD Sender: No OFD packet to send [18:05:56]OFD Sender: No OFD packet to send [18:06:01]OFD Sender: No OFD packet to send [18:06:06]OFD Sender: No OFD packet to send [18:06:11]OFD Sender: No OFD packet to send [18:06:16]OFD Sender: No OFD packet to send [18:06:21]OFD Sender: No OFD packet to send [18:06:26]OFD Sender: No OFD packet to send [18:06:31]OFD Sender: No OFD packet to send [18:06:36]OFD Sender: No OFD packet to send [18:06:41]OFD Sender: No OFD packet to send [18:06:46]OFD Sender: No OFD packet to send [18:06:51]OFD Sender: No OFD packet to send [18:06:56]OFD Sender: No OFD packet to send [18:07:01]OFD Sender: No OFD packet to send [18:07:06]OFD Sender: No OFD packet to send [18:07:11]OFD Sender: No OFD packet to send [18:07:16]OFD Sender: No OFD packet to send [18:07:21]OFD Sender: No OFD packet to send [18:07:26]OFD Sender: No OFD packet to send [18:07:31]OFD Sender: No OFD packet to send [18:07:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:48]recv_with_timeout no data received [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]OFD Sender: No OFD packet to send [18:08:16]OFD Sender: No OFD packet to send [18:08:21]OFD Sender: No OFD packet to send [18:08:26]OFD Sender: No OFD packet to send [18:08:31]OFD Sender: No OFD packet to send [18:08:36]OFD Sender: No OFD packet to send [18:08:41]OFD Sender: No OFD packet to send [18:08:46]OFD Sender: No OFD packet to send [18:08:51]OFD Sender: No OFD packet to send [18:08:56]OFD Sender: No OFD packet to send [18:09:01]OFD Sender: No OFD packet to send [18:09:06]OFD Sender: No OFD packet to send [18:09:11]OFD Sender: No OFD packet to send [18:09:16]OFD Sender: No OFD packet to send [18:09:21]OFD Sender: No OFD packet to send [18:09:26]OFD Sender: No OFD packet to send [18:09:31]OFD Sender: No OFD packet to send [18:09:36]OFD Sender: No OFD packet to send [18:09:41]OFD Sender: No OFD packet to send [18:09:46]OFD Sender: No OFD packet to send [18:09:51]OFD Sender: No OFD packet to send [18:09:56]OFD Sender: No OFD packet to send [18:10:01]OFD Sender: No OFD packet to send [18:10:06]OFD Sender: No OFD packet to send [18:10:11]OFD Sender: No OFD packet to send [18:10:16]OFD Sender: No OFD packet to send [18:10:21]OFD Sender: No OFD packet to send [18:10:26]OFD Sender: No OFD packet to send [18:10:31]OFD Sender: No OFD packet to send [18:10:36]OFD Sender: No OFD packet to send [18:10:41]OFD Sender: No OFD packet to send [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [18:12:46]OFD Sender: No OFD packet to send [18:12:51]OFD Sender: No OFD packet to send [18:12:56]OFD Sender: No OFD packet to send [18:13:01]OFD Sender: No OFD packet to send [18:13:06]OFD Sender: No OFD packet to send [18:13:11]OFD Sender: No OFD packet to send [18:13:16]OFD Sender: No OFD packet to send [18:13:21]OFD Sender: No OFD packet to send [18:13:26]OFD Sender: No OFD packet to send [18:13:31]OFD Sender: No OFD packet to send [18:13:36]OFD Sender: No OFD packet to send [18:13:41]OFD Sender: No OFD packet to send [18:13:46]OFD Sender: No OFD packet to send [18:13:51]OFD Sender: No OFD packet to send [18:13:56]OFD Sender: No OFD packet to send [18:14:01]OFD Sender: No OFD packet to send [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]accept exits with 8 [18:15:06]New connection [18:15:06]New thread 3066682724 created [18:15:06]Thread 3066826084 joined [18:15:06]Waiting for new connection... [18:15:06] Sock 8.Parse request [18:15:06]Sock 8.Check first char [18:15:06]Sock 8.First char is OK [18:15:06]request: POST /json_proto HTTP/1.0 [18:15:06]Method: POST [18:15:06]URL: /json_proto [18:15:06]Method is POST - this is cgi request [18:15:06]url: /json_proto [18:15:06]query_string will be loaded in cgi processing [18:15:06]execute_cgi json_proto POST (null) [18:15:06]execute_cgi path=json_proto method=POST [18:15:06]POST find Content-Length [18:15:06]Host: 172.17.96.197:8080 [18:15:06]Content-Length: 681 [18:15:06]Content-Type: application/json [18:15:06] [18:15:06]POST finish read [18:15:06]Found Content-Length = 681 [18:15:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48684", "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.30, "quantity" : 15.560, "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" ] } } [18:15:06]execute_script... [18:15: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)48684", "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.30, "quantity" : 15.560, "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" ] } } [18:15:06]POST & json_proto [18:15:06]process_json_proto [18:15:06]json parsed OK: [18:15:06]protocol is kg_v1.0 [18:15:06]action value=close_receipt [18:15:06]process_action close_receipt [18:15:06]cmd_close_receipt [18:15:06]MH_GetDate [18:15:06]Write to MH i2c: F0 00 00 D7 1D E3 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: F0 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: F0 09 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: F0 09 00 D7 1D 00 2B 1D 1C 66 E0 85 7F 64 FE [18:15:06]GetLastDocTimeStamp 1713117628 [18:15:06]current date 1713118507 [18:15:06]FM_GetShiftState [18:15:06]SAM_PROTO_GetShiftState [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 13 01 00 [18:15:06]Write to MH i2c: E2 08 00 D8 1D 80 13 01 00 00 00 00 00 72 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 0E 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 0E 00 D8 1D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0A [18:15:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:15:06]wFMCommunicate OK [18:15:06]SAM_PROTO_GetShiftState done [18:15:06]FM_GetShiftState done [18:15:06]opened in 1713054696 [18:15:06]opened+sec_in_day 1713141096 [18:15:06]quantity*price = 100050 [18:15:06]sum+1 = 100052 [18:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 280 14.04.2024 18:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112381 ФПД: 236354148074825 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T181507&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112381&fm=236354148074825&tin=02508201610067®Number=0000000000094237&sum=100000 [18:15:07]StoreToDocumentArchive [18:15:07]shift 357 fd 112381 [18:15:07]save to /storage/0357/doc_00112381 [18:15:07]save last doc name /storage/0357/doc_00112381 to /storage/kkm_last_doc_name [18:15:07]save OK [18:15:07]Clear old archive folders... [18:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:15:07]tlvbuf is 00163400 [18:15:07]SAM_PROTO_ClearQueue [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 09 00 00 [18:15:07]Write to MH i2c: E2 08 00 E5 1D 80 09 00 00 00 00 00 00 74 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 E5 1D 00 90 00 76 [18:15:07]RAPDU: 90 00 [18:15:07]wFMCommunicate OK [18:15:07]SAM_PROTO_ClearQueue done [18:15:07]KKMCreateOFDPacket [18:15:07]OFDProtocolAddRootSTLVToBuf [18:15:07]FM_MakeSignedData [18:15:07]FM_MakeSignedData [18:15:07]SAM_PROTO_SignData [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 0D 01 02 [18:15:07]Write to MH i2c: E2 08 00 E6 1D 80 0D 01 02 00 00 00 00 7C [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 E6 1D 00 90 00 77 [18:15:07]RAPDU: 90 00 [18:15:07]wFMCommunicate OK [18:15:07]wFMCommunicate request_size=255 [18:15:07]MH_SAM_APDU [18:15: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 18 01 00 00 F4 03 04 00 2B 1D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B6 01 00 35 04 06 00 D6 [18:15:07]Write to MH i2c: E2 02 01 E7 1D 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 3C 00 00 00 00 00 37 04 06 00 1E 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 18 01 00 00 F4 03 04 00 2B 1D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B6 01 00 35 04 06 00 D6 00 00 5C [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 E7 1D 00 90 00 78 [18:15:07]RAPDU: 90 00 [18:15:07]wFMCommunicate OK [18:15:07]wFMCommunicate request_size=10 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 0D 02 02 05 F6 7D 09 85 49 [18:15:07]Write to MH i2c: E2 0D 00 E8 1D 80 0D 02 02 05 00 F6 7D 09 85 49 00 00 D3 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 03 00 E8 1D 00 90 00 79 [18:15:07]RAPDU: 90 00 [18:15:07]wFMCommunicate OK [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 0D 03 02 [18:15:07]Write to MH i2c: E2 08 00 E9 1D 80 0D 03 02 00 00 00 00 81 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:07]Read from MH i2c: E2 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0B 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: E2 0B 00 E9 1D 00 E6 EE 78 C7 40 BB 8F B8 90 00 D7 [18:15:07]RAPDU: E6 EE 78 C7 40 BB 8F B8 90 00 [18:15:07]wFMCommunicate OK [18:15:07]SAM_PROTO_SignData done [18:15:07]FM_MakeSignedData done [18:15:07]CreateOFDProtocolMessage [18:15:07]wFMCommunicate request_size=4 [18:15:07]MH_SAM_APDU [18:15:07]CAPDU: 80 11 00 00 [18:15:07]Write to MH i2c: E2 08 00 EA 1D 80 11 00 00 00 00 00 00 81 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:08]Read from MH i2c: E2 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 17 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: E2 17 00 EA 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D2 [18:15:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:15:08]wFMCommunicate OK [18:15:08]CreateOFDProtocolMessage done [18:15:08]OFDSenderStorePacket 112381 [18:15:08]StoreOFDPacket docnum=112381 [18:15:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 68 69 07 01 4C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 18 01 00 00 F4 03 04 00 2B 1D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B6 01 00 35 04 06 00 D6 F6 7D 09 85 49 E6 EE 78 C7 40 BB 8F B8 [18:15:08]CheckFolder [18:15:08]dirname=/storage/ofd_packets [18:15:08]CheckFolder done [18:15:08]ProducePacketName [18:15:08]name=ofd_packets/00112381 [18:15:08]NVStorageSaveData ofd_packets/00112381 [18:15:08]File name is /storage/ofd_packets/00112381 [18:15:08]Write 301 bytes [18:15:08]NVStorageSaveData done [18:15:08]OFDSenderStorePacket done [18:15:08]KKMCreateOFDPacket done [18:15:08]NVStorageSaveData kkm_last_timestamp [18:15:08]File name is /storage/kkm_last_timestamp [18:15:08]Write 4 bytes [18:15:08]NVStorageSaveData done [18:15:08]ExternCall_PrintAddStr [18:15:08]wPrintStart [18:15:08]Write to MH i2c: 01 00 00 EB 1D 08 [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 07 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 07 00 EB 1D 00 00 00 00 00 FF 0F 1D [18:15:08]RasterBufferAndPrint [18:15:08]line Счет N : (1)48684 [18:15:08]line ИНН: 02508201610067 [18:15:08]line Контрольно-Кассовый Чек [18:15:08]line ПРОДАЖА [18:15:08]line ТРК (МРК, ГНК) : 32 [18:15:08]line Товар: 2710124130 [18:15:08]line Аи-92-К-5 [18:15:08]line 15.560 * 64.30 [18:15:08]line = 1000.51 [18:15:08]line НДС 12% НСП 1% [18:15:08]line > о реализуемом товаре [18:15:08]line ОКРУГЛЕНИЕ: -0.51 [18:15:08]line ИТОГО: 1000.00 [18:15:08]line Внесено: 1000.00 [18:15:08]line СДАЧА: 0.00 [18:15:08]line НСП 1% : 8.85 [18:15:08]line НДС 12% : 106.25 [18:15:08]line Наличными: 1000.00 [18:15:08]line Безнал.: 0.00 [18:15:08]line Место: АЗС № 47 "Партнер Нефть" [18:15:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:15:08]line СНО: Общий режим [18:15:08]line Чек 280 14.04.2024 18:15 [18:15:08]line Смена: 357 ФФД: 1.0 [18:15:08]line ЗНМ: 0300000138 [18:15:08]line РНМ: 0000000000094237 [18:15:08]line Версия ККМ: 001 [18:15:08]line ФМ: 0000000000875019 [18:15:08]line ФД: 112381 [18:15:08]line ФПД: 236354148074825 [18:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T181507&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112381&fm=236354148074825&tin=02508201610067®Number=0000000000094237&sum=100000 [18:15:08]OFD Sender: Processing packet 112381 [packets to send 71, broken 70] [18:15:08]ProducePacketName [18:15:08]name=ofd_packets/00112381 [18:15:08]OFD Sender: To server: pG, [18:15:08]CommunicateWithHost lk.salyk.kg:30040 [18:15:08]ConnectInit lk.salyk.kg [18:15:08]written 0, free lines is 4095 [18:15:08]Connected sock=10 [18:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 68 69 07 01 4C 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 18 01 00 00 F4 03 04 00 2B 1D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FD B6 01 00 35 04 06 00 D6 F6 7D 09 85 49 E6 EE 78 C7 40 BB 8F B8 [18:15:08]Write to MH i2c: 01 00 00 16 1E 34 [18:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 18 51 47 00 12 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 38 37 35 30 31 39 10 04 04 00 FD B6 01 00 F4 03 04 00 B6 C4 1B 66 B6 04 01 00 00 58 B0 3D 14 7F CF 1A 6D [18:15:08]CommunicateWithHost err = 0 [18:15:08]CheckOFDResponse [18:15:08]1017 (14) - 77093643461234 [18:15:08]1041 (16) - 0000000000875019 [18:15:08]1040 (4) - 112381 [18:15:08]1012 (4) - 14.04.2024 11:57 [18:15:08]1206 (1) - 0 [18:15:08]OFD Sender: Remove packet 112381 [18:15:08]ProducePacketName [18:15:08]name=ofd_packets/00112381 [18:15:08]NVStorageDeleteData [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 07 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: 01 07 00 16 1E 00 00 00 00 00 01 0D 49 [18:15:08]RasterBufferAndPrint [18:15:08]line [18:15:08]line [18:15:08]line [18:15:08]line [18:15:08]line [18:15:08]written 0, free lines is 3357 [18:15:08]MH_Cut [18:15:08]Write to MH i2c: D1 01 00 1D 1E 01 0D [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: D1 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: D1 01 00 [18:15:08]MH_I2C_Read... [18:15:08]Read from MH i2c: D1 01 00 1D 1E 00 0C [18:15:08]Write to MH i2c: 01 00 00 1E 1E 3C [18:15:08]Write i2c OK [18:15:08]MH_I2C_Read... [18:15:09]OFD Sender: No OFD packet to send [18:15:09]*** Cut start [18:15:09]*** Partial cut [18:15:09]*** CUTSNS_PIN = 1 [18:15:09]*** CUTSNS_PIN = 0 [18:15:09]*** Brake cut motor [18:15:10]Read from MH i2c: 01 [18:15:10]MH_I2C_Read... [18:15:10]*** Stop cut motor [18:15:10]*** Cut end [18:15:10]Read from MH i2c: 01 07 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: 01 07 00 1E 1E 00 00 00 00 00 FF 0F 51 [18:15:10]process_action close_receipt done [18:15:10]requested_data is exist [18:15:10]produce_requested_data [18:15:10]requested_item fm.sn is exist - process it [18:15:10]wFMCommunicate request_size=4 [18:15:10]MH_SAM_APDU [18:15:10]CAPDU: 80 11 00 00 [18:15:10]Write to MH i2c: E2 08 00 1F 1E 80 11 00 00 00 00 00 00 B7 [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:10]Read from MH i2c: E2 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 17 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 17 00 1F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 08 [18:15:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:15:10]wFMCommunicate OK [18:15:10]requested_item fd.num is exist - process it [18:15:10]SAM_PROTO_GetFieldsCounters [18:15:10]wFMCommunicate request_size=4 [18:15:10]MH_SAM_APDU [18:15:10]CAPDU: 80 13 00 00 [18:15:10]Write to MH i2c: E2 08 00 20 1E 80 13 00 00 00 00 00 00 BA [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:10]Read from MH i2c: E2 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 62 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 62 00 20 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FD B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:15:10]wFMCommunicate OK [18:15:10]SAM_PROTO_GetFieldsCounters done [18:15:10]requested_item shift.num is exist - process it [18:15:10]requested_item shift.opened is exist - process it [18:15:10]req_shift_opened [18:15:10]FM_GetShiftState [18:15:10]SAM_PROTO_GetShiftState [18:15:10]wFMCommunicate request_size=4 [18:15:10]MH_SAM_APDU [18:15:10]CAPDU: 80 13 01 00 [18:15:10]Write to MH i2c: E2 08 00 21 1E 80 13 01 00 00 00 00 00 BC [18:15:10]Write i2c OK [18:15:10]MH_I2C_Read... [18:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:10]Read from MH i2c: E2 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 0E 00 [18:15:10]MH_I2C_Read... [18:15:10]Read from MH i2c: E2 0E 00 21 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 54 [18:15:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:15:10]wFMCommunicate OK [18:15:10]SAM_PROTO_GetShiftState done [18:15:10]FM_GetShiftState done [18:15:10]req_shift_opened done [18:15:10]requested_item shift.open_date is exist - process it [18:15:10]req_shift_open_date [18:15:10]req_shift_open_date done [18:15:10]produce_requested_data done [18:15:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112381,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:15:10]process_action_free close_receipt [18:15:10]json_value_free [18:15:10]json_value_free done [18:15:10]process_json_proto returns [18:15:10]Send response to host [18:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112381,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:15:10]free response buf [18:15:10]execute_script done [18:15:10]execute_script returns [18:15:10]free content buf [18:15:10]Sock 8.Close socket [18:15:10]Sock 8.Thread stoped [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:44]OFD Sender: No OFD packet to send [18:18:49]OFD Sender: No OFD packet to send [18:18:54]OFD Sender: No OFD packet to send [18:18:59]OFD Sender: No OFD packet to send [18:19:04]OFD Sender: No OFD packet to send [18:19:09]OFD Sender: No OFD packet to send [18:19:14]OFD Sender: No OFD packet to send [18:19:19]OFD Sender: No OFD packet to send [18:19:24]OFD Sender: No OFD packet to send [18:19:29]OFD Sender: No OFD packet to send [18:19:34]OFD Sender: No OFD packet to send [18:19:39]OFD Sender: No OFD packet to send [18:19:44]OFD Sender: No OFD packet to send [18:19:49]OFD Sender: No OFD packet to send [18:19:54]OFD Sender: No OFD packet to send [18:19:59]OFD Sender: No OFD packet to send [18:20:04]OFD Sender: No OFD packet to send [18:20:09]OFD Sender: No OFD packet to send [18:20:14]OFD Sender: No OFD packet to send [18:20:19]OFD Sender: No OFD packet to send [18:20:24]OFD Sender: No OFD packet to send [18:20:29]OFD Sender: No OFD packet to send [18:20:34]OFD Sender: No OFD packet to send [18:20:39]OFD Sender: No OFD packet to send [18:20:44]OFD Sender: No OFD packet to send [18:20:49]OFD Sender: No OFD packet to send [18:20:54]OFD Sender: No OFD packet to send [18:20:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:14]OFD Sender: No OFD packet to send [18:21:19]OFD Sender: No OFD packet to send [18:21:24]OFD Sender: No OFD packet to send [18:21:29]OFD Sender: No OFD packet to send [18:21:34]OFD Sender: No OFD packet to send [18:21:39]OFD Sender: No OFD packet to send [18:21:44]OFD Sender: No OFD packet to send [18:21:49]OFD Sender: No OFD packet to send [18:21:54]OFD Sender: No OFD packet to send [18:21:59]OFD Sender: No OFD packet to send [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:44]OFD Sender: No OFD packet to send [18:22:49]OFD Sender: No OFD packet to send [18:22:54]OFD Sender: No OFD packet to send [18:22:59]OFD Sender: No OFD packet to send [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]OFD Sender: No OFD packet to send [18:24:29]OFD Sender: No OFD packet to send [18:24:34]OFD Sender: No OFD packet to send [18:24:39]OFD Sender: No OFD packet to send [18:24:44]OFD Sender: No OFD packet to send [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:48]accept exits with 9 [18:25:48]New connection [18:25:48]New thread 3066826084 created [18:25:48]Thread 3066682724 joined [18:25:48]Waiting for new connection... [18:25:48] Sock 9.Parse request [18:25:48]Sock 9.Check first char [18:25:48]Sock 9.First char is OK [18:25:48]request: POST /json_proto HTTP/1.0 [18:25:48]Method: POST [18:25:48]URL: /json_proto [18:25:48]Method is POST - this is cgi request [18:25:48]url: /json_proto [18:25:48]query_string will be loaded in cgi processing [18:25:48]execute_cgi json_proto POST (null) [18:25:48]execute_cgi path=json_proto method=POST [18:25:48]POST find Content-Length [18:25:48]Host: 172.17.96.197:8080 [18:25:48]Content-Length: 676 [18:25:48]Content-Type: application/json [18:25:48] [18:25:48]POST finish read [18:25:48]Found Content-Length = 676 [18:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48685", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [18:25:48]execute_script... [18:25: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)48685", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [18:25:48]POST & json_proto [18:25:48]process_json_proto [18:25:48]json parsed OK: [18:25:48]protocol is kg_v1.0 [18:25:48]action value=close_receipt [18:25:48]process_action close_receipt [18:25:48]cmd_close_receipt [18:25:48]MH_GetDate [18:25:48]Write to MH i2c: F0 00 00 22 1E 2F [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: F0 09 00 22 1E 00 AD 1F 1C 66 E0 85 7F 64 CE [18:25:48]GetLastDocTimeStamp 1713118507 [18:25:48]current date 1713119149 [18:25:48]FM_GetShiftState [18:25:48]SAM_PROTO_GetShiftState [18:25:48]wFMCommunicate request_size=4 [18:25:48]MH_SAM_APDU [18:25:48]CAPDU: 80 13 01 00 [18:25:48]Write to MH i2c: E2 08 00 23 1E 80 13 01 00 00 00 00 00 BE [18:25:48]Write i2c OK [18:25:48]MH_I2C_Read... [18:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:48]Read from MH i2c: E2 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 [18:25:48]MH_I2C_Read... [18:25:48]Read from MH i2c: E2 0E 00 23 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 56 [18:25:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:25:48]wFMCommunicate OK [18:25:48]SAM_PROTO_GetShiftState done [18:25:48]FM_GetShiftState done [18:25:48]opened in 1713054696 [18:25:48]opened+sec_in_day 1713141096 [18:25:48]quantity*price = 30028 [18:25:48]sum+1 = 30029 [18:25:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 281 14.04.2024 18:25 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112382 ФПД: 76306399087946 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182549&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112382&fm=76306399087946&tin=02508201610067®Number=0000000000094237&sum=30000 [18:25:49]StoreToDocumentArchive [18:25:49]shift 357 fd 112382 [18:25:49]save to /storage/0357/doc_00112382 [18:25:49]save last doc name /storage/0357/doc_00112382 to /storage/kkm_last_doc_name [18:25:49]save OK [18:25:49]Clear old archive folders... [18:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:25:49]tlvbuf is 0015FB20 [18:25:49]SAM_PROTO_ClearQueue [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 09 00 00 [18:25:49]Write to MH i2c: E2 08 00 30 1E 80 09 00 00 00 00 00 00 C0 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 30 1E 00 90 00 C2 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]SAM_PROTO_ClearQueue done [18:25:49]KKMCreateOFDPacket [18:25:49]OFDProtocolAddRootSTLVToBuf [18:25:49]FM_MakeSignedData [18:25:49]FM_MakeSignedData [18:25:49]SAM_PROTO_SignData [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 0D 01 02 [18:25:49]Write to MH i2c: E2 08 00 31 1E 80 0D 01 02 00 00 00 00 C8 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 31 1E 00 90 00 C3 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]wFMCommunicate request_size=255 [18:25:49]MH_SAM_APDU [18:25: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 01 00 00 F4 03 04 00 AD 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B6 01 00 35 04 06 00 45 [18:25:49]Write to MH i2c: E2 02 01 32 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 01 00 00 F4 03 04 00 AD 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B6 01 00 35 04 06 00 45 00 00 B6 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 32 1E 00 90 00 C4 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]wFMCommunicate request_size=10 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 0D 02 02 05 66 77 CF CD 4A [18:25:49]Write to MH i2c: E2 0D 00 33 1E 80 0D 02 02 05 00 66 77 CF CD 4A 00 00 98 [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:49]Read from MH i2c: E2 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 [18:25:49]MH_I2C_Read... [18:25:49]Read from MH i2c: E2 03 00 33 1E 00 90 00 C5 [18:25:49]RAPDU: 90 00 [18:25:49]wFMCommunicate OK [18:25:49]wFMCommunicate request_size=4 [18:25:49]MH_SAM_APDU [18:25:49]CAPDU: 80 0D 03 02 [18:25:49]Write to MH i2c: E2 08 00 34 1E 80 0D 03 02 00 00 00 00 CD [18:25:49]Write i2c OK [18:25:49]MH_I2C_Read... [18:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 0B 00 34 1E 00 FA 0E 78 76 8C EE 86 D2 90 00 96 [18:25:50]RAPDU: FA 0E 78 76 8C EE 86 D2 90 00 [18:25:50]wFMCommunicate OK [18:25:50]SAM_PROTO_SignData done [18:25:50]FM_MakeSignedData done [18:25:50]CreateOFDProtocolMessage [18:25:50]wFMCommunicate request_size=4 [18:25:50]MH_SAM_APDU [18:25:50]CAPDU: 80 11 00 00 [18:25:50]Write to MH i2c: E2 08 00 35 1E 80 11 00 00 00 00 00 00 CD [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]OFD Sender: No OFD packet to send [18:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:50]Read from MH i2c: E2 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: E2 17 00 35 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1E [18:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:25:50]wFMCommunicate OK [18:25:50]CreateOFDProtocolMessage done [18:25:50]OFDSenderStorePacket 112382 [18:25:50]StoreOFDPacket docnum=112382 [18:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 59 B3 07 01 33 78 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 01 00 00 F4 03 04 00 AD 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B6 01 00 35 04 06 00 45 66 77 CF CD 4A FA 0E 78 76 8C EE 86 D2 [18:25:50]CheckFolder [18:25:50]dirname=/storage/ofd_packets [18:25:50]CheckFolder done [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00112382 [18:25:50]NVStorageSaveData ofd_packets/00112382 [18:25:50]File name is /storage/ofd_packets/00112382 [18:25:50]Write 301 bytes [18:25:50]NVStorageSaveData done [18:25:50]OFDSenderStorePacket done [18:25:50]KKMCreateOFDPacket done [18:25:50]NVStorageSaveData kkm_last_timestamp [18:25:50]File name is /storage/kkm_last_timestamp [18:25:50]Write 4 bytes [18:25:50]NVStorageSaveData done [18:25:50]ExternCall_PrintAddStr [18:25:50]wPrintStart [18:25:50]Write to MH i2c: 01 00 00 36 1E 54 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 36 1E 00 00 00 00 00 FF 0F 69 [18:25:50]RasterBufferAndPrint [18:25:50]line Счет N : (1)48685 [18:25:50]line ИНН: 02508201610067 [18:25:50]line Контрольно-Кассовый Чек [18:25:50]line ПРОДАЖА [18:25:50]line ТРК (МРК, ГНК) : 42 [18:25:50]line Товар: 2710124130 [18:25:50]line Аи-92-К-5 [18:25:50]line 4.670 * 64.30 [18:25:50]line = 300.28 [18:25:50]line НДС 12% НСП 1% [18:25:50]line > о реализуемом товаре [18:25:50]line ОКРУГЛЕНИЕ: -0.28 [18:25:50]line ИТОГО: 300.00 [18:25:50]line Внесено: 300.00 [18:25:50]line СДАЧА: 0.00 [18:25:50]line НСП 1% : 2.66 [18:25:50]line НДС 12% : 31.89 [18:25:50]line Наличными: 300.00 [18:25:50]line Безнал.: 0.00 [18:25:50]line Место: АЗС № 47 "Партнер Нефть" [18:25:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:25:50]line СНО: Общий режим [18:25:50]line Чек 281 14.04.2024 18:25 [18:25:50]line Смена: 357 ФФД: 1.0 [18:25:50]line ЗНМ: 0300000138 [18:25:50]line РНМ: 0000000000094237 [18:25:50]line Версия ККМ: 001 [18:25:50]line ФМ: 0000000000875019 [18:25:50]line ФД: 112382 [18:25:50]line ФПД: 76306399087946 [18:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182549&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112382&fm=76306399087946&tin=02508201610067®Number=0000000000094237&sum=30000 [18:25:50]OFD Sender: Processing packet 112382 [packets to send 71, broken 70] [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00112382 [18:25:50]OFD Sender: To server: pG, [18:25:50]CommunicateWithHost lk.salyk.kg:30040 [18:25:50]ConnectInit lk.salyk.kg [18:25:50]written 0, free lines is 4095 [18:25:50]Connected sock=10 [18:25:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 59 B3 07 01 33 78 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 01 00 00 F4 03 04 00 AD 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B6 01 00 35 04 06 00 45 66 77 CF CD 4A FA 0E 78 76 8C EE 86 D2 [18:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 79 35 47 00 1D 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FE B6 01 00 F4 03 04 00 38 C7 1B 66 B6 04 01 00 00 73 A8 CD 51 FB EF 22 66 [18:25:50]CommunicateWithHost err = 0 [18:25:50]CheckOFDResponse [18:25:50]1017 (14) - 77093643461234 [18:25:50]1041 (16) - 0000000000875019 [18:25:50]1040 (4) - 112382 [18:25:50]1012 (4) - 14.04.2024 12:08 [18:25:50]1206 (1) - 0 [18:25:50]OFD Sender: Remove packet 112382 [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00112382 [18:25:50]NVStorageDeleteData [18:25:50]Write to MH i2c: 01 00 00 61 1E 7F [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: 01 07 00 61 1E 00 00 00 00 00 F3 0C 85 [18:25:50]RasterBufferAndPrint [18:25:50]line [18:25:50]line [18:25:50]line [18:25:50]line [18:25:50]line [18:25:50]written 0, free lines is 3321 [18:25:50]MH_Cut [18:25:50]Write to MH i2c: D1 01 00 68 1E 01 58 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: D1 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: D1 01 00 [18:25:50]MH_I2C_Read... [18:25:50]Read from MH i2c: D1 01 00 68 1E 00 57 [18:25:50]Write to MH i2c: 01 00 00 69 1E 87 [18:25:50]Write i2c OK [18:25:50]MH_I2C_Read... [18:25:51]OFD Sender: No OFD packet to send [18:25:51]*** Cut start [18:25:51]*** Partial cut [18:25:51]*** CUTSNS_PIN = 1 [18:25:51]*** CUTSNS_PIN = 0 [18:25:51]*** Brake cut motor [18:25:52]Read from MH i2c: 01 [18:25:52]MH_I2C_Read... [18:25:52]*** Stop cut motor [18:25:52]*** Cut end [18:25:52]Read from MH i2c: 01 07 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: 01 07 00 69 1E 00 00 00 00 00 FF 0F 9C [18:25:52]process_action close_receipt done [18:25:52]requested_data is exist [18:25:52]produce_requested_data [18:25:52]requested_item fm.sn is exist - process it [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 11 00 00 [18:25:52]Write to MH i2c: E2 08 00 6A 1E 80 11 00 00 00 00 00 00 02 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 17 00 6A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 53 [18:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:25:52]wFMCommunicate OK [18:25:52]requested_item fd.num is exist - process it [18:25:52]SAM_PROTO_GetFieldsCounters [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 00 00 [18:25:52]Write to MH i2c: E2 08 00 6B 1E 80 13 00 00 00 00 00 00 05 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 62 00 6B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FE B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetFieldsCounters done [18:25:52]requested_item shift.num is exist - process it [18:25:52]requested_item shift.opened is exist - process it [18:25:52]req_shift_opened [18:25:52]FM_GetShiftState [18:25:52]SAM_PROTO_GetShiftState [18:25:52]wFMCommunicate request_size=4 [18:25:52]MH_SAM_APDU [18:25:52]CAPDU: 80 13 01 00 [18:25:52]Write to MH i2c: E2 08 00 6C 1E 80 13 01 00 00 00 00 00 07 [18:25:52]Write i2c OK [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 [18:25:52]MH_I2C_Read... [18:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:52]Read from MH i2c: E2 0E 00 [18:25:52]MH_I2C_Read... [18:25:52]Read from MH i2c: E2 0E 00 6C 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9F [18:25:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:25:52]wFMCommunicate OK [18:25:52]SAM_PROTO_GetShiftState done [18:25:52]FM_GetShiftState done [18:25:52]req_shift_opened done [18:25:52]requested_item shift.open_date is exist - process it [18:25:52]req_shift_open_date [18:25:52]req_shift_open_date done [18:25:52]produce_requested_data done [18:25:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112382,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:25:52]process_action_free close_receipt [18:25:52]json_value_free [18:25:52]json_value_free done [18:25:52]process_json_proto returns [18:25:52]Send response to host [18:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112382,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:25:52]free response buf [18:25:52]execute_script done [18:25:52]execute_script returns [18:25:52]free content buf [18:25:52]Sock 9.Close socket [18:25:52]Sock 9.Thread stoped [18:25:56]OFD Sender: No OFD packet to send [18:26:01]OFD Sender: No OFD packet to send [18:26:06]OFD Sender: No OFD packet to send [18:26:11]OFD Sender: No OFD packet to send [18:26:16]OFD Sender: No OFD packet to send [18:26:21]OFD Sender: No OFD packet to send [18:26:26]OFD Sender: No OFD packet to send [18:26:31]OFD Sender: No OFD packet to send [18:26:36]OFD Sender: No OFD packet to send [18:26:41]OFD Sender: No OFD packet to send [18:26:43]accept exits with 8 [18:26:43]New connection [18:26:43]New thread 3066682724 created [18:26:43]Thread 3066826084 joined [18:26:43]Waiting for new connection... [18:26:43] Sock 8.Parse request [18:26:43]Sock 8.Check first char [18:26:43]Sock 8.First char is OK [18:26:43]request: POST /json_proto HTTP/1.0 [18:26:43]Method: POST [18:26:43]URL: /json_proto [18:26:43]Method is POST - this is cgi request [18:26:43]url: /json_proto [18:26:43]query_string will be loaded in cgi processing [18:26:43]execute_cgi json_proto POST (null) [18:26:43]execute_cgi path=json_proto method=POST [18:26:43]POST find Content-Length [18:26:43]Host: 172.17.96.197:8080 [18:26:43]Content-Length: 818 [18:26:43]Content-Type: application/json [18:26:43] [18:26:43]POST finish read [18:26:43]Found Content-Length = 818 [18:26:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48686", "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.30, "quantity" : 15.560, "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" ] } } [18:26:43]execute_script... [18:26:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48686", "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.30, "quantity" : 15.560, "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" ] } } [18:26:43]POST & json_proto [18:26:43]process_json_proto [18:26:43]json parsed OK: [18:26:43]protocol is kg_v1.0 [18:26:43]action value=close_receipt [18:26:43]process_action close_receipt [18:26:43]cmd_close_receipt [18:26:43]MH_GetDate [18:26:43]Write to MH i2c: F0 00 00 6D 1E 7A [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: F0 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: F0 09 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: F0 09 00 6D 1E 00 E4 1F 1C 66 E0 85 7F 64 50 [18:26:43]GetLastDocTimeStamp 1713119149 [18:26:43]current date 1713119204 [18:26:43]FM_GetShiftState [18:26:43]SAM_PROTO_GetShiftState [18:26:43]wFMCommunicate request_size=4 [18:26:43]MH_SAM_APDU [18:26:43]CAPDU: 80 13 01 00 [18:26:43]Write to MH i2c: E2 08 00 6E 1E 80 13 01 00 00 00 00 00 09 [18:26:43]Write i2c OK [18:26:43]MH_I2C_Read... [18:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:43]Read from MH i2c: E2 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 0E 00 [18:26:43]MH_I2C_Read... [18:26:43]Read from MH i2c: E2 0E 00 6E 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A1 [18:26:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:26:43]wFMCommunicate OK [18:26:43]SAM_PROTO_GetShiftState done [18:26:43]FM_GetShiftState done [18:26:43]opened in 1713054696 [18:26:43]opened+sec_in_day 1713141096 [18:26:43]quantity*price = 100050 [18:26:43]sum+1 = 100052 [18:26:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 282 14.04.2024 18:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112383 ФПД: 185546274363644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182644&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112383&fm=185546274363644&tin=02508201610067®Number=0000000000094237&sum=100051 [18:26:44]StoreToDocumentArchive [18:26:44]shift 357 fd 112383 [18:26:44]save to /storage/0357/doc_00112383 [18:26:44]save last doc name /storage/0357/doc_00112383 to /storage/kkm_last_doc_name [18:26:44]save OK [18:26:44]Clear old archive folders... [18:26:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:26:44]tlvbuf is 001C9B80 [18:26:44]SAM_PROTO_ClearQueue [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 09 00 00 [18:26:44]Write to MH i2c: E2 08 00 7B 1E 80 09 00 00 00 00 00 00 0B [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 7B 1E 00 90 00 0D [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_ClearQueue done [18:26:44]KKMCreateOFDPacket [18:26:44]OFDProtocolAddRootSTLVToBuf [18:26:44]FM_MakeSignedData [18:26:44]FM_MakeSignedData [18:26:44]SAM_PROTO_SignData [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 0D 01 02 [18:26:44]Write to MH i2c: E2 08 00 7C 1E 80 0D 01 02 00 00 00 00 13 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 7C 1E 00 90 00 0E [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]wFMCommunicate request_size=255 [18:26:44]MH_SAM_APDU [18:26: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1A 01 00 00 F4 03 04 00 E4 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B6 01 00 35 04 06 00 A8 [18:26:44]Write to MH i2c: E2 02 01 7D 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 1A 01 00 00 F4 03 04 00 E4 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B6 01 00 35 04 06 00 A8 00 00 EA [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 7D 1E 00 90 00 0F [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]wFMCommunicate request_size=10 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 0D 02 02 05 C0 DB C5 D8 FC [18:26:44]Write to MH i2c: E2 0D 00 7E 1E 80 0D 02 02 05 00 C0 DB C5 D8 FC 00 00 54 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 03 00 7E 1E 00 90 00 10 [18:26:44]RAPDU: 90 00 [18:26:44]wFMCommunicate OK [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 0D 03 02 [18:26:44]Write to MH i2c: E2 08 00 7F 1E 80 0D 03 02 00 00 00 00 18 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0B 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 0B 00 7F 1E 00 40 64 14 6E 80 CC E1 C7 90 00 33 [18:26:44]RAPDU: 40 64 14 6E 80 CC E1 C7 90 00 [18:26:44]wFMCommunicate OK [18:26:44]SAM_PROTO_SignData done [18:26:44]FM_MakeSignedData done [18:26:44]CreateOFDProtocolMessage [18:26:44]wFMCommunicate request_size=4 [18:26:44]MH_SAM_APDU [18:26:44]CAPDU: 80 11 00 00 [18:26:44]Write to MH i2c: E2 08 00 80 1E 80 11 00 00 00 00 00 00 18 [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:44]Read from MH i2c: E2 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 17 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: E2 17 00 80 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 69 [18:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:26:44]wFMCommunicate OK [18:26:44]CreateOFDProtocolMessage done [18:26:44]OFDSenderStorePacket 112383 [18:26:44]StoreOFDPacket docnum=112383 [18:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8F D7 07 01 C1 A8 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1A 01 00 00 F4 03 04 00 E4 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B6 01 00 35 04 06 00 A8 C0 DB C5 D8 FC 40 64 14 6E 80 CC E1 C7 [18:26:44]CheckFolder [18:26:44]dirname=/storage/ofd_packets [18:26:44]CheckFolder done [18:26:44]ProducePacketName [18:26:44]name=ofd_packets/00112383 [18:26:44]NVStorageSaveData ofd_packets/00112383 [18:26:44]File name is /storage/ofd_packets/00112383 [18:26:44]Write 301 bytes [18:26:44]NVStorageSaveData done [18:26:44]OFDSenderStorePacket done [18:26:44]KKMCreateOFDPacket done [18:26:44]NVStorageSaveData kkm_last_timestamp [18:26:44]File name is /storage/kkm_last_timestamp [18:26:44]Write 4 bytes [18:26:44]NVStorageSaveData done [18:26:44]ExternCall_PrintAddStr [18:26:44]wPrintStart [18:26:44]Write to MH i2c: 01 00 00 81 1E 9F [18:26:44]Write i2c OK [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 07 00 [18:26:44]MH_I2C_Read... [18:26:44]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 FF 0F B4 [18:26:44]RasterBufferAndPrint [18:26:44]line Счет N : (1)48686 [18:26:44]line ИНН: 02508201610067 [18:26:44]line Контрольно-Кассовый Чек [18:26:44]line ПРОДАЖА [18:26:44]line ТРК (МРК, ГНК) : 32 [18:26:44]line Товар: 2710124130 [18:26:44]line Аи-92-К-5 [18:26:44]line 15.560 * 64.30 [18:26:44]line = 1000.51 [18:26:44]line НДС 12% НСП 1% [18:26:44]line > о реализуемом товаре [18:26:44]line ИТОГО: 1000.51 [18:26:44]line НСП 1% : 8.85 [18:26:44]line НДС 12% : 106.25 [18:26:44]line Наличными: 0.00 [18:26:44]line Безнал.: 1000.51 [18:26:44]line Место: АЗС № 47 "Партнер Нефть" [18:26:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:26:44]line СНО: Общий режим [18:26:44]line Чек 282 14.04.2024 18:26 [18:26:44]line Смена: 357 ФФД: 1.0 [18:26:44]line ЗНМ: 0300000138 [18:26:44]line РНМ: 0000000000094237 [18:26:44]line Версия ККМ: 001 [18:26:44]line Платежная система: Бакай Банк [18:26:44]line ФМ: 0000000000875019 [18:26:44]line ФД: 112383 [18:26:44]line ФПД: 185546274363644 [18:26:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182644&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112383&fm=185546274363644&tin=02508201610067®Number=0000000000094237&sum=100051 [18:26:45]OFD Sender: Processing packet 112383 [packets to send 71, broken 70] [18:26:45]ProducePacketName [18:26:45]name=ofd_packets/00112383 [18:26:45]OFD Sender: To server: pG, [18:26:45]CommunicateWithHost lk.salyk.kg:30040 [18:26:45]ConnectInit lk.salyk.kg [18:26:45]written 0, free lines is 4095 [18:26:45]Connected sock=9 [18:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8F D7 07 01 C1 A8 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1A 01 00 00 F4 03 04 00 E4 1F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B6 01 00 35 04 06 00 A8 C0 DB C5 D8 FC 40 64 14 6E 80 CC E1 C7 [18:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4D 7C 47 00 5B 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 FF B6 01 00 F4 03 04 00 6F C7 1B 66 B6 04 01 00 00 4D 00 88 8D 76 40 CA 42 [18:26:45]CommunicateWithHost err = 0 [18:26:45]CheckOFDResponse [18:26:45]1017 (14) - 77093643461234 [18:26:45]1041 (16) - 0000000000875019 [18:26:45]1040 (4) - 112383 [18:26:45]1012 (4) - 14.04.2024 12:09 [18:26:45]1206 (1) - 0 [18:26:45]OFD Sender: Remove packet 112383 [18:26:45]ProducePacketName [18:26:45]name=ofd_packets/00112383 [18:26:45]NVStorageDeleteData [18:26:45]Write to MH i2c: 01 00 00 AB 1E C9 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 07 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: 01 07 00 AB 1E 00 00 00 00 00 05 0D E2 [18:26:45]RasterBufferAndPrint [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]line [18:26:45]written 0, free lines is 3339 [18:26:45]MH_Cut [18:26:45]Write to MH i2c: D1 01 00 B2 1E 01 A2 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 01 00 [18:26:45]MH_I2C_Read... [18:26:45]Read from MH i2c: D1 01 00 B2 1E 00 A1 [18:26:45]Write to MH i2c: 01 00 00 B3 1E D1 [18:26:45]Write i2c OK [18:26:45]MH_I2C_Read... [18:26:46]OFD Sender: No OFD packet to send [18:26:46]*** Cut start [18:26:46]*** Partial cut [18:26:46]*** CUTSNS_PIN = 1 [18:26:46]*** CUTSNS_PIN = 0 [18:26:46]*** Brake cut motor [18:26:47]Read from MH i2c: 01 [18:26:47]MH_I2C_Read... [18:26:47]*** Stop cut motor [18:26:47]*** Cut end [18:26:47]Read from MH i2c: 01 07 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: 01 07 00 B3 1E 00 00 00 00 00 FF 0F E6 [18:26:47]process_action close_receipt done [18:26:47]requested_data is exist [18:26:47]produce_requested_data [18:26:47]requested_item fm.sn is exist - process it [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 11 00 00 [18:26:47]Write to MH i2c: E2 08 00 B4 1E 80 11 00 00 00 00 00 00 4C [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 17 00 B4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9D [18:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:26:47]wFMCommunicate OK [18:26:47]requested_item fd.num is exist - process it [18:26:47]SAM_PROTO_GetFieldsCounters [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 13 00 00 [18:26:47]Write to MH i2c: E2 08 00 B5 1E 80 13 00 00 00 00 00 00 4F [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 62 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 62 00 B5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [18:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 FF B6 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:47]wFMCommunicate OK [18:26:47]SAM_PROTO_GetFieldsCounters done [18:26:47]requested_item shift.num is exist - process it [18:26:47]requested_item shift.opened is exist - process it [18:26:47]req_shift_opened [18:26:47]FM_GetShiftState [18:26:47]SAM_PROTO_GetShiftState [18:26:47]wFMCommunicate request_size=4 [18:26:47]MH_SAM_APDU [18:26:47]CAPDU: 80 13 01 00 [18:26:47]Write to MH i2c: E2 08 00 B6 1E 80 13 01 00 00 00 00 00 51 [18:26:47]Write i2c OK [18:26:47]MH_I2C_Read... [18:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:47]Read from MH i2c: E2 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0E 00 [18:26:47]MH_I2C_Read... [18:26:47]Read from MH i2c: E2 0E 00 B6 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E9 [18:26:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:26:47]wFMCommunicate OK [18:26:47]SAM_PROTO_GetShiftState done [18:26:47]FM_GetShiftState done [18:26:47]req_shift_opened done [18:26:47]requested_item shift.open_date is exist - process it [18:26:47]req_shift_open_date [18:26:47]req_shift_open_date done [18:26:47]produce_requested_data done [18:26:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112383,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:26:47]process_action_free close_receipt [18:26:47]json_value_free [18:26:47]json_value_free done [18:26:47]process_json_proto returns [18:26:47]Send response to host [18:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112383,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:26:47]free response buf [18:26:47]execute_script done [18:26:47]execute_script returns [18:26:47]free content buf [18:26:47]Sock 8.Close socket [18:26:47]Sock 8.Thread stoped [18:26:51]OFD Sender: No OFD packet to send [18:26:56]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:44]accept exits with 10 [18:27:44]New connection [18:27:44]New thread 3066826084 created [18:27:44]Thread 3066682724 joined [18:27:44]Waiting for new connection... [18:27:44] Sock 10.Parse request [18:27:44]Sock 10.Check first char [18:27:44]Sock 10.First char is OK [18:27:44]request: POST /json_proto HTTP/1.0 [18:27:44]Method: POST [18:27:44]URL: /json_proto [18:27:44]Method is POST - this is cgi request [18:27:44]url: /json_proto [18:27:44]query_string will be loaded in cgi processing [18:27:44]execute_cgi json_proto POST (null) [18:27:44]execute_cgi path=json_proto method=POST [18:27:44]POST find Content-Length [18:27:44]Host: 172.17.96.197:8080 [18:27:44]Content-Length: 681 [18:27:44]Content-Type: application/json [18:27:44] [18:27:44]POST finish read [18:27:44]Found Content-Length = 681 [18:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [18:27:44]execute_script... [18:27:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48687", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 31.110, "sum" : 2000.37, "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" ] } } [18:27:44]POST & json_proto [18:27:44]process_json_proto [18:27:44]json parsed OK: [18:27:44]protocol is kg_v1.0 [18:27:44]action value=close_receipt [18:27:44]process_action close_receipt [18:27:44]cmd_close_receipt [18:27:44]MH_GetDate [18:27:44]Write to MH i2c: F0 00 00 B7 1E C4 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: F0 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: F0 09 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: F0 09 00 B7 1E 00 21 20 1C 66 E0 85 7F 64 D8 [18:27:44]GetLastDocTimeStamp 1713119204 [18:27:44]current date 1713119265 [18:27:44]FM_GetShiftState [18:27:44]SAM_PROTO_GetShiftState [18:27:44]wFMCommunicate request_size=4 [18:27:44]MH_SAM_APDU [18:27:44]CAPDU: 80 13 01 00 [18:27:44]Write to MH i2c: E2 08 00 B8 1E 80 13 01 00 00 00 00 00 53 [18:27:44]Write i2c OK [18:27:44]MH_I2C_Read... [18:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:44]Read from MH i2c: E2 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 0E 00 [18:27:44]MH_I2C_Read... [18:27:44]Read from MH i2c: E2 0E 00 B8 1E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EB [18:27:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:27:44]wFMCommunicate OK [18:27:44]SAM_PROTO_GetShiftState done [18:27:44]FM_GetShiftState done [18:27:44]opened in 1713054696 [18:27:44]opened+sec_in_day 1713141096 [18:27:44]quantity*price = 200037 [18:27:44]sum+1 = 200038 [18:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 283 14.04.2024 18:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112384 ФПД: 69996792733316 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112384&fm=69996792733316&tin=02508201610067®Number=0000000000094237&sum=200000 [18:27:45]StoreToDocumentArchive [18:27:45]shift 357 fd 112384 [18:27:45]save to /storage/0357/doc_00112384 [18:27:45]save last doc name /storage/0357/doc_00112384 to /storage/kkm_last_doc_name [18:27:45]save OK [18:27:45]Clear old archive folders... [18:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:27:45]tlvbuf is 00184810 [18:27:45]SAM_PROTO_ClearQueue [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 09 00 00 [18:27:45]Write to MH i2c: E2 08 00 C5 1E 80 09 00 00 00 00 00 00 55 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 C5 1E 00 90 00 57 [18:27:45]RAPDU: 90 00 [18:27:45]wFMCommunicate OK [18:27:45]SAM_PROTO_ClearQueue done [18:27:45]KKMCreateOFDPacket [18:27:45]OFDProtocolAddRootSTLVToBuf [18:27:45]FM_MakeSignedData [18:27:45]FM_MakeSignedData [18:27:45]SAM_PROTO_SignData [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 0D 01 02 [18:27:45]Write to MH i2c: E2 08 00 C6 1E 80 0D 01 02 00 00 00 00 5D [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 C6 1E 00 90 00 58 [18:27:45]RAPDU: 90 00 [18:27:45]wFMCommunicate OK [18:27:45]wFMCommunicate request_size=255 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 1B 01 00 00 F4 03 04 00 21 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B7 01 00 35 04 06 00 3F [18:27:45]Write to MH i2c: E2 02 01 C7 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 1B 01 00 00 F4 03 04 00 21 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B7 01 00 35 04 06 00 3F 00 00 29 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 C7 1E 00 90 00 59 [18:27:45]RAPDU: 90 00 [18:27:45]wFMCommunicate OK [18:27:45]wFMCommunicate request_size=10 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 0D 02 02 05 A9 65 F7 5E 84 [18:27:45]Write to MH i2c: E2 0D 00 C8 1E 80 0D 02 02 05 00 A9 65 F7 5E 84 00 00 51 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 03 00 C8 1E 00 90 00 5A [18:27:45]RAPDU: 90 00 [18:27:45]wFMCommunicate OK [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 0D 03 02 [18:27:45]Write to MH i2c: E2 08 00 C9 1E 80 0D 03 02 00 00 00 00 62 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0B 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 0B 00 C9 1E 00 17 41 B2 AA DC 1D 1A AA 90 00 D4 [18:27:45]RAPDU: 17 41 B2 AA DC 1D 1A AA 90 00 [18:27:45]wFMCommunicate OK [18:27:45]SAM_PROTO_SignData done [18:27:45]FM_MakeSignedData done [18:27:45]CreateOFDProtocolMessage [18:27:45]wFMCommunicate request_size=4 [18:27:45]MH_SAM_APDU [18:27:45]CAPDU: 80 11 00 00 [18:27:45]Write to MH i2c: E2 08 00 CA 1E 80 11 00 00 00 00 00 00 62 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:45]Read from MH i2c: E2 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 17 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: E2 17 00 CA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B3 [18:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:27:45]wFMCommunicate OK [18:27:45]CreateOFDProtocolMessage done [18:27:45]OFDSenderStorePacket 112384 [18:27:45]StoreOFDPacket docnum=112384 [18:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0E 96 07 01 17 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 1B 01 00 00 F4 03 04 00 21 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B7 01 00 35 04 06 00 3F A9 65 F7 5E 84 17 41 B2 AA DC 1D 1A AA [18:27:45]CheckFolder [18:27:45]dirname=/storage/ofd_packets [18:27:45]CheckFolder done [18:27:45]ProducePacketName [18:27:45]name=ofd_packets/00112384 [18:27:45]NVStorageSaveData ofd_packets/00112384 [18:27:45]File name is /storage/ofd_packets/00112384 [18:27:45]Write 301 bytes [18:27:45]NVStorageSaveData done [18:27:45]OFDSenderStorePacket done [18:27:45]KKMCreateOFDPacket done [18:27:45]NVStorageSaveData kkm_last_timestamp [18:27:45]File name is /storage/kkm_last_timestamp [18:27:45]Write 4 bytes [18:27:45]NVStorageSaveData done [18:27:45]ExternCall_PrintAddStr [18:27:45]wPrintStart [18:27:45]Write to MH i2c: 01 00 00 CB 1E E9 [18:27:45]Write i2c OK [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 07 00 [18:27:45]MH_I2C_Read... [18:27:45]Read from MH i2c: 01 07 00 CB 1E 00 00 00 00 00 FF 0F FE [18:27:45]RasterBufferAndPrint [18:27:45]line Счет N : (1)48687 [18:27:45]line ИНН: 02508201610067 [18:27:45]line Контрольно-Кассовый Чек [18:27:45]line ПРОДАЖА [18:27:45]line ТРК (МРК, ГНК) : 21 [18:27:45]line Товар: 2710124130 [18:27:45]line Аи-92-К-5 [18:27:45]line 31.110 * 64.30 [18:27:45]line = 2000.37 [18:27:45]line НДС 12% НСП 1% [18:27:45]line > о реализуемом товаре [18:27:45]line ОКРУГЛЕНИЕ: -0.37 [18:27:45]line ИТОГО: 2000.00 [18:27:45]line Внесено: 2000.00 [18:27:45]line СДАЧА: 0.00 [18:27:45]line НСП 1% : 17.70 [18:27:45]line НДС 12% : 212.43 [18:27:45]line Наличными: 2000.00 [18:27:45]line Безнал.: 0.00 [18:27:45]line Место: АЗС № 47 "Партнер Нефть" [18:27:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:27:45]line СНО: Общий режим [18:27:45]line Чек 283 14.04.2024 18:27 [18:27:45]line Смена: 357 ФФД: 1.0 [18:27:45]line ЗНМ: 0300000138 [18:27:45]line РНМ: 0000000000094237 [18:27:45]line Версия ККМ: 001 [18:27:45]line ФМ: 0000000000875019 [18:27:45]line ФД: 112384 [18:27:45]line ФПД: 69996792733316 [18:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112384&fm=69996792733316&tin=02508201610067®Number=0000000000094237&sum=200000 [18:27:46]OFD Sender: Processing packet 112384 [packets to send 71, broken 70] [18:27:46]ProducePacketName [18:27:46]name=ofd_packets/00112384 [18:27:46]OFD Sender: To server: pG, [18:27:46]CommunicateWithHost lk.salyk.kg:30040 [18:27:46]ConnectInit lk.salyk.kg [18:27:46]written 0, free lines is 4095 [18:27:46]Connected sock=9 [18:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0E 96 07 01 17 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 86 79 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 65 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 1B 01 00 00 F4 03 04 00 21 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B7 01 00 35 04 06 00 3F A9 65 F7 5E 84 17 41 B2 AA DC 1D 1A AA [18:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 47 5B 47 00 14 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 B7 01 00 F4 03 04 00 AC C7 1B 66 B6 04 01 00 00 85 E7 1A 67 2B A7 9D A7 [18:27:46]CommunicateWithHost err = 0 [18:27:46]CheckOFDResponse [18:27:46]1017 (14) - 77093643461234 [18:27:46]1041 (16) - 0000000000875019 [18:27:46]1040 (4) - 112384 [18:27:46]1012 (4) - 14.04.2024 12:10 [18:27:46]1206 (1) - 0 [18:27:46]OFD Sender: Remove packet 112384 [18:27:46]ProducePacketName [18:27:46]name=ofd_packets/00112384 [18:27:46]NVStorageDeleteData [18:27:46]Write to MH i2c: 01 00 00 F6 1E 14 [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: 01 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: 01 07 00 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: 01 07 00 F6 1E 00 00 00 00 00 EE 0C 15 [18:27:46]RasterBufferAndPrint [18:27:46]line [18:27:46]line [18:27:46]line [18:27:46]line [18:27:46]line [18:27:46]written 0, free lines is 3316 [18:27:46]MH_Cut [18:27:46]Write to MH i2c: D1 01 00 FD 1E 01 ED [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: D1 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: D1 01 00 [18:27:46]MH_I2C_Read... [18:27:46]Read from MH i2c: D1 01 00 FD 1E 00 EC [18:27:46]Write to MH i2c: 01 00 00 FE 1E 1C [18:27:46]Write i2c OK [18:27:46]MH_I2C_Read... [18:27:47]OFD Sender: No OFD packet to send [18:27:47]*** Cut start [18:27:47]*** Partial cut [18:27:47]*** CUTSNS_PIN = 1 [18:27:47]*** CUTSNS_PIN = 0 [18:27:47]*** Brake cut motor [18:27:47]Read from MH i2c: 01 [18:27:47]MH_I2C_Read... [18:27:47]*** Stop cut motor [18:27:47]*** Cut end [18:27:47]Read from MH i2c: 01 07 00 [18:27:47]MH_I2C_Read... [18:27:47]Read from MH i2c: 01 07 00 FE 1E 00 00 00 00 00 FF 0F 31 [18:27:47]process_action close_receipt done [18:27:47]requested_data is exist [18:27:47]produce_requested_data [18:27:47]requested_item fm.sn is exist - process it [18:27:47]wFMCommunicate request_size=4 [18:27:47]MH_SAM_APDU [18:27:47]CAPDU: 80 11 00 00 [18:27:47]Write to MH i2c: E2 08 00 FF 1E 80 11 00 00 00 00 00 00 97 [18:27:47]Write i2c OK [18:27:47]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 17 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 17 00 FF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [18:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:27:48]wFMCommunicate OK [18:27:48]requested_item fd.num is exist - process it [18:27:48]SAM_PROTO_GetFieldsCounters [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 00 00 [18:27:48]Write to MH i2c: E2 08 00 00 1F 80 13 00 00 00 00 00 00 9B [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 62 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 62 00 00 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 00 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 00 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetFieldsCounters done [18:27:48]requested_item shift.num is exist - process it [18:27:48]requested_item shift.opened is exist - process it [18:27:48]req_shift_opened [18:27:48]FM_GetShiftState [18:27:48]SAM_PROTO_GetShiftState [18:27:48]wFMCommunicate request_size=4 [18:27:48]MH_SAM_APDU [18:27:48]CAPDU: 80 13 01 00 [18:27:48]Write to MH i2c: E2 08 00 01 1F 80 13 01 00 00 00 00 00 9D [18:27:48]Write i2c OK [18:27:48]MH_I2C_Read... [18:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:48]Read from MH i2c: E2 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 [18:27:48]MH_I2C_Read... [18:27:48]Read from MH i2c: E2 0E 00 01 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 35 [18:27:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:27:48]wFMCommunicate OK [18:27:48]SAM_PROTO_GetShiftState done [18:27:48]FM_GetShiftState done [18:27:48]req_shift_opened done [18:27:48]requested_item shift.open_date is exist - process it [18:27:48]req_shift_open_date [18:27:48]req_shift_open_date done [18:27:48]produce_requested_data done [18:27:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112384,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:27:48]process_action_free close_receipt [18:27:48]json_value_free [18:27:48]json_value_free done [18:27:48]process_json_proto returns [18:27:48]Send response to host [18:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112384,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:27:48]free response buf [18:27:48]execute_script done [18:27:48]execute_script returns [18:27:48]free content buf [18:27:48]Sock 10.Close socket [18:27:48]Sock 10.Thread stoped [18:27:52]OFD Sender: No OFD packet to send [18:27:57]OFD Sender: No OFD packet to send [18:28:02]OFD Sender: No OFD packet to send [18:28:07]OFD Sender: No OFD packet to send [18:28:12]OFD Sender: No OFD packet to send [18:28:15]accept exits with 8 [18:28:15]New connection [18:28:15]New thread 3066682724 created [18:28:15]Thread 3066826084 joined [18:28:15]Waiting for new connection... [18:28:15] Sock 8.Parse request [18:28:15]Sock 8.Check first char [18:28:15]Sock 8.First char is OK [18:28:15]request: POST /json_proto HTTP/1.0 [18:28:15]Method: POST [18:28:15]URL: /json_proto [18:28:15]Method is POST - this is cgi request [18:28:15]url: /json_proto [18:28:15]query_string will be loaded in cgi processing [18:28:15]execute_cgi json_proto POST (null) [18:28:15]execute_cgi path=json_proto method=POST [18:28:15]POST find Content-Length [18:28:15]Host: 172.17.96.197:8080 [18:28:15]Content-Length: 681 [18:28:15]Content-Type: application/json [18:28:15] [18:28:15]POST finish read [18:28:15]Found Content-Length = 681 [18:28:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48688", "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.30, "quantity" : 15.560, "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" ] } } [18:28:15]execute_script... [18:28: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)48688", "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.30, "quantity" : 15.560, "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" ] } } [18:28:15]POST & json_proto [18:28:15]process_json_proto [18:28:15]json parsed OK: [18:28:15]protocol is kg_v1.0 [18:28:15]action value=close_receipt [18:28:15]process_action close_receipt [18:28:15]cmd_close_receipt [18:28:15]MH_GetDate [18:28:15]Write to MH i2c: F0 00 00 02 1F 10 [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: F0 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: F0 09 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: F0 09 00 02 1F 00 41 20 1C 66 E0 85 7F 64 44 [18:28:15]GetLastDocTimeStamp 1713119265 [18:28:15]current date 1713119297 [18:28:15]FM_GetShiftState [18:28:15]SAM_PROTO_GetShiftState [18:28:15]wFMCommunicate request_size=4 [18:28:15]MH_SAM_APDU [18:28:15]CAPDU: 80 13 01 00 [18:28:15]Write to MH i2c: E2 08 00 03 1F 80 13 01 00 00 00 00 00 9F [18:28:15]Write i2c OK [18:28:15]MH_I2C_Read... [18:28:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:15]Read from MH i2c: E2 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 0E 00 [18:28:15]MH_I2C_Read... [18:28:15]Read from MH i2c: E2 0E 00 03 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 37 [18:28:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:28:15]wFMCommunicate OK [18:28:15]SAM_PROTO_GetShiftState done [18:28:15]FM_GetShiftState done [18:28:15]opened in 1713054696 [18:28:15]opened+sec_in_day 1713141096 [18:28:15]quantity*price = 100050 [18:28:15]sum+1 = 100052 [18:28:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 284 14.04.2024 18:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112385 ФПД: 236579418216349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182817&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112385&fm=236579418216349&tin=02508201610067®Number=0000000000094237&sum=100000 [18:28:16]StoreToDocumentArchive [18:28:16]shift 357 fd 112385 [18:28:16]save to /storage/0357/doc_00112385 [18:28:16]save last doc name /storage/0357/doc_00112385 to /storage/kkm_last_doc_name [18:28:16]save OK [18:28:16]Clear old archive folders... [18:28:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:16]tlvbuf is 00138A30 [18:28:16]SAM_PROTO_ClearQueue [18:28:16]wFMCommunicate request_size=4 [18:28:16]MH_SAM_APDU [18:28:16]CAPDU: 80 09 00 00 [18:28:16]Write to MH i2c: E2 08 00 10 1F 80 09 00 00 00 00 00 00 A1 [18:28:16]Write i2c OK [18:28:16]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:17]Read from MH i2c: E2 03 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 10 1F 00 90 00 A3 [18:28:17]RAPDU: 90 00 [18:28:17]wFMCommunicate OK [18:28:17]SAM_PROTO_ClearQueue done [18:28:17]KKMCreateOFDPacket [18:28:17]OFDProtocolAddRootSTLVToBuf [18:28:17]FM_MakeSignedData [18:28:17]FM_MakeSignedData [18:28:17]SAM_PROTO_SignData [18:28:17]wFMCommunicate request_size=4 [18:28:17]MH_SAM_APDU [18:28:17]CAPDU: 80 0D 01 02 [18:28:17]Write to MH i2c: E2 08 00 11 1F 80 0D 01 02 00 00 00 00 A9 [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 11 1F 00 90 00 A4 [18:28:17]RAPDU: 90 00 [18:28:17]wFMCommunicate OK [18:28:17]wFMCommunicate request_size=255 [18:28:17]MH_SAM_APDU [18:28:17]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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 01 00 00 F4 03 04 00 41 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B7 01 00 35 04 06 00 D7 [18:28:17]Write to MH i2c: E2 02 01 12 1F 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 01 00 00 F4 03 04 00 41 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B7 01 00 35 04 06 00 D7 00 00 AC [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]OFD Sender: No OFD packet to send [18:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 12 1F 00 90 00 A5 [18:28:17]RAPDU: 90 00 [18:28:17]wFMCommunicate OK [18:28:17]wFMCommunicate request_size=10 [18:28:17]MH_SAM_APDU [18:28:17]CAPDU: 80 0D 02 02 05 2A F0 2F 17 9D [18:28:17]Write to MH i2c: E2 0D 00 13 1F 80 0D 02 02 05 00 2A F0 2F 17 9D 00 00 B3 [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 03 00 13 1F 00 90 00 A6 [18:28:17]RAPDU: 90 00 [18:28:17]wFMCommunicate OK [18:28:17]wFMCommunicate request_size=4 [18:28:17]MH_SAM_APDU [18:28:17]CAPDU: 80 0D 03 02 [18:28:17]Write to MH i2c: E2 08 00 14 1F 80 0D 03 02 00 00 00 00 AE [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 0B 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 0B 00 14 1F 00 C9 EF 1F 71 A2 01 4E 45 90 00 2D [18:28:17]RAPDU: C9 EF 1F 71 A2 01 4E 45 90 00 [18:28:17]wFMCommunicate OK [18:28:17]SAM_PROTO_SignData done [18:28:17]FM_MakeSignedData done [18:28:17]CreateOFDProtocolMessage [18:28:17]wFMCommunicate request_size=4 [18:28:17]MH_SAM_APDU [18:28:17]CAPDU: 80 11 00 00 [18:28:17]Write to MH i2c: E2 08 00 15 1F 80 11 00 00 00 00 00 00 AE [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:17]Read from MH i2c: E2 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 17 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: E2 17 00 15 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FF [18:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:28:17]wFMCommunicate OK [18:28:17]CreateOFDProtocolMessage done [18:28:17]OFDSenderStorePacket 112385 [18:28:17]StoreOFDPacket docnum=112385 [18:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B9 9C 07 01 74 C9 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 01 00 00 F4 03 04 00 41 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B7 01 00 35 04 06 00 D7 2A F0 2F 17 9D C9 EF 1F 71 A2 01 4E 45 [18:28:17]CheckFolder [18:28:17]dirname=/storage/ofd_packets [18:28:17]CheckFolder done [18:28:17]ProducePacketName [18:28:17]name=ofd_packets/00112385 [18:28:17]NVStorageSaveData ofd_packets/00112385 [18:28:17]File name is /storage/ofd_packets/00112385 [18:28:17]Write 301 bytes [18:28:17]NVStorageSaveData done [18:28:17]OFDSenderStorePacket done [18:28:17]KKMCreateOFDPacket done [18:28:17]NVStorageSaveData kkm_last_timestamp [18:28:17]File name is /storage/kkm_last_timestamp [18:28:17]Write 4 bytes [18:28:17]NVStorageSaveData done [18:28:17]ExternCall_PrintAddStr [18:28:17]wPrintStart [18:28:17]Write to MH i2c: 01 00 00 16 1F 35 [18:28:17]Write i2c OK [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: 01 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: 01 07 00 [18:28:17]MH_I2C_Read... [18:28:17]Read from MH i2c: 01 07 00 16 1F 00 00 00 00 00 FF 0F 4A [18:28:17]RasterBufferAndPrint [18:28:17]line Счет N : (1)48688 [18:28:17]line ИНН: 02508201610067 [18:28:17]line Контрольно-Кассовый Чек [18:28:17]line ПРОДАЖА [18:28:17]line ТРК (МРК, ГНК) : 42 [18:28:17]line Товар: 2710124130 [18:28:17]line Аи-92-К-5 [18:28:17]line 15.560 * 64.30 [18:28:17]line = 1000.51 [18:28:17]line НДС 12% НСП 1% [18:28:17]line > о реализуемом товаре [18:28:17]line ОКРУГЛЕНИЕ: -0.51 [18:28:17]line ИТОГО: 1000.00 [18:28:17]line Внесено: 1000.00 [18:28:17]line СДАЧА: 0.00 [18:28:17]line НСП 1% : 8.85 [18:28:17]line НДС 12% : 106.25 [18:28:17]line Наличными: 1000.00 [18:28:17]line Безнал.: 0.00 [18:28:17]line Место: АЗС № 47 "Партнер Нефть" [18:28:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:28:17]line СНО: Общий режим [18:28:17]line Чек 284 14.04.2024 18:28 [18:28:17]line Смена: 357 ФФД: 1.0 [18:28:17]line ЗНМ: 0300000138 [18:28:17]line РНМ: 0000000000094237 [18:28:17]line Версия ККМ: 001 [18:28:17]line ФМ: 0000000000875019 [18:28:17]line ФД: 112385 [18:28:17]line ФПД: 236579418216349 [18:28:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182817&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112385&fm=236579418216349&tin=02508201610067®Number=0000000000094237&sum=100000 [18:28:17]OFD Sender: Processing packet 112385 [packets to send 71, broken 70] [18:28:17]ProducePacketName [18:28:17]name=ofd_packets/00112385 [18:28:17]OFD Sender: To server: pG, [18:28:17]CommunicateWithHost lk.salyk.kg:30040 [18:28:17]ConnectInit lk.salyk.kg [18:28:17]written 0, free lines is 4095 [18:28:17]Connected sock=10 [18:28:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B9 9C 07 01 74 C9 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 3C 00 00 00 00 00 37 04 06 00 1E 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 1C 01 00 00 F4 03 04 00 41 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B7 01 00 35 04 06 00 D7 2A F0 2F 17 9D C9 EF 1F 71 A2 01 4E 45 [18:28:18]Write to MH i2c: 01 00 00 41 1F 60 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: 01 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: 01 07 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: 01 07 00 41 1F 00 00 00 00 00 E9 0C 5C [18:28:18]RasterBufferAndPrint [18:28:18]line [18:28:18]line [18:28:18]line [18:28:18]line [18:28:18]line [18:28:18]written 0, free lines is 3311 [18:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3F B0 47 00 18 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 01 B7 01 00 F4 03 04 00 CB C7 1B 66 B6 04 01 00 00 B3 D6 61 72 48 4E ED 64 [18:28:18]CommunicateWithHost err = 0 [18:28:18]CheckOFDResponse [18:28:18]1017 (14) - 77093643461234 [18:28:18]1041 (16) - 0000000000875019 [18:28:18]1040 (4) - 112385 [18:28:18]1012 (4) - 14.04.2024 12:10 [18:28:18]1206 (1) - 0 [18:28:18]OFD Sender: Remove packet 112385 [18:28:18]ProducePacketName [18:28:18]name=ofd_packets/00112385 [18:28:18]NVStorageDeleteData [18:28:18]MH_Cut [18:28:18]Write to MH i2c: D1 01 00 48 1F 01 39 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: D1 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: D1 01 00 [18:28:18]MH_I2C_Read... [18:28:18]Read from MH i2c: D1 01 00 48 1F 00 38 [18:28:18]Write to MH i2c: 01 00 00 49 1F 68 [18:28:18]Write i2c OK [18:28:18]MH_I2C_Read... [18:28:18]OFD Sender: No OFD packet to send [18:28:19]*** Cut start [18:28:19]*** Partial cut [18:28:19]*** CUTSNS_PIN = 1 [18:28:19]*** CUTSNS_PIN = 0 [18:28:19]*** Brake cut motor [18:28:19]Read from MH i2c: 01 [18:28:19]MH_I2C_Read... [18:28:19]*** Stop cut motor [18:28:19]*** Cut end [18:28:19]Read from MH i2c: 01 07 00 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: 01 07 00 49 1F 00 00 00 00 00 FF 0F 7D [18:28:19]process_action close_receipt done [18:28:19]requested_data is exist [18:28:19]produce_requested_data [18:28:19]requested_item fm.sn is exist - process it [18:28:19]wFMCommunicate request_size=4 [18:28:19]MH_SAM_APDU [18:28:19]CAPDU: 80 11 00 00 [18:28:19]Write to MH i2c: E2 08 00 4A 1F 80 11 00 00 00 00 00 00 E3 [18:28:19]Write i2c OK [18:28:19]MH_I2C_Read... [18:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:19]Read from MH i2c: E2 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 17 00 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 17 00 4A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 34 [18:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:28:19]wFMCommunicate OK [18:28:19]requested_item fd.num is exist - process it [18:28:19]SAM_PROTO_GetFieldsCounters [18:28:19]wFMCommunicate request_size=4 [18:28:19]MH_SAM_APDU [18:28:19]CAPDU: 80 13 00 00 [18:28:19]Write to MH i2c: E2 08 00 4B 1F 80 13 00 00 00 00 00 00 E6 [18:28:19]Write i2c OK [18:28:19]MH_I2C_Read... [18:28:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:19]Read from MH i2c: E2 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 62 00 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 62 00 4B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 01 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [18:28:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 01 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:19]wFMCommunicate OK [18:28:19]SAM_PROTO_GetFieldsCounters done [18:28:19]requested_item shift.num is exist - process it [18:28:19]requested_item shift.opened is exist - process it [18:28:19]req_shift_opened [18:28:19]FM_GetShiftState [18:28:19]SAM_PROTO_GetShiftState [18:28:19]wFMCommunicate request_size=4 [18:28:19]MH_SAM_APDU [18:28:19]CAPDU: 80 13 01 00 [18:28:19]Write to MH i2c: E2 08 00 4C 1F 80 13 01 00 00 00 00 00 E8 [18:28:19]Write i2c OK [18:28:19]MH_I2C_Read... [18:28:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:19]Read from MH i2c: E2 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 0E 00 [18:28:19]MH_I2C_Read... [18:28:19]Read from MH i2c: E2 0E 00 4C 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 80 [18:28:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:28:19]wFMCommunicate OK [18:28:19]SAM_PROTO_GetShiftState done [18:28:19]FM_GetShiftState done [18:28:19]req_shift_opened done [18:28:19]requested_item shift.open_date is exist - process it [18:28:19]req_shift_open_date [18:28:19]req_shift_open_date done [18:28:19]produce_requested_data done [18:28:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112385,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:28:19]process_action_free close_receipt [18:28:19]json_value_free [18:28:19]json_value_free done [18:28:19]process_json_proto returns [18:28:19]Send response to host [18:28:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112385,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:28:19]free response buf [18:28:19]execute_script done [18:28:19]execute_script returns [18:28:19]free content buf [18:28:19]Sock 8.Close socket [18:28:19]Sock 8.Thread stoped [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:39]accept exits with 9 [18:29:39]New connection [18:29:39]New thread 3066826084 created [18:29:39]Thread 3066682724 joined [18:29:39]Waiting for new connection... [18:29:39] Sock 9.Parse request [18:29:39]Sock 9.Check first char [18:29:39]Sock 9.First char is OK [18:29:39]request: POST /json_proto HTTP/1.0 [18:29:39]Method: POST [18:29:39]URL: /json_proto [18:29:39]Method is POST - this is cgi request [18:29:39]url: /json_proto [18:29:39]query_string will be loaded in cgi processing [18:29:39]execute_cgi json_proto POST (null) [18:29:39]execute_cgi path=json_proto method=POST [18:29:39]POST find Content-Length [18:29:39]Host: 172.17.96.197:8080 [18:29:39]Content-Length: 674 [18:29:39]Content-Type: application/json [18:29:39] [18:29:39]POST finish read [18:29:39]Found Content-Length = 674 [18:29:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [18:29:39]execute_script... [18:29: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)48689", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [18:29:39]POST & json_proto [18:29:39]process_json_proto [18:29:39]json parsed OK: [18:29:39]protocol is kg_v1.0 [18:29:39]action value=close_receipt [18:29:39]process_action close_receipt [18:29:39]cmd_close_receipt [18:29:39]MH_GetDate [18:29:39]Write to MH i2c: F0 00 00 4D 1F 5B [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 09 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: F0 09 00 4D 1F 00 94 20 1C 66 E0 85 7F 64 E2 [18:29:39]GetLastDocTimeStamp 1713119297 [18:29:39]current date 1713119380 [18:29:39]FM_GetShiftState [18:29:39]SAM_PROTO_GetShiftState [18:29:39]wFMCommunicate request_size=4 [18:29:39]MH_SAM_APDU [18:29:39]CAPDU: 80 13 01 00 [18:29:39]Write to MH i2c: E2 08 00 4E 1F 80 13 01 00 00 00 00 00 EA [18:29:39]Write i2c OK [18:29:39]MH_I2C_Read... [18:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:39]Read from MH i2c: E2 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 0E 00 [18:29:39]MH_I2C_Read... [18:29:39]Read from MH i2c: E2 0E 00 4E 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 82 [18:29:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:29:39]wFMCommunicate OK [18:29:39]SAM_PROTO_GetShiftState done [18:29:39]FM_GetShiftState done [18:29:39]opened in 1713054696 [18:29:39]opened+sec_in_day 1713141096 [18:29:39]quantity*price = 100039 [18:29:39]sum+1 = 100041 [18:29:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 285 14.04.2024 18:29 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112386 ФПД: 174753307736454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182940&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112386&fm=174753307736454&tin=02508201610067®Number=0000000000094237&sum=100000 [18:29:40]StoreToDocumentArchive [18:29:40]shift 357 fd 112386 [18:29:40]save to /storage/0357/doc_00112386 [18:29:40]save last doc name /storage/0357/doc_00112386 to /storage/kkm_last_doc_name [18:29:40]save OK [18:29:40]Clear old archive folders... [18:29:40]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:29:40]tlvbuf is 00138600 [18:29:40]SAM_PROTO_ClearQueue [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 09 00 00 [18:29:40]Write to MH i2c: E2 08 00 5B 1F 80 09 00 00 00 00 00 00 EC [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5B 1F 00 90 00 EE [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_ClearQueue done [18:29:40]KKMCreateOFDPacket [18:29:40]OFDProtocolAddRootSTLVToBuf [18:29:40]FM_MakeSignedData [18:29:40]FM_MakeSignedData [18:29:40]SAM_PROTO_SignData [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 01 02 [18:29:40]Write to MH i2c: E2 08 00 5C 1F 80 0D 01 02 00 00 00 00 F4 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5C 1F 00 90 00 EF [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=255 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 1D 01 00 00 F4 03 04 00 94 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B7 01 00 35 04 06 00 [18:29:40]Write to MH i2c: E2 02 01 5D 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 1D 01 00 00 F4 03 04 00 94 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B7 01 00 35 04 06 00 00 00 79 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5D 1F 00 90 00 F0 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=11 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 02 02 06 9E EF EC D4 B9 86 [18:29:40]Write to MH i2c: E2 0E 00 5E 1F 80 0D 02 02 06 00 9E EF EC D4 B9 86 00 00 8F [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 03 00 5E 1F 00 90 00 F1 [18:29:40]RAPDU: 90 00 [18:29:40]wFMCommunicate OK [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 0D 03 02 [18:29:40]Write to MH i2c: E2 08 00 5F 1F 80 0D 03 02 00 00 00 00 F9 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 0B 00 5F 1F 00 A1 AE 66 58 8A 48 9F CD 90 00 45 [18:29:40]RAPDU: A1 AE 66 58 8A 48 9F CD 90 00 [18:29:40]wFMCommunicate OK [18:29:40]SAM_PROTO_SignData done [18:29:40]FM_MakeSignedData done [18:29:40]CreateOFDProtocolMessage [18:29:40]wFMCommunicate request_size=4 [18:29:40]MH_SAM_APDU [18:29:40]CAPDU: 80 11 00 00 [18:29:40]Write to MH i2c: E2 08 00 60 1F 80 11 00 00 00 00 00 00 F9 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:40]Read from MH i2c: E2 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: E2 17 00 60 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4A [18:29:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:29:40]wFMCommunicate OK [18:29:40]CreateOFDProtocolMessage done [18:29:40]OFDSenderStorePacket 112386 [18:29:40]StoreOFDPacket docnum=112386 [18:29:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 22 F0 08 01 E3 61 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 1D 01 00 00 F4 03 04 00 94 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B7 01 00 35 04 06 00 9E EF EC D4 B9 86 A1 AE 66 58 8A 48 9F CD [18:29:40]CheckFolder [18:29:40]dirname=/storage/ofd_packets [18:29:40]CheckFolder done [18:29:40]ProducePacketName [18:29:40]name=ofd_packets/00112386 [18:29:40]NVStorageSaveData ofd_packets/00112386 [18:29:40]File name is /storage/ofd_packets/00112386 [18:29:40]Write 302 bytes [18:29:40]NVStorageSaveData done [18:29:40]OFDSenderStorePacket done [18:29:40]KKMCreateOFDPacket done [18:29:40]NVStorageSaveData kkm_last_timestamp [18:29:40]File name is /storage/kkm_last_timestamp [18:29:40]Write 4 bytes [18:29:40]NVStorageSaveData done [18:29:40]ExternCall_PrintAddStr [18:29:40]wPrintStart [18:29:40]Write to MH i2c: 01 00 00 61 1F 80 [18:29:40]Write i2c OK [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 [18:29:40]MH_I2C_Read... [18:29:40]Read from MH i2c: 01 07 00 61 1F 00 00 00 00 00 FF 0F 95 [18:29:40]RasterBufferAndPrint [18:29:40]line Счет N : (1)48689 [18:29:40]line ИНН: 02508201610067 [18:29:40]line Контрольно-Кассовый Чек [18:29:40]line ПРОДАЖА [18:29:40]line ТРК (МРК, ГНК) : 52 [18:29:40]line Товар: 2710124130 [18:29:40]line SUPER 92-К-5 [18:29:40]line 15.320 * 65.30 [18:29:40]line = 1000.40 [18:29:40]line НДС 12% НСП 1% [18:29:40]line > о реализуемом товаре [18:29:40]line ОКРУГЛЕНИЕ: -0.40 [18:29:40]line ИТОГО: 1000.00 [18:29:40]line Внесено: 1000.00 [18:29:40]line СДАЧА: 0.00 [18:29:40]line НСП 1% : 8.85 [18:29:40]line НДС 12% : 106.24 [18:29:40]line Наличными: 1000.00 [18:29:40]line Безнал.: 0.00 [18:29:40]line Место: АЗС № 47 "Партнер Нефть" [18:29:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:29:40]line СНО: Общий режим [18:29:40]line Чек 285 14.04.2024 18:29 [18:29:40]line Смена: 357 ФФД: 1.0 [18:29:40]line ЗНМ: 0300000138 [18:29:40]line РНМ: 0000000000094237 [18:29:40]line Версия ККМ: 001 [18:29:40]line ФМ: 0000000000875019 [18:29:40]line ФД: 112386 [18:29:40]line ФПД: 174753307736454 [18:29:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T182940&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112386&fm=174753307736454&tin=02508201610067®Number=0000000000094237&sum=100000 [18:29:41]OFD Sender: Processing packet 112386 [packets to send 71, broken 70] [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00112386 [18:29:41]OFD Sender: To server: pG, [18:29:41]CommunicateWithHost lk.salyk.kg:30040 [18:29:41]ConnectInit lk.salyk.kg [18:29:41]written 0, free lines is 4095 [18:29:41]Connected sock=10 [18:29:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 22 F0 08 01 E3 61 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 1D 01 00 00 F4 03 04 00 94 20 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B7 01 00 35 04 06 00 9E EF EC D4 B9 86 A1 AE 66 58 8A 48 9F CD [18:29:41]Write to MH i2c: 01 00 00 8C 1F AB [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: 01 07 00 8C 1F 00 00 00 00 00 E9 0C A7 [18:29:41]RasterBufferAndPrint [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]line [18:29:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0C 64 47 00 5C E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 02 B7 01 00 F4 03 04 00 1F C8 1B 66 B6 04 01 00 00 B0 26 BD 4D 61 8B 45 45 [18:29:41]CommunicateWithHost err = 0 [18:29:41]CheckOFDResponse [18:29:41]1017 (14) - 77093643461234 [18:29:41]1041 (16) - 0000000000875019 [18:29:41]1040 (4) - 112386 [18:29:41]1012 (4) - 14.04.2024 12:12 [18:29:41]1206 (1) - 0 [18:29:41]OFD Sender: Remove packet 112386 [18:29:41]ProducePacketName [18:29:41]name=ofd_packets/00112386 [18:29:41]NVStorageDeleteData [18:29:41]written 0, free lines is 3311 [18:29:41]MH_Cut [18:29:41]Write to MH i2c: D1 01 00 93 1F 01 84 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 [18:29:41]MH_I2C_Read... [18:29:41]Read from MH i2c: D1 01 00 93 1F 00 83 [18:29:41]Write to MH i2c: 01 00 00 94 1F B3 [18:29:41]Write i2c OK [18:29:41]MH_I2C_Read... [18:29:42]OFD Sender: No OFD packet to send [18:29:42]*** Cut start [18:29:42]*** Partial cut [18:29:42]*** CUTSNS_PIN = 1 [18:29:42]*** CUTSNS_PIN = 0 [18:29:42]*** Brake cut motor [18:29:43]Read from MH i2c: 01 [18:29:43]MH_I2C_Read... [18:29:43]*** Stop cut motor [18:29:43]*** Cut end [18:29:43]Read from MH i2c: 01 07 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: 01 07 00 94 1F 00 00 00 00 00 FF 0F C8 [18:29:43]process_action close_receipt done [18:29:43]requested_data is exist [18:29:43]produce_requested_data [18:29:43]requested_item fm.sn is exist - process it [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 11 00 00 [18:29:43]Write to MH i2c: E2 08 00 95 1F 80 11 00 00 00 00 00 00 2E [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 17 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 17 00 95 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7F [18:29:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:29:43]wFMCommunicate OK [18:29:43]requested_item fd.num is exist - process it [18:29:43]SAM_PROTO_GetFieldsCounters [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 13 00 00 [18:29:43]Write to MH i2c: E2 08 00 96 1F 80 13 00 00 00 00 00 00 31 [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 62 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 62 00 96 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 02 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [18:29:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 02 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:29:43]wFMCommunicate OK [18:29:43]SAM_PROTO_GetFieldsCounters done [18:29:43]requested_item shift.num is exist - process it [18:29:43]requested_item shift.opened is exist - process it [18:29:43]req_shift_opened [18:29:43]FM_GetShiftState [18:29:43]SAM_PROTO_GetShiftState [18:29:43]wFMCommunicate request_size=4 [18:29:43]MH_SAM_APDU [18:29:43]CAPDU: 80 13 01 00 [18:29:43]Write to MH i2c: E2 08 00 97 1F 80 13 01 00 00 00 00 00 33 [18:29:43]Write i2c OK [18:29:43]MH_I2C_Read... [18:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:29:43]Read from MH i2c: E2 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 0E 00 [18:29:43]MH_I2C_Read... [18:29:43]Read from MH i2c: E2 0E 00 97 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [18:29:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:29:43]wFMCommunicate OK [18:29:43]SAM_PROTO_GetShiftState done [18:29:43]FM_GetShiftState done [18:29:43]req_shift_opened done [18:29:43]requested_item shift.open_date is exist - process it [18:29:43]req_shift_open_date [18:29:43]req_shift_open_date done [18:29:43]produce_requested_data done [18:29:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112386,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:29:43]process_action_free close_receipt [18:29:43]json_value_free [18:29:43]json_value_free done [18:29:43]process_json_proto returns [18:29:43]Send response to host [18:29:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112386,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:29:43]free response buf [18:29:43]execute_script done [18:29:43]execute_script returns [18:29:43]free content buf [18:29:43]Sock 9.Close socket [18:29:43]Sock 9.Thread stoped [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:37]OFD Sender: No OFD packet to send [18:31:42]OFD Sender: No OFD packet to send [18:31:47]OFD Sender: No OFD packet to send [18:31:52]OFD Sender: No OFD packet to send [18:31:57]OFD Sender: No OFD packet to send [18:32:02]OFD Sender: No OFD packet to send [18:32:07]OFD Sender: No OFD packet to send [18:32:12]OFD Sender: No OFD packet to send [18:32:17]OFD Sender: No OFD packet to send [18:32:22]OFD Sender: No OFD packet to send [18:32:27]OFD Sender: No OFD packet to send [18:32:32]OFD Sender: No OFD packet to send [18:32:37]OFD Sender: No OFD packet to send [18:32:42]OFD Sender: No OFD packet to send [18:32:47]OFD Sender: No OFD packet to send [18:32:52]OFD Sender: No OFD packet to send [18:32:57]OFD Sender: No OFD packet to send [18:33:02]OFD Sender: No OFD packet to send [18:33:07]OFD Sender: No OFD packet to send [18:33:12]OFD Sender: No OFD packet to send [18:33:17]OFD Sender: No OFD packet to send [18:33:22]OFD Sender: No OFD packet to send [18:33:27]OFD Sender: No OFD packet to send [18:33:32]OFD Sender: No OFD packet to send [18:33:37]OFD Sender: No OFD packet to send [18:33:42]OFD Sender: No OFD packet to send [18:33:47]OFD Sender: No OFD packet to send [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:57]OFD Sender: No OFD packet to send [18:35:02]OFD Sender: No OFD packet to send [18:35:07]OFD Sender: No OFD packet to send [18:35:12]OFD Sender: No OFD packet to send [18:35:17]OFD Sender: No OFD packet to send [18:35:22]OFD Sender: No OFD packet to send [18:35:27]OFD Sender: No OFD packet to send [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:57]OFD Sender: No OFD packet to send [18:36:02]OFD Sender: No OFD packet to send [18:36:07]OFD Sender: No OFD packet to send [18:36:09]accept exits with 8 [18:36:09]New connection [18:36:09]New thread 3066682724 created [18:36:09]Thread 3066826084 joined [18:36:09]Waiting for new connection... [18:36:09] Sock 8.Parse request [18:36:09]Sock 8.Check first char [18:36:09]Sock 8.First char is OK [18:36:09]request: POST /json_proto HTTP/1.0 [18:36:09]Method: POST [18:36:09]URL: /json_proto [18:36:09]Method is POST - this is cgi request [18:36:09]url: /json_proto [18:36:09]query_string will be loaded in cgi processing [18:36:09]execute_cgi json_proto POST (null) [18:36:09]execute_cgi path=json_proto method=POST [18:36:09]POST find Content-Length [18:36:09]Host: 172.17.96.197:8080 [18:36:09]Content-Length: 709 [18:36:09]Content-Type: application/json [18:36:09] [18:36:09]POST finish read [18:36:09]Found Content-Length = 709 [18:36:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10438", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:09]execute_script... [18:36:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10438", "tax_sys" : 0, "items" : [ { "code": "2000032780015", "name": "\u0421\u043B\u043E\u0439\u043A\u0430 DC \u0442\u0440\u0435\u0443\u0433\u043E\u043B\u044C\u043D\u0430\u044F \u043A\u0443\u0440\u0438\u0446\u0430 110\u0433", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:09]POST & json_proto [18:36:09]process_json_proto [18:36:09]json parsed OK: [18:36:09]protocol is kg_v1.0 [18:36:09]action value=close_receipt [18:36:09]process_action close_receipt [18:36:09]cmd_close_receipt [18:36:09]MH_GetDate [18:36:09]Write to MH i2c: F0 00 00 98 1F A6 [18:36:09]Write i2c OK [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 09 00 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: F0 09 00 98 1F 00 1A 22 1C 66 E0 85 7F 64 B5 [18:36:09]GetLastDocTimeStamp 1713119380 [18:36:09]current date 1713119770 [18:36:09]FM_GetShiftState [18:36:09]SAM_PROTO_GetShiftState [18:36:09]wFMCommunicate request_size=4 [18:36:09]MH_SAM_APDU [18:36:09]CAPDU: 80 13 01 00 [18:36:09]Write to MH i2c: E2 08 00 99 1F 80 13 01 00 00 00 00 00 35 [18:36:09]Write i2c OK [18:36:09]MH_I2C_Read... [18:36:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:09]Read from MH i2c: E2 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: E2 0E 00 [18:36:09]MH_I2C_Read... [18:36:09]Read from MH i2c: E2 0E 00 99 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CD [18:36:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:36:09]wFMCommunicate OK [18:36:09]SAM_PROTO_GetShiftState done [18:36:09]FM_GetShiftState done [18:36:09]opened in 1713054696 [18:36:09]opened+sec_in_day 1713141096 [18:36:09]quantity*price = 13000 [18:36:09]sum+1 = 13001 [18:36:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 286 14.04.2024 18:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112387 ФПД: 279265671524647 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T183610&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112387&fm=279265671524647&tin=02508201610067®Number=0000000000094237&sum=13000 0 [18:36:10]StoreToDocumentArchive [18:36:10]shift 357 fd 112387 [18:36:10]save to /storage/0357/doc_00112387 [18:36:10]save last doc name /storage/0357/doc_00112387 to /storage/kkm_last_doc_name [18:36:10]save OK [18:36:10]Clear old archive folders... [18:36:10]ProcessDocumentItem done err = 0, tmpTLVsize=299 [18:36:10]tlvbuf is 001714F0 [18:36:10]SAM_PROTO_ClearQueue [18:36:10]wFMCommunicate request_size=4 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 09 00 00 [18:36:10]Write to MH i2c: E2 08 00 A6 1F 80 09 00 00 00 00 00 00 37 [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:10]Read from MH i2c: E2 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 A6 1F 00 90 00 39 [18:36:10]RAPDU: 90 00 [18:36:10]wFMCommunicate OK [18:36:10]SAM_PROTO_ClearQueue done [18:36:10]KKMCreateOFDPacket [18:36:10]OFDProtocolAddRootSTLVToBuf [18:36:10]FM_MakeSignedData [18:36:10]FM_MakeSignedData [18:36:10]SAM_PROTO_SignData [18:36:10]wFMCommunicate request_size=4 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 0D 01 02 [18:36:10]Write to MH i2c: E2 08 00 A7 1F 80 0D 01 02 00 00 00 00 3F [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:10]Read from MH i2c: E2 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 [18:36:10]MH_I2C_Read... [18:36:10]Read from MH i2c: E2 03 00 A7 1F 00 90 00 3A [18:36:10]RAPDU: 90 00 [18:36:10]wFMCommunicate OK [18:36:10]wFMCommunicate request_size=255 [18:36:10]MH_SAM_APDU [18:36:10]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 1A 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [18:36:10]Write to MH i2c: E2 02 01 A8 1F 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 1A 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 7E [18:36:10]Write i2c OK [18:36:10]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 A8 1F 00 90 00 3B [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=58 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B7 01 00 35 04 06 00 FD FD 9B 26 31 27 [18:36:11]Write to MH i2c: E2 3D 00 A9 1F 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B7 01 00 35 04 06 00 FD FD 9B 26 31 27 00 00 FD [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 03 00 A9 1F 00 90 00 3C [18:36:11]RAPDU: 90 00 [18:36:11]wFMCommunicate OK [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 0D 03 02 [18:36:11]Write to MH i2c: E2 08 00 AA 1F 80 0D 03 02 00 00 00 00 44 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 0B 00 AA 1F 00 12 FF 6C D3 C5 62 2C 4C 90 00 34 [18:36:11]RAPDU: 12 FF 6C D3 C5 62 2C 4C 90 00 [18:36:11]wFMCommunicate OK [18:36:11]SAM_PROTO_SignData done [18:36:11]FM_MakeSignedData done [18:36:11]CreateOFDProtocolMessage [18:36:11]wFMCommunicate request_size=4 [18:36:11]MH_SAM_APDU [18:36:11]CAPDU: 80 11 00 00 [18:36:11]Write to MH i2c: E2 08 00 AB 1F 80 11 00 00 00 00 00 00 44 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:11]Read from MH i2c: E2 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: E2 17 00 AB 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 95 [18:36:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:36:11]wFMCommunicate OK [18:36:11]CreateOFDProtocolMessage done [18:36:11]OFDSenderStorePacket 112387 [18:36:11]StoreOFDPacket docnum=112387 [18:36:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3F 01 00 00 DC AF 37 01 85 2D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 1A 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B7 01 00 35 04 06 00 FD FD 9B 26 31 27 12 FF 6C D3 C5 62 2C 4C [18:36:11]CheckFolder [18:36:11]dirname=/storage/ofd_packets [18:36:11]CheckFolder done [18:36:11]ProducePacketName [18:36:11]name=ofd_packets/00112387 [18:36:11]NVStorageSaveData ofd_packets/00112387 [18:36:11]File name is /storage/ofd_packets/00112387 [18:36:11]Write 349 bytes [18:36:11]NVStorageSaveData done [18:36:11]OFDSenderStorePacket done [18:36:11]KKMCreateOFDPacket done [18:36:11]NVStorageSaveData kkm_last_timestamp [18:36:11]File name is /storage/kkm_last_timestamp [18:36:11]Write 4 bytes [18:36:11]NVStorageSaveData done [18:36:11]ExternCall_PrintAddStr [18:36:11]wPrintStart [18:36:11]Write to MH i2c: 01 00 00 AC 1F CB [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 AC 1F 00 00 00 00 00 FF 0F E0 [18:36:11]RasterBufferAndPrint [18:36:11]line Счет N : (3)10438 [18:36:11]line ИНН: 02508201610067 [18:36:11]line Контрольно-Кассовый Чек [18:36:11]line ПРОДАЖА [18:36:11]line Товар: 2000032780015 [18:36:11]line Слойка DC треугольная курица 110г [18:36:11]line 2.000 * 65.00 [18:36:11]line = 130.00 [18:36:11]line НДС 12% НСП 1% [18:36:11]line > о реализуемом товаре [18:36:11]line ИТОГО: 130.00 [18:36:11]line НСП 1% : 1.15 [18:36:11]line НДС 12% : 13.80 [18:36:11]line Наличными: 130.00 [18:36:11]line Безнал.: 0.00 [18:36:11]line Место: АЗС № 47 "Партнер Нефть" [18:36:11]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:36:11]line СНО: Общий режим [18:36:11]line Чек 286 14.04.2024 18:36 [18:36:11]line Смена: 357 ФФД: 1.0 [18:36:11]line ЗНМ: 0300000138 [18:36:11]line РНМ: 0000000000094237 [18:36:11]line Версия ККМ: 001 [18:36:11]line ФМ: 0000000000875019 [18:36:11]line ФД: 112387 [18:36:11]line ФПД: 279265671524647 [18:36:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T183610&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112387&fm=279265671524647&tin=02508201610067®Number=0000000000094237&sum=13000 [18:36:11]line 0 [18:36:11]OFD Sender: Processing packet 112387 [packets to send 71, broken 70] [18:36:11]ProducePacketName [18:36:11]name=ofd_packets/00112387 [18:36:11]OFD Sender: To server: pG, [18:36:11]CommunicateWithHost lk.salyk.kg:30040 [18:36:11]ConnectInit lk.salyk.kg [18:36:11]written 0, free lines is 4095 [18:36:11]Connected sock=10 [18:36:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3F 01 00 00 DC AF 37 01 85 2D 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 32 30 30 30 30 33 32 37 38 30 30 31 35 06 04 39 00 D0 A1 D0 BB D0 BE D0 B9 D0 BA D0 B0 20 44 43 20 D1 82 D1 80 D0 B5 D1 83 D0 B3 D0 BE D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 BA D1 83 D1 80 D0 B8 D1 86 D0 B0 20 31 31 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 1A 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 03 B7 01 00 35 04 06 00 FD FD 9B 26 31 27 12 FF 6C D3 C5 62 2C 4C [18:36:11]Write to MH i2c: 01 00 00 D5 1F F4 [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: 01 07 00 D5 1F 00 00 00 00 00 E5 0C EC [18:36:11]RasterBufferAndPrint [18:36:11]line [18:36:11]line [18:36:11]line [18:36:11]line [18:36:11]line [18:36:11]written 0, free lines is 3307 [18:36:11]MH_Cut [18:36:11]Write to MH i2c: D1 01 00 DC 1F 01 CD [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: D1 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: D1 01 00 [18:36:11]MH_I2C_Read... [18:36:11]Read from MH i2c: D1 01 00 DC 1F 00 CC [18:36:11]Write to MH i2c: 01 00 00 DD 1F FC [18:36:11]Write i2c OK [18:36:11]MH_I2C_Read... [18:36:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A0 2C 47 00 AA 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 38 37 35 30 31 39 10 04 04 00 03 B7 01 00 F4 03 04 00 A5 C9 1B 66 B6 04 01 00 00 1A 9E D5 2C E8 D7 EF DB [18:36:12]CommunicateWithHost err = 0 [18:36:12]CheckOFDResponse [18:36:12]1017 (14) - 77093643461234 [18:36:12]1041 (16) - 0000000000875019 [18:36:12]1040 (4) - 112387 [18:36:12]1012 (4) - 14.04.2024 12:18 [18:36:12]1206 (1) - 0 [18:36:12]OFD Sender: Remove packet 112387 [18:36:12]ProducePacketName [18:36:12]name=ofd_packets/00112387 [18:36:12]NVStorageDeleteData [18:36:12]OFD Sender: No OFD packet to send [18:36:12]*** Cut start [18:36:12]*** Partial cut [18:36:12]*** CUTSNS_PIN = 1 [18:36:12]*** CUTSNS_PIN = 0 [18:36:13]*** Brake cut motor [18:36:13]Read from MH i2c: 01 [18:36:13]MH_I2C_Read... [18:36:13]*** Stop cut motor [18:36:13]*** Cut end [18:36:13]Read from MH i2c: 01 07 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: 01 07 00 DD 1F 00 00 00 00 00 FF 0F 11 [18:36:13]process_action close_receipt done [18:36:13]requested_data is exist [18:36:13]produce_requested_data [18:36:13]requested_item fm.sn is exist - process it [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 11 00 00 [18:36:13]Write to MH i2c: E2 08 00 DE 1F 80 11 00 00 00 00 00 00 77 [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 17 00 DE 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C8 [18:36:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:36:13]wFMCommunicate OK [18:36:13]requested_item fd.num is exist - process it [18:36:13]SAM_PROTO_GetFieldsCounters [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 00 00 [18:36:13]Write to MH i2c: E2 08 00 DF 1F 80 13 00 00 00 00 00 00 7A [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 62 00 DF 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 03 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [18:36:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 03 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetFieldsCounters done [18:36:13]requested_item shift.num is exist - process it [18:36:13]requested_item shift.opened is exist - process it [18:36:13]req_shift_opened [18:36:13]FM_GetShiftState [18:36:13]SAM_PROTO_GetShiftState [18:36:13]wFMCommunicate request_size=4 [18:36:13]MH_SAM_APDU [18:36:13]CAPDU: 80 13 01 00 [18:36:13]Write to MH i2c: E2 08 00 E0 1F 80 13 01 00 00 00 00 00 7C [18:36:13]Write i2c OK [18:36:13]MH_I2C_Read... [18:36:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:13]Read from MH i2c: E2 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 [18:36:13]MH_I2C_Read... [18:36:13]Read from MH i2c: E2 0E 00 E0 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 14 [18:36:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:36:13]wFMCommunicate OK [18:36:13]SAM_PROTO_GetShiftState done [18:36:13]FM_GetShiftState done [18:36:13]req_shift_opened done [18:36:13]requested_item shift.open_date is exist - process it [18:36:13]req_shift_open_date [18:36:13]req_shift_open_date done [18:36:13]produce_requested_data done [18:36:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112387,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:36:13]process_action_free close_receipt [18:36:13]json_value_free [18:36:13]json_value_free done [18:36:13]process_json_proto returns [18:36:13]Send response to host [18:36:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112387,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:36:13]free response buf [18:36:13]execute_script done [18:36:13]execute_script returns [18:36:13]free content buf [18:36:13]Sock 8.Close socket [18:36:13]Sock 8.Thread stoped [18:36:17]OFD Sender: No OFD packet to send [18:36:22]OFD Sender: No OFD packet to send [18:36:27]OFD Sender: No OFD packet to send [18:36:32]OFD Sender: No OFD packet to send [18:36:37]OFD Sender: No OFD packet to send [18:36:42]OFD Sender: No OFD packet to send [18:36:47]OFD Sender: No OFD packet to send [18:36:52]OFD Sender: No OFD packet to send [18:36:57]OFD Sender: No OFD packet to send [18:36:59]accept exits with 9 [18:36:59]New connection [18:36:59]New thread 3066826084 created [18:36:59]Thread 3066682724 joined [18:36:59]Waiting for new connection... [18:36:59] Sock 9.Parse request [18:36:59]Sock 9.Check first char [18:36:59]Sock 9.First char is OK [18:36:59]request: POST /json_proto HTTP/1.0 [18:36:59]Method: POST [18:36:59]URL: /json_proto [18:36:59]Method is POST - this is cgi request [18:36:59]url: /json_proto [18:36:59]query_string will be loaded in cgi processing [18:36:59]execute_cgi json_proto POST (null) [18:36:59]execute_cgi path=json_proto method=POST [18:36:59]POST find Content-Length [18:36:59]Host: 172.17.96.197:8080 [18:36:59]Content-Length: 676 [18:36:59]Content-Type: application/json [18:36:59] [18:36:59]POST finish read [18:36:59]Found Content-Length = 676 [18:36:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [18:36:59]execute_script... [18:36: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)48690", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [18:36:59]POST & json_proto [18:36:59]process_json_proto [18:36:59]json parsed OK: [18:36:59]protocol is kg_v1.0 [18:36:59]action value=close_receipt [18:36:59]process_action close_receipt [18:36:59]cmd_close_receipt [18:36:59]MH_GetDate [18:36:59]Write to MH i2c: F0 00 00 E1 1F EF [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: F0 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: F0 09 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: F0 09 00 E1 1F 00 4C 22 1C 66 E0 85 7F 64 30 [18:36:59]GetLastDocTimeStamp 1713119770 [18:36:59]current date 1713119820 [18:36:59]FM_GetShiftState [18:36:59]SAM_PROTO_GetShiftState [18:36:59]wFMCommunicate request_size=4 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 13 01 00 [18:36:59]Write to MH i2c: E2 08 00 E2 1F 80 13 01 00 00 00 00 00 7E [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 0E 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 0E 00 E2 1F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 16 [18:36:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:36:59]wFMCommunicate OK [18:36:59]SAM_PROTO_GetShiftState done [18:36:59]FM_GetShiftState done [18:36:59]opened in 1713054696 [18:36:59]opened+sec_in_day 1713141096 [18:36:59]quantity*price = 50025 [18:36:59]sum+1 = 50026 [18:36:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 287 14.04.2024 18:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112388 ФПД: 272270166470359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T183700&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112388&fm=272270166470359&tin=02508201610067®Number=0000000000094237&sum=50000 [18:37:00]StoreToDocumentArchive [18:37:00]shift 357 fd 112388 [18:37:00]save to /storage/0357/doc_00112388 [18:37:00]save last doc name /storage/0357/doc_00112388 to /storage/kkm_last_doc_name [18:37:00]save OK [18:37:00]Clear old archive folders... [18:37:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:00]tlvbuf is 001AE460 [18:37:00]SAM_PROTO_ClearQueue [18:37:00]wFMCommunicate request_size=4 [18:37:00]MH_SAM_APDU [18:37:00]CAPDU: 80 09 00 00 [18:37:00]Write to MH i2c: E2 08 00 EF 1F 80 09 00 00 00 00 00 00 80 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 [18:37:00]MH_I2C_Read... [18:37:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:00]Read from MH i2c: E2 03 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 03 00 EF 1F 00 90 00 82 [18:37:00]RAPDU: 90 00 [18:37:00]wFMCommunicate OK [18:37:00]SAM_PROTO_ClearQueue done [18:37:00]KKMCreateOFDPacket [18:37:00]OFDProtocolAddRootSTLVToBuf [18:37:00]FM_MakeSignedData [18:37:00]FM_MakeSignedData [18:37:00]SAM_PROTO_SignData [18:37:00]wFMCommunicate request_size=4 [18:37:00]MH_SAM_APDU [18:37:00]CAPDU: 80 0D 01 02 [18:37:00]Write to MH i2c: E2 08 00 F0 1F 80 0D 01 02 00 00 00 00 88 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:00]Read from MH i2c: E2 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 03 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: E2 03 00 F0 1F 00 90 00 83 [18:37:00]RAPDU: 90 00 [18:37:00]wFMCommunicate OK [18:37:00]wFMCommunicate request_size=255 [18:37:00]MH_SAM_APDU [18:37:00]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 1F 01 00 00 F4 03 04 00 4C 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B7 01 00 35 04 06 00 F7 [18:37:00]Write to MH i2c: E2 02 01 F1 1F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 1F 01 00 00 F4 03 04 00 4C 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B7 01 00 35 04 06 00 F7 00 00 54 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 03 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 03 00 F1 1F 00 90 00 84 [18:37:01]RAPDU: 90 00 [18:37:01]wFMCommunicate OK [18:37:01]wFMCommunicate request_size=10 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 0D 02 02 05 A0 D6 8E 2E D7 [18:37:01]Write to MH i2c: E2 0D 00 F2 1F 80 0D 02 02 05 00 A0 D6 8E 2E D7 00 00 9E [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 03 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 03 00 F2 1F 00 90 00 85 [18:37:01]RAPDU: 90 00 [18:37:01]wFMCommunicate OK [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 0D 03 02 [18:37:01]Write to MH i2c: E2 08 00 F3 1F 80 0D 03 02 00 00 00 00 8D [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0B 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0B 00 F3 1F 00 38 F6 8A 2F 75 17 10 A8 90 00 B9 [18:37:01]RAPDU: 38 F6 8A 2F 75 17 10 A8 90 00 [18:37:01]wFMCommunicate OK [18:37:01]SAM_PROTO_SignData done [18:37:01]FM_MakeSignedData done [18:37:01]CreateOFDProtocolMessage [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 11 00 00 [18:37:01]Write to MH i2c: E2 08 00 F4 1F 80 11 00 00 00 00 00 00 8D [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 17 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 17 00 F4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DE [18:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:37:01]wFMCommunicate OK [18:37:01]CreateOFDProtocolMessage done [18:37:01]OFDSenderStorePacket 112388 [18:37:01]StoreOFDPacket docnum=112388 [18:37:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B 2E 07 01 AE 5B 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 1F 01 00 00 F4 03 04 00 4C 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B7 01 00 35 04 06 00 F7 A0 D6 8E 2E D7 38 F6 8A 2F 75 17 10 A8 [18:37:01]CheckFolder [18:37:01]dirname=/storage/ofd_packets [18:37:01]CheckFolder done [18:37:01]ProducePacketName [18:37:01]name=ofd_packets/00112388 [18:37:01]NVStorageSaveData ofd_packets/00112388 [18:37:01]File name is /storage/ofd_packets/00112388 [18:37:01]Write 301 bytes [18:37:01]NVStorageSaveData done [18:37:01]OFDSenderStorePacket done [18:37:01]KKMCreateOFDPacket done [18:37:01]NVStorageSaveData kkm_last_timestamp [18:37:01]File name is /storage/kkm_last_timestamp [18:37:01]Write 4 bytes [18:37:01]NVStorageSaveData done [18:37:01]ExternCall_PrintAddStr [18:37:01]wPrintStart [18:37:01]Write to MH i2c: 01 00 00 F5 1F 14 [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 07 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 07 00 F5 1F 00 00 00 00 00 FF 0F 29 [18:37:01]RasterBufferAndPrint [18:37:01]line Счет N : (1)48690 [18:37:01]line ИНН: 02508201610067 [18:37:01]line Контрольно-Кассовый Чек [18:37:01]line ПРОДАЖА [18:37:01]line ТРК (МРК, ГНК) : 21 [18:37:01]line Товар: 2710124130 [18:37:01]line Аи-92-К-5 [18:37:01]line 7.780 * 64.30 [18:37:01]line = 500.25 [18:37:01]line НДС 12% НСП 1% [18:37:01]line > о реализуемом товаре [18:37:01]line ОКРУГЛЕНИЕ: -0.25 [18:37:01]line ИТОГО: 500.00 [18:37:01]line Внесено: 500.00 [18:37:01]line СДАЧА: 0.00 [18:37:01]line НСП 1% : 4.43 [18:37:01]line НДС 12% : 53.12 [18:37:01]line Наличными: 500.00 [18:37:01]line Безнал.: 0.00 [18:37:01]line Место: АЗС № 47 "Партнер Нефть" [18:37:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:37:01]line СНО: Общий режим [18:37:01]line Чек 287 14.04.2024 18:37 [18:37:01]line Смена: 357 ФФД: 1.0 [18:37:01]line ЗНМ: 0300000138 [18:37:01]line РНМ: 0000000000094237 [18:37:01]line Версия ККМ: 001 [18:37:01]line ФМ: 0000000000875019 [18:37:01]line ФД: 112388 [18:37:01]line ФПД: 272270166470359 [18:37:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T183700&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112388&fm=272270166470359&tin=02508201610067®Number=0000000000094237&sum=50000 [18:37:01]written 0, free lines is 4095 [18:37:01]OFD Sender: Processing packet 112388 [packets to send 71, broken 70] [18:37:01]ProducePacketName [18:37:01]name=ofd_packets/00112388 [18:37:01]OFD Sender: To server: pG, [18:37:01]CommunicateWithHost lk.salyk.kg:30040 [18:37:01]ConnectInit lk.salyk.kg [18:37:01]Connected sock=8 [18:37:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5B 2E 07 01 AE 5B 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 1F 01 00 00 F4 03 04 00 4C 22 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B7 01 00 35 04 06 00 F7 A0 D6 8E 2E D7 38 F6 8A 2F 75 17 10 A8 [18:37:01]Write to MH i2c: 01 00 00 20 20 40 [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 07 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 07 00 20 20 00 00 00 00 00 E0 0C 33 [18:37:01]RasterBufferAndPrint [18:37:01]line [18:37:01]line [18:37:01]line [18:37:01]line [18:37:01]line [18:37:01]written 0, free lines is 3302 [18:37:01]MH_Cut [18:37:01]Write to MH i2c: D1 01 00 27 20 01 19 [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: D1 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: D1 01 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: D1 01 00 27 20 00 18 [18:37:01]Write to MH i2c: 01 00 00 28 20 48 [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7B 57 47 00 86 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 04 B7 01 00 F4 03 04 00 D7 C9 1B 66 B6 04 01 00 00 77 1D 19 96 B5 DA 05 05 [18:37:02]CommunicateWithHost err = 0 [18:37:02]CheckOFDResponse [18:37:02]1017 (14) - 77093643461234 [18:37:02]1041 (16) - 0000000000875019 [18:37:02]1040 (4) - 112388 [18:37:02]1012 (4) - 14.04.2024 12:19 [18:37:02]1206 (1) - 0 [18:37:02]OFD Sender: Remove packet 112388 [18:37:02]ProducePacketName [18:37:02]name=ofd_packets/00112388 [18:37:02]NVStorageDeleteData [18:37:02]OFD Sender: No OFD packet to send [18:37:02]*** Cut start [18:37:02]*** Partial cut [18:37:02]*** CUTSNS_PIN = 1 [18:37:02]*** CUTSNS_PIN = 0 [18:37:03]*** Brake cut motor [18:37:03]Read from MH i2c: 01 [18:37:03]MH_I2C_Read... [18:37:03]*** Stop cut motor [18:37:03]*** Cut end [18:37:03]Read from MH i2c: 01 07 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: 01 07 00 28 20 00 00 00 00 00 FF 0F 5D [18:37:03]process_action close_receipt done [18:37:03]requested_data is exist [18:37:03]produce_requested_data [18:37:03]requested_item fm.sn is exist - process it [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 11 00 00 [18:37:03]Write to MH i2c: E2 08 00 29 20 80 11 00 00 00 00 00 00 C3 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 17 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 17 00 29 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 14 [18:37:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:37:03]wFMCommunicate OK [18:37:03]requested_item fd.num is exist - process it [18:37:03]SAM_PROTO_GetFieldsCounters [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 13 00 00 [18:37:03]Write to MH i2c: E2 08 00 2A 20 80 13 00 00 00 00 00 00 C6 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 62 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 62 00 2A 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 04 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [18:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 04 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:03]wFMCommunicate OK [18:37:03]SAM_PROTO_GetFieldsCounters done [18:37:03]requested_item shift.num is exist - process it [18:37:03]requested_item shift.opened is exist - process it [18:37:03]req_shift_opened [18:37:03]FM_GetShiftState [18:37:03]SAM_PROTO_GetShiftState [18:37:03]wFMCommunicate request_size=4 [18:37:03]MH_SAM_APDU [18:37:03]CAPDU: 80 13 01 00 [18:37:03]Write to MH i2c: E2 08 00 2B 20 80 13 01 00 00 00 00 00 C8 [18:37:03]Write i2c OK [18:37:03]MH_I2C_Read... [18:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:03]Read from MH i2c: E2 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 0E 00 [18:37:03]MH_I2C_Read... [18:37:03]Read from MH i2c: E2 0E 00 2B 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 60 [18:37:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:37:03]wFMCommunicate OK [18:37:03]SAM_PROTO_GetShiftState done [18:37:03]FM_GetShiftState done [18:37:03]req_shift_opened done [18:37:03]requested_item shift.open_date is exist - process it [18:37:03]req_shift_open_date [18:37:03]req_shift_open_date done [18:37:03]produce_requested_data done [18:37:03]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112388,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:37:03]process_action_free close_receipt [18:37:03]json_value_free [18:37:03]json_value_free done [18:37:03]process_json_proto returns [18:37:03]Send response to host [18:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112388,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:37:03]free response buf [18:37:03]execute_script done [18:37:03]execute_script returns [18:37:03]free content buf [18:37:03]Sock 9.Close socket [18:37:03]Sock 9.Thread stoped [18:37:07]OFD Sender: No OFD packet to send [18:37:12]OFD Sender: No OFD packet to send [18:37:17]OFD Sender: No OFD packet to send [18:37:22]OFD Sender: No OFD packet to send [18:37:27]OFD Sender: No OFD packet to send [18:37:32]OFD Sender: No OFD packet to send [18:37:37]OFD Sender: No OFD packet to send [18:37:42]OFD Sender: No OFD packet to send [18:37:47]OFD Sender: No OFD packet to send [18:37:52]OFD Sender: No OFD packet to send [18:37:57]OFD Sender: No OFD packet to send [18:38:02]OFD Sender: No OFD packet to send [18:38:07]OFD Sender: No OFD packet to send [18:38:12]OFD Sender: No OFD packet to send [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:37]OFD Sender: No OFD packet to send [18:38:42]OFD Sender: No OFD packet to send [18:38:47]OFD Sender: No OFD packet to send [18:38:52]OFD Sender: No OFD packet to send [18:38:57]OFD Sender: No OFD packet to send [18:39:02]OFD Sender: No OFD packet to send [18:39:07]OFD Sender: No OFD packet to send [18:39:12]OFD Sender: No OFD packet to send [18:39:17]OFD Sender: No OFD packet to send [18:39:22]OFD Sender: No OFD packet to send [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]accept exits with 10 [18:40:27]New connection [18:40:27]New thread 3066682724 created [18:40:27]Thread 3066826084 joined [18:40:27]Waiting for new connection... [18:40:27] Sock 10.Parse request [18:40:27]Sock 10.Check first char [18:40:27]Sock 10.First char is OK [18:40:27]request: POST /json_proto HTTP/1.0 [18:40:27]Method: POST [18:40:27]URL: /json_proto [18:40:27]Method is POST - this is cgi request [18:40:27]url: /json_proto [18:40:27]query_string will be loaded in cgi processing [18:40:27]execute_cgi json_proto POST (null) [18:40:27]execute_cgi path=json_proto method=POST [18:40:27]POST find Content-Length [18:40:27]Host: 172.17.96.197:8080 [18:40:27]Content-Length: 819 [18:40:27]Content-Type: application/json [18:40:27] [18:40:27]POST finish read [18:40:27]Found Content-Length = 819 [18:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "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" ] } } [18:40:27]execute_script... [18:40:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48691", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 21.410, "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" ] } } [18:40:27]POST & json_proto [18:40:27]process_json_proto [18:40:27]json parsed OK: [18:40:27]protocol is kg_v1.0 [18:40:27]action value=close_receipt [18:40:27]process_action close_receipt [18:40:27]cmd_close_receipt [18:40:27]MH_GetDate [18:40:27]Write to MH i2c: F0 00 00 2C 20 3B [18:40:27]Write i2c OK [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: F0 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: F0 09 00 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: F0 09 00 2C 20 00 1C 23 1C 66 E0 85 7F 64 4D [18:40:27]GetLastDocTimeStamp 1713119820 [18:40:27]current date 1713120028 [18:40:27]FM_GetShiftState [18:40:27]SAM_PROTO_GetShiftState [18:40:27]wFMCommunicate request_size=4 [18:40:27]MH_SAM_APDU [18:40:27]CAPDU: 80 13 01 00 [18:40:27]Write to MH i2c: E2 08 00 2D 20 80 13 01 00 00 00 00 00 CA [18:40:27]Write i2c OK [18:40:27]MH_I2C_Read... [18:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:27]Read from MH i2c: E2 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: E2 0E 00 [18:40:27]MH_I2C_Read... [18:40:27]Read from MH i2c: E2 0E 00 2D 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 62 [18:40:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:40:27]wFMCommunicate OK [18:40:27]SAM_PROTO_GetShiftState done [18:40:27]FM_GetShiftState done [18:40:27]opened in 1713054696 [18:40:27]opened+sec_in_day 1713141096 [18:40:27]quantity*price = 70010 [18:40:27]sum+1 = 70012 [18:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.11 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 0.00 Безнал.: 700.11 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 288 14.04.2024 18:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112389 ФПД: 162495579447760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112389&fm=162495579447760&tin=02508201610067®Number=0000000000094237&sum=70011 [18:40:28]StoreToDocumentArchive [18:40:28]shift 357 fd 112389 [18:40:28]save to /storage/0357/doc_00112389 [18:40:28]save last doc name /storage/0357/doc_00112389 to /storage/kkm_last_doc_name [18:40:28]save OK [18:40:28]Clear old archive folders... [18:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:40:28]tlvbuf is 001F7E50 [18:40:28]SAM_PROTO_ClearQueue [18:40:28]wFMCommunicate request_size=4 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 09 00 00 [18:40:28]Write to MH i2c: E2 08 00 3A 20 80 09 00 00 00 00 00 00 CC [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 3A 20 00 90 00 CE [18:40:28]RAPDU: 90 00 [18:40:28]wFMCommunicate OK [18:40:28]SAM_PROTO_ClearQueue done [18:40:28]KKMCreateOFDPacket [18:40:28]OFDProtocolAddRootSTLVToBuf [18:40:28]FM_MakeSignedData [18:40:28]FM_MakeSignedData [18:40:28]SAM_PROTO_SignData [18:40:28]wFMCommunicate request_size=4 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 0D 01 02 [18:40:28]Write to MH i2c: E2 08 00 3B 20 80 0D 01 02 00 00 00 00 D4 [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 3B 20 00 90 00 CF [18:40:28]RAPDU: 90 00 [18:40:28]wFMCommunicate OK [18:40:28]wFMCommunicate request_size=255 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 20 01 00 00 F4 03 04 00 1C 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B7 01 00 35 04 06 00 93 C9 [18:40:28]Write to MH i2c: E2 02 01 3C 20 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 20 01 00 00 F4 03 04 00 1C 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B7 01 00 35 04 06 00 93 C9 00 00 E8 [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 3C 20 00 90 00 D0 [18:40:28]RAPDU: 90 00 [18:40:28]wFMCommunicate OK [18:40:28]wFMCommunicate request_size=9 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 0D 02 02 04 F3 4A 61 D0 [18:40:28]Write to MH i2c: E2 0C 00 3D 20 80 0D 02 02 04 00 F3 4A 61 D0 00 00 4D [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 03 00 3D 20 00 90 00 D1 [18:40:28]RAPDU: 90 00 [18:40:28]wFMCommunicate OK [18:40:28]wFMCommunicate request_size=4 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 0D 03 02 [18:40:28]Write to MH i2c: E2 08 00 3E 20 80 0D 03 02 00 00 00 00 D9 [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 0B 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 0B 00 3E 20 00 02 0B D8 50 BF 68 ED AD 90 00 D0 [18:40:28]RAPDU: 02 0B D8 50 BF 68 ED AD 90 00 [18:40:28]wFMCommunicate OK [18:40:28]SAM_PROTO_SignData done [18:40:28]FM_MakeSignedData done [18:40:28]CreateOFDProtocolMessage [18:40:28]wFMCommunicate request_size=4 [18:40:28]MH_SAM_APDU [18:40:28]CAPDU: 80 11 00 00 [18:40:28]Write to MH i2c: E2 08 00 3F 20 80 11 00 00 00 00 00 00 D9 [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:28]Read from MH i2c: E2 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 17 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: E2 17 00 3F 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2A [18:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:40:28]wFMCommunicate OK [18:40:28]CreateOFDProtocolMessage done [18:40:28]OFDSenderStorePacket 112389 [18:40:28]StoreOFDPacket docnum=112389 [18:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 5F 41 06 01 70 B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 20 01 00 00 F4 03 04 00 1C 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B7 01 00 35 04 06 00 93 C9 F3 4A 61 D0 02 0B D8 50 BF 68 ED AD [18:40:28]CheckFolder [18:40:28]dirname=/storage/ofd_packets [18:40:28]CheckFolder done [18:40:28]ProducePacketName [18:40:28]name=ofd_packets/00112389 [18:40:28]NVStorageSaveData ofd_packets/00112389 [18:40:28]File name is /storage/ofd_packets/00112389 [18:40:28]Write 300 bytes [18:40:28]NVStorageSaveData done [18:40:28]OFDSenderStorePacket done [18:40:28]KKMCreateOFDPacket done [18:40:28]NVStorageSaveData kkm_last_timestamp [18:40:28]File name is /storage/kkm_last_timestamp [18:40:28]Write 4 bytes [18:40:28]NVStorageSaveData done [18:40:28]ExternCall_PrintAddStr [18:40:28]wPrintStart [18:40:28]Write to MH i2c: 01 00 00 40 20 60 [18:40:28]Write i2c OK [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: 01 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: 01 07 00 [18:40:28]MH_I2C_Read... [18:40:28]Read from MH i2c: 01 07 00 40 20 00 00 00 00 00 FF 0F 75 [18:40:28]RasterBufferAndPrint [18:40:28]line Счет N : (1)48691 [18:40:28]line ИНН: 02508201610067 [18:40:28]line Контрольно-Кассовый Чек [18:40:28]line ПРОДАЖА [18:40:28]line ТРК (МРК, ГНК) : 72 [18:40:28]line Товар: 2711190000 [18:40:28]line ГАЗ-К-5 [18:40:28]line 21.410 * 32.70 [18:40:28]line = 700.11 [18:40:28]line НДС 12% НСП 1% [18:40:28]line > о реализуемом товаре [18:40:28]line ИТОГО: 700.11 [18:40:28]line НСП 1% : 6.20 [18:40:28]line НДС 12% : 74.35 [18:40:28]line Наличными: 0.00 [18:40:28]line Безнал.: 700.11 [18:40:28]line Место: АЗС № 47 "Партнер Нефть" [18:40:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:40:28]line СНО: Общий режим [18:40:28]line Чек 288 14.04.2024 18:40 [18:40:28]line Смена: 357 ФФД: 1.0 [18:40:28]line ЗНМ: 0300000138 [18:40:28]line РНМ: 0000000000094237 [18:40:28]line Версия ККМ: 001 [18:40:28]line Платежная система: Бакай Банк [18:40:28]line ФМ: 0000000000875019 [18:40:28]line ФД: 112389 [18:40:28]line ФПД: 162495579447760 [18:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112389&fm=162495579447760&tin=02508201610067®Number=0000000000094237&sum=70011 [18:40:29]OFD Sender: Processing packet 112389 [packets to send 71, broken 70] [18:40:29]ProducePacketName [18:40:29]name=ofd_packets/00112389 [18:40:29]OFD Sender: To server: pG, [18:40:29]CommunicateWithHost lk.salyk.kg:30040 [18:40:29]ConnectInit lk.salyk.kg [18:40:29]written 0, free lines is 4095 [18:40:29]Connected sock=9 [18:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 5F 41 06 01 70 B5 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 A2 53 00 00 00 00 00 37 04 06 00 C6 0C 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 20 01 00 00 F4 03 04 00 1C 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B7 01 00 35 04 06 00 93 C9 F3 4A 61 D0 02 0B D8 50 BF 68 ED AD [18:40:29]Write to MH i2c: 01 00 00 6A 20 8A [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: 01 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: 01 07 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: 01 07 00 6A 20 00 00 00 00 00 DD 0C 7A [18:40:29]RasterBufferAndPrint [18:40:29]line [18:40:29]line [18:40:29]line [18:40:29]line [18:40:29]line [18:40:29]written 0, free lines is 3299 [18:40:29]MH_Cut [18:40:29]Write to MH i2c: D1 01 00 71 20 01 63 [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: D1 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: D1 01 00 [18:40:29]MH_I2C_Read... [18:40:29]Read from MH i2c: D1 01 00 71 20 00 62 [18:40:29]Write to MH i2c: 01 00 00 72 20 92 [18:40:29]Write i2c OK [18:40:29]MH_I2C_Read... [18:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F4 A9 47 00 FA 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 05 B7 01 00 F4 03 04 00 A7 CA 1B 66 B6 04 01 00 00 99 1C 42 ED 2F 57 30 B5 [18:40:29]CommunicateWithHost err = 0 [18:40:29]CheckOFDResponse [18:40:29]1017 (14) - 77093643461234 [18:40:29]1041 (16) - 0000000000875019 [18:40:29]1040 (4) - 112389 [18:40:29]1012 (4) - 14.04.2024 12:23 [18:40:29]1206 (1) - 0 [18:40:29]OFD Sender: Remove packet 112389 [18:40:29]ProducePacketName [18:40:29]name=ofd_packets/00112389 [18:40:29]NVStorageDeleteData [18:40:30]OFD Sender: No OFD packet to send [18:40:30]*** Cut start [18:40:30]*** Partial cut [18:40:30]*** CUTSNS_PIN = 1 [18:40:30]*** CUTSNS_PIN = 0 [18:40:30]*** Brake cut motor [18:40:30]Read from MH i2c: 01 [18:40:30]MH_I2C_Read... [18:40:30]*** Stop cut motor [18:40:31]*** Cut end [18:40:31]Read from MH i2c: 01 07 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: 01 07 00 72 20 00 00 00 00 00 FF 0F A7 [18:40:31]process_action close_receipt done [18:40:31]requested_data is exist [18:40:31]produce_requested_data [18:40:31]requested_item fm.sn is exist - process it [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 11 00 00 [18:40:31]Write to MH i2c: E2 08 00 73 20 80 11 00 00 00 00 00 00 0D [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:31]Read from MH i2c: E2 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 17 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 17 00 73 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5E [18:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:40:31]wFMCommunicate OK [18:40:31]requested_item fd.num is exist - process it [18:40:31]SAM_PROTO_GetFieldsCounters [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 13 00 00 [18:40:31]Write to MH i2c: E2 08 00 74 20 80 13 00 00 00 00 00 00 10 [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:31]Read from MH i2c: E2 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 62 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 62 00 74 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 05 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 B5 [18:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 05 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:31]wFMCommunicate OK [18:40:31]SAM_PROTO_GetFieldsCounters done [18:40:31]requested_item shift.num is exist - process it [18:40:31]requested_item shift.opened is exist - process it [18:40:31]req_shift_opened [18:40:31]FM_GetShiftState [18:40:31]SAM_PROTO_GetShiftState [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 13 01 00 [18:40:31]Write to MH i2c: E2 08 00 75 20 80 13 01 00 00 00 00 00 12 [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:31]Read from MH i2c: E2 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 0E 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 0E 00 75 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AA [18:40:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:40:31]wFMCommunicate OK [18:40:31]SAM_PROTO_GetShiftState done [18:40:31]FM_GetShiftState done [18:40:31]req_shift_opened done [18:40:31]requested_item shift.open_date is exist - process it [18:40:31]req_shift_open_date [18:40:31]req_shift_open_date done [18:40:31]produce_requested_data done [18:40:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112389,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:40:31]process_action_free close_receipt [18:40:31]json_value_free [18:40:31]json_value_free done [18:40:31]process_json_proto returns [18:40:31]Send response to host [18:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112389,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:40:31]free response buf [18:40:31]execute_script done [18:40:31]execute_script returns [18:40:31]free content buf [18:40:31]Sock 10.Close socket [18:40:31]Sock 10.Thread stoped [18:40:31]accept exits with 8 [18:40:31]New connection [18:40:31]New thread 3066826084 created [18:40:31]Thread 3066682724 joined [18:40:31]Waiting for new connection... [18:40:31] Sock 8.Parse request [18:40:31]Sock 8.Check first char [18:40:31]Sock 8.First char is OK [18:40:31]request: POST /json_proto HTTP/1.0 [18:40:31]Method: POST [18:40:31]URL: /json_proto [18:40:31]Method is POST - this is cgi request [18:40:31]url: /json_proto [18:40:31]query_string will be loaded in cgi processing [18:40:31]execute_cgi json_proto POST (null) [18:40:31]execute_cgi path=json_proto method=POST [18:40:31]POST find Content-Length [18:40:31]Host: 172.17.96.197:8080 [18:40:31]Content-Length: 676 [18:40:31]Content-Type: application/json [18:40:31] [18:40:31]POST finish read [18:40:31]Found Content-Length = 676 [18:40:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "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" ] } } [18:40:31]execute_script... [18:40: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)48692", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 6.900, "sum" : 500.25, "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" ] } } [18:40:31]POST & json_proto [18:40:31]process_json_proto [18:40:31]json parsed OK: [18:40:31]protocol is kg_v1.0 [18:40:31]action value=close_receipt [18:40:31]process_action close_receipt [18:40:31]cmd_close_receipt [18:40:31]MH_GetDate [18:40:31]Write to MH i2c: F0 00 00 76 20 85 [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: F0 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: F0 09 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: F0 09 00 76 20 00 20 23 1C 66 E0 85 7F 64 9B [18:40:31]GetLastDocTimeStamp 1713120028 [18:40:31]current date 1713120032 [18:40:31]FM_GetShiftState [18:40:31]SAM_PROTO_GetShiftState [18:40:31]wFMCommunicate request_size=4 [18:40:31]MH_SAM_APDU [18:40:31]CAPDU: 80 13 01 00 [18:40:31]Write to MH i2c: E2 08 00 77 20 80 13 01 00 00 00 00 00 14 [18:40:31]Write i2c OK [18:40:31]MH_I2C_Read... [18:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:31]Read from MH i2c: E2 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 0E 00 [18:40:31]MH_I2C_Read... [18:40:31]Read from MH i2c: E2 0E 00 77 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AC [18:40:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:40:31]wFMCommunicate OK [18:40:31]SAM_PROTO_GetShiftState done [18:40:31]FM_GetShiftState done [18:40:31]opened in 1713054696 [18:40:31]opened+sec_in_day 1713141096 [18:40:31]quantity*price = 50025 [18:40:31]sum+1 = 50026 [18:40:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 289 14.04.2024 18:40 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112390 ФПД: 25011182018211 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184032&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112390&fm=25011182018211&tin=02508201610067®Number=0000000000094237&sum=50000 [18:40:32]StoreToDocumentArchive [18:40:32]shift 357 fd 112390 [18:40:32]save to /storage/0357/doc_00112390 [18:40:32]save last doc name /storage/0357/doc_00112390 to /storage/kkm_last_doc_name [18:40:32]save OK [18:40:32]Clear old archive folders... [18:40:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:32]tlvbuf is 00204860 [18:40:32]SAM_PROTO_ClearQueue [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 09 00 00 [18:40:32]Write to MH i2c: E2 08 00 84 20 80 09 00 00 00 00 00 00 16 [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 84 20 00 90 00 18 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]SAM_PROTO_ClearQueue done [18:40:32]KKMCreateOFDPacket [18:40:32]OFDProtocolAddRootSTLVToBuf [18:40:32]FM_MakeSignedData [18:40:32]FM_MakeSignedData [18:40:32]SAM_PROTO_SignData [18:40:32]wFMCommunicate request_size=4 [18:40:32]MH_SAM_APDU [18:40:32]CAPDU: 80 0D 01 02 [18:40:32]Write to MH i2c: E2 08 00 85 20 80 0D 01 02 00 00 00 00 1E [18:40:32]Write i2c OK [18:40:32]MH_I2C_Read... [18:40:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:32]Read from MH i2c: E2 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 [18:40:32]MH_I2C_Read... [18:40:32]Read from MH i2c: E2 03 00 85 20 00 90 00 19 [18:40:32]RAPDU: 90 00 [18:40:32]wFMCommunicate OK [18:40:32]wFMCommunicate request_size=255 [18:40:32]MH_SAM_APDU [18:40:32]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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 21 01 00 00 F4 03 04 00 20 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B7 01 00 35 04 06 00 16 [18:40:32]Write to MH i2c: E2 02 01 86 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 21 01 00 00 F4 03 04 00 20 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B7 01 00 35 04 06 00 16 00 00 A9 [18:40:33]Write i2c OK [18:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 86 20 00 90 00 1A [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=10 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 02 02 05 BF 5E 9E 9E A3 [18:40:33]Write to MH i2c: E2 0D 00 87 20 80 0D 02 02 05 00 BF 5E 9E 9E A3 00 00 27 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 03 00 87 20 00 90 00 1B [18:40:33]RAPDU: 90 00 [18:40:33]wFMCommunicate OK [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 0D 03 02 [18:40:33]Write to MH i2c: E2 08 00 88 20 80 0D 03 02 00 00 00 00 23 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0B 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 0B 00 88 20 00 3F B4 FE 71 71 F7 E6 36 90 00 0A [18:40:33]RAPDU: 3F B4 FE 71 71 F7 E6 36 90 00 [18:40:33]wFMCommunicate OK [18:40:33]SAM_PROTO_SignData done [18:40:33]FM_MakeSignedData done [18:40:33]CreateOFDProtocolMessage [18:40:33]wFMCommunicate request_size=4 [18:40:33]MH_SAM_APDU [18:40:33]CAPDU: 80 11 00 00 [18:40:33]Write to MH i2c: E2 08 00 89 20 80 11 00 00 00 00 00 00 23 [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:33]Read from MH i2c: E2 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 17 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: E2 17 00 89 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 74 [18:40:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:40:33]wFMCommunicate OK [18:40:33]CreateOFDProtocolMessage done [18:40:33]OFDSenderStorePacket 112390 [18:40:33]StoreOFDPacket docnum=112390 [18:40:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 35 CB 07 01 84 02 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 21 01 00 00 F4 03 04 00 20 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B7 01 00 35 04 06 00 16 BF 5E 9E 9E A3 3F B4 FE 71 71 F7 E6 36 [18:40:33]CheckFolder [18:40:33]dirname=/storage/ofd_packets [18:40:33]CheckFolder done [18:40:33]ProducePacketName [18:40:33]name=ofd_packets/00112390 [18:40:33]NVStorageSaveData ofd_packets/00112390 [18:40:33]File name is /storage/ofd_packets/00112390 [18:40:33]Write 301 bytes [18:40:33]NVStorageSaveData done [18:40:33]OFDSenderStorePacket done [18:40:33]KKMCreateOFDPacket done [18:40:33]NVStorageSaveData kkm_last_timestamp [18:40:33]File name is /storage/kkm_last_timestamp [18:40:33]Write 4 bytes [18:40:33]NVStorageSaveData done [18:40:33]ExternCall_PrintAddStr [18:40:33]wPrintStart [18:40:33]Write to MH i2c: 01 00 00 8A 20 AA [18:40:33]Write i2c OK [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 [18:40:33]MH_I2C_Read... [18:40:33]Read from MH i2c: 01 07 00 8A 20 00 00 00 00 00 FF 0F BF [18:40:33]RasterBufferAndPrint [18:40:33]line Счет N : (1)48692 [18:40:33]line ИНН: 02508201610067 [18:40:33]line Контрольно-Кассовый Чек [18:40:33]line ПРОДАЖА [18:40:33]line ТРК (МРК, ГНК) : 12 [18:40:33]line Товар: 2710124500 [18:40:33]line Аи-95-К-5 [18:40:33]line 6.900 * 72.50 [18:40:33]line = 500.25 [18:40:33]line НДС 12% НСП 1% [18:40:33]line > о реализуемом товаре [18:40:33]line ОКРУГЛЕНИЕ: -0.25 [18:40:33]line ИТОГО: 500.00 [18:40:33]line Внесено: 500.00 [18:40:33]line СДАЧА: 0.00 [18:40:33]line НСП 1% : 4.43 [18:40:33]line НДС 12% : 53.12 [18:40:33]line Наличными: 500.00 [18:40:33]line Безнал.: 0.00 [18:40:33]line Место: АЗС № 47 "Партнер Нефть" [18:40:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:40:33]line СНО: Общий режим [18:40:33]line Чек 289 14.04.2024 18:40 [18:40:33]line Смена: 357 ФФД: 1.0 [18:40:33]line ЗНМ: 0300000138 [18:40:33]line РНМ: 0000000000094237 [18:40:33]line Версия ККМ: 001 [18:40:33]line ФМ: 0000000000875019 [18:40:33]line ФД: 112390 [18:40:33]line ФПД: 25011182018211 [18:40:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184032&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112390&fm=25011182018211&tin=02508201610067®Number=0000000000094237&sum=50000 [18:40:33]written 0, free lines is 4095 [18:40:33]OFD Sender: Processing packet 112390 [packets to send 71, broken 70] [18:40:33]ProducePacketName [18:40:33]name=ofd_packets/00112390 [18:40:33]OFD Sender: To server: pG, [18:40:33]CommunicateWithHost lk.salyk.kg:30040 [18:40:33]ConnectInit lk.salyk.kg [18:40:33]Connected sock=10 [18:40:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 35 CB 07 01 84 02 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 F4 1A 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 69 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 21 01 00 00 F4 03 04 00 20 23 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B7 01 00 35 04 06 00 16 BF 5E 9E 9E A3 3F B4 FE 71 71 F7 E6 36 [18:40:34]Write to MH i2c: 01 00 00 B5 20 D5 [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: 01 07 00 B5 20 00 00 00 00 00 CF 0C B7 [18:40:34]RasterBufferAndPrint [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]line [18:40:34]written 0, free lines is 3297 [18:40:34]MH_Cut [18:40:34]Write to MH i2c: D1 01 00 BC 20 01 AE [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 [18:40:34]MH_I2C_Read... [18:40:34]Read from MH i2c: D1 01 00 BC 20 00 AD [18:40:34]Write to MH i2c: 01 00 00 BD 20 DD [18:40:34]Write i2c OK [18:40:34]MH_I2C_Read... [18:40:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 55 F1 47 00 DA CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 06 B7 01 00 F4 03 04 00 AB CA 1B 66 B6 04 01 00 00 0C 73 6E B0 F4 52 21 87 [18:40:34]CommunicateWithHost err = 0 [18:40:34]CheckOFDResponse [18:40:34]1017 (14) - 77093643461234 [18:40:34]1041 (16) - 0000000000875019 [18:40:34]1040 (4) - 112390 [18:40:34]1012 (4) - 14.04.2024 12:23 [18:40:34]1206 (1) - 0 [18:40:34]OFD Sender: Remove packet 112390 [18:40:34]ProducePacketName [18:40:34]name=ofd_packets/00112390 [18:40:34]NVStorageDeleteData [18:40:34]OFD Sender: No OFD packet to send [18:40:34]*** Cut start [18:40:34]*** Partial cut [18:40:34]*** CUTSNS_PIN = 1 [18:40:35]*** CUTSNS_PIN = 0 [18:40:35]*** Brake cut motor [18:40:35]Read from MH i2c: 01 [18:40:35]MH_I2C_Read... [18:40:35]*** Stop cut motor [18:40:35]*** Cut end [18:40:35]Read from MH i2c: 01 07 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: 01 07 00 BD 20 00 00 00 00 00 FF 0F F2 [18:40:35]process_action close_receipt done [18:40:35]requested_data is exist [18:40:35]produce_requested_data [18:40:35]requested_item fm.sn is exist - process it [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 11 00 00 [18:40:35]Write to MH i2c: E2 08 00 BE 20 80 11 00 00 00 00 00 00 58 [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 17 00 BE 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [18:40:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:40:35]wFMCommunicate OK [18:40:35]requested_item fd.num is exist - process it [18:40:35]SAM_PROTO_GetFieldsCounters [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 13 00 00 [18:40:35]Write to MH i2c: E2 08 00 BF 20 80 13 00 00 00 00 00 00 5B [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 62 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 62 00 BF 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 06 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [18:40:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 06 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_GetFieldsCounters done [18:40:35]requested_item shift.num is exist - process it [18:40:35]requested_item shift.opened is exist - process it [18:40:35]req_shift_opened [18:40:35]FM_GetShiftState [18:40:35]SAM_PROTO_GetShiftState [18:40:35]wFMCommunicate request_size=4 [18:40:35]MH_SAM_APDU [18:40:35]CAPDU: 80 13 01 00 [18:40:35]Write to MH i2c: E2 08 00 C0 20 80 13 01 00 00 00 00 00 5D [18:40:35]Write i2c OK [18:40:35]MH_I2C_Read... [18:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:35]Read from MH i2c: E2 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 [18:40:35]MH_I2C_Read... [18:40:35]Read from MH i2c: E2 0E 00 C0 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F5 [18:40:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:40:35]wFMCommunicate OK [18:40:35]SAM_PROTO_GetShiftState done [18:40:35]FM_GetShiftState done [18:40:35]req_shift_opened done [18:40:35]requested_item shift.open_date is exist - process it [18:40:35]req_shift_open_date [18:40:35]req_shift_open_date done [18:40:35]produce_requested_data done [18:40:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112390,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:40:35]process_action_free close_receipt [18:40:35]json_value_free [18:40:35]json_value_free done [18:40:35]process_json_proto returns [18:40:35]Send response to host [18:40:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112390,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:40:35]free response buf [18:40:35]execute_script done [18:40:35]execute_script returns [18:40:35]free content buf [18:40:35]Sock 8.Close socket [18:40:35]Sock 8.Thread stoped [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:28]accept exits with 9 [18:44:28]New connection [18:44:28]New thread 3066682724 created [18:44:28]Thread 3066826084 joined [18:44:28]Waiting for new connection... [18:44:28] Sock 9.Parse request [18:44:28]Sock 9.Check first char [18:44:28]Sock 9.First char is OK [18:44:28]request: POST /json_proto HTTP/1.0 [18:44:28]Method: POST [18:44:28]URL: /json_proto [18:44:28]Method is POST - this is cgi request [18:44:28]url: /json_proto [18:44:28]query_string will be loaded in cgi processing [18:44:28]execute_cgi json_proto POST (null) [18:44:28]execute_cgi path=json_proto method=POST [18:44:28]POST find Content-Length [18:44:28]Host: 172.17.96.197:8080 [18:44:28]Content-Length: 676 [18:44:28]Content-Type: application/json [18:44:28] [18:44:28]POST finish read [18:44:28]Found Content-Length = 676 [18:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48693", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [18:44:28]execute_script... [18: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)48693", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [18:44:28]POST & json_proto [18:44:28]process_json_proto [18:44:28]json parsed OK: [18:44:28]protocol is kg_v1.0 [18:44:28]action value=close_receipt [18:44:28]process_action close_receipt [18:44:28]cmd_close_receipt [18:44:28]MH_GetDate [18:44:28]Write to MH i2c: F0 00 00 C1 20 D0 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: F0 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: F0 09 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: F0 09 00 C1 20 00 0E 24 1C 66 E0 85 7F 64 D5 [18:44:28]GetLastDocTimeStamp 1713120032 [18:44:28]current date 1713120270 [18:44:28]FM_GetShiftState [18:44:28]SAM_PROTO_GetShiftState [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 13 01 00 [18:44:28]Write to MH i2c: E2 08 00 C2 20 80 13 01 00 00 00 00 00 5F [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0E 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0E 00 C2 20 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F7 [18:44:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:44:28]wFMCommunicate OK [18:44:28]SAM_PROTO_GetShiftState done [18:44:28]FM_GetShiftState done [18:44:28]opened in 1713054696 [18:44:28]opened+sec_in_day 1713141096 [18:44:28]quantity*price = 40058 [18:44:28]sum+1 = 40060 [18:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 290 14.04.2024 18:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112391 ФПД: 32980560838930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184430&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112391&fm=32980560838930&tin=02508201610067®Number=0000000000094237&sum=40000 [18:44:29]StoreToDocumentArchive [18:44:29]shift 357 fd 112391 [18:44:29]save to /storage/0357/doc_00112391 [18:44:29]save last doc name /storage/0357/doc_00112391 to /storage/kkm_last_doc_name [18:44:29]save OK [18:44:29]Clear old archive folders... [18:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:29]tlvbuf is B6F36830 [18:44:29]SAM_PROTO_ClearQueue [18:44:29]wFMCommunicate request_size=4 [18:44:29]MH_SAM_APDU [18:44:29]CAPDU: 80 09 00 00 [18:44:29]Write to MH i2c: E2 08 00 CF 20 80 09 00 00 00 00 00 00 61 [18:44:29]Write i2c OK [18:44:29]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 CF 20 00 90 00 63 [18:44:30]RAPDU: 90 00 [18:44:30]wFMCommunicate OK [18:44:30]SAM_PROTO_ClearQueue done [18:44:30]KKMCreateOFDPacket [18:44:30]OFDProtocolAddRootSTLVToBuf [18:44:30]FM_MakeSignedData [18:44:30]FM_MakeSignedData [18:44:30]SAM_PROTO_SignData [18:44:30]wFMCommunicate request_size=4 [18:44:30]MH_SAM_APDU [18:44:30]CAPDU: 80 0D 01 02 [18:44:30]Write to MH i2c: E2 08 00 D0 20 80 0D 01 02 00 00 00 00 69 [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 D0 20 00 90 00 64 [18:44:30]RAPDU: 90 00 [18:44:30]wFMCommunicate OK [18:44:30]wFMCommunicate request_size=255 [18:44:30]MH_SAM_APDU [18:44: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 22 01 00 00 F4 03 04 00 0E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B7 01 00 35 04 06 00 1D [18:44:30]Write to MH i2c: E2 02 01 D1 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 22 01 00 00 F4 03 04 00 0E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B7 01 00 35 04 06 00 1D 00 00 0F [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]OFD Sender: No OFD packet to send [18:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 D1 20 00 90 00 65 [18:44:30]RAPDU: 90 00 [18:44:30]wFMCommunicate OK [18:44:30]wFMCommunicate request_size=10 [18:44:30]MH_SAM_APDU [18:44:30]CAPDU: 80 0D 02 02 05 FE E2 9D 01 12 [18:44:30]Write to MH i2c: E2 0D 00 D2 20 80 0D 02 02 05 00 FE E2 9D 01 12 00 00 06 [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 03 00 D2 20 00 90 00 66 [18:44:30]RAPDU: 90 00 [18:44:30]wFMCommunicate OK [18:44:30]wFMCommunicate request_size=4 [18:44:30]MH_SAM_APDU [18:44:30]CAPDU: 80 0D 03 02 [18:44:30]Write to MH i2c: E2 08 00 D3 20 80 0D 03 02 00 00 00 00 6E [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 0B 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 0B 00 D3 20 00 73 33 8E 18 B1 AE 5E 8A 90 00 02 [18:44:30]RAPDU: 73 33 8E 18 B1 AE 5E 8A 90 00 [18:44:30]wFMCommunicate OK [18:44:30]SAM_PROTO_SignData done [18:44:30]FM_MakeSignedData done [18:44:30]CreateOFDProtocolMessage [18:44:30]wFMCommunicate request_size=4 [18:44:30]MH_SAM_APDU [18:44:30]CAPDU: 80 11 00 00 [18:44:30]Write to MH i2c: E2 08 00 D4 20 80 11 00 00 00 00 00 00 6E [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:30]Read from MH i2c: E2 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 17 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: E2 17 00 D4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BF [18:44:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:44:30]wFMCommunicate OK [18:44:30]CreateOFDProtocolMessage done [18:44:30]OFDSenderStorePacket 112391 [18:44:30]StoreOFDPacket docnum=112391 [18:44:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 0C 07 01 F4 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 22 01 00 00 F4 03 04 00 0E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B7 01 00 35 04 06 00 1D FE E2 9D 01 12 73 33 8E 18 B1 AE 5E 8A [18:44:30]CheckFolder [18:44:30]dirname=/storage/ofd_packets [18:44:30]CheckFolder done [18:44:30]ProducePacketName [18:44:30]name=ofd_packets/00112391 [18:44:30]NVStorageSaveData ofd_packets/00112391 [18:44:30]File name is /storage/ofd_packets/00112391 [18:44:30]Write 301 bytes [18:44:30]NVStorageSaveData done [18:44:30]OFDSenderStorePacket done [18:44:30]KKMCreateOFDPacket done [18:44:30]NVStorageSaveData kkm_last_timestamp [18:44:30]File name is /storage/kkm_last_timestamp [18:44:30]Write 4 bytes [18:44:30]NVStorageSaveData done [18:44:30]ExternCall_PrintAddStr [18:44:30]wPrintStart [18:44:30]Write to MH i2c: 01 00 00 D5 20 F5 [18:44:30]Write i2c OK [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: 01 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: 01 07 00 [18:44:30]MH_I2C_Read... [18:44:30]Read from MH i2c: 01 07 00 D5 20 00 00 00 00 00 FF 0F 0A [18:44:30]RasterBufferAndPrint [18:44:30]line Счет N : (1)48693 [18:44:30]line ИНН: 02508201610067 [18:44:30]line Контрольно-Кассовый Чек [18:44:30]line ПРОДАЖА [18:44:30]line ТРК (МРК, ГНК) : 32 [18:44:30]line Товар: 2710124130 [18:44:30]line Аи-92-К-5 [18:44:30]line 6.230 * 64.30 [18:44:30]line = 400.59 [18:44:30]line НДС 12% НСП 1% [18:44:30]line > о реализуемом товаре [18:44:30]line ОКРУГЛЕНИЕ: -0.59 [18:44:30]line ИТОГО: 400.00 [18:44:30]line Внесено: 400.00 [18:44:30]line СДАЧА: 0.00 [18:44:30]line НСП 1% : 3.54 [18:44:30]line НДС 12% : 42.54 [18:44:30]line Наличными: 400.00 [18:44:30]line Безнал.: 0.00 [18:44:30]line Место: АЗС № 47 "Партнер Нефть" [18:44:30]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:44:30]line СНО: Общий режим [18:44:30]line Чек 290 14.04.2024 18:44 [18:44:30]line Смена: 357 ФФД: 1.0 [18:44:30]line ЗНМ: 0300000138 [18:44:30]line РНМ: 0000000000094237 [18:44:30]line Версия ККМ: 001 [18:44:30]line ФМ: 0000000000875019 [18:44:30]line ФД: 112391 [18:44:30]line ФПД: 32980560838930 [18:44:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184430&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112391&fm=32980560838930&tin=02508201610067®Number=0000000000094237&sum=40000 [18:44:30]OFD Sender: Processing packet 112391 [packets to send 71, broken 70] [18:44:30]ProducePacketName [18:44:30]name=ofd_packets/00112391 [18:44:30]OFD Sender: To server: pG, [18:44:30]CommunicateWithHost lk.salyk.kg:30040 [18:44:30]ConnectInit lk.salyk.kg [18:44:30]written 0, free lines is 4095 [18:44:30]Connected sock=8 [18:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A8 0C 07 01 F4 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 22 01 00 00 F4 03 04 00 0E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B7 01 00 35 04 06 00 1D FE E2 9D 01 12 73 33 8E 18 B1 AE 5E 8A [18:44:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0B 6C 47 00 00 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 07 B7 01 00 F4 03 04 00 98 CB 1B 66 B6 04 01 00 00 B5 8F 71 8A 24 D3 BB 09 [18:44:31]CommunicateWithHost err = 0 [18:44:31]CheckOFDResponse [18:44:31]1017 (14) - 77093643461234 [18:44:31]1041 (16) - 0000000000875019 [18:44:31]1040 (4) - 112391 [18:44:31]1012 (4) - 14.04.2024 12:27 [18:44:31]1206 (1) - 0 [18:44:31]OFD Sender: Remove packet 112391 [18:44:31]ProducePacketName [18:44:31]name=ofd_packets/00112391 [18:44:31]NVStorageDeleteData [18:44:31]Write to MH i2c: 01 00 00 00 21 21 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: 01 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: 01 07 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: 01 07 00 00 21 00 00 00 00 00 DD 0C 11 [18:44:31]RasterBufferAndPrint [18:44:31]line [18:44:31]line [18:44:31]line [18:44:31]line [18:44:31]line [18:44:31]written 0, free lines is 3299 [18:44:31]MH_Cut [18:44:31]Write to MH i2c: D1 01 00 07 21 01 FA [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: D1 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: D1 01 00 [18:44:31]MH_I2C_Read... [18:44:31]Read from MH i2c: D1 01 00 07 21 00 F9 [18:44:31]Write to MH i2c: 01 00 00 08 21 29 [18:44:31]Write i2c OK [18:44:31]MH_I2C_Read... [18:44:31]OFD Sender: No OFD packet to send [18:44:32]*** Cut start [18:44:32]*** Partial cut [18:44:32]*** CUTSNS_PIN = 1 [18:44:32]*** CUTSNS_PIN = 0 [18:44:32]*** Brake cut motor [18:44:32]Read from MH i2c: 01 [18:44:32]MH_I2C_Read... [18:44:32]*** Stop cut motor [18:44:32]*** Cut end [18:44:32]Read from MH i2c: 01 07 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: 01 07 00 08 21 00 00 00 00 00 FF 0F 3E [18:44:32]process_action close_receipt done [18:44:32]requested_data is exist [18:44:32]produce_requested_data [18:44:32]requested_item fm.sn is exist - process it [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 11 00 00 [18:44:32]Write to MH i2c: E2 08 00 09 21 80 11 00 00 00 00 00 00 A4 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 17 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 17 00 09 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F5 [18:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:44:32]wFMCommunicate OK [18:44:32]requested_item fd.num is exist - process it [18:44:32]SAM_PROTO_GetFieldsCounters [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 13 00 00 [18:44:32]Write to MH i2c: E2 08 00 0A 21 80 13 00 00 00 00 00 00 A7 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 62 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 62 00 0A 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 07 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [18:44:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 07 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:32]wFMCommunicate OK [18:44:32]SAM_PROTO_GetFieldsCounters done [18:44:32]requested_item shift.num is exist - process it [18:44:32]requested_item shift.opened is exist - process it [18:44:32]req_shift_opened [18:44:32]FM_GetShiftState [18:44:32]SAM_PROTO_GetShiftState [18:44:32]wFMCommunicate request_size=4 [18:44:32]MH_SAM_APDU [18:44:32]CAPDU: 80 13 01 00 [18:44:32]Write to MH i2c: E2 08 00 0B 21 80 13 01 00 00 00 00 00 A9 [18:44:32]Write i2c OK [18:44:32]MH_I2C_Read... [18:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:32]Read from MH i2c: E2 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0E 00 [18:44:32]MH_I2C_Read... [18:44:32]Read from MH i2c: E2 0E 00 0B 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 41 [18:44:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:44:32]wFMCommunicate OK [18:44:32]SAM_PROTO_GetShiftState done [18:44:32]FM_GetShiftState done [18:44:32]req_shift_opened done [18:44:32]requested_item shift.open_date is exist - process it [18:44:32]req_shift_open_date [18:44:32]req_shift_open_date done [18:44:32]produce_requested_data done [18:44:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112391,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:44:32]process_action_free close_receipt [18:44:32]json_value_free [18:44:32]json_value_free done [18:44:32]process_json_proto returns [18:44:32]Send response to host [18:44:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112391,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:44:32]free response buf [18:44:32]execute_script done [18:44:32]execute_script returns [18:44:32]free content buf [18:44:32]Sock 9.Close socket [18:44:32]Sock 9.Thread stoped [18:44:36]OFD Sender: No OFD packet to send [18:44:41]OFD Sender: No OFD packet to send [18:44:46]OFD Sender: No OFD packet to send [18:44:51]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:05]accept exits with 10 [18:46:05]New connection [18:46:05]New thread 3066826084 created [18:46:05]Thread 3066682724 joined [18:46:05]Waiting for new connection... [18:46:05] Sock 10.Parse request [18:46:05]Sock 10.Check first char [18:46:05]Sock 10.First char is OK [18:46:05]request: POST /json_proto HTTP/1.0 [18:46:05]Method: POST [18:46:05]URL: /json_proto [18:46:05]Method is POST - this is cgi request [18:46:05]url: /json_proto [18:46:05]query_string will be loaded in cgi processing [18:46:05]execute_cgi json_proto POST (null) [18:46:05]execute_cgi path=json_proto method=POST [18:46:05]POST find Content-Length [18:46:05]Host: 172.17.96.197:8080 [18:46:05]Content-Length: 677 [18:46:05]Content-Type: application/json [18:46:05] [18:46:05]POST finish read [18:46:05]Found Content-Length = 677 [18:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [18:46:05]execute_script... [18:46: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)48694", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [18:46:05]POST & json_proto [18:46:05]process_json_proto [18:46:05]json parsed OK: [18:46:05]protocol is kg_v1.0 [18:46:05]action value=close_receipt [18:46:05]process_action close_receipt [18:46:05]cmd_close_receipt [18:46:05]MH_GetDate [18:46:05]Write to MH i2c: F0 00 00 0C 21 1C [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: F0 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: F0 09 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: F0 09 00 0C 21 00 6E 24 1C 66 E0 85 7F 64 81 [18:46:05]GetLastDocTimeStamp 1713120270 [18:46:05]current date 1713120366 [18:46:05]FM_GetShiftState [18:46:05]SAM_PROTO_GetShiftState [18:46:05]wFMCommunicate request_size=4 [18:46:05]MH_SAM_APDU [18:46:05]CAPDU: 80 13 01 00 [18:46:05]Write to MH i2c: E2 08 00 0D 21 80 13 01 00 00 00 00 00 AB [18:46:05]Write i2c OK [18:46:05]MH_I2C_Read... [18:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:05]Read from MH i2c: E2 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 0E 00 [18:46:05]MH_I2C_Read... [18:46:05]Read from MH i2c: E2 0E 00 0D 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 43 [18:46:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:46:05]wFMCommunicate OK [18:46:05]SAM_PROTO_GetShiftState done [18:46:05]FM_GetShiftState done [18:46:05]opened in 1713054696 [18:46:05]opened+sec_in_day 1713141096 [18:46:05]quantity*price = 65007 [18:46:05]sum+1 = 65008 [18:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 291 14.04.2024 18:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112392 ФПД: 228176630696892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184606&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112392&fm=228176630696892&tin=02508201610067®Number=0000000000094237&sum=65000 [18:46:06]StoreToDocumentArchive [18:46:06]shift 357 fd 112392 [18:46:06]save to /storage/0357/doc_00112392 [18:46:06]save last doc name /storage/0357/doc_00112392 to /storage/kkm_last_doc_name [18:46:06]save OK [18:46:06]Clear old archive folders... [18:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:46:06]tlvbuf is 00138900 [18:46:06]SAM_PROTO_ClearQueue [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 09 00 00 [18:46:06]Write to MH i2c: E2 08 00 1A 21 80 09 00 00 00 00 00 00 AD [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 1A 21 00 90 00 AF [18:46:06]RAPDU: 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_ClearQueue done [18:46:06]KKMCreateOFDPacket [18:46:06]OFDProtocolAddRootSTLVToBuf [18:46:06]FM_MakeSignedData [18:46:06]FM_MakeSignedData [18:46:06]SAM_PROTO_SignData [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 0D 01 02 [18:46:06]Write to MH i2c: E2 08 00 1B 21 80 0D 01 02 00 00 00 00 B5 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 1B 21 00 90 00 B0 [18:46:06]RAPDU: 90 00 [18:46:06]wFMCommunicate OK [18:46:06]wFMCommunicate request_size=255 [18:46:06]MH_SAM_APDU [18:46: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 23 01 00 00 F4 03 04 00 6E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B7 01 00 35 04 06 00 CF [18:46:06]Write to MH i2c: E2 02 01 1C 21 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 23 01 00 00 F4 03 04 00 6E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B7 01 00 35 04 06 00 CF 00 00 CE [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 1C 21 00 90 00 B1 [18:46:06]RAPDU: 90 00 [18:46:06]wFMCommunicate OK [18:46:06]wFMCommunicate request_size=10 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 0D 02 02 05 86 83 04 CB BC [18:46:06]Write to MH i2c: E2 0D 00 1D 21 80 0D 02 02 05 00 86 83 04 CB BC 00 00 56 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 03 00 1D 21 00 90 00 B2 [18:46:06]RAPDU: 90 00 [18:46:06]wFMCommunicate OK [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 0D 03 02 [18:46:06]Write to MH i2c: E2 08 00 1E 21 80 0D 03 02 00 00 00 00 BA [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0B 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 0B 00 1E 21 00 5B B7 D6 CC 12 22 32 4E 90 00 23 [18:46:06]RAPDU: 5B B7 D6 CC 12 22 32 4E 90 00 [18:46:06]wFMCommunicate OK [18:46:06]SAM_PROTO_SignData done [18:46:06]FM_MakeSignedData done [18:46:06]CreateOFDProtocolMessage [18:46:06]wFMCommunicate request_size=4 [18:46:06]MH_SAM_APDU [18:46:06]CAPDU: 80 11 00 00 [18:46:06]Write to MH i2c: E2 08 00 1F 21 80 11 00 00 00 00 00 00 BA [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:06]Read from MH i2c: E2 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: E2 17 00 1F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0B [18:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:46:06]wFMCommunicate OK [18:46:06]CreateOFDProtocolMessage done [18:46:06]OFDSenderStorePacket 112392 [18:46:06]StoreOFDPacket docnum=112392 [18:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 80 07 01 45 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 23 01 00 00 F4 03 04 00 6E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B7 01 00 35 04 06 00 CF 86 83 04 CB BC 5B B7 D6 CC 12 22 32 4E [18:46:06]CheckFolder [18:46:06]dirname=/storage/ofd_packets [18:46:06]CheckFolder done [18:46:06]ProducePacketName [18:46:06]name=ofd_packets/00112392 [18:46:06]NVStorageSaveData ofd_packets/00112392 [18:46:06]File name is /storage/ofd_packets/00112392 [18:46:06]Write 301 bytes [18:46:06]NVStorageSaveData done [18:46:06]OFDSenderStorePacket done [18:46:06]KKMCreateOFDPacket done [18:46:06]NVStorageSaveData kkm_last_timestamp [18:46:06]File name is /storage/kkm_last_timestamp [18:46:06]Write 4 bytes [18:46:06]NVStorageSaveData done [18:46:06]ExternCall_PrintAddStr [18:46:06]wPrintStart [18:46:06]Write to MH i2c: 01 00 00 20 21 41 [18:46:06]Write i2c OK [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 07 00 [18:46:06]MH_I2C_Read... [18:46:06]Read from MH i2c: 01 07 00 20 21 00 00 00 00 00 FF 0F 56 [18:46:06]RasterBufferAndPrint [18:46:06]line Счет N : (1)48694 [18:46:06]line ИНН: 02508201610067 [18:46:06]line Контрольно-Кассовый Чек [18:46:06]line ПРОДАЖА [18:46:06]line ТРК (МРК, ГНК) : 11 [18:46:06]line Товар: 2710124130 [18:46:06]line Аи-92-К-5 [18:46:06]line 10.110 * 64.30 [18:46:06]line = 650.07 [18:46:06]line НДС 12% НСП 1% [18:46:06]line > о реализуемом товаре [18:46:06]line ОКРУГЛЕНИЕ: -0.07 [18:46:06]line ИТОГО: 650.00 [18:46:06]line Внесено: 650.00 [18:46:06]line СДАЧА: 0.00 [18:46:06]line НСП 1% : 5.75 [18:46:06]line НДС 12% : 69.03 [18:46:06]line Наличными: 650.00 [18:46:06]line Безнал.: 0.00 [18:46:06]line Место: АЗС № 47 "Партнер Нефть" [18:46:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:46:06]line СНО: Общий режим [18:46:06]line Чек 291 14.04.2024 18:46 [18:46:06]line Смена: 357 ФФД: 1.0 [18:46:06]line ЗНМ: 0300000138 [18:46:06]line РНМ: 0000000000094237 [18:46:06]line Версия ККМ: 001 [18:46:06]line ФМ: 0000000000875019 [18:46:06]line ФД: 112392 [18:46:06]line ФПД: 228176630696892 [18:46:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T184606&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112392&fm=228176630696892&tin=02508201610067®Number=0000000000094237&sum=65000 [18:46:07]OFD Sender: Processing packet 112392 [packets to send 71, broken 70] [18:46:07]ProducePacketName [18:46:07]name=ofd_packets/00112392 [18:46:07]OFD Sender: To server: pG, [18:46:07]CommunicateWithHost lk.salyk.kg:30040 [18:46:07]ConnectInit lk.salyk.kg [18:46:07]written 0, free lines is 4095 [18:46:07]Connected sock=9 [18:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 80 07 01 45 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 23 01 00 00 F4 03 04 00 6E 24 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B7 01 00 35 04 06 00 CF 86 83 04 CB BC 5B B7 D6 CC 12 22 32 4E [18:46:07]Write to MH i2c: 01 00 00 4B 21 6C [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 07 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: 01 07 00 4B 21 00 00 00 00 00 DC 0C 5B [18:46:07]RasterBufferAndPrint [18:46:07]line [18:46:07]line [18:46:07]line [18:46:07]line [18:46:07]line [18:46:07]written 0, free lines is 3298 [18:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 75 47 47 00 91 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 08 B7 01 00 F4 03 04 00 F9 CB 1B 66 B6 04 01 00 00 1C FF 42 EB 49 15 0A 48 [18:46:07]CommunicateWithHost err = 0 [18:46:07]CheckOFDResponse [18:46:07]1017 (14) - 77093643461234 [18:46:07]1041 (16) - 0000000000875019 [18:46:07]1040 (4) - 112392 [18:46:07]1012 (4) - 14.04.2024 12:28 [18:46:07]1206 (1) - 0 [18:46:07]OFD Sender: Remove packet 112392 [18:46:07]ProducePacketName [18:46:07]name=ofd_packets/00112392 [18:46:07]NVStorageDeleteData [18:46:07]MH_Cut [18:46:07]Write to MH i2c: D1 01 00 52 21 01 45 [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: D1 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: D1 01 00 [18:46:07]MH_I2C_Read... [18:46:07]Read from MH i2c: D1 01 00 52 21 00 44 [18:46:07]Write to MH i2c: 01 00 00 53 21 74 [18:46:07]Write i2c OK [18:46:07]MH_I2C_Read... [18:46:08]OFD Sender: No OFD packet to send [18:46:08]*** Cut start [18:46:08]*** Partial cut [18:46:08]*** CUTSNS_PIN = 1 [18:46:08]*** CUTSNS_PIN = 0 [18:46:08]*** Brake cut motor [18:46:09]Read from MH i2c: 01 [18:46:09]MH_I2C_Read... [18:46:09]*** Stop cut motor [18:46:09]*** Cut end [18:46:09]Read from MH i2c: 01 07 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: 01 07 00 53 21 00 00 00 00 00 FF 0F 89 [18:46:09]process_action close_receipt done [18:46:09]requested_data is exist [18:46:09]produce_requested_data [18:46:09]requested_item fm.sn is exist - process it [18:46:09]wFMCommunicate request_size=4 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 11 00 00 [18:46:09]Write to MH i2c: E2 08 00 54 21 80 11 00 00 00 00 00 00 EF [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 17 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 17 00 54 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 40 [18:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:46:09]wFMCommunicate OK [18:46:09]requested_item fd.num is exist - process it [18:46:09]SAM_PROTO_GetFieldsCounters [18:46:09]wFMCommunicate request_size=4 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 13 00 00 [18:46:09]Write to MH i2c: E2 08 00 55 21 80 13 00 00 00 00 00 00 F2 [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 62 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 62 00 55 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 08 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [18:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 08 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:46:09]wFMCommunicate OK [18:46:09]SAM_PROTO_GetFieldsCounters done [18:46:09]requested_item shift.num is exist - process it [18:46:09]requested_item shift.opened is exist - process it [18:46:09]req_shift_opened [18:46:09]FM_GetShiftState [18:46:09]SAM_PROTO_GetShiftState [18:46:09]wFMCommunicate request_size=4 [18:46:09]MH_SAM_APDU [18:46:09]CAPDU: 80 13 01 00 [18:46:09]Write to MH i2c: E2 08 00 56 21 80 13 01 00 00 00 00 00 F4 [18:46:09]Write i2c OK [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 [18:46:09]MH_I2C_Read... [18:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:46:09]Read from MH i2c: E2 0E 00 [18:46:09]MH_I2C_Read... [18:46:09]Read from MH i2c: E2 0E 00 56 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8C [18:46:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:46:09]wFMCommunicate OK [18:46:09]SAM_PROTO_GetShiftState done [18:46:09]FM_GetShiftState done [18:46:09]req_shift_opened done [18:46:09]requested_item shift.open_date is exist - process it [18:46:09]req_shift_open_date [18:46:09]req_shift_open_date done [18:46:09]produce_requested_data done [18:46:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112392,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:46:09]process_action_free close_receipt [18:46:09]json_value_free [18:46:09]json_value_free done [18:46:09]process_json_proto returns [18:46:09]Send response to host [18:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112392,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:46:09]free response buf [18:46:09]execute_script done [18:46:09]execute_script returns [18:46:09]free content buf [18:46:09]Sock 10.Close socket [18:46:09]Sock 10.Thread stoped [18:46:13]OFD Sender: No OFD packet to send [18:46:18]OFD Sender: No OFD packet to send [18:46:23]OFD Sender: No OFD packet to send [18:46:28]OFD Sender: No OFD packet to send [18:46:33]OFD Sender: No OFD packet to send [18:46:38]OFD Sender: No OFD packet to send [18:46:43]OFD Sender: No OFD packet to send [18:46:48]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:16]accept exits with 8 [18:50:16]New connection [18:50:16]New thread 3066682724 created [18:50:16]Thread 3066826084 joined [18:50:16]Waiting for new connection... [18:50:16] Sock 8.Parse request [18:50:16]Sock 8.Check first char [18:50:16]Sock 8.First char is OK [18:50:16]request: POST /json_proto HTTP/1.0 [18:50:16]Method: POST [18:50:16]URL: /json_proto [18:50:16]Method is POST - this is cgi request [18:50:16]url: /json_proto [18:50:16]query_string will be loaded in cgi processing [18:50:16]execute_cgi json_proto POST (null) [18:50:16]execute_cgi path=json_proto method=POST [18:50:16]POST find Content-Length [18:50:16]Host: 172.17.96.197:8080 [18:50:16]Content-Length: 677 [18:50:16]Content-Type: application/json [18:50:16] [18:50:16]POST finish read [18:50:16]Found Content-Length = 677 [18:50:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [18:50:16]execute_script... [18:50: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)48695", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.110, "sum" : 650.07, "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" ] } } [18:50:16]POST & json_proto [18:50:16]process_json_proto [18:50:16]json parsed OK: [18:50:16]protocol is kg_v1.0 [18:50:16]action value=close_receipt [18:50:16]process_action close_receipt [18:50:16]cmd_close_receipt [18:50:16]MH_GetDate [18:50:16]Write to MH i2c: F0 00 00 57 21 67 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: F0 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: F0 09 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: F0 09 00 57 21 00 69 25 1C 66 E0 85 7F 64 C8 [18:50:16]GetLastDocTimeStamp 1713120366 [18:50:16]current date 1713120617 [18:50:16]FM_GetShiftState [18:50:16]SAM_PROTO_GetShiftState [18:50:16]wFMCommunicate request_size=4 [18:50:16]MH_SAM_APDU [18:50:16]CAPDU: 80 13 01 00 [18:50:16]Write to MH i2c: E2 08 00 58 21 80 13 01 00 00 00 00 00 F6 [18:50:16]Write i2c OK [18:50:16]MH_I2C_Read... [18:50:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:16]Read from MH i2c: E2 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 0E 00 [18:50:16]MH_I2C_Read... [18:50:16]Read from MH i2c: E2 0E 00 58 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8E [18:50:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:50:16]wFMCommunicate OK [18:50:16]SAM_PROTO_GetShiftState done [18:50:16]FM_GetShiftState done [18:50:16]opened in 1713054696 [18:50:16]opened+sec_in_day 1713141096 [18:50:16]quantity*price = 65007 [18:50:16]sum+1 = 65008 [18:50:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 292 14.04.2024 18:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112393 ФПД: 167595696582654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112393&fm=167595696582654&tin=02508201610067®Number=0000000000094237&sum=65000 [18:50:17]StoreToDocumentArchive [18:50:17]shift 357 fd 112393 [18:50:17]save to /storage/0357/doc_00112393 [18:50:17]save last doc name /storage/0357/doc_00112393 to /storage/kkm_last_doc_name [18:50:17]save OK [18:50:17]Clear old archive folders... [18:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:17]tlvbuf is 001384C0 [18:50:17]SAM_PROTO_ClearQueue [18:50:17]wFMCommunicate request_size=4 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 09 00 00 [18:50:17]Write to MH i2c: E2 08 00 65 21 80 09 00 00 00 00 00 00 F8 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 65 21 00 90 00 FA [18:50:17]RAPDU: 90 00 [18:50:17]wFMCommunicate OK [18:50:17]SAM_PROTO_ClearQueue done [18:50:17]KKMCreateOFDPacket [18:50:17]OFDProtocolAddRootSTLVToBuf [18:50:17]FM_MakeSignedData [18:50:17]FM_MakeSignedData [18:50:17]SAM_PROTO_SignData [18:50:17]wFMCommunicate request_size=4 [18:50:17]MH_SAM_APDU [18:50:17]CAPDU: 80 0D 01 02 [18:50:17]Write to MH i2c: E2 08 00 66 21 80 0D 01 02 00 00 00 00 00 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:17]Read from MH i2c: E2 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 [18:50:17]MH_I2C_Read... [18:50:17]Read from MH i2c: E2 03 00 66 21 00 90 00 FB [18:50:17]RAPDU: 90 00 [18:50:17]wFMCommunicate OK [18:50:17]wFMCommunicate request_size=255 [18:50:17]MH_SAM_APDU [18:50:17]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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 24 01 00 00 F4 03 04 00 69 25 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B7 01 00 35 04 06 00 98 [18:50:17]Write to MH i2c: E2 02 01 67 21 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 24 01 00 00 F4 03 04 00 69 25 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B7 01 00 35 04 06 00 98 00 00 E0 [18:50:17]Write i2c OK [18:50:17]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 67 21 00 90 00 FC [18:50:18]RAPDU: 90 00 [18:50:18]wFMCommunicate OK [18:50:18]wFMCommunicate request_size=10 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 0D 02 02 05 6D 69 F5 EF FE [18:50:18]Write to MH i2c: E2 0D 00 68 21 80 0D 02 02 05 00 6D 69 F5 EF FE 00 00 C5 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 03 00 68 21 00 90 00 FD [18:50:18]RAPDU: 90 00 [18:50:18]wFMCommunicate OK [18:50:18]wFMCommunicate request_size=4 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 0D 03 02 [18:50:18]Write to MH i2c: E2 08 00 69 21 80 0D 03 02 00 00 00 00 05 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 0B 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 0B 00 69 21 00 37 39 74 69 A4 3F 13 08 90 00 51 [18:50:18]RAPDU: 37 39 74 69 A4 3F 13 08 90 00 [18:50:18]wFMCommunicate OK [18:50:18]SAM_PROTO_SignData done [18:50:18]FM_MakeSignedData done [18:50:18]CreateOFDProtocolMessage [18:50:18]wFMCommunicate request_size=4 [18:50:18]MH_SAM_APDU [18:50:18]CAPDU: 80 11 00 00 [18:50:18]Write to MH i2c: E2 08 00 6A 21 80 11 00 00 00 00 00 00 05 [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:18]Read from MH i2c: E2 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 17 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: E2 17 00 6A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 56 [18:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:50:18]wFMCommunicate OK [18:50:18]CreateOFDProtocolMessage done [18:50:18]OFDSenderStorePacket 112393 [18:50:18]StoreOFDPacket docnum=112393 [18:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 73 FC 07 01 E8 BA 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 24 01 00 00 F4 03 04 00 69 25 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B7 01 00 35 04 06 00 98 6D 69 F5 EF FE 37 39 74 69 A4 3F 13 08 [18:50:18]CheckFolder [18:50:18]dirname=/storage/ofd_packets [18:50:18]CheckFolder done [18:50:18]ProducePacketName [18:50:18]name=ofd_packets/00112393 [18:50:18]NVStorageSaveData ofd_packets/00112393 [18:50:18]File name is /storage/ofd_packets/00112393 [18:50:18]Write 301 bytes [18:50:18]NVStorageSaveData done [18:50:18]OFDSenderStorePacket done [18:50:18]KKMCreateOFDPacket done [18:50:18]NVStorageSaveData kkm_last_timestamp [18:50:18]File name is /storage/kkm_last_timestamp [18:50:18]Write 4 bytes [18:50:18]NVStorageSaveData done [18:50:18]ExternCall_PrintAddStr [18:50:18]wPrintStart [18:50:18]Write to MH i2c: 01 00 00 6B 21 8C [18:50:18]Write i2c OK [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 07 00 [18:50:18]MH_I2C_Read... [18:50:18]Read from MH i2c: 01 07 00 6B 21 00 00 00 00 00 FF 0F A1 [18:50:18]RasterBufferAndPrint [18:50:18]line Счет N : (1)48695 [18:50:18]line ИНН: 02508201610067 [18:50:18]line Контрольно-Кассовый Чек [18:50:18]line ПРОДАЖА [18:50:18]line ТРК (МРК, ГНК) : 11 [18:50:18]line Товар: 2710124130 [18:50:18]line Аи-92-К-5 [18:50:18]line 10.110 * 64.30 [18:50:18]line = 650.07 [18:50:18]line НДС 12% НСП 1% [18:50:18]line > о реализуемом товаре [18:50:18]line ОКРУГЛЕНИЕ: -0.07 [18:50:18]line ИТОГО: 650.00 [18:50:18]line Внесено: 650.00 [18:50:18]line СДАЧА: 0.00 [18:50:18]line НСП 1% : 5.75 [18:50:18]line НДС 12% : 69.03 [18:50:18]line Наличными: 650.00 [18:50:18]line Безнал.: 0.00 [18:50:18]line Место: АЗС № 47 "Партнер Нефть" [18:50:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:50:18]line СНО: Общий режим [18:50:18]line Чек 292 14.04.2024 18:50 [18:50:18]line Смена: 357 ФФД: 1.0 [18:50:18]line ЗНМ: 0300000138 [18:50:18]line РНМ: 0000000000094237 [18:50:18]line Версия ККМ: 001 [18:50:18]line ФМ: 0000000000875019 [18:50:18]line ФД: 112393 [18:50:18]line ФПД: 167595696582654 [18:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112393&fm=167595696582654&tin=02508201610067®Number=0000000000094237&sum=65000 [18:50:18]OFD Sender: Processing packet 112393 [packets to send 71, broken 70] [18:50:18]ProducePacketName [18:50:18]name=ofd_packets/00112393 [18:50:18]OFD Sender: To server: pG, [18:50:18]CommunicateWithHost lk.salyk.kg:30040 [18:50:18]ConnectInit lk.salyk.kg [18:50:18]written 0, free lines is 4095 [18:50:18]Connected sock=10 [18:50:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 73 FC 07 01 E8 BA 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 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 24 01 00 00 F4 03 04 00 69 25 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B7 01 00 35 04 06 00 98 6D 69 F5 EF FE 37 39 74 69 A4 3F 13 08 [18:50:19]Write to MH i2c: 01 00 00 96 21 B7 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 07 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: 01 07 00 96 21 00 00 00 00 00 D7 0C A1 [18:50:19]RasterBufferAndPrint [18:50:19]line [18:50:19]line [18:50:19]line [18:50:19]line [18:50:19]line [18:50:19]written 0, free lines is 3294 [18:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 60 A1 47 00 9A 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 09 B7 01 00 F4 03 04 00 F4 CC 1B 66 B6 04 01 00 00 98 E6 3B 3B 07 BF 0C E2 [18:50:19]CommunicateWithHost err = 0 [18:50:19]CheckOFDResponse [18:50:19]1017 (14) - 77093643461234 [18:50:19]1041 (16) - 0000000000875019 [18:50:19]1040 (4) - 112393 [18:50:19]1012 (4) - 14.04.2024 12:32 [18:50:19]1206 (1) - 0 [18:50:19]OFD Sender: Remove packet 112393 [18:50:19]ProducePacketName [18:50:19]name=ofd_packets/00112393 [18:50:19]NVStorageDeleteData [18:50:19]MH_Cut [18:50:19]Write to MH i2c: D1 01 00 9D 21 01 90 [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: D1 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: D1 01 00 [18:50:19]MH_I2C_Read... [18:50:19]Read from MH i2c: D1 01 00 9D 21 00 8F [18:50:19]Write to MH i2c: 01 00 00 9E 21 BF [18:50:19]Write i2c OK [18:50:19]MH_I2C_Read... [18:50:19]OFD Sender: No OFD packet to send [18:50:19]*** Cut start [18:50:19]*** Partial cut [18:50:19]*** CUTSNS_PIN = 1 [18:50:19]*** CUTSNS_PIN = 0 [18:50:20]*** Brake cut motor [18:50:20]Read from MH i2c: 01 [18:50:20]MH_I2C_Read... [18:50:20]*** Stop cut motor [18:50:20]*** Cut end [18:50:20]Read from MH i2c: 01 07 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: 01 07 00 9E 21 00 00 00 00 00 FF 0F D4 [18:50:20]process_action close_receipt done [18:50:20]requested_data is exist [18:50:20]produce_requested_data [18:50:20]requested_item fm.sn is exist - process it [18:50:20]wFMCommunicate request_size=4 [18:50:20]MH_SAM_APDU [18:50:20]CAPDU: 80 11 00 00 [18:50:20]Write to MH i2c: E2 08 00 9F 21 80 11 00 00 00 00 00 00 3A [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 [18:50:20]MH_I2C_Read... [18:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:20]Read from MH i2c: E2 17 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 17 00 9F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8B [18:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:50:20]wFMCommunicate OK [18:50:20]requested_item fd.num is exist - process it [18:50:20]SAM_PROTO_GetFieldsCounters [18:50:20]wFMCommunicate request_size=4 [18:50:20]MH_SAM_APDU [18:50:20]CAPDU: 80 13 00 00 [18:50:20]Write to MH i2c: E2 08 00 A0 21 80 13 00 00 00 00 00 00 3D [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:20]Read from MH i2c: E2 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 62 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 62 00 A0 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 09 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [18:50:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 09 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:20]wFMCommunicate OK [18:50:20]SAM_PROTO_GetFieldsCounters done [18:50:20]requested_item shift.num is exist - process it [18:50:20]requested_item shift.opened is exist - process it [18:50:20]req_shift_opened [18:50:20]FM_GetShiftState [18:50:20]SAM_PROTO_GetShiftState [18:50:20]wFMCommunicate request_size=4 [18:50:20]MH_SAM_APDU [18:50:20]CAPDU: 80 13 01 00 [18:50:20]Write to MH i2c: E2 08 00 A1 21 80 13 01 00 00 00 00 00 3F [18:50:20]Write i2c OK [18:50:20]MH_I2C_Read... [18:50:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:20]Read from MH i2c: E2 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 0E 00 [18:50:20]MH_I2C_Read... [18:50:20]Read from MH i2c: E2 0E 00 A1 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D7 [18:50:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:50:20]wFMCommunicate OK [18:50:20]SAM_PROTO_GetShiftState done [18:50:20]FM_GetShiftState done [18:50:20]req_shift_opened done [18:50:20]requested_item shift.open_date is exist - process it [18:50:20]req_shift_open_date [18:50:20]req_shift_open_date done [18:50:20]produce_requested_data done [18:50:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112393,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:50:20]process_action_free close_receipt [18:50:20]json_value_free [18:50:20]json_value_free done [18:50:20]process_json_proto returns [18:50:20]Send response to host [18:50:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112393,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:50:20]free response buf [18:50:20]execute_script done [18:50:20]execute_script returns [18:50:20]free content buf [18:50:20]Sock 8.Close socket [18:50:20]Sock 8.Thread stoped [18:50:24]OFD Sender: No OFD packet to send [18:50:29]OFD Sender: No OFD packet to send [18:50:34]OFD Sender: No OFD packet to send [18:50:39]OFD Sender: No OFD packet to send [18:50:44]OFD Sender: No OFD packet to send [18:50:49]OFD Sender: No OFD packet to send [18:50:54]OFD Sender: No OFD packet to send [18:50:59]OFD Sender: No OFD packet to send [18:51:04]OFD Sender: No OFD packet to send [18:51:09]OFD Sender: No OFD packet to send [18:51:14]OFD Sender: No OFD packet to send [18:51:19]OFD Sender: No OFD packet to send [18:51:24]OFD Sender: No OFD packet to send [18:51:29]OFD Sender: No OFD packet to send [18:51:34]OFD Sender: No OFD packet to send [18:51:39]OFD Sender: No OFD packet to send [18:51:44]OFD Sender: No OFD packet to send [18:51:49]OFD Sender: No OFD packet to send [18:51:54]OFD Sender: No OFD packet to send [18:51:59]OFD Sender: No OFD packet to send [18:52:04]OFD Sender: No OFD packet to send [18:52:09]OFD Sender: No OFD packet to send [18:52:14]OFD Sender: No OFD packet to send [18:52:19]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:24]OFD Sender: No OFD packet to send [18:53:29]OFD Sender: No OFD packet to send [18:53:34]OFD Sender: No OFD packet to send [18:53:39]OFD Sender: No OFD packet to send [18:53:44]OFD Sender: No OFD packet to send [18:53:49]OFD Sender: No OFD packet to send [18:53:54]OFD Sender: No OFD packet to send [18:53:59]OFD Sender: No OFD packet to send [18:54:04]OFD Sender: No OFD packet to send [18:54:09]OFD Sender: No OFD packet to send [18:54:14]OFD Sender: No OFD packet to send [18:54:19]OFD Sender: No OFD packet to send [18:54:24]OFD Sender: No OFD packet to send [18:54:29]OFD Sender: No OFD packet to send [18:54:34]OFD Sender: No OFD packet to send [18:54:39]OFD Sender: No OFD packet to send [18:54:44]OFD Sender: No OFD packet to send [18:54:49]OFD Sender: No OFD packet to send [18:54:54]OFD Sender: No OFD packet to send [18:54:59]OFD Sender: No OFD packet to send [18:55:04]OFD Sender: No OFD packet to send [18:55:09]OFD Sender: No OFD packet to send [18:55:14]OFD Sender: No OFD packet to send [18:55:19]OFD Sender: No OFD packet to send [18:55:24]OFD Sender: No OFD packet to send [18:55:29]OFD Sender: No OFD packet to send [18:55:34]OFD Sender: No OFD packet to send [18:55:39]OFD Sender: No OFD packet to send [18:55:44]OFD Sender: No OFD packet to send [18:55:49]OFD Sender: No OFD packet to send [18:55:54]OFD Sender: No OFD packet to send [18:55:59]OFD Sender: No OFD packet to send [18:56:04]OFD Sender: No OFD packet to send [18:56:09]OFD Sender: No OFD packet to send [18:56:14]OFD Sender: No OFD packet to send [18:56:19]OFD Sender: No OFD packet to send [18:56:24]OFD Sender: No OFD packet to send [18:56:29]OFD Sender: No OFD packet to send [18:56:34]OFD Sender: No OFD packet to send [18:56:39]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:00]accept exits with 9 [18:57:00]New connection [18:57:00]New thread 3066826084 created [18:57:00]Thread 3066682724 joined [18:57:00]Waiting for new connection... [18:57:00] Sock 9.Parse request [18:57:00]Sock 9.Check first char [18:57:00]Sock 9.First char is OK [18:57:00]request: POST /json_proto HTTP/1.0 [18:57:00]Method: POST [18:57:00]URL: /json_proto [18:57:00]Method is POST - this is cgi request [18:57:00]url: /json_proto [18:57:00]query_string will be loaded in cgi processing [18:57:00]execute_cgi json_proto POST (null) [18:57:00]execute_cgi path=json_proto method=POST [18:57:00]POST find Content-Length [18:57:00]Host: 172.17.96.197:8080 [18:57:00]Content-Length: 676 [18:57:00]Content-Type: application/json [18:57:00] [18:57:00]POST finish read [18:57:00]Found Content-Length = 676 [18:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [18:57:00]execute_script... [18:57: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)48696", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [18:57:00]POST & json_proto [18:57:00]process_json_proto [18:57:00]json parsed OK: [18:57:00]protocol is kg_v1.0 [18:57:00]action value=close_receipt [18:57:00]process_action close_receipt [18:57:00]cmd_close_receipt [18:57:00]MH_GetDate [18:57:00]Write to MH i2c: F0 00 00 A2 21 B2 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 A2 21 00 FD 26 1C 66 E0 85 7F 64 A8 [18:57:00]GetLastDocTimeStamp 1713120617 [18:57:00]current date 1713121021 [18:57:00]FM_GetShiftState [18:57:00]SAM_PROTO_GetShiftState [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 13 01 00 [18:57:00]Write to MH i2c: E2 08 00 A3 21 80 13 01 00 00 00 00 00 41 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:00]Read from MH i2c: E2 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0E 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: E2 0E 00 A3 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D9 [18:57:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:57:00]wFMCommunicate OK [18:57:00]SAM_PROTO_GetShiftState done [18:57:00]FM_GetShiftState done [18:57:00]opened in 1713054696 [18:57:00]opened+sec_in_day 1713141096 [18:57:00]quantity*price = 50025 [18:57:00]sum+1 = 50026 [18:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 293 14.04.2024 18:57 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112394 ФПД: 198471757870935 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185701&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112394&fm=198471757870935&tin=02508201610067®Number=0000000000094237&sum=50000 [18:57:01]StoreToDocumentArchive [18:57:01]shift 357 fd 112394 [18:57:01]save to /storage/0357/doc_00112394 [18:57:01]save last doc name /storage/0357/doc_00112394 to /storage/kkm_last_doc_name [18:57:01]save OK [18:57:01]Clear old archive folders... [18:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:57:01]tlvbuf is B6F36840 [18:57:01]SAM_PROTO_ClearQueue [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 09 00 00 [18:57:01]Write to MH i2c: E2 08 00 B0 21 80 09 00 00 00 00 00 00 43 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B0 21 00 90 00 45 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_ClearQueue done [18:57:01]KKMCreateOFDPacket [18:57:01]OFDProtocolAddRootSTLVToBuf [18:57:01]FM_MakeSignedData [18:57:01]FM_MakeSignedData [18:57:01]SAM_PROTO_SignData [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 01 02 [18:57:01]Write to MH i2c: E2 08 00 B1 21 80 0D 01 02 00 00 00 00 4B [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B1 21 00 90 00 46 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=255 [18:57:01]MH_SAM_APDU [18:57:01]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 25 01 00 00 F4 03 04 00 FD 26 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B7 01 00 35 04 06 00 B4 [18:57:01]Write to MH i2c: E2 02 01 B2 21 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 25 01 00 00 F4 03 04 00 FD 26 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B7 01 00 35 04 06 00 B4 00 00 95 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B2 21 00 90 00 47 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=10 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 02 02 05 82 4E A0 37 57 [18:57:01]Write to MH i2c: E2 0D 00 B3 21 80 0D 02 02 05 00 82 4E A0 37 57 00 00 56 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 03 00 B3 21 00 90 00 48 [18:57:01]RAPDU: 90 00 [18:57:01]wFMCommunicate OK [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 0D 03 02 [18:57:01]Write to MH i2c: E2 08 00 B4 21 80 0D 03 02 00 00 00 00 50 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0B 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0B 00 B4 21 00 D5 05 D7 D5 83 75 8D E2 90 00 3E [18:57:01]RAPDU: D5 05 D7 D5 83 75 8D E2 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_SignData done [18:57:01]FM_MakeSignedData done [18:57:01]CreateOFDProtocolMessage [18:57:01]wFMCommunicate request_size=4 [18:57:01]MH_SAM_APDU [18:57:01]CAPDU: 80 11 00 00 [18:57:01]Write to MH i2c: E2 08 00 B5 21 80 11 00 00 00 00 00 00 50 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 17 00 B5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A1 [18:57:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:57:01]wFMCommunicate OK [18:57:01]CreateOFDProtocolMessage done [18:57:01]OFDSenderStorePacket 112394 [18:57:01]StoreOFDPacket docnum=112394 [18:57:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3F 97 07 01 EB 0F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 25 01 00 00 F4 03 04 00 FD 26 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B7 01 00 35 04 06 00 B4 82 4E A0 37 57 D5 05 D7 D5 83 75 8D E2 [18:57:01]CheckFolder [18:57:01]dirname=/storage/ofd_packets [18:57:01]CheckFolder done [18:57:01]ProducePacketName [18:57:01]name=ofd_packets/00112394 [18:57:01]NVStorageSaveData ofd_packets/00112394 [18:57:01]File name is /storage/ofd_packets/00112394 [18:57:01]Write 301 bytes [18:57:01]NVStorageSaveData done [18:57:01]OFDSenderStorePacket done [18:57:01]KKMCreateOFDPacket done [18:57:01]NVStorageSaveData kkm_last_timestamp [18:57:01]File name is /storage/kkm_last_timestamp [18:57:01]Write 4 bytes [18:57:01]NVStorageSaveData done [18:57:01]ExternCall_PrintAddStr [18:57:01]wPrintStart [18:57:01]Write to MH i2c: 01 00 00 B6 21 D7 [18:57:01]Write i2c OK [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 FF 0F EC [18:57:01]RasterBufferAndPrint [18:57:01]line Счет N : (1)48696 [18:57:01]line ИНН: 02508201610067 [18:57:01]line Контрольно-Кассовый Чек [18:57:01]line ПРОДАЖА [18:57:01]line ТРК (МРК, ГНК) : 21 [18:57:01]line Товар: 2710124130 [18:57:01]line Аи-92-К-5 [18:57:01]line 7.780 * 64.30 [18:57:01]line = 500.25 [18:57:01]line НДС 12% НСП 1% [18:57:01]line > о реализуемом товаре [18:57:01]line ОКРУГЛЕНИЕ: -0.25 [18:57:01]line ИТОГО: 500.00 [18:57:01]line Внесено: 500.00 [18:57:01]line СДАЧА: 0.00 [18:57:01]line НСП 1% : 4.43 [18:57:01]line НДС 12% : 53.12 [18:57:01]line Наличными: 500.00 [18:57:01]line Безнал.: 0.00 [18:57:01]line Место: АЗС № 47 "Партнер Нефть" [18:57:01]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:57:01]line СНО: Общий режим [18:57:02]line Чек 293 14.04.2024 18:57 [18:57:02]line Смена: 357 ФФД: 1.0 [18:57:02]line ЗНМ: 0300000138 [18:57:02]line РНМ: 0000000000094237 [18:57:02]line Версия ККМ: 001 [18:57:02]line ФМ: 0000000000875019 [18:57:02]line ФД: 112394 [18:57:02]line ФПД: 198471757870935 [18:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185701&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112394&fm=198471757870935&tin=02508201610067®Number=0000000000094237&sum=50000 [18:57:02]OFD Sender: Processing packet 112394 [packets to send 71, broken 70] [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00112394 [18:57:02]OFD Sender: To server: pG, [18:57:02]CommunicateWithHost lk.salyk.kg:30040 [18:57:02]ConnectInit lk.salyk.kg [18:57:02]written 0, free lines is 4095 [18:57:02]Connected sock=10 [18:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3F 97 07 01 EB 0F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 25 01 00 00 F4 03 04 00 FD 26 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B7 01 00 35 04 06 00 B4 82 4E A0 37 57 D5 05 D7 D5 83 75 8D E2 [18:57:02]Write to MH i2c: 01 00 00 E1 21 02 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 E1 21 00 00 00 00 00 D8 0C ED [18:57:02]RasterBufferAndPrint [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]line [18:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E8 08 47 00 84 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0A B7 01 00 F4 03 04 00 88 CE 1B 66 B6 04 01 00 00 5A C7 71 ED 9C 35 D2 B5 [18:57:02]CommunicateWithHost err = 0 [18:57:02]CheckOFDResponse [18:57:02]1017 (14) - 77093643461234 [18:57:02]1041 (16) - 0000000000875019 [18:57:02]1040 (4) - 112394 [18:57:02]1012 (4) - 14.04.2024 12:39 [18:57:02]1206 (1) - 0 [18:57:02]OFD Sender: Remove packet 112394 [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00112394 [18:57:02]NVStorageDeleteData [18:57:02]written 0, free lines is 3295 [18:57:02]MH_Cut [18:57:02]Write to MH i2c: D1 01 00 E8 21 01 DB [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 01 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: D1 01 00 E8 21 00 DA [18:57:02]Write to MH i2c: 01 00 00 E9 21 0A [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:03]OFD Sender: No OFD packet to send [18:57:03]*** Cut start [18:57:03]*** Partial cut [18:57:03]*** CUTSNS_PIN = 1 [18:57:03]*** CUTSNS_PIN = 0 [18:57:03]*** Brake cut motor [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]*** Stop cut motor [18:57:04]*** Cut end [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 E9 21 00 00 00 00 00 FF 0F 1F [18:57:04]process_action close_receipt done [18:57:04]requested_data is exist [18:57:04]produce_requested_data [18:57:04]requested_item fm.sn is exist - process it [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 11 00 00 [18:57:04]Write to MH i2c: E2 08 00 EA 21 80 11 00 00 00 00 00 00 85 [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 EA 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D6 [18:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:57:04]wFMCommunicate OK [18:57:04]requested_item fd.num is exist - process it [18:57:04]SAM_PROTO_GetFieldsCounters [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 00 00 [18:57:04]Write to MH i2c: E2 08 00 EB 21 80 13 00 00 00 00 00 00 88 [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 EB 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [18:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetFieldsCounters done [18:57:04]requested_item shift.num is exist - process it [18:57:04]requested_item shift.opened is exist - process it [18:57:04]req_shift_opened [18:57:04]FM_GetShiftState [18:57:04]SAM_PROTO_GetShiftState [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 01 00 [18:57:04]Write to MH i2c: E2 08 00 EC 21 80 13 01 00 00 00 00 00 8A [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 EC 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 22 [18:57:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetShiftState done [18:57:04]FM_GetShiftState done [18:57:04]req_shift_opened done [18:57:04]requested_item shift.open_date is exist - process it [18:57:04]req_shift_open_date [18:57:04]req_shift_open_date done [18:57:04]produce_requested_data done [18:57:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112394,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:57:04]process_action_free close_receipt [18:57:04]json_value_free [18:57:04]json_value_free done [18:57:04]process_json_proto returns [18:57:04]Send response to host [18:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112394,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:57:04]free response buf [18:57:04]execute_script done [18:57:04]execute_script returns [18:57:04]free content buf [18:57:04]Sock 9.Close socket [18:57:04]Sock 9.Thread stoped [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:29]accept exits with 8 [18:58:29]New connection [18:58:29]New thread 3066682724 created [18:58:29]Thread 3066826084 joined [18:58:29]Waiting for new connection... [18:58:29] Sock 8.Parse request [18:58:29]Sock 8.Check first char [18:58:29]Sock 8.First char is OK [18:58:29]request: POST /json_proto HTTP/1.0 [18:58:29]Method: POST [18:58:29]URL: /json_proto [18:58:29]Method is POST - this is cgi request [18:58:29]url: /json_proto [18:58:29]query_string will be loaded in cgi processing [18:58:29]execute_cgi json_proto POST (null) [18:58:29]execute_cgi path=json_proto method=POST [18:58:29]POST find Content-Length [18:58:29]Host: 172.17.96.197:8080 [18:58:29]Content-Length: 681 [18:58:29]Content-Type: application/json [18:58:29] [18:58:29]POST finish read [18:58:29]Found Content-Length = 681 [18:58:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48697", "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.30, "quantity" : 15.560, "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" ] } } [18:58:29]execute_script... [18:58: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)48697", "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.30, "quantity" : 15.560, "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" ] } } [18:58:29]POST & json_proto [18:58:29]process_json_proto [18:58:29]json parsed OK: [18:58:29]protocol is kg_v1.0 [18:58:29]action value=close_receipt [18:58:29]process_action close_receipt [18:58:29]cmd_close_receipt [18:58:29]MH_GetDate [18:58:29]Write to MH i2c: F0 00 00 ED 21 FD [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: F0 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: F0 09 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: F0 09 00 ED 21 00 57 27 1C 66 E0 85 7F 64 4E [18:58:29]GetLastDocTimeStamp 1713121021 [18:58:29]current date 1713121111 [18:58:29]FM_GetShiftState [18:58:29]SAM_PROTO_GetShiftState [18:58:29]wFMCommunicate request_size=4 [18:58:29]MH_SAM_APDU [18:58:29]CAPDU: 80 13 01 00 [18:58:29]Write to MH i2c: E2 08 00 EE 21 80 13 01 00 00 00 00 00 8C [18:58:29]Write i2c OK [18:58:29]MH_I2C_Read... [18:58:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:29]Read from MH i2c: E2 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 0E 00 [18:58:29]MH_I2C_Read... [18:58:29]Read from MH i2c: E2 0E 00 EE 21 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 24 [18:58:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:58:29]wFMCommunicate OK [18:58:29]SAM_PROTO_GetShiftState done [18:58:29]FM_GetShiftState done [18:58:29]opened in 1713054696 [18:58:29]opened+sec_in_day 1713141096 [18:58:29]quantity*price = 100050 [18:58:29]sum+1 = 100052 [18:58:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 294 14.04.2024 18:58 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112395 ФПД: 141444433529307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185831&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112395&fm=141444433529307&tin=02508201610067®Number=0000000000094237&sum=100000 [18:58:31]StoreToDocumentArchive [18:58:31]shift 357 fd 112395 [18:58:31]save to /storage/0357/doc_00112395 [18:58:31]save last doc name /storage/0357/doc_00112395 to /storage/kkm_last_doc_name [18:58:31]save OK [18:58:31]Clear old archive folders... [18:58:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:58:31]tlvbuf is B6F362D0 [18:58:31]SAM_PROTO_ClearQueue [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 09 00 00 [18:58:31]Write to MH i2c: E2 08 00 FB 21 80 09 00 00 00 00 00 00 8E [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 FB 21 00 90 00 90 [18:58:31]RAPDU: 90 00 [18:58:31]wFMCommunicate OK [18:58:31]SAM_PROTO_ClearQueue done [18:58:31]KKMCreateOFDPacket [18:58:31]OFDProtocolAddRootSTLVToBuf [18:58:31]FM_MakeSignedData [18:58:31]FM_MakeSignedData [18:58:31]SAM_PROTO_SignData [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 0D 01 02 [18:58:31]Write to MH i2c: E2 08 00 FC 21 80 0D 01 02 00 00 00 00 96 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 FC 21 00 90 00 91 [18:58:31]RAPDU: 90 00 [18:58:31]wFMCommunicate OK [18:58:31]wFMCommunicate request_size=255 [18:58:31]MH_SAM_APDU [18:58: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 01 00 00 F4 03 04 00 57 27 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B7 01 00 35 04 06 00 80 [18:58:31]Write to MH i2c: E2 02 01 FD 21 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 3C 00 00 00 00 00 37 04 06 00 1E 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 01 00 00 F4 03 04 00 57 27 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B7 01 00 35 04 06 00 80 00 00 73 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 FD 21 00 90 00 92 [18:58:31]RAPDU: 90 00 [18:58:31]wFMCommunicate OK [18:58:31]wFMCommunicate request_size=10 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 0D 02 02 05 A4 99 37 49 DB [18:58:31]Write to MH i2c: E2 0D 00 FE 21 80 0D 02 02 05 00 A4 99 37 49 DB 00 00 3B [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 03 00 FE 21 00 90 00 93 [18:58:31]RAPDU: 90 00 [18:58:31]wFMCommunicate OK [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 0D 03 02 [18:58:31]Write to MH i2c: E2 08 00 FF 21 80 0D 03 02 00 00 00 00 9B [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 0B 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 0B 00 FF 21 00 6D 7D DB 14 5B 7D 45 54 90 00 E6 [18:58:31]RAPDU: 6D 7D DB 14 5B 7D 45 54 90 00 [18:58:31]wFMCommunicate OK [18:58:31]SAM_PROTO_SignData done [18:58:31]FM_MakeSignedData done [18:58:31]CreateOFDProtocolMessage [18:58:31]wFMCommunicate request_size=4 [18:58:31]MH_SAM_APDU [18:58:31]CAPDU: 80 11 00 00 [18:58:31]Write to MH i2c: E2 08 00 00 22 80 11 00 00 00 00 00 00 9C [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:31]Read from MH i2c: E2 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 17 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: E2 17 00 00 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [18:58:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:58:31]wFMCommunicate OK [18:58:31]CreateOFDProtocolMessage done [18:58:31]OFDSenderStorePacket 112395 [18:58:31]StoreOFDPacket docnum=112395 [18:58:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 70 53 07 01 23 F8 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 3C 00 00 00 00 00 37 04 06 00 1E 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 01 00 00 F4 03 04 00 57 27 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B7 01 00 35 04 06 00 80 A4 99 37 49 DB 6D 7D DB 14 5B 7D 45 54 [18:58:31]CheckFolder [18:58:31]dirname=/storage/ofd_packets [18:58:31]CheckFolder done [18:58:31]ProducePacketName [18:58:31]name=ofd_packets/00112395 [18:58:31]NVStorageSaveData ofd_packets/00112395 [18:58:31]File name is /storage/ofd_packets/00112395 [18:58:31]Write 301 bytes [18:58:31]NVStorageSaveData done [18:58:31]OFDSenderStorePacket done [18:58:31]KKMCreateOFDPacket done [18:58:31]NVStorageSaveData kkm_last_timestamp [18:58:31]File name is /storage/kkm_last_timestamp [18:58:31]Write 4 bytes [18:58:31]NVStorageSaveData done [18:58:31]ExternCall_PrintAddStr [18:58:31]wPrintStart [18:58:31]Write to MH i2c: 01 00 00 01 22 23 [18:58:31]Write i2c OK [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 07 00 [18:58:31]MH_I2C_Read... [18:58:31]Read from MH i2c: 01 07 00 01 22 00 00 00 00 00 FF 0F 38 [18:58:31]RasterBufferAndPrint [18:58:31]line Счет N : (1)48697 [18:58:31]line ИНН: 02508201610067 [18:58:31]line Контрольно-Кассовый Чек [18:58:31]line ПРОДАЖА [18:58:31]line ТРК (МРК, ГНК) : 42 [18:58:31]line Товар: 2710124130 [18:58:31]line Аи-92-К-5 [18:58:31]line 15.560 * 64.30 [18:58:31]line = 1000.51 [18:58:31]line НДС 12% НСП 1% [18:58:31]line > о реализуемом товаре [18:58:31]line ОКРУГЛЕНИЕ: -0.51 [18:58:31]line ИТОГО: 1000.00 [18:58:31]line Внесено: 1000.00 [18:58:31]line СДАЧА: 0.00 [18:58:31]line НСП 1% : 8.85 [18:58:31]line НДС 12% : 106.25 [18:58:31]line Наличными: 1000.00 [18:58:31]line Безнал.: 0.00 [18:58:31]line Место: АЗС № 47 "Партнер Нефть" [18:58:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [18:58:31]line СНО: Общий режим [18:58:31]line Чек 294 14.04.2024 18:58 [18:58:31]line Смена: 357 ФФД: 1.0 [18:58:31]line ЗНМ: 0300000138 [18:58:31]line РНМ: 0000000000094237 [18:58:31]line Версия ККМ: 001 [18:58:31]line ФМ: 0000000000875019 [18:58:31]line ФД: 112395 [18:58:31]line ФПД: 141444433529307 [18:58:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T185831&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112395&fm=141444433529307&tin=02508201610067®Number=0000000000094237&sum=100000 [18:58:32]OFD Sender: Processing packet 112395 [packets to send 71, broken 70] [18:58:32]ProducePacketName [18:58:32]name=ofd_packets/00112395 [18:58:32]OFD Sender: To server: pG, [18:58:32]CommunicateWithHost lk.salyk.kg:30040 [18:58:32]ConnectInit lk.salyk.kg [18:58:32]written 0, free lines is 4095 [18:58:32]Connected sock=10 [18:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 70 53 07 01 23 F8 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 3C 00 00 00 00 00 37 04 06 00 1E 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 01 00 00 F4 03 04 00 57 27 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B7 01 00 35 04 06 00 80 A4 99 37 49 DB 6D 7D DB 14 5B 7D 45 54 [18:58:32]Write to MH i2c: 01 00 00 2C 22 4E [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 07 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: 01 07 00 2C 22 00 00 00 00 00 E1 0C 42 [18:58:32]RasterBufferAndPrint [18:58:32]line [18:58:32]line [18:58:32]line [18:58:32]line [18:58:32]line [18:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4A F5 47 00 32 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0B B7 01 00 F4 03 04 00 E1 CE 1B 66 B6 04 01 00 00 44 07 69 65 10 DA 59 0B [18:58:32]CommunicateWithHost err = 0 [18:58:32]CheckOFDResponse [18:58:32]1017 (14) - 77093643461234 [18:58:32]1041 (16) - 0000000000875019 [18:58:32]1040 (4) - 112395 [18:58:32]1012 (4) - 14.04.2024 12:41 [18:58:32]1206 (1) - 0 [18:58:32]OFD Sender: Remove packet 112395 [18:58:32]ProducePacketName [18:58:32]name=ofd_packets/00112395 [18:58:32]NVStorageDeleteData [18:58:32]written 0, free lines is 3314 [18:58:32]MH_Cut [18:58:32]Write to MH i2c: D1 01 00 33 22 01 27 [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: D1 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: D1 01 00 [18:58:32]MH_I2C_Read... [18:58:32]Read from MH i2c: D1 01 00 33 22 00 26 [18:58:32]Write to MH i2c: 01 00 00 34 22 56 [18:58:32]Write i2c OK [18:58:32]MH_I2C_Read... [18:58:32]OFD Sender: No OFD packet to send [18:58:33]*** Cut start [18:58:33]*** Partial cut [18:58:33]*** CUTSNS_PIN = 1 [18:58:33]*** CUTSNS_PIN = 0 [18:58:33]*** Brake cut motor [18:58:33]Read from MH i2c: 01 [18:58:33]MH_I2C_Read... [18:58:33]*** Stop cut motor [18:58:33]*** Cut end [18:58:33]Read from MH i2c: 01 07 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: 01 07 00 34 22 00 00 00 00 00 FF 0F 6B [18:58:33]process_action close_receipt done [18:58:33]requested_data is exist [18:58:33]produce_requested_data [18:58:33]requested_item fm.sn is exist - process it [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 11 00 00 [18:58:33]Write to MH i2c: E2 08 00 35 22 80 11 00 00 00 00 00 00 D1 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:33]Read from MH i2c: E2 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 [18:58:33]MH_I2C_Read... [18:58:33]Read from MH i2c: E2 17 00 35 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 22 [18:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [18:58:33]wFMCommunicate OK [18:58:33]requested_item fd.num is exist - process it [18:58:33]SAM_PROTO_GetFieldsCounters [18:58:33]wFMCommunicate request_size=4 [18:58:33]MH_SAM_APDU [18:58:33]CAPDU: 80 13 00 00 [18:58:33]Write to MH i2c: E2 08 00 36 22 80 13 00 00 00 00 00 00 D4 [18:58:33]Write i2c OK [18:58:33]MH_I2C_Read... [18:58:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:34]Read from MH i2c: E2 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 62 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 62 00 36 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 91 [18:58:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:34]wFMCommunicate OK [18:58:34]SAM_PROTO_GetFieldsCounters done [18:58:34]requested_item shift.num is exist - process it [18:58:34]requested_item shift.opened is exist - process it [18:58:34]req_shift_opened [18:58:34]FM_GetShiftState [18:58:34]SAM_PROTO_GetShiftState [18:58:34]wFMCommunicate request_size=4 [18:58:34]MH_SAM_APDU [18:58:34]CAPDU: 80 13 01 00 [18:58:34]Write to MH i2c: E2 08 00 37 22 80 13 01 00 00 00 00 00 D6 [18:58:34]Write i2c OK [18:58:34]MH_I2C_Read... [18:58:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:34]Read from MH i2c: E2 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 0E 00 [18:58:34]MH_I2C_Read... [18:58:34]Read from MH i2c: E2 0E 00 37 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6E [18:58:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [18:58:34]wFMCommunicate OK [18:58:34]SAM_PROTO_GetShiftState done [18:58:34]FM_GetShiftState done [18:58:34]req_shift_opened done [18:58:34]requested_item shift.open_date is exist - process it [18:58:34]req_shift_open_date [18:58:34]req_shift_open_date done [18:58:34]produce_requested_data done [18:58:34]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112395,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [18:58:34]process_action_free close_receipt [18:58:34]json_value_free [18:58:34]json_value_free done [18:58:34]process_json_proto returns [18:58:34]Send response to host [18:58:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112395,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [18:58:34]free response buf [18:58:34]execute_script done [18:58:34]execute_script returns [18:58:34]free content buf [18:58:34]Sock 8.Close socket [18:58:34]Sock 8.Thread stoped [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:28]OFD Sender: No OFD packet to send [19:03:32]accept exits with 9 [19:03:32]New connection [19:03:32]New thread 3066826084 created [19:03:32]Thread 3066682724 joined [19:03:32]Waiting for new connection... [19:03:32] Sock 9.Parse request [19:03:32]Sock 9.Check first char [19:03:32]Sock 9.First char is OK [19:03:32]request: POST /json_proto HTTP/1.0 [19:03:32]Method: POST [19:03:32]URL: /json_proto [19:03:32]Method is POST - this is cgi request [19:03:32]url: /json_proto [19:03:32]query_string will be loaded in cgi processing [19:03:32]execute_cgi json_proto POST (null) [19:03:32]execute_cgi path=json_proto method=POST [19:03:32]POST find Content-Length [19:03:32]Host: 172.17.96.197:8080 [19:03:32]Content-Length: 676 [19:03:32]Content-Type: application/json [19:03:32] [19:03:32]POST finish read [19:03:32]Found Content-Length = 676 [19:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48698", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [19:03:32]execute_script... [19:03: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)48698", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [19:03:32]POST & json_proto [19:03:32]process_json_proto [19:03:32]json parsed OK: [19:03:32]protocol is kg_v1.0 [19:03:32]action value=close_receipt [19:03:32]process_action close_receipt [19:03:32]cmd_close_receipt [19:03:32]MH_GetDate [19:03:32]Write to MH i2c: F0 00 00 38 22 49 [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: F0 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: F0 09 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: F0 09 00 38 22 00 85 28 1C 66 E0 85 7F 64 C9 [19:03:32]GetLastDocTimeStamp 1713121111 [19:03:32]current date 1713121413 [19:03:32]FM_GetShiftState [19:03:32]SAM_PROTO_GetShiftState [19:03:32]wFMCommunicate request_size=4 [19:03:32]MH_SAM_APDU [19:03:32]CAPDU: 80 13 01 00 [19:03:32]Write to MH i2c: E2 08 00 39 22 80 13 01 00 00 00 00 00 D8 [19:03:32]Write i2c OK [19:03:32]MH_I2C_Read... [19:03:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:32]Read from MH i2c: E2 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 0E 00 [19:03:32]MH_I2C_Read... [19:03:32]Read from MH i2c: E2 0E 00 39 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 70 [19:03:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:03:32]wFMCommunicate OK [19:03:32]SAM_PROTO_GetShiftState done [19:03:32]FM_GetShiftState done [19:03:32]opened in 1713054696 [19:03:32]opened+sec_in_day 1713141096 [19:03:32]quantity*price = 20061 [19:03:32]sum+1 = 20063 [19:03:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 295 14.04.2024 19:03 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112396 ФПД: 67860535741880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T190333&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112396&fm=67860535741880&tin=02508201610067®Number=0000000000094237&sum=20000 [19:03:33]StoreToDocumentArchive [19:03:33]shift 357 fd 112396 [19:03:33]save to /storage/0357/doc_00112396 [19:03:33]save last doc name /storage/0357/doc_00112396 to /storage/kkm_last_doc_name [19:03:33]save OK [19:03:33]Clear old archive folders... [19:03:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:33]tlvbuf is B6D898C0 [19:03:33]SAM_PROTO_ClearQueue [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 09 00 00 [19:03:33]Write to MH i2c: E2 08 00 46 22 80 09 00 00 00 00 00 00 DA [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:33]Read from MH i2c: E2 03 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 03 00 46 22 00 90 00 DC [19:03:33]RAPDU: 90 00 [19:03:33]wFMCommunicate OK [19:03:33]SAM_PROTO_ClearQueue done [19:03:33]KKMCreateOFDPacket [19:03:33]OFDProtocolAddRootSTLVToBuf [19:03:33]FM_MakeSignedData [19:03:33]FM_MakeSignedData [19:03:33]SAM_PROTO_SignData [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 0D 01 02 [19:03:33]Write to MH i2c: E2 08 00 47 22 80 0D 01 02 00 00 00 00 E2 [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:33]Read from MH i2c: E2 03 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 03 00 47 22 00 90 00 DD [19:03:33]RAPDU: 90 00 [19:03:33]wFMCommunicate OK [19:03:33]wFMCommunicate request_size=255 [19:03:33]MH_SAM_APDU [19:03: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 27 01 00 00 F4 03 04 00 85 28 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B7 01 00 35 04 06 00 3D [19:03:33]Write to MH i2c: E2 02 01 48 22 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 27 01 00 00 F4 03 04 00 85 28 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B7 01 00 35 04 06 00 3D 00 00 AE [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 48 22 00 90 00 DE [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]wFMCommunicate request_size=10 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 02 02 05 B8 03 20 8D B8 [19:03:34]Write to MH i2c: E2 0D 00 49 22 80 0D 02 02 05 00 B8 03 20 8D B8 00 00 0F [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 03 00 49 22 00 90 00 DF [19:03:34]RAPDU: 90 00 [19:03:34]wFMCommunicate OK [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 0D 03 02 [19:03:34]Write to MH i2c: E2 08 00 4A 22 80 0D 03 02 00 00 00 00 E7 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0B 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 0B 00 4A 22 00 32 8A FD 1F EE 25 FE 52 90 00 23 [19:03:34]RAPDU: 32 8A FD 1F EE 25 FE 52 90 00 [19:03:34]wFMCommunicate OK [19:03:34]SAM_PROTO_SignData done [19:03:34]FM_MakeSignedData done [19:03:34]CreateOFDProtocolMessage [19:03:34]wFMCommunicate request_size=4 [19:03:34]MH_SAM_APDU [19:03:34]CAPDU: 80 11 00 00 [19:03:34]Write to MH i2c: E2 08 00 4B 22 80 11 00 00 00 00 00 00 E7 [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:34]Read from MH i2c: E2 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: E2 17 00 4B 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 38 [19:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:03:34]wFMCommunicate OK [19:03:34]CreateOFDProtocolMessage done [19:03:34]OFDSenderStorePacket 112396 [19:03:34]StoreOFDPacket docnum=112396 [19:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0D 9C 07 01 84 E8 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 27 01 00 00 F4 03 04 00 85 28 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B7 01 00 35 04 06 00 3D B8 03 20 8D B8 32 8A FD 1F EE 25 FE 52 [19:03:34]CheckFolder [19:03:34]dirname=/storage/ofd_packets [19:03:34]CheckFolder done [19:03:34]ProducePacketName [19:03:34]name=ofd_packets/00112396 [19:03:34]NVStorageSaveData ofd_packets/00112396 [19:03:34]File name is /storage/ofd_packets/00112396 [19:03:34]Write 301 bytes [19:03:34]NVStorageSaveData done [19:03:34]OFDSenderStorePacket done [19:03:34]KKMCreateOFDPacket done [19:03:34]NVStorageSaveData kkm_last_timestamp [19:03:34]File name is /storage/kkm_last_timestamp [19:03:34]Write 4 bytes [19:03:34]NVStorageSaveData done [19:03:34]ExternCall_PrintAddStr [19:03:34]wPrintStart [19:03:34]Write to MH i2c: 01 00 00 4C 22 6E [19:03:34]Write i2c OK [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 07 00 [19:03:34]MH_I2C_Read... [19:03:34]Read from MH i2c: 01 07 00 4C 22 00 00 00 00 00 FF 0F 83 [19:03:34]RasterBufferAndPrint [19:03:34]line Счет N : (1)48698 [19:03:34]line ИНН: 02508201610067 [19:03:34]line Контрольно-Кассовый Чек [19:03:34]line ПРОДАЖА [19:03:34]line ТРК (МРК, ГНК) : 32 [19:03:34]line Товар: 2710124130 [19:03:34]line Аи-92-К-5 [19:03:34]line 3.120 * 64.30 [19:03:34]line = 200.62 [19:03:34]line НДС 12% НСП 1% [19:03:34]line > о реализуемом товаре [19:03:34]line ОКРУГЛЕНИЕ: -0.62 [19:03:34]line ИТОГО: 200.00 [19:03:34]line Внесено: 200.00 [19:03:34]line СДАЧА: 0.00 [19:03:34]line НСП 1% : 1.77 [19:03:34]line НДС 12% : 21.30 [19:03:34]line Наличными: 200.00 [19:03:34]line Безнал.: 0.00 [19:03:34]line Место: АЗС № 47 "Партнер Нефть" [19:03:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:03:34]line СНО: Общий режим [19:03:34]line Чек 295 14.04.2024 19:03 [19:03:34]line Смена: 357 ФФД: 1.0 [19:03:34]line ЗНМ: 0300000138 [19:03:34]line РНМ: 0000000000094237 [19:03:34]line Версия ККМ: 001 [19:03:34]line ФМ: 0000000000875019 [19:03:34]line ФД: 112396 [19:03:34]line ФПД: 67860535741880 [19:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T190333&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112396&fm=67860535741880&tin=02508201610067®Number=0000000000094237&sum=20000 [19:03:34]written 0, free lines is 4095 [19:03:34]OFD Sender: Processing packet 112396 [packets to send 71, broken 70] [19:03:34]ProducePacketName [19:03:34]name=ofd_packets/00112396 [19:03:34]OFD Sender: To server: pG, [19:03:34]CommunicateWithHost lk.salyk.kg:30040 [19:03:34]ConnectInit lk.salyk.kg [19:03:34]Connected sock=10 [19:03:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0D 9C 07 01 84 E8 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 27 01 00 00 F4 03 04 00 85 28 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B7 01 00 35 04 06 00 3D B8 03 20 8D B8 32 8A FD 1F EE 25 FE 52 [19:03:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 41 AB 47 00 C6 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0C B7 01 00 F4 03 04 00 10 D0 1B 66 B6 04 01 00 00 E0 0A 6E 26 76 4D 31 96 [19:03:34]CommunicateWithHost err = 0 [19:03:34]CheckOFDResponse [19:03:34]1017 (14) - 77093643461234 [19:03:34]1041 (16) - 0000000000875019 [19:03:34]1040 (4) - 112396 [19:03:34]1012 (4) - 14.04.2024 12:46 [19:03:34]1206 (1) - 0 [19:03:34]OFD Sender: Remove packet 112396 [19:03:34]ProducePacketName [19:03:34]name=ofd_packets/00112396 [19:03:34]NVStorageDeleteData [19:03:35]Write to MH i2c: 01 00 00 77 22 99 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: 01 07 00 77 22 00 00 00 00 00 D9 0C 85 [19:03:35]RasterBufferAndPrint [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]line [19:03:35]written 0, free lines is 3297 [19:03:35]MH_Cut [19:03:35]Write to MH i2c: D1 01 00 7E 22 01 72 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 [19:03:35]MH_I2C_Read... [19:03:35]Read from MH i2c: D1 01 00 7E 22 00 71 [19:03:35]Write to MH i2c: 01 00 00 7F 22 A1 [19:03:35]Write i2c OK [19:03:35]MH_I2C_Read... [19:03:35]OFD Sender: No OFD packet to send [19:03:35]*** Cut start [19:03:35]*** Partial cut [19:03:35]*** CUTSNS_PIN = 1 [19:03:35]*** CUTSNS_PIN = 0 [19:03:36]*** Brake cut motor [19:03:36]Read from MH i2c: 01 [19:03:36]MH_I2C_Read... [19:03:36]*** Stop cut motor [19:03:36]*** Cut end [19:03:36]Read from MH i2c: 01 07 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: 01 07 00 7F 22 00 00 00 00 00 FF 0F B6 [19:03:36]process_action close_receipt done [19:03:36]requested_data is exist [19:03:36]produce_requested_data [19:03:36]requested_item fm.sn is exist - process it [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 11 00 00 [19:03:36]Write to MH i2c: E2 08 00 80 22 80 11 00 00 00 00 00 00 1C [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 17 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 17 00 80 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6D [19:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:03:36]wFMCommunicate OK [19:03:36]requested_item fd.num is exist - process it [19:03:36]SAM_PROTO_GetFieldsCounters [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 13 00 00 [19:03:36]Write to MH i2c: E2 08 00 81 22 80 13 00 00 00 00 00 00 1F [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 62 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 62 00 81 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:03:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:36]wFMCommunicate OK [19:03:36]SAM_PROTO_GetFieldsCounters done [19:03:36]requested_item shift.num is exist - process it [19:03:36]requested_item shift.opened is exist - process it [19:03:36]req_shift_opened [19:03:36]FM_GetShiftState [19:03:36]SAM_PROTO_GetShiftState [19:03:36]wFMCommunicate request_size=4 [19:03:36]MH_SAM_APDU [19:03:36]CAPDU: 80 13 01 00 [19:03:36]Write to MH i2c: E2 08 00 82 22 80 13 01 00 00 00 00 00 21 [19:03:36]Write i2c OK [19:03:36]MH_I2C_Read... [19:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:36]Read from MH i2c: E2 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 0E 00 [19:03:36]MH_I2C_Read... [19:03:36]Read from MH i2c: E2 0E 00 82 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B9 [19:03:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:03:36]wFMCommunicate OK [19:03:36]SAM_PROTO_GetShiftState done [19:03:36]FM_GetShiftState done [19:03:36]req_shift_opened done [19:03:36]requested_item shift.open_date is exist - process it [19:03:36]req_shift_open_date [19:03:36]req_shift_open_date done [19:03:36]produce_requested_data done [19:03:36]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112396,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:03:36]process_action_free close_receipt [19:03:36]json_value_free [19:03:36]json_value_free done [19:03:36]process_json_proto returns [19:03:36]Send response to host [19:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112396,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:03:36]free response buf [19:03:36]execute_script done [19:03:36]execute_script returns [19:03:36]free content buf [19:03:36]Sock 9.Close socket [19:03:36]Sock 9.Thread stoped [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:56]OFD Sender: No OFD packet to send [19:12:01]OFD Sender: No OFD packet to send [19:12:06]OFD Sender: No OFD packet to send [19:12:11]OFD Sender: No OFD packet to send [19:12:16]OFD Sender: No OFD packet to send [19:12:21]OFD Sender: No OFD packet to send [19:12:26]OFD Sender: No OFD packet to send [19:12:31]OFD Sender: No OFD packet to send [19:12:36]OFD Sender: No OFD packet to send [19:12:41]OFD Sender: No OFD packet to send [19:12:46]OFD Sender: No OFD packet to send [19:12:51]OFD Sender: No OFD packet to send [19:12:56]OFD Sender: No OFD packet to send [19:13:01]OFD Sender: No OFD packet to send [19:13:06]OFD Sender: No OFD packet to send [19:13:11]OFD Sender: No OFD packet to send [19:13:16]OFD Sender: No OFD packet to send [19:13:21]OFD Sender: No OFD packet to send [19:13:26]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:51]accept exits with 8 [19:13:51]New connection [19:13:51]New thread 3066682724 created [19:13:51]Thread 3066826084 joined [19:13:51]Waiting for new connection... [19:13:51] Sock 8.Parse request [19:13:51]Sock 8.Check first char [19:13:51]Sock 8.First char is OK [19:13:51]request: POST /json_proto HTTP/1.0 [19:13:51]Method: POST [19:13:51]URL: /json_proto [19:13:51]Method is POST - this is cgi request [19:13:51]url: /json_proto [19:13:51]query_string will be loaded in cgi processing [19:13:51]execute_cgi json_proto POST (null) [19:13:51]execute_cgi path=json_proto method=POST [19:13:51]POST find Content-Length [19:13:51]Host: 172.17.96.197:8080 [19:13:51]Content-Length: 676 [19:13:51]Content-Type: application/json [19:13:51] [19:13:51]POST finish read [19:13:51]Found Content-Length = 676 [19:13:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [19:13:51]execute_script... [19:13: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)48699", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [19:13:51]POST & json_proto [19:13:51]process_json_proto [19:13:51]json parsed OK: [19:13:51]protocol is kg_v1.0 [19:13:51]action value=close_receipt [19:13:51]process_action close_receipt [19:13:51]cmd_close_receipt [19:13:51]MH_GetDate [19:13:51]Write to MH i2c: F0 00 00 83 22 94 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: F0 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: F0 09 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: F0 09 00 83 22 00 F0 2A 1C 66 E0 85 7F 64 81 [19:13:51]GetLastDocTimeStamp 1713121413 [19:13:51]current date 1713122032 [19:13:51]FM_GetShiftState [19:13:51]SAM_PROTO_GetShiftState [19:13:51]wFMCommunicate request_size=4 [19:13:51]MH_SAM_APDU [19:13:51]CAPDU: 80 13 01 00 [19:13:51]Write to MH i2c: E2 08 00 84 22 80 13 01 00 00 00 00 00 23 [19:13:51]Write i2c OK [19:13:51]MH_I2C_Read... [19:13:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:51]Read from MH i2c: E2 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 0E 00 [19:13:51]MH_I2C_Read... [19:13:51]Read from MH i2c: E2 0E 00 84 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BB [19:13:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:13:51]wFMCommunicate OK [19:13:51]SAM_PROTO_GetShiftState done [19:13:51]FM_GetShiftState done [19:13:51]opened in 1713054696 [19:13:51]opened+sec_in_day 1713141096 [19:13:51]quantity*price = 20061 [19:13:51]sum+1 = 20063 [19:13:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 296 14.04.2024 19:13 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112397 ФПД: 202732846767175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191352&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112397&fm=202732846767175&tin=02508201610067®Number=0000000000094237&sum=20000 [19:13:52]StoreToDocumentArchive [19:13:52]shift 357 fd 112397 [19:13:52]save to /storage/0357/doc_00112397 [19:13:52]save last doc name /storage/0357/doc_00112397 to /storage/kkm_last_doc_name [19:13:52]save OK [19:13:52]Clear old archive folders... [19:13:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:13:52]tlvbuf is 00138460 [19:13:52]SAM_PROTO_ClearQueue [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 09 00 00 [19:13:52]Write to MH i2c: E2 08 00 91 22 80 09 00 00 00 00 00 00 25 [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 03 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 03 00 91 22 00 90 00 27 [19:13:52]RAPDU: 90 00 [19:13:52]wFMCommunicate OK [19:13:52]SAM_PROTO_ClearQueue done [19:13:52]KKMCreateOFDPacket [19:13:52]OFDProtocolAddRootSTLVToBuf [19:13:52]FM_MakeSignedData [19:13:52]FM_MakeSignedData [19:13:52]SAM_PROTO_SignData [19:13:52]wFMCommunicate request_size=4 [19:13:52]MH_SAM_APDU [19:13:52]CAPDU: 80 0D 01 02 [19:13:52]Write to MH i2c: E2 08 00 92 22 80 0D 01 02 00 00 00 00 2D [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:13:52]Read from MH i2c: E2 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 03 00 [19:13:52]MH_I2C_Read... [19:13:52]Read from MH i2c: E2 03 00 92 22 00 90 00 28 [19:13:52]RAPDU: 90 00 [19:13:52]wFMCommunicate OK [19:13:52]wFMCommunicate request_size=255 [19:13:52]MH_SAM_APDU [19:13: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 28 01 00 00 F4 03 04 00 F0 2A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B7 01 00 35 04 06 00 B8 [19:13:52]Write to MH i2c: E2 02 01 93 22 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 28 01 00 00 F4 03 04 00 F0 2A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B7 01 00 35 04 06 00 B8 00 00 E3 [19:13:52]Write i2c OK [19:13:52]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 93 22 00 90 00 29 [19:13:53]RAPDU: 90 00 [19:13:53]wFMCommunicate OK [19:13:53]wFMCommunicate request_size=10 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 0D 02 02 05 62 6B 50 DC 47 [19:13:53]Write to MH i2c: E2 0D 00 94 22 80 0D 02 02 05 00 62 6B 50 DC 47 00 00 7A [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 03 00 94 22 00 90 00 2A [19:13:53]RAPDU: 90 00 [19:13:53]wFMCommunicate OK [19:13:53]wFMCommunicate request_size=4 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 0D 03 02 [19:13:53]Write to MH i2c: E2 08 00 95 22 80 0D 03 02 00 00 00 00 32 [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 0B 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 0B 00 95 22 00 49 FF AB 99 6C 1A D1 B6 90 00 CC [19:13:53]RAPDU: 49 FF AB 99 6C 1A D1 B6 90 00 [19:13:53]wFMCommunicate OK [19:13:53]SAM_PROTO_SignData done [19:13:53]FM_MakeSignedData done [19:13:53]CreateOFDProtocolMessage [19:13:53]wFMCommunicate request_size=4 [19:13:53]MH_SAM_APDU [19:13:53]CAPDU: 80 11 00 00 [19:13:53]Write to MH i2c: E2 08 00 96 22 80 11 00 00 00 00 00 00 32 [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:53]Read from MH i2c: E2 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 17 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: E2 17 00 96 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 83 [19:13:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:13:53]wFMCommunicate OK [19:13:53]CreateOFDProtocolMessage done [19:13:53]OFDSenderStorePacket 112397 [19:13:53]StoreOFDPacket docnum=112397 [19:13:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E5 D7 07 01 EE A1 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 28 01 00 00 F4 03 04 00 F0 2A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B7 01 00 35 04 06 00 B8 62 6B 50 DC 47 49 FF AB 99 6C 1A D1 B6 [19:13:53]CheckFolder [19:13:53]dirname=/storage/ofd_packets [19:13:53]CheckFolder done [19:13:53]ProducePacketName [19:13:53]name=ofd_packets/00112397 [19:13:53]NVStorageSaveData ofd_packets/00112397 [19:13:53]File name is /storage/ofd_packets/00112397 [19:13:53]Write 301 bytes [19:13:53]NVStorageSaveData done [19:13:53]OFDSenderStorePacket done [19:13:53]KKMCreateOFDPacket done [19:13:53]NVStorageSaveData kkm_last_timestamp [19:13:53]File name is /storage/kkm_last_timestamp [19:13:53]Write 4 bytes [19:13:53]NVStorageSaveData done [19:13:53]ExternCall_PrintAddStr [19:13:53]wPrintStart [19:13:53]Write to MH i2c: 01 00 00 97 22 B9 [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 07 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 07 00 97 22 00 00 00 00 00 FF 0F CE [19:13:53]RasterBufferAndPrint [19:13:53]line Счет N : (1)48699 [19:13:53]line ИНН: 02508201610067 [19:13:53]line Контрольно-Кассовый Чек [19:13:53]line ПРОДАЖА [19:13:53]line ТРК (МРК, ГНК) : 11 [19:13:53]line Товар: 2710124130 [19:13:53]line Аи-92-К-5 [19:13:53]line 3.120 * 64.30 [19:13:53]line = 200.62 [19:13:53]line НДС 12% НСП 1% [19:13:53]line > о реализуемом товаре [19:13:53]line ОКРУГЛЕНИЕ: -0.62 [19:13:53]line ИТОГО: 200.00 [19:13:53]line Внесено: 200.00 [19:13:53]line СДАЧА: 0.00 [19:13:53]line НСП 1% : 1.77 [19:13:53]line НДС 12% : 21.30 [19:13:53]line Наличными: 200.00 [19:13:53]line Безнал.: 0.00 [19:13:53]line Место: АЗС № 47 "Партнер Нефть" [19:13:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:13:53]line СНО: Общий режим [19:13:53]line Чек 296 14.04.2024 19:13 [19:13:53]line Смена: 357 ФФД: 1.0 [19:13:53]line ЗНМ: 0300000138 [19:13:53]line РНМ: 0000000000094237 [19:13:53]line Версия ККМ: 001 [19:13:53]line ФМ: 0000000000875019 [19:13:53]line ФД: 112397 [19:13:53]line ФПД: 202732846767175 [19:13:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191352&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112397&fm=202732846767175&tin=02508201610067®Number=0000000000094237&sum=20000 [19:13:53]OFD Sender: Processing packet 112397 [packets to send 71, broken 70] [19:13:53]ProducePacketName [19:13:53]name=ofd_packets/00112397 [19:13:53]OFD Sender: To server: pG, [19:13:53]CommunicateWithHost lk.salyk.kg:30040 [19:13:53]ConnectInit lk.salyk.kg [19:13:53]written 0, free lines is 4095 [19:13:53]Connected sock=10 [19:13:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E5 D7 07 01 EE A1 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 28 01 00 00 F4 03 04 00 F0 2A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B7 01 00 35 04 06 00 B8 62 6B 50 DC 47 49 FF AB 99 6C 1A D1 B6 [19:13:53]Write to MH i2c: 01 00 00 C2 22 E4 [19:13:53]Write i2c OK [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 07 00 [19:13:53]MH_I2C_Read... [19:13:53]Read from MH i2c: 01 07 00 C2 22 00 00 00 00 00 CD 0C C4 [19:13:53]RasterBufferAndPrint [19:13:53]line [19:13:53]line [19:13:53]line [19:13:53]line [19:13:53]line [19:13:53]written 0, free lines is 3284 [19:13:54]MH_Cut [19:13:54]Write to MH i2c: D1 01 00 C9 22 01 BD [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: D1 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: D1 01 00 [19:13:54]MH_I2C_Read... [19:13:54]Read from MH i2c: D1 01 00 C9 22 00 BC [19:13:54]Write to MH i2c: 01 00 00 CA 22 EC [19:13:54]Write i2c OK [19:13:54]MH_I2C_Read... [19:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 38 CF 47 00 03 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0D B7 01 00 F4 03 04 00 7B D2 1B 66 B6 04 01 00 00 3F 7D 25 75 41 6F 43 97 [19:13:54]CommunicateWithHost err = 0 [19:13:54]CheckOFDResponse [19:13:54]1017 (14) - 77093643461234 [19:13:54]1041 (16) - 0000000000875019 [19:13:54]1040 (4) - 112397 [19:13:54]1012 (4) - 14.04.2024 12:56 [19:13:54]1206 (1) - 0 [19:13:54]OFD Sender: Remove packet 112397 [19:13:54]ProducePacketName [19:13:54]name=ofd_packets/00112397 [19:13:54]NVStorageDeleteData [19:13:54]OFD Sender: No OFD packet to send [19:13:54]*** Cut start [19:13:54]*** Partial cut [19:13:54]*** CUTSNS_PIN = 1 [19:13:54]*** CUTSNS_PIN = 0 [19:13:55]*** Brake cut motor [19:13:55]Read from MH i2c: 01 [19:13:55]MH_I2C_Read... [19:13:55]*** Stop cut motor [19:13:55]*** Cut end [19:13:55]Read from MH i2c: 01 07 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: 01 07 00 CA 22 00 00 00 00 00 FF 0F 01 [19:13:55]process_action close_receipt done [19:13:55]requested_data is exist [19:13:55]produce_requested_data [19:13:55]requested_item fm.sn is exist - process it [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 11 00 00 [19:13:55]Write to MH i2c: E2 08 00 CB 22 80 11 00 00 00 00 00 00 67 [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 17 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 17 00 CB 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B8 [19:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:13:55]wFMCommunicate OK [19:13:55]requested_item fd.num is exist - process it [19:13:55]SAM_PROTO_GetFieldsCounters [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 13 00 00 [19:13:55]Write to MH i2c: E2 08 00 CC 22 80 13 00 00 00 00 00 00 6A [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 62 00 CC 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [19:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetFieldsCounters done [19:13:55]requested_item shift.num is exist - process it [19:13:55]requested_item shift.opened is exist - process it [19:13:55]req_shift_opened [19:13:55]FM_GetShiftState [19:13:55]SAM_PROTO_GetShiftState [19:13:55]wFMCommunicate request_size=4 [19:13:55]MH_SAM_APDU [19:13:55]CAPDU: 80 13 01 00 [19:13:55]Write to MH i2c: E2 08 00 CD 22 80 13 01 00 00 00 00 00 6C [19:13:55]Write i2c OK [19:13:55]MH_I2C_Read... [19:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:13:55]Read from MH i2c: E2 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 [19:13:55]MH_I2C_Read... [19:13:55]Read from MH i2c: E2 0E 00 CD 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 04 [19:13:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:13:55]wFMCommunicate OK [19:13:55]SAM_PROTO_GetShiftState done [19:13:55]FM_GetShiftState done [19:13:55]req_shift_opened done [19:13:55]requested_item shift.open_date is exist - process it [19:13:55]req_shift_open_date [19:13:55]req_shift_open_date done [19:13:55]produce_requested_data done [19:13:55]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112397,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:13:55]process_action_free close_receipt [19:13:55]json_value_free [19:13:55]json_value_free done [19:13:55]process_json_proto returns [19:13:55]Send response to host [19:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112397,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:13:55]free response buf [19:13:55]execute_script done [19:13:55]execute_script returns [19:13:55]free content buf [19:13:55]Sock 8.Close socket [19:13:55]Sock 8.Thread stoped [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:20]accept exits with 9 [19:14:20]New connection [19:14:20]New thread 3066826084 created [19:14:20]Thread 3066682724 joined [19:14:20]Waiting for new connection... [19:14:20] Sock 9.Parse request [19:14:20]Sock 9.Check first char [19:14:20]Sock 9.First char is OK [19:14:20]request: POST /json_proto HTTP/1.0 [19:14:20]Method: POST [19:14:20]URL: /json_proto [19:14:20]Method is POST - this is cgi request [19:14:20]url: /json_proto [19:14:20]query_string will be loaded in cgi processing [19:14:20]execute_cgi json_proto POST (null) [19:14:20]execute_cgi path=json_proto method=POST [19:14:20]POST find Content-Length [19:14:20]Host: 172.17.96.197:8080 [19:14:20]Content-Length: 678 [19:14:20]Content-Type: application/json [19:14:20] [19:14:20]POST finish read [19:14:20]Found Content-Length = 678 [19:14:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48700", "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.40, "quantity" : 20.720, "sum" : 1500.13, "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" ] } } [19:14:20]execute_script... [19:14:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48700", "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.40, "quantity" : 20.720, "sum" : 1500.13, "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" ] } } [19:14:20]POST & json_proto [19:14:20]process_json_proto [19:14:20]json parsed OK: [19:14:20]protocol is kg_v1.0 [19:14:20]action value=close_receipt [19:14:20]process_action close_receipt [19:14:20]cmd_close_receipt [19:14:20]MH_GetDate [19:14:20]Write to MH i2c: F0 00 00 CE 22 DF [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: F0 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: F0 09 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: F0 09 00 CE 22 00 0D 2B 1C 66 E0 85 7F 64 EA [19:14:20]GetLastDocTimeStamp 1713122032 [19:14:20]current date 1713122061 [19:14:20]FM_GetShiftState [19:14:20]SAM_PROTO_GetShiftState [19:14:20]wFMCommunicate request_size=4 [19:14:20]MH_SAM_APDU [19:14:20]CAPDU: 80 13 01 00 [19:14:20]Write to MH i2c: E2 08 00 CF 22 80 13 01 00 00 00 00 00 6E [19:14:20]Write i2c OK [19:14:20]MH_I2C_Read... [19:14:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:20]Read from MH i2c: E2 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 0E 00 [19:14:20]MH_I2C_Read... [19:14:20]Read from MH i2c: E2 0E 00 CF 22 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 06 [19:14:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:14:20]wFMCommunicate OK [19:14:20]SAM_PROTO_GetShiftState done [19:14:20]FM_GetShiftState done [19:14:20]opened in 1713054696 [19:14:20]opened+sec_in_day 1713141096 [19:14:20]quantity*price = 150012 [19:14:20]sum+1 = 150014 [19:14:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.31 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 297 14.04.2024 19:14 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112398 ФПД: 158864070527881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191421&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112398&fm=158864070527881&tin=02508201610067®Number=0000000000094237&sum=150000 [19:14:21]StoreToDocumentArchive [19:14:21]shift 357 fd 112398 [19:14:21]save to /storage/0357/doc_00112398 [19:14:21]save last doc name /storage/0357/doc_00112398 to /storage/kkm_last_doc_name [19:14:21]save OK [19:14:21]Clear old archive folders... [19:14:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:14:21]tlvbuf is 00138600 [19:14:21]SAM_PROTO_ClearQueue [19:14:21]wFMCommunicate request_size=4 [19:14:21]MH_SAM_APDU [19:14:21]CAPDU: 80 09 00 00 [19:14:21]Write to MH i2c: E2 08 00 DC 22 80 09 00 00 00 00 00 00 70 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 DC 22 00 90 00 72 [19:14:21]RAPDU: 90 00 [19:14:21]wFMCommunicate OK [19:14:21]SAM_PROTO_ClearQueue done [19:14:21]KKMCreateOFDPacket [19:14:21]OFDProtocolAddRootSTLVToBuf [19:14:21]FM_MakeSignedData [19:14:21]FM_MakeSignedData [19:14:21]SAM_PROTO_SignData [19:14:21]wFMCommunicate request_size=4 [19:14:21]MH_SAM_APDU [19:14:21]CAPDU: 80 0D 01 02 [19:14:21]Write to MH i2c: E2 08 00 DD 22 80 0D 01 02 00 00 00 00 78 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:14:21]Read from MH i2c: E2 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 [19:14:21]MH_I2C_Read... [19:14:21]Read from MH i2c: E2 03 00 DD 22 00 90 00 73 [19:14:21]RAPDU: 90 00 [19:14:21]wFMCommunicate OK [19:14:21]wFMCommunicate request_size=255 [19:14:21]MH_SAM_APDU [19:14:21]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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 01 00 00 F4 03 04 00 0D 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B7 01 00 35 04 06 00 90 7C 6C 7D [19:14:21]Write to MH i2c: E2 02 01 DE 22 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 01 00 00 F4 03 04 00 0D 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B7 01 00 35 04 06 00 90 7C 6C 7D 00 00 E7 [19:14:21]Write i2c OK [19:14:21]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 03 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 03 00 DE 22 00 90 00 74 [19:14:22]RAPDU: 90 00 [19:14:22]wFMCommunicate OK [19:14:22]wFMCommunicate request_size=7 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 0D 02 02 02 CB 89 [19:14:22]Write to MH i2c: E2 0A 00 DF 22 80 0D 02 02 02 00 CB 89 00 00 D3 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 03 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 03 00 DF 22 00 90 00 75 [19:14:22]RAPDU: 90 00 [19:14:22]wFMCommunicate OK [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 0D 03 02 [19:14:22]Write to MH i2c: E2 08 00 E0 22 80 0D 03 02 00 00 00 00 7D [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0B 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 0B 00 E0 22 00 35 A2 43 E0 2C 8A 05 E6 90 00 19 [19:14:22]RAPDU: 35 A2 43 E0 2C 8A 05 E6 90 00 [19:14:22]wFMCommunicate OK [19:14:22]SAM_PROTO_SignData done [19:14:22]FM_MakeSignedData done [19:14:22]CreateOFDProtocolMessage [19:14:22]wFMCommunicate request_size=4 [19:14:22]MH_SAM_APDU [19:14:22]CAPDU: 80 11 00 00 [19:14:22]Write to MH i2c: E2 08 00 E1 22 80 11 00 00 00 00 00 00 7D [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:22]Read from MH i2c: E2 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 17 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: E2 17 00 E1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CE [19:14:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:14:22]wFMCommunicate OK [19:14:22]CreateOFDProtocolMessage done [19:14:22]OFDSenderStorePacket 112398 [19:14:22]StoreOFDPacket docnum=112398 [19:14:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B1 C2 04 01 3A 02 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 01 00 00 F4 03 04 00 0D 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B7 01 00 35 04 06 00 90 7C 6C 7D CB 89 35 A2 43 E0 2C 8A 05 E6 [19:14:22]CheckFolder [19:14:22]dirname=/storage/ofd_packets [19:14:22]CheckFolder done [19:14:22]ProducePacketName [19:14:22]name=ofd_packets/00112398 [19:14:22]NVStorageSaveData ofd_packets/00112398 [19:14:22]File name is /storage/ofd_packets/00112398 [19:14:22]Write 298 bytes [19:14:22]NVStorageSaveData done [19:14:22]OFDSenderStorePacket done [19:14:22]KKMCreateOFDPacket done [19:14:22]NVStorageSaveData kkm_last_timestamp [19:14:22]File name is /storage/kkm_last_timestamp [19:14:22]Write 4 bytes [19:14:22]NVStorageSaveData done [19:14:22]ExternCall_PrintAddStr [19:14:22]wPrintStart [19:14:22]Write to MH i2c: 01 00 00 E2 22 04 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 07 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 07 00 E2 22 00 00 00 00 00 FF 0F 19 [19:14:22]RasterBufferAndPrint [19:14:22]line Счет N : (1)48700 [19:14:22]line ИНН: 02508201610067 [19:14:22]line Контрольно-Кассовый Чек [19:14:22]line ПРОДАЖА [19:14:22]line ТРК (МРК, ГНК) : 51 [19:14:22]line Товар: 2710194210 [19:14:22]line ДТ-К-5 [19:14:22]line 20.720 * 72.40 [19:14:22]line = 1500.13 [19:14:22]line НДС 12% НСП 1% [19:14:22]line > о реализуемом товаре [19:14:22]line ОКРУГЛЕНИЕ: -0.13 [19:14:22]line ИТОГО: 1500.00 [19:14:22]line Внесено: 1500.00 [19:14:22]line СДАЧА: 0.00 [19:14:22]line НСП 1% : 13.27 [19:14:22]line НДС 12% : 159.31 [19:14:22]line Наличными: 1500.00 [19:14:22]line Безнал.: 0.00 [19:14:22]line Место: АЗС № 47 "Партнер Нефть" [19:14:22]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:14:22]line СНО: Общий режим [19:14:22]line Чек 297 14.04.2024 19:14 [19:14:22]line Смена: 357 ФФД: 1.0 [19:14:22]line ЗНМ: 0300000138 [19:14:22]line РНМ: 0000000000094237 [19:14:22]line Версия ККМ: 001 [19:14:22]line ФМ: 0000000000875019 [19:14:22]line ФД: 112398 [19:14:22]line ФПД: 158864070527881 [19:14:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191421&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112398&fm=158864070527881&tin=02508201610067®Number=0000000000094237&sum=150000 [19:14:22]OFD Sender: Processing packet 112398 [packets to send 71, broken 70] [19:14:22]ProducePacketName [19:14:22]name=ofd_packets/00112398 [19:14:22]OFD Sender: To server: pG, [19:14:22]CommunicateWithHost lk.salyk.kg:30040 [19:14:22]ConnectInit lk.salyk.kg [19:14:22]written 0, free lines is 4095 [19:14:22]Connected sock=10 [19:14:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B1 C2 04 01 3A 02 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 F0 50 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FD 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 3B 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 01 00 00 F4 03 04 00 0D 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B7 01 00 35 04 06 00 90 7C 6C 7D CB 89 35 A2 43 E0 2C 8A 05 E6 [19:14:22]Write to MH i2c: 01 00 00 0D 23 30 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 07 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: 01 07 00 0D 23 00 00 00 00 00 E1 0C 24 [19:14:22]RasterBufferAndPrint [19:14:22]line [19:14:22]line [19:14:22]line [19:14:22]line [19:14:22]line [19:14:22]written 0, free lines is 3303 [19:14:22]MH_Cut [19:14:22]Write to MH i2c: D1 01 00 14 23 01 09 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: D1 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: D1 01 00 [19:14:22]MH_I2C_Read... [19:14:22]Read from MH i2c: D1 01 00 14 23 00 08 [19:14:22]Write to MH i2c: 01 00 00 15 23 38 [19:14:22]Write i2c OK [19:14:22]MH_I2C_Read... [19:14:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7D 75 47 00 44 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0E B7 01 00 F4 03 04 00 98 D2 1B 66 B6 04 01 00 00 56 35 39 05 13 59 15 DE [19:14:23]CommunicateWithHost err = 0 [19:14:23]CheckOFDResponse [19:14:23]1017 (14) - 77093643461234 [19:14:23]1041 (16) - 0000000000875019 [19:14:23]1040 (4) - 112398 [19:14:23]1012 (4) - 14.04.2024 12:56 [19:14:23]1206 (1) - 0 [19:14:23]OFD Sender: Remove packet 112398 [19:14:23]ProducePacketName [19:14:23]name=ofd_packets/00112398 [19:14:23]NVStorageDeleteData [19:14:23]OFD Sender: No OFD packet to send [19:14:23]*** Cut start [19:14:23]*** Partial cut [19:14:23]*** CUTSNS_PIN = 1 [19:14:23]*** CUTSNS_PIN = 0 [19:14:24]*** Brake cut motor [19:14:24]Read from MH i2c: 01 [19:14:24]MH_I2C_Read... [19:14:24]*** Stop cut motor [19:14:24]*** Cut end [19:14:24]Read from MH i2c: 01 07 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: 01 07 00 15 23 00 00 00 00 00 FF 0F 4D [19:14:24]process_action close_receipt done [19:14:24]requested_data is exist [19:14:24]produce_requested_data [19:14:24]requested_item fm.sn is exist - process it [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 11 00 00 [19:14:24]Write to MH i2c: E2 08 00 16 23 80 11 00 00 00 00 00 00 B3 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 17 00 16 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 04 [19:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:14:24]wFMCommunicate OK [19:14:24]requested_item fd.num is exist - process it [19:14:24]SAM_PROTO_GetFieldsCounters [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 13 00 00 [19:14:24]Write to MH i2c: E2 08 00 17 23 80 13 00 00 00 00 00 00 B6 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 62 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 62 00 17 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [19:14:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:14:24]wFMCommunicate OK [19:14:24]SAM_PROTO_GetFieldsCounters done [19:14:24]requested_item shift.num is exist - process it [19:14:24]requested_item shift.opened is exist - process it [19:14:24]req_shift_opened [19:14:24]FM_GetShiftState [19:14:24]SAM_PROTO_GetShiftState [19:14:24]wFMCommunicate request_size=4 [19:14:24]MH_SAM_APDU [19:14:24]CAPDU: 80 13 01 00 [19:14:24]Write to MH i2c: E2 08 00 18 23 80 13 01 00 00 00 00 00 B8 [19:14:24]Write i2c OK [19:14:24]MH_I2C_Read... [19:14:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:14:24]Read from MH i2c: E2 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 0E 00 [19:14:24]MH_I2C_Read... [19:14:24]Read from MH i2c: E2 0E 00 18 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 50 [19:14:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:14:24]wFMCommunicate OK [19:14:24]SAM_PROTO_GetShiftState done [19:14:24]FM_GetShiftState done [19:14:24]req_shift_opened done [19:14:24]requested_item shift.open_date is exist - process it [19:14:24]req_shift_open_date [19:14:24]req_shift_open_date done [19:14:24]produce_requested_data done [19:14:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112398,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:14:24]process_action_free close_receipt [19:14:24]json_value_free [19:14:24]json_value_free done [19:14:24]process_json_proto returns [19:14:24]Send response to host [19:14:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112398,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:14:24]free response buf [19:14:24]execute_script done [19:14:24]execute_script returns [19:14:24]free content buf [19:14:24]Sock 9.Close socket [19:14:24]Sock 9.Thread stoped [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:03]OFD Sender: No OFD packet to send [19:15:08]OFD Sender: No OFD packet to send [19:15:13]OFD Sender: No OFD packet to send [19:15:18]OFD Sender: No OFD packet to send [19:15:23]OFD Sender: No OFD packet to send [19:15:28]OFD Sender: No OFD packet to send [19:15:33]OFD Sender: No OFD packet to send [19:15:38]OFD Sender: No OFD packet to send [19:15:43]OFD Sender: No OFD packet to send [19:15:48]OFD Sender: No OFD packet to send [19:15:53]OFD Sender: No OFD packet to send [19:15:58]OFD Sender: No OFD packet to send [19:16:03]OFD Sender: No OFD packet to send [19:16:08]OFD Sender: No OFD packet to send [19:16:13]OFD Sender: No OFD packet to send [19:16:18]OFD Sender: No OFD packet to send [19:16:23]OFD Sender: No OFD packet to send [19:16:28]OFD Sender: No OFD packet to send [19:16:33]OFD Sender: No OFD packet to send [19:16:38]OFD Sender: No OFD packet to send [19:16:43]OFD Sender: No OFD packet to send [19:16:48]OFD Sender: No OFD packet to send [19:16:53]OFD Sender: No OFD packet to send [19:16:58]OFD Sender: No OFD packet to send [19:17:03]OFD Sender: No OFD packet to send [19:17:08]OFD Sender: No OFD packet to send [19:17:13]OFD Sender: No OFD packet to send [19:17:18]OFD Sender: No OFD packet to send [19:17:22]accept exits with 8 [19:17:22]New connection [19:17:22]New thread 3066682724 created [19:17:22]Thread 3066826084 joined [19:17:22]Waiting for new connection... [19:17:22] Sock 8.Parse request [19:17:22]Sock 8.Check first char [19:17:22]Sock 8.First char is OK [19:17:22]request: POST /json_proto HTTP/1.0 [19:17:22]Method: POST [19:17:22]URL: /json_proto [19:17:22]Method is POST - this is cgi request [19:17:22]url: /json_proto [19:17:22]query_string will be loaded in cgi processing [19:17:22]execute_cgi json_proto POST (null) [19:17:22]execute_cgi path=json_proto method=POST [19:17:22]POST find Content-Length [19:17:22]Host: 172.17.96.197:8080 [19:17:22]Content-Length: 669 [19:17:22]Content-Type: application/json [19:17:22] [19:17:22]POST finish read [19:17:22]Found Content-Length = 669 [19:17:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48701", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:17:22]execute_script... [19:17: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)48701", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:17:22]POST & json_proto [19:17:22]process_json_proto [19:17:22]json parsed OK: [19:17:22]protocol is kg_v1.0 [19:17:22]action value=close_receipt [19:17:22]process_action close_receipt [19:17:22]cmd_close_receipt [19:17:22]MH_GetDate [19:17:22]Write to MH i2c: F0 00 00 19 23 2B [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: F0 09 00 19 23 00 C3 2B 1C 66 E0 85 7F 64 EC [19:17:22]GetLastDocTimeStamp 1713122061 [19:17:22]current date 1713122243 [19:17:22]FM_GetShiftState [19:17:22]SAM_PROTO_GetShiftState [19:17:22]wFMCommunicate request_size=4 [19:17:22]MH_SAM_APDU [19:17:22]CAPDU: 80 13 01 00 [19:17:22]Write to MH i2c: E2 08 00 1A 23 80 13 01 00 00 00 00 00 BA [19:17:22]Write i2c OK [19:17:22]MH_I2C_Read... [19:17:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:22]Read from MH i2c: E2 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 [19:17:22]MH_I2C_Read... [19:17:22]Read from MH i2c: E2 0E 00 1A 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 52 [19:17:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:17:22]wFMCommunicate OK [19:17:22]SAM_PROTO_GetShiftState done [19:17:22]FM_GetShiftState done [19:17:22]opened in 1713054696 [19:17:22]opened+sec_in_day 1713141096 [19:17:22]quantity*price = 50019 [19:17:22]sum+1 = 50021 [19:17:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 298 14.04.2024 19:17 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112399 ФПД: 76501723420870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191723&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112399&fm=76501723420870&tin=02508201610067®Number=0000000000094237&sum=50000 [19:17:23]StoreToDocumentArchive [19:17:23]shift 357 fd 112399 [19:17:23]save to /storage/0357/doc_00112399 [19:17:23]save last doc name /storage/0357/doc_00112399 to /storage/kkm_last_doc_name [19:17:23]save OK [19:17:23]Clear old archive folders... [19:17:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:17:23]tlvbuf is 001C27F0 [19:17:23]SAM_PROTO_ClearQueue [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 09 00 00 [19:17:23]Write to MH i2c: E2 08 00 27 23 80 09 00 00 00 00 00 00 BC [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 27 23 00 90 00 BE [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_ClearQueue done [19:17:23]KKMCreateOFDPacket [19:17:23]OFDProtocolAddRootSTLVToBuf [19:17:23]FM_MakeSignedData [19:17:23]FM_MakeSignedData [19:17:23]SAM_PROTO_SignData [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 01 02 [19:17:23]Write to MH i2c: E2 08 00 28 23 80 0D 01 02 00 00 00 00 C4 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 28 23 00 90 00 BF [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=255 [19:17:23]MH_SAM_APDU [19:17:23]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 2A 01 00 00 F4 03 04 00 C3 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B7 01 00 35 04 06 00 [19:17:23]Write to MH i2c: E2 02 01 29 23 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 2A 01 00 00 F4 03 04 00 C3 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B7 01 00 35 04 06 00 00 00 B2 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]OFD Sender: No OFD packet to send [19:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 29 23 00 90 00 C0 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=11 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 02 02 06 45 93 F2 0C 98 C6 [19:17:23]Write to MH i2c: E2 0E 00 2A 23 80 0D 02 02 06 00 45 93 F2 0C 98 C6 00 00 07 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 03 00 2A 23 00 90 00 C1 [19:17:23]RAPDU: 90 00 [19:17:23]wFMCommunicate OK [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 0D 03 02 [19:17:23]Write to MH i2c: E2 08 00 2B 23 80 0D 03 02 00 00 00 00 C9 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0B 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 0B 00 2B 23 00 2B 93 11 26 A1 98 AA B6 90 00 58 [19:17:23]RAPDU: 2B 93 11 26 A1 98 AA B6 90 00 [19:17:23]wFMCommunicate OK [19:17:23]SAM_PROTO_SignData done [19:17:23]FM_MakeSignedData done [19:17:23]CreateOFDProtocolMessage [19:17:23]wFMCommunicate request_size=4 [19:17:23]MH_SAM_APDU [19:17:23]CAPDU: 80 11 00 00 [19:17:23]Write to MH i2c: E2 08 00 2C 23 80 11 00 00 00 00 00 00 C9 [19:17:23]Write i2c OK [19:17:23]MH_I2C_Read... [19:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:23]Read from MH i2c: E2 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 17 00 [19:17:23]MH_I2C_Read... [19:17:23]Read from MH i2c: E2 17 00 2C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1A [19:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:17:23]wFMCommunicate OK [19:17:23]CreateOFDProtocolMessage done [19:17:23]OFDSenderStorePacket 112399 [19:17:23]StoreOFDPacket docnum=112399 [19:17:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 3E 04 08 01 EF 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 2A 01 00 00 F4 03 04 00 C3 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B7 01 00 35 04 06 00 45 93 F2 0C 98 C6 2B 93 11 26 A1 98 AA B6 [19:17:23]CheckFolder [19:17:23]dirname=/storage/ofd_packets [19:17:23]CheckFolder done [19:17:23]ProducePacketName [19:17:23]name=ofd_packets/00112399 [19:17:23]NVStorageSaveData ofd_packets/00112399 [19:17:23]File name is /storage/ofd_packets/00112399 [19:17:23]Write 302 bytes [19:17:23]NVStorageSaveData done [19:17:23]OFDSenderStorePacket done [19:17:23]KKMCreateOFDPacket done [19:17:23]NVStorageSaveData kkm_last_timestamp [19:17:23]File name is /storage/kkm_last_timestamp [19:17:23]Write 4 bytes [19:17:23]NVStorageSaveData done [19:17:24]OFD Sender: Processing packet 112399 [packets to send 71, broken 70] [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00112399 [19:17:24]OFD Sender: To server: pG, [19:17:24]CommunicateWithHost lk.salyk.kg:30040 [19:17:24]ConnectInit lk.salyk.kg [19:17:24]ExternCall_PrintAddStr [19:17:24]wPrintStart [19:17:24]Write to MH i2c: 01 00 00 2D 23 50 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 2D 23 00 00 00 00 00 FF 0F 65 [19:17:24]RasterBufferAndPrint [19:17:24]line Счет N : (1)48701 [19:17:24]line ИНН: 02508201610067 [19:17:24]line Контрольно-Кассовый Чек [19:17:24]line ПРОДАЖА [19:17:24]line ТРК (МРК, ГНК) : 31 [19:17:24]line Товар: 2710124130 [19:17:24]line SUPER 92-К-5 [19:17:24]line 7.660 * 65.30 [19:17:24]line = 500.20 [19:17:24]line НДС 12% НСП 1% [19:17:24]line > о реализуемом товаре [19:17:24]line ОКРУГЛЕНИЕ: -0.20 [19:17:24]line ИТОГО: 500.00 [19:17:24]line Внесено: 500.00 [19:17:24]line СДАЧА: 0.00 [19:17:24]line НСП 1% : 4.43 [19:17:24]line НДС 12% : 53.12 [19:17:24]line Наличными: 500.00 [19:17:24]line Безнал.: 0.00 [19:17:24]line Место: АЗС № 47 "Партнер Нефть" [19:17:24]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:17:24]line СНО: Общий режим [19:17:24]line Чек 298 14.04.2024 19:17 [19:17:24]line Смена: 357 ФФД: 1.0 [19:17:24]line ЗНМ: 0300000138 [19:17:24]line РНМ: 0000000000094237 [19:17:24]line Версия ККМ: 001 [19:17:24]line ФМ: 0000000000875019 [19:17:24]line ФД: 112399 [19:17:24]line ФПД: 76501723420870 [19:17:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191723&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112399&fm=76501723420870&tin=02508201610067®Number=0000000000094237&sum=50000 [19:17:24]Connected sock=11 [19:17:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 3E 04 08 01 EF 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 2A 01 00 00 F4 03 04 00 C3 2B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B7 01 00 35 04 06 00 45 93 F2 0C 98 C6 2B 93 11 26 A1 98 AA B6 [19:17:24]written 0, free lines is 4095 [19:17:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 59 1A 47 00 13 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 0F B7 01 00 F4 03 04 00 4E D3 1B 66 B6 04 01 00 00 3A A1 DA B6 D3 53 68 6C [19:17:24]CommunicateWithHost err = 0 [19:17:24]CheckOFDResponse [19:17:24]1017 (14) - 77093643461234 [19:17:24]1041 (16) - 0000000000875019 [19:17:24]1040 (4) - 112399 [19:17:24]1012 (4) - 14.04.2024 12:59 [19:17:24]1206 (1) - 0 [19:17:24]OFD Sender: Remove packet 112399 [19:17:24]ProducePacketName [19:17:24]name=ofd_packets/00112399 [19:17:24]NVStorageDeleteData [19:17:24]Write to MH i2c: 01 00 00 58 23 7B [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: 01 07 00 58 23 00 00 00 00 00 DC 0C 6A [19:17:24]RasterBufferAndPrint [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]line [19:17:24]written 0, free lines is 3298 [19:17:24]MH_Cut [19:17:24]Write to MH i2c: D1 01 00 5F 23 01 54 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 01 00 [19:17:24]MH_I2C_Read... [19:17:24]Read from MH i2c: D1 01 00 5F 23 00 53 [19:17:24]Write to MH i2c: 01 00 00 60 23 83 [19:17:24]Write i2c OK [19:17:24]MH_I2C_Read... [19:17:25]OFD Sender: No OFD packet to send [19:17:25]*** Cut start [19:17:25]*** Partial cut [19:17:25]*** CUTSNS_PIN = 1 [19:17:25]*** CUTSNS_PIN = 0 [19:17:25]*** Brake cut motor [19:17:26]Read from MH i2c: 01 [19:17:26]MH_I2C_Read... [19:17:26]*** Stop cut motor [19:17:26]*** Cut end [19:17:26]Read from MH i2c: 01 07 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: 01 07 00 60 23 00 00 00 00 00 FF 0F 98 [19:17:26]process_action close_receipt done [19:17:26]requested_data is exist [19:17:26]produce_requested_data [19:17:26]requested_item fm.sn is exist - process it [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 11 00 00 [19:17:26]Write to MH i2c: E2 08 00 61 23 80 11 00 00 00 00 00 00 FE [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 17 00 61 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [19:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:17:26]wFMCommunicate OK [19:17:26]requested_item fd.num is exist - process it [19:17:26]SAM_PROTO_GetFieldsCounters [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 00 00 [19:17:26]Write to MH i2c: E2 08 00 62 23 80 13 00 00 00 00 00 00 01 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 62 00 62 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [19:17:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 0F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetFieldsCounters done [19:17:26]requested_item shift.num is exist - process it [19:17:26]requested_item shift.opened is exist - process it [19:17:26]req_shift_opened [19:17:26]FM_GetShiftState [19:17:26]SAM_PROTO_GetShiftState [19:17:26]wFMCommunicate request_size=4 [19:17:26]MH_SAM_APDU [19:17:26]CAPDU: 80 13 01 00 [19:17:26]Write to MH i2c: E2 08 00 63 23 80 13 01 00 00 00 00 00 03 [19:17:26]Write i2c OK [19:17:26]MH_I2C_Read... [19:17:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:26]Read from MH i2c: E2 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 [19:17:26]MH_I2C_Read... [19:17:26]Read from MH i2c: E2 0E 00 63 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9B [19:17:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:17:26]wFMCommunicate OK [19:17:26]SAM_PROTO_GetShiftState done [19:17:26]FM_GetShiftState done [19:17:26]req_shift_opened done [19:17:26]requested_item shift.open_date is exist - process it [19:17:26]req_shift_open_date [19:17:26]req_shift_open_date done [19:17:26]produce_requested_data done [19:17:26]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112399,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:17:26]process_action_free close_receipt [19:17:26]json_value_free [19:17:26]json_value_free done [19:17:26]process_json_proto returns [19:17:26]Send response to host [19:17:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112399,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:17:26]free response buf [19:17:26]execute_script done [19:17:26]execute_script returns [19:17:26]free content buf [19:17:26]Sock 8.Close socket [19:17:26]Sock 8.Thread stoped [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:41]accept exits with 9 [19:18:41]New connection [19:18:41]New thread 3066826084 created [19:18:41]Thread 3066682724 joined [19:18:41]Waiting for new connection... [19:18:41] Sock 9.Parse request [19:18:41]Sock 9.Check first char [19:18:41]Sock 9.First char is OK [19:18:41]request: POST /json_proto HTTP/1.0 [19:18:41]Method: POST [19:18:41]URL: /json_proto [19:18:41]Method is POST - this is cgi request [19:18:41]url: /json_proto [19:18:41]query_string will be loaded in cgi processing [19:18:41]execute_cgi json_proto POST (null) [19:18:41]execute_cgi path=json_proto method=POST [19:18:41]POST find Content-Length [19:18:41]Host: 172.17.96.197:8080 [19:18:41]Content-Length: 897 [19:18:41]Content-Type: application/json [19:18:41] [19:18:41]POST finish read [19:18:41]Found Content-Length = 897 [19:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10439", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:41]execute_script... [19:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10439", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 240.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:41]POST & json_proto [19:18:41]process_json_proto [19:18:41]json parsed OK: [19:18:41]protocol is kg_v1.0 [19:18:41]action value=close_receipt [19:18:41]process_action close_receipt [19:18:41]cmd_close_receipt [19:18:41]MH_GetDate [19:18:41]Write to MH i2c: F0 00 00 64 23 76 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 64 23 00 12 2C 1C 66 E0 85 7F 64 87 [19:18:41]GetLastDocTimeStamp 1713122243 [19:18:41]current date 1713122322 [19:18:41]FM_GetShiftState [19:18:41]SAM_PROTO_GetShiftState [19:18:41]wFMCommunicate request_size=4 [19:18:41]MH_SAM_APDU [19:18:41]CAPDU: 80 13 01 00 [19:18:41]Write to MH i2c: E2 08 00 65 23 80 13 01 00 00 00 00 00 05 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 0E 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 0E 00 65 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9D [19:18:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:18:41]wFMCommunicate OK [19:18:41]SAM_PROTO_GetShiftState done [19:18:41]FM_GetShiftState done [19:18:41]opened in 1713054696 [19:18:41]opened+sec_in_day 1713141096 [19:18:41]quantity*price = 10500 [19:18:41]sum+1 = 10501 [19:18:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745031 Сигареты Winston Superslims Expand Blue 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 240.00 НСП 1% : 2.12 НДС 12% : 25.49 Наличными: 240.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 299 14.04.2024 19:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112400 ФПД: 229178041241109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112400&fm=229178041241109&tin=02508201610067®Number=0000000000094237&sum=24000 0 [19:18:42]StoreToDocumentArchive [19:18:42]shift 357 fd 112400 [19:18:42]save to /storage/0357/doc_00112400 [19:18:42]save last doc name /storage/0357/doc_00112400 to /storage/kkm_last_doc_name [19:18:42]save OK [19:18:42]Clear old archive folders... [19:18:42]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:18:42]tlvbuf is 001631A0 [19:18:42]SAM_PROTO_ClearQueue [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 09 00 00 [19:18:42]Write to MH i2c: E2 08 00 72 23 80 09 00 00 00 00 00 00 07 [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 03 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 03 00 72 23 00 90 00 09 [19:18:42]RAPDU: 90 00 [19:18:42]wFMCommunicate OK [19:18:42]SAM_PROTO_ClearQueue done [19:18:42]KKMCreateOFDPacket [19:18:42]OFDProtocolAddRootSTLVToBuf [19:18:42]FM_MakeSignedData [19:18:42]FM_MakeSignedData [19:18:42]SAM_PROTO_SignData [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 0D 01 02 [19:18:42]Write to MH i2c: E2 08 00 73 23 80 0D 01 02 00 00 00 00 0F [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 03 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 03 00 73 23 00 90 00 0A [19:18:42]RAPDU: 90 00 [19:18:42]wFMCommunicate OK [19:18:42]wFMCommunicate request_size=255 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF [19:18:42]Write to MH i2c: E2 02 01 74 23 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 00 00 9D [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 03 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 03 00 74 23 00 90 00 0B [19:18:43]RAPDU: 90 00 [19:18:43]wFMCommunicate OK [19:18:43]wFMCommunicate request_size=155 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 12 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B7 01 00 35 04 06 00 D0 6F AB BD 0E 15 [19:18:43]Write to MH i2c: E2 9E 00 75 23 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 12 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B7 01 00 35 04 06 00 D0 6F AB BD 0E 15 00 00 49 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 03 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 03 00 75 23 00 90 00 0C [19:18:43]RAPDU: 90 00 [19:18:43]wFMCommunicate OK [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 0D 03 02 [19:18:43]Write to MH i2c: E2 08 00 76 23 80 0D 03 02 00 00 00 00 14 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0B 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 0B 00 76 23 00 34 5F 76 7A 91 21 25 80 90 00 EF [19:18:43]RAPDU: 34 5F 76 7A 91 21 25 80 90 00 [19:18:43]wFMCommunicate OK [19:18:43]SAM_PROTO_SignData done [19:18:43]FM_MakeSignedData done [19:18:43]CreateOFDProtocolMessage [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 11 00 00 [19:18:43]Write to MH i2c: E2 08 00 77 23 80 11 00 00 00 00 00 00 14 [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 17 00 77 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [19:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:18:43]wFMCommunicate OK [19:18:43]CreateOFDProtocolMessage done [19:18:43]OFDSenderStorePacket 112400 [19:18:43]StoreOFDPacket docnum=112400 [19:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 A0 01 00 00 89 7E 98 01 22 66 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 12 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B7 01 00 35 04 06 00 D0 6F AB BD 0E 15 34 5F 76 7A 91 21 25 80 [19:18:43]CheckFolder [19:18:43]dirname=/storage/ofd_packets [19:18:43]CheckFolder done [19:18:43]ProducePacketName [19:18:43]name=ofd_packets/00112400 [19:18:43]NVStorageSaveData ofd_packets/00112400 [19:18:43]File name is /storage/ofd_packets/00112400 [19:18:43]Write 446 bytes [19:18:43]NVStorageSaveData done [19:18:43]OFDSenderStorePacket done [19:18:43]KKMCreateOFDPacket done [19:18:43]NVStorageSaveData kkm_last_timestamp [19:18:43]File name is /storage/kkm_last_timestamp [19:18:43]Write 4 bytes [19:18:43]NVStorageSaveData done [19:18:43]ExternCall_PrintAddStr [19:18:43]wPrintStart [19:18:43]Write to MH i2c: 01 00 00 78 23 9B [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: 01 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: 01 07 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: 01 07 00 78 23 00 00 00 00 00 FF 0F B0 [19:18:43]RasterBufferAndPrint [19:18:43]line Счет N : (3)10439 [19:18:43]line ИНН: 02508201610067 [19:18:43]line Контрольно-Кассовый Чек [19:18:43]line ПРОДАЖА [19:18:43]line Товар: 2000034730018 [19:18:43]line Кофе Американо (GABB TRADE) [19:18:43]line 1.000 * 105.00 [19:18:43]line = 105.00 [19:18:43]line НДС 12% НСП 1% [19:18:43]line > о реализуемом товаре [19:18:43]line Товар: 48745031 [19:18:43]line Сигареты Winston Superslims Expand Blue [19:18:43]line 1.000 * 135.00 [19:18:43]line = 135.00 [19:18:43]line НДС 12% НСП 1% [19:18:43]line > о реализуемом товаре [19:18:43]line ИТОГО: 240.00 [19:18:43]line НСП 1% : 2.12 [19:18:43]line НДС 12% : 25.49 [19:18:43]line Наличными: 240.00 [19:18:43]line Безнал.: 0.00 [19:18:43]line Место: АЗС № 47 "Партнер Нефть" [19:18:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:18:43]line СНО: Общий режим [19:18:43]line Чек 299 14.04.2024 19:18 [19:18:43]line Смена: 357 ФФД: 1.0 [19:18:43]line ЗНМ: 0300000138 [19:18:43]line РНМ: 0000000000094237 [19:18:43]line Версия ККМ: 001 [19:18:43]line ФМ: 0000000000875019 [19:18:43]line ФД: 112400 [19:18:43]line ФПД: 229178041241109 [19:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T191842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112400&fm=229178041241109&tin=02508201610067®Number=0000000000094237&sum=24000 [19:18:43]line 0 [19:18:43]OFD Sender: Processing packet 112400 [packets to send 71, broken 70] [19:18:43]ProducePacketName [19:18:43]name=ofd_packets/00112400 [19:18:43]OFD Sender: To server: pG, [19:18:43]CommunicateWithHost lk.salyk.kg:30040 [19:18:43]ConnectInit lk.salyk.kg [19:18:43]written 0, free lines is 4095 [19:18:43]Connected sock=10 [19:18:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 A0 01 00 00 89 7E 98 01 22 66 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 09 00 00 00 00 07 04 06 00 C0 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 12 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 10 B7 01 00 35 04 06 00 D0 6F AB BD 0E 15 34 5F 76 7A 91 21 25 80 [19:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E6 95 47 00 FB 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 38 37 35 30 31 39 10 04 04 00 10 B7 01 00 F4 03 04 00 9D D3 1B 66 B6 04 01 00 00 EC F3 1C 1F D2 2E 88 E0 [19:18:44]CommunicateWithHost err = 0 [19:18:44]CheckOFDResponse [19:18:44]1017 (14) - 77093643461234 [19:18:44]1041 (16) - 0000000000875019 [19:18:44]1040 (4) - 112400 [19:18:44]1012 (4) - 14.04.2024 13:01 [19:18:44]1206 (1) - 0 [19:18:44]OFD Sender: Remove packet 112400 [19:18:44]ProducePacketName [19:18:44]name=ofd_packets/00112400 [19:18:44]NVStorageDeleteData [19:18:44]Write to MH i2c: 01 00 00 A8 23 CB [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 07 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: 01 07 00 A8 23 00 00 00 00 00 67 0C 45 [19:18:44]RasterBufferAndPrint [19:18:44]line [19:18:44]line [19:18:44]line [19:18:44]line [19:18:44]line [19:18:44]written 0, free lines is 3181 [19:18:44]MH_Cut [19:18:44]Write to MH i2c: D1 01 00 AF 23 01 A4 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: D1 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: D1 01 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: D1 01 00 AF 23 00 A3 [19:18:44]Write to MH i2c: 01 00 00 B0 23 D3 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]OFD Sender: No OFD packet to send [19:18:44]*** Cut start [19:18:44]*** Partial cut [19:18:44]*** CUTSNS_PIN = 1 [19:18:45]*** CUTSNS_PIN = 0 [19:18:45]*** Brake cut motor [19:18:45]Read from MH i2c: 01 [19:18:45]MH_I2C_Read... [19:18:45]*** Stop cut motor [19:18:45]*** Cut end [19:18:45]Read from MH i2c: 01 07 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: 01 07 00 B0 23 00 00 00 00 00 FF 0F E8 [19:18:45]process_action close_receipt done [19:18:45]requested_data is exist [19:18:45]produce_requested_data [19:18:45]requested_item fm.sn is exist - process it [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 11 00 00 [19:18:45]Write to MH i2c: E2 08 00 B1 23 80 11 00 00 00 00 00 00 4E [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:45]Read from MH i2c: E2 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 17 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 17 00 B1 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9F [19:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:18:45]wFMCommunicate OK [19:18:45]requested_item fd.num is exist - process it [19:18:45]SAM_PROTO_GetFieldsCounters [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 13 00 00 [19:18:45]Write to MH i2c: E2 08 00 B2 23 80 13 00 00 00 00 00 00 51 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:45]Read from MH i2c: E2 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 62 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 62 00 B2 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 10 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [19:18:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 10 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:45]wFMCommunicate OK [19:18:45]SAM_PROTO_GetFieldsCounters done [19:18:45]requested_item shift.num is exist - process it [19:18:45]requested_item shift.opened is exist - process it [19:18:45]req_shift_opened [19:18:45]FM_GetShiftState [19:18:45]SAM_PROTO_GetShiftState [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 13 01 00 [19:18:45]Write to MH i2c: E2 08 00 B3 23 80 13 01 00 00 00 00 00 53 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:45]Read from MH i2c: E2 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 0E 00 [19:18:45]MH_I2C_Read... [19:18:45]Read from MH i2c: E2 0E 00 B3 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EB [19:18:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:18:45]wFMCommunicate OK [19:18:45]SAM_PROTO_GetShiftState done [19:18:45]FM_GetShiftState done [19:18:45]req_shift_opened done [19:18:45]requested_item shift.open_date is exist - process it [19:18:45]req_shift_open_date [19:18:45]req_shift_open_date done [19:18:45]produce_requested_data done [19:18:45]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112400,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:18:45]process_action_free close_receipt [19:18:45]json_value_free [19:18:45]json_value_free done [19:18:45]process_json_proto returns [19:18:45]Send response to host [19:18:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112400,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:18:45]free response buf [19:18:45]execute_script done [19:18:45]execute_script returns [19:18:45]free content buf [19:18:45]Sock 9.Close socket [19:18:45]Sock 9.Thread stoped [19:18:49]OFD Sender: No OFD packet to send [19:18:54]OFD Sender: No OFD packet to send [19:18:59]OFD Sender: No OFD packet to send [19:19:04]OFD Sender: No OFD packet to send [19:19:09]OFD Sender: No OFD packet to send [19:19:14]OFD Sender: No OFD packet to send [19:19:19]OFD Sender: No OFD packet to send [19:19:24]OFD Sender: No OFD packet to send [19:19:29]OFD Sender: No OFD packet to send [19:19:34]OFD Sender: No OFD packet to send [19:19:39]OFD Sender: No OFD packet to send [19:19:44]OFD Sender: No OFD packet to send [19:19:49]OFD Sender: No OFD packet to send [19:19:54]OFD Sender: No OFD packet to send [19:19:59]OFD Sender: No OFD packet to send [19:20:04]OFD Sender: No OFD packet to send [19:20:09]OFD Sender: No OFD packet to send [19:20:14]OFD Sender: No OFD packet to send [19:20:19]OFD Sender: No OFD packet to send [19:20:24]OFD Sender: No OFD packet to send [19:20:29]OFD Sender: No OFD packet to send [19:20:34]OFD Sender: No OFD packet to send [19:20:39]OFD Sender: No OFD packet to send [19:20:44]OFD Sender: No OFD packet to send [19:20:49]OFD Sender: No OFD packet to send [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:52]accept exits with 8 [19:21:52]New connection [19:21:52]New thread 3066682724 created [19:21:52]Thread 3066826084 joined [19:21:52]Waiting for new connection... [19:21:52] Sock 8.Parse request [19:21:52]Sock 8.Check first char [19:21:52]Sock 8.First char is OK [19:21:52]request: POST /json_proto HTTP/1.0 [19:21:52]Method: POST [19:21:52]URL: /json_proto [19:21:52]Method is POST - this is cgi request [19:21:52]url: /json_proto [19:21:52]query_string will be loaded in cgi processing [19:21:52]execute_cgi json_proto POST (null) [19:21:52]execute_cgi path=json_proto method=POST [19:21:52]POST find Content-Length [19:21:52]Host: 172.17.96.197:8080 [19:21:52]Content-Length: 673 [19:21:52]Content-Type: application/json [19:21:52] [19:21:52]POST finish read [19:21:52]Found Content-Length = 673 [19:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48702", "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.40, "quantity" : 6.910, "sum" : 500.28, "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" ] } } [19:21:52]execute_script... [19:21: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)48702", "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.40, "quantity" : 6.910, "sum" : 500.28, "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" ] } } [19:21:52]POST & json_proto [19:21:52]process_json_proto [19:21:52]json parsed OK: [19:21:52]protocol is kg_v1.0 [19:21:52]action value=close_receipt [19:21:52]process_action close_receipt [19:21:52]cmd_close_receipt [19:21:52]MH_GetDate [19:21:52]Write to MH i2c: F0 00 00 B4 23 C6 [19:21:52]Write i2c OK [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: F0 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: F0 09 00 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: F0 09 00 B4 23 00 D1 2C 1C 66 E0 85 7F 64 96 [19:21:52]GetLastDocTimeStamp 1713122322 [19:21:52]current date 1713122513 [19:21:52]FM_GetShiftState [19:21:52]SAM_PROTO_GetShiftState [19:21:52]wFMCommunicate request_size=4 [19:21:52]MH_SAM_APDU [19:21:52]CAPDU: 80 13 01 00 [19:21:52]Write to MH i2c: E2 08 00 B5 23 80 13 01 00 00 00 00 00 55 [19:21:52]Write i2c OK [19:21:52]MH_I2C_Read... [19:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:52]Read from MH i2c: E2 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: E2 0E 00 [19:21:52]MH_I2C_Read... [19:21:52]Read from MH i2c: E2 0E 00 B5 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 ED [19:21:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:21:52]wFMCommunicate OK [19:21:52]SAM_PROTO_GetShiftState done [19:21:52]FM_GetShiftState done [19:21:52]opened in 1713054696 [19:21:52]opened+sec_in_day 1713141096 [19:21:52]quantity*price = 50028 [19:21:52]sum+1 = 50029 [19:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 300 14.04.2024 19:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112401 ФПД: 40126670646649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192153&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112401&fm=40126670646649&tin=02508201610067®Number=0000000000094237&sum=50000 [19:21:53]StoreToDocumentArchive [19:21:53]shift 357 fd 112401 [19:21:53]save to /storage/0357/doc_00112401 [19:21:53]save last doc name /storage/0357/doc_00112401 to /storage/kkm_last_doc_name [19:21:53]save OK [19:21:53]Clear old archive folders... [19:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:21:53]tlvbuf is B6EBB400 [19:21:53]SAM_PROTO_ClearQueue [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 09 00 00 [19:21:53]Write to MH i2c: E2 08 00 C2 23 80 09 00 00 00 00 00 00 57 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 C2 23 00 90 00 59 [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]SAM_PROTO_ClearQueue done [19:21:53]KKMCreateOFDPacket [19:21:53]OFDProtocolAddRootSTLVToBuf [19:21:53]FM_MakeSignedData [19:21:53]FM_MakeSignedData [19:21:53]SAM_PROTO_SignData [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 01 02 [19:21:53]Write to MH i2c: E2 08 00 C3 23 80 0D 01 02 00 00 00 00 5F [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 C3 23 00 90 00 5A [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=255 [19:21:53]MH_SAM_APDU [19:21: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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 D1 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B7 01 00 35 04 06 00 24 7E B7 F3 [19:21:53]Write to MH i2c: E2 02 01 C4 23 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 D1 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B7 01 00 35 04 06 00 24 7E B7 F3 00 00 43 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 C4 23 00 90 00 5B [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=7 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 02 02 02 2D 79 [19:21:53]Write to MH i2c: E2 0A 00 C5 23 80 0D 02 02 02 00 2D 79 00 00 0C [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 03 00 C5 23 00 90 00 5C [19:21:53]RAPDU: 90 00 [19:21:53]wFMCommunicate OK [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 0D 03 02 [19:21:53]Write to MH i2c: E2 08 00 C6 23 80 0D 03 02 00 00 00 00 64 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0B 00 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 0B 00 C6 23 00 A3 87 9C 17 EA 5B 1D BC 90 00 60 [19:21:53]RAPDU: A3 87 9C 17 EA 5B 1D BC 90 00 [19:21:53]wFMCommunicate OK [19:21:53]SAM_PROTO_SignData done [19:21:53]FM_MakeSignedData done [19:21:53]CreateOFDProtocolMessage [19:21:53]wFMCommunicate request_size=4 [19:21:53]MH_SAM_APDU [19:21:53]CAPDU: 80 11 00 00 [19:21:53]Write to MH i2c: E2 08 00 C7 23 80 11 00 00 00 00 00 00 64 [19:21:53]Write i2c OK [19:21:53]MH_I2C_Read... [19:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:53]Read from MH i2c: E2 [19:21:53]MH_I2C_Read... [19:21:53]Read from MH i2c: E2 17 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: E2 17 00 C7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B5 [19:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:21:54]wFMCommunicate OK [19:21:54]CreateOFDProtocolMessage done [19:21:54]OFDSenderStorePacket 112401 [19:21:54]StoreOFDPacket docnum=112401 [19:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 4A 0F 04 01 C5 7C 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 D1 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B7 01 00 35 04 06 00 24 7E B7 F3 2D 79 A3 87 9C 17 EA 5B 1D BC [19:21:54]CheckFolder [19:21:54]dirname=/storage/ofd_packets [19:21:54]CheckFolder done [19:21:54]ProducePacketName [19:21:54]name=ofd_packets/00112401 [19:21:54]NVStorageSaveData ofd_packets/00112401 [19:21:54]File name is /storage/ofd_packets/00112401 [19:21:54]Write 298 bytes [19:21:54]NVStorageSaveData done [19:21:54]OFDSenderStorePacket done [19:21:54]KKMCreateOFDPacket done [19:21:54]NVStorageSaveData kkm_last_timestamp [19:21:54]File name is /storage/kkm_last_timestamp [19:21:54]Write 4 bytes [19:21:54]NVStorageSaveData done [19:21:54]ExternCall_PrintAddStr [19:21:54]wPrintStart [19:21:54]Write to MH i2c: 01 00 00 C8 23 EB [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 C8 23 00 00 00 00 00 FF 0F 00 [19:21:54]RasterBufferAndPrint [19:21:54]line Счет N : (1)48702 [19:21:54]line ИНН: 02508201610067 [19:21:54]line Контрольно-Кассовый Чек [19:21:54]line ПРОДАЖА [19:21:54]line ТРК (МРК, ГНК) : 61 [19:21:54]line Товар: 2710194210 [19:21:54]line ДТ-К-5 [19:21:54]line 6.910 * 72.40 [19:21:54]line = 500.28 [19:21:54]line НДС 12% НСП 1% [19:21:54]line > о реализуемом товаре [19:21:54]line ОКРУГЛЕНИЕ: -0.28 [19:21:54]line ИТОГО: 500.00 [19:21:54]line Внесено: 500.00 [19:21:54]line СДАЧА: 0.00 [19:21:54]line НСП 1% : 4.43 [19:21:54]line НДС 12% : 53.13 [19:21:54]line Наличными: 500.00 [19:21:54]line Безнал.: 0.00 [19:21:54]line Место: АЗС № 47 "Партнер Нефть" [19:21:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:21:54]line СНО: Общий режим [19:21:54]line Чек 300 14.04.2024 19:21 [19:21:54]line Смена: 357 ФФД: 1.0 [19:21:54]line ЗНМ: 0300000138 [19:21:54]line РНМ: 0000000000094237 [19:21:54]line Версия ККМ: 001 [19:21:54]line ФМ: 0000000000875019 [19:21:54]line ФД: 112401 [19:21:54]line ФПД: 40126670646649 [19:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192153&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112401&fm=40126670646649&tin=02508201610067®Number=0000000000094237&sum=50000 [19:21:54]OFD Sender: Processing packet 112401 [packets to send 71, broken 70] [19:21:54]ProducePacketName [19:21:54]name=ofd_packets/00112401 [19:21:54]OFD Sender: To server: pG, [19:21:54]CommunicateWithHost lk.salyk.kg:30040 [19:21:54]ConnectInit lk.salyk.kg [19:21:54]written 0, free lines is 4095 [19:21:54]Connected sock=10 [19:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 4A 0F 04 01 C5 7C 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 D1 2C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B7 01 00 35 04 06 00 24 7E B7 F3 2D 79 A3 87 9C 17 EA 5B 1D BC [19:21:54]Write to MH i2c: 01 00 00 F3 23 16 [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: 01 07 00 F3 23 00 00 00 00 00 D4 0C FD [19:21:54]RasterBufferAndPrint [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]line [19:21:54]written 0, free lines is 3292 [19:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5D A0 47 00 23 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 11 B7 01 00 F4 03 04 00 5C D4 1B 66 B6 04 01 00 00 5D 1A CF DA 2B 07 DA B2 [19:21:54]CommunicateWithHost err = 0 [19:21:54]CheckOFDResponse [19:21:54]1017 (14) - 77093643461234 [19:21:54]1041 (16) - 0000000000875019 [19:21:54]1040 (4) - 112401 [19:21:54]1012 (4) - 14.04.2024 13:04 [19:21:54]1206 (1) - 0 [19:21:54]OFD Sender: Remove packet 112401 [19:21:54]ProducePacketName [19:21:54]name=ofd_packets/00112401 [19:21:54]NVStorageDeleteData [19:21:54]MH_Cut [19:21:54]Write to MH i2c: D1 01 00 FA 23 01 EF [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 01 00 [19:21:54]MH_I2C_Read... [19:21:54]Read from MH i2c: D1 01 00 FA 23 00 EE [19:21:54]Write to MH i2c: 01 00 00 FB 23 1E [19:21:54]Write i2c OK [19:21:54]MH_I2C_Read... [19:21:55]OFD Sender: No OFD packet to send [19:21:55]*** Cut start [19:21:55]*** Partial cut [19:21:55]*** CUTSNS_PIN = 1 [19:21:55]*** CUTSNS_PIN = 0 [19:21:55]*** Brake cut motor [19:21:56]Read from MH i2c: 01 [19:21:56]MH_I2C_Read... [19:21:56]*** Stop cut motor [19:21:56]*** Cut end [19:21:56]Read from MH i2c: 01 07 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: 01 07 00 FB 23 00 00 00 00 00 FF 0F 33 [19:21:56]process_action close_receipt done [19:21:56]requested_data is exist [19:21:56]produce_requested_data [19:21:56]requested_item fm.sn is exist - process it [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 11 00 00 [19:21:56]Write to MH i2c: E2 08 00 FC 23 80 11 00 00 00 00 00 00 99 [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 17 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 17 00 FC 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EA [19:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:21:56]wFMCommunicate OK [19:21:56]requested_item fd.num is exist - process it [19:21:56]SAM_PROTO_GetFieldsCounters [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 13 00 00 [19:21:56]Write to MH i2c: E2 08 00 FD 23 80 13 00 00 00 00 00 00 9C [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 62 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 62 00 FD 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 11 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [19:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 11 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:21:56]wFMCommunicate OK [19:21:56]SAM_PROTO_GetFieldsCounters done [19:21:56]requested_item shift.num is exist - process it [19:21:56]requested_item shift.opened is exist - process it [19:21:56]req_shift_opened [19:21:56]FM_GetShiftState [19:21:56]SAM_PROTO_GetShiftState [19:21:56]wFMCommunicate request_size=4 [19:21:56]MH_SAM_APDU [19:21:56]CAPDU: 80 13 01 00 [19:21:56]Write to MH i2c: E2 08 00 FE 23 80 13 01 00 00 00 00 00 9E [19:21:56]Write i2c OK [19:21:56]MH_I2C_Read... [19:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:21:56]Read from MH i2c: E2 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0E 00 [19:21:56]MH_I2C_Read... [19:21:56]Read from MH i2c: E2 0E 00 FE 23 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 36 [19:21:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:21:56]wFMCommunicate OK [19:21:56]SAM_PROTO_GetShiftState done [19:21:56]FM_GetShiftState done [19:21:56]req_shift_opened done [19:21:56]requested_item shift.open_date is exist - process it [19:21:56]req_shift_open_date [19:21:56]req_shift_open_date done [19:21:56]produce_requested_data done [19:21:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112401,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:21:56]process_action_free close_receipt [19:21:56]json_value_free [19:21:56]json_value_free done [19:21:56]process_json_proto returns [19:21:56]Send response to host [19:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112401,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:21:56]free response buf [19:21:56]execute_script done [19:21:56]execute_script returns [19:21:56]free content buf [19:21:56]Sock 8.Close socket [19:21:56]Sock 8.Thread stoped [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:37]accept exits with 9 [19:26:37]New connection [19:26:37]New thread 3066826084 created [19:26:37]Thread 3066682724 joined [19:26:37]Waiting for new connection... [19:26:37] Sock 9.Parse request [19:26:37]Sock 9.Check first char [19:26:37]Sock 9.First char is OK [19:26:37]request: POST /json_proto HTTP/1.0 [19:26:37]Method: POST [19:26:37]URL: /json_proto [19:26:37]Method is POST - this is cgi request [19:26:37]url: /json_proto [19:26:37]query_string will be loaded in cgi processing [19:26:37]execute_cgi json_proto POST (null) [19:26:37]execute_cgi path=json_proto method=POST [19:26:37]POST find Content-Length [19:26:37]Host: 172.17.96.197:8080 [19:26:37]Content-Length: 815 [19:26:37]Content-Type: application/json [19:26:37] [19:26:37]POST finish read [19:26:37]Found Content-Length = 815 [19:26:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48703", "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.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:37]execute_script... [19:26: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)48703", "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.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:37]POST & json_proto [19:26:37]process_json_proto [19:26:37]json parsed OK: [19:26:37]protocol is kg_v1.0 [19:26:37]action value=close_receipt [19:26:37]process_action close_receipt [19:26:37]cmd_close_receipt [19:26:37]MH_GetDate [19:26:37]Write to MH i2c: F0 00 00 FF 23 11 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: F0 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: F0 09 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: F0 09 00 FF 23 00 EE 2D 1C 66 E0 85 7F 64 FF [19:26:37]GetLastDocTimeStamp 1713122513 [19:26:37]current date 1713122798 [19:26:37]FM_GetShiftState [19:26:37]SAM_PROTO_GetShiftState [19:26:37]wFMCommunicate request_size=4 [19:26:37]MH_SAM_APDU [19:26:37]CAPDU: 80 13 01 00 [19:26:37]Write to MH i2c: E2 08 00 00 24 80 13 01 00 00 00 00 00 A1 [19:26:37]Write i2c OK [19:26:37]MH_I2C_Read... [19:26:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:37]Read from MH i2c: E2 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0E 00 [19:26:37]MH_I2C_Read... [19:26:37]Read from MH i2c: E2 0E 00 00 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 39 [19:26:37]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:26:37]wFMCommunicate OK [19:26:37]SAM_PROTO_GetShiftState done [19:26:37]FM_GetShiftState done [19:26:37]opened in 1713054696 [19:26:37]opened+sec_in_day 1713141096 [19:26:37]quantity*price = 50025 [19:26:37]sum+1 = 50026 [19:26:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 301 14.04.2024 19:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112402 ФПД: 271442536635104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192638&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112402&fm=271442536635104&tin=02508201610067®Number=0000000000094237&sum=50025 [19:26:38]StoreToDocumentArchive [19:26:38]shift 357 fd 112402 [19:26:38]save to /storage/0357/doc_00112402 [19:26:38]save last doc name /storage/0357/doc_00112402 to /storage/kkm_last_doc_name [19:26:38]save OK [19:26:38]Clear old archive folders... [19:26:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:38]tlvbuf is 001C1F90 [19:26:38]SAM_PROTO_ClearQueue [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 09 00 00 [19:26:38]Write to MH i2c: E2 08 00 0D 24 80 09 00 00 00 00 00 00 A3 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 03 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 03 00 0D 24 00 90 00 A5 [19:26:38]RAPDU: 90 00 [19:26:38]wFMCommunicate OK [19:26:38]SAM_PROTO_ClearQueue done [19:26:38]KKMCreateOFDPacket [19:26:38]OFDProtocolAddRootSTLVToBuf [19:26:38]FM_MakeSignedData [19:26:38]FM_MakeSignedData [19:26:38]SAM_PROTO_SignData [19:26:38]wFMCommunicate request_size=4 [19:26:38]MH_SAM_APDU [19:26:38]CAPDU: 80 0D 01 02 [19:26:38]Write to MH i2c: E2 08 00 0E 24 80 0D 01 02 00 00 00 00 AB [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:38]Read from MH i2c: E2 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 03 00 [19:26:38]MH_I2C_Read... [19:26:38]Read from MH i2c: E2 03 00 0E 24 00 90 00 A6 [19:26:38]RAPDU: 90 00 [19:26:38]wFMCommunicate OK [19:26:38]wFMCommunicate request_size=255 [19:26:38]MH_SAM_APDU [19:26: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 EE 2D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B7 01 00 35 04 06 00 F6 [19:26:38]Write to MH i2c: E2 02 01 0F 24 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 EE 2D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B7 01 00 35 04 06 00 F6 00 00 71 [19:26:38]Write i2c OK [19:26:38]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 03 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 03 00 0F 24 00 90 00 A7 [19:26:39]RAPDU: 90 00 [19:26:39]wFMCommunicate OK [19:26:39]wFMCommunicate request_size=10 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 0D 02 02 05 E0 23 F9 1A E0 [19:26:39]Write to MH i2c: E2 0D 00 10 24 80 0D 02 02 05 00 E0 23 F9 1A E0 00 00 AE [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 03 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 03 00 10 24 00 90 00 A8 [19:26:39]RAPDU: 90 00 [19:26:39]wFMCommunicate OK [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 0D 03 02 [19:26:39]Write to MH i2c: E2 08 00 11 24 80 0D 03 02 00 00 00 00 B0 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0B 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0B 00 11 24 00 D6 38 79 1E CC 98 DD 62 90 00 F9 [19:26:39]RAPDU: D6 38 79 1E CC 98 DD 62 90 00 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_SignData done [19:26:39]FM_MakeSignedData done [19:26:39]CreateOFDProtocolMessage [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 11 00 00 [19:26:39]Write to MH i2c: E2 08 00 12 24 80 11 00 00 00 00 00 00 B0 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 17 00 12 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 01 [19:26:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:26:39]wFMCommunicate OK [19:26:39]CreateOFDProtocolMessage done [19:26:39]OFDSenderStorePacket 112402 [19:26:39]StoreOFDPacket docnum=112402 [19:26:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 40 12 07 01 81 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 EE 2D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B7 01 00 35 04 06 00 F6 E0 23 F9 1A E0 D6 38 79 1E CC 98 DD 62 [19:26:39]CheckFolder [19:26:39]dirname=/storage/ofd_packets [19:26:39]CheckFolder done [19:26:39]ProducePacketName [19:26:39]name=ofd_packets/00112402 [19:26:39]NVStorageSaveData ofd_packets/00112402 [19:26:39]File name is /storage/ofd_packets/00112402 [19:26:39]Write 301 bytes [19:26:39]NVStorageSaveData done [19:26:39]OFDSenderStorePacket done [19:26:39]KKMCreateOFDPacket done [19:26:39]NVStorageSaveData kkm_last_timestamp [19:26:39]File name is /storage/kkm_last_timestamp [19:26:39]Write 4 bytes [19:26:39]NVStorageSaveData done [19:26:39]ExternCall_PrintAddStr [19:26:39]wPrintStart [19:26:39]Write to MH i2c: 01 00 00 13 24 37 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 13 24 00 00 00 00 00 FF 0F 4C [19:26:39]RasterBufferAndPrint [19:26:39]line Счет N : (1)48703 [19:26:39]line ИНН: 02508201610067 [19:26:39]line Контрольно-Кассовый Чек [19:26:39]line ПРОДАЖА [19:26:39]line ТРК (МРК, ГНК) : 32 [19:26:39]line Товар: 2710124130 [19:26:39]line Аи-92-К-5 [19:26:39]line 7.780 * 64.30 [19:26:39]line = 500.25 [19:26:39]line НДС 12% НСП 1% [19:26:39]line > о реализуемом товаре [19:26:39]line ИТОГО: 500.25 [19:26:39]line НСП 1% : 4.43 [19:26:39]line НДС 12% : 53.12 [19:26:39]line Наличными: 0.00 [19:26:39]line Безнал.: 500.25 [19:26:39]line Место: АЗС № 47 "Партнер Нефть" [19:26:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:26:39]line СНО: Общий режим [19:26:39]line Чек 301 14.04.2024 19:26 [19:26:39]line Смена: 357 ФФД: 1.0 [19:26:39]line ЗНМ: 0300000138 [19:26:39]line РНМ: 0000000000094237 [19:26:39]line Версия ККМ: 001 [19:26:39]line Платежная система: Бакай Банк [19:26:39]line ФМ: 0000000000875019 [19:26:39]line ФД: 112402 [19:26:39]line ФПД: 271442536635104 [19:26:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192638&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112402&fm=271442536635104&tin=02508201610067®Number=0000000000094237&sum=50025 [19:26:39]OFD Sender: Processing packet 112402 [packets to send 71, broken 70] [19:26:39]ProducePacketName [19:26:39]name=ofd_packets/00112402 [19:26:39]OFD Sender: To server: pG, [19:26:39]CommunicateWithHost lk.salyk.kg:30040 [19:26:39]ConnectInit lk.salyk.kg [19:26:39]written 0, free lines is 4095 [19:26:39]Connected sock=10 [19:26:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 40 12 07 01 81 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 01 00 00 F4 03 04 00 EE 2D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 12 B7 01 00 35 04 06 00 F6 E0 23 F9 1A E0 D6 38 79 1E CC 98 DD 62 [19:26:39]Write to MH i2c: 01 00 00 3D 24 61 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: 01 07 00 3D 24 00 00 00 00 00 DC 0C 50 [19:26:39]RasterBufferAndPrint [19:26:39]line [19:26:39]line [19:26:39]line [19:26:39]line [19:26:39]line [19:26:39]written 0, free lines is 3298 [19:26:39]MH_Cut [19:26:39]Write to MH i2c: D1 01 00 44 24 01 3A [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: D1 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: D1 01 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: D1 01 00 44 24 00 39 [19:26:39]Write to MH i2c: 01 00 00 45 24 69 [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A5 5E 47 00 1D 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 38 37 35 30 31 39 10 04 04 00 12 B7 01 00 F4 03 04 00 79 D5 1B 66 B6 04 01 00 00 C7 4E 64 5D B0 57 59 AE [19:26:39]CommunicateWithHost err = 0 [19:26:39]CheckOFDResponse [19:26:39]1017 (14) - 77093643461234 [19:26:39]1041 (16) - 0000000000875019 [19:26:39]1040 (4) - 112402 [19:26:39]1012 (4) - 14.04.2024 13:09 [19:26:39]1206 (1) - 0 [19:26:39]OFD Sender: Remove packet 112402 [19:26:39]ProducePacketName [19:26:39]name=ofd_packets/00112402 [19:26:39]NVStorageDeleteData [19:26:40]OFD Sender: No OFD packet to send [19:26:40]*** Cut start [19:26:40]*** Partial cut [19:26:40]*** CUTSNS_PIN = 1 [19:26:40]*** CUTSNS_PIN = 0 [19:26:41]*** Brake cut motor [19:26:41]Read from MH i2c: 01 [19:26:41]MH_I2C_Read... [19:26:41]*** Stop cut motor [19:26:41]*** Cut end [19:26:41]Read from MH i2c: 01 07 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 07 00 45 24 00 00 00 00 00 FF 0F 7E [19:26:41]process_action close_receipt done [19:26:41]requested_data is exist [19:26:41]produce_requested_data [19:26:41]requested_item fm.sn is exist - process it [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 11 00 00 [19:26:41]Write to MH i2c: E2 08 00 46 24 80 11 00 00 00 00 00 00 E4 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 46 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 35 [19:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:26:41]wFMCommunicate OK [19:26:41]requested_item fd.num is exist - process it [19:26:41]SAM_PROTO_GetFieldsCounters [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 13 00 00 [19:26:41]Write to MH i2c: E2 08 00 47 24 80 13 00 00 00 00 00 00 E7 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 62 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 62 00 47 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 12 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:26:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 12 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_GetFieldsCounters done [19:26:41]requested_item shift.num is exist - process it [19:26:41]requested_item shift.opened is exist - process it [19:26:41]req_shift_opened [19:26:41]FM_GetShiftState [19:26:41]SAM_PROTO_GetShiftState [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 13 01 00 [19:26:41]Write to MH i2c: E2 08 00 48 24 80 13 01 00 00 00 00 00 E9 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0E 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0E 00 48 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 81 [19:26:41]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_GetShiftState done [19:26:41]FM_GetShiftState done [19:26:41]req_shift_opened done [19:26:41]requested_item shift.open_date is exist - process it [19:26:41]req_shift_open_date [19:26:41]req_shift_open_date done [19:26:41]produce_requested_data done [19:26:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112402,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:26:41]process_action_free close_receipt [19:26:41]json_value_free [19:26:41]json_value_free done [19:26:41]process_json_proto returns [19:26:41]Send response to host [19:26:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112402,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:26:41]free response buf [19:26:41]execute_script done [19:26:41]execute_script returns [19:26:41]free content buf [19:26:41]Sock 9.Close socket [19:26:41]Sock 9.Thread stoped [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:26:58]accept exits with 8 [19:26:58]New connection [19:26:58]New thread 3066682724 created [19:26:58]Thread 3066826084 joined [19:26:58]Waiting for new connection... [19:26:58] Sock 8.Parse request [19:26:58]Sock 8.Check first char [19:26:58]Sock 8.First char is OK [19:26:58]request: POST /json_proto HTTP/1.0 [19:26:58]Method: POST [19:26:58]URL: /json_proto [19:26:58]Method is POST - this is cgi request [19:26:58]url: /json_proto [19:26:58]query_string will be loaded in cgi processing [19:26:58]execute_cgi json_proto POST (null) [19:26:58]execute_cgi path=json_proto method=POST [19:26:58]POST find Content-Length [19:26:58]Host: 172.17.96.197:8080 [19:26:58]Content-Length: 815 [19:26:58]Content-Type: application/json [19:26:58] [19:26:58]POST finish read [19:26:58]Found Content-Length = 815 [19:26:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]execute_script... [19:26:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48704", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 400.59 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:58]POST & json_proto [19:26:58]process_json_proto [19:26:58]json parsed OK: [19:26:58]protocol is kg_v1.0 [19:26:58]action value=close_receipt [19:26:58]process_action close_receipt [19:26:58]cmd_close_receipt [19:26:58]MH_GetDate [19:26:58]Write to MH i2c: F0 00 00 49 24 5C [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 09 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: F0 09 00 49 24 00 03 2E 1C 66 E0 85 7F 64 60 [19:26:58]GetLastDocTimeStamp 1713122798 [19:26:58]current date 1713122819 [19:26:58]FM_GetShiftState [19:26:58]SAM_PROTO_GetShiftState [19:26:58]wFMCommunicate request_size=4 [19:26:58]MH_SAM_APDU [19:26:58]CAPDU: 80 13 01 00 [19:26:58]Write to MH i2c: E2 08 00 4A 24 80 13 01 00 00 00 00 00 EB [19:26:58]Write i2c OK [19:26:58]MH_I2C_Read... [19:26:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:58]Read from MH i2c: E2 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 [19:26:58]MH_I2C_Read... [19:26:58]Read from MH i2c: E2 0E 00 4A 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 83 [19:26:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:26:58]wFMCommunicate OK [19:26:58]SAM_PROTO_GetShiftState done [19:26:58]FM_GetShiftState done [19:26:58]opened in 1713054696 [19:26:58]opened+sec_in_day 1713141096 [19:26:58]quantity*price = 40058 [19:26:58]sum+1 = 40060 [19:26:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.59 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 0.00 Безнал.: 400.59 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 302 14.04.2024 19:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112403 ФПД: 118686059902161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112403&fm=118686059902161&tin=02508201610067®Number=0000000000094237&sum=40059 [19:26:59]StoreToDocumentArchive [19:26:59]shift 357 fd 112403 [19:26:59]save to /storage/0357/doc_00112403 [19:26:59]save last doc name /storage/0357/doc_00112403 to /storage/kkm_last_doc_name [19:26:59]save OK [19:26:59]Clear old archive folders... [19:26:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:26:59]tlvbuf is 001539A0 [19:26:59]SAM_PROTO_ClearQueue [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 09 00 00 [19:26:59]Write to MH i2c: E2 08 00 57 24 80 09 00 00 00 00 00 00 ED [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 57 24 00 90 00 EF [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]SAM_PROTO_ClearQueue done [19:26:59]KKMCreateOFDPacket [19:26:59]OFDProtocolAddRootSTLVToBuf [19:26:59]FM_MakeSignedData [19:26:59]FM_MakeSignedData [19:26:59]SAM_PROTO_SignData [19:26:59]wFMCommunicate request_size=4 [19:26:59]MH_SAM_APDU [19:26:59]CAPDU: 80 0D 01 02 [19:26:59]Write to MH i2c: E2 08 00 58 24 80 0D 01 02 00 00 00 00 F5 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:26:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:59]Read from MH i2c: E2 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 [19:26:59]MH_I2C_Read... [19:26:59]Read from MH i2c: E2 03 00 58 24 00 90 00 F0 [19:26:59]RAPDU: 90 00 [19:26:59]wFMCommunicate OK [19:26:59]wFMCommunicate request_size=255 [19:26:59]MH_SAM_APDU [19:26:59]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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 03 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B7 01 00 35 04 06 00 6B [19:26:59]Write to MH i2c: E2 02 01 59 24 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 03 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B7 01 00 35 04 06 00 6B 00 00 76 [19:26:59]Write i2c OK [19:26:59]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 59 24 00 90 00 F1 [19:27:00]RAPDU: 90 00 [19:27:00]wFMCommunicate OK [19:27:00]wFMCommunicate request_size=10 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 0D 02 02 05 F1 C0 70 B4 D1 [19:27:00]Write to MH i2c: E2 0D 00 5A 24 80 0D 02 02 05 00 F1 C0 70 B4 D1 00 00 A8 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 03 00 5A 24 00 90 00 F2 [19:27:00]RAPDU: 90 00 [19:27:00]wFMCommunicate OK [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 0D 03 02 [19:27:00]Write to MH i2c: E2 08 00 5B 24 80 0D 03 02 00 00 00 00 FA [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 0B 00 5B 24 00 ED 17 BD 97 C9 DB 4E 4F 90 00 94 [19:27:00]RAPDU: ED 17 BD 97 C9 DB 4E 4F 90 00 [19:27:00]wFMCommunicate OK [19:27:00]SAM_PROTO_SignData done [19:27:00]FM_MakeSignedData done [19:27:00]CreateOFDProtocolMessage [19:27:00]wFMCommunicate request_size=4 [19:27:00]MH_SAM_APDU [19:27:00]CAPDU: 80 11 00 00 [19:27:00]Write to MH i2c: E2 08 00 5C 24 80 11 00 00 00 00 00 00 FA [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:00]Read from MH i2c: E2 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: E2 17 00 5C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4B [19:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:27:00]wFMCommunicate OK [19:27:00]CreateOFDProtocolMessage done [19:27:00]OFDSenderStorePacket 112403 [19:27:00]StoreOFDPacket docnum=112403 [19:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F9 94 07 01 D8 B5 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 03 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B7 01 00 35 04 06 00 6B F1 C0 70 B4 D1 ED 17 BD 97 C9 DB 4E 4F [19:27:00]CheckFolder [19:27:00]dirname=/storage/ofd_packets [19:27:00]CheckFolder done [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00112403 [19:27:00]NVStorageSaveData ofd_packets/00112403 [19:27:00]File name is /storage/ofd_packets/00112403 [19:27:00]Write 301 bytes [19:27:00]NVStorageSaveData done [19:27:00]OFDSenderStorePacket done [19:27:00]KKMCreateOFDPacket done [19:27:00]NVStorageSaveData kkm_last_timestamp [19:27:00]File name is /storage/kkm_last_timestamp [19:27:00]Write 4 bytes [19:27:00]NVStorageSaveData done [19:27:00]ExternCall_PrintAddStr [19:27:00]wPrintStart [19:27:00]Write to MH i2c: 01 00 00 5D 24 81 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 5D 24 00 00 00 00 00 FF 0F 96 [19:27:00]RasterBufferAndPrint [19:27:00]line Счет N : (1)48704 [19:27:00]line ИНН: 02508201610067 [19:27:00]line Контрольно-Кассовый Чек [19:27:00]line ПРОДАЖА [19:27:00]line ТРК (МРК, ГНК) : 11 [19:27:00]line Товар: 2710124130 [19:27:00]line Аи-92-К-5 [19:27:00]line 6.230 * 64.30 [19:27:00]line = 400.59 [19:27:00]line НДС 12% НСП 1% [19:27:00]line > о реализуемом товаре [19:27:00]line ИТОГО: 400.59 [19:27:00]line НСП 1% : 3.54 [19:27:00]line НДС 12% : 42.54 [19:27:00]line Наличными: 0.00 [19:27:00]line Безнал.: 400.59 [19:27:00]line Место: АЗС № 47 "Партнер Нефть" [19:27:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:27:00]line СНО: Общий режим [19:27:00]line Чек 302 14.04.2024 19:26 [19:27:00]line Смена: 357 ФФД: 1.0 [19:27:00]line ЗНМ: 0300000138 [19:27:00]line РНМ: 0000000000094237 [19:27:00]line Версия ККМ: 001 [19:27:00]line Платежная система: Бакай Банк [19:27:00]line ФМ: 0000000000875019 [19:27:00]line ФД: 112403 [19:27:00]line ФПД: 118686059902161 [19:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112403&fm=118686059902161&tin=02508201610067®Number=0000000000094237&sum=40059 [19:27:00]OFD Sender: Processing packet 112403 [packets to send 71, broken 70] [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00112403 [19:27:00]OFD Sender: To server: pG, [19:27:00]CommunicateWithHost lk.salyk.kg:30040 [19:27:00]ConnectInit lk.salyk.kg [19:27:00]written 0, free lines is 4095 [19:27:00]Connected sock=10 [19:27:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F9 94 07 01 D8 B5 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7B 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 9E 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7B 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 01 00 00 F4 03 04 00 03 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B7 01 00 35 04 06 00 6B F1 C0 70 B4 D1 ED 17 BD 97 C9 DB 4E 4F [19:27:00]Write to MH i2c: 01 00 00 87 24 AB [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: 01 07 00 87 24 00 00 00 00 00 E4 0C A2 [19:27:00]RasterBufferAndPrint [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]line [19:27:00]written 0, free lines is 3303 [19:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A5 6E 47 00 37 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 13 B7 01 00 F4 03 04 00 8E D5 1B 66 B6 04 01 00 00 27 23 D8 8F 69 51 D8 45 [19:27:00]CommunicateWithHost err = 0 [19:27:00]CheckOFDResponse [19:27:00]1017 (14) - 77093643461234 [19:27:00]1041 (16) - 0000000000875019 [19:27:00]1040 (4) - 112403 [19:27:00]1012 (4) - 14.04.2024 13:09 [19:27:00]1206 (1) - 0 [19:27:00]OFD Sender: Remove packet 112403 [19:27:00]ProducePacketName [19:27:00]name=ofd_packets/00112403 [19:27:00]NVStorageDeleteData [19:27:00]MH_Cut [19:27:00]Write to MH i2c: D1 01 00 8E 24 01 84 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 01 00 [19:27:00]MH_I2C_Read... [19:27:00]Read from MH i2c: D1 01 00 8E 24 00 83 [19:27:00]Write to MH i2c: 01 00 00 8F 24 B3 [19:27:00]Write i2c OK [19:27:00]MH_I2C_Read... [19:27:01]OFD Sender: No OFD packet to send [19:27:01]*** Cut start [19:27:01]*** Partial cut [19:27:01]*** CUTSNS_PIN = 1 [19:27:01]*** CUTSNS_PIN = 0 [19:27:02]*** Brake cut motor [19:27:02]Read from MH i2c: 01 [19:27:02]MH_I2C_Read... [19:27:02]*** Stop cut motor [19:27:02]*** Cut end [19:27:02]Read from MH i2c: 01 07 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: 01 07 00 8F 24 00 00 00 00 00 FF 0F C8 [19:27:02]process_action close_receipt done [19:27:02]requested_data is exist [19:27:02]produce_requested_data [19:27:02]requested_item fm.sn is exist - process it [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 11 00 00 [19:27:02]Write to MH i2c: E2 08 00 90 24 80 11 00 00 00 00 00 00 2E [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 17 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 17 00 90 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7F [19:27:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:27:02]wFMCommunicate OK [19:27:02]requested_item fd.num is exist - process it [19:27:02]SAM_PROTO_GetFieldsCounters [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 13 00 00 [19:27:02]Write to MH i2c: E2 08 00 91 24 80 13 00 00 00 00 00 00 31 [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 62 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 62 00 91 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 13 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:27:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 13 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:02]wFMCommunicate OK [19:27:02]SAM_PROTO_GetFieldsCounters done [19:27:02]requested_item shift.num is exist - process it [19:27:02]requested_item shift.opened is exist - process it [19:27:02]req_shift_opened [19:27:02]FM_GetShiftState [19:27:02]SAM_PROTO_GetShiftState [19:27:02]wFMCommunicate request_size=4 [19:27:02]MH_SAM_APDU [19:27:02]CAPDU: 80 13 01 00 [19:27:02]Write to MH i2c: E2 08 00 92 24 80 13 01 00 00 00 00 00 33 [19:27:02]Write i2c OK [19:27:02]MH_I2C_Read... [19:27:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:02]Read from MH i2c: E2 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 0E 00 [19:27:02]MH_I2C_Read... [19:27:02]Read from MH i2c: E2 0E 00 92 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CB [19:27:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:27:02]wFMCommunicate OK [19:27:02]SAM_PROTO_GetShiftState done [19:27:02]FM_GetShiftState done [19:27:02]req_shift_opened done [19:27:02]requested_item shift.open_date is exist - process it [19:27:02]req_shift_open_date [19:27:02]req_shift_open_date done [19:27:02]produce_requested_data done [19:27:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112403,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:27:02]process_action_free close_receipt [19:27:02]json_value_free [19:27:02]json_value_free done [19:27:02]process_json_proto returns [19:27:02]Send response to host [19:27:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112403,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:27:02]free response buf [19:27:02]execute_script done [19:27:02]execute_script returns [19:27:02]free content buf [19:27:02]Sock 8.Close socket [19:27:02]Sock 8.Thread stoped [19:27:06]OFD Sender: No OFD packet to send [19:27:11]OFD Sender: No OFD packet to send [19:27:16]OFD Sender: No OFD packet to send [19:27:21]OFD Sender: No OFD packet to send [19:27:25]accept exits with 9 [19:27:25]New connection [19:27:25]New thread 3066826084 created [19:27:25]Thread 3066682724 joined [19:27:25]Waiting for new connection... [19:27:25] Sock 9.Parse request [19:27:25]Sock 9.Check first char [19:27:25]Sock 9.First char is OK [19:27:25]request: POST /json_proto HTTP/1.0 [19:27:25]Method: POST [19:27:25]URL: /json_proto [19:27:25]Method is POST - this is cgi request [19:27:25]url: /json_proto [19:27:25]query_string will be loaded in cgi processing [19:27:25]execute_cgi json_proto POST (null) [19:27:25]execute_cgi path=json_proto method=POST [19:27:25]POST find Content-Length [19:27:25]Host: 172.17.96.197:8080 [19:27:25]Content-Length: 676 [19:27:25]Content-Type: application/json [19:27:25] [19:27:25]POST finish read [19:27:25]Found Content-Length = 676 [19:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [19:27:25]execute_script... [19:27: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)48705", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [19:27:25]POST & json_proto [19:27:25]process_json_proto [19:27:25]json parsed OK: [19:27:25]protocol is kg_v1.0 [19:27:25]action value=close_receipt [19:27:25]process_action close_receipt [19:27:25]cmd_close_receipt [19:27:25]MH_GetDate [19:27:25]Write to MH i2c: F0 00 00 93 24 A6 [19:27:25]Write i2c OK [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: F0 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: F0 09 00 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: F0 09 00 93 24 00 1F 2E 1C 66 E0 85 7F 64 C6 [19:27:25]GetLastDocTimeStamp 1713122819 [19:27:25]current date 1713122847 [19:27:25]FM_GetShiftState [19:27:25]SAM_PROTO_GetShiftState [19:27:25]wFMCommunicate request_size=4 [19:27:25]MH_SAM_APDU [19:27:25]CAPDU: 80 13 01 00 [19:27:25]Write to MH i2c: E2 08 00 94 24 80 13 01 00 00 00 00 00 35 [19:27:25]Write i2c OK [19:27:25]MH_I2C_Read... [19:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:25]Read from MH i2c: E2 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: E2 0E 00 [19:27:25]MH_I2C_Read... [19:27:25]Read from MH i2c: E2 0E 00 94 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CD [19:27:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:27:25]wFMCommunicate OK [19:27:25]SAM_PROTO_GetShiftState done [19:27:25]FM_GetShiftState done [19:27:25]opened in 1713054696 [19:27:25]opened+sec_in_day 1713141096 [19:27:25]quantity*price = 50025 [19:27:25]sum+1 = 50026 [19:27:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 303 14.04.2024 19:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112404 ФПД: 91630564279733 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192727&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112404&fm=91630564279733&tin=02508201610067®Number=0000000000094237&sum=50000 [19:27:26]StoreToDocumentArchive [19:27:26]shift 357 fd 112404 [19:27:26]save to /storage/0357/doc_00112404 [19:27:26]save last doc name /storage/0357/doc_00112404 to /storage/kkm_last_doc_name [19:27:26]save OK [19:27:26]Clear old archive folders... [19:27:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:27:26]tlvbuf is 001B8140 [19:27:26]SAM_PROTO_ClearQueue [19:27:26]wFMCommunicate request_size=4 [19:27:26]MH_SAM_APDU [19:27:26]CAPDU: 80 09 00 00 [19:27:26]Write to MH i2c: E2 08 00 A1 24 80 09 00 00 00 00 00 00 37 [19:27:26]Write i2c OK [19:27:26]MH_I2C_Read... [19:27:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:26]Read from MH i2c: E2 [19:27:26]MH_I2C_Read... [19:27:26]Read from MH i2c: E2 03 00 [19:27:26]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 A1 24 00 90 00 39 [19:27:27]RAPDU: 90 00 [19:27:27]wFMCommunicate OK [19:27:27]SAM_PROTO_ClearQueue done [19:27:27]KKMCreateOFDPacket [19:27:27]OFDProtocolAddRootSTLVToBuf [19:27:27]FM_MakeSignedData [19:27:27]FM_MakeSignedData [19:27:27]SAM_PROTO_SignData [19:27:27]wFMCommunicate request_size=4 [19:27:27]MH_SAM_APDU [19:27:27]CAPDU: 80 0D 01 02 [19:27:27]Write to MH i2c: E2 08 00 A2 24 80 0D 01 02 00 00 00 00 3F [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:27]Read from MH i2c: E2 03 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 A2 24 00 90 00 3A [19:27:27]RAPDU: 90 00 [19:27:27]wFMCommunicate OK [19:27:27]wFMCommunicate request_size=255 [19:27:27]MH_SAM_APDU [19:27:27]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2F 01 00 00 F4 03 04 00 1F 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B7 01 00 35 04 06 00 53 [19:27:27]Write to MH i2c: E2 02 01 A3 24 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2F 01 00 00 F4 03 04 00 1F 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B7 01 00 35 04 06 00 53 00 00 66 [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 A3 24 00 90 00 3B [19:27:27]RAPDU: 90 00 [19:27:27]wFMCommunicate OK [19:27:27]wFMCommunicate request_size=10 [19:27:27]MH_SAM_APDU [19:27:27]CAPDU: 80 0D 02 02 05 56 67 3C 05 B5 [19:27:27]Write to MH i2c: E2 0D 00 A4 24 80 0D 02 02 05 00 56 67 3C 05 B5 00 00 FF [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 03 00 A4 24 00 90 00 3C [19:27:27]RAPDU: 90 00 [19:27:27]wFMCommunicate OK [19:27:27]wFMCommunicate request_size=4 [19:27:27]MH_SAM_APDU [19:27:27]CAPDU: 80 0D 03 02 [19:27:27]Write to MH i2c: E2 08 00 A5 24 80 0D 03 02 00 00 00 00 44 [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 0B 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 0B 00 A5 24 00 17 60 30 AB A9 29 2D 8F 90 00 25 [19:27:27]RAPDU: 17 60 30 AB A9 29 2D 8F 90 00 [19:27:27]wFMCommunicate OK [19:27:27]SAM_PROTO_SignData done [19:27:27]FM_MakeSignedData done [19:27:27]CreateOFDProtocolMessage [19:27:27]wFMCommunicate request_size=4 [19:27:27]MH_SAM_APDU [19:27:27]CAPDU: 80 11 00 00 [19:27:27]Write to MH i2c: E2 08 00 A6 24 80 11 00 00 00 00 00 00 44 [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:27]Read from MH i2c: E2 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 17 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: E2 17 00 A6 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 95 [19:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:27:27]wFMCommunicate OK [19:27:27]CreateOFDProtocolMessage done [19:27:27]OFDSenderStorePacket 112404 [19:27:27]StoreOFDPacket docnum=112404 [19:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BA 95 07 01 7E 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2F 01 00 00 F4 03 04 00 1F 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B7 01 00 35 04 06 00 53 56 67 3C 05 B5 17 60 30 AB A9 29 2D 8F [19:27:27]CheckFolder [19:27:27]dirname=/storage/ofd_packets [19:27:27]CheckFolder done [19:27:27]ProducePacketName [19:27:27]name=ofd_packets/00112404 [19:27:27]NVStorageSaveData ofd_packets/00112404 [19:27:27]File name is /storage/ofd_packets/00112404 [19:27:27]Write 301 bytes [19:27:27]NVStorageSaveData done [19:27:27]OFDSenderStorePacket done [19:27:27]KKMCreateOFDPacket done [19:27:27]NVStorageSaveData kkm_last_timestamp [19:27:27]File name is /storage/kkm_last_timestamp [19:27:27]Write 4 bytes [19:27:27]NVStorageSaveData done [19:27:27]ExternCall_PrintAddStr [19:27:27]wPrintStart [19:27:27]Write to MH i2c: 01 00 00 A7 24 CB [19:27:27]Write i2c OK [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: 01 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: 01 07 00 [19:27:27]MH_I2C_Read... [19:27:27]Read from MH i2c: 01 07 00 A7 24 00 00 00 00 00 FF 0F E0 [19:27:27]RasterBufferAndPrint [19:27:27]line Счет N : (1)48705 [19:27:27]line ИНН: 02508201610067 [19:27:27]line Контрольно-Кассовый Чек [19:27:27]line ПРОДАЖА [19:27:27]line ТРК (МРК, ГНК) : 21 [19:27:27]line Товар: 2710124130 [19:27:27]line Аи-92-К-5 [19:27:27]line 7.780 * 64.30 [19:27:27]line = 500.25 [19:27:27]line НДС 12% НСП 1% [19:27:27]line > о реализуемом товаре [19:27:27]line ОКРУГЛЕНИЕ: -0.25 [19:27:27]line ИТОГО: 500.00 [19:27:27]line Внесено: 500.00 [19:27:27]line СДАЧА: 0.00 [19:27:27]line НСП 1% : 4.43 [19:27:27]line НДС 12% : 53.12 [19:27:27]line Наличными: 500.00 [19:27:27]line Безнал.: 0.00 [19:27:27]line Место: АЗС № 47 "Партнер Нефть" [19:27:27]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:27:27]line СНО: Общий режим [19:27:27]line Чек 303 14.04.2024 19:27 [19:27:27]line Смена: 357 ФФД: 1.0 [19:27:27]line ЗНМ: 0300000138 [19:27:27]line РНМ: 0000000000094237 [19:27:27]line Версия ККМ: 001 [19:27:27]line ФМ: 0000000000875019 [19:27:27]line ФД: 112404 [19:27:27]line ФПД: 91630564279733 [19:27:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192727&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112404&fm=91630564279733&tin=02508201610067®Number=0000000000094237&sum=50000 [19:27:27]OFD Sender: Processing packet 112404 [packets to send 71, broken 70] [19:27:27]ProducePacketName [19:27:27]name=ofd_packets/00112404 [19:27:27]OFD Sender: To server: pG, [19:27:27]CommunicateWithHost lk.salyk.kg:30040 [19:27:27]ConnectInit lk.salyk.kg [19:27:27]written 0, free lines is 4095 [19:27:27]Connected sock=10 [19:27:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BA 95 07 01 7E 3F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 2F 01 00 00 F4 03 04 00 1F 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B7 01 00 35 04 06 00 53 56 67 3C 05 B5 17 60 30 AB A9 29 2D 8F [19:27:28]Write to MH i2c: 01 00 00 D2 24 F6 [19:27:28]Write i2c OK [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: 01 [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: 01 07 00 [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: 01 07 00 D2 24 00 00 00 00 00 CD 0C D6 [19:27:28]RasterBufferAndPrint [19:27:28]line [19:27:28]line [19:27:28]line [19:27:28]line [19:27:28]line [19:27:28]written 0, free lines is 3284 [19:27:28]MH_Cut [19:27:28]Write to MH i2c: D1 01 00 D9 24 01 CF [19:27:28]Write i2c OK [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: D1 [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: D1 01 00 [19:27:28]MH_I2C_Read... [19:27:28]Read from MH i2c: D1 01 00 D9 24 00 CE [19:27:28]Write to MH i2c: 01 00 00 DA 24 FE [19:27:28]Write i2c OK [19:27:28]MH_I2C_Read... [19:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 34 E1 47 00 66 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 14 B7 01 00 F4 03 04 00 A9 D5 1B 66 B6 04 01 00 00 FF 11 7B 1F 96 80 CA 37 [19:27:28]CommunicateWithHost err = 0 [19:27:28]CheckOFDResponse [19:27:28]1017 (14) - 77093643461234 [19:27:28]1041 (16) - 0000000000875019 [19:27:28]1040 (4) - 112404 [19:27:28]1012 (4) - 14.04.2024 13:10 [19:27:28]1206 (1) - 0 [19:27:28]OFD Sender: Remove packet 112404 [19:27:28]ProducePacketName [19:27:28]name=ofd_packets/00112404 [19:27:28]NVStorageDeleteData [19:27:28]OFD Sender: No OFD packet to send [19:27:29]*** Cut start [19:27:29]*** Partial cut [19:27:29]*** CUTSNS_PIN = 1 [19:27:29]*** CUTSNS_PIN = 0 [19:27:29]*** Brake cut motor [19:27:29]Read from MH i2c: 01 [19:27:29]MH_I2C_Read... [19:27:29]*** Stop cut motor [19:27:29]*** Cut end [19:27:29]Read from MH i2c: 01 07 00 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: 01 07 00 DA 24 00 00 00 00 00 FF 0F 13 [19:27:29]process_action close_receipt done [19:27:29]requested_data is exist [19:27:29]produce_requested_data [19:27:29]requested_item fm.sn is exist - process it [19:27:29]wFMCommunicate request_size=4 [19:27:29]MH_SAM_APDU [19:27:29]CAPDU: 80 11 00 00 [19:27:29]Write to MH i2c: E2 08 00 DB 24 80 11 00 00 00 00 00 00 79 [19:27:29]Write i2c OK [19:27:29]MH_I2C_Read... [19:27:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:29]Read from MH i2c: E2 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 17 00 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 17 00 DB 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CA [19:27:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:27:29]wFMCommunicate OK [19:27:29]requested_item fd.num is exist - process it [19:27:29]SAM_PROTO_GetFieldsCounters [19:27:29]wFMCommunicate request_size=4 [19:27:29]MH_SAM_APDU [19:27:29]CAPDU: 80 13 00 00 [19:27:29]Write to MH i2c: E2 08 00 DC 24 80 13 00 00 00 00 00 00 7C [19:27:29]Write i2c OK [19:27:29]MH_I2C_Read... [19:27:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:29]Read from MH i2c: E2 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 62 00 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 62 00 DC 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 14 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 5D [19:27:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 14 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:27:29]wFMCommunicate OK [19:27:29]SAM_PROTO_GetFieldsCounters done [19:27:29]requested_item shift.num is exist - process it [19:27:29]requested_item shift.opened is exist - process it [19:27:29]req_shift_opened [19:27:29]FM_GetShiftState [19:27:29]SAM_PROTO_GetShiftState [19:27:29]wFMCommunicate request_size=4 [19:27:29]MH_SAM_APDU [19:27:29]CAPDU: 80 13 01 00 [19:27:29]Write to MH i2c: E2 08 00 DD 24 80 13 01 00 00 00 00 00 7E [19:27:29]Write i2c OK [19:27:29]MH_I2C_Read... [19:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:29]Read from MH i2c: E2 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 0E 00 [19:27:29]MH_I2C_Read... [19:27:29]Read from MH i2c: E2 0E 00 DD 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 16 [19:27:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:27:29]wFMCommunicate OK [19:27:29]SAM_PROTO_GetShiftState done [19:27:29]FM_GetShiftState done [19:27:29]req_shift_opened done [19:27:29]requested_item shift.open_date is exist - process it [19:27:29]req_shift_open_date [19:27:29]req_shift_open_date done [19:27:29]produce_requested_data done [19:27:29]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112404,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:27:29]process_action_free close_receipt [19:27:29]json_value_free [19:27:29]json_value_free done [19:27:29]process_json_proto returns [19:27:29]Send response to host [19:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112404,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:27:29]free response buf [19:27:29]execute_script done [19:27:29]execute_script returns [19:27:29]free content buf [19:27:29]Sock 9.Close socket [19:27:29]Sock 9.Thread stoped [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:17]accept exits with 8 [19:28:17]New connection [19:28:17]New thread 3066682724 created [19:28:17]Thread 3066826084 joined [19:28:17]Waiting for new connection... [19:28:17] Sock 8.Parse request [19:28:17]Sock 8.Check first char [19:28:17]Sock 8.First char is OK [19:28:17]request: POST /json_proto HTTP/1.0 [19:28:17]Method: POST [19:28:17]URL: /json_proto [19:28:17]Method is POST - this is cgi request [19:28:17]url: /json_proto [19:28:17]query_string will be loaded in cgi processing [19:28:17]execute_cgi json_proto POST (null) [19:28:17]execute_cgi path=json_proto method=POST [19:28:17]POST find Content-Length [19:28:17]Host: 172.17.96.197:8080 [19:28:17]Content-Length: 681 [19:28:17]Content-Type: application/json [19:28:17] [19:28:17]POST finish read [19:28:17]Found Content-Length = 681 [19:28:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48706", "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.30, "quantity" : 23.330, "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" ] } } [19:28:17]execute_script... [19:28: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)48706", "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.30, "quantity" : 23.330, "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" ] } } [19:28:17]POST & json_proto [19:28:17]process_json_proto [19:28:17]json parsed OK: [19:28:17]protocol is kg_v1.0 [19:28:17]action value=close_receipt [19:28:17]process_action close_receipt [19:28:17]cmd_close_receipt [19:28:17]MH_GetDate [19:28:17]Write to MH i2c: F0 00 00 DE 24 F1 [19:28:17]Write i2c OK [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: F0 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: F0 09 00 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: F0 09 00 DE 24 00 53 2E 1C 66 E0 85 7F 64 45 [19:28:17]GetLastDocTimeStamp 1713122847 [19:28:17]current date 1713122899 [19:28:17]FM_GetShiftState [19:28:17]SAM_PROTO_GetShiftState [19:28:17]wFMCommunicate request_size=4 [19:28:17]MH_SAM_APDU [19:28:17]CAPDU: 80 13 01 00 [19:28:17]Write to MH i2c: E2 08 00 DF 24 80 13 01 00 00 00 00 00 80 [19:28:17]Write i2c OK [19:28:17]MH_I2C_Read... [19:28:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:17]Read from MH i2c: E2 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 0E 00 [19:28:17]MH_I2C_Read... [19:28:17]Read from MH i2c: E2 0E 00 DF 24 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 18 [19:28:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:28:17]wFMCommunicate OK [19:28:17]SAM_PROTO_GetShiftState done [19:28:17]FM_GetShiftState done [19:28:17]opened in 1713054696 [19:28:17]opened+sec_in_day 1713141096 [19:28:17]quantity*price = 150011 [19:28:17]sum+1 = 150013 [19:28:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 304 14.04.2024 19:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112405 ФПД: 112074614656039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192819&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112405&fm=112074614656039&tin=02508201610067®Number=0000000000094237&sum=150000 [19:28:18]StoreToDocumentArchive [19:28:18]shift 357 fd 112405 [19:28:18]save to /storage/0357/doc_00112405 [19:28:18]save last doc name /storage/0357/doc_00112405 to /storage/kkm_last_doc_name [19:28:18]save OK [19:28:18]Clear old archive folders... [19:28:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:18]tlvbuf is 001F7F50 [19:28:18]SAM_PROTO_ClearQueue [19:28:18]wFMCommunicate request_size=4 [19:28:18]MH_SAM_APDU [19:28:18]CAPDU: 80 09 00 00 [19:28:18]Write to MH i2c: E2 08 00 EC 24 80 09 00 00 00 00 00 00 82 [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 EC 24 00 90 00 84 [19:28:18]RAPDU: 90 00 [19:28:18]wFMCommunicate OK [19:28:18]SAM_PROTO_ClearQueue done [19:28:18]KKMCreateOFDPacket [19:28:18]OFDProtocolAddRootSTLVToBuf [19:28:18]FM_MakeSignedData [19:28:18]FM_MakeSignedData [19:28:18]SAM_PROTO_SignData [19:28:18]wFMCommunicate request_size=4 [19:28:18]MH_SAM_APDU [19:28:18]CAPDU: 80 0D 01 02 [19:28:18]Write to MH i2c: E2 08 00 ED 24 80 0D 01 02 00 00 00 00 8A [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:18]OFD Sender: No OFD packet to send [19:28:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:18]Read from MH i2c: E2 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 [19:28:18]MH_I2C_Read... [19:28:18]Read from MH i2c: E2 03 00 ED 24 00 90 00 85 [19:28:18]RAPDU: 90 00 [19:28:18]wFMCommunicate OK [19:28:18]wFMCommunicate request_size=255 [19:28:18]MH_SAM_APDU [19: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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 30 01 00 00 F4 03 04 00 53 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B7 01 00 35 04 06 00 65 [19:28:18]Write to MH i2c: E2 02 01 EE 24 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 30 01 00 00 F4 03 04 00 53 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B7 01 00 35 04 06 00 65 00 00 7B [19:28:18]Write i2c OK [19:28:18]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 03 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 03 00 EE 24 00 90 00 86 [19:28:19]RAPDU: 90 00 [19:28:19]wFMCommunicate OK [19:28:19]wFMCommunicate request_size=10 [19:28:19]MH_SAM_APDU [19:28:19]CAPDU: 80 0D 02 02 05 EE 67 98 4C 27 [19:28:19]Write to MH i2c: E2 0D 00 EF 24 80 0D 02 02 05 00 EE 67 98 4C 27 00 00 F7 [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 03 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 03 00 EF 24 00 90 00 87 [19:28:19]RAPDU: 90 00 [19:28:19]wFMCommunicate OK [19:28:19]wFMCommunicate request_size=4 [19:28:19]MH_SAM_APDU [19:28:19]CAPDU: 80 0D 03 02 [19:28:19]Write to MH i2c: E2 08 00 F0 24 80 0D 03 02 00 00 00 00 8F [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0B 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 0B 00 F0 24 00 6B 76 06 0B 08 65 10 74 90 00 73 [19:28:19]RAPDU: 6B 76 06 0B 08 65 10 74 90 00 [19:28:19]wFMCommunicate OK [19:28:19]SAM_PROTO_SignData done [19:28:19]FM_MakeSignedData done [19:28:19]CreateOFDProtocolMessage [19:28:19]wFMCommunicate request_size=4 [19:28:19]MH_SAM_APDU [19:28:19]CAPDU: 80 11 00 00 [19:28:19]Write to MH i2c: E2 08 00 F1 24 80 11 00 00 00 00 00 00 8F [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:19]Read from MH i2c: E2 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 17 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: E2 17 00 F1 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E0 [19:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:28:19]wFMCommunicate OK [19:28:19]CreateOFDProtocolMessage done [19:28:19]OFDSenderStorePacket 112405 [19:28:19]StoreOFDPacket docnum=112405 [19:28:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 39 89 07 01 87 6B 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 30 01 00 00 F4 03 04 00 53 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B7 01 00 35 04 06 00 65 EE 67 98 4C 27 6B 76 06 0B 08 65 10 74 [19:28:19]CheckFolder [19:28:19]dirname=/storage/ofd_packets [19:28:19]CheckFolder done [19:28:19]ProducePacketName [19:28:19]name=ofd_packets/00112405 [19:28:19]NVStorageSaveData ofd_packets/00112405 [19:28:19]File name is /storage/ofd_packets/00112405 [19:28:19]Write 301 bytes [19:28:19]NVStorageSaveData done [19:28:19]OFDSenderStorePacket done [19:28:19]KKMCreateOFDPacket done [19:28:19]NVStorageSaveData kkm_last_timestamp [19:28:19]File name is /storage/kkm_last_timestamp [19:28:19]Write 4 bytes [19:28:19]NVStorageSaveData done [19:28:19]ExternCall_PrintAddStr [19:28:19]wPrintStart [19:28:19]Write to MH i2c: 01 00 00 F2 24 16 [19:28:19]Write i2c OK [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 07 00 [19:28:19]MH_I2C_Read... [19:28:19]Read from MH i2c: 01 07 00 F2 24 00 00 00 00 00 FF 0F 2B [19:28:19]RasterBufferAndPrint [19:28:19]line Счет N : (1)48706 [19:28:19]line ИНН: 02508201610067 [19:28:19]line Контрольно-Кассовый Чек [19:28:19]line ПРОДАЖА [19:28:19]line ТРК (МРК, ГНК) : 42 [19:28:19]line Товар: 2710124130 [19:28:19]line Аи-92-К-5 [19:28:19]line 23.330 * 64.30 [19:28:19]line = 1500.12 [19:28:19]line НДС 12% НСП 1% [19:28:19]line > о реализуемом товаре [19:28:19]line ОКРУГЛЕНИЕ: -0.12 [19:28:19]line ИТОГО: 1500.00 [19:28:19]line Внесено: 1500.00 [19:28:19]line СДАЧА: 0.00 [19:28:19]line НСП 1% : 13.27 [19:28:19]line НДС 12% : 159.30 [19:28:19]line Наличными: 1500.00 [19:28:19]line Безнал.: 0.00 [19:28:19]line Место: АЗС № 47 "Партнер Нефть" [19:28:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:28:19]line СНО: Общий режим [19:28:19]line Чек 304 14.04.2024 19:28 [19:28:19]line Смена: 357 ФФД: 1.0 [19:28:19]line ЗНМ: 0300000138 [19:28:19]line РНМ: 0000000000094237 [19:28:19]line Версия ККМ: 001 [19:28:19]line ФМ: 0000000000875019 [19:28:19]line ФД: 112405 [19:28:19]line ФПД: 112074614656039 [19:28:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192819&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112405&fm=112074614656039&tin=02508201610067®Number=0000000000094237&sum=150000 [19:28:19]OFD Sender: Processing packet 112405 [packets to send 71, broken 70] [19:28:19]ProducePacketName [19:28:19]name=ofd_packets/00112405 [19:28:19]OFD Sender: To server: pG, [19:28:19]CommunicateWithHost lk.salyk.kg:30040 [19:28:19]ConnectInit lk.salyk.kg [19:28:19]written 0, free lines is 4095 [19:28:19]Connected sock=10 [19:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 39 89 07 01 87 6B 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 30 01 00 00 F4 03 04 00 53 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B7 01 00 35 04 06 00 65 EE 67 98 4C 27 6B 76 06 0B 08 65 10 74 [19:28:20]Write to MH i2c: 01 00 00 1D 25 42 [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: 01 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: 01 07 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: 01 07 00 1D 25 00 00 00 00 00 D7 0C 2C [19:28:20]RasterBufferAndPrint [19:28:20]line [19:28:20]line [19:28:20]line [19:28:20]line [19:28:20]line [19:28:20]written 0, free lines is 3294 [19:28:20]MH_Cut [19:28:20]Write to MH i2c: D1 01 00 24 25 01 1B [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: D1 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: D1 01 00 [19:28:20]MH_I2C_Read... [19:28:20]Read from MH i2c: D1 01 00 24 25 00 1A [19:28:20]Write to MH i2c: 01 00 00 25 25 4A [19:28:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 78 37 47 00 9F D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 15 B7 01 00 F4 03 04 00 DD D5 1B 66 B6 04 01 00 00 76 E7 0A FF 31 6F 3C A5 [19:28:20]CommunicateWithHost err = 0 [19:28:20]CheckOFDResponse [19:28:20]1017 (14) - 77093643461234 [19:28:20]1041 (16) - 0000000000875019 [19:28:20]1040 (4) - 112405 [19:28:20]1012 (4) - 14.04.2024 13:10 [19:28:20]1206 (1) - 0 [19:28:20]OFD Sender: Remove packet 112405 [19:28:20]ProducePacketName [19:28:20]name=ofd_packets/00112405 [19:28:20]NVStorageDeleteData [19:28:20]Write i2c OK [19:28:20]MH_I2C_Read... [19:28:20]OFD Sender: No OFD packet to send [19:28:20]*** Cut start [19:28:20]*** Partial cut [19:28:20]*** CUTSNS_PIN = 1 [19:28:20]*** CUTSNS_PIN = 0 [19:28:21]*** Brake cut motor [19:28:21]Read from MH i2c: 01 [19:28:21]MH_I2C_Read... [19:28:21]*** Stop cut motor [19:28:21]*** Cut end [19:28:21]Read from MH i2c: 01 07 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: 01 07 00 25 25 00 00 00 00 00 FF 0F 5F [19:28:21]process_action close_receipt done [19:28:21]requested_data is exist [19:28:21]produce_requested_data [19:28:21]requested_item fm.sn is exist - process it [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 11 00 00 [19:28:21]Write to MH i2c: E2 08 00 26 25 80 11 00 00 00 00 00 00 C5 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 17 00 26 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [19:28:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:28:21]wFMCommunicate OK [19:28:21]requested_item fd.num is exist - process it [19:28:21]SAM_PROTO_GetFieldsCounters [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 13 00 00 [19:28:21]Write to MH i2c: E2 08 00 27 25 80 13 00 00 00 00 00 00 C8 [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 62 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 62 00 27 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 15 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [19:28:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 15 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_GetFieldsCounters done [19:28:21]requested_item shift.num is exist - process it [19:28:21]requested_item shift.opened is exist - process it [19:28:21]req_shift_opened [19:28:21]FM_GetShiftState [19:28:21]SAM_PROTO_GetShiftState [19:28:21]wFMCommunicate request_size=4 [19:28:21]MH_SAM_APDU [19:28:21]CAPDU: 80 13 01 00 [19:28:21]Write to MH i2c: E2 08 00 28 25 80 13 01 00 00 00 00 00 CA [19:28:21]Write i2c OK [19:28:21]MH_I2C_Read... [19:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:21]Read from MH i2c: E2 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0E 00 [19:28:21]MH_I2C_Read... [19:28:21]Read from MH i2c: E2 0E 00 28 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 62 [19:28:21]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:28:21]wFMCommunicate OK [19:28:21]SAM_PROTO_GetShiftState done [19:28:21]FM_GetShiftState done [19:28:21]req_shift_opened done [19:28:21]requested_item shift.open_date is exist - process it [19:28:21]req_shift_open_date [19:28:21]req_shift_open_date done [19:28:21]produce_requested_data done [19:28:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112405,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:28:21]process_action_free close_receipt [19:28:21]json_value_free [19:28:21]json_value_free done [19:28:21]process_json_proto returns [19:28:21]Send response to host [19:28:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112405,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:28:21]free response buf [19:28:21]execute_script done [19:28:21]execute_script returns [19:28:21]free content buf [19:28:21]Sock 8.Close socket [19:28:21]Sock 8.Thread stoped [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]accept exits with 9 [19:28:40]New connection [19:28:40]New thread 3066826084 created [19:28:40]Thread 3066682724 joined [19:28:40]Waiting for new connection... [19:28:40] Sock 9.Parse request [19:28:40]Sock 9.Check first char [19:28:40]Sock 9.First char is OK [19:28:40]request: POST /json_proto HTTP/1.0 [19:28:40]Method: POST [19:28:40]URL: /json_proto [19:28:40]Method is POST - this is cgi request [19:28:40]url: /json_proto [19:28:40]query_string will be loaded in cgi processing [19:28:40]execute_cgi json_proto POST (null) [19:28:40]execute_cgi path=json_proto method=POST [19:28:40]POST find Content-Length [19:28:40]Host: 172.17.96.197:8080 [19:28:40]Content-Length: 676 [19:28:40]Content-Type: application/json [19:28:40] [19:28:40]POST finish read [19:28:40]Found Content-Length = 676 [19:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:40]execute_script... [19:28: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)48707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:40]POST & json_proto [19:28:40]process_json_proto [19:28:40]json parsed OK: [19:28:40]protocol is kg_v1.0 [19:28:40]action value=close_receipt [19:28:40]process_action close_receipt [19:28:40]cmd_close_receipt [19:28:40]MH_GetDate [19:28:40]Write to MH i2c: F0 00 00 29 25 3D [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: F0 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: F0 09 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: F0 09 00 29 25 00 69 2E 1C 66 E0 85 7F 64 A7 [19:28:40]GetLastDocTimeStamp 1713122899 [19:28:40]current date 1713122921 [19:28:40]FM_GetShiftState [19:28:40]SAM_PROTO_GetShiftState [19:28:40]wFMCommunicate request_size=4 [19:28:40]MH_SAM_APDU [19:28:40]CAPDU: 80 13 01 00 [19:28:40]Write to MH i2c: E2 08 00 2A 25 80 13 01 00 00 00 00 00 CC [19:28:40]Write i2c OK [19:28:40]MH_I2C_Read... [19:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:40]Read from MH i2c: E2 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 [19:28:40]MH_I2C_Read... [19:28:40]Read from MH i2c: E2 0E 00 2A 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 64 [19:28:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:28:40]wFMCommunicate OK [19:28:40]SAM_PROTO_GetShiftState done [19:28:40]FM_GetShiftState done [19:28:40]opened in 1713054696 [19:28:40]opened+sec_in_day 1713141096 [19:28:40]quantity*price = 60056 [19:28:40]sum+1 = 60057 [19:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 305 14.04.2024 19:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112406 ФПД: 27503001867402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112406&fm=27503001867402&tin=02508201610067®Number=0000000000094237&sum=60000 [19:28:41]StoreToDocumentArchive [19:28:41]shift 357 fd 112406 [19:28:41]save to /storage/0357/doc_00112406 [19:28:41]save last doc name /storage/0357/doc_00112406 to /storage/kkm_last_doc_name [19:28:41]save OK [19:28:41]Clear old archive folders... [19:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:28:41]tlvbuf is 001842D0 [19:28:41]SAM_PROTO_ClearQueue [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 09 00 00 [19:28:41]Write to MH i2c: E2 08 00 37 25 80 09 00 00 00 00 00 00 CE [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 37 25 00 90 00 D0 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]SAM_PROTO_ClearQueue done [19:28:41]KKMCreateOFDPacket [19:28:41]OFDProtocolAddRootSTLVToBuf [19:28:41]FM_MakeSignedData [19:28:41]FM_MakeSignedData [19:28:41]SAM_PROTO_SignData [19:28:41]wFMCommunicate request_size=4 [19:28:41]MH_SAM_APDU [19:28:41]CAPDU: 80 0D 01 02 [19:28:41]Write to MH i2c: E2 08 00 38 25 80 0D 01 02 00 00 00 00 D6 [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:41]Read from MH i2c: E2 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 [19:28:41]MH_I2C_Read... [19:28:41]Read from MH i2c: E2 03 00 38 25 00 90 00 D1 [19:28:41]RAPDU: 90 00 [19:28:41]wFMCommunicate OK [19:28:41]wFMCommunicate request_size=255 [19:28:41]MH_SAM_APDU [19:28:41]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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 31 01 00 00 F4 03 04 00 6A 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B7 01 00 35 04 06 00 19 [19:28:41]Write to MH i2c: E2 02 01 39 25 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 31 01 00 00 F4 03 04 00 6A 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B7 01 00 35 04 06 00 19 00 00 7B [19:28:41]Write i2c OK [19:28:41]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 39 25 00 90 00 D2 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]wFMCommunicate request_size=10 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 02 02 05 03 8A A8 14 8A [19:28:42]Write to MH i2c: E2 0D 00 3A 25 80 0D 02 02 05 00 03 8A A8 14 8A 00 00 B6 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 03 00 3A 25 00 90 00 D3 [19:28:42]RAPDU: 90 00 [19:28:42]wFMCommunicate OK [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 0D 03 02 [19:28:42]Write to MH i2c: E2 08 00 3B 25 80 0D 03 02 00 00 00 00 DB [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0B 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 0B 00 3B 25 00 90 2F 19 8D 4C 32 65 E0 90 00 04 [19:28:42]RAPDU: 90 2F 19 8D 4C 32 65 E0 90 00 [19:28:42]wFMCommunicate OK [19:28:42]SAM_PROTO_SignData done [19:28:42]FM_MakeSignedData done [19:28:42]CreateOFDProtocolMessage [19:28:42]wFMCommunicate request_size=4 [19:28:42]MH_SAM_APDU [19:28:42]CAPDU: 80 11 00 00 [19:28:42]Write to MH i2c: E2 08 00 3C 25 80 11 00 00 00 00 00 00 DB [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:42]Read from MH i2c: E2 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 17 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: E2 17 00 3C 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2C [19:28:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:28:42]wFMCommunicate OK [19:28:42]CreateOFDProtocolMessage done [19:28:42]OFDSenderStorePacket 112406 [19:28:42]StoreOFDPacket docnum=112406 [19:28:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 77 98 07 01 3B 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 31 01 00 00 F4 03 04 00 6A 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B7 01 00 35 04 06 00 19 03 8A A8 14 8A 90 2F 19 8D 4C 32 65 E0 [19:28:42]CheckFolder [19:28:42]dirname=/storage/ofd_packets [19:28:42]CheckFolder done [19:28:42]ProducePacketName [19:28:42]name=ofd_packets/00112406 [19:28:42]NVStorageSaveData ofd_packets/00112406 [19:28:42]File name is /storage/ofd_packets/00112406 [19:28:42]Write 301 bytes [19:28:42]NVStorageSaveData done [19:28:42]OFDSenderStorePacket done [19:28:42]KKMCreateOFDPacket done [19:28:42]NVStorageSaveData kkm_last_timestamp [19:28:42]File name is /storage/kkm_last_timestamp [19:28:42]Write 4 bytes [19:28:42]NVStorageSaveData done [19:28:42]ExternCall_PrintAddStr [19:28:42]wPrintStart [19:28:42]Write to MH i2c: 01 00 00 3D 25 62 [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 07 00 [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 07 00 3D 25 00 00 00 00 00 FF 0F 77 [19:28:42]RasterBufferAndPrint [19:28:42]line Счет N : (1)48707 [19:28:42]line ИНН: 02508201610067 [19:28:42]line Контрольно-Кассовый Чек [19:28:42]line ПРОДАЖА [19:28:42]line ТРК (МРК, ГНК) : 11 [19:28:42]line Товар: 2710124130 [19:28:42]line Аи-92-К-5 [19:28:42]line 9.340 * 64.30 [19:28:42]line = 600.56 [19:28:42]line НДС 12% НСП 1% [19:28:42]line > о реализуемом товаре [19:28:42]line ОКРУГЛЕНИЕ: -0.56 [19:28:42]line ИТОГО: 600.00 [19:28:42]line Внесено: 600.00 [19:28:42]line СДАЧА: 0.00 [19:28:42]line НСП 1% : 5.31 [19:28:42]line НДС 12% : 63.78 [19:28:42]line Наличными: 600.00 [19:28:42]line Безнал.: 0.00 [19:28:42]line Место: АЗС № 47 "Партнер Нефть" [19:28:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:28:42]line СНО: Общий режим [19:28:42]line Чек 305 14.04.2024 19:28 [19:28:42]line Смена: 357 ФФД: 1.0 [19:28:42]line ЗНМ: 0300000138 [19:28:42]line РНМ: 0000000000094237 [19:28:42]line Версия ККМ: 001 [19:28:42]line ФМ: 0000000000875019 [19:28:42]line ФД: 112406 [19:28:42]line ФПД: 27503001867402 [19:28:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T192842&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112406&fm=27503001867402&tin=02508201610067®Number=0000000000094237&sum=60000 [19:28:42]OFD Sender: Processing packet 112406 [packets to send 71, broken 70] [19:28:42]ProducePacketName [19:28:42]name=ofd_packets/00112406 [19:28:42]OFD Sender: To server: pG, [19:28:42]CommunicateWithHost lk.salyk.kg:30040 [19:28:42]ConnectInit lk.salyk.kg [19:28:42]written 0, free lines is 4095 [19:28:42]Connected sock=10 [19:28:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 77 98 07 01 3B 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 31 01 00 00 F4 03 04 00 6A 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B7 01 00 35 04 06 00 19 03 8A A8 14 8A 90 2F 19 8D 4C 32 65 E0 [19:28:42]Write to MH i2c: 01 00 00 68 25 8D [19:28:42]Write i2c OK [19:28:42]MH_I2C_Read... [19:28:42]Read from MH i2c: 01 [19:28:43]MH_I2C_Read... [19:28:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8C DB 47 00 B3 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 16 B7 01 00 F4 03 04 00 F4 D5 1B 66 B6 04 01 00 00 6E 4E 66 F0 CA 4D 87 8B [19:28:43]CommunicateWithHost err = 0 [19:28:43]CheckOFDResponse [19:28:43]1017 (14) - 77093643461234 [19:28:43]1041 (16) - 0000000000875019 [19:28:43]1040 (4) - 112406 [19:28:43]1012 (4) - 14.04.2024 13:11 [19:28:43]1206 (1) - 0 [19:28:43]OFD Sender: Remove packet 112406 [19:28:43]ProducePacketName [19:28:43]name=ofd_packets/00112406 [19:28:43]NVStorageDeleteData [19:28:43]Read from MH i2c: 01 07 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: 01 07 00 68 25 00 00 00 00 00 DC 0C 7C [19:28:43]RasterBufferAndPrint [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]line [19:28:43]written 0, free lines is 3310 [19:28:43]MH_Cut [19:28:43]Write to MH i2c: D1 01 00 6F 25 01 66 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 01 00 [19:28:43]MH_I2C_Read... [19:28:43]Read from MH i2c: D1 01 00 6F 25 00 65 [19:28:43]Write to MH i2c: 01 00 00 70 25 95 [19:28:43]Write i2c OK [19:28:43]MH_I2C_Read... [19:28:43]OFD Sender: No OFD packet to send [19:28:43]*** Cut start [19:28:43]*** Partial cut [19:28:43]*** CUTSNS_PIN = 1 [19:28:43]*** CUTSNS_PIN = 0 [19:28:44]*** Brake cut motor [19:28:44]Read from MH i2c: 01 [19:28:44]MH_I2C_Read... [19:28:44]*** Stop cut motor [19:28:44]*** Cut end [19:28:44]Read from MH i2c: 01 07 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: 01 07 00 70 25 00 00 00 00 00 FF 0F AA [19:28:44]process_action close_receipt done [19:28:44]requested_data is exist [19:28:44]produce_requested_data [19:28:44]requested_item fm.sn is exist - process it [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 11 00 00 [19:28:44]Write to MH i2c: E2 08 00 71 25 80 11 00 00 00 00 00 00 10 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 17 00 71 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 61 [19:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:28:44]wFMCommunicate OK [19:28:44]requested_item fd.num is exist - process it [19:28:44]SAM_PROTO_GetFieldsCounters [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 13 00 00 [19:28:44]Write to MH i2c: E2 08 00 72 25 80 13 00 00 00 00 00 00 13 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 62 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 62 00 72 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 16 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 FC [19:28:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 16 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_GetFieldsCounters done [19:28:44]requested_item shift.num is exist - process it [19:28:44]requested_item shift.opened is exist - process it [19:28:44]req_shift_opened [19:28:44]FM_GetShiftState [19:28:44]SAM_PROTO_GetShiftState [19:28:44]wFMCommunicate request_size=4 [19:28:44]MH_SAM_APDU [19:28:44]CAPDU: 80 13 01 00 [19:28:44]Write to MH i2c: E2 08 00 73 25 80 13 01 00 00 00 00 00 15 [19:28:44]Write i2c OK [19:28:44]MH_I2C_Read... [19:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:44]Read from MH i2c: E2 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0E 00 [19:28:44]MH_I2C_Read... [19:28:44]Read from MH i2c: E2 0E 00 73 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AD [19:28:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:28:44]wFMCommunicate OK [19:28:44]SAM_PROTO_GetShiftState done [19:28:44]FM_GetShiftState done [19:28:44]req_shift_opened done [19:28:44]requested_item shift.open_date is exist - process it [19:28:44]req_shift_open_date [19:28:44]req_shift_open_date done [19:28:44]produce_requested_data done [19:28:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112406,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:28:44]process_action_free close_receipt [19:28:44]json_value_free [19:28:44]json_value_free done [19:28:44]process_json_proto returns [19:28:44]Send response to host [19:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112406,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:28:44]free response buf [19:28:44]execute_script done [19:28:44]execute_script returns [19:28:44]free content buf [19:28:44]Sock 9.Close socket [19:28:44]Sock 9.Thread stoped [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:18]OFD Sender: No OFD packet to send [19:29:23]OFD Sender: No OFD packet to send [19:29:28]OFD Sender: No OFD packet to send [19:29:33]OFD Sender: No OFD packet to send [19:29:38]OFD Sender: No OFD packet to send [19:29:43]OFD Sender: No OFD packet to send [19:29:48]OFD Sender: No OFD packet to send [19:29:53]OFD Sender: No OFD packet to send [19:29:58]OFD Sender: No OFD packet to send [19:30:03]OFD Sender: No OFD packet to send [19:30:08]OFD Sender: No OFD packet to send [19:30:13]OFD Sender: No OFD packet to send [19:30:16]accept exits with 8 [19:30:16]New connection [19:30:16]New thread 3066682724 created [19:30:16]Thread 3066826084 joined [19:30:16]Waiting for new connection... [19:30:16] Sock 8.Parse request [19:30:16]Sock 8.Check first char [19:30:16]Sock 8.First char is OK [19:30:16]request: POST /json_proto HTTP/1.0 [19:30:16]Method: POST [19:30:16]URL: /json_proto [19:30:16]Method is POST - this is cgi request [19:30:16]url: /json_proto [19:30:16]query_string will be loaded in cgi processing [19:30:16]execute_cgi json_proto POST (null) [19:30:16]execute_cgi path=json_proto method=POST [19:30:16]POST find Content-Length [19:30:16]Host: 172.17.96.197:8080 [19:30:16]Content-Length: 620 [19:30:16]Content-Type: application/json [19:30:16] [19:30:16]POST finish read [19:30:16]Found Content-Length = 620 [19:30:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10440", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:16]execute_script... [19:30:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10440", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:30:16]POST & json_proto [19:30:16]process_json_proto [19:30:16]json parsed OK: [19:30:16]protocol is kg_v1.0 [19:30:16]action value=close_receipt [19:30:16]process_action close_receipt [19:30:16]cmd_close_receipt [19:30:16]MH_GetDate [19:30:16]Write to MH i2c: F0 00 00 74 25 88 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 09 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: F0 09 00 74 25 00 C9 2E 1C 66 E0 85 7F 64 52 [19:30:16]GetLastDocTimeStamp 1713122922 [19:30:16]current date 1713123017 [19:30:16]FM_GetShiftState [19:30:16]SAM_PROTO_GetShiftState [19:30:16]wFMCommunicate request_size=4 [19:30:16]MH_SAM_APDU [19:30:16]CAPDU: 80 13 01 00 [19:30:16]Write to MH i2c: E2 08 00 75 25 80 13 01 00 00 00 00 00 17 [19:30:16]Write i2c OK [19:30:16]MH_I2C_Read... [19:30:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:16]Read from MH i2c: E2 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 0E 00 [19:30:16]MH_I2C_Read... [19:30:16]Read from MH i2c: E2 0E 00 75 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AF [19:30:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:30:16]wFMCommunicate OK [19:30:16]SAM_PROTO_GetShiftState done [19:30:16]FM_GetShiftState done [19:30:16]opened in 1713054696 [19:30:16]opened+sec_in_day 1713141096 [19:30:16]quantity*price = 13500 [19:30:16]sum+1 = 13501 [19:30:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 306 14.04.2024 19:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112407 ФПД: 22208986845930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112407&fm=22208986845930&tin=02508201610067®Number=0000000000094237&sum=13500 0 [19:30:17]StoreToDocumentArchive [19:30:17]shift 357 fd 112407 [19:30:17]save to /storage/0357/doc_00112407 [19:30:17]save last doc name /storage/0357/doc_00112407 to /storage/kkm_last_doc_name [19:30:17]save OK [19:30:17]Clear old archive folders... [19:30:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:30:17]tlvbuf is 00175620 [19:30:17]SAM_PROTO_ClearQueue [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 09 00 00 [19:30:17]Write to MH i2c: E2 08 00 82 25 80 09 00 00 00 00 00 00 19 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 82 25 00 90 00 1B [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_ClearQueue done [19:30:17]KKMCreateOFDPacket [19:30:17]OFDProtocolAddRootSTLVToBuf [19:30:17]FM_MakeSignedData [19:30:17]FM_MakeSignedData [19:30:17]SAM_PROTO_SignData [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 01 02 [19:30:17]Write to MH i2c: E2 08 00 83 25 80 0D 01 02 00 00 00 00 21 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 83 25 00 90 00 1C [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=255 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C9 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 [19:30:17]Write to MH i2c: E2 02 01 84 25 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C9 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 02 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 84 25 00 90 00 1D [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=32 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B7 01 00 35 04 06 00 14 32 EE C5 92 EA [19:30:17]Write to MH i2c: E2 23 00 85 25 80 0D 02 02 1B 00 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B7 01 00 35 04 06 00 14 32 EE C5 92 EA 00 00 C3 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 03 00 85 25 00 90 00 1E [19:30:17]RAPDU: 90 00 [19:30:17]wFMCommunicate OK [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 0D 03 02 [19:30:17]Write to MH i2c: E2 08 00 86 25 80 0D 03 02 00 00 00 00 26 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0B 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 0B 00 86 25 00 C7 30 1D 96 61 E3 4E AA 90 00 0D [19:30:17]RAPDU: C7 30 1D 96 61 E3 4E AA 90 00 [19:30:17]wFMCommunicate OK [19:30:17]SAM_PROTO_SignData done [19:30:17]FM_MakeSignedData done [19:30:17]CreateOFDProtocolMessage [19:30:17]wFMCommunicate request_size=4 [19:30:17]MH_SAM_APDU [19:30:17]CAPDU: 80 11 00 00 [19:30:17]Write to MH i2c: E2 08 00 87 25 80 11 00 00 00 00 00 00 26 [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:17]Read from MH i2c: E2 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: E2 17 00 87 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 77 [19:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:30:17]wFMCommunicate OK [19:30:17]CreateOFDProtocolMessage done [19:30:17]OFDSenderStorePacket 112407 [19:30:17]StoreOFDPacket docnum=112407 [19:30:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 D7 44 1D 01 98 36 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C9 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B7 01 00 35 04 06 00 14 32 EE C5 92 EA C7 30 1D 96 61 E3 4E AA [19:30:17]CheckFolder [19:30:17]dirname=/storage/ofd_packets [19:30:17]CheckFolder done [19:30:17]ProducePacketName [19:30:17]name=ofd_packets/00112407 [19:30:17]NVStorageSaveData ofd_packets/00112407 [19:30:17]File name is /storage/ofd_packets/00112407 [19:30:17]Write 323 bytes [19:30:17]NVStorageSaveData done [19:30:17]OFDSenderStorePacket done [19:30:17]KKMCreateOFDPacket done [19:30:17]NVStorageSaveData kkm_last_timestamp [19:30:17]File name is /storage/kkm_last_timestamp [19:30:17]Write 4 bytes [19:30:17]NVStorageSaveData done [19:30:17]ExternCall_PrintAddStr [19:30:17]wPrintStart [19:30:17]Write to MH i2c: 01 00 00 88 25 AD [19:30:17]Write i2c OK [19:30:17]MH_I2C_Read... [19:30:17]Read from MH i2c: 01 [19:30:17]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 88 25 00 00 00 00 00 FF 0F C2 [19:30:18]RasterBufferAndPrint [19:30:18]line Счет N : (3)10440 [19:30:18]line ИНН: 02508201610067 [19:30:18]line Контрольно-Кассовый Чек [19:30:18]line ПРОДАЖА [19:30:18]line Товар: 48747059 [19:30:18]line Сигареты Winston Legend Blue [19:30:18]line 1.000 * 135.00 [19:30:18]line = 135.00 [19:30:18]line НДС 12% НСП 1% [19:30:18]line > о реализуемом товаре [19:30:18]line ИТОГО: 135.00 [19:30:18]line НСП 1% : 1.19 [19:30:18]line НДС 12% : 14.34 [19:30:18]line Наличными: 135.00 [19:30:18]line Безнал.: 0.00 [19:30:18]line Место: АЗС № 47 "Партнер Нефть" [19:30:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:30:18]line СНО: Общий режим [19:30:18]line Чек 306 14.04.2024 19:30 [19:30:18]line Смена: 357 ФФД: 1.0 [19:30:18]line ЗНМ: 0300000138 [19:30:18]line РНМ: 0000000000094237 [19:30:18]line Версия ККМ: 001 [19:30:18]line ФМ: 0000000000875019 [19:30:18]line ФД: 112407 [19:30:18]line ФПД: 22208986845930 [19:30:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193017&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112407&fm=22208986845930&tin=02508201610067®Number=0000000000094237&sum=13500 [19:30:18]line 0 [19:30:18]OFD Sender: Processing packet 112407 [packets to send 71, broken 70] [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00112407 [19:30:18]OFD Sender: To server: pG, [19:30:18]CommunicateWithHost lk.salyk.kg:30040 [19:30:18]ConnectInit lk.salyk.kg [19:30:18]written 0, free lines is 4095 [19:30:18]Connected sock=10 [19:30:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 D7 44 1D 01 98 36 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 C9 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B7 01 00 35 04 06 00 14 32 EE C5 92 EA C7 30 1D 96 61 E3 4E AA [19:30:18]Write to MH i2c: 01 00 00 B1 25 D6 [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: 01 07 00 B1 25 00 00 00 00 00 C9 0C B2 [19:30:18]RasterBufferAndPrint [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]line [19:30:18]written 0, free lines is 3279 [19:30:18]MH_Cut [19:30:18]Write to MH i2c: D1 01 00 B8 25 01 AF [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 [19:30:18]MH_I2C_Read... [19:30:18]Read from MH i2c: D1 01 00 B8 25 00 AE [19:30:18]Write to MH i2c: 01 00 00 B9 25 DE [19:30:18]Write i2c OK [19:30:18]MH_I2C_Read... [19:30:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C1 24 47 00 03 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 17 B7 01 00 F4 03 04 00 54 D6 1B 66 B6 04 01 00 00 9B D0 2B AD 69 C6 9E 6E [19:30:18]CommunicateWithHost err = 0 [19:30:18]CheckOFDResponse [19:30:18]1017 (14) - 77093643461234 [19:30:18]1041 (16) - 0000000000875019 [19:30:18]1040 (4) - 112407 [19:30:18]1012 (4) - 14.04.2024 13:12 [19:30:18]1206 (1) - 0 [19:30:18]OFD Sender: Remove packet 112407 [19:30:18]ProducePacketName [19:30:18]name=ofd_packets/00112407 [19:30:18]NVStorageDeleteData [19:30:19]OFD Sender: No OFD packet to send [19:30:19]*** Cut start [19:30:19]*** Partial cut [19:30:19]*** CUTSNS_PIN = 1 [19:30:19]*** CUTSNS_PIN = 0 [19:30:19]*** Brake cut motor [19:30:20]Read from MH i2c: 01 [19:30:20]MH_I2C_Read... [19:30:20]*** Stop cut motor [19:30:20]*** Cut end [19:30:20]Read from MH i2c: 01 07 00 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: 01 07 00 B9 25 00 00 00 00 00 FF 0F F3 [19:30:20]process_action close_receipt done [19:30:20]requested_data is exist [19:30:20]produce_requested_data [19:30:20]requested_item fm.sn is exist - process it [19:30:20]wFMCommunicate request_size=4 [19:30:20]MH_SAM_APDU [19:30:20]CAPDU: 80 11 00 00 [19:30:20]Write to MH i2c: E2 08 00 BA 25 80 11 00 00 00 00 00 00 59 [19:30:20]Write i2c OK [19:30:20]MH_I2C_Read... [19:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:20]Read from MH i2c: E2 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 17 00 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 17 00 BA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AA [19:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:30:20]wFMCommunicate OK [19:30:20]requested_item fd.num is exist - process it [19:30:20]SAM_PROTO_GetFieldsCounters [19:30:20]wFMCommunicate request_size=4 [19:30:20]MH_SAM_APDU [19:30:20]CAPDU: 80 13 00 00 [19:30:20]Write to MH i2c: E2 08 00 BB 25 80 13 00 00 00 00 00 00 5C [19:30:20]Write i2c OK [19:30:20]MH_I2C_Read... [19:30:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:20]Read from MH i2c: E2 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 62 00 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 62 00 BB 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 17 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [19:30:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 17 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:20]wFMCommunicate OK [19:30:20]SAM_PROTO_GetFieldsCounters done [19:30:20]requested_item shift.num is exist - process it [19:30:20]requested_item shift.opened is exist - process it [19:30:20]req_shift_opened [19:30:20]FM_GetShiftState [19:30:20]SAM_PROTO_GetShiftState [19:30:20]wFMCommunicate request_size=4 [19:30:20]MH_SAM_APDU [19:30:20]CAPDU: 80 13 01 00 [19:30:20]Write to MH i2c: E2 08 00 BC 25 80 13 01 00 00 00 00 00 5E [19:30:20]Write i2c OK [19:30:20]MH_I2C_Read... [19:30:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:20]Read from MH i2c: E2 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 0E 00 [19:30:20]MH_I2C_Read... [19:30:20]Read from MH i2c: E2 0E 00 BC 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F6 [19:30:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:30:20]wFMCommunicate OK [19:30:20]SAM_PROTO_GetShiftState done [19:30:20]FM_GetShiftState done [19:30:20]req_shift_opened done [19:30:20]requested_item shift.open_date is exist - process it [19:30:20]req_shift_open_date [19:30:20]req_shift_open_date done [19:30:20]produce_requested_data done [19:30:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112407,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:30:20]process_action_free close_receipt [19:30:20]json_value_free [19:30:20]json_value_free done [19:30:20]process_json_proto returns [19:30:20]Send response to host [19:30:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112407,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:30:20]free response buf [19:30:20]execute_script done [19:30:20]execute_script returns [19:30:20]free content buf [19:30:20]Sock 8.Close socket [19:30:20]Sock 8.Thread stoped [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:35]accept exits with 9 [19:30:35]New connection [19:30:35]New thread 3066826084 created [19:30:35]Thread 3066682724 joined [19:30:35]Waiting for new connection... [19:30:35] Sock 9.Parse request [19:30:35]Sock 9.Check first char [19:30:35]Sock 9.First char is OK [19:30:35]request: POST /json_proto HTTP/1.0 [19:30:35]Method: POST [19:30:35]URL: /json_proto [19:30:35]Method is POST - this is cgi request [19:30:35]url: /json_proto [19:30:35]query_string will be loaded in cgi processing [19:30:35]execute_cgi json_proto POST (null) [19:30:35]execute_cgi path=json_proto method=POST [19:30:35]POST find Content-Length [19:30:35]Host: 172.17.96.197:8080 [19:30:35]Content-Length: 669 [19:30:35]Content-Type: application/json [19:30:35] [19:30:35]POST finish read [19:30:35]Found Content-Length = 669 [19:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48708", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:30:35]execute_script... [19:30: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)48708", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:30:35]POST & json_proto [19:30:35]process_json_proto [19:30:36]json parsed OK: [19:30:36]protocol is kg_v1.0 [19:30:36]action value=close_receipt [19:30:36]process_action close_receipt [19:30:36]cmd_close_receipt [19:30:36]MH_GetDate [19:30:36]Write to MH i2c: F0 00 00 BD 25 D1 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: F0 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: F0 09 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: F0 09 00 BD 25 00 DD 2E 1C 66 E0 85 7F 64 AF [19:30:36]GetLastDocTimeStamp 1713123017 [19:30:36]current date 1713123037 [19:30:36]FM_GetShiftState [19:30:36]SAM_PROTO_GetShiftState [19:30:36]wFMCommunicate request_size=4 [19:30:36]MH_SAM_APDU [19:30:36]CAPDU: 80 13 01 00 [19:30:36]Write to MH i2c: E2 08 00 BE 25 80 13 01 00 00 00 00 00 60 [19:30:36]Write i2c OK [19:30:36]MH_I2C_Read... [19:30:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:36]Read from MH i2c: E2 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0E 00 [19:30:36]MH_I2C_Read... [19:30:36]Read from MH i2c: E2 0E 00 BE 25 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F8 [19:30:36]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:30:36]wFMCommunicate OK [19:30:36]SAM_PROTO_GetShiftState done [19:30:36]FM_GetShiftState done [19:30:36]opened in 1713054696 [19:30:36]opened+sec_in_day 1713141096 [19:30:36]quantity*price = 50019 [19:30:36]sum+1 = 50021 [19:30:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 307 14.04.2024 19:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112408 ФПД: 276392434571858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193037&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112408&fm=276392434571858&tin=02508201610067®Number=0000000000094237&sum=50000 [19:30:37]StoreToDocumentArchive [19:30:37]shift 357 fd 112408 [19:30:37]save to /storage/0357/doc_00112408 [19:30:37]save last doc name /storage/0357/doc_00112408 to /storage/kkm_last_doc_name [19:30:37]save OK [19:30:37]Clear old archive folders... [19:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:30:37]tlvbuf is 0015F050 [19:30:37]SAM_PROTO_ClearQueue [19:30:37]wFMCommunicate request_size=4 [19:30:37]MH_SAM_APDU [19:30:37]CAPDU: 80 09 00 00 [19:30:37]Write to MH i2c: E2 08 00 CB 25 80 09 00 00 00 00 00 00 62 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 CB 25 00 90 00 64 [19:30:37]RAPDU: 90 00 [19:30:37]wFMCommunicate OK [19:30:37]SAM_PROTO_ClearQueue done [19:30:37]KKMCreateOFDPacket [19:30:37]OFDProtocolAddRootSTLVToBuf [19:30:37]FM_MakeSignedData [19:30:37]FM_MakeSignedData [19:30:37]SAM_PROTO_SignData [19:30:37]wFMCommunicate request_size=4 [19:30:37]MH_SAM_APDU [19:30:37]CAPDU: 80 0D 01 02 [19:30:37]Write to MH i2c: E2 08 00 CC 25 80 0D 01 02 00 00 00 00 6A [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 CC 25 00 90 00 65 [19:30:37]RAPDU: 90 00 [19:30:37]wFMCommunicate OK [19:30:37]wFMCommunicate request_size=255 [19:30:37]MH_SAM_APDU [19:30:37]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 33 01 00 00 F4 03 04 00 DD 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B7 01 00 35 04 06 00 [19:30:37]Write to MH i2c: E2 02 01 CD 25 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 33 01 00 00 F4 03 04 00 DD 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B7 01 00 35 04 06 00 00 00 87 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 CD 25 00 90 00 66 [19:30:37]RAPDU: 90 00 [19:30:37]wFMCommunicate OK [19:30:37]wFMCommunicate request_size=11 [19:30:37]MH_SAM_APDU [19:30:37]CAPDU: 80 0D 02 02 06 FB 60 A0 E1 9A 52 [19:30:37]Write to MH i2c: E2 0E 00 CE 25 80 0D 02 02 06 00 FB 60 A0 E1 9A 52 00 00 41 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 03 00 CE 25 00 90 00 67 [19:30:37]RAPDU: 90 00 [19:30:37]wFMCommunicate OK [19:30:37]wFMCommunicate request_size=4 [19:30:37]MH_SAM_APDU [19:30:37]CAPDU: 80 0D 03 02 [19:30:37]Write to MH i2c: E2 08 00 CF 25 80 0D 03 02 00 00 00 00 6F [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 0B 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 0B 00 CF 25 00 53 CE 13 60 D2 CE BB 0E 90 00 6D [19:30:37]RAPDU: 53 CE 13 60 D2 CE BB 0E 90 00 [19:30:37]wFMCommunicate OK [19:30:37]SAM_PROTO_SignData done [19:30:37]FM_MakeSignedData done [19:30:37]CreateOFDProtocolMessage [19:30:37]wFMCommunicate request_size=4 [19:30:37]MH_SAM_APDU [19:30:37]CAPDU: 80 11 00 00 [19:30:37]Write to MH i2c: E2 08 00 D0 25 80 11 00 00 00 00 00 00 6F [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:37]Read from MH i2c: E2 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 17 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: E2 17 00 D0 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C0 [19:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:30:37]wFMCommunicate OK [19:30:37]CreateOFDProtocolMessage done [19:30:37]OFDSenderStorePacket 112408 [19:30:37]StoreOFDPacket docnum=112408 [19:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 EC 94 08 01 11 C8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 33 01 00 00 F4 03 04 00 DD 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B7 01 00 35 04 06 00 FB 60 A0 E1 9A 52 53 CE 13 60 D2 CE BB 0E [19:30:37]CheckFolder [19:30:37]dirname=/storage/ofd_packets [19:30:37]CheckFolder done [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00112408 [19:30:37]NVStorageSaveData ofd_packets/00112408 [19:30:37]File name is /storage/ofd_packets/00112408 [19:30:37]Write 302 bytes [19:30:37]NVStorageSaveData done [19:30:37]OFDSenderStorePacket done [19:30:37]KKMCreateOFDPacket done [19:30:37]NVStorageSaveData kkm_last_timestamp [19:30:37]File name is /storage/kkm_last_timestamp [19:30:37]Write 4 bytes [19:30:37]NVStorageSaveData done [19:30:37]ExternCall_PrintAddStr [19:30:37]wPrintStart [19:30:37]Write to MH i2c: 01 00 00 D1 25 F6 [19:30:37]Write i2c OK [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 [19:30:37]MH_I2C_Read... [19:30:37]Read from MH i2c: 01 07 00 D1 25 00 00 00 00 00 FF 0F 0B [19:30:37]RasterBufferAndPrint [19:30:37]line Счет N : (1)48708 [19:30:37]line ИНН: 02508201610067 [19:30:37]line Контрольно-Кассовый Чек [19:30:37]line ПРОДАЖА [19:30:37]line ТРК (МРК, ГНК) : 41 [19:30:37]line Товар: 2710124130 [19:30:37]line SUPER 92-К-5 [19:30:37]line 7.660 * 65.30 [19:30:37]line = 500.20 [19:30:37]line НДС 12% НСП 1% [19:30:37]line > о реализуемом товаре [19:30:37]line ОКРУГЛЕНИЕ: -0.20 [19:30:37]line ИТОГО: 500.00 [19:30:37]line Внесено: 500.00 [19:30:37]line СДАЧА: 0.00 [19:30:37]line НСП 1% : 4.43 [19:30:37]line НДС 12% : 53.12 [19:30:37]line Наличными: 500.00 [19:30:37]line Безнал.: 0.00 [19:30:37]line Место: АЗС № 47 "Партнер Нефть" [19:30:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:30:37]line СНО: Общий режим [19:30:37]line Чек 307 14.04.2024 19:30 [19:30:37]line Смена: 357 ФФД: 1.0 [19:30:37]line ЗНМ: 0300000138 [19:30:37]line РНМ: 0000000000094237 [19:30:37]line Версия ККМ: 001 [19:30:37]line ФМ: 0000000000875019 [19:30:37]line ФД: 112408 [19:30:37]line ФПД: 276392434571858 [19:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193037&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112408&fm=276392434571858&tin=02508201610067®Number=0000000000094237&sum=50000 [19:30:37]written 0, free lines is 4095 [19:30:37]OFD Sender: Processing packet 112408 [packets to send 71, broken 70] [19:30:37]ProducePacketName [19:30:37]name=ofd_packets/00112408 [19:30:37]OFD Sender: To server: pG, [19:30:37]CommunicateWithHost lk.salyk.kg:30040 [19:30:37]ConnectInit lk.salyk.kg [19:30:37]Connected sock=8 [19:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 EC 94 08 01 11 C8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 33 01 00 00 F4 03 04 00 DD 2E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 18 B7 01 00 35 04 06 00 FB 60 A0 E1 9A 52 53 CE 13 60 D2 CE BB 0E [19:30:38]Write to MH i2c: 01 00 00 FC 25 21 [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 07 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: 01 07 00 FC 25 00 00 00 00 00 E4 0C 18 [19:30:38]RasterBufferAndPrint [19:30:38]line [19:30:38]line [19:30:38]line [19:30:38]line [19:30:38]line [19:30:38]written 0, free lines is 3306 [19:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4D 85 47 00 80 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 38 37 35 30 31 39 10 04 04 00 18 B7 01 00 F4 03 04 00 67 D6 1B 66 B6 04 01 00 00 1B AC 2E 9E DF B2 3F 7F [19:30:38]CommunicateWithHost err = 0 [19:30:38]CheckOFDResponse [19:30:38]1017 (14) - 77093643461234 [19:30:38]1041 (16) - 0000000000875019 [19:30:38]1040 (4) - 112408 [19:30:38]1012 (4) - 14.04.2024 13:13 [19:30:38]1206 (1) - 0 [19:30:38]OFD Sender: Remove packet 112408 [19:30:38]ProducePacketName [19:30:38]name=ofd_packets/00112408 [19:30:38]NVStorageDeleteData [19:30:38]MH_Cut [19:30:38]Write to MH i2c: D1 01 00 03 26 01 FB [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: D1 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: D1 01 00 [19:30:38]MH_I2C_Read... [19:30:38]Read from MH i2c: D1 01 00 03 26 00 FA [19:30:38]Write to MH i2c: 01 00 00 04 26 2A [19:30:38]Write i2c OK [19:30:38]MH_I2C_Read... [19:30:38]OFD Sender: No OFD packet to send [19:30:38]*** Cut start [19:30:38]*** Partial cut [19:30:38]*** CUTSNS_PIN = 1 [19:30:38]*** CUTSNS_PIN = 0 [19:30:39]*** Brake cut motor [19:30:39]Read from MH i2c: 01 [19:30:39]MH_I2C_Read... [19:30:39]*** Stop cut motor [19:30:39]*** Cut end [19:30:39]Read from MH i2c: 01 07 00 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: 01 07 00 04 26 00 00 00 00 00 FF 0F 3F [19:30:39]process_action close_receipt done [19:30:39]requested_data is exist [19:30:39]produce_requested_data [19:30:39]requested_item fm.sn is exist - process it [19:30:39]wFMCommunicate request_size=4 [19:30:39]MH_SAM_APDU [19:30:39]CAPDU: 80 11 00 00 [19:30:39]Write to MH i2c: E2 08 00 05 26 80 11 00 00 00 00 00 00 A5 [19:30:39]Write i2c OK [19:30:39]MH_I2C_Read... [19:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:39]Read from MH i2c: E2 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 17 00 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 17 00 05 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F6 [19:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:30:39]wFMCommunicate OK [19:30:39]requested_item fd.num is exist - process it [19:30:39]SAM_PROTO_GetFieldsCounters [19:30:39]wFMCommunicate request_size=4 [19:30:39]MH_SAM_APDU [19:30:39]CAPDU: 80 13 00 00 [19:30:39]Write to MH i2c: E2 08 00 06 26 80 13 00 00 00 00 00 00 A8 [19:30:39]Write i2c OK [19:30:39]MH_I2C_Read... [19:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:39]Read from MH i2c: E2 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 62 00 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 62 00 06 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 18 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [19:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 18 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:39]wFMCommunicate OK [19:30:39]SAM_PROTO_GetFieldsCounters done [19:30:39]requested_item shift.num is exist - process it [19:30:39]requested_item shift.opened is exist - process it [19:30:39]req_shift_opened [19:30:39]FM_GetShiftState [19:30:39]SAM_PROTO_GetShiftState [19:30:39]wFMCommunicate request_size=4 [19:30:39]MH_SAM_APDU [19:30:39]CAPDU: 80 13 01 00 [19:30:39]Write to MH i2c: E2 08 00 07 26 80 13 01 00 00 00 00 00 AA [19:30:39]Write i2c OK [19:30:39]MH_I2C_Read... [19:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:39]Read from MH i2c: E2 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 0E 00 [19:30:39]MH_I2C_Read... [19:30:39]Read from MH i2c: E2 0E 00 07 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 42 [19:30:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:30:39]wFMCommunicate OK [19:30:39]SAM_PROTO_GetShiftState done [19:30:39]FM_GetShiftState done [19:30:39]req_shift_opened done [19:30:39]requested_item shift.open_date is exist - process it [19:30:39]req_shift_open_date [19:30:39]req_shift_open_date done [19:30:39]produce_requested_data done [19:30:39]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112408,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:30:39]process_action_free close_receipt [19:30:39]json_value_free [19:30:39]json_value_free done [19:30:39]process_json_proto returns [19:30:39]Send response to host [19:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112408,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:30:39]free response buf [19:30:39]execute_script done [19:30:39]execute_script returns [19:30:39]free content buf [19:30:39]Sock 9.Close socket [19:30:39]Sock 9.Thread stoped [19:30:43]OFD Sender: No OFD packet to send [19:30:48]OFD Sender: No OFD packet to send [19:30:53]OFD Sender: No OFD packet to send [19:30:58]OFD Sender: No OFD packet to send [19:31:03]OFD Sender: No OFD packet to send [19:31:08]OFD Sender: No OFD packet to send [19:31:13]OFD Sender: No OFD packet to send [19:31:18]OFD Sender: No OFD packet to send [19:31:23]OFD Sender: No OFD packet to send [19:31:28]OFD Sender: No OFD packet to send [19:31:33]OFD Sender: No OFD packet to send [19:31:38]OFD Sender: No OFD packet to send [19:31:43]OFD Sender: No OFD packet to send [19:31:48]OFD Sender: No OFD packet to send [19:31:53]OFD Sender: No OFD packet to send [19:31:58]OFD Sender: No OFD packet to send [19:32:03]OFD Sender: No OFD packet to send [19:32:08]OFD Sender: No OFD packet to send [19:32:13]OFD Sender: No OFD packet to send [19:32:18]OFD Sender: No OFD packet to send [19:32:23]OFD Sender: No OFD packet to send [19:32:28]OFD Sender: No OFD packet to send [19:32:33]OFD Sender: No OFD packet to send [19:32:38]OFD Sender: No OFD packet to send [19:32:43]OFD Sender: No OFD packet to send [19:32:48]OFD Sender: No OFD packet to send [19:32:53]OFD Sender: No OFD packet to send [19:32:58]OFD Sender: No OFD packet to send [19:33:03]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:04]accept exits with 10 [19:34:04]New connection [19:34:04]New thread 3066682724 created [19:34:04]Thread 3066826084 joined [19:34:04]Waiting for new connection... [19:34:04] Sock 10.Parse request [19:34:04]Sock 10.Check first char [19:34:04]Sock 10.First char is OK [19:34:04]request: POST /json_proto HTTP/1.0 [19:34:04]Method: POST [19:34:04]URL: /json_proto [19:34:04]Method is POST - this is cgi request [19:34:04]url: /json_proto [19:34:04]query_string will be loaded in cgi processing [19:34:04]execute_cgi json_proto POST (null) [19:34:04]execute_cgi path=json_proto method=POST [19:34:04]POST find Content-Length [19:34:04]Host: 172.17.96.197:8080 [19:34:04]Content-Length: 712 [19:34:04]Content-Type: application/json [19:34:04] [19:34:04]POST finish read [19:34:04]Found Content-Length = 712 [19:34:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10441", "tax_sys" : 0, "items" : [ { "code": "8683130038390", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 double \u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C ", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:04]execute_script... [19:34:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10441", "tax_sys" : 0, "items" : [ { "code": "8683130038390", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 Algida \u041C\u0430\u0433\u043D\u0430\u0442 double \u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C ", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:04]POST & json_proto [19:34:04]process_json_proto [19:34:04]json parsed OK: [19:34:04]protocol is kg_v1.0 [19:34:04]action value=close_receipt [19:34:04]process_action close_receipt [19:34:04]cmd_close_receipt [19:34:04]MH_GetDate [19:34:04]Write to MH i2c: F0 00 00 08 26 1D [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: F0 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: F0 09 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: F0 09 00 08 26 00 AD 2F 1C 66 E0 85 7F 64 CC [19:34:04]GetLastDocTimeStamp 1713123037 [19:34:04]current date 1713123245 [19:34:04]FM_GetShiftState [19:34:04]SAM_PROTO_GetShiftState [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 13 01 00 [19:34:04]Write to MH i2c: E2 08 00 09 26 80 13 01 00 00 00 00 00 AC [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0E 00 09 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 44 [19:34:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_GetShiftState done [19:34:04]FM_GetShiftState done [19:34:04]opened in 1713054696 [19:34:04]opened+sec_in_day 1713141096 [19:34:04]quantity*price = 12900 [19:34:04]sum+1 = 12901 [19:34:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 129.00 НСП 1% : 1.14 НДС 12% : 13.70 Наличными: 129.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 308 14.04.2024 19:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112409 ФПД: 70611917612618 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193405&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112409&fm=70611917612618&tin=02508201610067®Number=0000000000094237&sum=12900 0 [19:34:05]StoreToDocumentArchive [19:34:05]shift 357 fd 112409 [19:34:05]save to /storage/0357/doc_00112409 [19:34:05]save last doc name /storage/0357/doc_00112409 to /storage/kkm_last_doc_name [19:34:05]save OK [19:34:05]Clear old archive folders... [19:34:05]ProcessDocumentItem done err = 0, tmpTLVsize=305 [19:34:05]tlvbuf is B6D896F0 [19:34:05]SAM_PROTO_ClearQueue [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 09 00 00 [19:34:05]Write to MH i2c: E2 08 00 16 26 80 09 00 00 00 00 00 00 AE [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 16 26 00 90 00 B0 [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_ClearQueue done [19:34:05]KKMCreateOFDPacket [19:34:05]OFDProtocolAddRootSTLVToBuf [19:34:05]FM_MakeSignedData [19:34:05]FM_MakeSignedData [19:34:05]SAM_PROTO_SignData [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 01 02 [19:34:05]Write to MH i2c: E2 08 00 17 26 80 0D 01 02 00 00 00 00 B6 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 17 26 00 90 00 B1 [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=255 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 33 39 30 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 34 01 00 00 F4 03 04 00 AD 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 [19:34:05]Write to MH i2c: E2 02 01 18 26 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 33 39 30 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 34 01 00 00 F4 03 04 00 AD 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 00 00 33 [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 18 26 00 90 00 B2 [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=64 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B7 01 00 35 04 06 00 40 38 9E 44 26 4A [19:34:05]Write to MH i2c: E2 43 00 19 26 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B7 01 00 35 04 06 00 40 38 9E 44 26 4A 00 00 9F [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 03 00 19 26 00 90 00 B3 [19:34:05]RAPDU: 90 00 [19:34:05]wFMCommunicate OK [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 0D 03 02 [19:34:05]Write to MH i2c: E2 08 00 1A 26 80 0D 03 02 00 00 00 00 BB [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:05]Read from MH i2c: E2 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0B 00 [19:34:05]MH_I2C_Read... [19:34:05]Read from MH i2c: E2 0B 00 1A 26 00 FF 61 52 69 AD 28 A9 3A 90 00 8F [19:34:05]RAPDU: FF 61 52 69 AD 28 A9 3A 90 00 [19:34:05]wFMCommunicate OK [19:34:05]SAM_PROTO_SignData done [19:34:05]FM_MakeSignedData done [19:34:05]CreateOFDProtocolMessage [19:34:05]wFMCommunicate request_size=4 [19:34:05]MH_SAM_APDU [19:34:05]CAPDU: 80 11 00 00 [19:34:05]Write to MH i2c: E2 08 00 1B 26 80 11 00 00 00 00 00 00 BB [19:34:05]Write i2c OK [19:34:05]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 1B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0C [19:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:34:06]wFMCommunicate OK [19:34:06]CreateOFDProtocolMessage done [19:34:06]OFDSenderStorePacket 112409 [19:34:06]StoreOFDPacket docnum=112409 [19:34:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 45 01 00 00 7F 1F 3D 01 7E 8C 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 33 39 30 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 34 01 00 00 F4 03 04 00 AD 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B7 01 00 35 04 06 00 40 38 9E 44 26 4A FF 61 52 69 AD 28 A9 3A [19:34:06]CheckFolder [19:34:06]dirname=/storage/ofd_packets [19:34:06]CheckFolder done [19:34:06]ProducePacketName [19:34:06]name=ofd_packets/00112409 [19:34:06]NVStorageSaveData ofd_packets/00112409 [19:34:06]File name is /storage/ofd_packets/00112409 [19:34:06]Write 355 bytes [19:34:06]NVStorageSaveData done [19:34:06]OFDSenderStorePacket done [19:34:06]KKMCreateOFDPacket done [19:34:06]NVStorageSaveData kkm_last_timestamp [19:34:06]File name is /storage/kkm_last_timestamp [19:34:06]Write 4 bytes [19:34:06]NVStorageSaveData done [19:34:06]OFD Sender: Processing packet 112409 [packets to send 71, broken 70] [19:34:06]ProducePacketName [19:34:06]name=ofd_packets/00112409 [19:34:06]OFD Sender: To server: pG, [19:34:06]CommunicateWithHost lk.salyk.kg:30040 [19:34:06]ConnectInit lk.salyk.kg [19:34:06]ExternCall_PrintAddStr [19:34:06]wPrintStart [19:34:06]Write to MH i2c: 01 00 00 1C 26 42 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 1C 26 00 00 00 00 00 FF 0F 57 [19:34:06]RasterBufferAndPrint [19:34:06]line Счет N : (3)10441 [19:34:06]line ИНН: 02508201610067 [19:34:06]line Контрольно-Кассовый Чек [19:34:06]line ПРОДАЖА [19:34:06]line Товар: 8683130038390 [19:34:06]line Мороженое Algida Магнат double Карамель [19:34:06]line 1.000 * 129.00 [19:34:06]line = 129.00 [19:34:06]line НДС 12% НСП 1% [19:34:06]line > о реализуемом товаре [19:34:06]line ИТОГО: 129.00 [19:34:06]line НСП 1% : 1.14 [19:34:06]line НДС 12% : 13.70 [19:34:06]line Наличными: 129.00 [19:34:06]line Безнал.: 0.00 [19:34:06]line Место: АЗС № 47 "Партнер Нефть" [19:34:06]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:34:06]line СНО: Общий режим [19:34:06]line Чек 308 14.04.2024 19:34 [19:34:06]line Смена: 357 ФФД: 1.0 [19:34:06]line ЗНМ: 0300000138 [19:34:06]line РНМ: 0000000000094237 [19:34:06]line Версия ККМ: 001 [19:34:06]line ФМ: 0000000000875019 [19:34:06]line ФД: 112409 [19:34:06]line ФПД: 70611917612618 [19:34:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193405&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112409&fm=70611917612618&tin=02508201610067®Number=0000000000094237&sum=12900 [19:34:06]line 0 [19:34:06]Connected sock=11 [19:34:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 45 01 00 00 7F 1F 3D 01 7E 8C 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 38 36 38 33 31 33 30 30 33 38 33 39 30 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 41 6C 67 69 64 61 20 D0 9C D0 B0 D0 B3 D0 BD D0 B0 D1 82 20 64 6F 75 62 6C 65 20 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 34 01 00 00 F4 03 04 00 AD 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B7 01 00 35 04 06 00 40 38 9E 44 26 4A FF 61 52 69 AD 28 A9 3A [19:34:06]written 0, free lines is 4095 [19:34:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B7 E3 47 00 6F 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 19 B7 01 00 F4 03 04 00 38 D7 1B 66 B6 04 01 00 00 4B 32 4B 0E 5D 1F 45 86 [19:34:06]CommunicateWithHost err = 0 [19:34:06]CheckOFDResponse [19:34:06]1017 (14) - 77093643461234 [19:34:06]1041 (16) - 0000000000875019 [19:34:06]1040 (4) - 112409 [19:34:06]1012 (4) - 14.04.2024 13:16 [19:34:06]1206 (1) - 0 [19:34:06]OFD Sender: Remove packet 112409 [19:34:06]ProducePacketName [19:34:06]name=ofd_packets/00112409 [19:34:06]NVStorageDeleteData [19:34:06]Write to MH i2c: 01 00 00 45 26 6B [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 45 26 00 00 00 00 00 DA 0C 58 [19:34:06]RasterBufferAndPrint [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]line [19:34:06]written 0, free lines is 3297 [19:34:06]MH_Cut [19:34:06]Write to MH i2c: D1 01 00 4C 26 01 44 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: D1 01 00 4C 26 00 43 [19:34:06]Write to MH i2c: 01 00 00 4D 26 73 [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:07]OFD Sender: No OFD packet to send [19:34:07]*** Cut start [19:34:07]*** Partial cut [19:34:07]*** CUTSNS_PIN = 1 [19:34:07]*** CUTSNS_PIN = 0 [19:34:07]*** Brake cut motor [19:34:08]Read from MH i2c: 01 [19:34:08]MH_I2C_Read... [19:34:08]*** Stop cut motor [19:34:08]*** Cut end [19:34:08]Read from MH i2c: 01 07 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: 01 07 00 4D 26 00 00 00 00 00 FF 0F 88 [19:34:08]process_action close_receipt done [19:34:08]requested_data is exist [19:34:08]produce_requested_data [19:34:08]requested_item fm.sn is exist - process it [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 11 00 00 [19:34:08]Write to MH i2c: E2 08 00 4E 26 80 11 00 00 00 00 00 00 EE [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 17 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 17 00 4E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3F [19:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:34:08]wFMCommunicate OK [19:34:08]requested_item fd.num is exist - process it [19:34:08]SAM_PROTO_GetFieldsCounters [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 13 00 00 [19:34:08]Write to MH i2c: E2 08 00 4F 26 80 13 00 00 00 00 00 00 F1 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 62 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 62 00 4F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 19 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [19:34:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 19 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_GetFieldsCounters done [19:34:08]requested_item shift.num is exist - process it [19:34:08]requested_item shift.opened is exist - process it [19:34:08]req_shift_opened [19:34:08]FM_GetShiftState [19:34:08]SAM_PROTO_GetShiftState [19:34:08]wFMCommunicate request_size=4 [19:34:08]MH_SAM_APDU [19:34:08]CAPDU: 80 13 01 00 [19:34:08]Write to MH i2c: E2 08 00 50 26 80 13 01 00 00 00 00 00 F3 [19:34:08]Write i2c OK [19:34:08]MH_I2C_Read... [19:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:08]Read from MH i2c: E2 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0E 00 [19:34:08]MH_I2C_Read... [19:34:08]Read from MH i2c: E2 0E 00 50 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8B [19:34:08]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:34:08]wFMCommunicate OK [19:34:08]SAM_PROTO_GetShiftState done [19:34:08]FM_GetShiftState done [19:34:08]req_shift_opened done [19:34:08]requested_item shift.open_date is exist - process it [19:34:08]req_shift_open_date [19:34:08]req_shift_open_date done [19:34:08]produce_requested_data done [19:34:08]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112409,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:34:08]process_action_free close_receipt [19:34:08]json_value_free [19:34:08]json_value_free done [19:34:08]process_json_proto returns [19:34:08]Send response to host [19:34:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112409,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:34:08]free response buf [19:34:08]execute_script done [19:34:08]execute_script returns [19:34:08]free content buf [19:34:08]Sock 10.Close socket [19:34:08]Sock 10.Thread stoped [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:43]accept exits with 8 [19:34:43]New connection [19:34:43]New thread 3066826084 created [19:34:43]Thread 3066682724 joined [19:34:43]Waiting for new connection... [19:34:43] Sock 8.Parse request [19:34:43]Sock 8.Check first char [19:34:43]Sock 8.First char is OK [19:34:43]request: POST /json_proto HTTP/1.0 [19:34:43]Method: POST [19:34:43]URL: /json_proto [19:34:43]Method is POST - this is cgi request [19:34:43]url: /json_proto [19:34:43]query_string will be loaded in cgi processing [19:34:43]execute_cgi json_proto POST (null) [19:34:43]execute_cgi path=json_proto method=POST [19:34:43]POST find Content-Length [19:34:43]Host: 172.17.96.197:8080 [19:34:43]Content-Length: 655 [19:34:43]Content-Type: application/json [19:34:43] [19:34:43]POST finish read [19:34:43]Found Content-Length = 655 [19:34:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10442", "tax_sys" : 0, "items" : [ { "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:43]execute_script... [19:34:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10442", "tax_sys" : 0, "items" : [ { "code": "4011100091108", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u041C\u0430\u0440\u0441 50\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:43]POST & json_proto [19:34:43]process_json_proto [19:34:43]json parsed OK: [19:34:43]protocol is kg_v1.0 [19:34:43]action value=close_receipt [19:34:43]process_action close_receipt [19:34:43]cmd_close_receipt [19:34:43]MH_GetDate [19:34:43]Write to MH i2c: F0 00 00 51 26 66 [19:34:43]Write i2c OK [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 09 00 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: F0 09 00 51 26 00 D4 2F 1C 66 E0 85 7F 64 3C [19:34:43]GetLastDocTimeStamp 1713123245 [19:34:43]current date 1713123284 [19:34:43]FM_GetShiftState [19:34:43]SAM_PROTO_GetShiftState [19:34:43]wFMCommunicate request_size=4 [19:34:43]MH_SAM_APDU [19:34:43]CAPDU: 80 13 01 00 [19:34:43]Write to MH i2c: E2 08 00 52 26 80 13 01 00 00 00 00 00 F5 [19:34:43]Write i2c OK [19:34:43]MH_I2C_Read... [19:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:43]Read from MH i2c: E2 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: E2 0E 00 [19:34:43]MH_I2C_Read... [19:34:43]Read from MH i2c: E2 0E 00 52 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8D [19:34:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:34:43]wFMCommunicate OK [19:34:43]SAM_PROTO_GetShiftState done [19:34:43]FM_GetShiftState done [19:34:43]opened in 1713054696 [19:34:43]opened+sec_in_day 1713141096 [19:34:43]quantity*price = 5900 [19:34:43]sum+1 = 5901 [19:34:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 309 14.04.2024 19:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112410 ФПД: 180721625325639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193444&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112410&fm=180721625325639&tin=02508201610067®Number=0000000000094237&sum=5900 0 [19:34:44]StoreToDocumentArchive [19:34:44]shift 357 fd 112410 [19:34:44]save to /storage/0357/doc_00112410 [19:34:44]save last doc name /storage/0357/doc_00112410 to /storage/kkm_last_doc_name [19:34:44]save OK [19:34:44]Clear old archive folders... [19:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=279 [19:34:44]tlvbuf is B6EBB4E0 [19:34:44]SAM_PROTO_ClearQueue [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 09 00 00 [19:34:44]Write to MH i2c: E2 08 00 5F 26 80 09 00 00 00 00 00 00 F7 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 5F 26 00 90 00 F9 [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]SAM_PROTO_ClearQueue done [19:34:44]KKMCreateOFDPacket [19:34:44]OFDProtocolAddRootSTLVToBuf [19:34:44]FM_MakeSignedData [19:34:44]FM_MakeSignedData [19:34:44]SAM_PROTO_SignData [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 01 02 [19:34:44]Write to MH i2c: E2 08 00 60 26 80 0D 01 02 00 00 00 00 FF [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 60 26 00 90 00 FA [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=255 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D4 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 [19:34:44]Write to MH i2c: E2 02 01 61 26 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D4 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 00 00 93 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 61 26 00 90 00 FB [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=38 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B7 01 00 35 04 06 00 A4 5D 88 47 E0 47 [19:34:44]Write to MH i2c: E2 29 00 62 26 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B7 01 00 35 04 06 00 A4 5D 88 47 E0 47 00 00 52 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:44]Read from MH i2c: E2 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 [19:34:44]MH_I2C_Read... [19:34:44]Read from MH i2c: E2 03 00 62 26 00 90 00 FC [19:34:44]RAPDU: 90 00 [19:34:44]wFMCommunicate OK [19:34:44]wFMCommunicate request_size=4 [19:34:44]MH_SAM_APDU [19:34:44]CAPDU: 80 0D 03 02 [19:34:44]Write to MH i2c: E2 08 00 63 26 80 0D 03 02 00 00 00 00 04 [19:34:44]Write i2c OK [19:34:44]MH_I2C_Read... [19:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 0B 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 0B 00 63 26 00 A6 C8 31 13 59 2F 59 A4 90 00 3C [19:34:45]RAPDU: A6 C8 31 13 59 2F 59 A4 90 00 [19:34:45]wFMCommunicate OK [19:34:45]SAM_PROTO_SignData done [19:34:45]FM_MakeSignedData done [19:34:45]CreateOFDProtocolMessage [19:34:45]wFMCommunicate request_size=4 [19:34:45]MH_SAM_APDU [19:34:45]CAPDU: 80 11 00 00 [19:34:45]Write to MH i2c: E2 08 00 64 26 80 11 00 00 00 00 00 00 04 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:45]Read from MH i2c: E2 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 17 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: E2 17 00 64 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [19:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:34:45]wFMCommunicate OK [19:34:45]CreateOFDProtocolMessage done [19:34:45]OFDSenderStorePacket 112410 [19:34:45]StoreOFDPacket docnum=112410 [19:34:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2B 01 00 00 0B 1E 23 01 4C 22 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D4 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B7 01 00 35 04 06 00 A4 5D 88 47 E0 47 A6 C8 31 13 59 2F 59 A4 [19:34:45]CheckFolder [19:34:45]dirname=/storage/ofd_packets [19:34:45]CheckFolder done [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00112410 [19:34:45]NVStorageSaveData ofd_packets/00112410 [19:34:45]File name is /storage/ofd_packets/00112410 [19:34:45]Write 329 bytes [19:34:45]NVStorageSaveData done [19:34:45]OFDSenderStorePacket done [19:34:45]KKMCreateOFDPacket done [19:34:45]NVStorageSaveData kkm_last_timestamp [19:34:45]File name is /storage/kkm_last_timestamp [19:34:45]Write 4 bytes [19:34:45]NVStorageSaveData done [19:34:45]ExternCall_PrintAddStr [19:34:45]wPrintStart [19:34:45]Write to MH i2c: 01 00 00 65 26 8B [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 65 26 00 00 00 00 00 FF 0F A0 [19:34:45]RasterBufferAndPrint [19:34:45]line Счет N : (3)10442 [19:34:45]line ИНН: 02508201610067 [19:34:45]line Контрольно-Кассовый Чек [19:34:45]line ПРОДАЖА [19:34:45]line Товар: 4011100091108 [19:34:45]line Шок Батончик Марс 50г [19:34:45]line 1.000 * 59.00 [19:34:45]line = 59.00 [19:34:45]line НДС 12% НСП 1% [19:34:45]line > о реализуемом товаре [19:34:45]line ИТОГО: 59.00 [19:34:45]line НСП 1% : 0.52 [19:34:45]line НДС 12% : 6.26 [19:34:45]line Наличными: 59.00 [19:34:45]line Безнал.: 0.00 [19:34:45]line Место: АЗС № 47 "Партнер Нефть" [19:34:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:34:45]line СНО: Общий режим [19:34:45]line Чек 309 14.04.2024 19:34 [19:34:45]line Смена: 357 ФФД: 1.0 [19:34:45]line ЗНМ: 0300000138 [19:34:45]line РНМ: 0000000000094237 [19:34:45]line Версия ККМ: 001 [19:34:45]line ФМ: 0000000000875019 [19:34:45]line ФД: 112410 [19:34:45]line ФПД: 180721625325639 [19:34:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T193444&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112410&fm=180721625325639&tin=02508201610067®Number=0000000000094237&sum=5900 [19:34:45]OFD Sender: Processing packet 112410 [packets to send 71, broken 70] [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00112410 [19:34:45]OFD Sender: To server: pG, [19:34:45]CommunicateWithHost lk.salyk.kg:30040 [19:34:45]ConnectInit lk.salyk.kg [19:34:45]line 0 [19:34:45]written 0, free lines is 4095 [19:34:45]Connected sock=10 [19:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2B 01 00 00 0B 1E 23 01 4C 22 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 31 30 38 06 04 25 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B0 D1 80 D1 81 20 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 D4 2F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B7 01 00 35 04 06 00 A4 5D 88 47 E0 47 A6 C8 31 13 59 2F 59 A4 [19:34:45]Write to MH i2c: 01 00 00 8D 26 B3 [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 F8 0C BE [19:34:45]RasterBufferAndPrint [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]line [19:34:45]written 0, free lines is 3327 [19:34:45]MH_Cut [19:34:45]Write to MH i2c: D1 01 00 94 26 01 8C [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 01 00 [19:34:45]MH_I2C_Read... [19:34:45]Read from MH i2c: D1 01 00 94 26 00 8B [19:34:45]Write to MH i2c: 01 00 00 95 26 BB [19:34:45]Write i2c OK [19:34:45]MH_I2C_Read... [19:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 92 78 47 00 AD 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1A B7 01 00 F4 03 04 00 5F D7 1B 66 B6 04 01 00 00 F8 11 BD B8 CE D8 E8 C8 [19:34:45]CommunicateWithHost err = 0 [19:34:45]CheckOFDResponse [19:34:45]1017 (14) - 77093643461234 [19:34:45]1041 (16) - 0000000000875019 [19:34:45]1040 (4) - 112410 [19:34:45]1012 (4) - 14.04.2024 13:17 [19:34:45]1206 (1) - 0 [19:34:45]OFD Sender: Remove packet 112410 [19:34:45]ProducePacketName [19:34:45]name=ofd_packets/00112410 [19:34:45]NVStorageDeleteData [19:34:46]OFD Sender: No OFD packet to send [19:34:46]*** Cut start [19:34:46]*** Partial cut [19:34:46]*** CUTSNS_PIN = 1 [19:34:46]*** CUTSNS_PIN = 0 [19:34:46]*** Brake cut motor [19:34:47]Read from MH i2c: 01 [19:34:47]MH_I2C_Read... [19:34:47]*** Stop cut motor [19:34:47]*** Cut end [19:34:47]Read from MH i2c: 01 07 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: 01 07 00 95 26 00 00 00 00 00 FF 0F D0 [19:34:47]process_action close_receipt done [19:34:47]requested_data is exist [19:34:47]produce_requested_data [19:34:47]requested_item fm.sn is exist - process it [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 11 00 00 [19:34:47]Write to MH i2c: E2 08 00 96 26 80 11 00 00 00 00 00 00 36 [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 17 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 17 00 96 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 87 [19:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:34:47]wFMCommunicate OK [19:34:47]requested_item fd.num is exist - process it [19:34:47]SAM_PROTO_GetFieldsCounters [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 13 00 00 [19:34:47]Write to MH i2c: E2 08 00 97 26 80 13 00 00 00 00 00 00 39 [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 62 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 62 00 97 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [19:34:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:47]wFMCommunicate OK [19:34:47]SAM_PROTO_GetFieldsCounters done [19:34:47]requested_item shift.num is exist - process it [19:34:47]requested_item shift.opened is exist - process it [19:34:47]req_shift_opened [19:34:47]FM_GetShiftState [19:34:47]SAM_PROTO_GetShiftState [19:34:47]wFMCommunicate request_size=4 [19:34:47]MH_SAM_APDU [19:34:47]CAPDU: 80 13 01 00 [19:34:47]Write to MH i2c: E2 08 00 98 26 80 13 01 00 00 00 00 00 3B [19:34:47]Write i2c OK [19:34:47]MH_I2C_Read... [19:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:47]Read from MH i2c: E2 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 0E 00 [19:34:47]MH_I2C_Read... [19:34:47]Read from MH i2c: E2 0E 00 98 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [19:34:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:34:47]wFMCommunicate OK [19:34:47]SAM_PROTO_GetShiftState done [19:34:47]FM_GetShiftState done [19:34:47]req_shift_opened done [19:34:47]requested_item shift.open_date is exist - process it [19:34:47]req_shift_open_date [19:34:47]req_shift_open_date done [19:34:47]produce_requested_data done [19:34:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112410,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:34:47]process_action_free close_receipt [19:34:47]json_value_free [19:34:47]json_value_free done [19:34:47]process_json_proto returns [19:34:47]Send response to host [19:34:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112410,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:34:47]free response buf [19:34:47]execute_script done [19:34:47]execute_script returns [19:34:47]free content buf [19:34:47]Sock 8.Close socket [19:34:47]Sock 8.Thread stoped [19:34:51]OFD Sender: No OFD packet to send [19:34:56]OFD Sender: No OFD packet to send [19:35:01]OFD Sender: No OFD packet to send [19:35:06]OFD Sender: No OFD packet to send [19:35:11]OFD Sender: No OFD packet to send [19:35:16]OFD Sender: No OFD packet to send [19:35:21]OFD Sender: No OFD packet to send [19:35:26]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:46]OFD Sender: No OFD packet to send [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:26]OFD Sender: No OFD packet to send [19:36:31]OFD Sender: No OFD packet to send [19:36:36]OFD Sender: No OFD packet to send [19:36:41]OFD Sender: No OFD packet to send [19:36:46]OFD Sender: No OFD packet to send [19:36:51]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:03]accept exits with 9 [19:43:03]New connection [19:43:03]New thread 3066682724 created [19:43:03]Thread 3066826084 joined [19:43:03]Waiting for new connection... [19:43:03] Sock 9.Parse request [19:43:03]Sock 9.Check first char [19:43:03]Sock 9.First char is OK [19:43:03]request: POST /json_proto HTTP/1.0 [19:43:03]Method: POST [19:43:03]URL: /json_proto [19:43:03]Method is POST - this is cgi request [19:43:03]url: /json_proto [19:43:03]query_string will be loaded in cgi processing [19:43:03]execute_cgi json_proto POST (null) [19:43:03]execute_cgi path=json_proto method=POST [19:43:03]POST find Content-Length [19:43:03]Host: 172.17.96.197:8080 [19:43:03]Content-Length: 669 [19:43:03]Content-Type: application/json [19:43:03] [19:43:03]POST finish read [19:43:03]Found Content-Length = 669 [19:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48709", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:43:03]execute_script... [19:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48709", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [19:43:03]POST & json_proto [19:43:03]process_json_proto [19:43:03]json parsed OK: [19:43:03]protocol is kg_v1.0 [19:43:03]action value=close_receipt [19:43:03]process_action close_receipt [19:43:03]cmd_close_receipt [19:43:03]MH_GetDate [19:43:03]Write to MH i2c: F0 00 00 99 26 AE [19:43:03]Write i2c OK [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: F0 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: F0 09 00 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: F0 09 00 99 26 00 C8 31 1C 66 E0 85 7F 64 7A [19:43:03]GetLastDocTimeStamp 1713123284 [19:43:03]current date 1713123784 [19:43:03]FM_GetShiftState [19:43:03]SAM_PROTO_GetShiftState [19:43:03]wFMCommunicate request_size=4 [19:43:03]MH_SAM_APDU [19:43:03]CAPDU: 80 13 01 00 [19:43:03]Write to MH i2c: E2 08 00 9A 26 80 13 01 00 00 00 00 00 3D [19:43:03]Write i2c OK [19:43:03]MH_I2C_Read... [19:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:03]Read from MH i2c: E2 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: E2 0E 00 [19:43:03]MH_I2C_Read... [19:43:03]Read from MH i2c: E2 0E 00 9A 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [19:43:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:43:03]wFMCommunicate OK [19:43:03]SAM_PROTO_GetShiftState done [19:43:03]FM_GetShiftState done [19:43:03]opened in 1713054696 [19:43:03]opened+sec_in_day 1713141096 [19:43:03]quantity*price = 50019 [19:43:03]sum+1 = 50021 [19:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 310 14.04.2024 19:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112411 ФПД: 82986979288475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194304&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112411&fm=82986979288475&tin=02508201610067®Number=0000000000094237&sum=50000 [19:43:04]StoreToDocumentArchive [19:43:04]shift 357 fd 112411 [19:43:04]save to /storage/0357/doc_00112411 [19:43:04]save last doc name /storage/0357/doc_00112411 to /storage/kkm_last_doc_name [19:43:04]save OK [19:43:04]Clear old archive folders... [19:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [19:43:04]tlvbuf is 00163070 [19:43:04]SAM_PROTO_ClearQueue [19:43:04]wFMCommunicate request_size=4 [19:43:04]MH_SAM_APDU [19:43:04]CAPDU: 80 09 00 00 [19:43:04]Write to MH i2c: E2 08 00 A7 26 80 09 00 00 00 00 00 00 3F [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:04]Read from MH i2c: E2 03 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 A7 26 00 90 00 41 [19:43:04]RAPDU: 90 00 [19:43:04]wFMCommunicate OK [19:43:04]SAM_PROTO_ClearQueue done [19:43:04]KKMCreateOFDPacket [19:43:04]OFDProtocolAddRootSTLVToBuf [19:43:04]FM_MakeSignedData [19:43:04]FM_MakeSignedData [19:43:04]SAM_PROTO_SignData [19:43:04]wFMCommunicate request_size=4 [19:43:04]MH_SAM_APDU [19:43:04]CAPDU: 80 0D 01 02 [19:43:04]Write to MH i2c: E2 08 00 A8 26 80 0D 01 02 00 00 00 00 47 [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 A8 26 00 90 00 42 [19:43:04]RAPDU: 90 00 [19:43:04]wFMCommunicate OK [19:43:04]wFMCommunicate request_size=255 [19:43:04]MH_SAM_APDU [19:43:04]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 36 01 00 00 F4 03 04 00 C8 31 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1B B7 01 00 35 04 06 00 [19:43:04]Write to MH i2c: E2 02 01 A9 26 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 36 01 00 00 F4 03 04 00 C8 31 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1B B7 01 00 35 04 06 00 00 00 58 [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 A9 26 00 90 00 43 [19:43:04]RAPDU: 90 00 [19:43:04]wFMCommunicate OK [19:43:04]wFMCommunicate request_size=11 [19:43:04]MH_SAM_APDU [19:43:04]CAPDU: 80 0D 02 02 06 4B 79 E9 6B E5 9B [19:43:04]Write to MH i2c: E2 0E 00 AA 26 80 0D 02 02 06 00 4B 79 E9 6B E5 9B 00 00 EE [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 03 00 AA 26 00 90 00 44 [19:43:04]RAPDU: 90 00 [19:43:04]wFMCommunicate OK [19:43:04]wFMCommunicate request_size=4 [19:43:04]MH_SAM_APDU [19:43:04]CAPDU: 80 0D 03 02 [19:43:04]Write to MH i2c: E2 08 00 AB 26 80 0D 03 02 00 00 00 00 4C [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 0B 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 0B 00 AB 26 00 C0 9F 8A 3F 05 E0 5C 88 90 00 3E [19:43:04]RAPDU: C0 9F 8A 3F 05 E0 5C 88 90 00 [19:43:04]wFMCommunicate OK [19:43:04]SAM_PROTO_SignData done [19:43:04]FM_MakeSignedData done [19:43:04]CreateOFDProtocolMessage [19:43:04]wFMCommunicate request_size=4 [19:43:04]MH_SAM_APDU [19:43:04]CAPDU: 80 11 00 00 [19:43:04]Write to MH i2c: E2 08 00 AC 26 80 11 00 00 00 00 00 00 4C [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:04]Read from MH i2c: E2 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 17 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: E2 17 00 AC 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9D [19:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:43:04]wFMCommunicate OK [19:43:04]CreateOFDProtocolMessage done [19:43:04]OFDSenderStorePacket 112411 [19:43:04]StoreOFDPacket docnum=112411 [19:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 25 26 08 01 15 3B 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 36 01 00 00 F4 03 04 00 C8 31 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1B B7 01 00 35 04 06 00 4B 79 E9 6B E5 9B C0 9F 8A 3F 05 E0 5C 88 [19:43:04]CheckFolder [19:43:04]dirname=/storage/ofd_packets [19:43:04]CheckFolder done [19:43:04]ProducePacketName [19:43:04]name=ofd_packets/00112411 [19:43:04]NVStorageSaveData ofd_packets/00112411 [19:43:04]File name is /storage/ofd_packets/00112411 [19:43:04]Write 302 bytes [19:43:04]NVStorageSaveData done [19:43:04]OFDSenderStorePacket done [19:43:04]KKMCreateOFDPacket done [19:43:04]NVStorageSaveData kkm_last_timestamp [19:43:04]File name is /storage/kkm_last_timestamp [19:43:04]Write 4 bytes [19:43:04]NVStorageSaveData done [19:43:04]ExternCall_PrintAddStr [19:43:04]wPrintStart [19:43:04]Write to MH i2c: 01 00 00 AD 26 D3 [19:43:04]Write i2c OK [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 07 00 [19:43:04]MH_I2C_Read... [19:43:04]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [19:43:04]RasterBufferAndPrint [19:43:04]line Счет N : (1)48709 [19:43:04]line ИНН: 02508201610067 [19:43:04]line Контрольно-Кассовый Чек [19:43:04]line ПРОДАЖА [19:43:04]line ТРК (МРК, ГНК) : 31 [19:43:04]line Товар: 2710124130 [19:43:04]line SUPER 92-К-5 [19:43:04]line 7.660 * 65.30 [19:43:04]line = 500.20 [19:43:04]line НДС 12% НСП 1% [19:43:04]line > о реализуемом товаре [19:43:04]line ОКРУГЛЕНИЕ: -0.20 [19:43:04]line ИТОГО: 500.00 [19:43:04]line Внесено: 500.00 [19:43:04]line СДАЧА: 0.00 [19:43:04]line НСП 1% : 4.43 [19:43:04]line НДС 12% : 53.12 [19:43:04]line Наличными: 500.00 [19:43:04]line Безнал.: 0.00 [19:43:04]line Место: АЗС № 47 "Партнер Нефть" [19:43:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:43:04]line СНО: Общий режим [19:43:04]line Чек 310 14.04.2024 19:43 [19:43:04]line Смена: 357 ФФД: 1.0 [19:43:04]line ЗНМ: 0300000138 [19:43:04]line РНМ: 0000000000094237 [19:43:04]line Версия ККМ: 001 [19:43:04]line ФМ: 0000000000875019 [19:43:04]line ФД: 112411 [19:43:04]line ФПД: 82986979288475 [19:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194304&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112411&fm=82986979288475&tin=02508201610067®Number=0000000000094237&sum=50000 [19:43:05]OFD Sender: Processing packet 112411 [packets to send 71, broken 70] [19:43:05]ProducePacketName [19:43:05]name=ofd_packets/00112411 [19:43:05]OFD Sender: To server: pG, [19:43:05]CommunicateWithHost lk.salyk.kg:30040 [19:43:05]ConnectInit lk.salyk.kg [19:43:05]written 0, free lines is 4095 [19:43:05]Connected sock=10 [19:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 25 26 08 01 15 3B 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 36 01 00 00 F4 03 04 00 C8 31 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1B B7 01 00 35 04 06 00 4B 79 E9 6B E5 9B C0 9F 8A 3F 05 E0 5C 88 [19:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E2 B9 47 00 27 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1B B7 01 00 F4 03 04 00 53 D9 1B 66 B6 04 01 00 00 F1 F2 92 01 89 60 D7 90 [19:43:05]CommunicateWithHost err = 0 [19:43:05]CheckOFDResponse [19:43:05]1017 (14) - 77093643461234 [19:43:05]1041 (16) - 0000000000875019 [19:43:05]1040 (4) - 112411 [19:43:05]1012 (4) - 14.04.2024 13:25 [19:43:05]1206 (1) - 0 [19:43:05]OFD Sender: Remove packet 112411 [19:43:05]ProducePacketName [19:43:05]name=ofd_packets/00112411 [19:43:05]NVStorageDeleteData [19:43:05]Write to MH i2c: 01 00 00 D8 26 FE [19:43:05]Write i2c OK [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: 01 [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: 01 07 00 [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: 01 07 00 D8 26 00 00 00 00 00 DC 0C ED [19:43:05]RasterBufferAndPrint [19:43:05]line [19:43:05]line [19:43:05]line [19:43:05]line [19:43:05]line [19:43:05]written 0, free lines is 3298 [19:43:05]MH_Cut [19:43:05]Write to MH i2c: D1 01 00 DF 26 01 D7 [19:43:05]Write i2c OK [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: D1 [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: D1 01 00 [19:43:05]MH_I2C_Read... [19:43:05]Read from MH i2c: D1 01 00 DF 26 00 D6 [19:43:05]Write to MH i2c: 01 00 00 E0 26 06 [19:43:05]Write i2c OK [19:43:05]MH_I2C_Read... [19:43:06]OFD Sender: No OFD packet to send [19:43:06]*** Cut start [19:43:06]*** Partial cut [19:43:06]*** CUTSNS_PIN = 1 [19:43:06]*** CUTSNS_PIN = 0 [19:43:06]*** Brake cut motor [19:43:07]Read from MH i2c: 01 [19:43:07]MH_I2C_Read... [19:43:07]*** Stop cut motor [19:43:07]*** Cut end [19:43:07]Read from MH i2c: 01 07 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: 01 07 00 E0 26 00 00 00 00 00 FF 0F 1B [19:43:07]process_action close_receipt done [19:43:07]requested_data is exist [19:43:07]produce_requested_data [19:43:07]requested_item fm.sn is exist - process it [19:43:07]wFMCommunicate request_size=4 [19:43:07]MH_SAM_APDU [19:43:07]CAPDU: 80 11 00 00 [19:43:07]Write to MH i2c: E2 08 00 E1 26 80 11 00 00 00 00 00 00 81 [19:43:07]Write i2c OK [19:43:07]MH_I2C_Read... [19:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:07]Read from MH i2c: E2 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 17 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 17 00 E1 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D2 [19:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:43:07]wFMCommunicate OK [19:43:07]requested_item fd.num is exist - process it [19:43:07]SAM_PROTO_GetFieldsCounters [19:43:07]wFMCommunicate request_size=4 [19:43:07]MH_SAM_APDU [19:43:07]CAPDU: 80 13 00 00 [19:43:07]Write to MH i2c: E2 08 00 E2 26 80 13 00 00 00 00 00 00 84 [19:43:07]Write i2c OK [19:43:07]MH_I2C_Read... [19:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:07]Read from MH i2c: E2 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 62 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 62 00 E2 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:07]wFMCommunicate OK [19:43:07]SAM_PROTO_GetFieldsCounters done [19:43:07]requested_item shift.num is exist - process it [19:43:07]requested_item shift.opened is exist - process it [19:43:07]req_shift_opened [19:43:07]FM_GetShiftState [19:43:07]SAM_PROTO_GetShiftState [19:43:07]wFMCommunicate request_size=4 [19:43:07]MH_SAM_APDU [19:43:07]CAPDU: 80 13 01 00 [19:43:07]Write to MH i2c: E2 08 00 E3 26 80 13 01 00 00 00 00 00 86 [19:43:07]Write i2c OK [19:43:07]MH_I2C_Read... [19:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:07]Read from MH i2c: E2 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 0E 00 [19:43:07]MH_I2C_Read... [19:43:07]Read from MH i2c: E2 0E 00 E3 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1E [19:43:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:43:07]wFMCommunicate OK [19:43:07]SAM_PROTO_GetShiftState done [19:43:07]FM_GetShiftState done [19:43:07]req_shift_opened done [19:43:07]requested_item shift.open_date is exist - process it [19:43:07]req_shift_open_date [19:43:07]req_shift_open_date done [19:43:07]produce_requested_data done [19:43:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112411,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:43:07]process_action_free close_receipt [19:43:07]json_value_free [19:43:07]json_value_free done [19:43:07]process_json_proto returns [19:43:07]Send response to host [19:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112411,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:43:07]free response buf [19:43:07]execute_script done [19:43:07]execute_script returns [19:43:07]free content buf [19:43:07]Sock 9.Close socket [19:43:07]Sock 9.Thread stoped [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:15]accept exits with 8 [19:44:15]New connection [19:44:15]New thread 3066826084 created [19:44:15]Thread 3066682724 joined [19:44:15]Waiting for new connection... [19:44:15] Sock 8.Parse request [19:44:15]Sock 8.Check first char [19:44:15]Sock 8.First char is OK [19:44:15]request: POST /json_proto HTTP/1.0 [19:44:15]Method: POST [19:44:15]URL: /json_proto [19:44:15]Method is POST - this is cgi request [19:44:15]url: /json_proto [19:44:15]query_string will be loaded in cgi processing [19:44:15]execute_cgi json_proto POST (null) [19:44:15]execute_cgi path=json_proto method=POST [19:44:15]POST find Content-Length [19:44:15]Host: 172.17.96.197:8080 [19:44:15]Content-Length: 676 [19:44:15]Content-Type: application/json [19:44:15] [19:44:15]POST finish read [19:44:15]Found Content-Length = 676 [19:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.280, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]execute_script... [19:44: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)48710", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 8.280, "sum" : 600.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]POST & json_proto [19:44:15]process_json_proto [19:44:15]json parsed OK: [19:44:15]protocol is kg_v1.0 [19:44:15]action value=close_receipt [19:44:15]process_action close_receipt [19:44:15]cmd_close_receipt [19:44:15]MH_GetDate [19:44:15]Write to MH i2c: F0 00 00 E4 26 F9 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 E4 26 00 11 32 1C 66 E0 85 7F 64 0F [19:44:15]GetLastDocTimeStamp 1713123784 [19:44:15]current date 1713123857 [19:44:15]FM_GetShiftState [19:44:15]SAM_PROTO_GetShiftState [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 13 01 00 [19:44:15]Write to MH i2c: E2 08 00 E5 26 80 13 01 00 00 00 00 00 88 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 E5 26 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 20 [19:44:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:44:15]wFMCommunicate OK [19:44:15]SAM_PROTO_GetShiftState done [19:44:15]FM_GetShiftState done [19:44:15]opened in 1713054696 [19:44:15]opened+sec_in_day 1713141096 [19:44:15]quantity*price = 60030 [19:44:15]sum+1 = 60031 [19:44:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 311 14.04.2024 19:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112412 ФПД: 13579059967739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194417&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112412&fm=13579059967739&tin=02508201610067®Number=0000000000094237&sum=60000 [19:44:17]StoreToDocumentArchive [19:44:17]shift 357 fd 112412 [19:44:17]save to /storage/0357/doc_00112412 [19:44:17]save last doc name /storage/0357/doc_00112412 to /storage/kkm_last_doc_name [19:44:17]save OK [19:44:17]Clear old archive folders... [19:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:44:17]tlvbuf is 00184260 [19:44:17]SAM_PROTO_ClearQueue [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 09 00 00 [19:44:17]Write to MH i2c: E2 08 00 F2 26 80 09 00 00 00 00 00 00 8A [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 F2 26 00 90 00 8C [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]SAM_PROTO_ClearQueue done [19:44:17]KKMCreateOFDPacket [19:44:17]OFDProtocolAddRootSTLVToBuf [19:44:17]FM_MakeSignedData [19:44:17]FM_MakeSignedData [19:44:17]SAM_PROTO_SignData [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 01 02 [19:44:17]Write to MH i2c: E2 08 00 F3 26 80 0D 01 02 00 00 00 00 92 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 F3 26 00 90 00 8D [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=255 [19:44:17]MH_SAM_APDU [19:44:17]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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B7 01 00 35 04 06 00 0C [19:44:17]Write to MH i2c: E2 02 01 F4 26 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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B7 01 00 35 04 06 00 0C 00 00 D7 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 F4 26 00 90 00 8E [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=10 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 02 02 05 59 9F 0B B6 FB [19:44:17]Write to MH i2c: E2 0D 00 F5 26 80 0D 02 02 05 00 59 9F 0B B6 FB 00 00 53 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 F5 26 00 90 00 8F [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 03 02 [19:44:17]Write to MH i2c: E2 08 00 F6 26 80 0D 03 02 00 00 00 00 97 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0B 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0B 00 F6 26 00 02 DD 7A 95 39 ED 33 71 90 00 50 [19:44:17]RAPDU: 02 DD 7A 95 39 ED 33 71 90 00 [19:44:17]wFMCommunicate OK [19:44:17]SAM_PROTO_SignData done [19:44:17]FM_MakeSignedData done [19:44:17]CreateOFDProtocolMessage [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 11 00 00 [19:44:17]Write to MH i2c: E2 08 00 F7 26 80 11 00 00 00 00 00 00 97 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 17 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 17 00 F7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [19:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:44:17]wFMCommunicate OK [19:44:17]CreateOFDProtocolMessage done [19:44:17]OFDSenderStorePacket 112412 [19:44:17]StoreOFDPacket docnum=112412 [19:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 55 FE 07 01 FD 56 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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B7 01 00 35 04 06 00 0C 59 9F 0B B6 FB 02 DD 7A 95 39 ED 33 71 [19:44:17]CheckFolder [19:44:17]dirname=/storage/ofd_packets [19:44:17]CheckFolder done [19:44:17]ProducePacketName [19:44:17]name=ofd_packets/00112412 [19:44:17]NVStorageSaveData ofd_packets/00112412 [19:44:17]File name is /storage/ofd_packets/00112412 [19:44:17]Write 301 bytes [19:44:17]NVStorageSaveData done [19:44:17]OFDSenderStorePacket done [19:44:17]KKMCreateOFDPacket done [19:44:17]NVStorageSaveData kkm_last_timestamp [19:44:17]File name is /storage/kkm_last_timestamp [19:44:17]Write 4 bytes [19:44:17]NVStorageSaveData done [19:44:17]ExternCall_PrintAddStr [19:44:17]wPrintStart [19:44:17]Write to MH i2c: 01 00 00 F8 26 1E [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 F8 26 00 00 00 00 00 FF 0F 33 [19:44:17]RasterBufferAndPrint [19:44:17]line Счет N : (1)48710 [19:44:17]line ИНН: 02508201610067 [19:44:17]line Контрольно-Кассовый Чек [19:44:17]line ПРОДАЖА [19:44:17]line ТРК (МРК, ГНК) : 22 [19:44:17]line Товар: 2710124500 [19:44:17]line Аи-95-К-5 [19:44:17]line 8.280 * 72.50 [19:44:17]line = 600.30 [19:44:17]line НДС 12% НСП 1% [19:44:17]line > о реализуемом товаре [19:44:17]line ОКРУГЛЕНИЕ: -0.30 [19:44:17]line ИТОГО: 600.00 [19:44:17]line Внесено: 600.00 [19:44:17]line СДАЧА: 0.00 [19:44:17]line НСП 1% : 5.31 [19:44:17]line НДС 12% : 63.75 [19:44:17]line Наличными: 600.00 [19:44:17]line Безнал.: 0.00 [19:44:17]line Место: АЗС № 47 "Партнер Нефть" [19:44:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:44:17]line СНО: Общий режим [19:44:17]line Чек 311 14.04.2024 19:44 [19:44:17]line Смена: 357 ФФД: 1.0 [19:44:17]line ЗНМ: 0300000138 [19:44:17]line РНМ: 0000000000094237 [19:44:17]line Версия ККМ: 001 [19:44:17]line ФМ: 0000000000875019 [19:44:17]line ФД: 112412 [19:44:17]line ФПД: 13579059967739 [19:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194417&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112412&fm=13579059967739&tin=02508201610067®Number=0000000000094237&sum=60000 [19:44:17]OFD Sender: Processing packet 112412 [packets to send 71, broken 70] [19:44:17]ProducePacketName [19:44:17]name=ofd_packets/00112412 [19:44:17]OFD Sender: To server: pG, [19:44:17]CommunicateWithHost lk.salyk.kg:30040 [19:44:17]ConnectInit lk.salyk.kg [19:44:17]written 0, free lines is 4095 [19:44:18]Connected sock=11 [19:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 55 FE 07 01 FD 56 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 58 20 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 7E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 11 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B7 01 00 35 04 06 00 0C 59 9F 0B B6 FB 02 DD 7A 95 39 ED 33 71 [19:44:18]Write to MH i2c: 01 00 00 23 27 4A [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 23 27 00 00 00 00 00 D3 0C 30 [19:44:18]RasterBufferAndPrint [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]written 0, free lines is 3287 [19:44:18]MH_Cut [19:44:18]Write to MH i2c: D1 01 00 2A 27 01 23 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 01 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 01 00 2A 27 00 22 [19:44:18]Write to MH i2c: 01 00 00 2B 27 52 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AF 83 47 00 18 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1C B7 01 00 F4 03 04 00 9C D9 1B 66 B6 04 01 00 00 B2 E9 83 52 69 DF FB ED [19:44:18]CommunicateWithHost err = 0 [19:44:18]CheckOFDResponse [19:44:18]1017 (14) - 77093643461234 [19:44:18]1041 (16) - 0000000000875019 [19:44:18]1040 (4) - 112412 [19:44:18]1012 (4) - 14.04.2024 13:26 [19:44:18]1206 (1) - 0 [19:44:18]OFD Sender: Remove packet 112412 [19:44:18]ProducePacketName [19:44:18]name=ofd_packets/00112412 [19:44:18]NVStorageDeleteData [19:44:18]OFD Sender: No OFD packet to send [19:44:19]*** Cut start [19:44:19]*** Partial cut [19:44:19]*** CUTSNS_PIN = 1 [19:44:19]*** CUTSNS_PIN = 0 [19:44:19]*** Brake cut motor [19:44:19]Read from MH i2c: 01 [19:44:19]MH_I2C_Read... [19:44:19]*** Stop cut motor [19:44:19]*** Cut end [19:44:19]Read from MH i2c: 01 07 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: 01 07 00 2B 27 00 00 00 00 00 FF 0F 67 [19:44:19]process_action close_receipt done [19:44:19]requested_data is exist [19:44:19]produce_requested_data [19:44:19]requested_item fm.sn is exist - process it [19:44:19]wFMCommunicate request_size=4 [19:44:19]MH_SAM_APDU [19:44:19]CAPDU: 80 11 00 00 [19:44:19]Write to MH i2c: E2 08 00 2C 27 80 11 00 00 00 00 00 00 CD [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:19]Read from MH i2c: E2 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 17 00 [19:44:19]MH_I2C_Read... [19:44:19]Read from MH i2c: E2 17 00 2C 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1E [19:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:44:19]wFMCommunicate OK [19:44:19]requested_item fd.num is exist - process it [19:44:19]SAM_PROTO_GetFieldsCounters [19:44:19]wFMCommunicate request_size=4 [19:44:19]MH_SAM_APDU [19:44:19]CAPDU: 80 13 00 00 [19:44:19]Write to MH i2c: E2 08 00 2D 27 80 13 00 00 00 00 00 00 D0 [19:44:19]Write i2c OK [19:44:19]MH_I2C_Read... [19:44:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:20]Read from MH i2c: E2 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 62 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 62 00 2D 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:44:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:20]wFMCommunicate OK [19:44:20]SAM_PROTO_GetFieldsCounters done [19:44:20]requested_item shift.num is exist - process it [19:44:20]requested_item shift.opened is exist - process it [19:44:20]req_shift_opened [19:44:20]FM_GetShiftState [19:44:20]SAM_PROTO_GetShiftState [19:44:20]wFMCommunicate request_size=4 [19:44:20]MH_SAM_APDU [19:44:20]CAPDU: 80 13 01 00 [19:44:20]Write to MH i2c: E2 08 00 2E 27 80 13 01 00 00 00 00 00 D2 [19:44:20]Write i2c OK [19:44:20]MH_I2C_Read... [19:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:20]Read from MH i2c: E2 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 0E 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 0E 00 2E 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6A [19:44:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:44:20]wFMCommunicate OK [19:44:20]SAM_PROTO_GetShiftState done [19:44:20]FM_GetShiftState done [19:44:20]req_shift_opened done [19:44:20]requested_item shift.open_date is exist - process it [19:44:20]req_shift_open_date [19:44:20]req_shift_open_date done [19:44:20]produce_requested_data done [19:44:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112412,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:44:20]process_action_free close_receipt [19:44:20]json_value_free [19:44:20]json_value_free done [19:44:20]process_json_proto returns [19:44:20]Send response to host [19:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112412,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:44:20]free response buf [19:44:20]execute_script done [19:44:20]execute_script returns [19:44:20]free content buf [19:44:20]Sock 8.Close socket [19:44:20]Sock 8.Thread stoped [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]accept exits with 9 [19:48:14]New connection [19:48:14]New thread 3066682724 created [19:48:14]Thread 3066826084 joined [19:48:14]Waiting for new connection... [19:48:14] Sock 9.Parse request [19:48:14]Sock 9.Check first char [19:48:14]Sock 9.First char is OK [19:48:14]request: POST /json_proto HTTP/1.0 [19:48:14]Method: POST [19:48:14]URL: /json_proto [19:48:14]Method is POST - this is cgi request [19:48:14]url: /json_proto [19:48:14]query_string will be loaded in cgi processing [19:48:14]execute_cgi json_proto POST (null) [19:48:14]execute_cgi path=json_proto method=POST [19:48:14]POST find Content-Length [19:48:14]Host: 172.17.96.197:8080 [19:48:14]Content-Length: 673 [19:48:14]Content-Type: application/json [19:48:14] [19:48:14]POST finish read [19:48:14]Found Content-Length = 673 [19:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48711", "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.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:14]execute_script... [19:48: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)48711", "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.40, "quantity" : 5.530, "sum" : 400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:14]POST & json_proto [19:48:14]process_json_proto [19:48:14]json parsed OK: [19:48:14]protocol is kg_v1.0 [19:48:14]action value=close_receipt [19:48:14]process_action close_receipt [19:48:14]cmd_close_receipt [19:48:14]MH_GetDate [19:48:14]Write to MH i2c: F0 00 00 2F 27 45 [19:48:14]Write i2c OK [19:48:14]MH_I2C_Read... [19:48:14]Read from MH i2c: F0 [19:48:14]MH_I2C_Read... [19:48:14]Read from MH i2c: F0 09 00 [19:48:14]MH_I2C_Read... [19:48:14]Read from MH i2c: F0 09 00 2F 27 00 FF 32 1C 66 E0 85 7F 64 49 [19:48:14]GetLastDocTimeStamp 1713123857 [19:48:14]current date 1713124095 [19:48:14]FM_GetShiftState [19:48:14]SAM_PROTO_GetShiftState [19:48:14]wFMCommunicate request_size=4 [19:48:14]MH_SAM_APDU [19:48:14]CAPDU: 80 13 01 00 [19:48:14]Write to MH i2c: E2 08 00 30 27 80 13 01 00 00 00 00 00 D4 [19:48:14]Write i2c OK [19:48:14]MH_I2C_Read... [19:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:14]Read from MH i2c: E2 [19:48:14]MH_I2C_Read... [19:48:14]Read from MH i2c: E2 0E 00 [19:48:14]MH_I2C_Read... [19:48:14]Read from MH i2c: E2 0E 00 30 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6C [19:48:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:48:14]wFMCommunicate OK [19:48:14]SAM_PROTO_GetShiftState done [19:48:14]FM_GetShiftState done [19:48:14]opened in 1713054696 [19:48:14]opened+sec_in_day 1713141096 [19:48:14]quantity*price = 40037 [19:48:14]sum+1 = 40038 [19:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.52 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 312 14.04.2024 19:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112413 ФПД: 837388870965 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194815&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112413&fm=837388870965&tin=02508201610067®Number=0000000000094237&sum=40000 [19:48:15]StoreToDocumentArchive [19:48:15]shift 357 fd 112413 [19:48:15]save to /storage/0357/doc_00112413 [19:48:15]save last doc name /storage/0357/doc_00112413 to /storage/kkm_last_doc_name [19:48:15]save OK [19:48:15]Clear old archive folders... [19:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:48:15]tlvbuf is 001C21C0 [19:48:15]SAM_PROTO_ClearQueue [19:48:15]wFMCommunicate request_size=4 [19:48:15]MH_SAM_APDU [19:48:15]CAPDU: 80 09 00 00 [19:48:15]Write to MH i2c: E2 08 00 3D 27 80 09 00 00 00 00 00 00 D6 [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 3D 27 00 90 00 D8 [19:48:15]RAPDU: 90 00 [19:48:15]wFMCommunicate OK [19:48:15]SAM_PROTO_ClearQueue done [19:48:15]KKMCreateOFDPacket [19:48:15]OFDProtocolAddRootSTLVToBuf [19:48:15]FM_MakeSignedData [19:48:15]FM_MakeSignedData [19:48:15]SAM_PROTO_SignData [19:48:15]wFMCommunicate request_size=4 [19:48:15]MH_SAM_APDU [19:48:15]CAPDU: 80 0D 01 02 [19:48:15]Write to MH i2c: E2 08 00 3E 27 80 0D 01 02 00 00 00 00 DE [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 3E 27 00 90 00 D9 [19:48:15]RAPDU: 90 00 [19:48:15]wFMCommunicate OK [19:48:15]wFMCommunicate request_size=255 [19:48:15]MH_SAM_APDU [19:48: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 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 38 01 00 00 F4 03 04 00 FF 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B7 01 00 35 04 06 00 00 C2 F8 44 [19:48:15]Write to MH i2c: E2 02 01 3F 27 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 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 38 01 00 00 F4 03 04 00 FF 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B7 01 00 35 04 06 00 00 C2 F8 44 00 00 39 [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 3F 27 00 90 00 DA [19:48:15]RAPDU: 90 00 [19:48:15]wFMCommunicate OK [19:48:15]wFMCommunicate request_size=7 [19:48:15]MH_SAM_APDU [19:48:15]CAPDU: 80 0D 02 02 02 25 35 [19:48:15]Write to MH i2c: E2 0A 00 40 27 80 0D 02 02 02 00 25 35 00 00 3F [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 03 00 40 27 00 90 00 DB [19:48:15]RAPDU: 90 00 [19:48:15]wFMCommunicate OK [19:48:15]wFMCommunicate request_size=4 [19:48:15]MH_SAM_APDU [19:48:15]CAPDU: 80 0D 03 02 [19:48:15]Write to MH i2c: E2 08 00 41 27 80 0D 03 02 00 00 00 00 E3 [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 0B 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 0B 00 41 27 00 B2 74 91 F6 B1 BC 35 80 90 00 B3 [19:48:15]RAPDU: B2 74 91 F6 B1 BC 35 80 90 00 [19:48:15]wFMCommunicate OK [19:48:15]SAM_PROTO_SignData done [19:48:15]FM_MakeSignedData done [19:48:15]CreateOFDProtocolMessage [19:48:15]wFMCommunicate request_size=4 [19:48:15]MH_SAM_APDU [19:48:15]CAPDU: 80 11 00 00 [19:48:15]Write to MH i2c: E2 08 00 42 27 80 11 00 00 00 00 00 00 E3 [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:15]Read from MH i2c: E2 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 17 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: E2 17 00 42 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 34 [19:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:48:15]wFMCommunicate OK [19:48:15]CreateOFDProtocolMessage done [19:48:15]OFDSenderStorePacket 112413 [19:48:15]StoreOFDPacket docnum=112413 [19:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B4 67 04 01 33 6B 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 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 38 01 00 00 F4 03 04 00 FF 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B7 01 00 35 04 06 00 00 C2 F8 44 25 35 B2 74 91 F6 B1 BC 35 80 [19:48:15]CheckFolder [19:48:15]dirname=/storage/ofd_packets [19:48:15]CheckFolder done [19:48:15]ProducePacketName [19:48:15]name=ofd_packets/00112413 [19:48:15]NVStorageSaveData ofd_packets/00112413 [19:48:15]File name is /storage/ofd_packets/00112413 [19:48:15]Write 298 bytes [19:48:15]NVStorageSaveData done [19:48:15]OFDSenderStorePacket done [19:48:15]KKMCreateOFDPacket done [19:48:15]NVStorageSaveData kkm_last_timestamp [19:48:15]File name is /storage/kkm_last_timestamp [19:48:15]Write 4 bytes [19:48:15]NVStorageSaveData done [19:48:15]ExternCall_PrintAddStr [19:48:15]wPrintStart [19:48:15]Write to MH i2c: 01 00 00 43 27 6A [19:48:15]Write i2c OK [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: 01 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: 01 07 00 [19:48:15]MH_I2C_Read... [19:48:15]Read from MH i2c: 01 07 00 43 27 00 00 00 00 00 FF 0F 7F [19:48:15]RasterBufferAndPrint [19:48:15]line Счет N : (1)48711 [19:48:15]line ИНН: 02508201610067 [19:48:15]line Контрольно-Кассовый Чек [19:48:15]line ПРОДАЖА [19:48:15]line ТРК (МРК, ГНК) : 51 [19:48:15]line Товар: 2710194210 [19:48:15]line ДТ-К-5 [19:48:15]line 5.530 * 72.40 [19:48:15]line = 400.37 [19:48:15]line НДС 12% НСП 1% [19:48:15]line > о реализуемом товаре [19:48:15]line ОКРУГЛЕНИЕ: -0.37 [19:48:15]line ИТОГО: 400.00 [19:48:15]line Внесено: 400.00 [19:48:15]line СДАЧА: 0.00 [19:48:15]line НСП 1% : 3.54 [19:48:15]line НДС 12% : 42.52 [19:48:15]line Наличными: 400.00 [19:48:15]line Безнал.: 0.00 [19:48:15]line Место: АЗС № 47 "Партнер Нефть" [19:48:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [19:48:15]line СНО: Общий режим [19:48:15]line Чек 312 14.04.2024 19:48 [19:48:15]line Смена: 357 ФФД: 1.0 [19:48:15]line ЗНМ: 0300000138 [19:48:15]line РНМ: 0000000000094237 [19:48:15]line Версия ККМ: 001 [19:48:15]line ФМ: 0000000000875019 [19:48:15]line ФД: 112413 [19:48:15]line ФПД: 837388870965 [19:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T194815&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112413&fm=837388870965&tin=02508201610067®Number=0000000000094237&sum=40000 [19:48:16]OFD Sender: Processing packet 112413 [packets to send 71, broken 70] [19:48:16]ProducePacketName [19:48:16]name=ofd_packets/00112413 [19:48:16]OFD Sender: To server: pG, [19:48:16]CommunicateWithHost lk.salyk.kg:30040 [19:48:16]ConnectInit lk.salyk.kg [19:48:16]written 0, free lines is 4095 [19:48:16]Connected sock=11 [19:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 B4 67 04 01 33 6B 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 9A 15 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 65 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 9C 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 38 01 00 00 F4 03 04 00 FF 32 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B7 01 00 35 04 06 00 00 C2 F8 44 25 35 B2 74 91 F6 B1 BC 35 80 [19:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A3 20 47 00 15 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1D B7 01 00 F4 03 04 00 8A DA 1B 66 B6 04 01 00 00 AD AF 73 92 C6 CA 0E 79 [19:48:16]CommunicateWithHost err = 0 [19:48:16]CheckOFDResponse [19:48:16]1017 (14) - 77093643461234 [19:48:16]1041 (16) - 0000000000875019 [19:48:16]1040 (4) - 112413 [19:48:16]1012 (4) - 14.04.2024 13:30 [19:48:16]1206 (1) - 0 [19:48:16]OFD Sender: Remove packet 112413 [19:48:16]ProducePacketName [19:48:16]name=ofd_packets/00112413 [19:48:16]NVStorageDeleteData [19:48:16]Write to MH i2c: 01 00 00 6E 27 95 [19:48:16]Write i2c OK [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: 01 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: 01 07 00 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: 01 07 00 6E 27 00 00 00 00 00 CF 0C 77 [19:48:16]RasterBufferAndPrint [19:48:16]line [19:48:16]line [19:48:16]line [19:48:16]line [19:48:16]line [19:48:16]written 0, free lines is 3282 [19:48:16]MH_Cut [19:48:16]Write to MH i2c: D1 01 00 75 27 01 6E [19:48:16]Write i2c OK [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: D1 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: D1 01 00 [19:48:16]MH_I2C_Read... [19:48:16]Read from MH i2c: D1 01 00 75 27 00 6D [19:48:16]Write to MH i2c: 01 00 00 76 27 9D [19:48:16]Write i2c OK [19:48:16]MH_I2C_Read... [19:48:16]OFD Sender: No OFD packet to send [19:48:17]*** Cut start [19:48:17]*** Partial cut [19:48:17]*** CUTSNS_PIN = 1 [19:48:17]*** CUTSNS_PIN = 0 [19:48:17]*** Brake cut motor [19:48:17]Read from MH i2c: 01 [19:48:17]MH_I2C_Read... [19:48:17]*** Stop cut motor [19:48:17]*** Cut end [19:48:17]Read from MH i2c: 01 07 00 [19:48:17]MH_I2C_Read... [19:48:17]Read from MH i2c: 01 07 00 76 27 00 00 00 00 00 FF 0F B2 [19:48:17]process_action close_receipt done [19:48:17]requested_data is exist [19:48:17]produce_requested_data [19:48:17]requested_item fm.sn is exist - process it [19:48:17]wFMCommunicate request_size=4 [19:48:17]MH_SAM_APDU [19:48:17]CAPDU: 80 11 00 00 [19:48:17]Write to MH i2c: E2 08 00 77 27 80 11 00 00 00 00 00 00 18 [19:48:17]Write i2c OK [19:48:17]MH_I2C_Read... [19:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:17]Read from MH i2c: E2 [19:48:17]MH_I2C_Read... [19:48:17]Read from MH i2c: E2 17 00 [19:48:17]MH_I2C_Read... [19:48:17]Read from MH i2c: E2 17 00 77 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 69 [19:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [19:48:17]wFMCommunicate OK [19:48:17]requested_item fd.num is exist - process it [19:48:17]SAM_PROTO_GetFieldsCounters [19:48:17]wFMCommunicate request_size=4 [19:48:17]MH_SAM_APDU [19:48:17]CAPDU: 80 13 00 00 [19:48:17]Write to MH i2c: E2 08 00 78 27 80 13 00 00 00 00 00 00 1B [19:48:17]Write i2c OK [19:48:17]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 62 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 62 00 78 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [19:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:18]wFMCommunicate OK [19:48:18]SAM_PROTO_GetFieldsCounters done [19:48:18]requested_item shift.num is exist - process it [19:48:18]requested_item shift.opened is exist - process it [19:48:18]req_shift_opened [19:48:18]FM_GetShiftState [19:48:18]SAM_PROTO_GetShiftState [19:48:18]wFMCommunicate request_size=4 [19:48:18]MH_SAM_APDU [19:48:18]CAPDU: 80 13 01 00 [19:48:18]Write to MH i2c: E2 08 00 79 27 80 13 01 00 00 00 00 00 1D [19:48:18]Write i2c OK [19:48:18]MH_I2C_Read... [19:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:18]Read from MH i2c: E2 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 0E 00 [19:48:18]MH_I2C_Read... [19:48:18]Read from MH i2c: E2 0E 00 79 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B5 [19:48:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [19:48:18]wFMCommunicate OK [19:48:18]SAM_PROTO_GetShiftState done [19:48:18]FM_GetShiftState done [19:48:18]req_shift_opened done [19:48:18]requested_item shift.open_date is exist - process it [19:48:18]req_shift_open_date [19:48:18]req_shift_open_date done [19:48:18]produce_requested_data done [19:48:18]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112413,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [19:48:18]process_action_free close_receipt [19:48:18]json_value_free [19:48:18]json_value_free done [19:48:18]process_json_proto returns [19:48:18]Send response to host [19:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112413,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [19:48:18]free response buf [19:48:18]execute_script done [19:48:18]execute_script returns [19:48:18]free content buf [19:48:18]Sock 9.Close socket [19:48:18]Sock 9.Thread stoped [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:37]OFD Sender: No OFD packet to send [19:48:42]OFD Sender: No OFD packet to send [19:48:47]OFD Sender: No OFD packet to send [19:48:52]OFD Sender: No OFD packet to send [19:48:57]OFD Sender: No OFD packet to send [19:49:02]OFD Sender: No OFD packet to send [19:49:07]OFD Sender: No OFD packet to send [19:49:12]OFD Sender: No OFD packet to send [19:49:17]OFD Sender: No OFD packet to send [19:49:22]OFD Sender: No OFD packet to send [19:49:27]OFD Sender: No OFD packet to send [19:49:32]OFD Sender: No OFD packet to send [19:49:37]OFD Sender: No OFD packet to send [19:49:42]OFD Sender: No OFD packet to send [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:37]OFD Sender: No OFD packet to send [19:50:42]OFD Sender: No OFD packet to send [19:50:47]OFD Sender: No OFD packet to send [19:50:52]OFD Sender: No OFD packet to send [19:50:57]OFD Sender: No OFD packet to send [19:51:02]OFD Sender: No OFD packet to send [19:51:07]OFD Sender: No OFD packet to send [19:51:12]OFD Sender: No OFD packet to send [19:51:17]OFD Sender: No OFD packet to send [19:51:22]OFD Sender: No OFD packet to send [19:51:27]OFD Sender: No OFD packet to send [19:51:32]OFD Sender: No OFD packet to send [19:51:37]OFD Sender: No OFD packet to send [19:51:42]OFD Sender: No OFD packet to send [19:51:47]OFD Sender: No OFD packet to send [19:51:52]OFD Sender: No OFD packet to send [19:51:57]OFD Sender: No OFD packet to send [19:52:02]OFD Sender: No OFD packet to send [19:52:07]OFD Sender: No OFD packet to send [19:52:12]OFD Sender: No OFD packet to send [19:52:17]OFD Sender: No OFD packet to send [19:52:22]OFD Sender: No OFD packet to send [19:52:27]OFD Sender: No OFD packet to send [19:52:32]OFD Sender: No OFD packet to send [19:52:37]OFD Sender: No OFD packet to send [19:52:42]OFD Sender: No OFD packet to send [19:52:47]OFD Sender: No OFD packet to send [19:52:52]OFD Sender: No OFD packet to send [19:52:57]OFD Sender: No OFD packet to send [19:53:02]OFD Sender: No OFD packet to send [19:53:07]OFD Sender: No OFD packet to send [19:53:12]OFD Sender: No OFD packet to send [19:53:17]OFD Sender: No OFD packet to send [19:53:22]OFD Sender: No OFD packet to send [19:53:27]OFD Sender: No OFD packet to send [19:53:32]OFD Sender: No OFD packet to send [19:53:37]OFD Sender: No OFD packet to send [19:53:42]OFD Sender: No OFD packet to send [19:53:47]OFD Sender: No OFD packet to send [19:53:52]OFD Sender: No OFD packet to send [19:53:57]OFD Sender: No OFD packet to send [19:54:02]OFD Sender: No OFD packet to send [19:54:07]OFD Sender: No OFD packet to send [19:54:12]OFD Sender: No OFD packet to send [19:54:17]OFD Sender: No OFD packet to send [19:54:22]OFD Sender: No OFD packet to send [19:54:27]OFD Sender: No OFD packet to send [19:54:32]OFD Sender: No OFD packet to send [19:54:37]OFD Sender: No OFD packet to send [19:54:42]OFD Sender: No OFD packet to send [19:54:47]OFD Sender: No OFD packet to send [19:54:52]OFD Sender: No OFD packet to send [19:54:57]OFD Sender: No OFD packet to send [19:55:02]OFD Sender: No OFD packet to send [19:55:07]OFD Sender: No OFD packet to send [19:55:12]OFD Sender: No OFD packet to send [19:55:17]OFD Sender: No OFD packet to send [19:55:22]OFD Sender: No OFD packet to send [19:55:27]OFD Sender: No OFD packet to send [19:55:32]OFD Sender: No OFD packet to send [19:55:37]OFD Sender: No OFD packet to send [19:55:42]OFD Sender: No OFD packet to send [19:55:47]OFD Sender: No OFD packet to send [19:55:52]OFD Sender: No OFD packet to send [19:55:57]OFD Sender: No OFD packet to send [19:56:02]OFD Sender: No OFD packet to send [19:56:07]OFD Sender: No OFD packet to send [19:56:12]OFD Sender: No OFD packet to send [19:56:17]OFD Sender: No OFD packet to send [19:56:22]OFD Sender: No OFD packet to send [19:56:27]OFD Sender: No OFD packet to send [19:56:32]OFD Sender: No OFD packet to send [19:56:37]OFD Sender: No OFD packet to send [19:56:42]OFD Sender: No OFD packet to send [19:56:47]OFD Sender: No OFD packet to send [19:56:52]OFD Sender: No OFD packet to send [19:56:57]OFD Sender: No OFD packet to send [19:57:02]OFD Sender: No OFD packet to send [19:57:07]OFD Sender: No OFD packet to send [19:57:12]OFD Sender: No OFD packet to send [19:57:17]OFD Sender: No OFD packet to send [19:57:22]OFD Sender: No OFD packet to send [19:57:27]OFD Sender: No OFD packet to send [19:57:32]OFD Sender: No OFD packet to send [19:57:37]OFD Sender: No OFD packet to send [19:57:42]OFD Sender: No OFD packet to send [19:57:47]OFD Sender: No OFD packet to send [19:57:52]OFD Sender: No OFD packet to send [19:57:57]OFD Sender: No OFD packet to send [19:58:02]OFD Sender: No OFD packet to send [19:58:07]OFD Sender: No OFD packet to send [19:58:12]OFD Sender: No OFD packet to send [19:58:17]OFD Sender: No OFD packet to send [19:58:22]OFD Sender: No OFD packet to send [19:58:27]OFD Sender: No OFD packet to send [19:58:32]OFD Sender: No OFD packet to send [19:58:37]OFD Sender: No OFD packet to send [19:58:42]OFD Sender: No OFD packet to send [19:58:47]OFD Sender: No OFD packet to send [19:58:52]OFD Sender: No OFD packet to send [19:58:57]OFD Sender: No OFD packet to send [19:59:02]OFD Sender: No OFD packet to send [19:59:07]OFD Sender: No OFD packet to send [19:59:12]OFD Sender: No OFD packet to send [19:59:17]OFD Sender: No OFD packet to send [19:59:22]OFD Sender: No OFD packet to send [19:59:27]OFD Sender: No OFD packet to send [19:59:32]OFD Sender: No OFD packet to send [19:59:37]OFD Sender: No OFD packet to send [19:59:42]OFD Sender: No OFD packet to send [19:59:47]OFD Sender: No OFD packet to send [19:59:52]OFD Sender: No OFD packet to send [19:59:57]OFD Sender: No OFD packet to send [20:00:02]OFD Sender: No OFD packet to send [20:00:07]OFD Sender: No OFD packet to send [20:00:12]OFD Sender: No OFD packet to send [20:00:17]OFD Sender: No OFD packet to send [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:32]OFD Sender: No OFD packet to send [20:00:37]OFD Sender: No OFD packet to send [20:00:42]OFD Sender: No OFD packet to send [20:00:47]OFD Sender: No OFD packet to send [20:00:52]OFD Sender: No OFD packet to send [20:00:53]accept exits with 8 [20:00:53]New connection [20:00:53]New thread 3066826084 created [20:00:53]Thread 3066682724 joined [20:00:53]Waiting for new connection... [20:00:53] Sock 8.Parse request [20:00:53]Sock 8.Check first char [20:00:53]Sock 8.First char is OK [20:00:53]request: POST /json_proto HTTP/1.0 [20:00:53]Method: POST [20:00:53]URL: /json_proto [20:00:53]Method is POST - this is cgi request [20:00:53]url: /json_proto [20:00:53]query_string will be loaded in cgi processing [20:00:53]execute_cgi json_proto POST (null) [20:00:53]execute_cgi path=json_proto method=POST [20:00:53]POST find Content-Length [20:00:53]Host: 172.17.96.197:8080 [20:00:53]Content-Length: 676 [20:00:53]Content-Type: application/json [20:00:53] [20:00:53]POST finish read [20:00:53]Found Content-Length = 676 [20:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48712", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [20:00:53]execute_script... [20:00: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)48712", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [20:00:53]POST & json_proto [20:00:53]process_json_proto [20:00:53]json parsed OK: [20:00:53]protocol is kg_v1.0 [20:00:53]action value=close_receipt [20:00:53]process_action close_receipt [20:00:53]cmd_close_receipt [20:00:53]MH_GetDate [20:00:53]Write to MH i2c: F0 00 00 7A 27 90 [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 09 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: F0 09 00 7A 27 00 F6 35 1C 66 E0 85 7F 64 8E [20:00:53]GetLastDocTimeStamp 1713124095 [20:00:53]current date 1713124854 [20:00:53]FM_GetShiftState [20:00:53]SAM_PROTO_GetShiftState [20:00:53]wFMCommunicate request_size=4 [20:00:53]MH_SAM_APDU [20:00:53]CAPDU: 80 13 01 00 [20:00:53]Write to MH i2c: E2 08 00 7B 27 80 13 01 00 00 00 00 00 1F [20:00:53]Write i2c OK [20:00:53]MH_I2C_Read... [20:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:53]Read from MH i2c: E2 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0E 00 [20:00:53]MH_I2C_Read... [20:00:53]Read from MH i2c: E2 0E 00 7B 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B7 [20:00:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:00:53]wFMCommunicate OK [20:00:53]SAM_PROTO_GetShiftState done [20:00:53]FM_GetShiftState done [20:00:53]opened in 1713054696 [20:00:53]opened+sec_in_day 1713141096 [20:00:53]quantity*price = 20061 [20:00:53]sum+1 = 20063 [20:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 313 14.04.2024 20:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112414 ФПД: 153362788178522 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200054&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112414&fm=153362788178522&tin=02508201610067®Number=0000000000094237&sum=20000 [20:00:54]StoreToDocumentArchive [20:00:54]shift 357 fd 112414 [20:00:54]save to /storage/0357/doc_00112414 [20:00:54]save last doc name /storage/0357/doc_00112414 to /storage/kkm_last_doc_name [20:00:54]save OK [20:00:54]Clear old archive folders... [20:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:00:54]tlvbuf is 00138BA0 [20:00:54]SAM_PROTO_ClearQueue [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 09 00 00 [20:00:54]Write to MH i2c: E2 08 00 88 27 80 09 00 00 00 00 00 00 21 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 88 27 00 90 00 23 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]SAM_PROTO_ClearQueue done [20:00:54]KKMCreateOFDPacket [20:00:54]OFDProtocolAddRootSTLVToBuf [20:00:54]FM_MakeSignedData [20:00:54]FM_MakeSignedData [20:00:54]SAM_PROTO_SignData [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 0D 01 02 [20:00:54]Write to MH i2c: E2 08 00 89 27 80 0D 01 02 00 00 00 00 29 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 89 27 00 90 00 24 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]wFMCommunicate request_size=255 [20:00:54]MH_SAM_APDU [20:00: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 39 01 00 00 F4 03 04 00 F6 35 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B7 01 00 35 04 06 00 8B [20:00:54]Write to MH i2c: E2 02 01 8A 27 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 39 01 00 00 F4 03 04 00 F6 35 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B7 01 00 35 04 06 00 8B 00 00 E5 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 8A 27 00 90 00 25 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]wFMCommunicate request_size=10 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 0D 02 02 05 7B 8E 82 DA 5A [20:00:54]Write to MH i2c: E2 0D 00 8B 27 80 0D 02 02 05 00 7B 8E 82 DA 5A 00 00 F5 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 03 00 8B 27 00 90 00 26 [20:00:54]RAPDU: 90 00 [20:00:54]wFMCommunicate OK [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 0D 03 02 [20:00:54]Write to MH i2c: E2 08 00 8C 27 80 0D 03 02 00 00 00 00 2E [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 0B 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 0B 00 8C 27 00 4B 81 16 EC 11 23 B7 BC 90 00 A4 [20:00:54]RAPDU: 4B 81 16 EC 11 23 B7 BC 90 00 [20:00:54]wFMCommunicate OK [20:00:54]SAM_PROTO_SignData done [20:00:54]FM_MakeSignedData done [20:00:54]CreateOFDProtocolMessage [20:00:54]wFMCommunicate request_size=4 [20:00:54]MH_SAM_APDU [20:00:54]CAPDU: 80 11 00 00 [20:00:54]Write to MH i2c: E2 08 00 8D 27 80 11 00 00 00 00 00 00 2E [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:54]Read from MH i2c: E2 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 17 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: E2 17 00 8D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7F [20:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:00:54]wFMCommunicate OK [20:00:54]CreateOFDProtocolMessage done [20:00:54]OFDSenderStorePacket 112414 [20:00:54]StoreOFDPacket docnum=112414 [20:00:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EC 88 07 01 64 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 39 01 00 00 F4 03 04 00 F6 35 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B7 01 00 35 04 06 00 8B 7B 8E 82 DA 5A 4B 81 16 EC 11 23 B7 BC [20:00:54]CheckFolder [20:00:54]dirname=/storage/ofd_packets [20:00:54]CheckFolder done [20:00:54]ProducePacketName [20:00:54]name=ofd_packets/00112414 [20:00:54]NVStorageSaveData ofd_packets/00112414 [20:00:54]File name is /storage/ofd_packets/00112414 [20:00:54]Write 301 bytes [20:00:54]NVStorageSaveData done [20:00:54]OFDSenderStorePacket done [20:00:54]KKMCreateOFDPacket done [20:00:54]NVStorageSaveData kkm_last_timestamp [20:00:54]File name is /storage/kkm_last_timestamp [20:00:54]Write 4 bytes [20:00:54]NVStorageSaveData done [20:00:54]ExternCall_PrintAddStr [20:00:54]wPrintStart [20:00:54]Write to MH i2c: 01 00 00 8E 27 B5 [20:00:54]Write i2c OK [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 07 00 [20:00:54]MH_I2C_Read... [20:00:54]Read from MH i2c: 01 07 00 8E 27 00 00 00 00 00 FF 0F CA [20:00:54]RasterBufferAndPrint [20:00:54]line Счет N : (1)48712 [20:00:54]line ИНН: 02508201610067 [20:00:54]line Контрольно-Кассовый Чек [20:00:54]line ПРОДАЖА [20:00:54]line ТРК (МРК, ГНК) : 42 [20:00:54]line Товар: 2710124130 [20:00:54]line Аи-92-К-5 [20:00:54]line 3.120 * 64.30 [20:00:54]line = 200.62 [20:00:54]line НДС 12% НСП 1% [20:00:54]line > о реализуемом товаре [20:00:54]line ОКРУГЛЕНИЕ: -0.62 [20:00:54]line ИТОГО: 200.00 [20:00:54]line Внесено: 200.00 [20:00:54]line СДАЧА: 0.00 [20:00:54]line НСП 1% : 1.77 [20:00:54]line НДС 12% : 21.30 [20:00:54]line Наличными: 200.00 [20:00:54]line Безнал.: 0.00 [20:00:54]line Место: АЗС № 47 "Партнер Нефть" [20:00:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:00:54]line СНО: Общий режим [20:00:54]line Чек 313 14.04.2024 20:00 [20:00:54]line Смена: 357 ФФД: 1.0 [20:00:54]line ЗНМ: 0300000138 [20:00:54]line РНМ: 0000000000094237 [20:00:54]line Версия ККМ: 001 [20:00:54]line ФМ: 0000000000875019 [20:00:54]line ФД: 112414 [20:00:54]line ФПД: 153362788178522 [20:00:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200054&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112414&fm=153362788178522&tin=02508201610067®Number=0000000000094237&sum=20000 [20:00:55]written 0, free lines is 4095 [20:00:55]OFD Sender: Processing packet 112414 [packets to send 71, broken 70] [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00112414 [20:00:55]OFD Sender: To server: pG, [20:00:55]CommunicateWithHost lk.salyk.kg:30040 [20:00:55]ConnectInit lk.salyk.kg [20:00:55]Connected sock=10 [20:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EC 88 07 01 64 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 39 01 00 00 F4 03 04 00 F6 35 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B7 01 00 35 04 06 00 8B 7B 8E 82 DA 5A 4B 81 16 EC 11 23 B7 BC [20:00:55]Write to MH i2c: 01 00 00 B9 27 E0 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: 01 07 00 B9 27 00 00 00 00 00 CC 0C BF [20:00:55]RasterBufferAndPrint [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]line [20:00:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C6 F2 47 00 31 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1E B7 01 00 F4 03 04 00 81 DD 1B 66 B6 04 01 00 00 D4 54 D6 32 8E A6 AC 7E [20:00:55]CommunicateWithHost err = 0 [20:00:55]CheckOFDResponse [20:00:55]1017 (14) - 77093643461234 [20:00:55]1041 (16) - 0000000000875019 [20:00:55]1040 (4) - 112414 [20:00:55]1012 (4) - 14.04.2024 13:43 [20:00:55]1206 (1) - 0 [20:00:55]OFD Sender: Remove packet 112414 [20:00:55]ProducePacketName [20:00:55]name=ofd_packets/00112414 [20:00:55]NVStorageDeleteData [20:00:55]written 0, free lines is 3293 [20:00:55]MH_Cut [20:00:55]Write to MH i2c: D1 01 00 C0 27 01 B9 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 01 00 [20:00:55]MH_I2C_Read... [20:00:55]Read from MH i2c: D1 01 00 C0 27 00 B8 [20:00:55]Write to MH i2c: 01 00 00 C1 27 E8 [20:00:55]Write i2c OK [20:00:55]MH_I2C_Read... [20:00:56]OFD Sender: No OFD packet to send [20:00:56]*** Cut start [20:00:56]*** Partial cut [20:00:56]*** CUTSNS_PIN = 1 [20:00:56]*** CUTSNS_PIN = 0 [20:00:56]*** Brake cut motor [20:00:57]Read from MH i2c: 01 [20:00:57]MH_I2C_Read... [20:00:57]*** Stop cut motor [20:00:57]*** Cut end [20:00:57]Read from MH i2c: 01 07 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: 01 07 00 C1 27 00 00 00 00 00 FF 0F FD [20:00:57]process_action close_receipt done [20:00:57]requested_data is exist [20:00:57]produce_requested_data [20:00:57]requested_item fm.sn is exist - process it [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 11 00 00 [20:00:57]Write to MH i2c: E2 08 00 C2 27 80 11 00 00 00 00 00 00 63 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 17 00 C2 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B4 [20:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:00:57]wFMCommunicate OK [20:00:57]requested_item fd.num is exist - process it [20:00:57]SAM_PROTO_GetFieldsCounters [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 13 00 00 [20:00:57]Write to MH i2c: E2 08 00 C3 27 80 13 00 00 00 00 00 00 66 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 62 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 62 00 C3 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [20:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_GetFieldsCounters done [20:00:57]requested_item shift.num is exist - process it [20:00:57]requested_item shift.opened is exist - process it [20:00:57]req_shift_opened [20:00:57]FM_GetShiftState [20:00:57]SAM_PROTO_GetShiftState [20:00:57]wFMCommunicate request_size=4 [20:00:57]MH_SAM_APDU [20:00:57]CAPDU: 80 13 01 00 [20:00:57]Write to MH i2c: E2 08 00 C4 27 80 13 01 00 00 00 00 00 68 [20:00:57]Write i2c OK [20:00:57]MH_I2C_Read... [20:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:57]Read from MH i2c: E2 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0E 00 [20:00:57]MH_I2C_Read... [20:00:57]Read from MH i2c: E2 0E 00 C4 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 00 [20:00:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:00:57]wFMCommunicate OK [20:00:57]SAM_PROTO_GetShiftState done [20:00:57]FM_GetShiftState done [20:00:57]req_shift_opened done [20:00:57]requested_item shift.open_date is exist - process it [20:00:57]req_shift_open_date [20:00:57]req_shift_open_date done [20:00:57]produce_requested_data done [20:00:57]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112414,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:00:57]process_action_free close_receipt [20:00:57]json_value_free [20:00:57]json_value_free done [20:00:57]process_json_proto returns [20:00:57]Send response to host [20:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112414,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:00:57]free response buf [20:00:57]execute_script done [20:00:57]execute_script returns [20:00:57]free content buf [20:00:57]Sock 8.Close socket [20:00:57]Sock 8.Thread stoped [20:01:01]OFD Sender: No OFD packet to send [20:01:06]OFD Sender: No OFD packet to send [20:01:11]OFD Sender: No OFD packet to send [20:01:16]OFD Sender: No OFD packet to send [20:01:21]OFD Sender: No OFD packet to send [20:01:26]OFD Sender: No OFD packet to send [20:01:31]OFD Sender: No OFD packet to send [20:01:36]OFD Sender: No OFD packet to send [20:01:41]OFD Sender: No OFD packet to send [20:01:46]OFD Sender: No OFD packet to send [20:01:51]OFD Sender: No OFD packet to send [20:01:56]OFD Sender: No OFD packet to send [20:02:01]OFD Sender: No OFD packet to send [20:02:06]OFD Sender: No OFD packet to send [20:02:11]OFD Sender: No OFD packet to send [20:02:16]OFD Sender: No OFD packet to send [20:02:21]OFD Sender: No OFD packet to send [20:02:26]OFD Sender: No OFD packet to send [20:02:31]OFD Sender: No OFD packet to send [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:02]accept exits with 9 [20:07:02]New connection [20:07:02]New thread 3066682724 created [20:07:02]Thread 3066826084 joined [20:07:02]Waiting for new connection... [20:07:02] Sock 9.Parse request [20:07:02]Sock 9.Check first char [20:07:02]Sock 9.First char is OK [20:07:02]request: POST /json_proto HTTP/1.0 [20:07:02]Method: POST [20:07:02]URL: /json_proto [20:07:02]Method is POST - this is cgi request [20:07:02]url: /json_proto [20:07:02]query_string will be loaded in cgi processing [20:07:02]execute_cgi json_proto POST (null) [20:07:02]execute_cgi path=json_proto method=POST [20:07:02]POST find Content-Length [20:07:02]Host: 172.17.96.197:8080 [20:07:02]Content-Length: 676 [20:07:02]Content-Type: application/json [20:07:02] [20:07:02]POST finish read [20:07:02]Found Content-Length = 676 [20:07:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [20:07:02]execute_script... [20:07: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)48713", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [20:07:02]POST & json_proto [20:07:02]process_json_proto [20:07:02]json parsed OK: [20:07:02]protocol is kg_v1.0 [20:07:02]action value=close_receipt [20:07:02]process_action close_receipt [20:07:02]cmd_close_receipt [20:07:02]MH_GetDate [20:07:02]Write to MH i2c: F0 00 00 C5 27 DB [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: F0 09 00 C5 27 00 68 37 1C 66 E0 85 7F 64 4D [20:07:02]GetLastDocTimeStamp 1713124854 [20:07:02]current date 1713125224 [20:07:02]FM_GetShiftState [20:07:02]SAM_PROTO_GetShiftState [20:07:02]wFMCommunicate request_size=4 [20:07:02]MH_SAM_APDU [20:07:02]CAPDU: 80 13 01 00 [20:07:02]Write to MH i2c: E2 08 00 C6 27 80 13 01 00 00 00 00 00 6A [20:07:02]Write i2c OK [20:07:02]MH_I2C_Read... [20:07:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:02]Read from MH i2c: E2 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 [20:07:02]MH_I2C_Read... [20:07:02]Read from MH i2c: E2 0E 00 C6 27 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 02 [20:07:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:07:02]wFMCommunicate OK [20:07:02]SAM_PROTO_GetShiftState done [20:07:02]FM_GetShiftState done [20:07:02]opened in 1713054696 [20:07:02]opened+sec_in_day 1713141096 [20:07:02]quantity*price = 40058 [20:07:02]sum+1 = 40060 [20:07:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 314 14.04.2024 20:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112415 ФПД: 154022204646963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200704&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112415&fm=154022204646963&tin=02508201610067®Number=0000000000094237&sum=40000 [20:07:03]StoreToDocumentArchive [20:07:03]shift 357 fd 112415 [20:07:03]save to /storage/0357/doc_00112415 [20:07:03]save last doc name /storage/0357/doc_00112415 to /storage/kkm_last_doc_name [20:07:03]save OK [20:07:03]Clear old archive folders... [20:07:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:07:03]tlvbuf is B6F363D0 [20:07:03]SAM_PROTO_ClearQueue [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 09 00 00 [20:07:03]Write to MH i2c: E2 08 00 D3 27 80 09 00 00 00 00 00 00 6C [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 D3 27 00 90 00 6E [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]SAM_PROTO_ClearQueue done [20:07:03]KKMCreateOFDPacket [20:07:03]OFDProtocolAddRootSTLVToBuf [20:07:03]FM_MakeSignedData [20:07:03]FM_MakeSignedData [20:07:03]SAM_PROTO_SignData [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 01 02 [20:07:03]Write to MH i2c: E2 08 00 D4 27 80 0D 01 02 00 00 00 00 74 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 D4 27 00 90 00 6F [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=255 [20:07:03]MH_SAM_APDU [20:07: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 3A 01 00 00 F4 03 04 00 68 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B7 01 00 35 04 06 00 8C [20:07:03]Write to MH i2c: E2 02 01 D5 27 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 3A 01 00 00 F4 03 04 00 68 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B7 01 00 35 04 06 00 8C 00 00 26 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 D5 27 00 90 00 70 [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=10 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 02 02 05 15 16 CB A6 33 [20:07:03]Write to MH i2c: E2 0D 00 D6 27 80 0D 02 02 05 00 15 16 CB A6 33 00 00 50 [20:07:03]Write i2c OK [20:07:03]MH_I2C_Read... [20:07:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:03]Read from MH i2c: E2 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 [20:07:03]MH_I2C_Read... [20:07:03]Read from MH i2c: E2 03 00 D6 27 00 90 00 71 [20:07:03]RAPDU: 90 00 [20:07:03]wFMCommunicate OK [20:07:03]wFMCommunicate request_size=4 [20:07:03]MH_SAM_APDU [20:07:03]CAPDU: 80 0D 03 02 [20:07:03]Write to MH i2c: E2 08 00 D7 27 80 0D 03 02 00 00 00 00 79 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 0B 00 D7 27 00 6B 05 FB 3E B7 91 48 18 90 00 CB [20:07:04]RAPDU: 6B 05 FB 3E B7 91 48 18 90 00 [20:07:04]wFMCommunicate OK [20:07:04]SAM_PROTO_SignData done [20:07:04]FM_MakeSignedData done [20:07:04]CreateOFDProtocolMessage [20:07:04]wFMCommunicate request_size=4 [20:07:04]MH_SAM_APDU [20:07:04]CAPDU: 80 11 00 00 [20:07:04]Write to MH i2c: E2 08 00 D8 27 80 11 00 00 00 00 00 00 79 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:04]Read from MH i2c: E2 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: E2 17 00 D8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CA [20:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:07:04]wFMCommunicate OK [20:07:04]CreateOFDProtocolMessage done [20:07:04]OFDSenderStorePacket 112415 [20:07:04]StoreOFDPacket docnum=112415 [20:07:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 12 07 01 23 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 3A 01 00 00 F4 03 04 00 68 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B7 01 00 35 04 06 00 8C 15 16 CB A6 33 6B 05 FB 3E B7 91 48 18 [20:07:04]CheckFolder [20:07:04]dirname=/storage/ofd_packets [20:07:04]CheckFolder done [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00112415 [20:07:04]NVStorageSaveData ofd_packets/00112415 [20:07:04]File name is /storage/ofd_packets/00112415 [20:07:04]Write 301 bytes [20:07:04]NVStorageSaveData done [20:07:04]OFDSenderStorePacket done [20:07:04]KKMCreateOFDPacket done [20:07:04]NVStorageSaveData kkm_last_timestamp [20:07:04]File name is /storage/kkm_last_timestamp [20:07:04]Write 4 bytes [20:07:04]NVStorageSaveData done [20:07:04]OFD Sender: Processing packet 112415 [packets to send 71, broken 70] [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00112415 [20:07:04]OFD Sender: To server: pG, [20:07:04]CommunicateWithHost lk.salyk.kg:30040 [20:07:04]ConnectInit lk.salyk.kg [20:07:04]ExternCall_PrintAddStr [20:07:04]wPrintStart [20:07:04]Write to MH i2c: 01 00 00 D9 27 00 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 D9 27 00 00 00 00 00 FF 0F 15 [20:07:04]RasterBufferAndPrint [20:07:04]line Счет N : (1)48713 [20:07:04]line ИНН: 02508201610067 [20:07:04]line Контрольно-Кассовый Чек [20:07:04]line ПРОДАЖА [20:07:04]line ТРК (МРК, ГНК) : 21 [20:07:04]line Товар: 2710124130 [20:07:04]line Аи-92-К-5 [20:07:04]line 6.230 * 64.30 [20:07:04]line = 400.59 [20:07:04]line НДС 12% НСП 1% [20:07:04]line > о реализуемом товаре [20:07:04]line ОКРУГЛЕНИЕ: -0.59 [20:07:04]line ИТОГО: 400.00 [20:07:04]line Внесено: 400.00 [20:07:04]line СДАЧА: 0.00 [20:07:04]line НСП 1% : 3.54 [20:07:04]line НДС 12% : 42.54 [20:07:04]line Наличными: 400.00 [20:07:04]line Безнал.: 0.00 [20:07:04]line Место: АЗС № 47 "Партнер Нефть" [20:07:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:07:04]line СНО: Общий режим [20:07:04]line Чек 314 14.04.2024 20:07 [20:07:04]line Смена: 357 ФФД: 1.0 [20:07:04]line ЗНМ: 0300000138 [20:07:04]line РНМ: 0000000000094237 [20:07:04]line Версия ККМ: 001 [20:07:04]line ФМ: 0000000000875019 [20:07:04]line ФД: 112415 [20:07:04]line ФПД: 154022204646963 [20:07:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200704&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112415&fm=154022204646963&tin=02508201610067®Number=0000000000094237&sum=40000 [20:07:04]Connected sock=11 [20:07:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 34 12 07 01 23 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 3A 01 00 00 F4 03 04 00 68 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 1F B7 01 00 35 04 06 00 8C 15 16 CB A6 33 6B 05 FB 3E B7 91 48 18 [20:07:04]written 0, free lines is 4095 [20:07:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B3 4D 47 00 51 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 38 37 35 30 31 39 10 04 04 00 1F B7 01 00 F4 03 04 00 F2 DE 1B 66 B6 04 01 00 00 8E FD 48 D1 E5 25 FA 94 [20:07:04]CommunicateWithHost err = 0 [20:07:04]CheckOFDResponse [20:07:04]1017 (14) - 77093643461234 [20:07:04]1041 (16) - 0000000000875019 [20:07:04]1040 (4) - 112415 [20:07:04]1012 (4) - 14.04.2024 13:49 [20:07:04]1206 (1) - 0 [20:07:04]OFD Sender: Remove packet 112415 [20:07:04]ProducePacketName [20:07:04]name=ofd_packets/00112415 [20:07:04]NVStorageDeleteData [20:07:04]Write to MH i2c: 01 00 00 04 28 2C [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: 01 07 00 04 28 00 00 00 00 00 D4 0C 13 [20:07:04]RasterBufferAndPrint [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]line [20:07:04]written 0, free lines is 3292 [20:07:04]MH_Cut [20:07:04]Write to MH i2c: D1 01 00 0B 28 01 05 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 01 00 [20:07:04]MH_I2C_Read... [20:07:04]Read from MH i2c: D1 01 00 0B 28 00 04 [20:07:04]Write to MH i2c: 01 00 00 0C 28 34 [20:07:04]Write i2c OK [20:07:04]MH_I2C_Read... [20:07:05]OFD Sender: No OFD packet to send [20:07:05]*** Cut start [20:07:05]*** Partial cut [20:07:05]*** CUTSNS_PIN = 1 [20:07:05]*** CUTSNS_PIN = 0 [20:07:05]*** Brake cut motor [20:07:06]Read from MH i2c: 01 [20:07:06]MH_I2C_Read... [20:07:06]*** Stop cut motor [20:07:06]*** Cut end [20:07:06]Read from MH i2c: 01 07 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: 01 07 00 0C 28 00 00 00 00 00 FF 0F 49 [20:07:06]process_action close_receipt done [20:07:06]requested_data is exist [20:07:06]produce_requested_data [20:07:06]requested_item fm.sn is exist - process it [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 11 00 00 [20:07:06]Write to MH i2c: E2 08 00 0D 28 80 11 00 00 00 00 00 00 AF [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 17 00 0D 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 00 [20:07:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:07:06]wFMCommunicate OK [20:07:06]requested_item fd.num is exist - process it [20:07:06]SAM_PROTO_GetFieldsCounters [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 13 00 00 [20:07:06]Write to MH i2c: E2 08 00 0E 28 80 13 00 00 00 00 00 00 B2 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 62 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 62 00 0E 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [20:07:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 1F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:06]wFMCommunicate OK [20:07:06]SAM_PROTO_GetFieldsCounters done [20:07:06]requested_item shift.num is exist - process it [20:07:06]requested_item shift.opened is exist - process it [20:07:06]req_shift_opened [20:07:06]FM_GetShiftState [20:07:06]SAM_PROTO_GetShiftState [20:07:06]wFMCommunicate request_size=4 [20:07:06]MH_SAM_APDU [20:07:06]CAPDU: 80 13 01 00 [20:07:06]Write to MH i2c: E2 08 00 0F 28 80 13 01 00 00 00 00 00 B4 [20:07:06]Write i2c OK [20:07:06]MH_I2C_Read... [20:07:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:06]Read from MH i2c: E2 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 0E 00 [20:07:06]MH_I2C_Read... [20:07:06]Read from MH i2c: E2 0E 00 0F 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4C [20:07:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:07:06]wFMCommunicate OK [20:07:06]SAM_PROTO_GetShiftState done [20:07:06]FM_GetShiftState done [20:07:06]req_shift_opened done [20:07:06]requested_item shift.open_date is exist - process it [20:07:06]req_shift_open_date [20:07:06]req_shift_open_date done [20:07:06]produce_requested_data done [20:07:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112415,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:07:06]process_action_free close_receipt [20:07:06]json_value_free [20:07:06]json_value_free done [20:07:06]process_json_proto returns [20:07:06]Send response to host [20:07:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112415,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:07:06]free response buf [20:07:06]execute_script done [20:07:06]execute_script returns [20:07:06]free content buf [20:07:06]Sock 9.Close socket [20:07:06]Sock 9.Thread stoped [20:07:10]OFD Sender: No OFD packet to send [20:07:15]OFD Sender: No OFD packet to send [20:07:20]OFD Sender: No OFD packet to send [20:07:25]OFD Sender: No OFD packet to send [20:07:30]OFD Sender: No OFD packet to send [20:07:35]OFD Sender: No OFD packet to send [20:07:40]OFD Sender: No OFD packet to send [20:07:45]OFD Sender: No OFD packet to send [20:07:50]accept exits with 8 [20:07:50]New connection [20:07:50]New thread 3066826084 created [20:07:50]Thread 3066682724 joined [20:07:50]Waiting for new connection... [20:07:50] Sock 8.Parse request [20:07:50]Sock 8.Check first char [20:07:50]Sock 8.First char is OK [20:07:50]request: POST /json_proto HTTP/1.0 [20:07:50]Method: POST [20:07:50]URL: /json_proto [20:07:50]Method is POST - this is cgi request [20:07:50]url: /json_proto [20:07:50]query_string will be loaded in cgi processing [20:07:50]execute_cgi json_proto POST (null) [20:07:50]execute_cgi path=json_proto method=POST [20:07:50]POST find Content-Length [20:07:50]Host: 172.17.96.197:8080 [20:07:50]Content-Length: 622 [20:07:50]Content-Type: application/json [20:07:50] [20:07:50]POST finish read [20:07:50]Found Content-Length = 622 [20:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10443", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:50]execute_script... [20:07:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10443", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:07:50]POST & json_proto [20:07:50]process_json_proto [20:07:50]json parsed OK: [20:07:50]protocol is kg_v1.0 [20:07:50]action value=close_receipt [20:07:50]process_action close_receipt [20:07:50]cmd_close_receipt [20:07:50]MH_GetDate [20:07:50]Write to MH i2c: F0 00 00 10 28 27 [20:07:50]Write i2c OK [20:07:50]MH_I2C_Read... [20:07:50]Read from MH i2c: F0 [20:07:50]MH_I2C_Read... [20:07:50]Read from MH i2c: F0 09 00 [20:07:50]MH_I2C_Read... [20:07:50]Read from MH i2c: F0 09 00 10 28 00 97 37 1C 66 E0 85 7F 64 C8 [20:07:50]GetLastDocTimeStamp 1713125224 [20:07:50]current date 1713125271 [20:07:50]FM_GetShiftState [20:07:50]SAM_PROTO_GetShiftState [20:07:50]wFMCommunicate request_size=4 [20:07:50]MH_SAM_APDU [20:07:50]CAPDU: 80 13 01 00 [20:07:50]Write to MH i2c: E2 08 00 11 28 80 13 01 00 00 00 00 00 B6 [20:07:50]Write i2c OK [20:07:50]MH_I2C_Read... [20:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:50]Read from MH i2c: E2 [20:07:50]MH_I2C_Read... [20:07:50]Read from MH i2c: E2 0E 00 [20:07:50]MH_I2C_Read... [20:07:50]Read from MH i2c: E2 0E 00 11 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4E [20:07:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:07:50]wFMCommunicate OK [20:07:50]SAM_PROTO_GetShiftState done [20:07:50]FM_GetShiftState done [20:07:50]opened in 1713054696 [20:07:50]opened+sec_in_day 1713141096 [20:07:50]quantity*price = 13500 [20:07:50]sum+1 = 13501 [20:07:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 315 14.04.2024 20:07 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112416 ФПД: 267770916348829 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200751&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112416&fm=267770916348829&tin=02508201610067®Number=0000000000094237&sum=13500 0 [20:07:51]StoreToDocumentArchive [20:07:51]shift 357 fd 112416 [20:07:51]save to /storage/0357/doc_00112416 [20:07:51]save last doc name /storage/0357/doc_00112416 to /storage/kkm_last_doc_name [20:07:51]save OK [20:07:51]Clear old archive folders... [20:07:51]ProcessDocumentItem done err = 0, tmpTLVsize=275 [20:07:51]tlvbuf is 00138CE0 [20:07:51]SAM_PROTO_ClearQueue [20:07:51]wFMCommunicate request_size=4 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 09 00 00 [20:07:51]Write to MH i2c: E2 08 00 1E 28 80 09 00 00 00 00 00 00 B8 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 1E 28 00 90 00 BA [20:07:51]RAPDU: 90 00 [20:07:51]wFMCommunicate OK [20:07:51]SAM_PROTO_ClearQueue done [20:07:51]KKMCreateOFDPacket [20:07:51]OFDProtocolAddRootSTLVToBuf [20:07:51]FM_MakeSignedData [20:07:51]FM_MakeSignedData [20:07:51]SAM_PROTO_SignData [20:07:51]wFMCommunicate request_size=4 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 0D 01 02 [20:07:51]Write to MH i2c: E2 08 00 1F 28 80 0D 01 02 00 00 00 00 C0 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 1F 28 00 90 00 BB [20:07:51]RAPDU: 90 00 [20:07:51]wFMCommunicate OK [20:07:51]wFMCommunicate request_size=255 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 97 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 [20:07:51]Write to MH i2c: E2 02 01 20 28 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 97 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 00 00 30 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 20 28 00 90 00 BC [20:07:51]RAPDU: 90 00 [20:07:51]wFMCommunicate OK [20:07:51]wFMCommunicate request_size=34 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B7 01 00 35 04 06 00 F3 89 46 59 A3 9D [20:07:51]Write to MH i2c: E2 25 00 21 28 80 0D 02 02 1D 00 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B7 01 00 35 04 06 00 F3 89 46 59 A3 9D 00 00 B5 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 03 00 21 28 00 90 00 BD [20:07:51]RAPDU: 90 00 [20:07:51]wFMCommunicate OK [20:07:51]wFMCommunicate request_size=4 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 0D 03 02 [20:07:51]Write to MH i2c: E2 08 00 22 28 80 0D 03 02 00 00 00 00 C5 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 0B 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 0B 00 22 28 00 50 E5 B3 9D FA 0A 5A 7C 90 00 25 [20:07:51]RAPDU: 50 E5 B3 9D FA 0A 5A 7C 90 00 [20:07:51]wFMCommunicate OK [20:07:51]SAM_PROTO_SignData done [20:07:51]FM_MakeSignedData done [20:07:51]CreateOFDProtocolMessage [20:07:51]wFMCommunicate request_size=4 [20:07:51]MH_SAM_APDU [20:07:51]CAPDU: 80 11 00 00 [20:07:51]Write to MH i2c: E2 08 00 23 28 80 11 00 00 00 00 00 00 C5 [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:51]Read from MH i2c: E2 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 17 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: E2 17 00 23 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [20:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:07:51]wFMCommunicate OK [20:07:51]CreateOFDProtocolMessage done [20:07:51]OFDSenderStorePacket 112416 [20:07:51]StoreOFDPacket docnum=112416 [20:07:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 27 01 00 00 B5 E8 1F 01 BD F4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 97 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B7 01 00 35 04 06 00 F3 89 46 59 A3 9D 50 E5 B3 9D FA 0A 5A 7C [20:07:51]CheckFolder [20:07:51]dirname=/storage/ofd_packets [20:07:51]CheckFolder done [20:07:51]ProducePacketName [20:07:51]name=ofd_packets/00112416 [20:07:51]NVStorageSaveData ofd_packets/00112416 [20:07:51]File name is /storage/ofd_packets/00112416 [20:07:51]Write 325 bytes [20:07:51]NVStorageSaveData done [20:07:51]OFDSenderStorePacket done [20:07:51]KKMCreateOFDPacket done [20:07:51]NVStorageSaveData kkm_last_timestamp [20:07:51]File name is /storage/kkm_last_timestamp [20:07:51]Write 4 bytes [20:07:51]NVStorageSaveData done [20:07:51]ExternCall_PrintAddStr [20:07:51]wPrintStart [20:07:51]Write to MH i2c: 01 00 00 24 28 4C [20:07:51]Write i2c OK [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: 01 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: 01 07 00 [20:07:51]MH_I2C_Read... [20:07:51]Read from MH i2c: 01 07 00 24 28 00 00 00 00 00 FF 0F 61 [20:07:51]RasterBufferAndPrint [20:07:51]line Счет N : (3)10443 [20:07:51]line ИНН: 02508201610067 [20:07:51]line Контрольно-Кассовый Чек [20:07:51]line ПРОДАЖА [20:07:51]line Товар: 48743587 [20:07:51]line Сигареты Winston XStyle Silver [20:07:51]line 1.000 * 135.00 [20:07:51]line = 135.00 [20:07:51]line НДС 12% НСП 1% [20:07:51]line > о реализуемом товаре [20:07:51]line ИТОГО: 135.00 [20:07:51]line НСП 1% : 1.19 [20:07:51]line НДС 12% : 14.34 [20:07:51]line Наличными: 135.00 [20:07:51]line Безнал.: 0.00 [20:07:51]line Место: АЗС № 47 "Партнер Нефть" [20:07:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:07:51]line СНО: Общий режим [20:07:51]line Чек 315 14.04.2024 20:07 [20:07:51]line Смена: 357 ФФД: 1.0 [20:07:51]line ЗНМ: 0300000138 [20:07:51]line РНМ: 0000000000094237 [20:07:51]line Версия ККМ: 001 [20:07:51]line ФМ: 0000000000875019 [20:07:51]line ФД: 112416 [20:07:51]line ФПД: 267770916348829 [20:07:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T200751&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112416&fm=267770916348829&tin=02508201610067®Number=0000000000094237&sum=13500 [20:07:52]line 0 [20:07:52]OFD Sender: Processing packet 112416 [packets to send 71, broken 70] [20:07:52]ProducePacketName [20:07:52]name=ofd_packets/00112416 [20:07:52]OFD Sender: To server: pG, [20:07:52]CommunicateWithHost lk.salyk.kg:30040 [20:07:52]ConnectInit lk.salyk.kg [20:07:52]written 0, free lines is 4095 [20:07:52]Connected sock=10 [20:07:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 27 01 00 00 B5 E8 1F 01 BD F4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 97 37 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B7 01 00 35 04 06 00 F3 89 46 59 A3 9D 50 E5 B3 9D FA 0A 5A 7C [20:07:52]Write to MH i2c: 01 00 00 4D 28 75 [20:07:52]Write i2c OK [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: 01 [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: 01 07 00 [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: 01 07 00 4D 28 00 00 00 00 00 DD 0C 65 [20:07:52]RasterBufferAndPrint [20:07:52]line [20:07:52]line [20:07:52]line [20:07:52]line [20:07:52]line [20:07:52]written 0, free lines is 3299 [20:07:52]MH_Cut [20:07:52]Write to MH i2c: D1 01 00 54 28 01 4E [20:07:52]Write i2c OK [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: D1 [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: D1 01 00 [20:07:52]MH_I2C_Read... [20:07:52]Read from MH i2c: D1 01 00 54 28 00 4D [20:07:52]Write to MH i2c: 01 00 00 55 28 7D [20:07:52]Write i2c OK [20:07:52]MH_I2C_Read... [20:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D6 72 47 00 C5 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 20 B7 01 00 F4 03 04 00 22 DF 1B 66 B6 04 01 00 00 42 BC 22 DF B6 50 C4 B4 [20:07:52]CommunicateWithHost err = 0 [20:07:52]CheckOFDResponse [20:07:52]1017 (14) - 77093643461234 [20:07:52]1041 (16) - 0000000000875019 [20:07:52]1040 (4) - 112416 [20:07:52]1012 (4) - 14.04.2024 13:50 [20:07:52]1206 (1) - 0 [20:07:52]OFD Sender: Remove packet 112416 [20:07:52]ProducePacketName [20:07:52]name=ofd_packets/00112416 [20:07:52]NVStorageDeleteData [20:07:53]OFD Sender: No OFD packet to send [20:07:53]*** Cut start [20:07:53]*** Partial cut [20:07:53]*** CUTSNS_PIN = 1 [20:07:53]*** CUTSNS_PIN = 0 [20:07:53]*** Brake cut motor [20:07:53]Read from MH i2c: 01 [20:07:53]MH_I2C_Read... [20:07:53]*** Stop cut motor [20:07:53]*** Cut end [20:07:53]Read from MH i2c: 01 07 00 [20:07:53]MH_I2C_Read... [20:07:53]Read from MH i2c: 01 07 00 55 28 00 00 00 00 00 FF 0F 92 [20:07:53]process_action close_receipt done [20:07:53]requested_data is exist [20:07:53]produce_requested_data [20:07:53]requested_item fm.sn is exist - process it [20:07:53]wFMCommunicate request_size=4 [20:07:53]MH_SAM_APDU [20:07:53]CAPDU: 80 11 00 00 [20:07:53]Write to MH i2c: E2 08 00 56 28 80 11 00 00 00 00 00 00 F8 [20:07:53]Write i2c OK [20:07:53]MH_I2C_Read... [20:07:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:54]Read from MH i2c: E2 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 17 00 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 17 00 56 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 49 [20:07:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:07:54]wFMCommunicate OK [20:07:54]requested_item fd.num is exist - process it [20:07:54]SAM_PROTO_GetFieldsCounters [20:07:54]wFMCommunicate request_size=4 [20:07:54]MH_SAM_APDU [20:07:54]CAPDU: 80 13 00 00 [20:07:54]Write to MH i2c: E2 08 00 57 28 80 13 00 00 00 00 00 00 FB [20:07:54]Write i2c OK [20:07:54]MH_I2C_Read... [20:07:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:54]Read from MH i2c: E2 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 62 00 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 62 00 57 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 20 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [20:07:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 20 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:54]wFMCommunicate OK [20:07:54]SAM_PROTO_GetFieldsCounters done [20:07:54]requested_item shift.num is exist - process it [20:07:54]requested_item shift.opened is exist - process it [20:07:54]req_shift_opened [20:07:54]FM_GetShiftState [20:07:54]SAM_PROTO_GetShiftState [20:07:54]wFMCommunicate request_size=4 [20:07:54]MH_SAM_APDU [20:07:54]CAPDU: 80 13 01 00 [20:07:54]Write to MH i2c: E2 08 00 58 28 80 13 01 00 00 00 00 00 FD [20:07:54]Write i2c OK [20:07:54]MH_I2C_Read... [20:07:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:54]Read from MH i2c: E2 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 0E 00 [20:07:54]MH_I2C_Read... [20:07:54]Read from MH i2c: E2 0E 00 58 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 95 [20:07:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:07:54]wFMCommunicate OK [20:07:54]SAM_PROTO_GetShiftState done [20:07:54]FM_GetShiftState done [20:07:54]req_shift_opened done [20:07:54]requested_item shift.open_date is exist - process it [20:07:54]req_shift_open_date [20:07:54]req_shift_open_date done [20:07:54]produce_requested_data done [20:07:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112416,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:07:54]process_action_free close_receipt [20:07:54]json_value_free [20:07:54]json_value_free done [20:07:54]process_json_proto returns [20:07:54]Send response to host [20:07:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112416,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:07:54]free response buf [20:07:54]execute_script done [20:07:54]execute_script returns [20:07:54]free content buf [20:07:54]Sock 8.Close socket [20:07:54]Sock 8.Thread stoped [20:07:58]OFD Sender: No OFD packet to send [20:08:03]OFD Sender: No OFD packet to send [20:08:08]OFD Sender: No OFD packet to send [20:08:13]OFD Sender: No OFD packet to send [20:08:18]OFD Sender: No OFD packet to send [20:08:23]OFD Sender: No OFD packet to send [20:08:28]OFD Sender: No OFD packet to send [20:08:33]OFD Sender: No OFD packet to send [20:08:38]OFD Sender: No OFD packet to send [20:08:43]OFD Sender: No OFD packet to send [20:08:48]OFD Sender: No OFD packet to send [20:08:53]OFD Sender: No OFD packet to send [20:08:58]OFD Sender: No OFD packet to send [20:09:03]OFD Sender: No OFD packet to send [20:09:08]OFD Sender: No OFD packet to send [20:09:13]OFD Sender: No OFD packet to send [20:09:18]OFD Sender: No OFD packet to send [20:09:23]OFD Sender: No OFD packet to send [20:09:28]OFD Sender: No OFD packet to send [20:09:33]OFD Sender: No OFD packet to send [20:09:38]OFD Sender: No OFD packet to send [20:09:43]OFD Sender: No OFD packet to send [20:09:48]OFD Sender: No OFD packet to send [20:09:53]OFD Sender: No OFD packet to send [20:09:58]OFD Sender: No OFD packet to send [20:10:03]OFD Sender: No OFD packet to send [20:10:08]OFD Sender: No OFD packet to send [20:10:13]OFD Sender: No OFD packet to send [20:10:18]OFD Sender: No OFD packet to send [20:10:23]OFD Sender: No OFD packet to send [20:10:28]OFD Sender: No OFD packet to send [20:10:33]OFD Sender: No OFD packet to send [20:10:38]OFD Sender: No OFD packet to send [20:10:43]OFD Sender: No OFD packet to send [20:10:48]OFD Sender: No OFD packet to send [20:10:53]OFD Sender: No OFD packet to send [20:10:58]OFD Sender: No OFD packet to send [20:11:03]OFD Sender: No OFD packet to send [20:11:08]OFD Sender: No OFD packet to send [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:48]OFD Sender: No OFD packet to send [20:11:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:33]OFD Sender: No OFD packet to send [20:12:38]OFD Sender: No OFD packet to send [20:12:43]OFD Sender: No OFD packet to send [20:12:48]OFD Sender: No OFD packet to send [20:12:53]OFD Sender: No OFD packet to send [20:12:58]OFD Sender: No OFD packet to send [20:13:03]OFD Sender: No OFD packet to send [20:13:08]OFD Sender: No OFD packet to send [20:13:13]OFD Sender: No OFD packet to send [20:13:18]OFD Sender: No OFD packet to send [20:13:23]OFD Sender: No OFD packet to send [20:13:28]OFD Sender: No OFD packet to send [20:13:33]OFD Sender: No OFD packet to send [20:13:38]OFD Sender: No OFD packet to send [20:13:43]OFD Sender: No OFD packet to send [20:13:48]OFD Sender: No OFD packet to send [20:13:53]OFD Sender: No OFD packet to send [20:13:58]OFD Sender: No OFD packet to send [20:14:03]OFD Sender: No OFD packet to send [20:14:08]OFD Sender: No OFD packet to send [20:14:13]OFD Sender: No OFD packet to send [20:14:18]OFD Sender: No OFD packet to send [20:14:23]OFD Sender: No OFD packet to send [20:14:28]OFD Sender: No OFD packet to send [20:14:33]OFD Sender: No OFD packet to send [20:14:38]OFD Sender: No OFD packet to send [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:05]accept exits with 9 [20:15:05]New connection [20:15:05]New thread 3066682724 created [20:15:05]Thread 3066826084 joined [20:15:05]Waiting for new connection... [20:15:05] Sock 9.Parse request [20:15:05]Sock 9.Check first char [20:15:05]Sock 9.First char is OK [20:15:05]request: POST /json_proto HTTP/1.0 [20:15:05]Method: POST [20:15:05]URL: /json_proto [20:15:05]Method is POST - this is cgi request [20:15:05]url: /json_proto [20:15:05]query_string will be loaded in cgi processing [20:15:05]execute_cgi json_proto POST (null) [20:15:05]execute_cgi path=json_proto method=POST [20:15:05]POST find Content-Length [20:15:05]Host: 172.17.96.197:8080 [20:15:05]Content-Length: 676 [20:15:05]Content-Type: application/json [20:15:05] [20:15:05]POST finish read [20:15:05]Found Content-Length = 676 [20:15:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.830, "sum" : 350.18, "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" ] } } [20:15:05]execute_script... [20:15: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)48714", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.830, "sum" : 350.18, "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" ] } } [20:15:05]POST & json_proto [20:15:05]process_json_proto [20:15:05]json parsed OK: [20:15:05]protocol is kg_v1.0 [20:15:05]action value=close_receipt [20:15:05]process_action close_receipt [20:15:05]cmd_close_receipt [20:15:05]MH_GetDate [20:15:05]Write to MH i2c: F0 00 00 59 28 70 [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: F0 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: F0 09 00 [20:15:05]MH_I2C_Read... [20:15:05]Read from MH i2c: F0 09 00 59 28 00 4B 39 1C 66 E0 85 7F 64 C7 [20:15:05]GetLastDocTimeStamp 1713125271 [20:15:05]current date 1713125707 [20:15:05]FM_GetShiftState [20:15:05]SAM_PROTO_GetShiftState [20:15:05]wFMCommunicate request_size=4 [20:15:05]MH_SAM_APDU [20:15:05]CAPDU: 80 13 01 00 [20:15:05]Write to MH i2c: E2 08 00 5A 28 80 13 01 00 00 00 00 00 FF [20:15:05]Write i2c OK [20:15:05]MH_I2C_Read... [20:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:06]Read from MH i2c: E2 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: E2 0E 00 [20:15:06]MH_I2C_Read... [20:15:06]Read from MH i2c: E2 0E 00 5A 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 97 [20:15:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:15:06]wFMCommunicate OK [20:15:06]SAM_PROTO_GetShiftState done [20:15:06]FM_GetShiftState done [20:15:06]opened in 1713054696 [20:15:06]opened+sec_in_day 1713141096 [20:15:06]quantity*price = 35017 [20:15:06]sum+1 = 35019 [20:15:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.19 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 316 14.04.2024 20:15 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112417 ФПД: 10604277646621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201507&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112417&fm=10604277646621&tin=02508201610067®Number=0000000000094237&sum=35000 [20:15:07]StoreToDocumentArchive [20:15:07]shift 357 fd 112417 [20:15:07]save to /storage/0357/doc_00112417 [20:15:07]save last doc name /storage/0357/doc_00112417 to /storage/kkm_last_doc_name [20:15:07]save OK [20:15:07]Clear old archive folders... [20:15:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:15:07]tlvbuf is 0022BD70 [20:15:07]SAM_PROTO_ClearQueue [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 09 00 00 [20:15:07]Write to MH i2c: E2 08 00 67 28 80 09 00 00 00 00 00 00 01 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 67 28 00 90 00 03 [20:15:07]RAPDU: 90 00 [20:15:07]wFMCommunicate OK [20:15:07]SAM_PROTO_ClearQueue done [20:15:07]KKMCreateOFDPacket [20:15:07]OFDProtocolAddRootSTLVToBuf [20:15:07]FM_MakeSignedData [20:15:07]FM_MakeSignedData [20:15:07]SAM_PROTO_SignData [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 0D 01 02 [20:15:07]Write to MH i2c: E2 08 00 68 28 80 0D 01 02 00 00 00 00 09 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 68 28 00 90 00 04 [20:15:07]RAPDU: 90 00 [20:15:07]wFMCommunicate OK [20:15:07]wFMCommunicate request_size=255 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 DE 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 CA 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 87 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 3C 01 00 00 F4 03 04 00 4B 39 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B7 01 00 35 04 06 00 09 [20:15:07]Write to MH i2c: E2 02 01 69 28 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 DE 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 CA 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 87 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 3C 01 00 00 F4 03 04 00 4B 39 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B7 01 00 35 04 06 00 09 00 00 9C [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 69 28 00 90 00 05 [20:15:07]RAPDU: 90 00 [20:15:07]wFMCommunicate OK [20:15:07]wFMCommunicate request_size=10 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 0D 02 02 05 A5 00 33 C5 1D [20:15:07]Write to MH i2c: E2 0D 00 6A 28 80 0D 02 02 05 00 A5 00 33 C5 1D 00 00 D0 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 03 00 6A 28 00 90 00 06 [20:15:07]RAPDU: 90 00 [20:15:07]wFMCommunicate OK [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 0D 03 02 [20:15:07]Write to MH i2c: E2 08 00 6B 28 80 0D 03 02 00 00 00 00 0E [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 0B 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 0B 00 6B 28 00 E1 28 5C DA BE AF 77 28 90 00 5A [20:15:07]RAPDU: E1 28 5C DA BE AF 77 28 90 00 [20:15:07]wFMCommunicate OK [20:15:07]SAM_PROTO_SignData done [20:15:07]FM_MakeSignedData done [20:15:07]CreateOFDProtocolMessage [20:15:07]wFMCommunicate request_size=4 [20:15:07]MH_SAM_APDU [20:15:07]CAPDU: 80 11 00 00 [20:15:07]Write to MH i2c: E2 08 00 6C 28 80 11 00 00 00 00 00 00 0E [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:07]Read from MH i2c: E2 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 17 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: E2 17 00 6C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5F [20:15:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:15:07]wFMCommunicate OK [20:15:07]CreateOFDProtocolMessage done [20:15:07]OFDSenderStorePacket 112417 [20:15:07]StoreOFDPacket docnum=112417 [20:15:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 86 07 01 F1 5A 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 DE 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 CA 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 87 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 3C 01 00 00 F4 03 04 00 4B 39 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B7 01 00 35 04 06 00 09 A5 00 33 C5 1D E1 28 5C DA BE AF 77 28 [20:15:07]CheckFolder [20:15:07]dirname=/storage/ofd_packets [20:15:07]CheckFolder done [20:15:07]ProducePacketName [20:15:07]name=ofd_packets/00112417 [20:15:07]NVStorageSaveData ofd_packets/00112417 [20:15:07]File name is /storage/ofd_packets/00112417 [20:15:07]Write 301 bytes [20:15:07]NVStorageSaveData done [20:15:07]OFDSenderStorePacket done [20:15:07]KKMCreateOFDPacket done [20:15:07]NVStorageSaveData kkm_last_timestamp [20:15:07]File name is /storage/kkm_last_timestamp [20:15:07]Write 4 bytes [20:15:07]NVStorageSaveData done [20:15:07]ExternCall_PrintAddStr [20:15:07]wPrintStart [20:15:07]Write to MH i2c: 01 00 00 6D 28 95 [20:15:07]Write i2c OK [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: 01 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: 01 07 00 [20:15:07]MH_I2C_Read... [20:15:07]Read from MH i2c: 01 07 00 6D 28 00 00 00 00 00 FF 0F AA [20:15:07]RasterBufferAndPrint [20:15:07]line Счет N : (1)48714 [20:15:07]line ИНН: 02508201610067 [20:15:07]line Контрольно-Кассовый Чек [20:15:07]line ПРОДАЖА [20:15:07]line ТРК (МРК, ГНК) : 22 [20:15:07]line Товар: 2710124500 [20:15:07]line Аи-95-К-5 [20:15:07]line 4.830 * 72.50 [20:15:07]line = 350.18 [20:15:07]line НДС 12% НСП 1% [20:15:07]line > о реализуемом товаре [20:15:07]line ОКРУГЛЕНИЕ: -0.18 [20:15:07]line ИТОГО: 350.00 [20:15:07]line Внесено: 350.00 [20:15:07]line СДАЧА: 0.00 [20:15:07]line НСП 1% : 3.10 [20:15:07]line НДС 12% : 37.19 [20:15:07]line Наличными: 350.00 [20:15:07]line Безнал.: 0.00 [20:15:07]line Место: АЗС № 47 "Партнер Нефть" [20:15:07]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:15:07]line СНО: Общий режим [20:15:07]line Чек 316 14.04.2024 20:15 [20:15:07]line Смена: 357 ФФД: 1.0 [20:15:07]line ЗНМ: 0300000138 [20:15:07]line РНМ: 0000000000094237 [20:15:07]line Версия ККМ: 001 [20:15:07]line ФМ: 0000000000875019 [20:15:07]line ФД: 112417 [20:15:07]line ФПД: 10604277646621 [20:15:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201507&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112417&fm=10604277646621&tin=02508201610067®Number=0000000000094237&sum=35000 [20:15:08]OFD Sender: Processing packet 112417 [packets to send 71, broken 70] [20:15:08]ProducePacketName [20:15:08]name=ofd_packets/00112417 [20:15:08]OFD Sender: To server: pG, [20:15:08]CommunicateWithHost lk.salyk.kg:30040 [20:15:08]ConnectInit lk.salyk.kg [20:15:08]written 0, free lines is 4095 [20:15:08]Connected sock=11 [20:15:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 A3 86 07 01 F1 5A 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 DE 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 CA 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 87 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 3C 01 00 00 F4 03 04 00 4B 39 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B7 01 00 35 04 06 00 09 A5 00 33 C5 1D E1 28 5C DA BE AF 77 28 [20:15:08]Write to MH i2c: 01 00 00 98 28 C0 [20:15:08]Write i2c OK [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: 01 [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: 01 07 00 [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: 01 07 00 98 28 00 00 00 00 00 D0 0C A3 [20:15:08]RasterBufferAndPrint [20:15:08]line [20:15:08]line [20:15:08]line [20:15:08]line [20:15:08]line [20:15:08]written 0, free lines is 3287 [20:15:08]MH_Cut [20:15:08]Write to MH i2c: D1 01 00 9F 28 01 99 [20:15:08]Write i2c OK [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: D1 [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: D1 01 00 [20:15:08]MH_I2C_Read... [20:15:08]Read from MH i2c: D1 01 00 9F 28 00 98 [20:15:08]Write to MH i2c: 01 00 00 A0 28 C8 [20:15:08]Write i2c OK [20:15:08]MH_I2C_Read... [20:15:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 82 6D 47 00 41 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 21 B7 01 00 F4 03 04 00 D6 E0 1B 66 B6 04 01 00 00 C9 48 2A AF E9 13 3B 69 [20:15:08]CommunicateWithHost err = 0 [20:15:08]CheckOFDResponse [20:15:08]1017 (14) - 77093643461234 [20:15:08]1041 (16) - 0000000000875019 [20:15:08]1040 (4) - 112417 [20:15:08]1012 (4) - 14.04.2024 13:57 [20:15:08]1206 (1) - 0 [20:15:08]OFD Sender: Remove packet 112417 [20:15:08]ProducePacketName [20:15:08]name=ofd_packets/00112417 [20:15:08]NVStorageDeleteData [20:15:09]OFD Sender: No OFD packet to send [20:15:09]*** Cut start [20:15:09]*** Partial cut [20:15:09]*** CUTSNS_PIN = 1 [20:15:09]*** CUTSNS_PIN = 0 [20:15:09]*** Brake cut motor [20:15:09]Read from MH i2c: 01 [20:15:09]MH_I2C_Read... [20:15:09]*** Stop cut motor [20:15:09]*** Cut end [20:15:09]Read from MH i2c: 01 07 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: 01 07 00 A0 28 00 00 00 00 00 FF 0F DD [20:15:09]process_action close_receipt done [20:15:09]requested_data is exist [20:15:09]produce_requested_data [20:15:09]requested_item fm.sn is exist - process it [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 11 00 00 [20:15:09]Write to MH i2c: E2 08 00 A1 28 80 11 00 00 00 00 00 00 43 [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:09]Read from MH i2c: E2 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 [20:15:09]MH_I2C_Read... [20:15:09]Read from MH i2c: E2 17 00 A1 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 94 [20:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:15:09]wFMCommunicate OK [20:15:09]requested_item fd.num is exist - process it [20:15:09]SAM_PROTO_GetFieldsCounters [20:15:09]wFMCommunicate request_size=4 [20:15:09]MH_SAM_APDU [20:15:09]CAPDU: 80 13 00 00 [20:15:09]Write to MH i2c: E2 08 00 A2 28 80 13 00 00 00 00 00 00 46 [20:15:09]Write i2c OK [20:15:09]MH_I2C_Read... [20:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:10]Read from MH i2c: E2 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 62 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 62 00 A2 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 21 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [20:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 21 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:15:10]wFMCommunicate OK [20:15:10]SAM_PROTO_GetFieldsCounters done [20:15:10]requested_item shift.num is exist - process it [20:15:10]requested_item shift.opened is exist - process it [20:15:10]req_shift_opened [20:15:10]FM_GetShiftState [20:15:10]SAM_PROTO_GetShiftState [20:15:10]wFMCommunicate request_size=4 [20:15:10]MH_SAM_APDU [20:15:10]CAPDU: 80 13 01 00 [20:15:10]Write to MH i2c: E2 08 00 A3 28 80 13 01 00 00 00 00 00 48 [20:15:10]Write i2c OK [20:15:10]MH_I2C_Read... [20:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:10]Read from MH i2c: E2 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 0E 00 [20:15:10]MH_I2C_Read... [20:15:10]Read from MH i2c: E2 0E 00 A3 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E0 [20:15:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:15:10]wFMCommunicate OK [20:15:10]SAM_PROTO_GetShiftState done [20:15:10]FM_GetShiftState done [20:15:10]req_shift_opened done [20:15:10]requested_item shift.open_date is exist - process it [20:15:10]req_shift_open_date [20:15:10]req_shift_open_date done [20:15:10]produce_requested_data done [20:15:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112417,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:15:10]process_action_free close_receipt [20:15:10]json_value_free [20:15:10]json_value_free done [20:15:10]process_json_proto returns [20:15:10]Send response to host [20:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112417,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:15:10]free response buf [20:15:10]execute_script done [20:15:10]execute_script returns [20:15:10]free content buf [20:15:10]Sock 9.Close socket [20:15:10]Sock 9.Thread stoped [20:15:14]OFD Sender: No OFD packet to send [20:15:19]OFD Sender: No OFD packet to send [20:15:24]OFD Sender: No OFD packet to send [20:15:29]OFD Sender: No OFD packet to send [20:15:34]OFD Sender: No OFD packet to send [20:15:39]OFD Sender: No OFD packet to send [20:15:44]OFD Sender: No OFD packet to send [20:15:49]OFD Sender: No OFD packet to send [20:15:54]OFD Sender: No OFD packet to send [20:15:59]OFD Sender: No OFD packet to send [20:16:04]OFD Sender: No OFD packet to send [20:16:09]OFD Sender: No OFD packet to send [20:16:14]OFD Sender: No OFD packet to send [20:16:19]OFD Sender: No OFD packet to send [20:16:24]OFD Sender: No OFD packet to send [20:16:29]OFD Sender: No OFD packet to send [20:16:34]OFD Sender: No OFD packet to send [20:16:39]OFD Sender: No OFD packet to send [20:16:44]OFD Sender: No OFD packet to send [20:16:49]OFD Sender: No OFD packet to send [20:16:54]OFD Sender: No OFD packet to send [20:16:59]OFD Sender: No OFD packet to send [20:17:04]OFD Sender: No OFD packet to send [20:17:09]OFD Sender: No OFD packet to send [20:17:14]OFD Sender: No OFD packet to send [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:44]OFD Sender: No OFD packet to send [20:18:47]accept exits with 8 [20:18:47]New connection [20:18:47]New thread 3066826084 created [20:18:47]Thread 3066682724 joined [20:18:47]Waiting for new connection... [20:18:47] Sock 8.Parse request [20:18:47]Sock 8.Check first char [20:18:47]Sock 8.First char is OK [20:18:47]request: POST /json_proto HTTP/1.0 [20:18:47]Method: POST [20:18:47]URL: /json_proto [20:18:47]Method is POST - this is cgi request [20:18:47]url: /json_proto [20:18:47]query_string will be loaded in cgi processing [20:18:47]execute_cgi json_proto POST (null) [20:18:47]execute_cgi path=json_proto method=POST [20:18:47]POST find Content-Length [20:18:47]Host: 172.17.96.197:8080 [20:18:47]Content-Length: 681 [20:18:47]Content-Type: application/json [20:18:47] [20:18:47]POST finish read [20:18:47]Found Content-Length = 681 [20:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48715", "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.30, "quantity" : 15.560, "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" ] } } [20:18:47]execute_script... [20:18: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)48715", "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.30, "quantity" : 15.560, "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" ] } } [20:18:47]POST & json_proto [20:18:47]process_json_proto [20:18:47]json parsed OK: [20:18:47]protocol is kg_v1.0 [20:18:47]action value=close_receipt [20:18:47]process_action close_receipt [20:18:47]cmd_close_receipt [20:18:47]MH_GetDate [20:18:47]Write to MH i2c: F0 00 00 A4 28 BB [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: F0 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: F0 09 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: F0 09 00 A4 28 00 29 3A 1C 66 E0 85 7F 64 F1 [20:18:47]GetLastDocTimeStamp 1713125707 [20:18:47]current date 1713125929 [20:18:47]FM_GetShiftState [20:18:47]SAM_PROTO_GetShiftState [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 13 01 00 [20:18:47]Write to MH i2c: E2 08 00 A5 28 80 13 01 00 00 00 00 00 4A [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 0E 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 0E 00 A5 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E2 [20:18:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:18:47]wFMCommunicate OK [20:18:47]SAM_PROTO_GetShiftState done [20:18:47]FM_GetShiftState done [20:18:47]opened in 1713054696 [20:18:47]opened+sec_in_day 1713141096 [20:18:47]quantity*price = 100050 [20:18:47]sum+1 = 100052 [20:18:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 317 14.04.2024 20:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112418 ФПД: 116198188340547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201849&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112418&fm=116198188340547&tin=02508201610067®Number=0000000000094237&sum=100000 [20:18:48]StoreToDocumentArchive [20:18:48]shift 357 fd 112418 [20:18:48]save to /storage/0357/doc_00112418 [20:18:48]save last doc name /storage/0357/doc_00112418 to /storage/kkm_last_doc_name [20:18:48]save OK [20:18:48]Clear old archive folders... [20:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:48]tlvbuf is 0015F0F0 [20:18:48]SAM_PROTO_ClearQueue [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 09 00 00 [20:18:48]Write to MH i2c: E2 08 00 B2 28 80 09 00 00 00 00 00 00 4C [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 03 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 03 00 B2 28 00 90 00 4E [20:18:48]RAPDU: 90 00 [20:18:48]wFMCommunicate OK [20:18:48]SAM_PROTO_ClearQueue done [20:18:48]KKMCreateOFDPacket [20:18:48]OFDProtocolAddRootSTLVToBuf [20:18:48]FM_MakeSignedData [20:18:48]FM_MakeSignedData [20:18:48]SAM_PROTO_SignData [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 0D 01 02 [20:18:48]Write to MH i2c: E2 08 00 B3 28 80 0D 01 02 00 00 00 00 54 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 03 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 03 00 B3 28 00 90 00 4F [20:18:48]RAPDU: 90 00 [20:18:48]wFMCommunicate OK [20:18:48]wFMCommunicate request_size=255 [20:18:48]MH_SAM_APDU [20:18: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 3D 01 00 00 F4 03 04 00 29 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B7 01 00 35 04 06 00 69 [20:18:48]Write to MH i2c: E2 02 01 B4 28 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 3C 00 00 00 00 00 37 04 06 00 1E 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 3D 01 00 00 F4 03 04 00 29 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B7 01 00 35 04 06 00 69 00 00 2D [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:49]Read from MH i2c: E2 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 03 00 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 03 00 B4 28 00 90 00 50 [20:18:49]RAPDU: 90 00 [20:18:49]wFMCommunicate OK [20:18:49]wFMCommunicate request_size=10 [20:18:49]MH_SAM_APDU [20:18:49]CAPDU: 80 0D 02 02 05 AE 7F BD 55 43 [20:18:49]Write to MH i2c: E2 0D 00 B5 28 80 0D 02 02 05 00 AE 7F BD 55 43 00 00 E3 [20:18:49]Write i2c OK [20:18:49]MH_I2C_Read... [20:18:49]OFD Sender: No OFD packet to send [20:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:49]Read from MH i2c: E2 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 03 00 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 03 00 B5 28 00 90 00 51 [20:18:49]RAPDU: 90 00 [20:18:49]wFMCommunicate OK [20:18:49]wFMCommunicate request_size=4 [20:18:49]MH_SAM_APDU [20:18:49]CAPDU: 80 0D 03 02 [20:18:49]Write to MH i2c: E2 08 00 B6 28 80 0D 03 02 00 00 00 00 59 [20:18:49]Write i2c OK [20:18:49]MH_I2C_Read... [20:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:49]Read from MH i2c: E2 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 0B 00 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 0B 00 B6 28 00 05 52 3C 35 C1 96 2B 97 90 00 3B [20:18:49]RAPDU: 05 52 3C 35 C1 96 2B 97 90 00 [20:18:49]wFMCommunicate OK [20:18:49]SAM_PROTO_SignData done [20:18:49]FM_MakeSignedData done [20:18:49]CreateOFDProtocolMessage [20:18:49]wFMCommunicate request_size=4 [20:18:49]MH_SAM_APDU [20:18:49]CAPDU: 80 11 00 00 [20:18:49]Write to MH i2c: E2 08 00 B7 28 80 11 00 00 00 00 00 00 59 [20:18:49]Write i2c OK [20:18:49]MH_I2C_Read... [20:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:49]Read from MH i2c: E2 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 17 00 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: E2 17 00 B7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AA [20:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:18:49]wFMCommunicate OK [20:18:49]CreateOFDProtocolMessage done [20:18:49]OFDSenderStorePacket 112418 [20:18:49]StoreOFDPacket docnum=112418 [20:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 24 A8 07 01 DA 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 3D 01 00 00 F4 03 04 00 29 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B7 01 00 35 04 06 00 69 AE 7F BD 55 43 05 52 3C 35 C1 96 2B 97 [20:18:49]CheckFolder [20:18:49]dirname=/storage/ofd_packets [20:18:49]CheckFolder done [20:18:49]ProducePacketName [20:18:49]name=ofd_packets/00112418 [20:18:49]NVStorageSaveData ofd_packets/00112418 [20:18:49]File name is /storage/ofd_packets/00112418 [20:18:49]Write 301 bytes [20:18:49]NVStorageSaveData done [20:18:49]OFDSenderStorePacket done [20:18:49]KKMCreateOFDPacket done [20:18:49]NVStorageSaveData kkm_last_timestamp [20:18:49]File name is /storage/kkm_last_timestamp [20:18:49]Write 4 bytes [20:18:49]NVStorageSaveData done [20:18:49]ExternCall_PrintAddStr [20:18:49]wPrintStart [20:18:49]Write to MH i2c: 01 00 00 B8 28 E0 [20:18:49]Write i2c OK [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: 01 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: 01 07 00 [20:18:49]MH_I2C_Read... [20:18:49]Read from MH i2c: 01 07 00 B8 28 00 00 00 00 00 FF 0F F5 [20:18:49]RasterBufferAndPrint [20:18:49]line Счет N : (1)48715 [20:18:49]line ИНН: 02508201610067 [20:18:49]line Контрольно-Кассовый Чек [20:18:49]line ПРОДАЖА [20:18:49]line ТРК (МРК, ГНК) : 32 [20:18:49]line Товар: 2710124130 [20:18:49]line Аи-92-К-5 [20:18:49]line 15.560 * 64.30 [20:18:49]line = 1000.51 [20:18:49]line НДС 12% НСП 1% [20:18:49]line > о реализуемом товаре [20:18:49]line ОКРУГЛЕНИЕ: -0.51 [20:18:49]line ИТОГО: 1000.00 [20:18:49]line Внесено: 1000.00 [20:18:49]line СДАЧА: 0.00 [20:18:49]line НСП 1% : 8.85 [20:18:49]line НДС 12% : 106.25 [20:18:49]line Наличными: 1000.00 [20:18:49]line Безнал.: 0.00 [20:18:49]line Место: АЗС № 47 "Партнер Нефть" [20:18:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:18:49]line СНО: Общий режим [20:18:49]line Чек 317 14.04.2024 20:18 [20:18:49]line Смена: 357 ФФД: 1.0 [20:18:49]line ЗНМ: 0300000138 [20:18:49]line РНМ: 0000000000094237 [20:18:49]line Версия ККМ: 001 [20:18:49]line ФМ: 0000000000875019 [20:18:49]line ФД: 112418 [20:18:49]line ФПД: 116198188340547 [20:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201849&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112418&fm=116198188340547&tin=02508201610067®Number=0000000000094237&sum=100000 [20:18:49]OFD Sender: Processing packet 112418 [packets to send 71, broken 70] [20:18:49]ProducePacketName [20:18:49]name=ofd_packets/00112418 [20:18:49]OFD Sender: To server: pG, [20:18:49]CommunicateWithHost lk.salyk.kg:30040 [20:18:49]ConnectInit lk.salyk.kg [20:18:49]written 0, free lines is 4095 [20:18:49]Connected sock=11 [20:18:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 24 A8 07 01 DA 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 3D 01 00 00 F4 03 04 00 29 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B7 01 00 35 04 06 00 69 AE 7F BD 55 43 05 52 3C 35 C1 96 2B 97 [20:18:50]Write to MH i2c: 01 00 00 E3 28 0B [20:18:50]Write i2c OK [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: 01 [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: 01 07 00 [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: 01 07 00 E3 28 00 00 00 00 00 CC 0C EA [20:18:50]RasterBufferAndPrint [20:18:50]line [20:18:50]line [20:18:50]line [20:18:50]line [20:18:50]line [20:18:50]written 0, free lines is 3280 [20:18:50]MH_Cut [20:18:50]Write to MH i2c: D1 01 00 EA 28 01 E4 [20:18:50]Write i2c OK [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: D1 [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: D1 01 00 [20:18:50]MH_I2C_Read... [20:18:50]Read from MH i2c: D1 01 00 EA 28 00 E3 [20:18:50]Write to MH i2c: 01 00 00 EB 28 13 [20:18:50]Write i2c OK [20:18:50]MH_I2C_Read... [20:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D8 5D 47 00 34 8C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 22 B7 01 00 F4 03 04 00 B3 E1 1B 66 B6 04 01 00 00 79 63 DF F6 C0 EE F4 6F [20:18:50]CommunicateWithHost err = 0 [20:18:50]CheckOFDResponse [20:18:50]1017 (14) - 77093643461234 [20:18:50]1041 (16) - 0000000000875019 [20:18:50]1040 (4) - 112418 [20:18:50]1012 (4) - 14.04.2024 14:01 [20:18:50]1206 (1) - 0 [20:18:50]OFD Sender: Remove packet 112418 [20:18:50]ProducePacketName [20:18:50]name=ofd_packets/00112418 [20:18:50]NVStorageDeleteData [20:18:50]OFD Sender: No OFD packet to send [20:18:50]*** Cut start [20:18:50]*** Partial cut [20:18:50]*** CUTSNS_PIN = 1 [20:18:50]*** CUTSNS_PIN = 0 [20:18:51]*** Brake cut motor [20:18:51]Read from MH i2c: 01 [20:18:51]MH_I2C_Read... [20:18:51]*** Stop cut motor [20:18:51]*** Cut end [20:18:51]Read from MH i2c: 01 07 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: 01 07 00 EB 28 00 00 00 00 00 FF 0F 28 [20:18:51]process_action close_receipt done [20:18:51]requested_data is exist [20:18:51]produce_requested_data [20:18:51]requested_item fm.sn is exist - process it [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 11 00 00 [20:18:51]Write to MH i2c: E2 08 00 EC 28 80 11 00 00 00 00 00 00 8E [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 17 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 17 00 EC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DF [20:18:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:18:51]wFMCommunicate OK [20:18:51]requested_item fd.num is exist - process it [20:18:51]SAM_PROTO_GetFieldsCounters [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 13 00 00 [20:18:51]Write to MH i2c: E2 08 00 ED 28 80 13 00 00 00 00 00 00 91 [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 62 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 62 00 ED 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 22 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [20:18:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 22 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:51]wFMCommunicate OK [20:18:51]SAM_PROTO_GetFieldsCounters done [20:18:51]requested_item shift.num is exist - process it [20:18:51]requested_item shift.opened is exist - process it [20:18:51]req_shift_opened [20:18:51]FM_GetShiftState [20:18:51]SAM_PROTO_GetShiftState [20:18:51]wFMCommunicate request_size=4 [20:18:51]MH_SAM_APDU [20:18:51]CAPDU: 80 13 01 00 [20:18:51]Write to MH i2c: E2 08 00 EE 28 80 13 01 00 00 00 00 00 93 [20:18:51]Write i2c OK [20:18:51]MH_I2C_Read... [20:18:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:51]Read from MH i2c: E2 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 0E 00 [20:18:51]MH_I2C_Read... [20:18:51]Read from MH i2c: E2 0E 00 EE 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2B [20:18:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:18:51]wFMCommunicate OK [20:18:51]SAM_PROTO_GetShiftState done [20:18:51]FM_GetShiftState done [20:18:51]req_shift_opened done [20:18:51]requested_item shift.open_date is exist - process it [20:18:51]req_shift_open_date [20:18:51]req_shift_open_date done [20:18:51]produce_requested_data done [20:18:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112418,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:18:51]process_action_free close_receipt [20:18:51]json_value_free [20:18:51]json_value_free done [20:18:51]process_json_proto returns [20:18:51]Send response to host [20:18:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112418,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:18:51]free response buf [20:18:51]execute_script done [20:18:51]execute_script returns [20:18:51]free content buf [20:18:51]Sock 8.Close socket [20:18:51]Sock 8.Thread stoped [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:16]accept exits with 9 [20:19:16]New connection [20:19:16]New thread 3066682724 created [20:19:16]Thread 3066826084 joined [20:19:16]Waiting for new connection... [20:19:16] Sock 9.Parse request [20:19:16]Sock 9.Check first char [20:19:16]Sock 9.First char is OK [20:19:16]request: POST /json_proto HTTP/1.0 [20:19:16]Method: POST [20:19:16]URL: /json_proto [20:19:16]Method is POST - this is cgi request [20:19:16]url: /json_proto [20:19:16]query_string will be loaded in cgi processing [20:19:16]execute_cgi json_proto POST (null) [20:19:16]execute_cgi path=json_proto method=POST [20:19:16]POST find Content-Length [20:19:16]Host: 172.17.96.197:8080 [20:19:16]Content-Length: 649 [20:19:16]Content-Type: application/json [20:19:16] [20:19:16]POST finish read [20:19:16]Found Content-Length = 649 [20:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10444", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 5.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:16]execute_script... [20:19:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10444", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 5.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:16]POST & json_proto [20:19:16]process_json_proto [20:19:16]json parsed OK: [20:19:16]protocol is kg_v1.0 [20:19:16]action value=close_receipt [20:19:16]process_action close_receipt [20:19:16]cmd_close_receipt [20:19:16]MH_GetDate [20:19:16]Write to MH i2c: F0 00 00 EF 28 06 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: F0 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: F0 09 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: F0 09 00 EF 28 00 45 3A 1C 66 E0 85 7F 64 58 [20:19:16]GetLastDocTimeStamp 1713125929 [20:19:16]current date 1713125957 [20:19:16]FM_GetShiftState [20:19:16]SAM_PROTO_GetShiftState [20:19:16]wFMCommunicate request_size=4 [20:19:16]MH_SAM_APDU [20:19:16]CAPDU: 80 13 01 00 [20:19:16]Write to MH i2c: E2 08 00 F0 28 80 13 01 00 00 00 00 00 95 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:16]Read from MH i2c: E2 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 0E 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 0E 00 F0 28 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2D [20:19:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:19:16]wFMCommunicate OK [20:19:16]SAM_PROTO_GetShiftState done [20:19:16]FM_GetShiftState done [20:19:16]opened in 1713054696 [20:19:16]opened+sec_in_day 1713141096 [20:19:16]quantity*price = 52500 [20:19:16]sum+1 = 52501 [20:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 525.00 НСП 1% : 4.65 НДС 12% : 55.75 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 318 14.04.2024 20:19 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112419 ФПД: 189948803227216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201917&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112419&fm=189948803227216&tin=02508201610067®Number=0000000000094237&sum=52500 0 [20:19:17]StoreToDocumentArchive [20:19:17]shift 357 fd 112419 [20:19:17]save to /storage/0357/doc_00112419 [20:19:17]save last doc name /storage/0357/doc_00112419 to /storage/kkm_last_doc_name [20:19:17]save OK [20:19:17]Clear old archive folders... [20:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:19:17]tlvbuf is 00205690 [20:19:17]SAM_PROTO_ClearQueue [20:19:17]wFMCommunicate request_size=4 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 09 00 00 [20:19:17]Write to MH i2c: E2 08 00 FD 28 80 09 00 00 00 00 00 00 97 [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 FD 28 00 90 00 99 [20:19:17]RAPDU: 90 00 [20:19:17]wFMCommunicate OK [20:19:17]SAM_PROTO_ClearQueue done [20:19:17]KKMCreateOFDPacket [20:19:17]OFDProtocolAddRootSTLVToBuf [20:19:17]FM_MakeSignedData [20:19:17]FM_MakeSignedData [20:19:17]SAM_PROTO_SignData [20:19:17]wFMCommunicate request_size=4 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 0D 01 02 [20:19:17]Write to MH i2c: E2 08 00 FE 28 80 0D 01 02 00 00 00 00 9F [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 FE 28 00 90 00 9A [20:19:17]RAPDU: 90 00 [20:19:17]wFMCommunicate OK [20:19:17]wFMCommunicate request_size=255 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 45 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [20:19:17]Write to MH i2c: E2 02 01 FF 28 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 45 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 CB [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 FF 28 00 90 00 9B [20:19:17]RAPDU: 90 00 [20:19:17]wFMCommunicate OK [20:19:17]wFMCommunicate request_size=41 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B7 01 00 35 04 06 00 AC C1 E6 F1 1E 50 [20:19:17]Write to MH i2c: E2 2C 00 00 29 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B7 01 00 35 04 06 00 AC C1 E6 F1 1E 50 00 00 FD [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 03 00 00 29 00 90 00 9D [20:19:17]RAPDU: 90 00 [20:19:17]wFMCommunicate OK [20:19:17]wFMCommunicate request_size=4 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 0D 03 02 [20:19:17]Write to MH i2c: E2 08 00 01 29 80 0D 03 02 00 00 00 00 A5 [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 0B 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 0B 00 01 29 00 EE D4 FE 98 89 13 41 DB 90 00 B6 [20:19:17]RAPDU: EE D4 FE 98 89 13 41 DB 90 00 [20:19:17]wFMCommunicate OK [20:19:17]SAM_PROTO_SignData done [20:19:17]FM_MakeSignedData done [20:19:17]CreateOFDProtocolMessage [20:19:17]wFMCommunicate request_size=4 [20:19:17]MH_SAM_APDU [20:19:17]CAPDU: 80 11 00 00 [20:19:17]Write to MH i2c: E2 08 00 02 29 80 11 00 00 00 00 00 00 A5 [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:17]Read from MH i2c: E2 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 17 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: E2 17 00 02 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F6 [20:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:19:17]wFMCommunicate OK [20:19:17]CreateOFDProtocolMessage done [20:19:17]OFDSenderStorePacket 112419 [20:19:17]StoreOFDPacket docnum=112419 [20:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 03 F1 26 01 69 7A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 45 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B7 01 00 35 04 06 00 AC C1 E6 F1 1E 50 EE D4 FE 98 89 13 41 DB [20:19:17]CheckFolder [20:19:17]dirname=/storage/ofd_packets [20:19:17]CheckFolder done [20:19:17]ProducePacketName [20:19:17]name=ofd_packets/00112419 [20:19:17]NVStorageSaveData ofd_packets/00112419 [20:19:17]File name is /storage/ofd_packets/00112419 [20:19:17]Write 332 bytes [20:19:17]NVStorageSaveData done [20:19:17]OFDSenderStorePacket done [20:19:17]KKMCreateOFDPacket done [20:19:17]NVStorageSaveData kkm_last_timestamp [20:19:17]File name is /storage/kkm_last_timestamp [20:19:17]Write 4 bytes [20:19:17]NVStorageSaveData done [20:19:17]ExternCall_PrintAddStr [20:19:17]wPrintStart [20:19:17]Write to MH i2c: 01 00 00 03 29 2C [20:19:17]Write i2c OK [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: 01 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: 01 07 00 [20:19:17]MH_I2C_Read... [20:19:17]Read from MH i2c: 01 07 00 03 29 00 00 00 00 00 FF 0F 41 [20:19:17]RasterBufferAndPrint [20:19:17]line Счет N : (3)10444 [20:19:17]line ИНН: 02508201610067 [20:19:17]line Контрольно-Кассовый Чек [20:19:17]line ПРОДАЖА [20:19:17]line Товар: 2000034730018 [20:19:17]line Кофе Американо (GABB TRADE) [20:19:17]line 5.000 * 105.00 [20:19:17]line = 525.00 [20:19:17]line НДС 12% НСП 1% [20:19:17]line > о реализуемом товаре [20:19:17]line ИТОГО: 525.00 [20:19:17]line НСП 1% : 4.65 [20:19:17]line НДС 12% : 55.75 [20:19:17]line Наличными: 525.00 [20:19:17]line Безнал.: 0.00 [20:19:17]line Место: АЗС № 47 "Партнер Нефть" [20:19:17]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:19:17]line СНО: Общий режим [20:19:17]line Чек 318 14.04.2024 20:19 [20:19:17]line Смена: 357 ФФД: 1.0 [20:19:17]line ЗНМ: 0300000138 [20:19:17]line РНМ: 0000000000094237 [20:19:17]line Версия ККМ: 001 [20:19:17]line ФМ: 0000000000875019 [20:19:18]line ФД: 112419 [20:19:18]line ФПД: 189948803227216 [20:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T201917&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112419&fm=189948803227216&tin=02508201610067®Number=0000000000094237&sum=52500 [20:19:18]line 0 [20:19:18]OFD Sender: Processing packet 112419 [packets to send 71, broken 70] [20:19:18]ProducePacketName [20:19:18]name=ofd_packets/00112419 [20:19:18]OFD Sender: To server: pG, [20:19:18]CommunicateWithHost lk.salyk.kg:30040 [20:19:18]ConnectInit lk.salyk.kg [20:19:18]written 0, free lines is 4095 [20:19:18]Connected sock=10 [20:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 03 F1 26 01 69 7A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 45 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B7 01 00 35 04 06 00 AC C1 E6 F1 1E 50 EE D4 FE 98 89 13 41 DB [20:19:18]Write to MH i2c: 01 00 00 2C 29 55 [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: 01 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: 01 07 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: 01 07 00 2C 29 00 00 00 00 00 F1 0C 59 [20:19:18]RasterBufferAndPrint [20:19:18]line [20:19:18]line [20:19:18]line [20:19:18]line [20:19:18]line [20:19:18]written 0, free lines is 3319 [20:19:18]MH_Cut [20:19:18]Write to MH i2c: D1 01 00 33 29 01 2E [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: D1 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: D1 01 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: D1 01 00 33 29 00 2D [20:19:18]Write to MH i2c: 01 00 00 34 29 5D [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 70 9C 47 00 6A C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 23 B7 01 00 F4 03 04 00 D0 E1 1B 66 B6 04 01 00 00 BB 86 1E 22 A6 0A F9 EC [20:19:18]CommunicateWithHost err = 0 [20:19:18]CheckOFDResponse [20:19:18]1017 (14) - 77093643461234 [20:19:18]1041 (16) - 0000000000875019 [20:19:18]1040 (4) - 112419 [20:19:18]1012 (4) - 14.04.2024 14:01 [20:19:18]1206 (1) - 0 [20:19:18]OFD Sender: Remove packet 112419 [20:19:18]ProducePacketName [20:19:18]name=ofd_packets/00112419 [20:19:18]NVStorageDeleteData [20:19:19]OFD Sender: No OFD packet to send [20:19:19]*** Cut start [20:19:19]*** Partial cut [20:19:19]*** CUTSNS_PIN = 1 [20:19:19]*** CUTSNS_PIN = 0 [20:19:19]*** Brake cut motor [20:19:19]Read from MH i2c: 01 [20:19:19]MH_I2C_Read... [20:19:19]*** Stop cut motor [20:19:19]*** Cut end [20:19:19]Read from MH i2c: 01 07 00 [20:19:19]MH_I2C_Read... [20:19:19]Read from MH i2c: 01 07 00 34 29 00 00 00 00 00 FF 0F 72 [20:19:19]process_action close_receipt done [20:19:19]requested_data is exist [20:19:19]produce_requested_data [20:19:19]requested_item fm.sn is exist - process it [20:19:19]wFMCommunicate request_size=4 [20:19:19]MH_SAM_APDU [20:19:19]CAPDU: 80 11 00 00 [20:19:19]Write to MH i2c: E2 08 00 35 29 80 11 00 00 00 00 00 00 D8 [20:19:19]Write i2c OK [20:19:19]MH_I2C_Read... [20:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:19]Read from MH i2c: E2 [20:19:19]MH_I2C_Read... [20:19:19]Read from MH i2c: E2 17 00 [20:19:19]MH_I2C_Read... [20:19:19]Read from MH i2c: E2 17 00 35 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 29 [20:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:19:19]wFMCommunicate OK [20:19:19]requested_item fd.num is exist - process it [20:19:19]SAM_PROTO_GetFieldsCounters [20:19:19]wFMCommunicate request_size=4 [20:19:19]MH_SAM_APDU [20:19:19]CAPDU: 80 13 00 00 [20:19:19]Write to MH i2c: E2 08 00 36 29 80 13 00 00 00 00 00 00 DB [20:19:19]Write i2c OK [20:19:19]MH_I2C_Read... [20:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:20]Read from MH i2c: E2 [20:19:20]MH_I2C_Read... [20:19:20]Read from MH i2c: E2 62 00 [20:19:20]MH_I2C_Read... [20:19:20]Read from MH i2c: E2 62 00 36 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 23 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [20:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 23 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:19:20]wFMCommunicate OK [20:19:20]SAM_PROTO_GetFieldsCounters done [20:19:20]requested_item shift.num is exist - process it [20:19:20]requested_item shift.opened is exist - process it [20:19:20]req_shift_opened [20:19:20]FM_GetShiftState [20:19:20]SAM_PROTO_GetShiftState [20:19:20]wFMCommunicate request_size=4 [20:19:20]MH_SAM_APDU [20:19:20]CAPDU: 80 13 01 00 [20:19:20]Write to MH i2c: E2 08 00 37 29 80 13 01 00 00 00 00 00 DD [20:19:20]Write i2c OK [20:19:20]MH_I2C_Read... [20:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:20]Read from MH i2c: E2 [20:19:20]MH_I2C_Read... [20:19:20]Read from MH i2c: E2 0E 00 [20:19:20]MH_I2C_Read... [20:19:20]Read from MH i2c: E2 0E 00 37 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 75 [20:19:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:19:20]wFMCommunicate OK [20:19:20]SAM_PROTO_GetShiftState done [20:19:20]FM_GetShiftState done [20:19:20]req_shift_opened done [20:19:20]requested_item shift.open_date is exist - process it [20:19:20]req_shift_open_date [20:19:20]req_shift_open_date done [20:19:20]produce_requested_data done [20:19:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112419,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:19:20]process_action_free close_receipt [20:19:20]json_value_free [20:19:20]json_value_free done [20:19:20]process_json_proto returns [20:19:20]Send response to host [20:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112419,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:19:20]free response buf [20:19:20]execute_script done [20:19:20]execute_script returns [20:19:20]free content buf [20:19:20]Sock 9.Close socket [20:19:20]Sock 9.Thread stoped [20:19:24]OFD Sender: No OFD packet to send [20:19:29]OFD Sender: No OFD packet to send [20:19:34]OFD Sender: No OFD packet to send [20:19:39]OFD Sender: No OFD packet to send [20:19:44]OFD Sender: No OFD packet to send [20:19:49]OFD Sender: No OFD packet to send [20:19:54]OFD Sender: No OFD packet to send [20:19:59]OFD Sender: No OFD packet to send [20:20:04]OFD Sender: No OFD packet to send [20:20:09]OFD Sender: No OFD packet to send [20:20:14]OFD Sender: No OFD packet to send [20:20:19]OFD Sender: No OFD packet to send [20:20:24]OFD Sender: No OFD packet to send [20:20:29]OFD Sender: No OFD packet to send [20:20:34]OFD Sender: No OFD packet to send [20:20:39]OFD Sender: No OFD packet to send [20:20:44]OFD Sender: No OFD packet to send [20:20:49]OFD Sender: No OFD packet to send [20:20:54]OFD Sender: No OFD packet to send [20:20:59]OFD Sender: No OFD packet to send [20:21:04]OFD Sender: No OFD packet to send [20:21:09]OFD Sender: No OFD packet to send [20:21:14]OFD Sender: No OFD packet to send [20:21:19]OFD Sender: No OFD packet to send [20:21:24]OFD Sender: No OFD packet to send [20:21:29]OFD Sender: No OFD packet to send [20:21:34]OFD Sender: No OFD packet to send [20:21:39]OFD Sender: No OFD packet to send [20:21:44]OFD Sender: No OFD packet to send [20:21:49]OFD Sender: No OFD packet to send [20:21:53]accept exits with 8 [20:21:53]New connection [20:21:53]New thread 3066826084 created [20:21:53]Thread 3066682724 joined [20:21:53]Waiting for new connection... [20:21:53] Sock 8.Parse request [20:21:53]Sock 8.Check first char [20:21:53]Sock 8.First char is OK [20:21:53]request: POST /json_proto HTTP/1.0 [20:21:53]Method: POST [20:21:53]URL: /json_proto [20:21:53]Method is POST - this is cgi request [20:21:53]url: /json_proto [20:21:53]query_string will be loaded in cgi processing [20:21:53]execute_cgi json_proto POST (null) [20:21:53]execute_cgi path=json_proto method=POST [20:21:53]POST find Content-Length [20:21:53]Host: 172.17.96.197:8080 [20:21:53]Content-Length: 678 [20:21:53]Content-Type: application/json [20:21:53] [20:21:53]POST finish read [20:21:53]Found Content-Length = 678 [20:21:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48716", "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.40, "quantity" : 62.160, "sum" : 4500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:53]execute_script... [20:21: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)48716", "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.40, "quantity" : 62.160, "sum" : 4500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:21:53]POST & json_proto [20:21:53]process_json_proto [20:21:53]json parsed OK: [20:21:53]protocol is kg_v1.0 [20:21:53]action value=close_receipt [20:21:53]process_action close_receipt [20:21:53]cmd_close_receipt [20:21:53]MH_GetDate [20:21:53]Write to MH i2c: F0 00 00 38 29 50 [20:21:53]Write i2c OK [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: F0 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: F0 09 00 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: F0 09 00 38 29 00 E3 3A 1C 66 E0 85 7F 64 40 [20:21:53]GetLastDocTimeStamp 1713125957 [20:21:53]current date 1713126115 [20:21:53]FM_GetShiftState [20:21:53]SAM_PROTO_GetShiftState [20:21:53]wFMCommunicate request_size=4 [20:21:53]MH_SAM_APDU [20:21:53]CAPDU: 80 13 01 00 [20:21:53]Write to MH i2c: E2 08 00 39 29 80 13 01 00 00 00 00 00 DF [20:21:53]Write i2c OK [20:21:53]MH_I2C_Read... [20:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:53]Read from MH i2c: E2 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: E2 0E 00 [20:21:53]MH_I2C_Read... [20:21:53]Read from MH i2c: E2 0E 00 39 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 77 [20:21:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:21:53]wFMCommunicate OK [20:21:53]SAM_PROTO_GetShiftState done [20:21:53]FM_GetShiftState done [20:21:53]opened in 1713054696 [20:21:53]opened+sec_in_day 1713141096 [20:21:53]quantity*price = 450038 [20:21:53]sum+1 = 450039 [20:21:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.92 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 319 14.04.2024 20:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112420 ФПД: 205030792186058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T202155&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112420&fm=205030792186058&tin=02508201610067®Number=0000000000094237&sum=450000 [20:21:54]StoreToDocumentArchive [20:21:54]shift 357 fd 112420 [20:21:54]save to /storage/0357/doc_00112420 [20:21:54]save last doc name /storage/0357/doc_00112420 to /storage/kkm_last_doc_name [20:21:54]save OK [20:21:54]Clear old archive folders... [20:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:21:54]tlvbuf is 0022E530 [20:21:54]SAM_PROTO_ClearQueue [20:21:54]wFMCommunicate request_size=4 [20:21:54]MH_SAM_APDU [20:21:54]CAPDU: 80 09 00 00 [20:21:54]Write to MH i2c: E2 08 00 46 29 80 09 00 00 00 00 00 00 E1 [20:21:54]Write i2c OK [20:21:54]MH_I2C_Read... [20:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:21:54]Read from MH i2c: E2 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 03 00 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 03 00 46 29 00 90 00 E3 [20:21:54]RAPDU: 90 00 [20:21:54]wFMCommunicate OK [20:21:54]SAM_PROTO_ClearQueue done [20:21:54]KKMCreateOFDPacket [20:21:54]OFDProtocolAddRootSTLVToBuf [20:21:54]FM_MakeSignedData [20:21:54]FM_MakeSignedData [20:21:54]SAM_PROTO_SignData [20:21:54]wFMCommunicate request_size=4 [20:21:54]MH_SAM_APDU [20:21:54]CAPDU: 80 0D 01 02 [20:21:54]Write to MH i2c: E2 08 00 47 29 80 0D 01 02 00 00 00 00 E9 [20:21:54]Write i2c OK [20:21:54]MH_I2C_Read... [20:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:21:54]Read from MH i2c: E2 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 03 00 [20:21:54]MH_I2C_Read... [20:21:54]Read from MH i2c: E2 03 00 47 29 00 90 00 E4 [20:21:54]RAPDU: 90 00 [20:21:54]wFMCommunicate OK [20:21:54]wFMCommunicate request_size=255 [20:21:54]MH_SAM_APDU [20:21:54]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 D0 F2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 E3 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B7 01 00 35 04 06 00 BA 79 73 89 [20:21:54]Write to MH i2c: E2 02 01 48 29 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 D0 F2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 E3 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B7 01 00 35 04 06 00 BA 79 73 89 00 00 01 [20:21:54]Write i2c OK [20:21:54]MH_I2C_Read... [20:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:55]Read from MH i2c: E2 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 03 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 03 00 48 29 00 90 00 E5 [20:21:55]RAPDU: 90 00 [20:21:55]wFMCommunicate OK [20:21:55]wFMCommunicate request_size=7 [20:21:55]MH_SAM_APDU [20:21:55]CAPDU: 80 0D 02 02 02 48 CA [20:21:55]Write to MH i2c: E2 0A 00 49 29 80 0D 02 02 02 00 48 CA 00 00 02 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:21:55]Read from MH i2c: E2 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 03 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 03 00 49 29 00 90 00 E6 [20:21:55]RAPDU: 90 00 [20:21:55]wFMCommunicate OK [20:21:55]wFMCommunicate request_size=4 [20:21:55]MH_SAM_APDU [20:21:55]CAPDU: 80 0D 03 02 [20:21:55]Write to MH i2c: E2 08 00 4A 29 80 0D 03 02 00 00 00 00 EE [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:21:55]Read from MH i2c: E2 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 0B 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 0B 00 4A 29 00 0B EE CA FD AE 0F 2C 7F 90 00 17 [20:21:55]RAPDU: 0B EE CA FD AE 0F 2C 7F 90 00 [20:21:55]wFMCommunicate OK [20:21:55]SAM_PROTO_SignData done [20:21:55]FM_MakeSignedData done [20:21:55]CreateOFDProtocolMessage [20:21:55]wFMCommunicate request_size=4 [20:21:55]MH_SAM_APDU [20:21:55]CAPDU: 80 11 00 00 [20:21:55]Write to MH i2c: E2 08 00 4B 29 80 11 00 00 00 00 00 00 EE [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:55]Read from MH i2c: E2 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 17 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: E2 17 00 4B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3F [20:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:21:55]wFMCommunicate OK [20:21:55]CreateOFDProtocolMessage done [20:21:55]OFDSenderStorePacket 112420 [20:21:55]StoreOFDPacket docnum=112420 [20:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 F0 57 04 01 8D C6 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 D0 F2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 E3 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B7 01 00 35 04 06 00 BA 79 73 89 48 CA 0B EE CA FD AE 0F 2C 7F [20:21:55]CheckFolder [20:21:55]dirname=/storage/ofd_packets [20:21:55]CheckFolder done [20:21:55]ProducePacketName [20:21:55]name=ofd_packets/00112420 [20:21:55]NVStorageSaveData ofd_packets/00112420 [20:21:55]File name is /storage/ofd_packets/00112420 [20:21:55]Write 298 bytes [20:21:55]NVStorageSaveData done [20:21:55]OFDSenderStorePacket done [20:21:55]KKMCreateOFDPacket done [20:21:55]NVStorageSaveData kkm_last_timestamp [20:21:55]File name is /storage/kkm_last_timestamp [20:21:55]Write 4 bytes [20:21:55]NVStorageSaveData done [20:21:55]ExternCall_PrintAddStr [20:21:55]wPrintStart [20:21:55]Write to MH i2c: 01 00 00 4C 29 75 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 4C 29 00 00 00 00 00 FF 0F 8A [20:21:55]RasterBufferAndPrint [20:21:55]line Счет N : (1)48716 [20:21:55]line ИНН: 02508201610067 [20:21:55]line Контрольно-Кассовый Чек [20:21:55]line ПРОДАЖА [20:21:55]line ТРК (МРК, ГНК) : 61 [20:21:55]line Товар: 2710194210 [20:21:55]line ДТ-К-5 [20:21:55]line 62.160 * 72.40 [20:21:55]line = 4500.38 [20:21:55]line НДС 12% НСП 1% [20:21:55]line > о реализуемом товаре [20:21:55]line ОКРУГЛЕНИЕ: -0.38 [20:21:55]line ИТОГО: 4500.00 [20:21:55]line Внесено: 4500.00 [20:21:55]line СДАЧА: 0.00 [20:21:55]line НСП 1% : 39.83 [20:21:55]line НДС 12% : 477.92 [20:21:55]line Наличными: 4500.00 [20:21:55]line Безнал.: 0.00 [20:21:55]line Место: АЗС № 47 "Партнер Нефть" [20:21:55]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:21:55]line СНО: Общий режим [20:21:55]line Чек 319 14.04.2024 20:21 [20:21:55]line Смена: 357 ФФД: 1.0 [20:21:55]line ЗНМ: 0300000138 [20:21:55]line РНМ: 0000000000094237 [20:21:55]line Версия ККМ: 001 [20:21:55]line ФМ: 0000000000875019 [20:21:55]line ФД: 112420 [20:21:55]line ФПД: 205030792186058 [20:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T202155&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112420&fm=205030792186058&tin=02508201610067®Number=0000000000094237&sum=450000 [20:21:55]OFD Sender: Processing packet 112420 [packets to send 71, broken 70] [20:21:55]ProducePacketName [20:21:55]name=ofd_packets/00112420 [20:21:55]OFD Sender: To server: pG, [20:21:55]CommunicateWithHost lk.salyk.kg:30040 [20:21:55]ConnectInit lk.salyk.kg [20:21:55]written 0, free lines is 4095 [20:21:55]Connected sock=9 [20:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 F0 57 04 01 8D C6 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 D0 F2 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 F6 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 01 00 00 F4 03 04 00 E3 3A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B7 01 00 35 04 06 00 BA 79 73 89 48 CA 0B EE CA FD AE 0F 2C 7F [20:21:55]Write to MH i2c: 01 00 00 77 29 A0 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: 01 07 00 77 29 00 00 00 00 00 E0 0C 93 [20:21:55]RasterBufferAndPrint [20:21:55]line [20:21:55]line [20:21:55]line [20:21:55]line [20:21:55]line [20:21:55]written 0, free lines is 3302 [20:21:55]MH_Cut [20:21:55]Write to MH i2c: D1 01 00 7E 29 01 79 [20:21:55]Write i2c OK [20:21:55]MH_I2C_Read... [20:21:55]Read from MH i2c: D1 [20:21:56]MH_I2C_Read... [20:21:56]Read from MH i2c: D1 01 00 [20:21:56]MH_I2C_Read... [20:21:56]Read from MH i2c: D1 01 00 7E 29 00 78 [20:21:56]Write to MH i2c: 01 00 00 7F 29 A8 [20:21:56]Write i2c OK [20:21:56]MH_I2C_Read... [20:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4D E5 47 00 1E 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 24 B7 01 00 F4 03 04 00 6D E2 1B 66 B6 04 01 00 00 BC 6F 63 7A B9 64 50 50 [20:21:56]CommunicateWithHost err = 0 [20:21:56]CheckOFDResponse [20:21:56]1017 (14) - 77093643461234 [20:21:56]1041 (16) - 0000000000875019 [20:21:56]1040 (4) - 112420 [20:21:56]1012 (4) - 14.04.2024 14:04 [20:21:56]1206 (1) - 0 [20:21:56]OFD Sender: Remove packet 112420 [20:21:56]ProducePacketName [20:21:56]name=ofd_packets/00112420 [20:21:56]NVStorageDeleteData [20:21:56]OFD Sender: No OFD packet to send [20:21:56]*** Cut start [20:21:56]*** Partial cut [20:21:56]*** CUTSNS_PIN = 1 [20:21:56]*** CUTSNS_PIN = 0 [20:21:57]*** Brake cut motor [20:21:57]Read from MH i2c: 01 [20:21:57]MH_I2C_Read... [20:21:57]*** Stop cut motor [20:21:57]*** Cut end [20:21:57]Read from MH i2c: 01 07 00 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: 01 07 00 7F 29 00 00 00 00 00 FF 0F BD [20:21:57]process_action close_receipt done [20:21:57]requested_data is exist [20:21:57]produce_requested_data [20:21:57]requested_item fm.sn is exist - process it [20:21:57]wFMCommunicate request_size=4 [20:21:57]MH_SAM_APDU [20:21:57]CAPDU: 80 11 00 00 [20:21:57]Write to MH i2c: E2 08 00 80 29 80 11 00 00 00 00 00 00 23 [20:21:57]Write i2c OK [20:21:57]MH_I2C_Read... [20:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:21:57]Read from MH i2c: E2 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 17 00 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 17 00 80 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 74 [20:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:21:57]wFMCommunicate OK [20:21:57]requested_item fd.num is exist - process it [20:21:57]SAM_PROTO_GetFieldsCounters [20:21:57]wFMCommunicate request_size=4 [20:21:57]MH_SAM_APDU [20:21:57]CAPDU: 80 13 00 00 [20:21:57]Write to MH i2c: E2 08 00 81 29 80 13 00 00 00 00 00 00 26 [20:21:57]Write i2c OK [20:21:57]MH_I2C_Read... [20:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:21:57]Read from MH i2c: E2 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 62 00 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 62 00 81 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 24 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [20:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 24 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:21:57]wFMCommunicate OK [20:21:57]SAM_PROTO_GetFieldsCounters done [20:21:57]requested_item shift.num is exist - process it [20:21:57]requested_item shift.opened is exist - process it [20:21:57]req_shift_opened [20:21:57]FM_GetShiftState [20:21:57]SAM_PROTO_GetShiftState [20:21:57]wFMCommunicate request_size=4 [20:21:57]MH_SAM_APDU [20:21:57]CAPDU: 80 13 01 00 [20:21:57]Write to MH i2c: E2 08 00 82 29 80 13 01 00 00 00 00 00 28 [20:21:57]Write i2c OK [20:21:57]MH_I2C_Read... [20:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:21:57]Read from MH i2c: E2 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 0E 00 [20:21:57]MH_I2C_Read... [20:21:57]Read from MH i2c: E2 0E 00 82 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C0 [20:21:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:21:57]wFMCommunicate OK [20:21:57]SAM_PROTO_GetShiftState done [20:21:57]FM_GetShiftState done [20:21:57]req_shift_opened done [20:21:57]requested_item shift.open_date is exist - process it [20:21:57]req_shift_open_date [20:21:57]req_shift_open_date done [20:21:57]produce_requested_data done [20:21:57]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112420,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:21:57]process_action_free close_receipt [20:21:57]json_value_free [20:21:57]json_value_free done [20:21:57]process_json_proto returns [20:21:57]Send response to host [20:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112420,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:21:57]free response buf [20:21:57]execute_script done [20:21:57]execute_script returns [20:21:57]free content buf [20:21:57]Sock 8.Close socket [20:21:57]Sock 8.Thread stoped [20:22:01]OFD Sender: No OFD packet to send [20:22:06]OFD Sender: No OFD packet to send [20:22:11]OFD Sender: No OFD packet to send [20:22:16]OFD Sender: No OFD packet to send [20:22:21]OFD Sender: No OFD packet to send [20:22:26]OFD Sender: No OFD packet to send [20:22:31]OFD Sender: No OFD packet to send [20:22:36]OFD Sender: No OFD packet to send [20:22:41]OFD Sender: No OFD packet to send [20:22:46]OFD Sender: No OFD packet to send [20:22:51]OFD Sender: No OFD packet to send [20:22:56]OFD Sender: No OFD packet to send [20:23:01]OFD Sender: No OFD packet to send [20:23:06]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:24]accept exits with 10 [20:28:24]New connection [20:28:24]New thread 3066682724 created [20:28:24]Thread 3066826084 joined [20:28:24]Waiting for new connection... [20:28:24] Sock 10.Parse request [20:28:24]Sock 10.Check first char [20:28:24]Sock 10.First char is OK [20:28:24]request: POST /json_proto HTTP/1.0 [20:28:24]Method: POST [20:28:24]URL: /json_proto [20:28:24]Method is POST - this is cgi request [20:28:24]url: /json_proto [20:28:24]query_string will be loaded in cgi processing [20:28:24]execute_cgi json_proto POST (null) [20:28:24]execute_cgi path=json_proto method=POST [20:28:24]POST find Content-Length [20:28:24]Host: 172.17.96.197:8080 [20:28:24]Content-Length: 681 [20:28:24]Content-Type: application/json [20:28:24] [20:28:24]POST finish read [20:28:24]Found Content-Length = 681 [20:28:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "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" ] } } [20:28:24]execute_script... [20:28: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)48717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "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" ] } } [20:28:24]POST & json_proto [20:28:24]process_json_proto [20:28:24]json parsed OK: [20:28:24]protocol is kg_v1.0 [20:28:24]action value=close_receipt [20:28:24]process_action close_receipt [20:28:24]cmd_close_receipt [20:28:24]MH_GetDate [20:28:24]Write to MH i2c: F0 00 00 83 29 9B [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: F0 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: F0 09 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: F0 09 00 83 29 00 6A 3C 1C 66 E0 85 7F 64 14 [20:28:24]GetLastDocTimeStamp 1713126115 [20:28:24]current date 1713126506 [20:28:24]FM_GetShiftState [20:28:24]SAM_PROTO_GetShiftState [20:28:24]wFMCommunicate request_size=4 [20:28:24]MH_SAM_APDU [20:28:24]CAPDU: 80 13 01 00 [20:28:24]Write to MH i2c: E2 08 00 84 29 80 13 01 00 00 00 00 00 2A [20:28:24]Write i2c OK [20:28:24]MH_I2C_Read... [20:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:24]Read from MH i2c: E2 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0E 00 [20:28:24]MH_I2C_Read... [20:28:24]Read from MH i2c: E2 0E 00 84 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C2 [20:28:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:28:24]wFMCommunicate OK [20:28:24]SAM_PROTO_GetShiftState done [20:28:24]FM_GetShiftState done [20:28:24]opened in 1713054696 [20:28:24]opened+sec_in_day 1713141096 [20:28:24]quantity*price = 150011 [20:28:24]sum+1 = 150013 [20:28:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 320 14.04.2024 20:28 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112421 ФПД: 250080220268014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T202826&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112421&fm=250080220268014&tin=02508201610067®Number=0000000000094237&sum=150000 [20:28:25]StoreToDocumentArchive [20:28:25]shift 357 fd 112421 [20:28:25]save to /storage/0357/doc_00112421 [20:28:25]save last doc name /storage/0357/doc_00112421 to /storage/kkm_last_doc_name [20:28:25]save OK [20:28:25]Clear old archive folders... [20:28:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:28:25]tlvbuf is 0018A7D0 [20:28:25]SAM_PROTO_ClearQueue [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 09 00 00 [20:28:25]Write to MH i2c: E2 08 00 91 29 80 09 00 00 00 00 00 00 2C [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 91 29 00 90 00 2E [20:28:25]RAPDU: 90 00 [20:28:25]wFMCommunicate OK [20:28:25]SAM_PROTO_ClearQueue done [20:28:25]KKMCreateOFDPacket [20:28:25]OFDProtocolAddRootSTLVToBuf [20:28:25]FM_MakeSignedData [20:28:25]FM_MakeSignedData [20:28:25]SAM_PROTO_SignData [20:28:25]wFMCommunicate request_size=4 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 0D 01 02 [20:28:25]Write to MH i2c: E2 08 00 92 29 80 0D 01 02 00 00 00 00 34 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:28:25]Read from MH i2c: E2 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 [20:28:25]MH_I2C_Read... [20:28:25]Read from MH i2c: E2 03 00 92 29 00 90 00 2F [20:28:25]RAPDU: 90 00 [20:28:25]wFMCommunicate OK [20:28:25]wFMCommunicate request_size=255 [20:28:25]MH_SAM_APDU [20:28:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 5B 00 00 00 00 00 37 04 06 00 1E 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 40 01 00 00 F4 03 04 00 6A 3C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B7 01 00 35 04 06 00 E3 [20:28:25]Write to MH i2c: E2 02 01 93 29 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 40 01 00 00 F4 03 04 00 6A 3C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B7 01 00 35 04 06 00 E3 00 00 E8 [20:28:25]Write i2c OK [20:28:25]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 93 29 00 90 00 30 [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]wFMCommunicate request_size=10 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 0D 02 02 05 72 56 B1 C5 EE [20:28:26]Write to MH i2c: E2 0D 00 94 29 80 0D 02 02 05 00 72 56 B1 C5 EE 00 00 6D [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 03 00 94 29 00 90 00 31 [20:28:26]RAPDU: 90 00 [20:28:26]wFMCommunicate OK [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 0D 03 02 [20:28:26]Write to MH i2c: E2 08 00 95 29 80 0D 03 02 00 00 00 00 39 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0B 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 0B 00 95 29 00 0E 13 AE 60 54 CA 27 BC 90 00 6A [20:28:26]RAPDU: 0E 13 AE 60 54 CA 27 BC 90 00 [20:28:26]wFMCommunicate OK [20:28:26]SAM_PROTO_SignData done [20:28:26]FM_MakeSignedData done [20:28:26]CreateOFDProtocolMessage [20:28:26]wFMCommunicate request_size=4 [20:28:26]MH_SAM_APDU [20:28:26]CAPDU: 80 11 00 00 [20:28:26]Write to MH i2c: E2 08 00 96 29 80 11 00 00 00 00 00 00 39 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:26]Read from MH i2c: E2 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: E2 17 00 96 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8A [20:28:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:28:26]wFMCommunicate OK [20:28:26]CreateOFDProtocolMessage done [20:28:26]OFDSenderStorePacket 112421 [20:28:26]StoreOFDPacket docnum=112421 [20:28:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 E6 07 01 B1 36 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 40 01 00 00 F4 03 04 00 6A 3C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B7 01 00 35 04 06 00 E3 72 56 B1 C5 EE 0E 13 AE 60 54 CA 27 BC [20:28:26]CheckFolder [20:28:26]dirname=/storage/ofd_packets [20:28:26]CheckFolder done [20:28:26]ProducePacketName [20:28:26]name=ofd_packets/00112421 [20:28:26]NVStorageSaveData ofd_packets/00112421 [20:28:26]File name is /storage/ofd_packets/00112421 [20:28:26]Write 301 bytes [20:28:26]NVStorageSaveData done [20:28:26]OFDSenderStorePacket done [20:28:26]KKMCreateOFDPacket done [20:28:26]NVStorageSaveData kkm_last_timestamp [20:28:26]File name is /storage/kkm_last_timestamp [20:28:26]Write 4 bytes [20:28:26]NVStorageSaveData done [20:28:26]ExternCall_PrintAddStr [20:28:26]wPrintStart [20:28:26]Write to MH i2c: 01 00 00 97 29 C0 [20:28:26]Write i2c OK [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 [20:28:26]MH_I2C_Read... [20:28:26]Read from MH i2c: 01 07 00 97 29 00 00 00 00 00 FF 0F D5 [20:28:26]RasterBufferAndPrint [20:28:26]line Счет N : (1)48717 [20:28:26]line ИНН: 02508201610067 [20:28:26]line Контрольно-Кассовый Чек [20:28:26]line ПРОДАЖА [20:28:26]line ТРК (МРК, ГНК) : 11 [20:28:26]line Товар: 2710124130 [20:28:26]line Аи-92-К-5 [20:28:26]line 23.330 * 64.30 [20:28:26]line = 1500.12 [20:28:26]line НДС 12% НСП 1% [20:28:26]line > о реализуемом товаре [20:28:26]line ОКРУГЛЕНИЕ: -0.12 [20:28:26]line ИТОГО: 1500.00 [20:28:26]line Внесено: 1500.00 [20:28:26]line СДАЧА: 0.00 [20:28:26]line НСП 1% : 13.27 [20:28:26]line НДС 12% : 159.30 [20:28:26]line Наличными: 1500.00 [20:28:26]line Безнал.: 0.00 [20:28:26]line Место: АЗС № 47 "Партнер Нефть" [20:28:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:28:26]line СНО: Общий режим [20:28:26]line Чек 320 14.04.2024 20:28 [20:28:26]line Смена: 357 ФФД: 1.0 [20:28:26]line ЗНМ: 0300000138 [20:28:26]line РНМ: 0000000000094237 [20:28:26]line Версия ККМ: 001 [20:28:26]line ФМ: 0000000000875019 [20:28:26]line ФД: 112421 [20:28:26]line ФПД: 250080220268014 [20:28:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T202826&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112421&fm=250080220268014&tin=02508201610067®Number=0000000000094237&sum=150000 [20:28:26]OFD Sender: Processing packet 112421 [packets to send 71, broken 70] [20:28:26]ProducePacketName [20:28:26]name=ofd_packets/00112421 [20:28:26]OFD Sender: To server: pG, [20:28:26]CommunicateWithHost lk.salyk.kg:30040 [20:28:26]ConnectInit lk.salyk.kg [20:28:26]written 0, free lines is 4095 [20:28:26]Connected sock=9 [20:28:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 E6 07 01 B1 36 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 40 01 00 00 F4 03 04 00 6A 3C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B7 01 00 35 04 06 00 E3 72 56 B1 C5 EE 0E 13 AE 60 54 CA 27 BC [20:28:27]Write to MH i2c: 01 00 00 C2 29 EB [20:28:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 8B 98 47 00 FC 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 25 B7 01 00 F4 03 04 00 F4 E3 1B 66 B6 04 01 00 00 65 6D CB 26 17 13 0C AC [20:28:27]CommunicateWithHost err = 0 [20:28:27]CheckOFDResponse [20:28:27]1017 (14) - 77093643461234 [20:28:27]1041 (16) - 0000000000875019 [20:28:27]1040 (4) - 112421 [20:28:27]1012 (4) - 14.04.2024 14:11 [20:28:27]1206 (1) - 0 [20:28:27]OFD Sender: Remove packet 112421 [20:28:27]ProducePacketName [20:28:27]name=ofd_packets/00112421 [20:28:27]NVStorageDeleteData [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: 01 07 00 C2 29 00 00 00 00 00 DC 0C DA [20:28:27]RasterBufferAndPrint [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]line [20:28:27]written 0, free lines is 3319 [20:28:27]MH_Cut [20:28:27]Write to MH i2c: D1 01 00 C9 29 01 C4 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 [20:28:27]MH_I2C_Read... [20:28:27]Read from MH i2c: D1 01 00 C9 29 00 C3 [20:28:27]Write to MH i2c: 01 00 00 CA 29 F3 [20:28:27]Write i2c OK [20:28:27]MH_I2C_Read... [20:28:27]OFD Sender: No OFD packet to send [20:28:27]*** Cut start [20:28:27]*** Partial cut [20:28:27]*** CUTSNS_PIN = 1 [20:28:27]*** CUTSNS_PIN = 0 [20:28:28]*** Brake cut motor [20:28:28]Read from MH i2c: 01 [20:28:28]MH_I2C_Read... [20:28:28]*** Stop cut motor [20:28:28]*** Cut end [20:28:28]Read from MH i2c: 01 07 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: 01 07 00 CA 29 00 00 00 00 00 FF 0F 08 [20:28:28]process_action close_receipt done [20:28:28]requested_data is exist [20:28:28]produce_requested_data [20:28:28]requested_item fm.sn is exist - process it [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 11 00 00 [20:28:28]Write to MH i2c: E2 08 00 CB 29 80 11 00 00 00 00 00 00 6E [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 17 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 17 00 CB 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BF [20:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:28:28]wFMCommunicate OK [20:28:28]requested_item fd.num is exist - process it [20:28:28]SAM_PROTO_GetFieldsCounters [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 13 00 00 [20:28:28]Write to MH i2c: E2 08 00 CC 29 80 13 00 00 00 00 00 00 71 [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 62 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 62 00 CC 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 25 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [20:28:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 25 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:28:28]wFMCommunicate OK [20:28:28]SAM_PROTO_GetFieldsCounters done [20:28:28]requested_item shift.num is exist - process it [20:28:28]requested_item shift.opened is exist - process it [20:28:28]req_shift_opened [20:28:28]FM_GetShiftState [20:28:28]SAM_PROTO_GetShiftState [20:28:28]wFMCommunicate request_size=4 [20:28:28]MH_SAM_APDU [20:28:28]CAPDU: 80 13 01 00 [20:28:28]Write to MH i2c: E2 08 00 CD 29 80 13 01 00 00 00 00 00 73 [20:28:28]Write i2c OK [20:28:28]MH_I2C_Read... [20:28:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:28:28]Read from MH i2c: E2 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 0E 00 [20:28:28]MH_I2C_Read... [20:28:28]Read from MH i2c: E2 0E 00 CD 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0B [20:28:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:28:28]wFMCommunicate OK [20:28:28]SAM_PROTO_GetShiftState done [20:28:28]FM_GetShiftState done [20:28:28]req_shift_opened done [20:28:28]requested_item shift.open_date is exist - process it [20:28:28]req_shift_open_date [20:28:28]req_shift_open_date done [20:28:28]produce_requested_data done [20:28:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112421,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:28:28]process_action_free close_receipt [20:28:28]json_value_free [20:28:28]json_value_free done [20:28:28]process_json_proto returns [20:28:28]Send response to host [20:28:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112421,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:28:28]free response buf [20:28:28]execute_script done [20:28:28]execute_script returns [20:28:28]free content buf [20:28:28]Sock 10.Close socket [20:28:28]Sock 10.Thread stoped [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:17]OFD Sender: No OFD packet to send [20:30:22]OFD Sender: No OFD packet to send [20:30:27]OFD Sender: No OFD packet to send [20:30:32]OFD Sender: No OFD packet to send [20:30:37]OFD Sender: No OFD packet to send [20:30:42]OFD Sender: No OFD packet to send [20:30:47]OFD Sender: No OFD packet to send [20:30:52]OFD Sender: No OFD packet to send [20:30:56]accept exits with 8 [20:30:56]New connection [20:30:56]New thread 3066826084 created [20:30:56]Thread 3066682724 joined [20:30:56]Waiting for new connection... [20:30:56] Sock 8.Parse request [20:30:56]Sock 8.Check first char [20:30:56]Sock 8.First char is OK [20:30:56]request: POST /json_proto HTTP/1.0 [20:30:56]Method: POST [20:30:56]URL: /json_proto [20:30:56]Method is POST - this is cgi request [20:30:56]url: /json_proto [20:30:56]query_string will be loaded in cgi processing [20:30:56]execute_cgi json_proto POST (null) [20:30:56]execute_cgi path=json_proto method=POST [20:30:56]POST find Content-Length [20:30:56]Host: 172.17.96.197:8080 [20:30:56]Content-Length: 816 [20:30:56]Content-Type: application/json [20:30:56] [20:30:56]POST finish read [20:30:56]Found Content-Length = 816 [20:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48718", "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.30, "quantity" : 10.350, "sum" : 665.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" : 665.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:56]execute_script... [20:30: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)48718", "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.30, "quantity" : 10.350, "sum" : 665.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" : 665.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:30:56]POST & json_proto [20:30:56]process_json_proto [20:30:56]json parsed OK: [20:30:56]protocol is kg_v1.0 [20:30:56]action value=close_receipt [20:30:56]process_action close_receipt [20:30:56]cmd_close_receipt [20:30:56]MH_GetDate [20:30:56]Write to MH i2c: F0 00 00 CE 29 E6 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: F0 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: F0 09 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: F0 09 00 CE 29 00 02 3D 1C 66 E0 85 7F 64 F8 [20:30:56]GetLastDocTimeStamp 1713126506 [20:30:56]current date 1713126658 [20:30:56]FM_GetShiftState [20:30:56]SAM_PROTO_GetShiftState [20:30:56]wFMCommunicate request_size=4 [20:30:56]MH_SAM_APDU [20:30:56]CAPDU: 80 13 01 00 [20:30:56]Write to MH i2c: E2 08 00 CF 29 80 13 01 00 00 00 00 00 75 [20:30:56]Write i2c OK [20:30:56]MH_I2C_Read... [20:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:30:56]Read from MH i2c: E2 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0E 00 [20:30:56]MH_I2C_Read... [20:30:56]Read from MH i2c: E2 0E 00 CF 29 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0D [20:30:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:30:56]wFMCommunicate OK [20:30:56]SAM_PROTO_GetShiftState done [20:30:56]FM_GetShiftState done [20:30:56]opened in 1713054696 [20:30:56]opened+sec_in_day 1713141096 [20:30:56]quantity*price = 66550 [20:30:56]sum+1 = 66552 [20:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 665.51 НСП 1% : 5.89 НДС 12% : 70.67 Наличными: 0.00 Безнал.: 665.51 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 321 14.04.2024 20:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112422 ФПД: 104865359264125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203058&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112422&fm=104865359264125&tin=02508201610067®Number=0000000000094237&sum=66551 [20:30:58]StoreToDocumentArchive [20:30:58]shift 357 fd 112422 [20:30:58]save to /storage/0357/doc_00112422 [20:30:58]save last doc name /storage/0357/doc_00112422 to /storage/kkm_last_doc_name [20:30:58]save OK [20:30:58]Clear old archive folders... [20:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:30:58]tlvbuf is B6F36100 [20:30:58]SAM_PROTO_ClearQueue [20:30:58]wFMCommunicate request_size=4 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 09 00 00 [20:30:58]Write to MH i2c: E2 08 00 DC 29 80 09 00 00 00 00 00 00 77 [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 DC 29 00 90 00 79 [20:30:58]RAPDU: 90 00 [20:30:58]wFMCommunicate OK [20:30:58]SAM_PROTO_ClearQueue done [20:30:58]KKMCreateOFDPacket [20:30:58]OFDProtocolAddRootSTLVToBuf [20:30:58]FM_MakeSignedData [20:30:58]FM_MakeSignedData [20:30:58]SAM_PROTO_SignData [20:30:58]wFMCommunicate request_size=4 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 0D 01 02 [20:30:58]Write to MH i2c: E2 08 00 DD 29 80 0D 01 02 00 00 00 00 7F [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 DD 29 00 90 00 7A [20:30:58]RAPDU: 90 00 [20:30:58]wFMCommunicate OK [20:30:58]wFMCommunicate request_size=255 [20:30:58]MH_SAM_APDU [20:30: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 6E 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F7 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 02 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B7 01 00 35 04 06 00 5F [20:30:58]Write to MH i2c: E2 02 01 DE 29 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 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F7 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 02 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B7 01 00 35 04 06 00 5F 00 00 F0 [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 DE 29 00 90 00 7B [20:30:58]RAPDU: 90 00 [20:30:58]wFMCommunicate OK [20:30:58]wFMCommunicate request_size=10 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 0D 02 02 05 5F DE 7C F9 7D [20:30:58]Write to MH i2c: E2 0D 00 DF 29 80 0D 02 02 05 00 5F DE 7C F9 7D 00 00 BB [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 03 00 DF 29 00 90 00 7C [20:30:58]RAPDU: 90 00 [20:30:58]wFMCommunicate OK [20:30:58]wFMCommunicate request_size=4 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 0D 03 02 [20:30:58]Write to MH i2c: E2 08 00 E0 29 80 0D 03 02 00 00 00 00 84 [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 0B 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 0B 00 E0 29 00 F9 D8 1C 9B 2B 4F E2 6D 90 00 D6 [20:30:58]RAPDU: F9 D8 1C 9B 2B 4F E2 6D 90 00 [20:30:58]wFMCommunicate OK [20:30:58]SAM_PROTO_SignData done [20:30:58]FM_MakeSignedData done [20:30:58]CreateOFDProtocolMessage [20:30:58]wFMCommunicate request_size=4 [20:30:58]MH_SAM_APDU [20:30:58]CAPDU: 80 11 00 00 [20:30:58]Write to MH i2c: E2 08 00 E1 29 80 11 00 00 00 00 00 00 84 [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:30:58]Read from MH i2c: E2 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 17 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: E2 17 00 E1 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [20:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:30:58]wFMCommunicate OK [20:30:58]CreateOFDProtocolMessage done [20:30:58]OFDSenderStorePacket 112422 [20:30:58]StoreOFDPacket docnum=112422 [20:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 F1 07 01 D4 93 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 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F7 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 02 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B7 01 00 35 04 06 00 5F 5F DE 7C F9 7D F9 D8 1C 9B 2B 4F E2 6D [20:30:58]CheckFolder [20:30:58]dirname=/storage/ofd_packets [20:30:58]CheckFolder done [20:30:58]ProducePacketName [20:30:58]name=ofd_packets/00112422 [20:30:58]NVStorageSaveData ofd_packets/00112422 [20:30:58]File name is /storage/ofd_packets/00112422 [20:30:58]Write 301 bytes [20:30:58]NVStorageSaveData done [20:30:58]OFDSenderStorePacket done [20:30:58]KKMCreateOFDPacket done [20:30:58]NVStorageSaveData kkm_last_timestamp [20:30:58]File name is /storage/kkm_last_timestamp [20:30:58]Write 4 bytes [20:30:58]NVStorageSaveData done [20:30:58]ExternCall_PrintAddStr [20:30:58]wPrintStart [20:30:58]Write to MH i2c: 01 00 00 E2 29 0B [20:30:58]Write i2c OK [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 07 00 [20:30:58]MH_I2C_Read... [20:30:58]Read from MH i2c: 01 07 00 E2 29 00 00 00 00 00 FF 0F 20 [20:30:58]RasterBufferAndPrint [20:30:58]line Счет N : (1)48718 [20:30:58]line ИНН: 02508201610067 [20:30:58]line Контрольно-Кассовый Чек [20:30:58]line ПРОДАЖА [20:30:58]line ТРК (МРК, ГНК) : 42 [20:30:58]line Товар: 2710124130 [20:30:58]line Аи-92-К-5 [20:30:58]line 10.350 * 64.30 [20:30:58]line = 665.51 [20:30:58]line НДС 12% НСП 1% [20:30:58]line > о реализуемом товаре [20:30:58]line ИТОГО: 665.51 [20:30:58]line НСП 1% : 5.89 [20:30:58]line НДС 12% : 70.67 [20:30:58]line Наличными: 0.00 [20:30:58]line Безнал.: 665.51 [20:30:58]line Место: АЗС № 47 "Партнер Нефть" [20:30:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:30:58]line СНО: Общий режим [20:30:58]line Чек 321 14.04.2024 20:30 [20:30:58]line Смена: 357 ФФД: 1.0 [20:30:58]line ЗНМ: 0300000138 [20:30:58]line РНМ: 0000000000094237 [20:30:58]line Версия ККМ: 001 [20:30:58]line Платежная система: Бакай Банк [20:30:58]line ФМ: 0000000000875019 [20:30:58]line ФД: 112422 [20:30:58]line ФПД: 104865359264125 [20:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203058&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112422&fm=104865359264125&tin=02508201610067®Number=0000000000094237&sum=66551 [20:30:58]OFD Sender: Processing packet 112422 [packets to send 71, broken 70] [20:30:58]ProducePacketName [20:30:58]name=ofd_packets/00112422 [20:30:58]OFD Sender: To server: pG, [20:30:58]CommunicateWithHost lk.salyk.kg:30040 [20:30:58]ConnectInit lk.salyk.kg [20:30:58]written 0, free lines is 4095 [20:30:59]Connected sock=11 [20:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B2 F1 07 01 D4 93 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 28 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 F7 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F7 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 1B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F7 03 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 02 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 26 B7 01 00 35 04 06 00 5F 5F DE 7C F9 7D F9 D8 1C 9B 2B 4F E2 6D [20:30:59]Write to MH i2c: 01 00 00 0C 2A 36 [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: 01 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: 01 07 00 [20:30:59]MH_I2C_Read... [20:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DE AD 47 00 83 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 38 37 35 30 31 39 10 04 04 00 26 B7 01 00 F4 03 04 00 8D E4 1B 66 B6 04 01 00 00 78 01 39 CB A3 8D FA 92 [20:30:59]CommunicateWithHost err = 0 [20:30:59]CheckOFDResponse [20:30:59]1017 (14) - 77093643461234 [20:30:59]1041 (16) - 0000000000875019 [20:30:59]1040 (4) - 112422 [20:30:59]1012 (4) - 14.04.2024 14:13 [20:30:59]1206 (1) - 0 [20:30:59]OFD Sender: Remove packet 112422 [20:30:59]ProducePacketName [20:30:59]name=ofd_packets/00112422 [20:30:59]NVStorageDeleteData [20:30:59]Read from MH i2c: 01 07 00 0C 2A 00 00 00 00 00 E7 0C 30 [20:30:59]RasterBufferAndPrint [20:30:59]line [20:30:59]line [20:30:59]line [20:30:59]line [20:30:59]line [20:30:59]written 0, free lines is 3328 [20:30:59]MH_Cut [20:30:59]Write to MH i2c: D1 01 00 13 2A 01 0F [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: D1 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: D1 01 00 [20:30:59]MH_I2C_Read... [20:30:59]Read from MH i2c: D1 01 00 13 2A 00 0E [20:30:59]Write to MH i2c: 01 00 00 14 2A 3E [20:30:59]Write i2c OK [20:30:59]MH_I2C_Read... [20:30:59]OFD Sender: No OFD packet to send [20:31:00]*** Cut start [20:31:00]*** Partial cut [20:31:00]*** CUTSNS_PIN = 1 [20:31:00]*** CUTSNS_PIN = 0 [20:31:00]*** Brake cut motor [20:31:00]Read from MH i2c: 01 [20:31:00]MH_I2C_Read... [20:31:00]*** Stop cut motor [20:31:00]*** Cut end [20:31:00]Read from MH i2c: 01 07 00 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: 01 07 00 14 2A 00 00 00 00 00 FF 0F 53 [20:31:00]process_action close_receipt done [20:31:00]requested_data is exist [20:31:00]produce_requested_data [20:31:00]requested_item fm.sn is exist - process it [20:31:00]wFMCommunicate request_size=4 [20:31:00]MH_SAM_APDU [20:31:00]CAPDU: 80 11 00 00 [20:31:00]Write to MH i2c: E2 08 00 15 2A 80 11 00 00 00 00 00 00 B9 [20:31:00]Write i2c OK [20:31:00]MH_I2C_Read... [20:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:00]Read from MH i2c: E2 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: E2 17 00 [20:31:00]MH_I2C_Read... [20:31:00]Read from MH i2c: E2 17 00 15 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0A [20:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:31:00]wFMCommunicate OK [20:31:00]requested_item fd.num is exist - process it [20:31:00]SAM_PROTO_GetFieldsCounters [20:31:00]wFMCommunicate request_size=4 [20:31:00]MH_SAM_APDU [20:31:00]CAPDU: 80 13 00 00 [20:31:00]Write to MH i2c: E2 08 00 16 2A 80 13 00 00 00 00 00 00 BC [20:31:00]Write i2c OK [20:31:00]MH_I2C_Read... [20:31:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 62 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 62 00 16 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 26 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [20:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 26 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_GetFieldsCounters done [20:31:01]requested_item shift.num is exist - process it [20:31:01]requested_item shift.opened is exist - process it [20:31:01]req_shift_opened [20:31:01]FM_GetShiftState [20:31:01]SAM_PROTO_GetShiftState [20:31:01]wFMCommunicate request_size=4 [20:31:01]MH_SAM_APDU [20:31:01]CAPDU: 80 13 01 00 [20:31:01]Write to MH i2c: E2 08 00 17 2A 80 13 01 00 00 00 00 00 BE [20:31:01]Write i2c OK [20:31:01]MH_I2C_Read... [20:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:01]Read from MH i2c: E2 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0E 00 [20:31:01]MH_I2C_Read... [20:31:01]Read from MH i2c: E2 0E 00 17 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 56 [20:31:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:31:01]wFMCommunicate OK [20:31:01]SAM_PROTO_GetShiftState done [20:31:01]FM_GetShiftState done [20:31:01]req_shift_opened done [20:31:01]requested_item shift.open_date is exist - process it [20:31:01]req_shift_open_date [20:31:01]req_shift_open_date done [20:31:01]produce_requested_data done [20:31:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112422,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:31:01]process_action_free close_receipt [20:31:01]json_value_free [20:31:01]json_value_free done [20:31:01]process_json_proto returns [20:31:01]Send response to host [20:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112422,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:31:01]free response buf [20:31:01]execute_script done [20:31:01]execute_script returns [20:31:01]free content buf [20:31:01]Sock 8.Close socket [20:31:01]Sock 8.Thread stoped [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:30]OFD Sender: No OFD packet to send [20:32:35]OFD Sender: No OFD packet to send [20:32:40]OFD Sender: No OFD packet to send [20:32:45]OFD Sender: No OFD packet to send [20:32:50]OFD Sender: No OFD packet to send [20:32:55]OFD Sender: No OFD packet to send [20:33:00]OFD Sender: No OFD packet to send [20:33:05]OFD Sender: No OFD packet to send [20:33:10]OFD Sender: No OFD packet to send [20:33:15]OFD Sender: No OFD packet to send [20:33:20]OFD Sender: No OFD packet to send [20:33:25]OFD Sender: No OFD packet to send [20:33:30]OFD Sender: No OFD packet to send [20:33:35]OFD Sender: No OFD packet to send [20:33:40]OFD Sender: No OFD packet to send [20:33:45]OFD Sender: No OFD packet to send [20:33:48]accept exits with 9 [20:33:48]New connection [20:33:48]New thread 3066682724 created [20:33:48]Thread 3066826084 joined [20:33:48]Waiting for new connection... [20:33:48] Sock 9.Parse request [20:33:48]Sock 9.Check first char [20:33:48]Sock 9.First char is OK [20:33:48]request: POST /json_proto HTTP/1.0 [20:33:48]Method: POST [20:33:48]URL: /json_proto [20:33:48]Method is POST - this is cgi request [20:33:48]url: /json_proto [20:33:48]query_string will be loaded in cgi processing [20:33:48]execute_cgi json_proto POST (null) [20:33:48]execute_cgi path=json_proto method=POST [20:33:48]POST find Content-Length [20:33:48]Host: 172.17.96.197:8080 [20:33:48]Content-Length: 681 [20:33:48]Content-Type: application/json [20:33:48] [20:33:48]POST finish read [20:33:48]Found Content-Length = 681 [20:33:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [20:33:48]execute_script... [20:33: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)48720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [20:33:48]POST & json_proto [20:33:48]process_json_proto [20:33:48]json parsed OK: [20:33:48]protocol is kg_v1.0 [20:33:48]action value=close_receipt [20:33:48]process_action close_receipt [20:33:48]cmd_close_receipt [20:33:48]MH_GetDate [20:33:48]Write to MH i2c: F0 00 00 18 2A 31 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 09 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: F0 09 00 18 2A 00 AD 3D 1C 66 E0 85 7F 64 EE [20:33:48]GetLastDocTimeStamp 1713126658 [20:33:48]current date 1713126829 [20:33:48]FM_GetShiftState [20:33:48]SAM_PROTO_GetShiftState [20:33:48]wFMCommunicate request_size=4 [20:33:48]MH_SAM_APDU [20:33:48]CAPDU: 80 13 01 00 [20:33:48]Write to MH i2c: E2 08 00 19 2A 80 13 01 00 00 00 00 00 C0 [20:33:48]Write i2c OK [20:33:48]MH_I2C_Read... [20:33:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:48]Read from MH i2c: E2 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 0E 00 [20:33:48]MH_I2C_Read... [20:33:48]Read from MH i2c: E2 0E 00 19 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [20:33:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:33:48]wFMCommunicate OK [20:33:48]SAM_PROTO_GetShiftState done [20:33:48]FM_GetShiftState done [20:33:48]opened in 1713054696 [20:33:48]opened+sec_in_day 1713141096 [20:33:48]quantity*price = 100050 [20:33:48]sum+1 = 100052 [20:33:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 322 14.04.2024 20:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112423 ФПД: 102853020006466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203349&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112423&fm=102853020006466&tin=02508201610067®Number=0000000000094237&sum=100000 [20:33:49]StoreToDocumentArchive [20:33:49]shift 357 fd 112423 [20:33:49]save to /storage/0357/doc_00112423 [20:33:49]save last doc name /storage/0357/doc_00112423 to /storage/kkm_last_doc_name [20:33:49]save OK [20:33:49]Clear old archive folders... [20:33:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:33:49]tlvbuf is 001639F0 [20:33:49]SAM_PROTO_ClearQueue [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 09 00 00 [20:33:49]Write to MH i2c: E2 08 00 26 2A 80 09 00 00 00 00 00 00 C2 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 26 2A 00 90 00 C4 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_ClearQueue done [20:33:49]KKMCreateOFDPacket [20:33:49]OFDProtocolAddRootSTLVToBuf [20:33:49]FM_MakeSignedData [20:33:49]FM_MakeSignedData [20:33:49]SAM_PROTO_SignData [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 01 02 [20:33:49]Write to MH i2c: E2 08 00 27 2A 80 0D 01 02 00 00 00 00 CA [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 27 2A 00 90 00 C5 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=255 [20:33:49]MH_SAM_APDU [20:33: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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 42 01 00 00 F4 03 04 00 AD 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B7 01 00 35 04 06 00 5D [20:33:49]Write to MH i2c: E2 02 01 28 2A 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 3C 00 00 00 00 00 37 04 06 00 1E 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 42 01 00 00 F4 03 04 00 AD 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B7 01 00 35 04 06 00 5D 00 00 28 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 28 2A 00 90 00 C6 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=10 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 02 02 05 8B 55 B8 B8 42 [20:33:49]Write to MH i2c: E2 0D 00 29 2A 80 0D 02 02 05 00 8B 55 B8 B8 42 00 00 69 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 03 00 29 2A 00 90 00 C7 [20:33:49]RAPDU: 90 00 [20:33:49]wFMCommunicate OK [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 0D 03 02 [20:33:49]Write to MH i2c: E2 08 00 2A 2A 80 0D 03 02 00 00 00 00 CF [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 0B 00 2A 2A 00 75 C0 1F 7E 8E 04 F1 2A 90 00 4F [20:33:49]RAPDU: 75 C0 1F 7E 8E 04 F1 2A 90 00 [20:33:49]wFMCommunicate OK [20:33:49]SAM_PROTO_SignData done [20:33:49]FM_MakeSignedData done [20:33:49]CreateOFDProtocolMessage [20:33:49]wFMCommunicate request_size=4 [20:33:49]MH_SAM_APDU [20:33:49]CAPDU: 80 11 00 00 [20:33:49]Write to MH i2c: E2 08 00 2B 2A 80 11 00 00 00 00 00 00 CF [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:49]Read from MH i2c: E2 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: E2 17 00 2B 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 20 [20:33:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:33:49]wFMCommunicate OK [20:33:49]CreateOFDProtocolMessage done [20:33:49]OFDSenderStorePacket 112423 [20:33:49]StoreOFDPacket docnum=112423 [20:33:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BC BD 07 01 DB 5E 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 3C 00 00 00 00 00 37 04 06 00 1E 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 42 01 00 00 F4 03 04 00 AD 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B7 01 00 35 04 06 00 5D 8B 55 B8 B8 42 75 C0 1F 7E 8E 04 F1 2A [20:33:49]CheckFolder [20:33:49]dirname=/storage/ofd_packets [20:33:49]CheckFolder done [20:33:49]ProducePacketName [20:33:49]name=ofd_packets/00112423 [20:33:49]NVStorageSaveData ofd_packets/00112423 [20:33:49]File name is /storage/ofd_packets/00112423 [20:33:49]Write 301 bytes [20:33:49]NVStorageSaveData done [20:33:49]OFDSenderStorePacket done [20:33:49]KKMCreateOFDPacket done [20:33:49]NVStorageSaveData kkm_last_timestamp [20:33:49]File name is /storage/kkm_last_timestamp [20:33:49]Write 4 bytes [20:33:49]NVStorageSaveData done [20:33:49]ExternCall_PrintAddStr [20:33:49]wPrintStart [20:33:49]Write to MH i2c: 01 00 00 2C 2A 56 [20:33:49]Write i2c OK [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 [20:33:49]MH_I2C_Read... [20:33:49]Read from MH i2c: 01 07 00 2C 2A 00 00 00 00 00 FF 0F 6B [20:33:49]RasterBufferAndPrint [20:33:49]line Счет N : (1)48720 [20:33:49]line ИНН: 02508201610067 [20:33:49]line Контрольно-Кассовый Чек [20:33:49]line ПРОДАЖА [20:33:49]line ТРК (МРК, ГНК) : 11 [20:33:49]line Товар: 2710124130 [20:33:49]line Аи-92-К-5 [20:33:49]line 15.560 * 64.30 [20:33:49]line = 1000.51 [20:33:49]line НДС 12% НСП 1% [20:33:49]line > о реализуемом товаре [20:33:49]line ОКРУГЛЕНИЕ: -0.51 [20:33:49]line ИТОГО: 1000.00 [20:33:49]line Внесено: 1000.00 [20:33:49]line СДАЧА: 0.00 [20:33:49]line НСП 1% : 8.85 [20:33:49]line НДС 12% : 106.25 [20:33:49]line Наличными: 1000.00 [20:33:49]line Безнал.: 0.00 [20:33:49]line Место: АЗС № 47 "Партнер Нефть" [20:33:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:33:49]line СНО: Общий режим [20:33:49]line Чек 322 14.04.2024 20:33 [20:33:49]line Смена: 357 ФФД: 1.0 [20:33:49]line ЗНМ: 0300000138 [20:33:49]line РНМ: 0000000000094237 [20:33:49]line Версия ККМ: 001 [20:33:49]line ФМ: 0000000000875019 [20:33:49]line ФД: 112423 [20:33:49]line ФПД: 102853020006466 [20:33:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203349&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112423&fm=102853020006466&tin=02508201610067®Number=0000000000094237&sum=100000 [20:33:50]OFD Sender: Processing packet 112423 [packets to send 71, broken 70] [20:33:50]ProducePacketName [20:33:50]name=ofd_packets/00112423 [20:33:50]OFD Sender: To server: pG, [20:33:50]CommunicateWithHost lk.salyk.kg:30040 [20:33:50]ConnectInit lk.salyk.kg [20:33:50]written 0, free lines is 4095 [20:33:50]Connected sock=10 [20:33:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BC BD 07 01 DB 5E 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 3C 00 00 00 00 00 37 04 06 00 1E 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 42 01 00 00 F4 03 04 00 AD 3D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B7 01 00 35 04 06 00 5D 8B 55 B8 B8 42 75 C0 1F 7E 8E 04 F1 2A [20:33:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9F 34 47 00 D4 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 27 B7 01 00 F4 03 04 00 38 E5 1B 66 B6 04 01 00 00 5F 90 F1 E8 D6 BF 34 FB [20:33:50]CommunicateWithHost err = 0 [20:33:50]CheckOFDResponse [20:33:50]1017 (14) - 77093643461234 [20:33:50]1041 (16) - 0000000000875019 [20:33:50]1040 (4) - 112423 [20:33:50]1012 (4) - 14.04.2024 14:16 [20:33:50]1206 (1) - 0 [20:33:50]OFD Sender: Remove packet 112423 [20:33:50]ProducePacketName [20:33:50]name=ofd_packets/00112423 [20:33:50]NVStorageDeleteData [20:33:50]Write to MH i2c: 01 00 00 57 2A 81 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: 01 07 00 57 2A 00 00 00 00 00 DA 0C 6E [20:33:50]RasterBufferAndPrint [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]line [20:33:50]written 0, free lines is 3297 [20:33:50]MH_Cut [20:33:50]Write to MH i2c: D1 01 00 5E 2A 01 5A [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 [20:33:50]MH_I2C_Read... [20:33:50]Read from MH i2c: D1 01 00 5E 2A 00 59 [20:33:50]Write to MH i2c: 01 00 00 5F 2A 89 [20:33:50]Write i2c OK [20:33:50]MH_I2C_Read... [20:33:51]OFD Sender: No OFD packet to send [20:33:51]*** Cut start [20:33:51]*** Partial cut [20:33:51]*** CUTSNS_PIN = 1 [20:33:51]*** CUTSNS_PIN = 0 [20:33:51]*** Brake cut motor [20:33:51]Read from MH i2c: 01 [20:33:51]MH_I2C_Read... [20:33:51]*** Stop cut motor [20:33:51]*** Cut end [20:33:51]Read from MH i2c: 01 07 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: 01 07 00 5F 2A 00 00 00 00 00 FF 0F 9E [20:33:51]process_action close_receipt done [20:33:51]requested_data is exist [20:33:51]produce_requested_data [20:33:51]requested_item fm.sn is exist - process it [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 11 00 00 [20:33:51]Write to MH i2c: E2 08 00 60 2A 80 11 00 00 00 00 00 00 04 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:33:51]Read from MH i2c: E2 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 [20:33:51]MH_I2C_Read... [20:33:51]Read from MH i2c: E2 17 00 60 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [20:33:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:33:51]wFMCommunicate OK [20:33:51]requested_item fd.num is exist - process it [20:33:51]SAM_PROTO_GetFieldsCounters [20:33:51]wFMCommunicate request_size=4 [20:33:51]MH_SAM_APDU [20:33:51]CAPDU: 80 13 00 00 [20:33:51]Write to MH i2c: E2 08 00 61 2A 80 13 00 00 00 00 00 00 07 [20:33:51]Write i2c OK [20:33:51]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 62 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 62 00 61 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 27 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [20:33:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 27 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_GetFieldsCounters done [20:33:52]requested_item shift.num is exist - process it [20:33:52]requested_item shift.opened is exist - process it [20:33:52]req_shift_opened [20:33:52]FM_GetShiftState [20:33:52]SAM_PROTO_GetShiftState [20:33:52]wFMCommunicate request_size=4 [20:33:52]MH_SAM_APDU [20:33:52]CAPDU: 80 13 01 00 [20:33:52]Write to MH i2c: E2 08 00 62 2A 80 13 01 00 00 00 00 00 09 [20:33:52]Write i2c OK [20:33:52]MH_I2C_Read... [20:33:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:33:52]Read from MH i2c: E2 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0E 00 [20:33:52]MH_I2C_Read... [20:33:52]Read from MH i2c: E2 0E 00 62 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A1 [20:33:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:33:52]wFMCommunicate OK [20:33:52]SAM_PROTO_GetShiftState done [20:33:52]FM_GetShiftState done [20:33:52]req_shift_opened done [20:33:52]requested_item shift.open_date is exist - process it [20:33:52]req_shift_open_date [20:33:52]req_shift_open_date done [20:33:52]produce_requested_data done [20:33:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112423,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:33:52]process_action_free close_receipt [20:33:52]json_value_free [20:33:52]json_value_free done [20:33:52]process_json_proto returns [20:33:52]Send response to host [20:33:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112423,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:33:52]free response buf [20:33:52]execute_script done [20:33:52]execute_script returns [20:33:52]free content buf [20:33:52]Sock 9.Close socket [20:33:52]Sock 9.Thread stoped [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:55]accept exits with 8 [20:35:55]New connection [20:35:55]New thread 3066826084 created [20:35:55]Thread 3066682724 joined [20:35:55]Waiting for new connection... [20:35:55] Sock 8.Parse request [20:35:55]Sock 8.Check first char [20:35:55]Sock 8.First char is OK [20:35:55]request: POST /json_proto HTTP/1.0 [20:35:55]Method: POST [20:35:55]URL: /json_proto [20:35:55]Method is POST - this is cgi request [20:35:55]url: /json_proto [20:35:55]query_string will be loaded in cgi processing [20:35:55]execute_cgi json_proto POST (null) [20:35:55]execute_cgi path=json_proto method=POST [20:35:55]POST find Content-Length [20:35:55]Host: 172.17.96.197:8080 [20:35:55]Content-Length: 681 [20:35:55]Content-Type: application/json [20:35:55] [20:35:55]POST finish read [20:35:55]Found Content-Length = 681 [20:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 29.950, "sum" : 979.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 979.00, "payments": [ { "type": 0, "sum" : 979.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:55]execute_script... [20:35: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)48719", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 29.950, "sum" : 979.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 979.00, "payments": [ { "type": 0, "sum" : 979.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:35:55]POST & json_proto [20:35:55]process_json_proto [20:35:55]json parsed OK: [20:35:55]protocol is kg_v1.0 [20:35:55]action value=close_receipt [20:35:55]process_action close_receipt [20:35:55]cmd_close_receipt [20:35:55]MH_GetDate [20:35:55]Write to MH i2c: F0 00 00 63 2A 7C [20:35:55]Write i2c OK [20:35:55]MH_I2C_Read... [20:35:55]Read from MH i2c: F0 [20:35:55]MH_I2C_Read... [20:35:55]Read from MH i2c: F0 09 00 [20:35:55]MH_I2C_Read... [20:35:55]Read from MH i2c: F0 09 00 63 2A 00 2D 3E 1C 66 E0 85 7F 64 BA [20:35:55]GetLastDocTimeStamp 1713126829 [20:35:55]current date 1713126957 [20:35:55]FM_GetShiftState [20:35:55]SAM_PROTO_GetShiftState [20:35:55]wFMCommunicate request_size=4 [20:35:55]MH_SAM_APDU [20:35:55]CAPDU: 80 13 01 00 [20:35:55]Write to MH i2c: E2 08 00 64 2A 80 13 01 00 00 00 00 00 0B [20:35:55]Write i2c OK [20:35:55]MH_I2C_Read... [20:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:55]Read from MH i2c: E2 [20:35:55]MH_I2C_Read... [20:35:55]Read from MH i2c: E2 0E 00 [20:35:55]MH_I2C_Read... [20:35:55]Read from MH i2c: E2 0E 00 64 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [20:35:55]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:35:55]wFMCommunicate OK [20:35:55]SAM_PROTO_GetShiftState done [20:35:55]FM_GetShiftState done [20:35:55]opened in 1713054696 [20:35:55]opened+sec_in_day 1713141096 [20:35:55]quantity*price = 97936 [20:35:55]sum+1 = 97938 [20:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 979.00 Внесено: 1000.00 СДАЧА: 21.00 НСП 1% : 8.67 НДС 12% : 104.00 Наличными: 979.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 323 14.04.2024 20:35 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112424 ФПД: 240969556527361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203557&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112424&fm=240969556527361&tin=02508201610067®Number=0000000000094237&sum=97900 [20:35:56]StoreToDocumentArchive [20:35:56]shift 357 fd 112424 [20:35:56]save to /storage/0357/doc_00112424 [20:35:56]save last doc name /storage/0357/doc_00112424 to /storage/kkm_last_doc_name [20:35:56]save OK [20:35:56]Clear old archive folders... [20:35:56]ProcessDocumentItem done err = 0, tmpTLVsize=250 [20:35:56]tlvbuf is 00244EC0 [20:35:56]SAM_PROTO_ClearQueue [20:35:56]wFMCommunicate request_size=4 [20:35:56]MH_SAM_APDU [20:35:56]CAPDU: 80 09 00 00 [20:35:56]Write to MH i2c: E2 08 00 71 2A 80 09 00 00 00 00 00 00 0D [20:35:56]Write i2c OK [20:35:56]MH_I2C_Read... [20:35:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:35:56]Read from MH i2c: E2 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: E2 03 00 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: E2 03 00 71 2A 00 90 00 0F [20:35:56]RAPDU: 90 00 [20:35:56]wFMCommunicate OK [20:35:56]SAM_PROTO_ClearQueue done [20:35:56]KKMCreateOFDPacket [20:35:56]OFDProtocolAddRootSTLVToBuf [20:35:56]FM_MakeSignedData [20:35:56]FM_MakeSignedData [20:35:56]SAM_PROTO_SignData [20:35:56]wFMCommunicate request_size=4 [20:35:56]MH_SAM_APDU [20:35:56]CAPDU: 80 0D 01 02 [20:35:56]Write to MH i2c: E2 08 00 72 2A 80 0D 01 02 00 00 00 00 15 [20:35:56]Write i2c OK [20:35:56]MH_I2C_Read... [20:35:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:35:56]Read from MH i2c: E2 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: E2 03 00 [20:35:56]MH_I2C_Read... [20:35:56]Read from MH i2c: E2 03 00 72 2A 00 90 00 10 [20:35:56]RAPDU: 90 00 [20:35:56]wFMCommunicate OK [20:35:56]wFMCommunicate request_size=255 [20:35:56]MH_SAM_APDU [20:35:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 28 00 00 00 00 07 04 06 00 6C 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 2D 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B7 01 00 35 04 06 00 DB 29 [20:35:56]Write to MH i2c: E2 02 01 73 2A 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 28 00 00 00 00 07 04 06 00 6C 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 2D 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B7 01 00 35 04 06 00 DB 29 00 00 97 [20:35:57]Write i2c OK [20:35:57]MH_I2C_Read... [20:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:57]Read from MH i2c: E2 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 03 00 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 03 00 73 2A 00 90 00 11 [20:35:57]RAPDU: 90 00 [20:35:57]wFMCommunicate OK [20:35:57]wFMCommunicate request_size=9 [20:35:57]MH_SAM_APDU [20:35:57]CAPDU: 80 0D 02 02 04 18 D1 89 01 [20:35:57]Write to MH i2c: E2 0C 00 74 2A 80 0D 02 02 04 00 18 D1 89 01 00 00 93 [20:35:57]Write i2c OK [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 [20:35:57]MH_I2C_Read... [20:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:35:57]Read from MH i2c: E2 03 00 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 03 00 74 2A 00 90 00 12 [20:35:57]RAPDU: 90 00 [20:35:57]wFMCommunicate OK [20:35:57]wFMCommunicate request_size=4 [20:35:57]MH_SAM_APDU [20:35:57]CAPDU: 80 0D 03 02 [20:35:57]Write to MH i2c: E2 08 00 75 2A 80 0D 03 02 00 00 00 00 1A [20:35:57]Write i2c OK [20:35:57]MH_I2C_Read... [20:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:35:57]Read from MH i2c: E2 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 0B 00 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 0B 00 75 2A 00 0F 6F B6 41 0A A5 FE 7E 90 00 BB [20:35:57]RAPDU: 0F 6F B6 41 0A A5 FE 7E 90 00 [20:35:57]wFMCommunicate OK [20:35:57]SAM_PROTO_SignData done [20:35:57]FM_MakeSignedData done [20:35:57]CreateOFDProtocolMessage [20:35:57]wFMCommunicate request_size=4 [20:35:57]MH_SAM_APDU [20:35:57]CAPDU: 80 11 00 00 [20:35:57]Write to MH i2c: E2 08 00 76 2A 80 11 00 00 00 00 00 00 1A [20:35:57]Write i2c OK [20:35:57]MH_I2C_Read... [20:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:57]Read from MH i2c: E2 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 17 00 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: E2 17 00 76 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6B [20:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:35:57]wFMCommunicate OK [20:35:57]CreateOFDProtocolMessage done [20:35:57]OFDSenderStorePacket 112424 [20:35:57]StoreOFDPacket docnum=112424 [20:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C8 5E 06 01 EF 60 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 28 00 00 00 00 07 04 06 00 6C 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 2D 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B7 01 00 35 04 06 00 DB 29 18 D1 89 01 0F 6F B6 41 0A A5 FE 7E [20:35:57]CheckFolder [20:35:57]dirname=/storage/ofd_packets [20:35:57]CheckFolder done [20:35:57]ProducePacketName [20:35:57]name=ofd_packets/00112424 [20:35:57]NVStorageSaveData ofd_packets/00112424 [20:35:57]File name is /storage/ofd_packets/00112424 [20:35:57]Write 300 bytes [20:35:57]NVStorageSaveData done [20:35:57]OFDSenderStorePacket done [20:35:57]KKMCreateOFDPacket done [20:35:57]NVStorageSaveData kkm_last_timestamp [20:35:57]File name is /storage/kkm_last_timestamp [20:35:57]Write 4 bytes [20:35:57]NVStorageSaveData done [20:35:57]ExternCall_PrintAddStr [20:35:57]wPrintStart [20:35:57]Write to MH i2c: 01 00 00 77 2A A1 [20:35:57]Write i2c OK [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: 01 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: 01 07 00 [20:35:57]MH_I2C_Read... [20:35:57]Read from MH i2c: 01 07 00 77 2A 00 00 00 00 00 FF 0F B6 [20:35:57]RasterBufferAndPrint [20:35:57]line Счет N : (1)48719 [20:35:57]line ИНН: 02508201610067 [20:35:57]line Контрольно-Кассовый Чек [20:35:57]line ПРОДАЖА [20:35:57]line ТРК (МРК, ГНК) : 72 [20:35:57]line Товар: 2711190000 [20:35:57]line ГАЗ-К-5 [20:35:57]line 29.950 * 32.70 [20:35:57]line = 979.37 [20:35:57]line НДС 12% НСП 1% [20:35:57]line > о реализуемом товаре [20:35:57]line ОКРУГЛЕНИЕ: -0.37 [20:35:57]line ИТОГО: 979.00 [20:35:57]line Внесено: 1000.00 [20:35:57]line СДАЧА: 21.00 [20:35:57]line НСП 1% : 8.67 [20:35:57]line НДС 12% : 104.00 [20:35:57]line Наличными: 979.00 [20:35:57]line Безнал.: 0.00 [20:35:57]line Место: АЗС № 47 "Партнер Нефть" [20:35:57]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:35:57]line СНО: Общий режим [20:35:57]line Чек 323 14.04.2024 20:35 [20:35:57]line Смена: 357 ФФД: 1.0 [20:35:57]line ЗНМ: 0300000138 [20:35:57]line РНМ: 0000000000094237 [20:35:57]line Версия ККМ: 001 [20:35:57]line ФМ: 0000000000875019 [20:35:57]line ФД: 112424 [20:35:57]line ФПД: 240969556527361 [20:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203557&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112424&fm=240969556527361&tin=02508201610067®Number=0000000000094237&sum=97900 [20:35:57]OFD Sender: Processing packet 112424 [packets to send 71, broken 70] [20:35:57]ProducePacketName [20:35:57]name=ofd_packets/00112424 [20:35:57]OFD Sender: To server: pG, [20:35:57]CommunicateWithHost lk.salyk.kg:30040 [20:35:57]ConnectInit lk.salyk.kg [20:35:57]written 0, free lines is 4095 [20:35:57]Connected sock=10 [20:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 C8 5E 06 01 EF 60 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 FE 74 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 91 7E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 7E 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A0 28 00 00 00 00 07 04 06 00 6C 7E 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 2D 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B7 01 00 35 04 06 00 DB 29 18 D1 89 01 0F 6F B6 41 0A A5 FE 7E [20:35:58]Write to MH i2c: 01 00 00 A2 2A CC [20:35:58]Write i2c OK [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: 01 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: 01 07 00 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: 01 07 00 A2 2A 00 00 00 00 00 D9 0C B8 [20:35:58]RasterBufferAndPrint [20:35:58]line [20:35:58]line [20:35:58]line [20:35:58]line [20:35:58]line [20:35:58]written 0, free lines is 3295 [20:35:58]MH_Cut [20:35:58]Write to MH i2c: D1 01 00 A9 2A 01 A5 [20:35:58]Write i2c OK [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: D1 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: D1 01 00 [20:35:58]MH_I2C_Read... [20:35:58]Read from MH i2c: D1 01 00 A9 2A 00 A4 [20:35:58]Write to MH i2c: 01 00 00 AA 2A D4 [20:35:58]Write i2c OK [20:35:58]MH_I2C_Read... [20:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E5 3C 47 00 55 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 28 B7 01 00 F4 03 04 00 B7 E5 1B 66 B6 04 01 00 00 5D 55 0F 04 5D AC 3E 96 [20:35:58]CommunicateWithHost err = 0 [20:35:58]CheckOFDResponse [20:35:58]1017 (14) - 77093643461234 [20:35:58]1041 (16) - 0000000000875019 [20:35:58]1040 (4) - 112424 [20:35:58]1012 (4) - 14.04.2024 14:18 [20:35:58]1206 (1) - 0 [20:35:58]OFD Sender: Remove packet 112424 [20:35:58]ProducePacketName [20:35:58]name=ofd_packets/00112424 [20:35:58]NVStorageDeleteData [20:35:58]OFD Sender: No OFD packet to send [20:35:58]*** Cut start [20:35:58]*** Partial cut [20:35:58]*** CUTSNS_PIN = 1 [20:35:58]*** CUTSNS_PIN = 0 [20:35:59]*** Brake cut motor [20:35:59]Read from MH i2c: 01 [20:35:59]MH_I2C_Read... [20:35:59]*** Stop cut motor [20:35:59]*** Cut end [20:35:59]Read from MH i2c: 01 07 00 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: 01 07 00 AA 2A 00 00 00 00 00 FF 0F E9 [20:35:59]process_action close_receipt done [20:35:59]requested_data is exist [20:35:59]produce_requested_data [20:35:59]requested_item fm.sn is exist - process it [20:35:59]wFMCommunicate request_size=4 [20:35:59]MH_SAM_APDU [20:35:59]CAPDU: 80 11 00 00 [20:35:59]Write to MH i2c: E2 08 00 AB 2A 80 11 00 00 00 00 00 00 4F [20:35:59]Write i2c OK [20:35:59]MH_I2C_Read... [20:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:35:59]Read from MH i2c: E2 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 17 00 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 17 00 AB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A0 [20:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:35:59]wFMCommunicate OK [20:35:59]requested_item fd.num is exist - process it [20:35:59]SAM_PROTO_GetFieldsCounters [20:35:59]wFMCommunicate request_size=4 [20:35:59]MH_SAM_APDU [20:35:59]CAPDU: 80 13 00 00 [20:35:59]Write to MH i2c: E2 08 00 AC 2A 80 13 00 00 00 00 00 00 52 [20:35:59]Write i2c OK [20:35:59]MH_I2C_Read... [20:35:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:35:59]Read from MH i2c: E2 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 62 00 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 62 00 AC 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 28 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:35:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 28 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:35:59]wFMCommunicate OK [20:35:59]SAM_PROTO_GetFieldsCounters done [20:35:59]requested_item shift.num is exist - process it [20:35:59]requested_item shift.opened is exist - process it [20:35:59]req_shift_opened [20:35:59]FM_GetShiftState [20:35:59]SAM_PROTO_GetShiftState [20:35:59]wFMCommunicate request_size=4 [20:35:59]MH_SAM_APDU [20:35:59]CAPDU: 80 13 01 00 [20:35:59]Write to MH i2c: E2 08 00 AD 2A 80 13 01 00 00 00 00 00 54 [20:35:59]Write i2c OK [20:35:59]MH_I2C_Read... [20:35:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:35:59]Read from MH i2c: E2 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 0E 00 [20:35:59]MH_I2C_Read... [20:35:59]Read from MH i2c: E2 0E 00 AD 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EC [20:35:59]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:35:59]wFMCommunicate OK [20:35:59]SAM_PROTO_GetShiftState done [20:35:59]FM_GetShiftState done [20:35:59]req_shift_opened done [20:35:59]requested_item shift.open_date is exist - process it [20:35:59]req_shift_open_date [20:35:59]req_shift_open_date done [20:35:59]produce_requested_data done [20:35:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112424,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:35:59]process_action_free close_receipt [20:35:59]json_value_free [20:35:59]json_value_free done [20:35:59]process_json_proto returns [20:35:59]Send response to host [20:35:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112424,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:35:59]free response buf [20:35:59]execute_script done [20:35:59]execute_script returns [20:35:59]free content buf [20:35:59]Sock 8.Close socket [20:35:59]Sock 8.Thread stoped [20:36:00]accept exits with 9 [20:36:00]New connection [20:36:00]New thread 3066682724 created [20:36:00]Thread 3066826084 joined [20:36:00]Waiting for new connection... [20:36:00] Sock 9.Parse request [20:36:00]Sock 9.Check first char [20:36:00]Sock 9.First char is OK [20:36:00]request: POST /json_proto HTTP/1.0 [20:36:00]Method: POST [20:36:00]URL: /json_proto [20:36:00]Method is POST - this is cgi request [20:36:00]url: /json_proto [20:36:00]query_string will be loaded in cgi processing [20:36:00]execute_cgi json_proto POST (null) [20:36:00]execute_cgi path=json_proto method=POST [20:36:00]POST find Content-Length [20:36:00]Host: 172.17.96.197:8080 [20:36:00]Content-Length: 808 [20:36:00]Content-Type: application/json [20:36:00] [20:36:00]POST finish read [20:36:00]Found Content-Length = 808 [20:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 7.970, "sum" : 520.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 520.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:00]execute_script... [20:36: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)48722", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124130", "name": "SUPER 92-\u041A-5", "price" : 65.30, "quantity" : 7.970, "sum" : 520.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 520.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:00]POST & json_proto [20:36:00]process_json_proto [20:36:00]json parsed OK: [20:36:00]protocol is kg_v1.0 [20:36:00]action value=close_receipt [20:36:00]process_action close_receipt [20:36:00]cmd_close_receipt [20:36:00]MH_GetDate [20:36:00]Write to MH i2c: F0 00 00 AE 2A C7 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: F0 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: F0 09 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: F0 09 00 AE 2A 00 31 3E 1C 66 E0 85 7F 64 09 [20:36:00]GetLastDocTimeStamp 1713126957 [20:36:00]current date 1713126961 [20:36:00]FM_GetShiftState [20:36:00]SAM_PROTO_GetShiftState [20:36:00]wFMCommunicate request_size=4 [20:36:00]MH_SAM_APDU [20:36:00]CAPDU: 80 13 01 00 [20:36:00]Write to MH i2c: E2 08 00 AF 2A 80 13 01 00 00 00 00 00 56 [20:36:00]Write i2c OK [20:36:00]MH_I2C_Read... [20:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:00]Read from MH i2c: E2 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 0E 00 [20:36:00]MH_I2C_Read... [20:36:00]Read from MH i2c: E2 0E 00 AF 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [20:36:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:36:00]wFMCommunicate OK [20:36:00]SAM_PROTO_GetShiftState done [20:36:00]FM_GetShiftState done [20:36:00]opened in 1713054696 [20:36:00]opened+sec_in_day 1713141096 [20:36:00]quantity*price = 52044 [20:36:00]sum+1 = 52045 [20:36:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.44 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 0.00 Безнал.: 520.44 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 324 14.04.2024 20:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112425 ФПД: 146138367179743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203601&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112425&fm=146138367179743&tin=02508201610067®Number=0000000000094237&sum=52044 [20:36:01]StoreToDocumentArchive [20:36:01]shift 357 fd 112425 [20:36:01]save to /storage/0357/doc_00112425 [20:36:01]save last doc name /storage/0357/doc_00112425 to /storage/kkm_last_doc_name [20:36:01]save OK [20:36:01]Clear old archive folders... [20:36:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:36:01]tlvbuf is 001758C0 [20:36:01]SAM_PROTO_ClearQueue [20:36:01]wFMCommunicate request_size=4 [20:36:01]MH_SAM_APDU [20:36:01]CAPDU: 80 09 00 00 [20:36:01]Write to MH i2c: E2 08 00 BC 2A 80 09 00 00 00 00 00 00 58 [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:01]Read from MH i2c: E2 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 03 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 03 00 BC 2A 00 90 00 5A [20:36:01]RAPDU: 90 00 [20:36:01]wFMCommunicate OK [20:36:01]SAM_PROTO_ClearQueue done [20:36:01]KKMCreateOFDPacket [20:36:01]OFDProtocolAddRootSTLVToBuf [20:36:01]FM_MakeSignedData [20:36:01]FM_MakeSignedData [20:36:01]SAM_PROTO_SignData [20:36:01]wFMCommunicate request_size=4 [20:36:01]MH_SAM_APDU [20:36:01]CAPDU: 80 0D 01 02 [20:36:01]Write to MH i2c: E2 08 00 BD 2A 80 0D 01 02 00 00 00 00 60 [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:01]Read from MH i2c: E2 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 03 00 [20:36:01]MH_I2C_Read... [20:36:01]Read from MH i2c: E2 03 00 BD 2A 00 90 00 5B [20:36:01]RAPDU: 90 00 [20:36:01]wFMCommunicate OK [20:36:01]wFMCommunicate request_size=255 [20:36:01]MH_SAM_APDU [20:36: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4C CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 31 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B7 01 00 35 04 06 00 [20:36:01]Write to MH i2c: E2 02 01 BE 2A 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4C CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 31 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B7 01 00 35 04 06 00 00 00 1D [20:36:01]Write i2c OK [20:36:01]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 03 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 03 00 BE 2A 00 90 00 5C [20:36:02]RAPDU: 90 00 [20:36:02]wFMCommunicate OK [20:36:02]wFMCommunicate request_size=11 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 0D 02 02 06 84 E9 7D 76 BB DF [20:36:02]Write to MH i2c: E2 0E 00 BF 2A 80 0D 02 02 06 00 84 E9 7D 76 BB DF 00 00 69 [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 03 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 03 00 BF 2A 00 90 00 5D [20:36:02]RAPDU: 90 00 [20:36:02]wFMCommunicate OK [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 0D 03 02 [20:36:02]Write to MH i2c: E2 08 00 C0 2A 80 0D 03 02 00 00 00 00 65 [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0B 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 0B 00 C0 2A 00 D6 EE AA FD D4 8A 97 1F 90 00 E5 [20:36:02]RAPDU: D6 EE AA FD D4 8A 97 1F 90 00 [20:36:02]wFMCommunicate OK [20:36:02]SAM_PROTO_SignData done [20:36:02]FM_MakeSignedData done [20:36:02]CreateOFDProtocolMessage [20:36:02]wFMCommunicate request_size=4 [20:36:02]MH_SAM_APDU [20:36:02]CAPDU: 80 11 00 00 [20:36:02]Write to MH i2c: E2 08 00 C1 2A 80 11 00 00 00 00 00 00 65 [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:02]Read from MH i2c: E2 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 17 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: E2 17 00 C1 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B6 [20:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:36:02]wFMCommunicate OK [20:36:02]CreateOFDProtocolMessage done [20:36:02]OFDSenderStorePacket 112425 [20:36:02]StoreOFDPacket docnum=112425 [20:36:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E1 F5 08 01 7A A8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4C CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 31 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B7 01 00 35 04 06 00 84 E9 7D 76 BB DF D6 EE AA FD D4 8A 97 1F [20:36:02]CheckFolder [20:36:02]dirname=/storage/ofd_packets [20:36:02]CheckFolder done [20:36:02]ProducePacketName [20:36:02]name=ofd_packets/00112425 [20:36:02]NVStorageSaveData ofd_packets/00112425 [20:36:02]File name is /storage/ofd_packets/00112425 [20:36:02]Write 302 bytes [20:36:02]NVStorageSaveData done [20:36:02]OFDSenderStorePacket done [20:36:02]KKMCreateOFDPacket done [20:36:02]NVStorageSaveData kkm_last_timestamp [20:36:02]File name is /storage/kkm_last_timestamp [20:36:02]Write 4 bytes [20:36:02]NVStorageSaveData done [20:36:02]ExternCall_PrintAddStr [20:36:02]wPrintStart [20:36:02]Write to MH i2c: 01 00 00 C2 2A EC [20:36:02]Write i2c OK [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: 01 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: 01 07 00 [20:36:02]MH_I2C_Read... [20:36:02]Read from MH i2c: 01 07 00 C2 2A 00 00 00 00 00 FF 0F 01 [20:36:02]RasterBufferAndPrint [20:36:02]line Счет N : (1)48722 [20:36:02]line ИНН: 02508201610067 [20:36:02]line Контрольно-Кассовый Чек [20:36:02]line ПРОДАЖА [20:36:02]line ТРК (МРК, ГНК) : 52 [20:36:02]line Товар: 2710124130 [20:36:02]line SUPER 92-К-5 [20:36:02]line 7.970 * 65.30 [20:36:02]line = 520.44 [20:36:02]line НДС 12% НСП 1% [20:36:02]line > о реализуемом товаре [20:36:02]line ИТОГО: 520.44 [20:36:02]line НСП 1% : 4.61 [20:36:02]line НДС 12% : 55.27 [20:36:02]line Наличными: 0.00 [20:36:02]line Безнал.: 520.44 [20:36:02]line Место: АЗС № 47 "Партнер Нефть" [20:36:02]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:36:02]line СНО: Общий режим [20:36:02]line Чек 324 14.04.2024 20:36 [20:36:02]line Смена: 357 ФФД: 1.0 [20:36:02]line ЗНМ: 0300000138 [20:36:02]line РНМ: 0000000000094237 [20:36:02]line Версия ККМ: 001 [20:36:02]line Платежная система: Бакай Банк [20:36:02]line ФМ: 0000000000875019 [20:36:02]line ФД: 112425 [20:36:02]line ФПД: 146138367179743 [20:36:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203601&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112425&fm=146138367179743&tin=02508201610067®Number=0000000000094237&sum=52044 [20:36:02]OFD Sender: Processing packet 112425 [packets to send 71, broken 70] [20:36:02]ProducePacketName [20:36:02]name=ofd_packets/00112425 [20:36:02]OFD Sender: To server: pG, [20:36:02]CommunicateWithHost lk.salyk.kg:30040 [20:36:02]ConnectInit lk.salyk.kg [20:36:02]written 0, free lines is 4095 [20:36:02]Connected sock=10 [20:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E1 F5 08 01 7A A8 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 22 1F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4C CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 01 00 00 F4 03 04 00 31 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B7 01 00 35 04 06 00 84 E9 7D 76 BB DF D6 EE AA FD D4 8A 97 1F [20:36:03]Write to MH i2c: 01 00 00 EC 2A 16 [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: 01 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: 01 07 00 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: 01 07 00 EC 2A 00 00 00 00 00 F3 0C 1C [20:36:03]RasterBufferAndPrint [20:36:03]line [20:36:03]line [20:36:03]line [20:36:03]line [20:36:03]line [20:36:03]written 0, free lines is 3324 [20:36:03]MH_Cut [20:36:03]Write to MH i2c: D1 01 00 F3 2A 01 EF [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: D1 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: D1 01 00 [20:36:03]MH_I2C_Read... [20:36:03]Read from MH i2c: D1 01 00 F3 2A 00 EE [20:36:03]Write to MH i2c: 01 00 00 F4 2A 1E [20:36:03]Write i2c OK [20:36:03]MH_I2C_Read... [20:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4C 90 47 00 BE B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 29 B7 01 00 F4 03 04 00 BC E5 1B 66 B6 04 01 00 00 99 66 05 E7 AE 0E E6 5F [20:36:03]CommunicateWithHost err = 0 [20:36:03]CheckOFDResponse [20:36:03]1017 (14) - 77093643461234 [20:36:03]1041 (16) - 0000000000875019 [20:36:03]1040 (4) - 112425 [20:36:03]1012 (4) - 14.04.2024 14:18 [20:36:03]1206 (1) - 0 [20:36:03]OFD Sender: Remove packet 112425 [20:36:03]ProducePacketName [20:36:03]name=ofd_packets/00112425 [20:36:03]NVStorageDeleteData [20:36:03]OFD Sender: No OFD packet to send [20:36:03]*** Cut start [20:36:03]*** Partial cut [20:36:03]*** CUTSNS_PIN = 1 [20:36:03]*** CUTSNS_PIN = 0 [20:36:04]*** Brake cut motor [20:36:04]Read from MH i2c: 01 [20:36:04]MH_I2C_Read... [20:36:04]*** Stop cut motor [20:36:04]*** Cut end [20:36:04]Read from MH i2c: 01 07 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: 01 07 00 F4 2A 00 00 00 00 00 FF 0F 33 [20:36:04]process_action close_receipt done [20:36:04]requested_data is exist [20:36:04]produce_requested_data [20:36:04]requested_item fm.sn is exist - process it [20:36:04]wFMCommunicate request_size=4 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 11 00 00 [20:36:04]Write to MH i2c: E2 08 00 F5 2A 80 11 00 00 00 00 00 00 99 [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 17 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 17 00 F5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 EA [20:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:36:04]wFMCommunicate OK [20:36:04]requested_item fd.num is exist - process it [20:36:04]SAM_PROTO_GetFieldsCounters [20:36:04]wFMCommunicate request_size=4 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 13 00 00 [20:36:04]Write to MH i2c: E2 08 00 F6 2A 80 13 00 00 00 00 00 00 9C [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 62 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 62 00 F6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 29 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [20:36:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 29 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:04]wFMCommunicate OK [20:36:04]SAM_PROTO_GetFieldsCounters done [20:36:04]requested_item shift.num is exist - process it [20:36:04]requested_item shift.opened is exist - process it [20:36:04]req_shift_opened [20:36:04]FM_GetShiftState [20:36:04]SAM_PROTO_GetShiftState [20:36:04]wFMCommunicate request_size=4 [20:36:04]MH_SAM_APDU [20:36:04]CAPDU: 80 13 01 00 [20:36:04]Write to MH i2c: E2 08 00 F7 2A 80 13 01 00 00 00 00 00 9E [20:36:04]Write i2c OK [20:36:04]MH_I2C_Read... [20:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:04]Read from MH i2c: E2 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 0E 00 [20:36:04]MH_I2C_Read... [20:36:04]Read from MH i2c: E2 0E 00 F7 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 36 [20:36:04]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:36:04]wFMCommunicate OK [20:36:04]SAM_PROTO_GetShiftState done [20:36:04]FM_GetShiftState done [20:36:04]req_shift_opened done [20:36:04]requested_item shift.open_date is exist - process it [20:36:04]req_shift_open_date [20:36:04]req_shift_open_date done [20:36:04]produce_requested_data done [20:36:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112425,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:36:04]process_action_free close_receipt [20:36:04]json_value_free [20:36:04]json_value_free done [20:36:04]process_json_proto returns [20:36:04]Send response to host [20:36:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112425,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:36:04]free response buf [20:36:04]execute_script done [20:36:04]execute_script returns [20:36:04]free content buf [20:36:04]Sock 9.Close socket [20:36:04]Sock 9.Thread stoped [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:20]accept exits with 8 [20:36:20]New connection [20:36:20]New thread 3066826084 created [20:36:20]Thread 3066682724 joined [20:36:20]Waiting for new connection... [20:36:20] Sock 8.Parse request [20:36:20]Sock 8.Check first char [20:36:20]Sock 8.First char is OK [20:36:20]request: POST /json_proto HTTP/1.0 [20:36:20]Method: POST [20:36:20]URL: /json_proto [20:36:20]Method is POST - this is cgi request [20:36:20]url: /json_proto [20:36:20]query_string will be loaded in cgi processing [20:36:20]execute_cgi json_proto POST (null) [20:36:20]execute_cgi path=json_proto method=POST [20:36:20]POST find Content-Length [20:36:20]Host: 172.17.96.197:8080 [20:36:20]Content-Length: 676 [20:36:20]Content-Type: application/json [20:36:20] [20:36:20]POST finish read [20:36:20]Found Content-Length = 676 [20:36:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [20:36:20]execute_script... [20:36:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48723", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [20:36:20]POST & json_proto [20:36:20]process_json_proto [20:36:20]json parsed OK: [20:36:20]protocol is kg_v1.0 [20:36:20]action value=close_receipt [20:36:20]process_action close_receipt [20:36:20]cmd_close_receipt [20:36:20]MH_GetDate [20:36:20]Write to MH i2c: F0 00 00 F8 2A 11 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: F0 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: F0 09 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: F0 09 00 F8 2A 00 45 3E 1C 66 E0 85 7F 64 67 [20:36:20]GetLastDocTimeStamp 1713126961 [20:36:20]current date 1713126981 [20:36:20]FM_GetShiftState [20:36:20]SAM_PROTO_GetShiftState [20:36:20]wFMCommunicate request_size=4 [20:36:20]MH_SAM_APDU [20:36:20]CAPDU: 80 13 01 00 [20:36:20]Write to MH i2c: E2 08 00 F9 2A 80 13 01 00 00 00 00 00 A0 [20:36:20]Write i2c OK [20:36:20]MH_I2C_Read... [20:36:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:20]Read from MH i2c: E2 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 [20:36:20]MH_I2C_Read... [20:36:20]Read from MH i2c: E2 0E 00 F9 2A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 38 [20:36:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:36:20]wFMCommunicate OK [20:36:20]SAM_PROTO_GetShiftState done [20:36:20]FM_GetShiftState done [20:36:20]opened in 1713054696 [20:36:20]opened+sec_in_day 1713141096 [20:36:20]quantity*price = 30028 [20:36:20]sum+1 = 30029 [20:36:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 325 14.04.2024 20:36 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112426 ФПД: 115916606398653 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203621&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112426&fm=115916606398653&tin=02508201610067®Number=0000000000094237&sum=30000 [20:36:21]StoreToDocumentArchive [20:36:21]shift 357 fd 112426 [20:36:21]save to /storage/0357/doc_00112426 [20:36:21]save last doc name /storage/0357/doc_00112426 to /storage/kkm_last_doc_name [20:36:21]save OK [20:36:21]Clear old archive folders... [20:36:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:21]tlvbuf is B6EA2560 [20:36:21]SAM_PROTO_ClearQueue [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 09 00 00 [20:36:21]Write to MH i2c: E2 08 00 06 2B 80 09 00 00 00 00 00 00 A3 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 06 2B 00 90 00 A5 [20:36:21]RAPDU: 90 00 [20:36:21]wFMCommunicate OK [20:36:21]SAM_PROTO_ClearQueue done [20:36:21]KKMCreateOFDPacket [20:36:21]OFDProtocolAddRootSTLVToBuf [20:36:21]FM_MakeSignedData [20:36:21]FM_MakeSignedData [20:36:21]SAM_PROTO_SignData [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 0D 01 02 [20:36:21]Write to MH i2c: E2 08 00 07 2B 80 0D 01 02 00 00 00 00 AB [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 07 2B 00 90 00 A6 [20:36:21]RAPDU: 90 00 [20:36:21]wFMCommunicate OK [20:36:21]wFMCommunicate request_size=255 [20:36:21]MH_SAM_APDU [20:36: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 45 01 00 00 F4 03 04 00 45 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B7 01 00 35 04 06 00 69 [20:36:21]Write to MH i2c: E2 02 01 08 2B 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 45 01 00 00 F4 03 04 00 45 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B7 01 00 35 04 06 00 69 00 00 CD [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 08 2B 00 90 00 A7 [20:36:21]RAPDU: 90 00 [20:36:21]wFMCommunicate OK [20:36:21]wFMCommunicate request_size=10 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 0D 02 02 05 6C F0 25 E0 BD [20:36:21]Write to MH i2c: E2 0D 00 09 2B 80 0D 02 02 05 00 6C F0 25 E0 BD 00 00 D6 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 03 00 09 2B 00 90 00 A8 [20:36:21]RAPDU: 90 00 [20:36:21]wFMCommunicate OK [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 0D 03 02 [20:36:21]Write to MH i2c: E2 08 00 0A 2B 80 0D 03 02 00 00 00 00 B0 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 0B 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 0B 00 0A 2B 00 90 90 9D 1C A3 49 13 9D 90 00 26 [20:36:21]RAPDU: 90 90 9D 1C A3 49 13 9D 90 00 [20:36:21]wFMCommunicate OK [20:36:21]SAM_PROTO_SignData done [20:36:21]FM_MakeSignedData done [20:36:21]CreateOFDProtocolMessage [20:36:21]wFMCommunicate request_size=4 [20:36:21]MH_SAM_APDU [20:36:21]CAPDU: 80 11 00 00 [20:36:21]Write to MH i2c: E2 08 00 0B 2B 80 11 00 00 00 00 00 00 B0 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 [20:36:21]MH_I2C_Read... [20:36:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:21]Read from MH i2c: E2 17 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: E2 17 00 0B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 01 [20:36:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:36:21]wFMCommunicate OK [20:36:21]CreateOFDProtocolMessage done [20:36:21]OFDSenderStorePacket 112426 [20:36:21]StoreOFDPacket docnum=112426 [20:36:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F7 FC 07 01 DE 2A 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 45 01 00 00 F4 03 04 00 45 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B7 01 00 35 04 06 00 69 6C F0 25 E0 BD 90 90 9D 1C A3 49 13 9D [20:36:21]CheckFolder [20:36:21]dirname=/storage/ofd_packets [20:36:21]CheckFolder done [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00112426 [20:36:21]NVStorageSaveData ofd_packets/00112426 [20:36:21]File name is /storage/ofd_packets/00112426 [20:36:21]Write 301 bytes [20:36:21]NVStorageSaveData done [20:36:21]OFDSenderStorePacket done [20:36:21]KKMCreateOFDPacket done [20:36:21]NVStorageSaveData kkm_last_timestamp [20:36:21]File name is /storage/kkm_last_timestamp [20:36:21]Write 4 bytes [20:36:21]NVStorageSaveData done [20:36:21]ExternCall_PrintAddStr [20:36:21]wPrintStart [20:36:21]Write to MH i2c: 01 00 00 0C 2B 37 [20:36:21]Write i2c OK [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 [20:36:21]MH_I2C_Read... [20:36:21]Read from MH i2c: 01 07 00 0C 2B 00 00 00 00 00 FF 0F 4C [20:36:21]RasterBufferAndPrint [20:36:21]line Счет N : (1)48723 [20:36:21]line ИНН: 02508201610067 [20:36:21]line Контрольно-Кассовый Чек [20:36:21]line ПРОДАЖА [20:36:21]line ТРК (МРК, ГНК) : 11 [20:36:21]line Товар: 2710124130 [20:36:21]line Аи-92-К-5 [20:36:21]line 4.670 * 64.30 [20:36:21]line = 300.28 [20:36:21]line НДС 12% НСП 1% [20:36:21]line > о реализуемом товаре [20:36:21]line ОКРУГЛЕНИЕ: -0.28 [20:36:21]line ИТОГО: 300.00 [20:36:21]line Внесено: 300.00 [20:36:21]line СДАЧА: 0.00 [20:36:21]line НСП 1% : 2.66 [20:36:21]line НДС 12% : 31.89 [20:36:21]line Наличными: 300.00 [20:36:21]line Безнал.: 0.00 [20:36:21]line Место: АЗС № 47 "Партнер Нефть" [20:36:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:36:21]line СНО: Общий режим [20:36:21]line Чек 325 14.04.2024 20:36 [20:36:21]line Смена: 357 ФФД: 1.0 [20:36:21]line ЗНМ: 0300000138 [20:36:21]line РНМ: 0000000000094237 [20:36:21]line Версия ККМ: 001 [20:36:21]line ФМ: 0000000000875019 [20:36:21]line ФД: 112426 [20:36:21]line ФПД: 115916606398653 [20:36:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203621&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112426&fm=115916606398653&tin=02508201610067®Number=0000000000094237&sum=30000 [20:36:21]written 0, free lines is 4095 [20:36:21]OFD Sender: Processing packet 112426 [packets to send 71, broken 70] [20:36:21]ProducePacketName [20:36:21]name=ofd_packets/00112426 [20:36:21]OFD Sender: To server: pG, [20:36:21]CommunicateWithHost lk.salyk.kg:30040 [20:36:21]ConnectInit lk.salyk.kg [20:36:22]Connected sock=10 [20:36:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F7 FC 07 01 DE 2A 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 45 01 00 00 F4 03 04 00 45 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B7 01 00 35 04 06 00 69 6C F0 25 E0 BD 90 90 9D 1C A3 49 13 9D [20:36:22]Write to MH i2c: 01 00 00 37 2B 62 [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: 01 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: 01 07 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: 01 07 00 37 2B 00 00 00 00 00 F4 0C 69 [20:36:22]RasterBufferAndPrint [20:36:22]line [20:36:22]line [20:36:22]line [20:36:22]line [20:36:22]line [20:36:22]written 0, free lines is 3329 [20:36:22]MH_Cut [20:36:22]Write to MH i2c: D1 01 00 3E 2B 01 3B [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 93 0D 47 00 0D 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2A B7 01 00 F4 03 04 00 CF E5 1B 66 B6 04 01 00 00 8C 2B 87 66 D8 3E 64 A0 [20:36:22]CommunicateWithHost err = 0 [20:36:22]CheckOFDResponse [20:36:22]1017 (14) - 77093643461234 [20:36:22]1041 (16) - 0000000000875019 [20:36:22]1040 (4) - 112426 [20:36:22]1012 (4) - 14.04.2024 14:18 [20:36:22]1206 (1) - 0 [20:36:22]OFD Sender: Remove packet 112426 [20:36:22]ProducePacketName [20:36:22]name=ofd_packets/00112426 [20:36:22]NVStorageDeleteData [20:36:22]Read from MH i2c: D1 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: D1 01 00 [20:36:22]MH_I2C_Read... [20:36:22]Read from MH i2c: D1 01 00 3E 2B 00 3A [20:36:22]Write to MH i2c: 01 00 00 3F 2B 6A [20:36:22]Write i2c OK [20:36:22]MH_I2C_Read... [20:36:22]OFD Sender: No OFD packet to send [20:36:23]*** Cut start [20:36:23]*** Partial cut [20:36:23]*** CUTSNS_PIN = 1 [20:36:23]*** CUTSNS_PIN = 0 [20:36:23]*** Brake cut motor [20:36:23]Read from MH i2c: 01 [20:36:23]MH_I2C_Read... [20:36:23]*** Stop cut motor [20:36:23]*** Cut end [20:36:23]Read from MH i2c: 01 07 00 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: 01 07 00 3F 2B 00 00 00 00 00 FF 0F 7F [20:36:23]process_action close_receipt done [20:36:23]requested_data is exist [20:36:23]produce_requested_data [20:36:23]requested_item fm.sn is exist - process it [20:36:23]wFMCommunicate request_size=4 [20:36:23]MH_SAM_APDU [20:36:23]CAPDU: 80 11 00 00 [20:36:23]Write to MH i2c: E2 08 00 40 2B 80 11 00 00 00 00 00 00 E5 [20:36:23]Write i2c OK [20:36:23]MH_I2C_Read... [20:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:23]Read from MH i2c: E2 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 17 00 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 17 00 40 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 36 [20:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:36:23]wFMCommunicate OK [20:36:23]requested_item fd.num is exist - process it [20:36:23]SAM_PROTO_GetFieldsCounters [20:36:23]wFMCommunicate request_size=4 [20:36:23]MH_SAM_APDU [20:36:23]CAPDU: 80 13 00 00 [20:36:23]Write to MH i2c: E2 08 00 41 2B 80 13 00 00 00 00 00 00 E8 [20:36:23]Write i2c OK [20:36:23]MH_I2C_Read... [20:36:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:23]Read from MH i2c: E2 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 62 00 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 62 00 41 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 21 [20:36:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:23]wFMCommunicate OK [20:36:23]SAM_PROTO_GetFieldsCounters done [20:36:23]requested_item shift.num is exist - process it [20:36:23]requested_item shift.opened is exist - process it [20:36:23]req_shift_opened [20:36:23]FM_GetShiftState [20:36:23]SAM_PROTO_GetShiftState [20:36:23]wFMCommunicate request_size=4 [20:36:23]MH_SAM_APDU [20:36:23]CAPDU: 80 13 01 00 [20:36:23]Write to MH i2c: E2 08 00 42 2B 80 13 01 00 00 00 00 00 EA [20:36:23]Write i2c OK [20:36:23]MH_I2C_Read... [20:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:23]Read from MH i2c: E2 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 0E 00 [20:36:23]MH_I2C_Read... [20:36:23]Read from MH i2c: E2 0E 00 42 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 82 [20:36:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:36:23]wFMCommunicate OK [20:36:23]SAM_PROTO_GetShiftState done [20:36:23]FM_GetShiftState done [20:36:23]req_shift_opened done [20:36:23]requested_item shift.open_date is exist - process it [20:36:23]req_shift_open_date [20:36:23]req_shift_open_date done [20:36:23]produce_requested_data done [20:36:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112426,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:36:23]process_action_free close_receipt [20:36:23]json_value_free [20:36:23]json_value_free done [20:36:23]process_json_proto returns [20:36:23]Send response to host [20:36:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112426,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:36:23]free response buf [20:36:23]execute_script done [20:36:23]execute_script returns [20:36:23]free content buf [20:36:23]Sock 8.Close socket [20:36:23]Sock 8.Thread stoped [20:36:27]OFD Sender: No OFD packet to send [20:36:32]OFD Sender: No OFD packet to send [20:36:37]OFD Sender: No OFD packet to send [20:36:42]OFD Sender: No OFD packet to send [20:36:47]OFD Sender: No OFD packet to send [20:36:52]OFD Sender: No OFD packet to send [20:36:57]OFD Sender: No OFD packet to send [20:37:02]OFD Sender: No OFD packet to send [20:37:07]OFD Sender: No OFD packet to send [20:37:12]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]accept exits with 9 [20:39:03]New connection [20:39:03]New thread 3066682724 created [20:39:03]Thread 3066826084 joined [20:39:03]Waiting for new connection... [20:39:03] Sock 9.Parse request [20:39:03]Sock 9.Check first char [20:39:03]Sock 9.First char is OK [20:39:03]request: POST /json_proto HTTP/1.0 [20:39:03]Method: POST [20:39:03]URL: /json_proto [20:39:03]Method is POST - this is cgi request [20:39:03]url: /json_proto [20:39:03]query_string will be loaded in cgi processing [20:39:03]execute_cgi json_proto POST (null) [20:39:03]execute_cgi path=json_proto method=POST [20:39:03]POST find Content-Length [20:39:03]Host: 172.17.96.197:8080 [20:39:03]Content-Length: 619 [20:39:03]Content-Type: application/json [20:39:03] [20:39:03]POST finish read [20:39:03]Found Content-Length = 619 [20:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10445", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:03]execute_script... [20:39:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10445", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:03]POST & json_proto [20:39:03]process_json_proto [20:39:03]json parsed OK: [20:39:03]protocol is kg_v1.0 [20:39:03]action value=close_receipt [20:39:03]process_action close_receipt [20:39:03]cmd_close_receipt [20:39:03]MH_GetDate [20:39:03]Write to MH i2c: F0 00 00 43 2B 5D [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: F0 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: F0 09 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: F0 09 00 43 2B 00 E8 3E 1C 66 E0 85 7F 64 56 [20:39:03]GetLastDocTimeStamp 1713126981 [20:39:03]current date 1713127144 [20:39:03]FM_GetShiftState [20:39:03]SAM_PROTO_GetShiftState [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 13 01 00 [20:39:03]Write to MH i2c: E2 08 00 44 2B 80 13 01 00 00 00 00 00 EC [20:39:03]OFD Sender: No OFD packet to send [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:03]Read from MH i2c: E2 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 0E 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 0E 00 44 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 84 [20:39:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:03]wFMCommunicate OK [20:39:03]SAM_PROTO_GetShiftState done [20:39:03]FM_GetShiftState done [20:39:03]opened in 1713054696 [20:39:03]opened+sec_in_day 1713141096 [20:39:03]quantity*price = 13000 [20:39:03]sum+1 = 13001 [20:39:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 326 14.04.2024 20:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112427 ФПД: 245839993831750 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112427&fm=245839993831750&tin=02508201610067®Number=0000000000094237&sum=13000 0 [20:39:03]StoreToDocumentArchive [20:39:03]shift 357 fd 112427 [20:39:03]save to /storage/0357/doc_00112427 [20:39:03]save last doc name /storage/0357/doc_00112427 to /storage/kkm_last_doc_name [20:39:03]save OK [20:39:03]Clear old archive folders... [20:39:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:39:03]tlvbuf is 00174EF0 [20:39:03]SAM_PROTO_ClearQueue [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 09 00 00 [20:39:03]Write to MH i2c: E2 08 00 51 2B 80 09 00 00 00 00 00 00 EE [20:39:03]Write i2c OK [20:39:03]MH_I2C_Read... [20:39:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:03]Read from MH i2c: E2 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 03 00 [20:39:03]MH_I2C_Read... [20:39:03]Read from MH i2c: E2 03 00 51 2B 00 90 00 F0 [20:39:03]RAPDU: 90 00 [20:39:03]wFMCommunicate OK [20:39:03]SAM_PROTO_ClearQueue done [20:39:03]KKMCreateOFDPacket [20:39:03]OFDProtocolAddRootSTLVToBuf [20:39:03]FM_MakeSignedData [20:39:03]FM_MakeSignedData [20:39:03]SAM_PROTO_SignData [20:39:03]wFMCommunicate request_size=4 [20:39:03]MH_SAM_APDU [20:39:03]CAPDU: 80 0D 01 02 [20:39:03]Write to MH i2c: E2 08 00 52 2B 80 0D 01 02 00 00 00 00 F6 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 52 2B 00 90 00 F1 [20:39:04]RAPDU: 90 00 [20:39:04]wFMCommunicate OK [20:39:04]wFMCommunicate request_size=255 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E8 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [20:39:04]Write to MH i2c: E2 02 01 53 2B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E8 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F4 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 53 2B 00 90 00 F2 [20:39:04]RAPDU: 90 00 [20:39:04]wFMCommunicate OK [20:39:04]wFMCommunicate request_size=31 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 2B B7 01 00 35 04 06 00 DF 97 15 81 01 46 [20:39:04]Write to MH i2c: E2 22 00 54 2B 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 2B B7 01 00 35 04 06 00 DF 97 15 81 01 46 00 00 58 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 03 00 54 2B 00 90 00 F3 [20:39:04]RAPDU: 90 00 [20:39:04]wFMCommunicate OK [20:39:04]wFMCommunicate request_size=4 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 0D 03 02 [20:39:04]Write to MH i2c: E2 08 00 55 2B 80 0D 03 02 00 00 00 00 FB [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 0B 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 0B 00 55 2B 00 B4 E4 98 9F F8 8B 1F C1 90 00 2E [20:39:04]RAPDU: B4 E4 98 9F F8 8B 1F C1 90 00 [20:39:04]wFMCommunicate OK [20:39:04]SAM_PROTO_SignData done [20:39:04]FM_MakeSignedData done [20:39:04]CreateOFDProtocolMessage [20:39:04]wFMCommunicate request_size=4 [20:39:04]MH_SAM_APDU [20:39:04]CAPDU: 80 11 00 00 [20:39:04]Write to MH i2c: E2 08 00 56 2B 80 11 00 00 00 00 00 00 FB [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:04]Read from MH i2c: E2 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 17 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: E2 17 00 56 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4C [20:39:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:04]wFMCommunicate OK [20:39:04]CreateOFDProtocolMessage done [20:39:04]OFDSenderStorePacket 112427 [20:39:04]StoreOFDPacket docnum=112427 [20:39:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 E9 05 1C 01 6D FA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E8 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B7 01 00 35 04 06 00 DF 97 15 81 01 46 B4 E4 98 9F F8 8B 1F C1 [20:39:04]CheckFolder [20:39:04]dirname=/storage/ofd_packets [20:39:04]CheckFolder done [20:39:04]ProducePacketName [20:39:04]name=ofd_packets/00112427 [20:39:04]NVStorageSaveData ofd_packets/00112427 [20:39:04]File name is /storage/ofd_packets/00112427 [20:39:04]Write 322 bytes [20:39:04]NVStorageSaveData done [20:39:04]OFDSenderStorePacket done [20:39:04]KKMCreateOFDPacket done [20:39:04]NVStorageSaveData kkm_last_timestamp [20:39:04]File name is /storage/kkm_last_timestamp [20:39:04]Write 4 bytes [20:39:04]NVStorageSaveData done [20:39:04]ExternCall_PrintAddStr [20:39:04]wPrintStart [20:39:04]Write to MH i2c: 01 00 00 57 2B 82 [20:39:04]Write i2c OK [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: 01 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: 01 07 00 [20:39:04]MH_I2C_Read... [20:39:04]Read from MH i2c: 01 07 00 57 2B 00 00 00 00 00 FF 0F 97 [20:39:04]RasterBufferAndPrint [20:39:04]line Счет N : (3)10445 [20:39:04]line ИНН: 02508201610067 [20:39:04]line Контрольно-Кассовый Чек [20:39:04]line ПРОДАЖА [20:39:04]line Товар: 48745000 [20:39:04]line Сигареты Winston Purple Mix [20:39:04]line 1.000 * 130.00 [20:39:04]line = 130.00 [20:39:04]line НДС 12% НСП 1% [20:39:04]line > о реализуемом товаре [20:39:04]line ИТОГО: 130.00 [20:39:04]line НСП 1% : 1.15 [20:39:04]line НДС 12% : 13.80 [20:39:04]line Наличными: 130.00 [20:39:04]line Безнал.: 0.00 [20:39:04]line Место: АЗС № 47 "Партнер Нефть" [20:39:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:39:04]line СНО: Общий режим [20:39:04]line Чек 326 14.04.2024 20:39 [20:39:04]line Смена: 357 ФФД: 1.0 [20:39:04]line ЗНМ: 0300000138 [20:39:04]line РНМ: 0000000000094237 [20:39:04]line Версия ККМ: 001 [20:39:04]line ФМ: 0000000000875019 [20:39:04]line ФД: 112427 [20:39:04]line ФПД: 245839993831750 [20:39:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203904&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112427&fm=245839993831750&tin=02508201610067®Number=0000000000094237&sum=13000 [20:39:04]line 0 [20:39:04]written 0, free lines is 4095 [20:39:04]OFD Sender: Processing packet 112427 [packets to send 71, broken 70] [20:39:04]ProducePacketName [20:39:04]name=ofd_packets/00112427 [20:39:04]OFD Sender: To server: pG, [20:39:04]CommunicateWithHost lk.salyk.kg:30040 [20:39:04]ConnectInit lk.salyk.kg [20:39:04]Connected sock=10 [20:39:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 E9 05 1C 01 6D FA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E8 3E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2B B7 01 00 35 04 06 00 DF 97 15 81 01 46 B4 E4 98 9F F8 8B 1F C1 [20:39:05]Write to MH i2c: 01 00 00 7F 2B AA [20:39:05]Write i2c OK [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: 01 [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: 01 07 00 [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: 01 07 00 7F 2B 00 00 00 00 00 03 0D C1 [20:39:05]RasterBufferAndPrint [20:39:05]line [20:39:05]line [20:39:05]line [20:39:05]line [20:39:05]line [20:39:05]written 0, free lines is 3337 [20:39:05]MH_Cut [20:39:05]Write to MH i2c: D1 01 00 86 2B 01 83 [20:39:05]Write i2c OK [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: D1 [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: D1 01 00 [20:39:05]MH_I2C_Read... [20:39:05]Read from MH i2c: D1 01 00 86 2B 00 82 [20:39:05]Write to MH i2c: 01 00 00 87 2B B2 [20:39:05]Write i2c OK [20:39:05]MH_I2C_Read... [20:39:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 50 F8 47 00 12 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 38 37 35 30 31 39 10 04 04 00 2B B7 01 00 F4 03 04 00 72 E6 1B 66 B6 04 01 00 00 AC E3 2E AF 69 F8 C0 4F [20:39:05]CommunicateWithHost err = 0 [20:39:05]CheckOFDResponse [20:39:05]1017 (14) - 77093643461234 [20:39:05]1041 (16) - 0000000000875019 [20:39:05]1040 (4) - 112427 [20:39:05]1012 (4) - 14.04.2024 14:21 [20:39:05]1206 (1) - 0 [20:39:05]OFD Sender: Remove packet 112427 [20:39:05]ProducePacketName [20:39:05]name=ofd_packets/00112427 [20:39:05]NVStorageDeleteData [20:39:05]OFD Sender: No OFD packet to send [20:39:05]*** Cut start [20:39:05]*** Partial cut [20:39:05]*** CUTSNS_PIN = 1 [20:39:05]*** CUTSNS_PIN = 0 [20:39:06]*** Brake cut motor [20:39:06]Read from MH i2c: 01 [20:39:06]MH_I2C_Read... [20:39:06]*** Stop cut motor [20:39:06]*** Cut end [20:39:06]Read from MH i2c: 01 07 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: 01 07 00 87 2B 00 00 00 00 00 FF 0F C7 [20:39:06]process_action close_receipt done [20:39:06]requested_data is exist [20:39:06]produce_requested_data [20:39:06]requested_item fm.sn is exist - process it [20:39:06]wFMCommunicate request_size=4 [20:39:06]MH_SAM_APDU [20:39:06]CAPDU: 80 11 00 00 [20:39:06]Write to MH i2c: E2 08 00 88 2B 80 11 00 00 00 00 00 00 2D [20:39:06]Write i2c OK [20:39:06]MH_I2C_Read... [20:39:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:06]Read from MH i2c: E2 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 17 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 17 00 88 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7E [20:39:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:06]wFMCommunicate OK [20:39:06]requested_item fd.num is exist - process it [20:39:06]SAM_PROTO_GetFieldsCounters [20:39:06]wFMCommunicate request_size=4 [20:39:06]MH_SAM_APDU [20:39:06]CAPDU: 80 13 00 00 [20:39:06]Write to MH i2c: E2 08 00 89 2B 80 13 00 00 00 00 00 00 30 [20:39:06]Write i2c OK [20:39:06]MH_I2C_Read... [20:39:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:06]Read from MH i2c: E2 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 62 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 62 00 89 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [20:39:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:06]wFMCommunicate OK [20:39:06]SAM_PROTO_GetFieldsCounters done [20:39:06]requested_item shift.num is exist - process it [20:39:06]requested_item shift.opened is exist - process it [20:39:06]req_shift_opened [20:39:06]FM_GetShiftState [20:39:06]SAM_PROTO_GetShiftState [20:39:06]wFMCommunicate request_size=4 [20:39:06]MH_SAM_APDU [20:39:06]CAPDU: 80 13 01 00 [20:39:06]Write to MH i2c: E2 08 00 8A 2B 80 13 01 00 00 00 00 00 32 [20:39:06]Write i2c OK [20:39:06]MH_I2C_Read... [20:39:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:06]Read from MH i2c: E2 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 0E 00 [20:39:06]MH_I2C_Read... [20:39:06]Read from MH i2c: E2 0E 00 8A 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CA [20:39:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:06]wFMCommunicate OK [20:39:06]SAM_PROTO_GetShiftState done [20:39:06]FM_GetShiftState done [20:39:06]req_shift_opened done [20:39:06]requested_item shift.open_date is exist - process it [20:39:06]req_shift_open_date [20:39:06]req_shift_open_date done [20:39:06]produce_requested_data done [20:39:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112427,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:39:06]process_action_free close_receipt [20:39:06]json_value_free [20:39:06]json_value_free done [20:39:06]process_json_proto returns [20:39:06]Send response to host [20:39:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112427,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:39:06]free response buf [20:39:06]execute_script done [20:39:06]execute_script returns [20:39:06]free content buf [20:39:06]Sock 9.Close socket [20:39:06]Sock 9.Thread stoped [20:39:10]OFD Sender: No OFD packet to send [20:39:15]OFD Sender: No OFD packet to send [20:39:20]OFD Sender: No OFD packet to send [20:39:25]OFD Sender: No OFD packet to send [20:39:30]OFD Sender: No OFD packet to send [20:39:35]OFD Sender: No OFD packet to send [20:39:40]OFD Sender: No OFD packet to send [20:39:43]accept exits with 8 [20:39:43]New connection [20:39:43]New thread 3066826084 created [20:39:43]Thread 3066682724 joined [20:39:43]Waiting for new connection... [20:39:43] Sock 8.Parse request [20:39:43]Sock 8.Check first char [20:39:43]Sock 8.First char is OK [20:39:43]request: POST /json_proto HTTP/1.0 [20:39:43]Method: POST [20:39:43]URL: /json_proto [20:39:43]Method is POST - this is cgi request [20:39:43]url: /json_proto [20:39:43]query_string will be loaded in cgi processing [20:39:43]execute_cgi json_proto POST (null) [20:39:43]execute_cgi path=json_proto method=POST [20:39:43]POST find Content-Length [20:39:43]Host: 172.17.96.197:8080 [20:39:43]Content-Length: 815 [20:39:43]Content-Type: application/json [20:39:43] [20:39:43]POST finish read [20:39:43]Found Content-Length = 815 [20:39:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48725", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:43]execute_script... [20:39: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)48725", "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.40, "quantity" : 27.630, "sum" : 2000.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:43]POST & json_proto [20:39:43]process_json_proto [20:39:43]json parsed OK: [20:39:43]protocol is kg_v1.0 [20:39:43]action value=close_receipt [20:39:43]process_action close_receipt [20:39:43]cmd_close_receipt [20:39:43]MH_GetDate [20:39:43]Write to MH i2c: F0 00 00 8B 2B A5 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 09 00 [20:39:43]MH_I2C_Read... [20:39:43]Read from MH i2c: F0 09 00 8B 2B 00 11 3F 1C 66 E0 85 7F 64 C8 [20:39:43]GetLastDocTimeStamp 1713127144 [20:39:43]current date 1713127185 [20:39:43]FM_GetShiftState [20:39:43]SAM_PROTO_GetShiftState [20:39:43]wFMCommunicate request_size=4 [20:39:43]MH_SAM_APDU [20:39:43]CAPDU: 80 13 01 00 [20:39:43]Write to MH i2c: E2 08 00 8C 2B 80 13 01 00 00 00 00 00 34 [20:39:43]Write i2c OK [20:39:43]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0E 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 0E 00 8C 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CC [20:39:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:44]wFMCommunicate OK [20:39:44]SAM_PROTO_GetShiftState done [20:39:44]FM_GetShiftState done [20:39:44]opened in 1713054696 [20:39:44]opened+sec_in_day 1713141096 [20:39:44]quantity*price = 200041 [20:39:44]sum+1 = 200042 [20:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.41 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.41 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 327 14.04.2024 20:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112428 ФПД: 13610502865397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203945&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112428&fm=13610502865397&tin=02508201610067®Number=0000000000094237&sum=200041 [20:39:45]StoreToDocumentArchive [20:39:45]shift 357 fd 112428 [20:39:45]save to /storage/0357/doc_00112428 [20:39:45]save last doc name /storage/0357/doc_00112428 to /storage/kkm_last_doc_name [20:39:45]save OK [20:39:45]Clear old archive folders... [20:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:39:45]tlvbuf is 001C96F0 [20:39:45]SAM_PROTO_ClearQueue [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 09 00 00 [20:39:45]Write to MH i2c: E2 08 00 99 2B 80 09 00 00 00 00 00 00 36 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:45]Read from MH i2c: E2 03 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 99 2B 00 90 00 38 [20:39:45]RAPDU: 90 00 [20:39:45]wFMCommunicate OK [20:39:45]SAM_PROTO_ClearQueue done [20:39:45]KKMCreateOFDPacket [20:39:45]OFDProtocolAddRootSTLVToBuf [20:39:45]FM_MakeSignedData [20:39:45]FM_MakeSignedData [20:39:45]SAM_PROTO_SignData [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 0D 01 02 [20:39:45]Write to MH i2c: E2 08 00 9A 2B 80 0D 01 02 00 00 00 00 3E [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 9A 2B 00 90 00 39 [20:39:45]RAPDU: 90 00 [20:39:45]wFMCommunicate OK [20:39:45]wFMCommunicate request_size=255 [20:39:45]MH_SAM_APDU [20:39:45]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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 11 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B7 01 00 35 04 06 00 0C 60 F1 30 [20:39:45]Write to MH i2c: E2 02 01 9B 2B 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 11 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B7 01 00 35 04 06 00 0C 60 F1 30 00 00 EF [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 9B 2B 00 90 00 3A [20:39:45]RAPDU: 90 00 [20:39:45]wFMCommunicate OK [20:39:45]wFMCommunicate request_size=7 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 0D 02 02 02 41 F5 [20:39:45]Write to MH i2c: E2 0A 00 9C 2B 80 0D 02 02 02 00 41 F5 00 00 7B [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 03 00 9C 2B 00 90 00 3B [20:39:45]RAPDU: 90 00 [20:39:45]wFMCommunicate OK [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 0D 03 02 [20:39:45]Write to MH i2c: E2 08 00 9D 2B 80 0D 03 02 00 00 00 00 43 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 0B 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 0B 00 9D 2B 00 F9 4E 94 EF 57 76 AB 71 90 00 F7 [20:39:45]RAPDU: F9 4E 94 EF 57 76 AB 71 90 00 [20:39:45]wFMCommunicate OK [20:39:45]SAM_PROTO_SignData done [20:39:45]FM_MakeSignedData done [20:39:45]CreateOFDProtocolMessage [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 11 00 00 [20:39:45]Write to MH i2c: E2 08 00 9E 2B 80 11 00 00 00 00 00 00 43 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 17 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 17 00 9E 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 94 [20:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:45]wFMCommunicate OK [20:39:45]CreateOFDProtocolMessage done [20:39:45]OFDSenderStorePacket 112428 [20:39:45]StoreOFDPacket docnum=112428 [20:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C9 7A 04 01 A0 62 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 11 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B7 01 00 35 04 06 00 0C 60 F1 30 41 F5 F9 4E 94 EF 57 76 AB 71 [20:39:45]CheckFolder [20:39:45]dirname=/storage/ofd_packets [20:39:45]CheckFolder done [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00112428 [20:39:45]NVStorageSaveData ofd_packets/00112428 [20:39:45]File name is /storage/ofd_packets/00112428 [20:39:45]Write 298 bytes [20:39:45]NVStorageSaveData done [20:39:45]OFDSenderStorePacket done [20:39:45]KKMCreateOFDPacket done [20:39:45]NVStorageSaveData kkm_last_timestamp [20:39:45]File name is /storage/kkm_last_timestamp [20:39:45]Write 4 bytes [20:39:45]NVStorageSaveData done [20:39:45]ExternCall_PrintAddStr [20:39:45]wPrintStart [20:39:45]Write to MH i2c: 01 00 00 9F 2B CA [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: 01 07 00 9F 2B 00 00 00 00 00 FF 0F DF [20:39:45]RasterBufferAndPrint [20:39:45]line Счет N : (1)48725 [20:39:45]line ИНН: 02508201610067 [20:39:45]line Контрольно-Кассовый Чек [20:39:45]line ПРОДАЖА [20:39:45]line ТРК (МРК, ГНК) : 51 [20:39:45]line Товар: 2710194210 [20:39:45]line ДТ-К-5 [20:39:45]line 27.630 * 72.40 [20:39:45]line = 2000.41 [20:39:45]line НДС 12% НСП 1% [20:39:45]line > о реализуемом товаре [20:39:45]line ИТОГО: 2000.41 [20:39:45]line НСП 1% : 17.70 [20:39:45]line НДС 12% : 212.43 [20:39:45]line Наличными: 0.00 [20:39:45]line Безнал.: 2000.41 [20:39:45]line Место: АЗС № 47 "Партнер Нефть" [20:39:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:39:45]line СНО: Общий режим [20:39:45]line Чек 327 14.04.2024 20:39 [20:39:45]line Смена: 357 ФФД: 1.0 [20:39:45]line ЗНМ: 0300000138 [20:39:45]line РНМ: 0000000000094237 [20:39:45]line Версия ККМ: 001 [20:39:45]line Платежная система: Бакай Банк [20:39:45]line ФМ: 0000000000875019 [20:39:45]line ФД: 112428 [20:39:45]line ФПД: 13610502865397 [20:39:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203945&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112428&fm=13610502865397&tin=02508201610067®Number=0000000000094237&sum=200041 [20:39:45]OFD Sender: Processing packet 112428 [packets to send 71, broken 70] [20:39:45]ProducePacketName [20:39:45]name=ofd_packets/00112428 [20:39:45]OFD Sender: To server: pG, [20:39:45]CommunicateWithHost lk.salyk.kg:30040 [20:39:46]ConnectInit lk.salyk.kg [20:39:46]written 0, free lines is 4095 [20:39:46]Connected sock=10 [20:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C9 7A 04 01 A0 62 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 EE 6B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 69 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 11 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B7 01 00 35 04 06 00 0C 60 F1 30 41 F5 F9 4E 94 EF 57 76 AB 71 [20:39:46]Write to MH i2c: 01 00 00 C9 2B F4 [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: 01 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: 01 07 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: 01 07 00 C9 2B 00 00 00 00 00 EB 0C F2 [20:39:46]RasterBufferAndPrint [20:39:46]line [20:39:46]line [20:39:46]line [20:39:46]line [20:39:46]line [20:39:46]written 0, free lines is 3313 [20:39:46]MH_Cut [20:39:46]Write to MH i2c: D1 01 00 D0 2B 01 CD [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: D1 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: D1 01 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: D1 01 00 D0 2B 00 CC [20:39:46]Write to MH i2c: 01 00 00 D1 2B FC [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 09 8C 47 00 1C BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2C B7 01 00 F4 03 04 00 9C E6 1B 66 B6 04 01 00 00 50 BC EE D3 9D 8F 7D 35 [20:39:46]CommunicateWithHost err = 0 [20:39:46]CheckOFDResponse [20:39:46]1017 (14) - 77093643461234 [20:39:46]1041 (16) - 0000000000875019 [20:39:46]1040 (4) - 112428 [20:39:46]1012 (4) - 14.04.2024 14:22 [20:39:46]1206 (1) - 0 [20:39:46]OFD Sender: Remove packet 112428 [20:39:46]ProducePacketName [20:39:46]name=ofd_packets/00112428 [20:39:46]NVStorageDeleteData [20:39:46]OFD Sender: No OFD packet to send [20:39:47]*** Cut start [20:39:47]*** Partial cut [20:39:47]*** CUTSNS_PIN = 1 [20:39:47]*** CUTSNS_PIN = 0 [20:39:47]*** Brake cut motor [20:39:47]Read from MH i2c: 01 [20:39:47]MH_I2C_Read... [20:39:47]*** Stop cut motor [20:39:47]*** Cut end [20:39:47]Read from MH i2c: 01 07 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 D1 2B 00 00 00 00 00 FF 0F 11 [20:39:47]process_action close_receipt done [20:39:47]requested_data is exist [20:39:47]produce_requested_data [20:39:47]requested_item fm.sn is exist - process it [20:39:47]wFMCommunicate request_size=4 [20:39:47]MH_SAM_APDU [20:39:47]CAPDU: 80 11 00 00 [20:39:47]Write to MH i2c: E2 08 00 D2 2B 80 11 00 00 00 00 00 00 77 [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:47]Read from MH i2c: E2 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 17 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: E2 17 00 D2 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C8 [20:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:47]wFMCommunicate OK [20:39:47]requested_item fd.num is exist - process it [20:39:47]SAM_PROTO_GetFieldsCounters [20:39:47]wFMCommunicate request_size=4 [20:39:47]MH_SAM_APDU [20:39:47]CAPDU: 80 13 00 00 [20:39:47]Write to MH i2c: E2 08 00 D3 2B 80 13 00 00 00 00 00 00 7A [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:48]Read from MH i2c: E2 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 62 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 62 00 D3 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [20:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:48]wFMCommunicate OK [20:39:48]SAM_PROTO_GetFieldsCounters done [20:39:48]requested_item shift.num is exist - process it [20:39:48]requested_item shift.opened is exist - process it [20:39:48]req_shift_opened [20:39:48]FM_GetShiftState [20:39:48]SAM_PROTO_GetShiftState [20:39:48]wFMCommunicate request_size=4 [20:39:48]MH_SAM_APDU [20:39:48]CAPDU: 80 13 01 00 [20:39:48]Write to MH i2c: E2 08 00 D4 2B 80 13 01 00 00 00 00 00 7C [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:48]Read from MH i2c: E2 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 D4 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 14 [20:39:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:48]wFMCommunicate OK [20:39:48]SAM_PROTO_GetShiftState done [20:39:48]FM_GetShiftState done [20:39:48]req_shift_opened done [20:39:48]requested_item shift.open_date is exist - process it [20:39:48]req_shift_open_date [20:39:48]req_shift_open_date done [20:39:48]produce_requested_data done [20:39:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112428,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:39:48]process_action_free close_receipt [20:39:48]json_value_free [20:39:48]json_value_free done [20:39:48]process_json_proto returns [20:39:48]Send response to host [20:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112428,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:39:48]free response buf [20:39:48]execute_script done [20:39:48]execute_script returns [20:39:48]free content buf [20:39:48]Sock 8.Close socket [20:39:48]Sock 8.Thread stoped [20:39:48]accept exits with 9 [20:39:48]New connection [20:39:48]New thread 3066682724 created [20:39:48]Thread 3066826084 joined [20:39:48]Waiting for new connection... [20:39:48] Sock 9.Parse request [20:39:48]Sock 9.Check first char [20:39:48]Sock 9.First char is OK [20:39:48]request: POST /json_proto HTTP/1.0 [20:39:48]Method: POST [20:39:48]URL: /json_proto [20:39:48]Method is POST - this is cgi request [20:39:48]url: /json_proto [20:39:48]query_string will be loaded in cgi processing [20:39:48]execute_cgi json_proto POST (null) [20:39:48]execute_cgi path=json_proto method=POST [20:39:48]POST find Content-Length [20:39:48]Host: 172.17.96.197:8080 [20:39:48]Content-Length: 670 [20:39:48]Content-Type: application/json [20:39:48] [20:39:48]POST finish read [20:39:48]Found Content-Length = 670 [20:39:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48726", "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.30, "quantity" : 13.330, "sum" : 870.45, "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" ] } } [20:39:48]execute_script... [20:39: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)48726", "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.30, "quantity" : 13.330, "sum" : 870.45, "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" ] } } [20:39:48]POST & json_proto [20:39:48]process_json_proto [20:39:48]json parsed OK: [20:39:48]protocol is kg_v1.0 [20:39:48]action value=close_receipt [20:39:48]process_action close_receipt [20:39:48]cmd_close_receipt [20:39:48]MH_GetDate [20:39:48]Write to MH i2c: F0 00 00 D5 2B EF [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 09 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: F0 09 00 D5 2B 00 16 3F 1C 66 E0 85 7F 64 17 [20:39:48]GetLastDocTimeStamp 1713127185 [20:39:48]current date 1713127190 [20:39:48]FM_GetShiftState [20:39:48]SAM_PROTO_GetShiftState [20:39:48]wFMCommunicate request_size=4 [20:39:48]MH_SAM_APDU [20:39:48]CAPDU: 80 13 01 00 [20:39:48]Write to MH i2c: E2 08 00 D6 2B 80 13 01 00 00 00 00 00 7E [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:48]Read from MH i2c: E2 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: E2 0E 00 D6 2B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 16 [20:39:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:48]wFMCommunicate OK [20:39:48]SAM_PROTO_GetShiftState done [20:39:48]FM_GetShiftState done [20:39:48]opened in 1713054696 [20:39:48]opened+sec_in_day 1713141096 [20:39:48]quantity*price = 87044 [20:39:48]sum+1 = 87046 [20:39:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 870.00 Внесено: 870.00 СДАЧА: 0.00 НСП 1% : 7.70 НДС 12% : 92.44 Наличными: 870.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 328 14.04.2024 20:39 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112429 ФПД: 134270721037045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203950&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112429&fm=134270721037045&tin=02508201610067®Number=0000000000094237&sum=87000 [20:39:49]StoreToDocumentArchive [20:39:49]shift 357 fd 112429 [20:39:49]save to /storage/0357/doc_00112429 [20:39:49]save last doc name /storage/0357/doc_00112429 to /storage/kkm_last_doc_name [20:39:49]save OK [20:39:49]Clear old archive folders... [20:39:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:39:49]tlvbuf is 00181E10 [20:39:49]SAM_PROTO_ClearQueue [20:39:49]wFMCommunicate request_size=4 [20:39:49]MH_SAM_APDU [20:39:49]CAPDU: 80 09 00 00 [20:39:49]Write to MH i2c: E2 08 00 E3 2B 80 09 00 00 00 00 00 00 80 [20:39:49]Write i2c OK [20:39:49]MH_I2C_Read... [20:39:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:39:49]Read from MH i2c: E2 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 03 00 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 03 00 E3 2B 00 90 00 82 [20:39:49]RAPDU: 90 00 [20:39:49]wFMCommunicate OK [20:39:49]SAM_PROTO_ClearQueue done [20:39:49]KKMCreateOFDPacket [20:39:49]OFDProtocolAddRootSTLVToBuf [20:39:49]FM_MakeSignedData [20:39:49]FM_MakeSignedData [20:39:49]SAM_PROTO_SignData [20:39:49]wFMCommunicate request_size=4 [20:39:49]MH_SAM_APDU [20:39:49]CAPDU: 80 0D 01 02 [20:39:49]Write to MH i2c: E2 08 00 E4 2B 80 0D 01 02 00 00 00 00 88 [20:39:49]Write i2c OK [20:39:49]MH_I2C_Read... [20:39:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:39:49]Read from MH i2c: E2 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 03 00 [20:39:49]MH_I2C_Read... [20:39:49]Read from MH i2c: E2 03 00 E4 2B 00 90 00 83 [20:39:49]RAPDU: 90 00 [20:39:49]wFMCommunicate OK [20:39:49]wFMCommunicate request_size=255 [20:39:49]MH_SAM_APDU [20:39: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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 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 1C 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 48 01 00 00 F4 03 04 00 16 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B7 01 00 35 04 06 00 [20:39:49]Write to MH i2c: E2 02 01 E5 2B 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 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 1C 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 48 01 00 00 F4 03 04 00 16 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B7 01 00 35 04 06 00 00 00 70 [20:39:49]Write i2c OK [20:39:49]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 E5 2B 00 90 00 84 [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=11 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 02 02 06 7A 1E 56 A1 92 F5 [20:39:50]Write to MH i2c: E2 0E 00 E6 2B 80 0D 02 02 06 00 7A 1E 56 A1 92 F5 00 00 AD [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 03 00 E6 2B 00 90 00 85 [20:39:50]RAPDU: 90 00 [20:39:50]wFMCommunicate OK [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 0D 03 02 [20:39:50]Write to MH i2c: E2 08 00 E7 2B 80 0D 03 02 00 00 00 00 8D [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0B 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 0B 00 E7 2B 00 E6 F2 9E E7 67 F6 4A F8 90 00 8A [20:39:50]RAPDU: E6 F2 9E E7 67 F6 4A F8 90 00 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_SignData done [20:39:50]FM_MakeSignedData done [20:39:50]CreateOFDProtocolMessage [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 11 00 00 [20:39:50]Write to MH i2c: E2 08 00 E8 2B 80 11 00 00 00 00 00 00 8D [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 17 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 17 00 E8 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DE [20:39:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:50]wFMCommunicate OK [20:39:50]CreateOFDProtocolMessage done [20:39:50]OFDSenderStorePacket 112429 [20:39:50]StoreOFDPacket docnum=112429 [20:39:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F2 B3 08 01 41 26 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 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 1C 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 48 01 00 00 F4 03 04 00 16 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B7 01 00 35 04 06 00 7A 1E 56 A1 92 F5 E6 F2 9E E7 67 F6 4A F8 [20:39:50]CheckFolder [20:39:50]dirname=/storage/ofd_packets [20:39:50]CheckFolder done [20:39:50]ProducePacketName [20:39:50]name=ofd_packets/00112429 [20:39:50]NVStorageSaveData ofd_packets/00112429 [20:39:50]File name is /storage/ofd_packets/00112429 [20:39:50]Write 302 bytes [20:39:50]NVStorageSaveData done [20:39:50]OFDSenderStorePacket done [20:39:50]KKMCreateOFDPacket done [20:39:50]NVStorageSaveData kkm_last_timestamp [20:39:50]File name is /storage/kkm_last_timestamp [20:39:50]Write 4 bytes [20:39:50]NVStorageSaveData done [20:39:50]ExternCall_PrintAddStr [20:39:50]wPrintStart [20:39:50]Write to MH i2c: 01 00 00 E9 2B 14 [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 07 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 07 00 E9 2B 00 00 00 00 00 FF 0F 29 [20:39:50]RasterBufferAndPrint [20:39:50]line Счет N : (1)48726 [20:39:50]line ИНН: 02508201610067 [20:39:50]line Контрольно-Кассовый Чек [20:39:50]line ПРОДАЖА [20:39:50]line ТРК (МРК, ГНК) : 31 [20:39:50]line Товар: 2710124130 [20:39:50]line SUPER 92-К-5 [20:39:50]line 13.330 * 65.30 [20:39:50]line = 870.45 [20:39:50]line НДС 12% НСП 1% [20:39:50]line > о реализуемом товаре [20:39:50]line ОКРУГЛЕНИЕ: -0.45 [20:39:50]line ИТОГО: 870.00 [20:39:50]line Внесено: 870.00 [20:39:50]line СДАЧА: 0.00 [20:39:50]line НСП 1% : 7.70 [20:39:50]line НДС 12% : 92.44 [20:39:50]line Наличными: 870.00 [20:39:50]line Безнал.: 0.00 [20:39:50]line Место: АЗС № 47 "Партнер Нефть" [20:39:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:39:50]line СНО: Общий режим [20:39:50]line Чек 328 14.04.2024 20:39 [20:39:50]line Смена: 357 ФФД: 1.0 [20:39:50]line ЗНМ: 0300000138 [20:39:50]line РНМ: 0000000000094237 [20:39:50]line Версия ККМ: 001 [20:39:50]line ФМ: 0000000000875019 [20:39:50]line ФД: 112429 [20:39:50]line ФПД: 134270721037045 [20:39:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T203950&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112429&fm=134270721037045&tin=02508201610067®Number=0000000000094237&sum=87000 [20:39:50]OFD Sender: Processing packet 112429 [packets to send 71, broken 70] [20:39:50]ProducePacketName [20:39:50]name=ofd_packets/00112429 [20:39:50]OFD Sender: To server: pG, [20:39:50]CommunicateWithHost lk.salyk.kg:30040 [20:39:50]ConnectInit lk.salyk.kg [20:39:50]written 0, free lines is 4095 [20:39:50]Connected sock=8 [20:39:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F2 B3 08 01 41 26 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 12 34 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 05 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 1C 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 48 01 00 00 F4 03 04 00 16 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2D B7 01 00 35 04 06 00 7A 1E 56 A1 92 F5 E6 F2 9E E7 67 F6 4A F8 [20:39:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1C 0A 47 00 89 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 38 37 35 30 31 39 10 04 04 00 2D B7 01 00 F4 03 04 00 A0 E6 1B 66 B6 04 01 00 00 D0 34 E5 F8 8A 0D EB 2F [20:39:51]CommunicateWithHost err = 0 [20:39:51]CheckOFDResponse [20:39:51]1017 (14) - 77093643461234 [20:39:51]1041 (16) - 0000000000875019 [20:39:51]1040 (4) - 112429 [20:39:51]1012 (4) - 14.04.2024 14:22 [20:39:51]1206 (1) - 0 [20:39:51]OFD Sender: Remove packet 112429 [20:39:51]ProducePacketName [20:39:51]name=ofd_packets/00112429 [20:39:51]NVStorageDeleteData [20:39:51]Write to MH i2c: 01 00 00 14 2C 40 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: 01 07 00 14 2C 00 00 00 00 00 05 0D 59 [20:39:51]RasterBufferAndPrint [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]line [20:39:51]written 0, free lines is 3346 [20:39:51]MH_Cut [20:39:51]Write to MH i2c: D1 01 00 1B 2C 01 19 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: D1 01 00 1B 2C 00 18 [20:39:51]Write to MH i2c: 01 00 00 1C 2C 48 [20:39:51]Write i2c OK [20:39:51]MH_I2C_Read... [20:39:51]OFD Sender: No OFD packet to send [20:39:51]*** Cut start [20:39:51]*** Partial cut [20:39:51]*** CUTSNS_PIN = 1 [20:39:51]*** CUTSNS_PIN = 0 [20:39:52]*** Brake cut motor [20:39:52]Read from MH i2c: 01 [20:39:52]MH_I2C_Read... [20:39:52]*** Stop cut motor [20:39:52]*** Cut end [20:39:52]Read from MH i2c: 01 07 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: 01 07 00 1C 2C 00 00 00 00 00 FF 0F 5D [20:39:52]process_action close_receipt done [20:39:52]requested_data is exist [20:39:52]produce_requested_data [20:39:52]requested_item fm.sn is exist - process it [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 11 00 00 [20:39:52]Write to MH i2c: E2 08 00 1D 2C 80 11 00 00 00 00 00 00 C3 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 17 00 1D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 14 [20:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:39:52]wFMCommunicate OK [20:39:52]requested_item fd.num is exist - process it [20:39:52]SAM_PROTO_GetFieldsCounters [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 13 00 00 [20:39:52]Write to MH i2c: E2 08 00 1E 2C 80 13 00 00 00 00 00 00 C6 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 62 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 62 00 1E 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [20:39:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:39:52]wFMCommunicate OK [20:39:52]SAM_PROTO_GetFieldsCounters done [20:39:52]requested_item shift.num is exist - process it [20:39:52]requested_item shift.opened is exist - process it [20:39:52]req_shift_opened [20:39:52]FM_GetShiftState [20:39:52]SAM_PROTO_GetShiftState [20:39:52]wFMCommunicate request_size=4 [20:39:52]MH_SAM_APDU [20:39:52]CAPDU: 80 13 01 00 [20:39:52]Write to MH i2c: E2 08 00 1F 2C 80 13 01 00 00 00 00 00 C8 [20:39:52]Write i2c OK [20:39:52]MH_I2C_Read... [20:39:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:52]Read from MH i2c: E2 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 0E 00 [20:39:52]MH_I2C_Read... [20:39:52]Read from MH i2c: E2 0E 00 1F 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 60 [20:39:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:39:52]wFMCommunicate OK [20:39:52]SAM_PROTO_GetShiftState done [20:39:52]FM_GetShiftState done [20:39:52]req_shift_opened done [20:39:52]requested_item shift.open_date is exist - process it [20:39:52]req_shift_open_date [20:39:52]req_shift_open_date done [20:39:52]produce_requested_data done [20:39:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112429,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:39:52]process_action_free close_receipt [20:39:52]json_value_free [20:39:52]json_value_free done [20:39:52]process_json_proto returns [20:39:52]Send response to host [20:39:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112429,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:39:52]free response buf [20:39:52]execute_script done [20:39:52]execute_script returns [20:39:52]free content buf [20:39:52]Sock 9.Close socket [20:39:52]Sock 9.Thread stoped [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:31]OFD Sender: No OFD packet to send [20:40:36]OFD Sender: No OFD packet to send [20:40:41]OFD Sender: No OFD packet to send [20:40:46]OFD Sender: No OFD packet to send [20:40:51]OFD Sender: No OFD packet to send [20:40:56]OFD Sender: No OFD packet to send [20:41:01]OFD Sender: No OFD packet to send [20:41:06]OFD Sender: No OFD packet to send [20:41:11]OFD Sender: No OFD packet to send [20:41:16]OFD Sender: No OFD packet to send [20:41:21]OFD Sender: No OFD packet to send [20:41:26]OFD Sender: No OFD packet to send [20:41:31]OFD Sender: No OFD packet to send [20:41:36]OFD Sender: No OFD packet to send [20:41:41]OFD Sender: No OFD packet to send [20:41:46]OFD Sender: No OFD packet to send [20:41:51]OFD Sender: No OFD packet to send [20:41:52]accept exits with 10 [20:41:52]New connection [20:41:52]New thread 3066826084 created [20:41:52]Thread 3066682724 joined [20:41:52]Waiting for new connection... [20:41:52] Sock 10.Parse request [20:41:52]Sock 10.Check first char [20:41:52]Sock 10.First char is OK [20:41:52]request: POST /json_proto HTTP/1.0 [20:41:52]Method: POST [20:41:52]URL: /json_proto [20:41:52]Method is POST - this is cgi request [20:41:52]url: /json_proto [20:41:52]query_string will be loaded in cgi processing [20:41:52]execute_cgi json_proto POST (null) [20:41:52]execute_cgi path=json_proto method=POST [20:41:52]POST find Content-Length [20:41:52]Host: 172.17.96.197:8080 [20:41:52]Content-Length: 670 [20:41:52]Content-Type: application/json [20:41:52] [20:41:52]POST finish read [20:41:52]Found Content-Length = 670 [20:41:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48728", "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.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [20:41:52]execute_script... [20:41: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)48728", "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.30, "quantity" : 12.260, "sum" : 800.58, "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" ] } } [20:41:52]POST & json_proto [20:41:52]process_json_proto [20:41:52]json parsed OK: [20:41:52]protocol is kg_v1.0 [20:41:52]action value=close_receipt [20:41:52]process_action close_receipt [20:41:52]cmd_close_receipt [20:41:52]MH_GetDate [20:41:52]Write to MH i2c: F0 00 00 20 2C 3B [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: F0 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: F0 09 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: F0 09 00 20 2C 00 92 3F 1C 66 E0 85 7F 64 DF [20:41:52]GetLastDocTimeStamp 1713127190 [20:41:52]current date 1713127314 [20:41:52]FM_GetShiftState [20:41:52]SAM_PROTO_GetShiftState [20:41:52]wFMCommunicate request_size=4 [20:41:52]MH_SAM_APDU [20:41:52]CAPDU: 80 13 01 00 [20:41:52]Write to MH i2c: E2 08 00 21 2C 80 13 01 00 00 00 00 00 CA [20:41:52]Write i2c OK [20:41:52]MH_I2C_Read... [20:41:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:52]Read from MH i2c: E2 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 0E 00 [20:41:52]MH_I2C_Read... [20:41:52]Read from MH i2c: E2 0E 00 21 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 62 [20:41:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:41:52]wFMCommunicate OK [20:41:52]SAM_PROTO_GetShiftState done [20:41:52]FM_GetShiftState done [20:41:52]opened in 1713054696 [20:41:52]opened+sec_in_day 1713141096 [20:41:52]quantity*price = 80057 [20:41:52]sum+1 = 80059 [20:41:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 329 14.04.2024 20:41 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112430 ФПД: 31780820770254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204154&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112430&fm=31780820770254&tin=02508201610067®Number=0000000000094237&sum=80000 [20:41:54]StoreToDocumentArchive [20:41:54]shift 357 fd 112430 [20:41:54]save to /storage/0357/doc_00112430 [20:41:54]save last doc name /storage/0357/doc_00112430 to /storage/kkm_last_doc_name [20:41:54]save OK [20:41:54]Clear old archive folders... [20:41:54]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:41:54]tlvbuf is B6F39660 [20:41:54]SAM_PROTO_ClearQueue [20:41:54]wFMCommunicate request_size=4 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 09 00 00 [20:41:54]Write to MH i2c: E2 08 00 2E 2C 80 09 00 00 00 00 00 00 CC [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 2E 2C 00 90 00 CE [20:41:54]RAPDU: 90 00 [20:41:54]wFMCommunicate OK [20:41:54]SAM_PROTO_ClearQueue done [20:41:54]KKMCreateOFDPacket [20:41:54]OFDProtocolAddRootSTLVToBuf [20:41:54]FM_MakeSignedData [20:41:54]FM_MakeSignedData [20:41:54]SAM_PROTO_SignData [20:41:54]wFMCommunicate request_size=4 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 0D 01 02 [20:41:54]Write to MH i2c: E2 08 00 2F 2C 80 0D 01 02 00 00 00 00 D4 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 2F 2C 00 90 00 CF [20:41:54]RAPDU: 90 00 [20:41:54]wFMCommunicate OK [20:41:54]wFMCommunicate request_size=255 [20:41:54]MH_SAM_APDU [20:41:54]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 49 01 00 00 F4 03 04 00 92 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B7 01 00 35 04 06 00 [20:41:54]Write to MH i2c: E2 02 01 30 2C 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 49 01 00 00 F4 03 04 00 92 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B7 01 00 35 04 06 00 00 00 92 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 30 2C 00 90 00 D0 [20:41:54]RAPDU: 90 00 [20:41:54]wFMCommunicate OK [20:41:54]wFMCommunicate request_size=11 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 0D 02 02 06 1C E7 8C 88 5D CE [20:41:54]Write to MH i2c: E2 0E 00 31 2C 80 0D 02 02 06 00 1C E7 8C 88 5D CE 00 00 25 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 03 00 31 2C 00 90 00 D1 [20:41:54]RAPDU: 90 00 [20:41:54]wFMCommunicate OK [20:41:54]wFMCommunicate request_size=4 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 0D 03 02 [20:41:54]Write to MH i2c: E2 08 00 32 2C 80 0D 03 02 00 00 00 00 D9 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 0B 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 0B 00 32 2C 00 7F EF EF 03 24 BE D1 F1 90 00 DE [20:41:54]RAPDU: 7F EF EF 03 24 BE D1 F1 90 00 [20:41:54]wFMCommunicate OK [20:41:54]SAM_PROTO_SignData done [20:41:54]FM_MakeSignedData done [20:41:54]CreateOFDProtocolMessage [20:41:54]wFMCommunicate request_size=4 [20:41:54]MH_SAM_APDU [20:41:54]CAPDU: 80 11 00 00 [20:41:54]Write to MH i2c: E2 08 00 33 2C 80 11 00 00 00 00 00 00 D9 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:54]Read from MH i2c: E2 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 17 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: E2 17 00 33 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2A [20:41:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:41:54]wFMCommunicate OK [20:41:54]CreateOFDProtocolMessage done [20:41:54]OFDSenderStorePacket 112430 [20:41:54]StoreOFDPacket docnum=112430 [20:41:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 1B 71 08 01 BF 46 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 49 01 00 00 F4 03 04 00 92 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B7 01 00 35 04 06 00 1C E7 8C 88 5D CE 7F EF EF 03 24 BE D1 F1 [20:41:54]CheckFolder [20:41:54]dirname=/storage/ofd_packets [20:41:54]CheckFolder done [20:41:54]ProducePacketName [20:41:54]name=ofd_packets/00112430 [20:41:54]NVStorageSaveData ofd_packets/00112430 [20:41:54]File name is /storage/ofd_packets/00112430 [20:41:54]Write 302 bytes [20:41:54]NVStorageSaveData done [20:41:54]OFDSenderStorePacket done [20:41:54]KKMCreateOFDPacket done [20:41:54]NVStorageSaveData kkm_last_timestamp [20:41:54]File name is /storage/kkm_last_timestamp [20:41:54]Write 4 bytes [20:41:54]NVStorageSaveData done [20:41:54]ExternCall_PrintAddStr [20:41:54]wPrintStart [20:41:54]Write to MH i2c: 01 00 00 34 2C 60 [20:41:54]Write i2c OK [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 07 00 [20:41:54]MH_I2C_Read... [20:41:54]Read from MH i2c: 01 07 00 34 2C 00 00 00 00 00 FF 0F 75 [20:41:54]RasterBufferAndPrint [20:41:54]line Счет N : (1)48728 [20:41:54]line ИНН: 02508201610067 [20:41:54]line Контрольно-Кассовый Чек [20:41:54]line ПРОДАЖА [20:41:54]line ТРК (МРК, ГНК) : 41 [20:41:54]line Товар: 2710124130 [20:41:54]line SUPER 92-К-5 [20:41:54]line 12.260 * 65.30 [20:41:54]line = 800.58 [20:41:54]line НДС 12% НСП 1% [20:41:54]line > о реализуемом товаре [20:41:54]line ОКРУГЛЕНИЕ: -0.58 [20:41:54]line ИТОГО: 800.00 [20:41:54]line Внесено: 800.00 [20:41:54]line СДАЧА: 0.00 [20:41:54]line НСП 1% : 7.08 [20:41:54]line НДС 12% : 85.02 [20:41:54]line Наличными: 800.00 [20:41:54]line Безнал.: 0.00 [20:41:54]line Место: АЗС № 47 "Партнер Нефть" [20:41:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:41:54]line СНО: Общий режим [20:41:54]line Чек 329 14.04.2024 20:41 [20:41:54]line Смена: 357 ФФД: 1.0 [20:41:54]line ЗНМ: 0300000138 [20:41:54]line РНМ: 0000000000094237 [20:41:54]line Версия ККМ: 001 [20:41:54]line ФМ: 0000000000875019 [20:41:54]line ФД: 112430 [20:41:54]line ФПД: 31780820770254 [20:41:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204154&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112430&fm=31780820770254&tin=02508201610067®Number=0000000000094237&sum=80000 [20:41:54]OFD Sender: Processing packet 112430 [packets to send 71, broken 70] [20:41:54]ProducePacketName [20:41:54]name=ofd_packets/00112430 [20:41:54]OFD Sender: To server: pG, [20:41:54]CommunicateWithHost lk.salyk.kg:30040 [20:41:54]ConnectInit lk.salyk.kg [20:41:54]written 0, free lines is 4095 [20:41:55]Connected sock=9 [20:41:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 1B 71 08 01 BF 46 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E4 2F 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 BA 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 36 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 49 01 00 00 F4 03 04 00 92 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B7 01 00 35 04 06 00 1C E7 8C 88 5D CE 7F EF EF 03 24 BE D1 F1 [20:41:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C7 65 47 00 CE 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2E B7 01 00 F4 03 04 00 1D E7 1B 66 B6 04 01 00 00 86 27 9D FD 2E 38 F8 A4 [20:41:55]CommunicateWithHost err = 0 [20:41:55]CheckOFDResponse [20:41:55]1017 (14) - 77093643461234 [20:41:55]1041 (16) - 0000000000875019 [20:41:55]1040 (4) - 112430 [20:41:55]1012 (4) - 14.04.2024 14:24 [20:41:55]1206 (1) - 0 [20:41:55]OFD Sender: Remove packet 112430 [20:41:55]ProducePacketName [20:41:55]name=ofd_packets/00112430 [20:41:55]NVStorageDeleteData [20:41:55]Write to MH i2c: 01 00 00 5F 2C 8B [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: 01 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: 01 07 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: 01 07 00 5F 2C 00 00 00 00 00 E9 0C 87 [20:41:55]RasterBufferAndPrint [20:41:55]line [20:41:55]line [20:41:55]line [20:41:55]line [20:41:55]line [20:41:55]written 0, free lines is 3311 [20:41:55]MH_Cut [20:41:55]Write to MH i2c: D1 01 00 66 2C 01 64 [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: D1 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: D1 01 00 [20:41:55]MH_I2C_Read... [20:41:55]Read from MH i2c: D1 01 00 66 2C 00 63 [20:41:55]Write to MH i2c: 01 00 00 67 2C 93 [20:41:55]Write i2c OK [20:41:55]MH_I2C_Read... [20:41:55]OFD Sender: No OFD packet to send [20:41:56]*** Cut start [20:41:56]*** Partial cut [20:41:56]*** CUTSNS_PIN = 1 [20:41:56]*** CUTSNS_PIN = 0 [20:41:56]*** Brake cut motor [20:41:56]Read from MH i2c: 01 [20:41:56]MH_I2C_Read... [20:41:56]*** Stop cut motor [20:41:56]*** Cut end [20:41:56]Read from MH i2c: 01 07 00 [20:41:56]MH_I2C_Read... [20:41:56]Read from MH i2c: 01 07 00 67 2C 00 00 00 00 00 FF 0F A8 [20:41:56]process_action close_receipt done [20:41:56]requested_data is exist [20:41:56]produce_requested_data [20:41:56]requested_item fm.sn is exist - process it [20:41:56]wFMCommunicate request_size=4 [20:41:56]MH_SAM_APDU [20:41:56]CAPDU: 80 11 00 00 [20:41:56]Write to MH i2c: E2 08 00 68 2C 80 11 00 00 00 00 00 00 0E [20:41:56]Write i2c OK [20:41:56]MH_I2C_Read... [20:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:56]Read from MH i2c: E2 [20:41:56]MH_I2C_Read... [20:41:56]Read from MH i2c: E2 17 00 [20:41:56]MH_I2C_Read... [20:41:56]Read from MH i2c: E2 17 00 68 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5F [20:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:41:56]wFMCommunicate OK [20:41:56]requested_item fd.num is exist - process it [20:41:56]SAM_PROTO_GetFieldsCounters [20:41:56]wFMCommunicate request_size=4 [20:41:56]MH_SAM_APDU [20:41:56]CAPDU: 80 13 00 00 [20:41:56]Write to MH i2c: E2 08 00 69 2C 80 13 00 00 00 00 00 00 11 [20:41:56]Write i2c OK [20:41:56]MH_I2C_Read... [20:41:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:56]Read from MH i2c: E2 [20:41:56]MH_I2C_Read... [20:41:56]Read from MH i2c: E2 62 00 [20:41:56]MH_I2C_Read... [20:41:56]Read from MH i2c: E2 62 00 69 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [20:41:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:41:56]wFMCommunicate OK [20:41:56]SAM_PROTO_GetFieldsCounters done [20:41:56]requested_item shift.num is exist - process it [20:41:56]requested_item shift.opened is exist - process it [20:41:56]req_shift_opened [20:41:56]FM_GetShiftState [20:41:56]SAM_PROTO_GetShiftState [20:41:56]wFMCommunicate request_size=4 [20:41:56]MH_SAM_APDU [20:41:56]CAPDU: 80 13 01 00 [20:41:56]Write to MH i2c: E2 08 00 6A 2C 80 13 01 00 00 00 00 00 13 [20:41:57]Write i2c OK [20:41:57]MH_I2C_Read... [20:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:57]Read from MH i2c: E2 [20:41:57]MH_I2C_Read... [20:41:57]Read from MH i2c: E2 0E 00 [20:41:57]MH_I2C_Read... [20:41:57]Read from MH i2c: E2 0E 00 6A 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AB [20:41:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:41:57]wFMCommunicate OK [20:41:57]SAM_PROTO_GetShiftState done [20:41:57]FM_GetShiftState done [20:41:57]req_shift_opened done [20:41:57]requested_item shift.open_date is exist - process it [20:41:57]req_shift_open_date [20:41:57]req_shift_open_date done [20:41:57]produce_requested_data done [20:41:57]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112430,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:41:57]process_action_free close_receipt [20:41:57]json_value_free [20:41:57]json_value_free done [20:41:57]process_json_proto returns [20:41:57]Send response to host [20:41:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112430,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:41:57]free response buf [20:41:57]execute_script done [20:41:57]execute_script returns [20:41:57]free content buf [20:41:57]Sock 10.Close socket [20:41:57]Sock 10.Thread stoped [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:11]accept exits with 8 [20:42:11]New connection [20:42:11]New thread 3066682724 created [20:42:11]Thread 3066826084 joined [20:42:11]Waiting for new connection... [20:42:11] Sock 8.Parse request [20:42:11]Sock 8.Check first char [20:42:11]Sock 8.First char is OK [20:42:11]request: POST /json_proto HTTP/1.0 [20:42:11]Method: POST [20:42:11]URL: /json_proto [20:42:11]Method is POST - this is cgi request [20:42:11]url: /json_proto [20:42:11]query_string will be loaded in cgi processing [20:42:11]execute_cgi json_proto POST (null) [20:42:11]execute_cgi path=json_proto method=POST [20:42:11]POST find Content-Length [20:42:11]Host: 172.17.96.197:8080 [20:42:11]Content-Length: 681 [20:42:11]Content-Type: application/json [20:42:11] [20:42:11]POST finish read [20:42:11]Found Content-Length = 681 [20:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "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" ] } } [20:42:11]execute_script... [20:42: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)48727", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 23.330, "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" ] } } [20:42:11]POST & json_proto [20:42:11]process_json_proto [20:42:11]json parsed OK: [20:42:11]protocol is kg_v1.0 [20:42:11]action value=close_receipt [20:42:11]process_action close_receipt [20:42:11]cmd_close_receipt [20:42:11]MH_GetDate [20:42:11]Write to MH i2c: F0 00 00 6B 2C 86 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: F0 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: F0 09 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: F0 09 00 6B 2C 00 A5 3F 1C 66 E0 85 7F 64 3D [20:42:11]GetLastDocTimeStamp 1713127314 [20:42:11]current date 1713127333 [20:42:11]FM_GetShiftState [20:42:11]SAM_PROTO_GetShiftState [20:42:11]wFMCommunicate request_size=4 [20:42:11]MH_SAM_APDU [20:42:11]CAPDU: 80 13 01 00 [20:42:11]Write to MH i2c: E2 08 00 6C 2C 80 13 01 00 00 00 00 00 15 [20:42:11]Write i2c OK [20:42:11]MH_I2C_Read... [20:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:11]Read from MH i2c: E2 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 0E 00 [20:42:11]MH_I2C_Read... [20:42:11]Read from MH i2c: E2 0E 00 6C 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 AD [20:42:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:42:11]wFMCommunicate OK [20:42:11]SAM_PROTO_GetShiftState done [20:42:11]FM_GetShiftState done [20:42:11]opened in 1713054696 [20:42:11]opened+sec_in_day 1713141096 [20:42:11]quantity*price = 150011 [20:42:11]sum+1 = 150013 [20:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 330 14.04.2024 20:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112431 ФПД: 29571588106248 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204213&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112431&fm=29571588106248&tin=02508201610067®Number=0000000000094237&sum=150000 [20:42:12]StoreToDocumentArchive [20:42:12]shift 357 fd 112431 [20:42:12]save to /storage/0357/doc_00112431 [20:42:12]save last doc name /storage/0357/doc_00112431 to /storage/kkm_last_doc_name [20:42:12]save OK [20:42:12]Clear old archive folders... [20:42:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:42:12]tlvbuf is B6EBB8B0 [20:42:12]SAM_PROTO_ClearQueue [20:42:12]wFMCommunicate request_size=4 [20:42:12]MH_SAM_APDU [20:42:12]CAPDU: 80 09 00 00 [20:42:12]Write to MH i2c: E2 08 00 79 2C 80 09 00 00 00 00 00 00 17 [20:42:12]Write i2c OK [20:42:12]MH_I2C_Read... [20:42:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:12]Read from MH i2c: E2 [20:42:12]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 79 2C 00 90 00 19 [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]SAM_PROTO_ClearQueue done [20:42:13]KKMCreateOFDPacket [20:42:13]OFDProtocolAddRootSTLVToBuf [20:42:13]FM_MakeSignedData [20:42:13]FM_MakeSignedData [20:42:13]SAM_PROTO_SignData [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 01 02 [20:42:13]Write to MH i2c: E2 08 00 7A 2C 80 0D 01 02 00 00 00 00 1F [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 7A 2C 00 90 00 1A [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=255 [20:42:13]MH_SAM_APDU [20:42: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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 4A 01 00 00 F4 03 04 00 A5 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B7 01 00 35 04 06 00 1A [20:42:13]Write to MH i2c: E2 02 01 7B 2C 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 4A 01 00 00 F4 03 04 00 A5 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B7 01 00 35 04 06 00 1A 00 00 5C [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 7B 2C 00 90 00 1B [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=10 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 02 02 05 E5 2C 01 28 08 [20:42:13]Write to MH i2c: E2 0D 00 7C 2C 80 0D 02 02 05 00 E5 2C 01 28 08 00 00 6E [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 03 00 7C 2C 00 90 00 1C [20:42:13]RAPDU: 90 00 [20:42:13]wFMCommunicate OK [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 0D 03 02 [20:42:13]Write to MH i2c: E2 08 00 7D 2C 80 0D 03 02 00 00 00 00 24 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 0B 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 0B 00 7D 2C 00 1F 72 67 BA 01 61 D1 FB 90 00 05 [20:42:13]RAPDU: 1F 72 67 BA 01 61 D1 FB 90 00 [20:42:13]wFMCommunicate OK [20:42:13]SAM_PROTO_SignData done [20:42:13]FM_MakeSignedData done [20:42:13]CreateOFDProtocolMessage [20:42:13]wFMCommunicate request_size=4 [20:42:13]MH_SAM_APDU [20:42:13]CAPDU: 80 11 00 00 [20:42:13]Write to MH i2c: E2 08 00 7E 2C 80 11 00 00 00 00 00 00 24 [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:13]Read from MH i2c: E2 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 17 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: E2 17 00 7E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 75 [20:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:42:13]wFMCommunicate OK [20:42:13]CreateOFDProtocolMessage done [20:42:13]OFDSenderStorePacket 112431 [20:42:13]StoreOFDPacket docnum=112431 [20:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 96 23 07 01 6C 5E 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 4A 01 00 00 F4 03 04 00 A5 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B7 01 00 35 04 06 00 1A E5 2C 01 28 08 1F 72 67 BA 01 61 D1 FB [20:42:13]CheckFolder [20:42:13]dirname=/storage/ofd_packets [20:42:13]CheckFolder done [20:42:13]ProducePacketName [20:42:13]name=ofd_packets/00112431 [20:42:13]NVStorageSaveData ofd_packets/00112431 [20:42:13]File name is /storage/ofd_packets/00112431 [20:42:13]Write 301 bytes [20:42:13]NVStorageSaveData done [20:42:13]OFDSenderStorePacket done [20:42:13]KKMCreateOFDPacket done [20:42:13]NVStorageSaveData kkm_last_timestamp [20:42:13]File name is /storage/kkm_last_timestamp [20:42:13]Write 4 bytes [20:42:13]NVStorageSaveData done [20:42:13]ExternCall_PrintAddStr [20:42:13]wPrintStart [20:42:13]Write to MH i2c: 01 00 00 7F 2C AB [20:42:13]Write i2c OK [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 07 00 [20:42:13]MH_I2C_Read... [20:42:13]Read from MH i2c: 01 07 00 7F 2C 00 00 00 00 00 FF 0F C0 [20:42:13]RasterBufferAndPrint [20:42:13]line Счет N : (1)48727 [20:42:13]line ИНН: 02508201610067 [20:42:13]line Контрольно-Кассовый Чек [20:42:13]line ПРОДАЖА [20:42:13]line ТРК (МРК, ГНК) : 11 [20:42:13]line Товар: 2710124130 [20:42:13]line Аи-92-К-5 [20:42:13]line 23.330 * 64.30 [20:42:13]line = 1500.12 [20:42:13]line НДС 12% НСП 1% [20:42:13]line > о реализуемом товаре [20:42:13]line ОКРУГЛЕНИЕ: -0.12 [20:42:13]line ИТОГО: 1500.00 [20:42:13]line Внесено: 1500.00 [20:42:13]line СДАЧА: 0.00 [20:42:13]line НСП 1% : 13.27 [20:42:13]line НДС 12% : 159.30 [20:42:13]line Наличными: 1500.00 [20:42:13]line Безнал.: 0.00 [20:42:13]line Место: АЗС № 47 "Партнер Нефть" [20:42:13]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:42:13]line СНО: Общий режим [20:42:13]line Чек 330 14.04.2024 20:42 [20:42:13]line Смена: 357 ФФД: 1.0 [20:42:13]line ЗНМ: 0300000138 [20:42:13]line РНМ: 0000000000094237 [20:42:13]line Версия ККМ: 001 [20:42:13]line ФМ: 0000000000875019 [20:42:13]line ФД: 112431 [20:42:13]line ФПД: 29571588106248 [20:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204213&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112431&fm=29571588106248&tin=02508201610067®Number=0000000000094237&sum=150000 [20:42:13]OFD Sender: Processing packet 112431 [packets to send 71, broken 70] [20:42:13]ProducePacketName [20:42:13]name=ofd_packets/00112431 [20:42:13]OFD Sender: To server: pG, [20:42:13]CommunicateWithHost lk.salyk.kg:30040 [20:42:13]ConnectInit lk.salyk.kg [20:42:13]written 0, free lines is 4095 [20:42:14]Write to MH i2c: 01 00 00 AA 2C D6 [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 07 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: 01 07 00 AA 2C 00 00 00 00 00 E1 0C CA [20:42:14]RasterBufferAndPrint [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]line [20:42:14]written 0, free lines is 3303 [20:42:14]MH_Cut [20:42:14]Write to MH i2c: D1 01 00 B1 2C 01 AF [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 01 00 [20:42:14]MH_I2C_Read... [20:42:14]Read from MH i2c: D1 01 00 B1 2C 00 AE [20:42:14]Write to MH i2c: 01 00 00 B2 2C DE [20:42:14]Write i2c OK [20:42:14]MH_I2C_Read... [20:42:15]*** Cut start [20:42:15]*** Partial cut [20:42:15]*** CUTSNS_PIN = 1 [20:42:15]*** CUTSNS_PIN = 0 [20:42:15]*** Brake cut motor [20:42:15]Read from MH i2c: 01 [20:42:15]MH_I2C_Read... [20:42:15]*** Stop cut motor [20:42:15]*** Cut end [20:42:15]Read from MH i2c: 01 07 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: 01 07 00 B2 2C 00 00 00 00 00 FF 0F F3 [20:42:15]process_action close_receipt done [20:42:15]requested_data is exist [20:42:15]produce_requested_data [20:42:15]requested_item fm.sn is exist - process it [20:42:15]wFMCommunicate request_size=4 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 11 00 00 [20:42:15]Write to MH i2c: E2 08 00 B3 2C 80 11 00 00 00 00 00 00 59 [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:15]Read from MH i2c: E2 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 17 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 17 00 B3 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AA [20:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:42:15]wFMCommunicate OK [20:42:15]requested_item fd.num is exist - process it [20:42:15]SAM_PROTO_GetFieldsCounters [20:42:15]wFMCommunicate request_size=4 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 13 00 00 [20:42:15]Write to MH i2c: E2 08 00 B4 2C 80 13 00 00 00 00 00 00 5C [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:15]Read from MH i2c: E2 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 62 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 62 00 B4 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [20:42:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 2F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:42:15]wFMCommunicate OK [20:42:15]SAM_PROTO_GetFieldsCounters done [20:42:15]requested_item shift.num is exist - process it [20:42:15]requested_item shift.opened is exist - process it [20:42:15]req_shift_opened [20:42:15]FM_GetShiftState [20:42:15]SAM_PROTO_GetShiftState [20:42:15]wFMCommunicate request_size=4 [20:42:15]MH_SAM_APDU [20:42:15]CAPDU: 80 13 01 00 [20:42:15]Write to MH i2c: E2 08 00 B5 2C 80 13 01 00 00 00 00 00 5E [20:42:15]Write i2c OK [20:42:15]MH_I2C_Read... [20:42:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:15]Read from MH i2c: E2 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 0E 00 [20:42:15]MH_I2C_Read... [20:42:15]Read from MH i2c: E2 0E 00 B5 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F6 [20:42:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:42:15]wFMCommunicate OK [20:42:15]SAM_PROTO_GetShiftState done [20:42:15]FM_GetShiftState done [20:42:15]req_shift_opened done [20:42:15]requested_item shift.open_date is exist - process it [20:42:15]req_shift_open_date [20:42:15]req_shift_open_date done [20:42:15]produce_requested_data done [20:42:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112431,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:42:15]process_action_free close_receipt [20:42:15]json_value_free [20:42:15]json_value_free done [20:42:15]process_json_proto returns [20:42:15]Send response to host [20:42:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112431,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:42:15]free response buf [20:42:15]execute_script done [20:42:15]execute_script returns [20:42:15]free content buf [20:42:15]Sock 8.Close socket [20:42:15]Sock 8.Thread stoped [20:43:10]accept exits with 9 [20:43:10]New connection [20:43:10]New thread 3066826084 created [20:43:10]Thread 3066682724 joined [20:43:10]Waiting for new connection... [20:43:10] Sock 9.Parse request [20:43:10]Sock 9.Check first char [20:43:10]Sock 9.First char is OK [20:43:10]request: POST /json_proto HTTP/1.0 [20:43:10]Method: POST [20:43:10]URL: /json_proto [20:43:10]Method is POST - this is cgi request [20:43:10]url: /json_proto [20:43:10]query_string will be loaded in cgi processing [20:43:10]execute_cgi json_proto POST (null) [20:43:10]execute_cgi path=json_proto method=POST [20:43:10]POST find Content-Length [20:43:10]Host: 172.17.96.197:8080 [20:43:10]Content-Length: 812 [20:43:10]Content-Type: application/json [20:43:10] [20:43:10]POST finish read [20:43:10]Found Content-Length = 812 [20:43:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48729", "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.40, "quantity" : 4.150, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:10]execute_script... [20:43:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48729", "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.40, "quantity" : 4.150, "sum" : 300.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.46 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:43:10]POST & json_proto [20:43:10]process_json_proto [20:43:10]json parsed OK: [20:43:10]protocol is kg_v1.0 [20:43:10]action value=close_receipt [20:43:10]process_action close_receipt [20:43:10]cmd_close_receipt [20:43:10]MH_GetDate [20:43:10]Write to MH i2c: F0 00 00 B6 2C D1 [20:43:10]Write i2c OK [20:43:10]MH_I2C_Read... [20:43:10]Read from MH i2c: F0 [20:43:10]MH_I2C_Read... [20:43:10]Read from MH i2c: F0 09 00 [20:43:10]MH_I2C_Read... [20:43:10]Read from MH i2c: F0 09 00 B6 2C 00 E0 3F 1C 66 E0 85 7F 64 C3 [20:43:10]GetLastDocTimeStamp 1713127333 [20:43:10]current date 1713127392 [20:43:10]FM_GetShiftState [20:43:10]SAM_PROTO_GetShiftState [20:43:10]wFMCommunicate request_size=4 [20:43:10]MH_SAM_APDU [20:43:10]CAPDU: 80 13 01 00 [20:43:10]Write to MH i2c: E2 08 00 B7 2C 80 13 01 00 00 00 00 00 60 [20:43:10]Write i2c OK [20:43:10]MH_I2C_Read... [20:43:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:10]Read from MH i2c: E2 [20:43:10]MH_I2C_Read... [20:43:10]Read from MH i2c: E2 0E 00 [20:43:10]MH_I2C_Read... [20:43:10]Read from MH i2c: E2 0E 00 B7 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F8 [20:43:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:43:10]wFMCommunicate OK [20:43:10]SAM_PROTO_GetShiftState done [20:43:10]FM_GetShiftState done [20:43:10]opened in 1713054696 [20:43:10]opened+sec_in_day 1713141096 [20:43:10]quantity*price = 30046 [20:43:10]sum+1 = 30047 [20:43:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.46 НСП 1% : 2.66 НДС 12% : 31.91 Наличными: 0.00 Безнал.: 300.46 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 331 14.04.2024 20:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112432 ФПД: 144149575696327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204312&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112432&fm=144149575696327&tin=02508201610067®Number=0000000000094237&sum=30046 [20:43:11]StoreToDocumentArchive [20:43:11]shift 357 fd 112432 [20:43:11]save to /storage/0357/doc_00112432 [20:43:11]save last doc name /storage/0357/doc_00112432 to /storage/kkm_last_doc_name [20:43:11]save OK [20:43:11]Clear old archive folders... [20:43:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:43:11]tlvbuf is 001F8560 [20:43:11]SAM_PROTO_ClearQueue [20:43:11]wFMCommunicate request_size=4 [20:43:11]MH_SAM_APDU [20:43:11]CAPDU: 80 09 00 00 [20:43:11]Write to MH i2c: E2 08 00 C4 2C 80 09 00 00 00 00 00 00 62 [20:43:11]Write i2c OK [20:43:11]MH_I2C_Read... [20:43:11]Read from MH i2c: E2 [20:43:11]MH_I2C_Read... [20:43:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:11]Read from MH i2c: E2 03 00 [20:43:11]MH_I2C_Read... [20:43:11]Read from MH i2c: E2 03 00 C4 2C 00 90 00 64 [20:43:11]RAPDU: 90 00 [20:43:11]wFMCommunicate OK [20:43:11]SAM_PROTO_ClearQueue done [20:43:11]KKMCreateOFDPacket [20:43:11]OFDProtocolAddRootSTLVToBuf [20:43:11]FM_MakeSignedData [20:43:11]FM_MakeSignedData [20:43:11]SAM_PROTO_SignData [20:43:11]wFMCommunicate request_size=4 [20:43:11]MH_SAM_APDU [20:43:11]CAPDU: 80 0D 01 02 [20:43:11]Write to MH i2c: E2 08 00 C5 2C 80 0D 01 02 00 00 00 00 6A [20:43:11]Write i2c OK [20:43:11]MH_I2C_Read... [20:43:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:11]Read from MH i2c: E2 [20:43:11]MH_I2C_Read... [20:43:11]Read from MH i2c: E2 03 00 [20:43:11]MH_I2C_Read... [20:43:11]Read from MH i2c: E2 03 00 C5 2C 00 90 00 65 [20:43:11]RAPDU: 90 00 [20:43:11]wFMCommunicate OK [20:43:11]wFMCommunicate request_size=255 [20:43:11]MH_SAM_APDU [20:43:11]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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E0 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B7 01 00 35 04 06 00 83 1A 70 40 [20:43:11]Write to MH i2c: E2 02 01 C6 2C 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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E0 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B7 01 00 35 04 06 00 83 1A 70 40 00 00 FE [20:43:11]Write i2c OK [20:43:11]MH_I2C_Read... [20:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:12]Read from MH i2c: E2 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 03 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 03 00 C6 2C 00 90 00 66 [20:43:12]RAPDU: 90 00 [20:43:12]wFMCommunicate OK [20:43:12]wFMCommunicate request_size=7 [20:43:12]MH_SAM_APDU [20:43:12]CAPDU: 80 0D 02 02 02 FF C7 [20:43:12]Write to MH i2c: E2 0A 00 C7 2C 80 0D 02 02 02 00 FF C7 00 00 37 [20:43:12]Write i2c OK [20:43:12]MH_I2C_Read... [20:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:12]Read from MH i2c: E2 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 03 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 03 00 C7 2C 00 90 00 67 [20:43:12]RAPDU: 90 00 [20:43:12]wFMCommunicate OK [20:43:12]wFMCommunicate request_size=4 [20:43:12]MH_SAM_APDU [20:43:12]CAPDU: 80 0D 03 02 [20:43:12]Write to MH i2c: E2 08 00 C8 2C 80 0D 03 02 00 00 00 00 6F [20:43:12]Write i2c OK [20:43:12]MH_I2C_Read... [20:43:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:12]Read from MH i2c: E2 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 0B 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 0B 00 C8 2C 00 A4 0D F8 E4 D0 4E 98 02 90 00 B5 [20:43:12]RAPDU: A4 0D F8 E4 D0 4E 98 02 90 00 [20:43:12]wFMCommunicate OK [20:43:12]SAM_PROTO_SignData done [20:43:12]FM_MakeSignedData done [20:43:12]CreateOFDProtocolMessage [20:43:12]wFMCommunicate request_size=4 [20:43:12]MH_SAM_APDU [20:43:12]CAPDU: 80 11 00 00 [20:43:12]Write to MH i2c: E2 08 00 C9 2C 80 11 00 00 00 00 00 00 6F [20:43:12]Write i2c OK [20:43:12]MH_I2C_Read... [20:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:12]Read from MH i2c: E2 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 17 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: E2 17 00 C9 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C0 [20:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:43:12]wFMCommunicate OK [20:43:12]CreateOFDProtocolMessage done [20:43:12]OFDSenderStorePacket 112432 [20:43:12]StoreOFDPacket docnum=112432 [20:43:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 BC 69 04 01 A8 59 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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E0 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B7 01 00 35 04 06 00 83 1A 70 40 FF C7 A4 0D F8 E4 D0 4E 98 02 [20:43:12]CheckFolder [20:43:12]dirname=/storage/ofd_packets [20:43:12]CheckFolder done [20:43:12]ProducePacketName [20:43:12]name=ofd_packets/00112432 [20:43:12]NVStorageSaveData ofd_packets/00112432 [20:43:12]File name is /storage/ofd_packets/00112432 [20:43:12]Write 298 bytes [20:43:12]NVStorageSaveData done [20:43:12]OFDSenderStorePacket done [20:43:12]KKMCreateOFDPacket done [20:43:12]NVStorageSaveData kkm_last_timestamp [20:43:12]File name is /storage/kkm_last_timestamp [20:43:12]Write 4 bytes [20:43:12]NVStorageSaveData done [20:43:12]ExternCall_PrintAddStr [20:43:12]wPrintStart [20:43:12]Write to MH i2c: 01 00 00 CA 2C F6 [20:43:12]Write i2c OK [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 07 00 [20:43:12]MH_I2C_Read... [20:43:12]Read from MH i2c: 01 07 00 CA 2C 00 00 00 00 00 FF 0F 0B [20:43:12]RasterBufferAndPrint [20:43:12]line Счет N : (1)48729 [20:43:12]line ИНН: 02508201610067 [20:43:12]line Контрольно-Кассовый Чек [20:43:12]line ПРОДАЖА [20:43:12]line ТРК (МРК, ГНК) : 51 [20:43:12]line Товар: 2710194210 [20:43:12]line ДТ-К-5 [20:43:12]line 4.150 * 72.40 [20:43:12]line = 300.46 [20:43:12]line НДС 12% НСП 1% [20:43:12]line > о реализуемом товаре [20:43:12]line ИТОГО: 300.46 [20:43:12]line НСП 1% : 2.66 [20:43:12]line НДС 12% : 31.91 [20:43:12]line Наличными: 0.00 [20:43:12]line Безнал.: 300.46 [20:43:12]line Место: АЗС № 47 "Партнер Нефть" [20:43:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:43:12]line СНО: Общий режим [20:43:12]line Чек 331 14.04.2024 20:43 [20:43:12]line Смена: 357 ФФД: 1.0 [20:43:12]line ЗНМ: 0300000138 [20:43:12]line РНМ: 0000000000094237 [20:43:12]line Версия ККМ: 001 [20:43:12]line Платежная система: Бакай Банк [20:43:12]line ФМ: 0000000000875019 [20:43:12]line ФД: 112432 [20:43:12]line ФПД: 144149575696327 [20:43:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204312&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112432&fm=144149575696327&tin=02508201610067®Number=0000000000094237&sum=30046 [20:43:12]written 0, free lines is 4095 [20:43:13]Write to MH i2c: 01 00 00 F4 2C 20 [20:43:13]Write i2c OK [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: 01 [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: 01 07 00 [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: 01 07 00 F4 2C 00 00 00 00 00 E4 0C 17 [20:43:13]RasterBufferAndPrint [20:43:13]line [20:43:13]line [20:43:13]line [20:43:13]line [20:43:13]line [20:43:13]written 0, free lines is 3307 [20:43:13]MH_Cut [20:43:13]Write to MH i2c: D1 01 00 FB 2C 01 F9 [20:43:13]Write i2c OK [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: D1 [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: D1 01 00 [20:43:13]MH_I2C_Read... [20:43:13]Read from MH i2c: D1 01 00 FB 2C 00 F8 [20:43:13]Write to MH i2c: 01 00 00 FC 2C 28 [20:43:13]Write i2c OK [20:43:13]MH_I2C_Read... [20:43:13]*** Cut start [20:43:13]*** Partial cut [20:43:13]*** CUTSNS_PIN = 1 [20:43:13]*** CUTSNS_PIN = 0 [20:43:14]*** Brake cut motor [20:43:14]Read from MH i2c: 01 [20:43:14]MH_I2C_Read... [20:43:14]*** Stop cut motor [20:43:14]*** Cut end [20:43:14]Read from MH i2c: 01 07 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: 01 07 00 FC 2C 00 00 00 00 00 FF 0F 3D [20:43:14]process_action close_receipt done [20:43:14]requested_data is exist [20:43:14]produce_requested_data [20:43:14]requested_item fm.sn is exist - process it [20:43:14]wFMCommunicate request_size=4 [20:43:14]MH_SAM_APDU [20:43:14]CAPDU: 80 11 00 00 [20:43:14]Write to MH i2c: E2 08 00 FD 2C 80 11 00 00 00 00 00 00 A3 [20:43:14]Write i2c OK [20:43:14]MH_I2C_Read... [20:43:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:14]Read from MH i2c: E2 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 17 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 17 00 FD 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F4 [20:43:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:43:14]wFMCommunicate OK [20:43:14]requested_item fd.num is exist - process it [20:43:14]SAM_PROTO_GetFieldsCounters [20:43:14]wFMCommunicate request_size=4 [20:43:14]MH_SAM_APDU [20:43:14]CAPDU: 80 13 00 00 [20:43:14]Write to MH i2c: E2 08 00 FE 2C 80 13 00 00 00 00 00 00 A6 [20:43:14]Write i2c OK [20:43:14]MH_I2C_Read... [20:43:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:14]Read from MH i2c: E2 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 62 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 62 00 FE 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 30 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [20:43:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 30 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:43:14]wFMCommunicate OK [20:43:14]SAM_PROTO_GetFieldsCounters done [20:43:14]requested_item shift.num is exist - process it [20:43:14]requested_item shift.opened is exist - process it [20:43:14]req_shift_opened [20:43:14]FM_GetShiftState [20:43:14]SAM_PROTO_GetShiftState [20:43:14]wFMCommunicate request_size=4 [20:43:14]MH_SAM_APDU [20:43:14]CAPDU: 80 13 01 00 [20:43:14]Write to MH i2c: E2 08 00 FF 2C 80 13 01 00 00 00 00 00 A8 [20:43:14]Write i2c OK [20:43:14]MH_I2C_Read... [20:43:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:14]Read from MH i2c: E2 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 0E 00 [20:43:14]MH_I2C_Read... [20:43:14]Read from MH i2c: E2 0E 00 FF 2C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 40 [20:43:14]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:43:14]wFMCommunicate OK [20:43:14]SAM_PROTO_GetShiftState done [20:43:14]FM_GetShiftState done [20:43:14]req_shift_opened done [20:43:14]requested_item shift.open_date is exist - process it [20:43:14]req_shift_open_date [20:43:14]req_shift_open_date done [20:43:14]produce_requested_data done [20:43:14]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112432,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:43:14]process_action_free close_receipt [20:43:14]json_value_free [20:43:14]json_value_free done [20:43:14]process_json_proto returns [20:43:14]Send response to host [20:43:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112432,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:43:14]free response buf [20:43:14]execute_script done [20:43:14]execute_script returns [20:43:14]free content buf [20:43:14]Sock 9.Close socket [20:43:14]Sock 9.Thread stoped [20:44:27]ConnectInit Can't connect to host [20:44:27]CommunicateWithHost connect error [20:44:27]CommunicateWithHost err = -1 [20:44:27]OFD Sender: Server communicate error [20:44:27]OFD Sender: Processing packet 112431 [packets to send 72, broken 70] [20:44:27]ProducePacketName [20:44:27]name=ofd_packets/00112431 [20:44:27]OFD Sender: To server: pG, [20:44:27]CommunicateWithHost lk.salyk.kg:30040 [20:44:27]ConnectInit lk.salyk.kg [20:44:27]Connected sock=9 [20:44:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 96 23 07 01 6C 5E 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 22 5B 00 00 00 00 00 37 04 06 00 1E 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 4A 01 00 00 F4 03 04 00 A5 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B7 01 00 35 04 06 00 1A E5 2C 01 28 08 1F 72 67 BA 01 61 D1 FB [20:44:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FA 07 47 00 1D 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 2F B7 01 00 F4 03 04 00 B5 E7 1B 66 B6 04 01 00 00 0F F6 4D 29 9C A0 5C B4 [20:44:27]CommunicateWithHost err = 0 [20:44:27]CheckOFDResponse [20:44:27]1017 (14) - 77093643461234 [20:44:27]1041 (16) - 0000000000875019 [20:44:27]1040 (4) - 112431 [20:44:27]1012 (4) - 14.04.2024 14:27 [20:44:27]1206 (1) - 0 [20:44:27]OFD Sender: Remove packet 112431 [20:44:27]ProducePacketName [20:44:27]name=ofd_packets/00112431 [20:44:27]NVStorageDeleteData [20:44:28]OFD Sender: Processing packet 112432 [packets to send 71, broken 70] [20:44:28]ProducePacketName [20:44:28]name=ofd_packets/00112432 [20:44:28]OFD Sender: To server: pG, [20:44:28]CommunicateWithHost lk.salyk.kg:30040 [20:44:28]ConnectInit lk.salyk.kg [20:44:28]Connected sock=9 [20:44:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 BC 69 04 01 A8 59 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 36 10 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 5E 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5E 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5E 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 01 00 00 F4 03 04 00 E0 3F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B7 01 00 35 04 06 00 83 1A 70 40 FF C7 A4 0D F8 E4 D0 4E 98 02 [20:44:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D9 5C 47 00 04 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 30 B7 01 00 F4 03 04 00 B6 E7 1B 66 B6 04 01 00 00 9E C6 4A D0 3C 73 D1 B6 [20:44:28]CommunicateWithHost err = 0 [20:44:28]CheckOFDResponse [20:44:28]1017 (14) - 77093643461234 [20:44:28]1041 (16) - 0000000000875019 [20:44:28]1040 (4) - 112432 [20:44:28]1012 (4) - 14.04.2024 14:27 [20:44:28]1206 (1) - 0 [20:44:28]OFD Sender: Remove packet 112432 [20:44:28]ProducePacketName [20:44:28]name=ofd_packets/00112432 [20:44:28]NVStorageDeleteData [20:44:29]OFD Sender: No OFD packet to send [20:44:29]accept exits with 8 [20:44:29]New connection [20:44:29]New thread 3066682724 created [20:44:29]Thread 3066826084 joined [20:44:29]Waiting for new connection... [20:44:29] Sock 8.Parse request [20:44:29]Sock 8.Check first char [20:44:29]Sock 8.First char is OK [20:44:29]request: POST /json_proto HTTP/1.0 [20:44:29]Method: POST [20:44:29]URL: /json_proto [20:44:29]Method is POST - this is cgi request [20:44:29]url: /json_proto [20:44:29]query_string will be loaded in cgi processing [20:44:29]execute_cgi json_proto POST (null) [20:44:29]execute_cgi path=json_proto method=POST [20:44:29]POST find Content-Length [20:44:29]Host: 172.17.96.197:8080 [20:44:29]Content-Length: 816 [20:44:29]Content-Type: application/json [20:44:29] [20:44:29]POST finish read [20:44:29]Found Content-Length = 816 [20:44:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48730", "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.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:29]execute_script... [20:44: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)48730", "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.30, "quantity" : 10.110, "sum" : 650.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 650.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:29]POST & json_proto [20:44:29]process_json_proto [20:44:29]json parsed OK: [20:44:29]protocol is kg_v1.0 [20:44:29]action value=close_receipt [20:44:29]process_action close_receipt [20:44:29]cmd_close_receipt [20:44:29]MH_GetDate [20:44:29]Write to MH i2c: F0 00 00 00 2D 1C [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: F0 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: F0 09 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: F0 09 00 00 2D 00 2F 40 1C 66 E0 85 7F 64 5E [20:44:29]GetLastDocTimeStamp 1713127392 [20:44:29]current date 1713127471 [20:44:29]FM_GetShiftState [20:44:29]SAM_PROTO_GetShiftState [20:44:29]wFMCommunicate request_size=4 [20:44:29]MH_SAM_APDU [20:44:29]CAPDU: 80 13 01 00 [20:44:29]Write to MH i2c: E2 08 00 01 2D 80 13 01 00 00 00 00 00 AB [20:44:29]Write i2c OK [20:44:29]MH_I2C_Read... [20:44:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:29]Read from MH i2c: E2 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 0E 00 [20:44:29]MH_I2C_Read... [20:44:29]Read from MH i2c: E2 0E 00 01 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 43 [20:44:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:44:29]wFMCommunicate OK [20:44:29]SAM_PROTO_GetShiftState done [20:44:29]FM_GetShiftState done [20:44:29]opened in 1713054696 [20:44:29]opened+sec_in_day 1713141096 [20:44:29]quantity*price = 65007 [20:44:29]sum+1 = 65008 [20:44:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.07 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 0.00 Безнал.: 650.07 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 332 14.04.2024 20:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112433 ФПД: 73633545444821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204431&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112433&fm=73633545444821&tin=02508201610067®Number=0000000000094237&sum=65007 [20:44:31]StoreToDocumentArchive [20:44:31]shift 357 fd 112433 [20:44:31]save to /storage/0357/doc_00112433 [20:44:31]save last doc name /storage/0357/doc_00112433 to /storage/kkm_last_doc_name [20:44:31]save OK [20:44:31]Clear old archive folders... [20:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:31]tlvbuf is 0024FF50 [20:44:31]SAM_PROTO_ClearQueue [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 09 00 00 [20:44:31]Write to MH i2c: E2 08 00 0E 2D 80 09 00 00 00 00 00 00 AD [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 0E 2D 00 90 00 AF [20:44:31]RAPDU: 90 00 [20:44:31]wFMCommunicate OK [20:44:31]SAM_PROTO_ClearQueue done [20:44:31]KKMCreateOFDPacket [20:44:31]OFDProtocolAddRootSTLVToBuf [20:44:31]FM_MakeSignedData [20:44:31]FM_MakeSignedData [20:44:31]SAM_PROTO_SignData [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 0D 01 02 [20:44:31]Write to MH i2c: E2 08 00 0F 2D 80 0D 01 02 00 00 00 00 B5 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 0F 2D 00 90 00 B0 [20:44:31]RAPDU: 90 00 [20:44:31]wFMCommunicate OK [20:44:31]wFMCommunicate request_size=255 [20:44:31]MH_SAM_APDU [20:44: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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 2F 40 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B7 01 00 35 04 06 00 42 [20:44:31]Write to MH i2c: E2 02 01 10 2D 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 2F 40 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B7 01 00 35 04 06 00 42 00 00 7E [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 10 2D 00 90 00 B1 [20:44:31]RAPDU: 90 00 [20:44:31]wFMCommunicate OK [20:44:31]wFMCommunicate request_size=10 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 0D 02 02 05 F8 25 51 DD D5 [20:44:31]Write to MH i2c: E2 0D 00 11 2D 80 0D 02 02 05 00 F8 25 51 DD D5 00 00 E2 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 03 00 11 2D 00 90 00 B2 [20:44:31]RAPDU: 90 00 [20:44:31]wFMCommunicate OK [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 0D 03 02 [20:44:31]Write to MH i2c: E2 08 00 12 2D 80 0D 03 02 00 00 00 00 BA [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 0B 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 0B 00 12 2D 00 D9 C9 BF F2 04 73 E2 85 90 00 EC [20:44:31]RAPDU: D9 C9 BF F2 04 73 E2 85 90 00 [20:44:31]wFMCommunicate OK [20:44:31]SAM_PROTO_SignData done [20:44:31]FM_MakeSignedData done [20:44:31]CreateOFDProtocolMessage [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 11 00 00 [20:44:31]Write to MH i2c: E2 08 00 13 2D 80 11 00 00 00 00 00 00 BA [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:31]Read from MH i2c: E2 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 17 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: E2 17 00 13 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0B [20:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:44:31]wFMCommunicate OK [20:44:31]CreateOFDProtocolMessage done [20:44:31]OFDSenderStorePacket 112433 [20:44:31]StoreOFDPacket docnum=112433 [20:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AF 32 07 01 89 C1 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 2F 40 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B7 01 00 35 04 06 00 42 F8 25 51 DD D5 D9 C9 BF F2 04 73 E2 85 [20:44:31]CheckFolder [20:44:31]dirname=/storage/ofd_packets [20:44:31]CheckFolder done [20:44:31]ProducePacketName [20:44:31]name=ofd_packets/00112433 [20:44:31]NVStorageSaveData ofd_packets/00112433 [20:44:31]File name is /storage/ofd_packets/00112433 [20:44:31]Write 301 bytes [20:44:31]NVStorageSaveData done [20:44:31]OFDSenderStorePacket done [20:44:31]KKMCreateOFDPacket done [20:44:31]NVStorageSaveData kkm_last_timestamp [20:44:31]File name is /storage/kkm_last_timestamp [20:44:31]Write 4 bytes [20:44:31]NVStorageSaveData done [20:44:31]ExternCall_PrintAddStr [20:44:31]wPrintStart [20:44:31]Write to MH i2c: 01 00 00 14 2D 41 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: 01 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: 01 07 00 [20:44:31]MH_I2C_Read... [20:44:31]Read from MH i2c: 01 07 00 14 2D 00 00 00 00 00 FF 0F 56 [20:44:31]RasterBufferAndPrint [20:44:31]line Счет N : (1)48730 [20:44:31]line ИНН: 02508201610067 [20:44:31]line Контрольно-Кассовый Чек [20:44:31]line ПРОДАЖА [20:44:31]line ТРК (МРК, ГНК) : 42 [20:44:31]line Товар: 2710124130 [20:44:31]line Аи-92-К-5 [20:44:31]line 10.110 * 64.30 [20:44:31]line = 650.07 [20:44:31]line НДС 12% НСП 1% [20:44:31]line > о реализуемом товаре [20:44:31]line ИТОГО: 650.07 [20:44:31]line НСП 1% : 5.75 [20:44:31]line НДС 12% : 69.03 [20:44:31]line Наличными: 0.00 [20:44:31]line Безнал.: 650.07 [20:44:31]line Место: АЗС № 47 "Партнер Нефть" [20:44:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:44:31]line СНО: Общий режим [20:44:31]line Чек 332 14.04.2024 20:44 [20:44:31]line Смена: 357 ФФД: 1.0 [20:44:31]line ЗНМ: 0300000138 [20:44:31]line РНМ: 0000000000094237 [20:44:31]line Версия ККМ: 001 [20:44:31]line Платежная система: Бакай Банк [20:44:31]line ФМ: 0000000000875019 [20:44:31]line ФД: 112433 [20:44:31]line ФПД: 73633545444821 [20:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204431&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112433&fm=73633545444821&tin=02508201610067®Number=0000000000094237&sum=65007 [20:44:31]written 0, free lines is 4095 [20:44:31]OFD Sender: Processing packet 112433 [packets to send 71, broken 70] [20:44:31]ProducePacketName [20:44:31]name=ofd_packets/00112433 [20:44:31]OFD Sender: To server: pG, [20:44:31]CommunicateWithHost lk.salyk.kg:30040 [20:44:31]ConnectInit lk.salyk.kg [20:44:31]Connected sock=10 [20:44:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AF 32 07 01 89 C1 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 7E 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 EF FD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EF FD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EF FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 2F 40 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B7 01 00 35 04 06 00 42 F8 25 51 DD D5 D9 C9 BF F2 04 73 E2 85 [20:44:32]Write to MH i2c: 01 00 00 3E 2D 6B [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 3E 2D 00 00 00 00 00 EB 0C 69 [20:44:32]RasterBufferAndPrint [20:44:32]line [20:44:32]line [20:44:32]line [20:44:32]line [20:44:32]line [20:44:32]written 0, free lines is 3314 [20:44:32]MH_Cut [20:44:32]Write to MH i2c: D1 01 00 45 2D 01 44 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: D1 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: D1 01 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: D1 01 00 45 2D 00 43 [20:44:32]Write to MH i2c: 01 00 00 46 2D 73 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 34 50 47 00 5A 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 31 B7 01 00 F4 03 04 00 B9 E7 1B 66 B6 04 01 00 00 A6 6A 46 4E 59 B7 5D 5A [20:44:32]CommunicateWithHost err = 0 [20:44:32]CheckOFDResponse [20:44:32]1017 (14) - 77093643461234 [20:44:32]1041 (16) - 0000000000875019 [20:44:32]1040 (4) - 112433 [20:44:32]1012 (4) - 14.04.2024 14:27 [20:44:32]1206 (1) - 0 [20:44:32]OFD Sender: Remove packet 112433 [20:44:32]ProducePacketName [20:44:32]name=ofd_packets/00112433 [20:44:32]NVStorageDeleteData [20:44:32]OFD Sender: No OFD packet to send [20:44:32]*** Cut start [20:44:32]*** Partial cut [20:44:32]*** CUTSNS_PIN = 1 [20:44:32]*** CUTSNS_PIN = 0 [20:44:33]*** Brake cut motor [20:44:33]Read from MH i2c: 01 [20:44:33]MH_I2C_Read... [20:44:33]*** Stop cut motor [20:44:33]*** Cut end [20:44:33]Read from MH i2c: 01 07 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: 01 07 00 46 2D 00 00 00 00 00 FF 0F 88 [20:44:33]process_action close_receipt done [20:44:33]requested_data is exist [20:44:33]produce_requested_data [20:44:33]requested_item fm.sn is exist - process it [20:44:33]wFMCommunicate request_size=4 [20:44:33]MH_SAM_APDU [20:44:33]CAPDU: 80 11 00 00 [20:44:33]Write to MH i2c: E2 08 00 47 2D 80 11 00 00 00 00 00 00 EE [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:33]Read from MH i2c: E2 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 17 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 17 00 47 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3F [20:44:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:44:33]wFMCommunicate OK [20:44:33]requested_item fd.num is exist - process it [20:44:33]SAM_PROTO_GetFieldsCounters [20:44:33]wFMCommunicate request_size=4 [20:44:33]MH_SAM_APDU [20:44:33]CAPDU: 80 13 00 00 [20:44:33]Write to MH i2c: E2 08 00 48 2D 80 13 00 00 00 00 00 00 F1 [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:33]Read from MH i2c: E2 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 62 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 62 00 48 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 31 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 46 [20:44:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 31 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:33]wFMCommunicate OK [20:44:33]SAM_PROTO_GetFieldsCounters done [20:44:33]requested_item shift.num is exist - process it [20:44:33]requested_item shift.opened is exist - process it [20:44:33]req_shift_opened [20:44:33]FM_GetShiftState [20:44:33]SAM_PROTO_GetShiftState [20:44:33]wFMCommunicate request_size=4 [20:44:33]MH_SAM_APDU [20:44:33]CAPDU: 80 13 01 00 [20:44:33]Write to MH i2c: E2 08 00 49 2D 80 13 01 00 00 00 00 00 F3 [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:33]Read from MH i2c: E2 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 0E 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: E2 0E 00 49 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8B [20:44:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:44:33]wFMCommunicate OK [20:44:33]SAM_PROTO_GetShiftState done [20:44:33]FM_GetShiftState done [20:44:33]req_shift_opened done [20:44:33]requested_item shift.open_date is exist - process it [20:44:33]req_shift_open_date [20:44:33]req_shift_open_date done [20:44:33]produce_requested_data done [20:44:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112433,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:44:33]process_action_free close_receipt [20:44:33]json_value_free [20:44:33]json_value_free done [20:44:33]process_json_proto returns [20:44:33]Send response to host [20:44:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112433,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:44:33]free response buf [20:44:33]execute_script done [20:44:33]execute_script returns [20:44:33]free content buf [20:44:33]Sock 8.Close socket [20:44:33]Sock 8.Thread stoped [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:02]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:42]OFD Sender: No OFD packet to send [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:08]accept exits with 9 [20:49:08]New connection [20:49:08]New thread 3066826084 created [20:49:08]Thread 3066682724 joined [20:49:08]Waiting for new connection... [20:49:08] Sock 9.Parse request [20:49:08]Sock 9.Check first char [20:49:08]Sock 9.First char is OK [20:49:08]request: POST /json_proto HTTP/1.0 [20:49:08]Method: POST [20:49:08]URL: /json_proto [20:49:08]Method is POST - this is cgi request [20:49:08]url: /json_proto [20:49:08]query_string will be loaded in cgi processing [20:49:08]execute_cgi json_proto POST (null) [20:49:08]execute_cgi path=json_proto method=POST [20:49:08]POST find Content-Length [20:49:08]Host: 172.17.96.197:8080 [20:49:08]Content-Length: 643 [20:49:08]Content-Type: application/json [20:49:08] [20:49:08]POST finish read [20:49:08]Found Content-Length = 643 [20:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10446", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:08]execute_script... [20:49:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10446", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:49:08]POST & json_proto [20:49:08]process_json_proto [20:49:08]json parsed OK: [20:49:08]protocol is kg_v1.0 [20:49:08]action value=close_receipt [20:49:08]process_action close_receipt [20:49:08]cmd_close_receipt [20:49:08]MH_GetDate [20:49:08]Write to MH i2c: F0 00 00 4A 2D 66 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: F0 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: F0 09 00 [20:49:08]MH_I2C_Read... [20:49:08]Read from MH i2c: F0 09 00 4A 2D 00 46 41 1C 66 E0 85 7F 64 C0 [20:49:08]GetLastDocTimeStamp 1713127471 [20:49:08]current date 1713127750 [20:49:08]FM_GetShiftState [20:49:08]SAM_PROTO_GetShiftState [20:49:08]wFMCommunicate request_size=4 [20:49:08]MH_SAM_APDU [20:49:08]CAPDU: 80 13 01 00 [20:49:08]Write to MH i2c: E2 08 00 4B 2D 80 13 01 00 00 00 00 00 F5 [20:49:08]Write i2c OK [20:49:08]MH_I2C_Read... [20:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:09]Read from MH i2c: E2 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: E2 0E 00 [20:49:09]MH_I2C_Read... [20:49:09]Read from MH i2c: E2 0E 00 4B 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 8D [20:49:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:49:09]wFMCommunicate OK [20:49:09]SAM_PROTO_GetShiftState done [20:49:09]FM_GetShiftState done [20:49:09]opened in 1713054696 [20:49:09]opened+sec_in_day 1713141096 [20:49:09]quantity*price = 11500 [20:49:09]sum+1 = 11501 [20:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 333 14.04.2024 20:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112434 ФПД: 184490942285161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204910&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112434&fm=184490942285161&tin=02508201610067®Number=0000000000094237&sum=11500 0 [20:49:10]StoreToDocumentArchive [20:49:10]shift 357 fd 112434 [20:49:10]save to /storage/0357/doc_00112434 [20:49:10]save last doc name /storage/0357/doc_00112434 to /storage/kkm_last_doc_name [20:49:10]save OK [20:49:10]Clear old archive folders... [20:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:49:10]tlvbuf is 00248DB0 [20:49:10]SAM_PROTO_ClearQueue [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 09 00 00 [20:49:10]Write to MH i2c: E2 08 00 58 2D 80 09 00 00 00 00 00 00 F7 [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 58 2D 00 90 00 F9 [20:49:10]RAPDU: 90 00 [20:49:10]wFMCommunicate OK [20:49:10]SAM_PROTO_ClearQueue done [20:49:10]KKMCreateOFDPacket [20:49:10]OFDProtocolAddRootSTLVToBuf [20:49:10]FM_MakeSignedData [20:49:10]FM_MakeSignedData [20:49:10]SAM_PROTO_SignData [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 0D 01 02 [20:49:10]Write to MH i2c: E2 08 00 59 2D 80 0D 01 02 00 00 00 00 FF [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 59 2D 00 90 00 FA [20:49:10]RAPDU: 90 00 [20:49:10]wFMCommunicate OK [20:49:10]wFMCommunicate request_size=255 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 46 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 [20:49:10]Write to MH i2c: E2 02 01 5A 2D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 46 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 00 00 FC [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 5A 2D 00 90 00 FB [20:49:10]RAPDU: 90 00 [20:49:10]wFMCommunicate OK [20:49:10]wFMCommunicate request_size=39 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B7 01 00 35 04 06 00 A7 CB 25 14 45 69 [20:49:10]Write to MH i2c: E2 2A 00 5B 2D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B7 01 00 35 04 06 00 A7 CB 25 14 45 69 00 00 FE [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 03 00 5B 2D 00 90 00 FC [20:49:10]RAPDU: 90 00 [20:49:10]wFMCommunicate OK [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 0D 03 02 [20:49:10]Write to MH i2c: E2 08 00 5C 2D 80 0D 03 02 00 00 00 00 04 [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 0B 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 0B 00 5C 2D 00 9C 76 64 F7 47 00 B1 09 90 00 73 [20:49:10]RAPDU: 9C 76 64 F7 47 00 B1 09 90 00 [20:49:10]wFMCommunicate OK [20:49:10]SAM_PROTO_SignData done [20:49:10]FM_MakeSignedData done [20:49:10]CreateOFDProtocolMessage [20:49:10]wFMCommunicate request_size=4 [20:49:10]MH_SAM_APDU [20:49:10]CAPDU: 80 11 00 00 [20:49:10]Write to MH i2c: E2 08 00 5D 2D 80 11 00 00 00 00 00 00 04 [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:10]Read from MH i2c: E2 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 17 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: E2 17 00 5D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 55 [20:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:49:10]wFMCommunicate OK [20:49:10]CreateOFDProtocolMessage done [20:49:10]OFDSenderStorePacket 112434 [20:49:10]StoreOFDPacket docnum=112434 [20:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 D4 74 24 01 DC F8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 46 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B7 01 00 35 04 06 00 A7 CB 25 14 45 69 9C 76 64 F7 47 00 B1 09 [20:49:10]CheckFolder [20:49:10]dirname=/storage/ofd_packets [20:49:10]CheckFolder done [20:49:10]ProducePacketName [20:49:10]name=ofd_packets/00112434 [20:49:10]NVStorageSaveData ofd_packets/00112434 [20:49:10]File name is /storage/ofd_packets/00112434 [20:49:10]Write 330 bytes [20:49:10]NVStorageSaveData done [20:49:10]OFDSenderStorePacket done [20:49:10]KKMCreateOFDPacket done [20:49:10]NVStorageSaveData kkm_last_timestamp [20:49:10]File name is /storage/kkm_last_timestamp [20:49:10]Write 4 bytes [20:49:10]NVStorageSaveData done [20:49:10]ExternCall_PrintAddStr [20:49:10]wPrintStart [20:49:10]Write to MH i2c: 01 00 00 5E 2D 8B [20:49:10]Write i2c OK [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: 01 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: 01 07 00 [20:49:10]MH_I2C_Read... [20:49:10]Read from MH i2c: 01 07 00 5E 2D 00 00 00 00 00 FF 0F A0 [20:49:10]RasterBufferAndPrint [20:49:10]line Счет N : (3)10446 [20:49:10]line ИНН: 02508201610067 [20:49:10]line Контрольно-Кассовый Чек [20:49:10]line ПРОДАЖА [20:49:10]line Товар: 2000036210013 [20:49:10]line Кофе Капучино (GABB TRADE) [20:49:10]line 1.000 * 115.00 [20:49:10]line = 115.00 [20:49:10]line НДС 12% НСП 1% [20:49:10]line > о реализуемом товаре [20:49:10]line ИТОГО: 115.00 [20:49:10]line НСП 1% : 1.02 [20:49:10]line НДС 12% : 12.21 [20:49:10]line Наличными: 115.00 [20:49:10]line Безнал.: 0.00 [20:49:10]line Место: АЗС № 47 "Партнер Нефть" [20:49:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:49:10]line СНО: Общий режим [20:49:10]line Чек 333 14.04.2024 20:49 [20:49:10]line Смена: 357 ФФД: 1.0 [20:49:10]line ЗНМ: 0300000138 [20:49:10]line РНМ: 0000000000094237 [20:49:10]line Версия ККМ: 001 [20:49:10]line ФМ: 0000000000875019 [20:49:10]line ФД: 112434 [20:49:10]line ФПД: 184490942285161 [20:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T204910&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112434&fm=184490942285161&tin=02508201610067®Number=0000000000094237&sum=11500 [20:49:11]line 0 [20:49:11]OFD Sender: Processing packet 112434 [packets to send 71, broken 70] [20:49:11]ProducePacketName [20:49:11]name=ofd_packets/00112434 [20:49:11]OFD Sender: To server: pG, [20:49:11]CommunicateWithHost lk.salyk.kg:30040 [20:49:11]ConnectInit lk.salyk.kg [20:49:11]written 0, free lines is 4095 [20:49:11]Connected sock=10 [20:49:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2C 01 00 00 D4 74 24 01 DC F8 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 46 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B7 01 00 35 04 06 00 A7 CB 25 14 45 69 9C 76 64 F7 47 00 B1 09 [20:49:11]Write to MH i2c: 01 00 00 86 2D B3 [20:49:11]Write i2c OK [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: 01 [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: 01 07 00 [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: 01 07 00 86 2D 00 00 00 00 00 16 0D DD [20:49:11]RasterBufferAndPrint [20:49:11]line [20:49:11]line [20:49:11]line [20:49:11]line [20:49:11]line [20:49:11]written 0, free lines is 3357 [20:49:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1E 43 47 00 9F B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 32 B7 01 00 F4 03 04 00 D1 E8 1B 66 B6 04 01 00 00 AD D0 BF 84 2C F6 95 CB [20:49:11]CommunicateWithHost err = 0 [20:49:11]CheckOFDResponse [20:49:11]1017 (14) - 77093643461234 [20:49:11]1041 (16) - 0000000000875019 [20:49:11]1040 (4) - 112434 [20:49:11]1012 (4) - 14.04.2024 14:31 [20:49:11]1206 (1) - 0 [20:49:11]OFD Sender: Remove packet 112434 [20:49:11]ProducePacketName [20:49:11]name=ofd_packets/00112434 [20:49:11]NVStorageDeleteData [20:49:11]MH_Cut [20:49:11]Write to MH i2c: D1 01 00 8D 2D 01 8C [20:49:11]Write i2c OK [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: D1 [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: D1 01 00 [20:49:11]MH_I2C_Read... [20:49:11]Read from MH i2c: D1 01 00 8D 2D 00 8B [20:49:11]Write to MH i2c: 01 00 00 8E 2D BB [20:49:11]Write i2c OK [20:49:11]MH_I2C_Read... [20:49:12]OFD Sender: No OFD packet to send [20:49:12]*** Cut start [20:49:12]*** Partial cut [20:49:12]*** CUTSNS_PIN = 1 [20:49:12]*** CUTSNS_PIN = 0 [20:49:12]*** Brake cut motor [20:49:12]Read from MH i2c: 01 [20:49:12]MH_I2C_Read... [20:49:12]*** Stop cut motor [20:49:12]*** Cut end [20:49:12]Read from MH i2c: 01 07 00 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: 01 07 00 8E 2D 00 00 00 00 00 FF 0F D0 [20:49:12]process_action close_receipt done [20:49:12]requested_data is exist [20:49:12]produce_requested_data [20:49:12]requested_item fm.sn is exist - process it [20:49:12]wFMCommunicate request_size=4 [20:49:12]MH_SAM_APDU [20:49:12]CAPDU: 80 11 00 00 [20:49:12]Write to MH i2c: E2 08 00 8F 2D 80 11 00 00 00 00 00 00 36 [20:49:12]Write i2c OK [20:49:12]MH_I2C_Read... [20:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:12]Read from MH i2c: E2 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: E2 17 00 [20:49:12]MH_I2C_Read... [20:49:12]Read from MH i2c: E2 17 00 8F 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 87 [20:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:49:12]wFMCommunicate OK [20:49:12]requested_item fd.num is exist - process it [20:49:12]SAM_PROTO_GetFieldsCounters [20:49:12]wFMCommunicate request_size=4 [20:49:12]MH_SAM_APDU [20:49:12]CAPDU: 80 13 00 00 [20:49:12]Write to MH i2c: E2 08 00 90 2D 80 13 00 00 00 00 00 00 39 [20:49:12]Write i2c OK [20:49:12]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 62 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 62 00 90 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 32 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [20:49:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 32 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:13]wFMCommunicate OK [20:49:13]SAM_PROTO_GetFieldsCounters done [20:49:13]requested_item shift.num is exist - process it [20:49:13]requested_item shift.opened is exist - process it [20:49:13]req_shift_opened [20:49:13]FM_GetShiftState [20:49:13]SAM_PROTO_GetShiftState [20:49:13]wFMCommunicate request_size=4 [20:49:13]MH_SAM_APDU [20:49:13]CAPDU: 80 13 01 00 [20:49:13]Write to MH i2c: E2 08 00 91 2D 80 13 01 00 00 00 00 00 3B [20:49:13]Write i2c OK [20:49:13]MH_I2C_Read... [20:49:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:13]Read from MH i2c: E2 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 0E 00 [20:49:13]MH_I2C_Read... [20:49:13]Read from MH i2c: E2 0E 00 91 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D3 [20:49:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:49:13]wFMCommunicate OK [20:49:13]SAM_PROTO_GetShiftState done [20:49:13]FM_GetShiftState done [20:49:13]req_shift_opened done [20:49:13]requested_item shift.open_date is exist - process it [20:49:13]req_shift_open_date [20:49:13]req_shift_open_date done [20:49:13]produce_requested_data done [20:49:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112434,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:49:13]process_action_free close_receipt [20:49:13]json_value_free [20:49:13]json_value_free done [20:49:13]process_json_proto returns [20:49:13]Send response to host [20:49:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112434,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:49:13]free response buf [20:49:13]execute_script done [20:49:13]execute_script returns [20:49:13]free content buf [20:49:13]Sock 9.Close socket [20:49:13]Sock 9.Thread stoped [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:05]accept exits with 8 [20:50:05]New connection [20:50:05]New thread 3066682724 created [20:50:05]Thread 3066826084 joined [20:50:05]Waiting for new connection... [20:50:05] Sock 8.Parse request [20:50:05]Sock 8.Check first char [20:50:05]Sock 8.First char is OK [20:50:05]request: POST /json_proto HTTP/1.0 [20:50:05]Method: POST [20:50:05]URL: /json_proto [20:50:05]Method is POST - this is cgi request [20:50:05]url: /json_proto [20:50:05]query_string will be loaded in cgi processing [20:50:05]execute_cgi json_proto POST (null) [20:50:05]execute_cgi path=json_proto method=POST [20:50:05]POST find Content-Length [20:50:05]Host: 172.17.96.197:8080 [20:50:05]Content-Length: 674 [20:50:05]Content-Type: application/json [20:50:05] [20:50:05]POST finish read [20:50:05]Found Content-Length = 674 [20:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48731", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [20:50:05]execute_script... [20:50: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)48731", "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.30, "quantity" : 30.630, "sum" : 2000.14, "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" ] } } [20:50:05]POST & json_proto [20:50:05]process_json_proto [20:50:05]json parsed OK: [20:50:05]protocol is kg_v1.0 [20:50:05]action value=close_receipt [20:50:05]process_action close_receipt [20:50:05]cmd_close_receipt [20:50:05]MH_GetDate [20:50:05]Write to MH i2c: F0 00 00 92 2D AE [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 09 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: F0 09 00 92 2D 00 7F 41 1C 66 E0 85 7F 64 41 [20:50:05]GetLastDocTimeStamp 1713127750 [20:50:05]current date 1713127807 [20:50:05]FM_GetShiftState [20:50:05]SAM_PROTO_GetShiftState [20:50:05]wFMCommunicate request_size=4 [20:50:05]MH_SAM_APDU [20:50:05]CAPDU: 80 13 01 00 [20:50:05]Write to MH i2c: E2 08 00 93 2D 80 13 01 00 00 00 00 00 3D [20:50:05]Write i2c OK [20:50:05]MH_I2C_Read... [20:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:05]Read from MH i2c: E2 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 0E 00 [20:50:05]MH_I2C_Read... [20:50:05]Read from MH i2c: E2 0E 00 93 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D5 [20:50:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:50:05]wFMCommunicate OK [20:50:05]SAM_PROTO_GetShiftState done [20:50:05]FM_GetShiftState done [20:50:05]opened in 1713054696 [20:50:05]opened+sec_in_day 1713141096 [20:50:05]quantity*price = 200013 [20:50:05]sum+1 = 200015 [20:50:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 334 14.04.2024 20:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112435 ФПД: 200223183318854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205007&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112435&fm=200223183318854&tin=02508201610067®Number=0000000000094237&sum=200000 [20:50:06]StoreToDocumentArchive [20:50:06]shift 357 fd 112435 [20:50:06]save to /storage/0357/doc_00112435 [20:50:06]save last doc name /storage/0357/doc_00112435 to /storage/kkm_last_doc_name [20:50:06]save OK [20:50:06]Clear old archive folders... [20:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:50:06]tlvbuf is 001ADE10 [20:50:06]SAM_PROTO_ClearQueue [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 09 00 00 [20:50:06]Write to MH i2c: E2 08 00 A0 2D 80 09 00 00 00 00 00 00 3F [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 A0 2D 00 90 00 41 [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]SAM_PROTO_ClearQueue done [20:50:06]KKMCreateOFDPacket [20:50:06]OFDProtocolAddRootSTLVToBuf [20:50:06]FM_MakeSignedData [20:50:06]FM_MakeSignedData [20:50:06]SAM_PROTO_SignData [20:50:06]wFMCommunicate request_size=4 [20:50:06]MH_SAM_APDU [20:50:06]CAPDU: 80 0D 01 02 [20:50:06]Write to MH i2c: E2 08 00 A1 2D 80 0D 01 02 00 00 00 00 47 [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:06]Read from MH i2c: E2 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 [20:50:06]MH_I2C_Read... [20:50:06]Read from MH i2c: E2 03 00 A1 2D 00 90 00 42 [20:50:06]RAPDU: 90 00 [20:50:06]wFMCommunicate OK [20:50:06]wFMCommunicate request_size=255 [20:50:06]MH_SAM_APDU [20:50:06]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7F 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B7 01 00 35 04 06 00 [20:50:06]Write to MH i2c: E2 02 01 A2 2D 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7F 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B7 01 00 35 04 06 00 00 00 BE [20:50:06]Write i2c OK [20:50:06]MH_I2C_Read... [20:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:07]Read from MH i2c: E2 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 03 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 03 00 A2 2D 00 90 00 43 [20:50:07]RAPDU: 90 00 [20:50:07]wFMCommunicate OK [20:50:07]wFMCommunicate request_size=11 [20:50:07]MH_SAM_APDU [20:50:07]CAPDU: 80 0D 02 02 06 B6 1A 17 B7 AF 46 [20:50:07]Write to MH i2c: E2 0E 00 A3 2D 80 0D 02 02 06 00 B6 1A 17 B7 AF 46 00 00 E9 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:07]Read from MH i2c: E2 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 03 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 03 00 A3 2D 00 90 00 44 [20:50:07]RAPDU: 90 00 [20:50:07]wFMCommunicate OK [20:50:07]wFMCommunicate request_size=4 [20:50:07]MH_SAM_APDU [20:50:07]CAPDU: 80 0D 03 02 [20:50:07]Write to MH i2c: E2 08 00 A4 2D 80 0D 03 02 00 00 00 00 4C [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:07]Read from MH i2c: E2 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 0B 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 0B 00 A4 2D 00 37 94 D5 68 4C BC 0C AB 90 00 14 [20:50:07]RAPDU: 37 94 D5 68 4C BC 0C AB 90 00 [20:50:07]wFMCommunicate OK [20:50:07]SAM_PROTO_SignData done [20:50:07]FM_MakeSignedData done [20:50:07]CreateOFDProtocolMessage [20:50:07]wFMCommunicate request_size=4 [20:50:07]MH_SAM_APDU [20:50:07]CAPDU: 80 11 00 00 [20:50:07]Write to MH i2c: E2 08 00 A5 2D 80 11 00 00 00 00 00 00 4C [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]OFD Sender: No OFD packet to send [20:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:07]Read from MH i2c: E2 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 17 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: E2 17 00 A5 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9D [20:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:50:07]wFMCommunicate OK [20:50:07]CreateOFDProtocolMessage done [20:50:07]OFDSenderStorePacket 112435 [20:50:07]StoreOFDPacket docnum=112435 [20:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 9D 02 08 01 FF CE 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7F 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B7 01 00 35 04 06 00 B6 1A 17 B7 AF 46 37 94 D5 68 4C BC 0C AB [20:50:07]CheckFolder [20:50:07]dirname=/storage/ofd_packets [20:50:07]CheckFolder done [20:50:07]ProducePacketName [20:50:07]name=ofd_packets/00112435 [20:50:07]NVStorageSaveData ofd_packets/00112435 [20:50:07]File name is /storage/ofd_packets/00112435 [20:50:07]Write 302 bytes [20:50:07]NVStorageSaveData done [20:50:07]OFDSenderStorePacket done [20:50:07]KKMCreateOFDPacket done [20:50:07]NVStorageSaveData kkm_last_timestamp [20:50:07]File name is /storage/kkm_last_timestamp [20:50:07]Write 4 bytes [20:50:07]NVStorageSaveData done [20:50:07]ExternCall_PrintAddStr [20:50:07]wPrintStart [20:50:07]Write to MH i2c: 01 00 00 A6 2D D3 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 A6 2D 00 00 00 00 00 FF 0F E8 [20:50:07]RasterBufferAndPrint [20:50:07]line Счет N : (1)48731 [20:50:07]line ИНН: 02508201610067 [20:50:07]line Контрольно-Кассовый Чек [20:50:07]line ПРОДАЖА [20:50:07]line ТРК (МРК, ГНК) : 31 [20:50:07]line Товар: 2710124130 [20:50:07]line SUPER 92-К-5 [20:50:07]line 30.630 * 65.30 [20:50:07]line = 2000.14 [20:50:07]line НДС 12% НСП 1% [20:50:07]line > о реализуемом товаре [20:50:07]line ОКРУГЛЕНИЕ: -0.14 [20:50:07]line ИТОГО: 2000.00 [20:50:07]line Внесено: 2000.00 [20:50:07]line СДАЧА: 0.00 [20:50:07]line НСП 1% : 17.70 [20:50:07]line НДС 12% : 212.40 [20:50:07]line Наличными: 2000.00 [20:50:07]line Безнал.: 0.00 [20:50:07]line Место: АЗС № 47 "Партнер Нефть" [20:50:07]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:50:07]line СНО: Общий режим [20:50:07]line Чек 334 14.04.2024 20:50 [20:50:07]line Смена: 357 ФФД: 1.0 [20:50:07]line ЗНМ: 0300000138 [20:50:07]line РНМ: 0000000000094237 [20:50:07]line Версия ККМ: 001 [20:50:07]line ФМ: 0000000000875019 [20:50:07]line ФД: 112435 [20:50:07]line ФПД: 200223183318854 [20:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205007&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112435&fm=200223183318854&tin=02508201610067®Number=0000000000094237&sum=200000 [20:50:07]OFD Sender: Processing packet 112435 [packets to send 71, broken 70] [20:50:07]ProducePacketName [20:50:07]name=ofd_packets/00112435 [20:50:07]OFD Sender: To server: pG, [20:50:07]CommunicateWithHost lk.salyk.kg:30040 [20:50:07]ConnectInit lk.salyk.kg [20:50:07]written 0, free lines is 4095 [20:50:07]Connected sock=10 [20:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 9D 02 08 01 FF CE 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A6 77 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 4E 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F8 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 7F 41 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B7 01 00 35 04 06 00 B6 1A 17 B7 AF 46 37 94 D5 68 4C BC 0C AB [20:50:07]Write to MH i2c: 01 00 00 D1 2D FE [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: 01 07 00 D1 2D 00 00 00 00 00 E4 0C F5 [20:50:07]RasterBufferAndPrint [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]line [20:50:07]written 0, free lines is 3306 [20:50:07]MH_Cut [20:50:07]Write to MH i2c: D1 01 00 D8 2D 01 D7 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 01 00 [20:50:07]MH_I2C_Read... [20:50:07]Read from MH i2c: D1 01 00 D8 2D 00 D6 [20:50:07]Write to MH i2c: 01 00 00 D9 2D 06 [20:50:07]Write i2c OK [20:50:07]MH_I2C_Read... [20:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C1 28 47 00 5E BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 33 B7 01 00 F4 03 04 00 09 E9 1B 66 B6 04 01 00 00 61 95 D8 2C E4 2A 3D FC [20:50:08]CommunicateWithHost err = 0 [20:50:08]CheckOFDResponse [20:50:08]1017 (14) - 77093643461234 [20:50:08]1041 (16) - 0000000000875019 [20:50:08]1040 (4) - 112435 [20:50:08]1012 (4) - 14.04.2024 14:32 [20:50:08]1206 (1) - 0 [20:50:08]OFD Sender: Remove packet 112435 [20:50:08]ProducePacketName [20:50:08]name=ofd_packets/00112435 [20:50:08]NVStorageDeleteData [20:50:08]OFD Sender: No OFD packet to send [20:50:08]*** Cut start [20:50:08]*** Partial cut [20:50:08]*** CUTSNS_PIN = 1 [20:50:08]*** CUTSNS_PIN = 0 [20:50:09]*** Brake cut motor [20:50:09]Read from MH i2c: 01 [20:50:09]MH_I2C_Read... [20:50:09]*** Stop cut motor [20:50:09]*** Cut end [20:50:09]Read from MH i2c: 01 07 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: 01 07 00 D9 2D 00 00 00 00 00 FF 0F 1B [20:50:09]process_action close_receipt done [20:50:09]requested_data is exist [20:50:09]produce_requested_data [20:50:09]requested_item fm.sn is exist - process it [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 11 00 00 [20:50:09]Write to MH i2c: E2 08 00 DA 2D 80 11 00 00 00 00 00 00 81 [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 17 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 17 00 DA 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D2 [20:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:50:09]wFMCommunicate OK [20:50:09]requested_item fd.num is exist - process it [20:50:09]SAM_PROTO_GetFieldsCounters [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 13 00 00 [20:50:09]Write to MH i2c: E2 08 00 DB 2D 80 13 00 00 00 00 00 00 84 [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 62 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 62 00 DB 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 33 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [20:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 33 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:09]wFMCommunicate OK [20:50:09]SAM_PROTO_GetFieldsCounters done [20:50:09]requested_item shift.num is exist - process it [20:50:09]requested_item shift.opened is exist - process it [20:50:09]req_shift_opened [20:50:09]FM_GetShiftState [20:50:09]SAM_PROTO_GetShiftState [20:50:09]wFMCommunicate request_size=4 [20:50:09]MH_SAM_APDU [20:50:09]CAPDU: 80 13 01 00 [20:50:09]Write to MH i2c: E2 08 00 DC 2D 80 13 01 00 00 00 00 00 86 [20:50:09]Write i2c OK [20:50:09]MH_I2C_Read... [20:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:09]Read from MH i2c: E2 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 0E 00 [20:50:09]MH_I2C_Read... [20:50:09]Read from MH i2c: E2 0E 00 DC 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1E [20:50:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:50:09]wFMCommunicate OK [20:50:09]SAM_PROTO_GetShiftState done [20:50:09]FM_GetShiftState done [20:50:09]req_shift_opened done [20:50:09]requested_item shift.open_date is exist - process it [20:50:09]req_shift_open_date [20:50:09]req_shift_open_date done [20:50:09]produce_requested_data done [20:50:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112435,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:50:09]process_action_free close_receipt [20:50:09]json_value_free [20:50:09]json_value_free done [20:50:09]process_json_proto returns [20:50:09]Send response to host [20:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112435,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:50:09]free response buf [20:50:09]execute_script done [20:50:09]execute_script returns [20:50:09]free content buf [20:50:09]Sock 8.Close socket [20:50:09]Sock 8.Thread stoped [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:22]accept exits with 9 [20:53:22]New connection [20:53:22]New thread 3066826084 created [20:53:22]Thread 3066682724 joined [20:53:22]Waiting for new connection... [20:53:22] Sock 9.Parse request [20:53:22]Sock 9.Check first char [20:53:22]Sock 9.First char is OK [20:53:22]request: POST /json_proto HTTP/1.0 [20:53:22]Method: POST [20:53:22]URL: /json_proto [20:53:22]Method is POST - this is cgi request [20:53:22]url: /json_proto [20:53:22]query_string will be loaded in cgi processing [20:53:22]execute_cgi json_proto POST (null) [20:53:22]execute_cgi path=json_proto method=POST [20:53:22]POST find Content-Length [20:53:22]Host: 172.17.96.197:8080 [20:53:22]Content-Length: 660 [20:53:22]Content-Type: application/json [20:53:22] [20:53:22]POST finish read [20:53:22]Found Content-Length = 660 [20:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:22]execute_script... [20:53: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)48732", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 10.000, "sum" : 643.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "payments": [ { "type": 0, "sum" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:22]POST & json_proto [20:53:22]process_json_proto [20:53:22]json parsed OK: [20:53:22]protocol is kg_v1.0 [20:53:22]action value=close_receipt [20:53:22]process_action close_receipt [20:53:22]cmd_close_receipt [20:53:22]MH_GetDate [20:53:22]Write to MH i2c: F0 00 00 DD 2D F9 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: F0 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: F0 09 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: F0 09 00 DD 2D 00 44 42 1C 66 E0 85 7F 64 52 [20:53:22]GetLastDocTimeStamp 1713127807 [20:53:22]current date 1713128004 [20:53:22]FM_GetShiftState [20:53:22]SAM_PROTO_GetShiftState [20:53:22]wFMCommunicate request_size=4 [20:53:22]MH_SAM_APDU [20:53:22]CAPDU: 80 13 01 00 [20:53:22]Write to MH i2c: E2 08 00 DE 2D 80 13 01 00 00 00 00 00 88 [20:53:22]Write i2c OK [20:53:22]MH_I2C_Read... [20:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:22]Read from MH i2c: E2 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 0E 00 [20:53:22]MH_I2C_Read... [20:53:22]Read from MH i2c: E2 0E 00 DE 2D 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 20 [20:53:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:53:22]wFMCommunicate OK [20:53:22]SAM_PROTO_GetShiftState done [20:53:22]FM_GetShiftState done [20:53:22]opened in 1713054696 [20:53:22]opened+sec_in_day 1713141096 [20:53:22]quantity*price = 64300 [20:53:22]sum+1 = 64301 [20:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 Внесено: 1000.00 СДАЧА: 357.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 643.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 335 14.04.2024 20:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112436 ФПД: 219997071719764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205324&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112436&fm=219997071719764&tin=02508201610067®Number=0000000000094237&sum=64300 [20:53:23]StoreToDocumentArchive [20:53:23]shift 357 fd 112436 [20:53:23]save to /storage/0357/doc_00112436 [20:53:23]save last doc name /storage/0357/doc_00112436 to /storage/kkm_last_doc_name [20:53:23]save OK [20:53:23]Clear old archive folders... [20:53:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:53:23]tlvbuf is B6EBBAD0 [20:53:23]SAM_PROTO_ClearQueue [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 09 00 00 [20:53:23]Write to MH i2c: E2 08 00 EB 2D 80 09 00 00 00 00 00 00 8A [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:23]Read from MH i2c: E2 03 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 03 00 EB 2D 00 90 00 8C [20:53:23]RAPDU: 90 00 [20:53:23]wFMCommunicate OK [20:53:23]SAM_PROTO_ClearQueue done [20:53:23]KKMCreateOFDPacket [20:53:23]OFDProtocolAddRootSTLVToBuf [20:53:23]FM_MakeSignedData [20:53:23]FM_MakeSignedData [20:53:23]SAM_PROTO_SignData [20:53:23]wFMCommunicate request_size=4 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 0D 01 02 [20:53:23]Write to MH i2c: E2 08 00 EC 2D 80 0D 01 02 00 00 00 00 92 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:23]Read from MH i2c: E2 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 03 00 [20:53:23]MH_I2C_Read... [20:53:23]Read from MH i2c: E2 03 00 EC 2D 00 90 00 8D [20:53:23]RAPDU: 90 00 [20:53:23]wFMCommunicate OK [20:53:23]wFMCommunicate request_size=255 [20:53:23]MH_SAM_APDU [20:53:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 44 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B7 01 00 35 04 06 00 C8 [20:53:23]Write to MH i2c: E2 02 01 ED 2D 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 44 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B7 01 00 35 04 06 00 C8 00 00 F0 [20:53:23]Write i2c OK [20:53:23]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 03 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 03 00 ED 2D 00 90 00 8E [20:53:24]RAPDU: 90 00 [20:53:24]wFMCommunicate OK [20:53:24]wFMCommunicate request_size=10 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 0D 02 02 05 16 0F 4F BD 54 [20:53:24]Write to MH i2c: E2 0D 00 EE 2D 80 0D 02 02 05 00 16 0F 4F BD 54 00 00 24 [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 03 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 03 00 EE 2D 00 90 00 8F [20:53:24]RAPDU: 90 00 [20:53:24]wFMCommunicate OK [20:53:24]wFMCommunicate request_size=4 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 0D 03 02 [20:53:24]Write to MH i2c: E2 08 00 EF 2D 80 0D 03 02 00 00 00 00 97 [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 0B 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 0B 00 EF 2D 00 FC 92 D6 8C 1B 7F E1 2C 90 00 2F [20:53:24]RAPDU: FC 92 D6 8C 1B 7F E1 2C 90 00 [20:53:24]wFMCommunicate OK [20:53:24]SAM_PROTO_SignData done [20:53:24]FM_MakeSignedData done [20:53:24]CreateOFDProtocolMessage [20:53:24]wFMCommunicate request_size=4 [20:53:24]MH_SAM_APDU [20:53:24]CAPDU: 80 11 00 00 [20:53:24]Write to MH i2c: E2 08 00 F0 2D 80 11 00 00 00 00 00 00 97 [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:24]Read from MH i2c: E2 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 17 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: E2 17 00 F0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [20:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:53:24]wFMCommunicate OK [20:53:24]CreateOFDProtocolMessage done [20:53:24]OFDSenderStorePacket 112436 [20:53:24]StoreOFDPacket docnum=112436 [20:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1A 4D 07 01 98 D7 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 44 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B7 01 00 35 04 06 00 C8 16 0F 4F BD 54 FC 92 D6 8C 1B 7F E1 2C [20:53:24]CheckFolder [20:53:24]dirname=/storage/ofd_packets [20:53:24]CheckFolder done [20:53:24]ProducePacketName [20:53:24]name=ofd_packets/00112436 [20:53:24]NVStorageSaveData ofd_packets/00112436 [20:53:24]File name is /storage/ofd_packets/00112436 [20:53:24]Write 301 bytes [20:53:24]NVStorageSaveData done [20:53:24]OFDSenderStorePacket done [20:53:24]KKMCreateOFDPacket done [20:53:24]NVStorageSaveData kkm_last_timestamp [20:53:24]File name is /storage/kkm_last_timestamp [20:53:24]Write 4 bytes [20:53:24]NVStorageSaveData done [20:53:24]ExternCall_PrintAddStr [20:53:24]wPrintStart [20:53:24]Write to MH i2c: 01 00 00 F1 2D 1E [20:53:24]Write i2c OK [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: 01 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: 01 07 00 [20:53:24]MH_I2C_Read... [20:53:24]Read from MH i2c: 01 07 00 F1 2D 00 00 00 00 00 FF 0F 33 [20:53:24]RasterBufferAndPrint [20:53:24]line Счет N : (1)48732 [20:53:24]line ИНН: 02508201610067 [20:53:24]line Контрольно-Кассовый Чек [20:53:24]line ПРОДАЖА [20:53:24]line ТРК (МРК, ГНК) : 11 [20:53:24]line Товар: 2710124130 [20:53:24]line Аи-92-К-5 [20:53:24]line 10.000 * 64.30 [20:53:24]line = 643.00 [20:53:24]line НДС 12% НСП 1% [20:53:24]line > о реализуемом товаре [20:53:24]line ИТОГО: 643.00 [20:53:24]line Внесено: 1000.00 [20:53:24]line СДАЧА: 357.00 [20:53:24]line НСП 1% : 5.69 [20:53:24]line НДС 12% : 68.28 [20:53:24]line Наличными: 643.00 [20:53:24]line Безнал.: 0.00 [20:53:24]line Место: АЗС № 47 "Партнер Нефть" [20:53:24]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:53:24]line СНО: Общий режим [20:53:24]line Чек 335 14.04.2024 20:53 [20:53:24]line Смена: 357 ФФД: 1.0 [20:53:24]line ЗНМ: 0300000138 [20:53:24]line РНМ: 0000000000094237 [20:53:24]line Версия ККМ: 001 [20:53:24]line ФМ: 0000000000875019 [20:53:24]line ФД: 112436 [20:53:24]line ФПД: 219997071719764 [20:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205324&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112436&fm=219997071719764&tin=02508201610067®Number=0000000000094237&sum=64300 [20:53:24]OFD Sender: Processing packet 112436 [packets to send 71, broken 70] [20:53:24]ProducePacketName [20:53:24]name=ofd_packets/00112436 [20:53:24]OFD Sender: To server: pG, [20:53:24]CommunicateWithHost lk.salyk.kg:30040 [20:53:24]ConnectInit lk.salyk.kg [20:53:24]written 0, free lines is 4095 [20:53:24]Connected sock=10 [20:53:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1A 4D 07 01 98 D7 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 2C FB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 44 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B7 01 00 35 04 06 00 C8 16 0F 4F BD 54 FC 92 D6 8C 1B 7F E1 2C [20:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3D 3F 47 00 10 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 34 B7 01 00 F4 03 04 00 CE E9 1B 66 B6 04 01 00 00 6E F8 77 5D 7A 63 74 FE [20:53:25]CommunicateWithHost err = 0 [20:53:25]CheckOFDResponse [20:53:25]1017 (14) - 77093643461234 [20:53:25]1041 (16) - 0000000000875019 [20:53:25]1040 (4) - 112436 [20:53:25]1012 (4) - 14.04.2024 14:35 [20:53:25]1206 (1) - 0 [20:53:25]OFD Sender: Remove packet 112436 [20:53:25]ProducePacketName [20:53:25]name=ofd_packets/00112436 [20:53:25]NVStorageDeleteData [20:53:25]Write to MH i2c: 01 00 00 1B 2E 49 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: 01 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: 01 07 00 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: 01 07 00 1B 2E 00 00 00 00 00 FC 0C 58 [20:53:25]RasterBufferAndPrint [20:53:25]line [20:53:25]line [20:53:25]line [20:53:25]line [20:53:25]line [20:53:25]written 0, free lines is 3330 [20:53:25]MH_Cut [20:53:25]Write to MH i2c: D1 01 00 22 2E 01 22 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: D1 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: D1 01 00 [20:53:25]MH_I2C_Read... [20:53:25]Read from MH i2c: D1 01 00 22 2E 00 21 [20:53:25]Write to MH i2c: 01 00 00 23 2E 51 [20:53:25]Write i2c OK [20:53:25]MH_I2C_Read... [20:53:25]OFD Sender: No OFD packet to send [20:53:25]*** Cut start [20:53:25]*** Partial cut [20:53:25]*** CUTSNS_PIN = 1 [20:53:25]*** CUTSNS_PIN = 0 [20:53:26]*** Brake cut motor [20:53:26]Read from MH i2c: 01 [20:53:26]MH_I2C_Read... [20:53:26]*** Stop cut motor [20:53:26]*** Cut end [20:53:26]Read from MH i2c: 01 07 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: 01 07 00 23 2E 00 00 00 00 00 FF 0F 66 [20:53:26]process_action close_receipt done [20:53:26]requested_data is exist [20:53:26]produce_requested_data [20:53:26]requested_item fm.sn is exist - process it [20:53:26]wFMCommunicate request_size=4 [20:53:26]MH_SAM_APDU [20:53:26]CAPDU: 80 11 00 00 [20:53:26]Write to MH i2c: E2 08 00 24 2E 80 11 00 00 00 00 00 00 CC [20:53:26]Write i2c OK [20:53:26]MH_I2C_Read... [20:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:26]Read from MH i2c: E2 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 17 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 17 00 24 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1D [20:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:53:26]wFMCommunicate OK [20:53:26]requested_item fd.num is exist - process it [20:53:26]SAM_PROTO_GetFieldsCounters [20:53:26]wFMCommunicate request_size=4 [20:53:26]MH_SAM_APDU [20:53:26]CAPDU: 80 13 00 00 [20:53:26]Write to MH i2c: E2 08 00 25 2E 80 13 00 00 00 00 00 00 CF [20:53:26]Write i2c OK [20:53:26]MH_I2C_Read... [20:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:26]Read from MH i2c: E2 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 62 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 62 00 25 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 34 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [20:53:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 34 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:26]wFMCommunicate OK [20:53:26]SAM_PROTO_GetFieldsCounters done [20:53:26]requested_item shift.num is exist - process it [20:53:26]requested_item shift.opened is exist - process it [20:53:26]req_shift_opened [20:53:26]FM_GetShiftState [20:53:26]SAM_PROTO_GetShiftState [20:53:26]wFMCommunicate request_size=4 [20:53:26]MH_SAM_APDU [20:53:26]CAPDU: 80 13 01 00 [20:53:26]Write to MH i2c: E2 08 00 26 2E 80 13 01 00 00 00 00 00 D1 [20:53:26]Write i2c OK [20:53:26]MH_I2C_Read... [20:53:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:26]Read from MH i2c: E2 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 [20:53:26]MH_I2C_Read... [20:53:26]Read from MH i2c: E2 0E 00 26 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 69 [20:53:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:53:26]wFMCommunicate OK [20:53:26]SAM_PROTO_GetShiftState done [20:53:26]FM_GetShiftState done [20:53:26]req_shift_opened done [20:53:26]requested_item shift.open_date is exist - process it [20:53:26]req_shift_open_date [20:53:26]req_shift_open_date done [20:53:26]produce_requested_data done [20:53:26]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112436,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:53:26]process_action_free close_receipt [20:53:26]json_value_free [20:53:26]json_value_free done [20:53:26]process_json_proto returns [20:53:26]Send response to host [20:53:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112436,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:53:26]free response buf [20:53:26]execute_script done [20:53:26]execute_script returns [20:53:26]free content buf [20:53:26]Sock 9.Close socket [20:53:26]Sock 9.Thread stoped [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]accept exits with 8 [20:53:40]New connection [20:53:40]New thread 3066682724 created [20:53:40]Thread 3066826084 joined [20:53:40]Waiting for new connection... [20:53:40] Sock 8.Parse request [20:53:40]Sock 8.Check first char [20:53:40]Sock 8.First char is OK [20:53:40]request: POST /json_proto HTTP/1.0 [20:53:40]Method: POST [20:53:40]URL: /json_proto [20:53:40]Method is POST - this is cgi request [20:53:40]url: /json_proto [20:53:40]query_string will be loaded in cgi processing [20:53:40]execute_cgi json_proto POST (null) [20:53:40]execute_cgi path=json_proto method=POST [20:53:40]POST find Content-Length [20:53:40]Host: 172.17.96.197:8080 [20:53:40]Content-Length: 957 [20:53:40]Content-Type: application/json [20:53:40] [20:53:40]POST finish read [20:53:40]Found Content-Length = 957 [20:53:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10447", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:40]execute_script... [20:53:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10447", "tax_sys" : 0, "items" : [ { "code": "4870002328619", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A DADA \u0430\u043F\u0435\u043B,\u043B\u0435\u043C\u043E\u043D\u0433\u0440 \u041F\u042D\u0422 0,5\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:53:40]POST & json_proto [20:53:40]process_json_proto [20:53:40]json parsed OK: [20:53:40]protocol is kg_v1.0 [20:53:40]action value=close_receipt [20:53:40]process_action close_receipt [20:53:40]cmd_close_receipt [20:53:40]MH_GetDate [20:53:40]Write to MH i2c: F0 00 00 27 2E 44 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 09 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: F0 09 00 27 2E 00 55 42 1C 66 E0 85 7F 64 AE [20:53:40]GetLastDocTimeStamp 1713128004 [20:53:40]current date 1713128021 [20:53:40]FM_GetShiftState [20:53:40]SAM_PROTO_GetShiftState [20:53:40]wFMCommunicate request_size=4 [20:53:40]MH_SAM_APDU [20:53:40]CAPDU: 80 13 01 00 [20:53:40]Write to MH i2c: E2 08 00 28 2E 80 13 01 00 00 00 00 00 D3 [20:53:40]Write i2c OK [20:53:40]MH_I2C_Read... [20:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:40]Read from MH i2c: E2 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0E 00 [20:53:40]MH_I2C_Read... [20:53:40]Read from MH i2c: E2 0E 00 28 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6B [20:53:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:53:40]wFMCommunicate OK [20:53:40]SAM_PROTO_GetShiftState done [20:53:40]FM_GetShiftState done [20:53:40]opened in 1713054696 [20:53:40]opened+sec_in_day 1713141096 [20:53:40]quantity*price = 8500 [20:53:40]sum+1 = 8501 [20:53:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.28 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 336 14.04.2024 20:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112437 ФПД: 133368690634559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205341&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112437&fm=133368690634559&tin=02508201610067®Number=0000000000094237&sum=12500 0 [20:53:41]StoreToDocumentArchive [20:53:41]shift 357 fd 112437 [20:53:41]save to /storage/0357/doc_00112437 [20:53:41]save last doc name /storage/0357/doc_00112437 to /storage/kkm_last_doc_name [20:53:41]save OK [20:53:41]Clear old archive folders... [20:53:41]ProcessDocumentItem done err = 0, tmpTLVsize=400 [20:53:41]tlvbuf is B6F36160 [20:53:41]SAM_PROTO_ClearQueue [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 09 00 00 [20:53:41]Write to MH i2c: E2 08 00 35 2E 80 09 00 00 00 00 00 00 D5 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 35 2E 00 90 00 D7 [20:53:41]RAPDU: 90 00 [20:53:41]wFMCommunicate OK [20:53:41]SAM_PROTO_ClearQueue done [20:53:41]KKMCreateOFDPacket [20:53:41]OFDProtocolAddRootSTLVToBuf [20:53:41]FM_MakeSignedData [20:53:41]FM_MakeSignedData [20:53:41]SAM_PROTO_SignData [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 0D 01 02 [20:53:41]Write to MH i2c: E2 08 00 36 2E 80 0D 01 02 00 00 00 00 DD [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 36 2E 00 90 00 D8 [20:53:41]RAPDU: 90 00 [20:53:41]wFMCommunicate OK [20:53:41]wFMCommunicate request_size=255 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB [20:53:41]Write to MH i2c: E2 02 01 37 2E 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 00 00 1A [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 37 2E 00 90 00 D9 [20:53:41]RAPDU: 90 00 [20:53:41]wFMCommunicate OK [20:53:41]wFMCommunicate request_size=159 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 55 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B7 01 00 35 04 06 00 79 4C 51 6D EF 3F [20:53:41]Write to MH i2c: E2 A2 00 38 2E 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 55 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B7 01 00 35 04 06 00 79 4C 51 6D EF 3F 00 00 79 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 03 00 38 2E 00 90 00 DA [20:53:41]RAPDU: 90 00 [20:53:41]wFMCommunicate OK [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 0D 03 02 [20:53:41]Write to MH i2c: E2 08 00 39 2E 80 0D 03 02 00 00 00 00 E2 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 0B 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 0B 00 39 2E 00 E9 2A D5 7C D9 50 FD 0C 90 00 79 [20:53:41]RAPDU: E9 2A D5 7C D9 50 FD 0C 90 00 [20:53:41]wFMCommunicate OK [20:53:41]SAM_PROTO_SignData done [20:53:41]FM_MakeSignedData done [20:53:41]CreateOFDProtocolMessage [20:53:41]wFMCommunicate request_size=4 [20:53:41]MH_SAM_APDU [20:53:41]CAPDU: 80 11 00 00 [20:53:41]Write to MH i2c: E2 08 00 3A 2E 80 11 00 00 00 00 00 00 E2 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:41]Read from MH i2c: E2 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 17 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: E2 17 00 3A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 33 [20:53:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:53:41]wFMCommunicate OK [20:53:41]CreateOFDProtocolMessage done [20:53:41]OFDSenderStorePacket 112437 [20:53:41]StoreOFDPacket docnum=112437 [20:53:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 A4 01 00 00 D2 CA 9C 01 8E 6D 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 55 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B7 01 00 35 04 06 00 79 4C 51 6D EF 3F E9 2A D5 7C D9 50 FD 0C [20:53:41]CheckFolder [20:53:41]dirname=/storage/ofd_packets [20:53:41]CheckFolder done [20:53:41]ProducePacketName [20:53:41]name=ofd_packets/00112437 [20:53:41]NVStorageSaveData ofd_packets/00112437 [20:53:41]File name is /storage/ofd_packets/00112437 [20:53:41]Write 450 bytes [20:53:41]NVStorageSaveData done [20:53:41]OFDSenderStorePacket done [20:53:41]KKMCreateOFDPacket done [20:53:41]NVStorageSaveData kkm_last_timestamp [20:53:41]File name is /storage/kkm_last_timestamp [20:53:41]Write 4 bytes [20:53:41]NVStorageSaveData done [20:53:41]ExternCall_PrintAddStr [20:53:41]wPrintStart [20:53:41]Write to MH i2c: 01 00 00 3B 2E 69 [20:53:41]Write i2c OK [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 07 00 [20:53:41]MH_I2C_Read... [20:53:41]Read from MH i2c: 01 07 00 3B 2E 00 00 00 00 00 FF 0F 7E [20:53:41]RasterBufferAndPrint [20:53:42]line Счет N : (3)10447 [20:53:42]line ИНН: 02508201610067 [20:53:42]line Контрольно-Кассовый Чек [20:53:42]line ПРОДАЖА [20:53:42]line Товар: 4870002328619 [20:53:42]line Напиток DADA апел,лемонгр ПЭТ 0,5л [20:53:42]line 1.000 * 85.00 [20:53:42]line = 85.00 [20:53:42]line НДС 12% НСП 1% [20:53:42]line > о реализуемом товаре [20:53:42]line Товар: 40822426 [20:53:42]line Вода Бонаква 0,5л б/г [20:53:42]line 1.000 * 40.00 [20:53:42]line = 40.00 [20:53:42]line НДС 12% НСП 1% [20:53:42]line > о реализуемом товаре [20:53:42]line ИТОГО: 125.00 [20:53:42]line НСП 1% : 1.10 [20:53:42]line НДС 12% : 13.28 [20:53:42]line Наличными: 125.00 [20:53:42]line Безнал.: 0.00 [20:53:42]line Место: АЗС № 47 "Партнер Нефть" [20:53:42]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:53:42]line СНО: Общий режим [20:53:42]line Чек 336 14.04.2024 20:53 [20:53:42]line Смена: 357 ФФД: 1.0 [20:53:42]line ЗНМ: 0300000138 [20:53:42]line РНМ: 0000000000094237 [20:53:42]line Версия ККМ: 001 [20:53:42]line ФМ: 0000000000875019 [20:53:42]line ФД: 112437 [20:53:42]line ФПД: 133368690634559 [20:53:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205341&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112437&fm=133368690634559&tin=02508201610067®Number=0000000000094237&sum=12500 [20:53:42]OFD Sender: Processing packet 112437 [packets to send 71, broken 70] [20:53:42]ProducePacketName [20:53:42]name=ofd_packets/00112437 [20:53:42]OFD Sender: To server: pG, [20:53:42]CommunicateWithHost lk.salyk.kg:30040 [20:53:42]ConnectInit lk.salyk.kg [20:53:42]line 0 [20:53:42]written 0, free lines is 4095 [20:53:42]Connected sock=10 [20:53:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 A4 01 00 00 D2 CA 9C 01 8E 6D 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 31 39 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF D0 B5 D0 BB 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 55 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B7 01 00 35 04 06 00 79 4C 51 6D EF 3F E9 2A D5 7C D9 50 FD 0C [20:53:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 11 19 47 00 CE 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 35 B7 01 00 F4 03 04 00 E0 E9 1B 66 B6 04 01 00 00 3E FC 25 7E 5D 7E E7 95 [20:53:42]CommunicateWithHost err = 0 [20:53:42]CheckOFDResponse [20:53:42]1017 (14) - 77093643461234 [20:53:42]1041 (16) - 0000000000875019 [20:53:42]1040 (4) - 112437 [20:53:42]1012 (4) - 14.04.2024 14:36 [20:53:42]1206 (1) - 0 [20:53:42]OFD Sender: Remove packet 112437 [20:53:42]ProducePacketName [20:53:42]name=ofd_packets/00112437 [20:53:42]NVStorageDeleteData [20:53:42]Write to MH i2c: 01 00 00 6A 2E 98 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 07 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: 01 07 00 6A 2E 00 00 00 00 00 99 0C 44 [20:53:42]RasterBufferAndPrint [20:53:42]line [20:53:42]line [20:53:42]line [20:53:42]line [20:53:42]line [20:53:42]written 0, free lines is 3233 [20:53:42]MH_Cut [20:53:42]Write to MH i2c: D1 01 00 71 2E 01 71 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: D1 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: D1 01 00 [20:53:42]MH_I2C_Read... [20:53:42]Read from MH i2c: D1 01 00 71 2E 00 70 [20:53:42]Write to MH i2c: 01 00 00 72 2E A0 [20:53:42]Write i2c OK [20:53:42]MH_I2C_Read... [20:53:43]OFD Sender: No OFD packet to send [20:53:43]*** Cut start [20:53:43]*** Partial cut [20:53:43]*** CUTSNS_PIN = 1 [20:53:43]*** CUTSNS_PIN = 0 [20:53:43]*** Brake cut motor [20:53:44]Read from MH i2c: 01 [20:53:44]MH_I2C_Read... [20:53:44]*** Stop cut motor [20:53:44]*** Cut end [20:53:44]Read from MH i2c: 01 07 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: 01 07 00 72 2E 00 00 00 00 00 FF 0F B5 [20:53:44]process_action close_receipt done [20:53:44]requested_data is exist [20:53:44]produce_requested_data [20:53:44]requested_item fm.sn is exist - process it [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 11 00 00 [20:53:44]Write to MH i2c: E2 08 00 73 2E 80 11 00 00 00 00 00 00 1B [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 17 00 73 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6C [20:53:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:53:44]wFMCommunicate OK [20:53:44]requested_item fd.num is exist - process it [20:53:44]SAM_PROTO_GetFieldsCounters [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 13 00 00 [20:53:44]Write to MH i2c: E2 08 00 74 2E 80 13 00 00 00 00 00 00 1E [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 62 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 62 00 74 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 35 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 83 [20:53:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 35 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_GetFieldsCounters done [20:53:44]requested_item shift.num is exist - process it [20:53:44]requested_item shift.opened is exist - process it [20:53:44]req_shift_opened [20:53:44]FM_GetShiftState [20:53:44]SAM_PROTO_GetShiftState [20:53:44]wFMCommunicate request_size=4 [20:53:44]MH_SAM_APDU [20:53:44]CAPDU: 80 13 01 00 [20:53:44]Write to MH i2c: E2 08 00 75 2E 80 13 01 00 00 00 00 00 20 [20:53:44]Write i2c OK [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 [20:53:44]MH_I2C_Read... [20:53:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:53:44]Read from MH i2c: E2 0E 00 [20:53:44]MH_I2C_Read... [20:53:44]Read from MH i2c: E2 0E 00 75 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B8 [20:53:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:53:44]wFMCommunicate OK [20:53:44]SAM_PROTO_GetShiftState done [20:53:44]FM_GetShiftState done [20:53:44]req_shift_opened done [20:53:44]requested_item shift.open_date is exist - process it [20:53:44]req_shift_open_date [20:53:44]req_shift_open_date done [20:53:44]produce_requested_data done [20:53:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112437,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:53:44]process_action_free close_receipt [20:53:44]json_value_free [20:53:44]json_value_free done [20:53:44]process_json_proto returns [20:53:44]Send response to host [20:53:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112437,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:53:44]free response buf [20:53:44]execute_script done [20:53:44]execute_script returns [20:53:44]free content buf [20:53:44]Sock 8.Close socket [20:53:44]Sock 8.Thread stoped [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:30]accept exits with 9 [20:55:30]New connection [20:55:30]New thread 3066826084 created [20:55:30]Thread 3066682724 joined [20:55:30]Waiting for new connection... [20:55:30] Sock 9.Parse request [20:55:30]Sock 9.Check first char [20:55:30]Sock 9.First char is OK [20:55:30]request: POST /json_proto HTTP/1.0 [20:55:30]Method: POST [20:55:30]URL: /json_proto [20:55:30]Method is POST - this is cgi request [20:55:30]url: /json_proto [20:55:30]query_string will be loaded in cgi processing [20:55:30]execute_cgi json_proto POST (null) [20:55:30]execute_cgi path=json_proto method=POST [20:55:30]POST find Content-Length [20:55:30]Host: 172.17.96.197:8080 [20:55:30]Content-Length: 673 [20:55:30]Content-Type: application/json [20:55:30] [20:55:30]POST finish read [20:55:30]Found Content-Length = 673 [20:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48733", "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.40, "quantity" : 8.290, "sum" : 600.20, "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" ] } } [20:55:30]execute_script... [20:55: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)48733", "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.40, "quantity" : 8.290, "sum" : 600.20, "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" ] } } [20:55:30]POST & json_proto [20:55:30]process_json_proto [20:55:30]json parsed OK: [20:55:30]protocol is kg_v1.0 [20:55:30]action value=close_receipt [20:55:30]process_action close_receipt [20:55:30]cmd_close_receipt [20:55:30]MH_GetDate [20:55:30]Write to MH i2c: F0 00 00 76 2E 93 [20:55:30]Write i2c OK [20:55:30]MH_I2C_Read... [20:55:30]Read from MH i2c: F0 [20:55:30]MH_I2C_Read... [20:55:30]Read from MH i2c: F0 09 00 [20:55:30]MH_I2C_Read... [20:55:30]Read from MH i2c: F0 09 00 76 2E 00 C4 42 1C 66 E0 85 7F 64 6C [20:55:30]GetLastDocTimeStamp 1713128021 [20:55:30]current date 1713128132 [20:55:30]FM_GetShiftState [20:55:30]SAM_PROTO_GetShiftState [20:55:30]wFMCommunicate request_size=4 [20:55:30]MH_SAM_APDU [20:55:30]CAPDU: 80 13 01 00 [20:55:30]Write to MH i2c: E2 08 00 77 2E 80 13 01 00 00 00 00 00 22 [20:55:30]Write i2c OK [20:55:30]MH_I2C_Read... [20:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:30]Read from MH i2c: E2 [20:55:30]MH_I2C_Read... [20:55:30]Read from MH i2c: E2 0E 00 [20:55:30]MH_I2C_Read... [20:55:30]Read from MH i2c: E2 0E 00 77 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BA [20:55:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:55:30]wFMCommunicate OK [20:55:30]SAM_PROTO_GetShiftState done [20:55:30]FM_GetShiftState done [20:55:30]opened in 1713054696 [20:55:30]opened+sec_in_day 1713141096 [20:55:30]quantity*price = 60019 [20:55:30]sum+1 = 60021 [20:55:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 337 14.04.2024 20:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112438 ФПД: 84064544363434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205532&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112438&fm=84064544363434&tin=02508201610067®Number=0000000000094237&sum=60000 [20:55:32]StoreToDocumentArchive [20:55:32]shift 357 fd 112438 [20:55:32]save to /storage/0357/doc_00112438 [20:55:32]save last doc name /storage/0357/doc_00112438 to /storage/kkm_last_doc_name [20:55:32]save OK [20:55:32]Clear old archive folders... [20:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:55:32]tlvbuf is 00268C90 [20:55:32]SAM_PROTO_ClearQueue [20:55:32]wFMCommunicate request_size=4 [20:55:32]MH_SAM_APDU [20:55:32]CAPDU: 80 09 00 00 [20:55:32]Write to MH i2c: E2 08 00 84 2E 80 09 00 00 00 00 00 00 24 [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 84 2E 00 90 00 26 [20:55:32]RAPDU: 90 00 [20:55:32]wFMCommunicate OK [20:55:32]SAM_PROTO_ClearQueue done [20:55:32]KKMCreateOFDPacket [20:55:32]OFDProtocolAddRootSTLVToBuf [20:55:32]FM_MakeSignedData [20:55:32]FM_MakeSignedData [20:55:32]SAM_PROTO_SignData [20:55:32]wFMCommunicate request_size=4 [20:55:32]MH_SAM_APDU [20:55:32]CAPDU: 80 0D 01 02 [20:55:32]Write to MH i2c: E2 08 00 85 2E 80 0D 01 02 00 00 00 00 2C [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 85 2E 00 90 00 27 [20:55:32]RAPDU: 90 00 [20:55:32]wFMCommunicate OK [20:55:32]wFMCommunicate request_size=255 [20:55:32]MH_SAM_APDU [20:55:32]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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 51 01 00 00 F4 03 04 00 C4 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B7 01 00 35 04 06 00 4C 74 CD 4E [20:55:32]Write to MH i2c: E2 02 01 86 2E 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 51 01 00 00 F4 03 04 00 C4 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B7 01 00 35 04 06 00 4C 74 CD 4E 00 00 7B [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 86 2E 00 90 00 28 [20:55:32]RAPDU: 90 00 [20:55:32]wFMCommunicate OK [20:55:32]wFMCommunicate request_size=7 [20:55:32]MH_SAM_APDU [20:55:32]CAPDU: 80 0D 02 02 02 13 AA [20:55:32]Write to MH i2c: E2 0A 00 87 2E 80 0D 02 02 02 00 13 AA 00 00 F0 [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 03 00 87 2E 00 90 00 29 [20:55:32]RAPDU: 90 00 [20:55:32]wFMCommunicate OK [20:55:32]wFMCommunicate request_size=4 [20:55:32]MH_SAM_APDU [20:55:32]CAPDU: 80 0D 03 02 [20:55:32]Write to MH i2c: E2 08 00 88 2E 80 0D 03 02 00 00 00 00 31 [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 0B 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 0B 00 88 2E 00 35 C5 6B 8D DC E4 C9 43 90 00 F0 [20:55:32]RAPDU: 35 C5 6B 8D DC E4 C9 43 90 00 [20:55:32]wFMCommunicate OK [20:55:32]SAM_PROTO_SignData done [20:55:32]FM_MakeSignedData done [20:55:32]CreateOFDProtocolMessage [20:55:32]wFMCommunicate request_size=4 [20:55:32]MH_SAM_APDU [20:55:32]CAPDU: 80 11 00 00 [20:55:32]Write to MH i2c: E2 08 00 89 2E 80 11 00 00 00 00 00 00 31 [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:32]Read from MH i2c: E2 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 17 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: E2 17 00 89 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 82 [20:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:55:32]wFMCommunicate OK [20:55:32]CreateOFDProtocolMessage done [20:55:32]OFDSenderStorePacket 112438 [20:55:32]StoreOFDPacket docnum=112438 [20:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 74 9B 04 01 61 FA 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 51 01 00 00 F4 03 04 00 C4 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B7 01 00 35 04 06 00 4C 74 CD 4E 13 AA 35 C5 6B 8D DC E4 C9 43 [20:55:32]CheckFolder [20:55:32]dirname=/storage/ofd_packets [20:55:32]CheckFolder done [20:55:32]ProducePacketName [20:55:32]name=ofd_packets/00112438 [20:55:32]NVStorageSaveData ofd_packets/00112438 [20:55:32]File name is /storage/ofd_packets/00112438 [20:55:32]Write 298 bytes [20:55:32]NVStorageSaveData done [20:55:32]OFDSenderStorePacket done [20:55:32]KKMCreateOFDPacket done [20:55:32]NVStorageSaveData kkm_last_timestamp [20:55:32]File name is /storage/kkm_last_timestamp [20:55:32]Write 4 bytes [20:55:32]NVStorageSaveData done [20:55:32]ExternCall_PrintAddStr [20:55:32]wPrintStart [20:55:32]Write to MH i2c: 01 00 00 8A 2E B8 [20:55:32]Write i2c OK [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: 01 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: 01 07 00 [20:55:32]MH_I2C_Read... [20:55:32]Read from MH i2c: 01 07 00 8A 2E 00 00 00 00 00 FF 0F CD [20:55:32]RasterBufferAndPrint [20:55:32]line Счет N : (1)48733 [20:55:32]line ИНН: 02508201610067 [20:55:32]line Контрольно-Кассовый Чек [20:55:32]line ПРОДАЖА [20:55:32]line ТРК (МРК, ГНК) : 51 [20:55:32]line Товар: 2710194210 [20:55:32]line ДТ-К-5 [20:55:32]line 8.290 * 72.40 [20:55:32]line = 600.20 [20:55:32]line НДС 12% НСП 1% [20:55:32]line > о реализуемом товаре [20:55:32]line ОКРУГЛЕНИЕ: -0.20 [20:55:32]line ИТОГО: 600.00 [20:55:32]line Внесено: 600.00 [20:55:32]line СДАЧА: 0.00 [20:55:32]line НСП 1% : 5.31 [20:55:32]line НДС 12% : 63.74 [20:55:32]line Наличными: 600.00 [20:55:32]line Безнал.: 0.00 [20:55:32]line Место: АЗС № 47 "Партнер Нефть" [20:55:32]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [20:55:32]line СНО: Общий режим [20:55:32]line Чек 337 14.04.2024 20:55 [20:55:32]line Смена: 357 ФФД: 1.0 [20:55:32]line ЗНМ: 0300000138 [20:55:32]line РНМ: 0000000000094237 [20:55:32]line Версия ККМ: 001 [20:55:32]line ФМ: 0000000000875019 [20:55:32]line ФД: 112438 [20:55:32]line ФПД: 84064544363434 [20:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T205532&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112438&fm=84064544363434&tin=02508201610067®Number=0000000000094237&sum=60000 [20:55:32]OFD Sender: Processing packet 112438 [packets to send 71, broken 70] [20:55:32]ProducePacketName [20:55:32]name=ofd_packets/00112438 [20:55:32]OFD Sender: To server: pG, [20:55:32]CommunicateWithHost lk.salyk.kg:30040 [20:55:32]ConnectInit lk.salyk.kg [20:55:32]written 0, free lines is 4095 [20:55:33]Connected sock=10 [20:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 74 9B 04 01 61 FA 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 62 20 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 74 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 E6 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 51 01 00 00 F4 03 04 00 C4 42 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B7 01 00 35 04 06 00 4C 74 CD 4E 13 AA 35 C5 6B 8D DC E4 C9 43 [20:55:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1E 2F 47 00 39 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 36 B7 01 00 F4 03 04 00 4F EA 1B 66 B6 04 01 00 00 A9 D9 A4 37 03 1A 30 D1 [20:55:33]CommunicateWithHost err = 0 [20:55:33]CheckOFDResponse [20:55:33]1017 (14) - 77093643461234 [20:55:33]1041 (16) - 0000000000875019 [20:55:33]1040 (4) - 112438 [20:55:33]1012 (4) - 14.04.2024 14:38 [20:55:33]1206 (1) - 0 [20:55:33]OFD Sender: Remove packet 112438 [20:55:33]ProducePacketName [20:55:33]name=ofd_packets/00112438 [20:55:33]NVStorageDeleteData [20:55:33]Write to MH i2c: 01 00 00 B5 2E E3 [20:55:33]Write i2c OK [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 07 00 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: 01 07 00 B5 2E 00 00 00 00 00 E5 0C DB [20:55:33]RasterBufferAndPrint [20:55:33]line [20:55:33]line [20:55:33]line [20:55:33]line [20:55:33]line [20:55:33]written 0, free lines is 3307 [20:55:33]MH_Cut [20:55:33]Write to MH i2c: D1 01 00 BC 2E 01 BC [20:55:33]Write i2c OK [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: D1 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: D1 01 00 [20:55:33]MH_I2C_Read... [20:55:33]Read from MH i2c: D1 01 00 BC 2E 00 BB [20:55:33]Write to MH i2c: 01 00 00 BD 2E EB [20:55:33]Write i2c OK [20:55:33]MH_I2C_Read... [20:55:33]OFD Sender: No OFD packet to send [20:55:34]*** Cut start [20:55:34]*** Partial cut [20:55:34]*** CUTSNS_PIN = 1 [20:55:34]*** CUTSNS_PIN = 0 [20:55:34]*** Brake cut motor [20:55:34]Read from MH i2c: 01 [20:55:34]MH_I2C_Read... [20:55:34]*** Stop cut motor [20:55:34]*** Cut end [20:55:34]Read from MH i2c: 01 07 00 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: 01 07 00 BD 2E 00 00 00 00 00 FF 0F 00 [20:55:34]process_action close_receipt done [20:55:34]requested_data is exist [20:55:34]produce_requested_data [20:55:34]requested_item fm.sn is exist - process it [20:55:34]wFMCommunicate request_size=4 [20:55:34]MH_SAM_APDU [20:55:34]CAPDU: 80 11 00 00 [20:55:34]Write to MH i2c: E2 08 00 BE 2E 80 11 00 00 00 00 00 00 66 [20:55:34]Write i2c OK [20:55:34]MH_I2C_Read... [20:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:55:34]Read from MH i2c: E2 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: E2 17 00 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: E2 17 00 BE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B7 [20:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:55:34]wFMCommunicate OK [20:55:34]requested_item fd.num is exist - process it [20:55:34]SAM_PROTO_GetFieldsCounters [20:55:34]wFMCommunicate request_size=4 [20:55:34]MH_SAM_APDU [20:55:34]CAPDU: 80 13 00 00 [20:55:34]Write to MH i2c: E2 08 00 BF 2E 80 13 00 00 00 00 00 00 69 [20:55:34]Write i2c OK [20:55:34]MH_I2C_Read... [20:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:55:34]Read from MH i2c: E2 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: E2 62 00 [20:55:34]MH_I2C_Read... [20:55:34]Read from MH i2c: E2 62 00 BF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 D2 [20:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:55:35]wFMCommunicate OK [20:55:35]SAM_PROTO_GetFieldsCounters done [20:55:35]requested_item shift.num is exist - process it [20:55:35]requested_item shift.opened is exist - process it [20:55:35]req_shift_opened [20:55:35]FM_GetShiftState [20:55:35]SAM_PROTO_GetShiftState [20:55:35]wFMCommunicate request_size=4 [20:55:35]MH_SAM_APDU [20:55:35]CAPDU: 80 13 01 00 [20:55:35]Write to MH i2c: E2 08 00 C0 2E 80 13 01 00 00 00 00 00 6B [20:55:35]Write i2c OK [20:55:35]MH_I2C_Read... [20:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:55:35]Read from MH i2c: E2 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: E2 0E 00 [20:55:35]MH_I2C_Read... [20:55:35]Read from MH i2c: E2 0E 00 C0 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 03 [20:55:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:55:35]wFMCommunicate OK [20:55:35]SAM_PROTO_GetShiftState done [20:55:35]FM_GetShiftState done [20:55:35]req_shift_opened done [20:55:35]requested_item shift.open_date is exist - process it [20:55:35]req_shift_open_date [20:55:35]req_shift_open_date done [20:55:35]produce_requested_data done [20:55:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112438,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:55:35]process_action_free close_receipt [20:55:35]json_value_free [20:55:35]json_value_free done [20:55:35]process_json_proto returns [20:55:35]Send response to host [20:55:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112438,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:55:35]free response buf [20:55:35]execute_script done [20:55:35]execute_script returns [20:55:35]free content buf [20:55:35]Sock 9.Close socket [20:55:35]Sock 9.Thread stoped [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:07]accept exits with 8 [20:58:07]New connection [20:58:07]New thread 3066682724 created [20:58:07]Thread 3066826084 joined [20:58:07]Waiting for new connection... [20:58:07] Sock 8.Parse request [20:58:07]Sock 8.Check first char [20:58:07]Sock 8.First char is OK [20:58:07]request: POST /json_proto HTTP/1.0 [20:58:07]Method: POST [20:58:07]URL: /json_proto [20:58:07]Method is POST - this is cgi request [20:58:07]url: /json_proto [20:58:07]query_string will be loaded in cgi processing [20:58:07]execute_cgi json_proto POST (null) [20:58:07]execute_cgi path=json_proto method=POST [20:58:07]POST find Content-Length [20:58:07]Host: 172.17.96.197:8080 [20:58:07]Content-Length: 1169 [20:58:07]Content-Type: application/json [20:58:07] [20:58:07]POST finish read [20:58:07]Found Content-Length = 1169 [20:58: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48734\u000A14.04.2024 20:37\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3858871:3858924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:07]execute_script... [20:58: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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48734\u000A14.04.2024 20:37\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 : 2710124130\u000A\u0410\u0438-92-\u041A-5\u000A 20.000 x 64.30\u000A\u0418\u0422\u041E\u0413: 1286.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u0430\u043B\u043E\u043D\u044B\u000A3858871:3858924\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:07]POST & json_proto [20:58:07]process_json_proto [20:58:07]json parsed OK: [20:58:07]protocol is kg_v1.0 [20:58:07]action value=print_text [20:58:07]process_action print_text [20:58:07]cmd_print_text [20:58:07]ExternCall_PrintAddStr [20:58:07]wPrintStart [20:58:07]Write to MH i2c: 01 00 00 C1 2E EF [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 C1 2E 00 00 00 00 00 FF 0F 04 [20:58:07]RasterBufferAndPrint [20:58:07]line *****ТОВАРНЫЙ ЧЕК***** [20:58:07]line АЗС 47 [20:58:07]line Партнер нефть [20:58:07]line 02508201610067 [20:58:07]line Кассир : Таалайбек к. П. [20:58:07]line Счет N : (1)48734 [20:58:07]line 14.04.2024 20:37 [20:58:07]line ПРОДАЖА [20:58:07]line ТРК (МРК, ГНК): 21 [20:58:07]line Вид ГСМ : 2710124130 [20:58:07]line Аи-92-К-5 [20:58:07]line 20.000 x 64.30 [20:58:07]line ИТОГ: 1286.00 [20:58:07]line Тип оплаты: Талоны: Талоны [20:58:07]line 3858871:3858924 [20:58:07]line ______________________ [20:58:07]line (подпись) [20:58:07]written 0, free lines is 4095 [20:58:07]Write to MH i2c: 01 00 00 D5 2E 03 [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: 01 07 00 D5 2E 00 00 00 00 00 13 0E 2B [20:58:07]RasterBufferAndPrint [20:58:07]line [20:58:07]line [20:58:07]line [20:58:07]line [20:58:07]line [20:58:07]written 0, free lines is 3604 [20:58:07]MH_Cut [20:58:07]Write to MH i2c: D1 01 00 DC 2E 01 DC [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: D1 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: D1 01 00 [20:58:07]MH_I2C_Read... [20:58:07]Read from MH i2c: D1 01 00 DC 2E 00 DB [20:58:07]Write to MH i2c: 01 00 00 DD 2E 0B [20:58:07]Write i2c OK [20:58:07]MH_I2C_Read... [20:58:08]*** Cut start [20:58:08]*** Partial cut [20:58:08]*** CUTSNS_PIN = 1 [20:58:08]*** CUTSNS_PIN = 0 [20:58:08]*** Brake cut motor [20:58:08]Read from MH i2c: 01 [20:58:08]MH_I2C_Read... [20:58:08]*** Stop cut motor [20:58:08]*** Cut end [20:58:08]Read from MH i2c: 01 07 00 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: 01 07 00 DD 2E 00 00 00 00 00 FF 0F 20 [20:58:08]process_action print_text done [20:58:08]requested_data is exist [20:58:08]produce_requested_data [20:58:08]requested_item fm.sn is exist - process it [20:58:08]wFMCommunicate request_size=4 [20:58:08]MH_SAM_APDU [20:58:08]CAPDU: 80 11 00 00 [20:58:08]Write to MH i2c: E2 08 00 DE 2E 80 11 00 00 00 00 00 00 86 [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:08]Read from MH i2c: E2 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: E2 17 00 [20:58:08]MH_I2C_Read... [20:58:08]Read from MH i2c: E2 17 00 DE 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D7 [20:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [20:58:08]wFMCommunicate OK [20:58:08]requested_item fd.num is exist - process it [20:58:08]SAM_PROTO_GetFieldsCounters [20:58:08]wFMCommunicate request_size=4 [20:58:08]MH_SAM_APDU [20:58:08]CAPDU: 80 13 00 00 [20:58:08]Write to MH i2c: E2 08 00 DF 2E 80 13 00 00 00 00 00 00 89 [20:58:08]Write i2c OK [20:58:08]MH_I2C_Read... [20:58:09]OFD Sender: No OFD packet to send [20:58:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 62 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 62 00 DF 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 F2 [20:58:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 36 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:58:09]wFMCommunicate OK [20:58:09]SAM_PROTO_GetFieldsCounters done [20:58:09]requested_item shift.num is exist - process it [20:58:09]requested_item shift.opened is exist - process it [20:58:09]req_shift_opened [20:58:09]FM_GetShiftState [20:58:09]SAM_PROTO_GetShiftState [20:58:09]wFMCommunicate request_size=4 [20:58:09]MH_SAM_APDU [20:58:09]CAPDU: 80 13 01 00 [20:58:09]Write to MH i2c: E2 08 00 E0 2E 80 13 01 00 00 00 00 00 8B [20:58:09]Write i2c OK [20:58:09]MH_I2C_Read... [20:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:09]Read from MH i2c: E2 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 [20:58:09]MH_I2C_Read... [20:58:09]Read from MH i2c: E2 0E 00 E0 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 23 [20:58:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [20:58:09]wFMCommunicate OK [20:58:09]SAM_PROTO_GetShiftState done [20:58:09]FM_GetShiftState done [20:58:09]req_shift_opened done [20:58:09]requested_item shift.open_date is exist - process it [20:58:09]req_shift_open_date [20:58:09]req_shift_open_date done [20:58:09]produce_requested_data done [20:58:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112438,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [20:58:09]process_action_free print_text [20:58:09]json_value_free [20:58:09]json_value_free done [20:58:09]process_json_proto returns [20:58:09]Send response to host [20:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112438,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [20:58:09]free response buf [20:58:09]execute_script done [20:58:09]execute_script returns [20:58:09]free content buf [20:58:09]Sock 8.Close socket [20:58:09]Sock 8.Thread stoped [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]accept exits with 9 [21:06:09]New connection [21:06:09]New thread 3066826084 created [21:06:09]Thread 3066682724 joined [21:06:09]Waiting for new connection... [21:06:09] Sock 9.Parse request [21:06:09]Sock 9.Check first char [21:06:09]Sock 9.First char is OK [21:06:09]request: POST /json_proto HTTP/1.0 [21:06:09]Method: POST [21:06:09]URL: /json_proto [21:06:09]Method is POST - this is cgi request [21:06:09]url: /json_proto [21:06:09]query_string will be loaded in cgi processing [21:06:09]execute_cgi json_proto POST (null) [21:06:09]execute_cgi path=json_proto method=POST [21:06:09]POST find Content-Length [21:06:09]Host: 172.17.96.197:8080 [21:06:09]Content-Length: 809 [21:06:09]Content-Type: application/json [21:06:09] [21:06:09]POST finish read [21:06:09]Found Content-Length = 809 [21:06:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48735", "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.30, "quantity" : 10.720, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:09]execute_script... [21:06: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)48735", "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.30, "quantity" : 10.720, "sum" : 700.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:09]POST & json_proto [21:06:09]process_json_proto [21:06:09]json parsed OK: [21:06:09]protocol is kg_v1.0 [21:06:09]action value=close_receipt [21:06:09]process_action close_receipt [21:06:09]cmd_close_receipt [21:06:09]MH_GetDate [21:06:09]Write to MH i2c: F0 00 00 E1 2E FE [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 09 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: F0 09 00 E1 2E 00 43 45 1C 66 E0 85 7F 64 59 [21:06:09]GetLastDocTimeStamp 1713128132 [21:06:09]current date 1713128771 [21:06:09]FM_GetShiftState [21:06:09]SAM_PROTO_GetShiftState [21:06:09]wFMCommunicate request_size=4 [21:06:09]MH_SAM_APDU [21:06:09]CAPDU: 80 13 01 00 [21:06:09]Write to MH i2c: E2 08 00 E2 2E 80 13 01 00 00 00 00 00 8D [21:06:09]Write i2c OK [21:06:09]MH_I2C_Read... [21:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:09]Read from MH i2c: E2 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0E 00 [21:06:09]MH_I2C_Read... [21:06:09]Read from MH i2c: E2 0E 00 E2 2E 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 25 [21:06:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:06:09]wFMCommunicate OK [21:06:09]SAM_PROTO_GetShiftState done [21:06:09]FM_GetShiftState done [21:06:09]opened in 1713054696 [21:06:09]opened+sec_in_day 1713141096 [21:06:09]quantity*price = 70001 [21:06:09]sum+1 = 70003 [21:06:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.02 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 0.00 Безнал.: 700.02 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 338 14.04.2024 21:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112439 ФПД: 154572800456871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T210611&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112439&fm=154572800456871&tin=02508201610067®Number=0000000000094237&sum=70002 [21:06:10]StoreToDocumentArchive [21:06:10]shift 357 fd 112439 [21:06:10]save to /storage/0357/doc_00112439 [21:06:10]save last doc name /storage/0357/doc_00112439 to /storage/kkm_last_doc_name [21:06:10]save OK [21:06:10]Clear old archive folders... [21:06:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:06:10]tlvbuf is 001C9460 [21:06:10]SAM_PROTO_ClearQueue [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 09 00 00 [21:06:10]Write to MH i2c: E2 08 00 EF 2E 80 09 00 00 00 00 00 00 8F [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 EF 2E 00 90 00 91 [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]SAM_PROTO_ClearQueue done [21:06:10]KKMCreateOFDPacket [21:06:10]OFDProtocolAddRootSTLVToBuf [21:06:10]FM_MakeSignedData [21:06:10]FM_MakeSignedData [21:06:10]SAM_PROTO_SignData [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 0D 01 02 [21:06:10]Write to MH i2c: E2 08 00 F0 2E 80 0D 01 02 00 00 00 00 97 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 F0 2E 00 90 00 92 [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]wFMCommunicate request_size=255 [21:06:10]MH_SAM_APDU [21:06:10]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 43 45 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B7 01 00 35 04 06 00 [21:06:10]Write to MH i2c: E2 02 01 F1 2E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 43 45 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B7 01 00 35 04 06 00 00 00 B2 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 F1 2E 00 90 00 93 [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]wFMCommunicate request_size=11 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 0D 02 02 06 8C 95 48 DC F8 A7 [21:06:10]Write to MH i2c: E2 0E 00 F2 2E 80 0D 02 02 06 00 8C 95 48 DC F8 A7 00 00 8A [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 03 00 F2 2E 00 90 00 94 [21:06:10]RAPDU: 90 00 [21:06:10]wFMCommunicate OK [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 0D 03 02 [21:06:10]Write to MH i2c: E2 08 00 F3 2E 80 0D 03 02 00 00 00 00 9C [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 0B 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 0B 00 F3 2E 00 AA 32 84 FE AF E2 8B 9F 90 00 B6 [21:06:10]RAPDU: AA 32 84 FE AF E2 8B 9F 90 00 [21:06:10]wFMCommunicate OK [21:06:10]SAM_PROTO_SignData done [21:06:10]FM_MakeSignedData done [21:06:10]CreateOFDProtocolMessage [21:06:10]wFMCommunicate request_size=4 [21:06:10]MH_SAM_APDU [21:06:10]CAPDU: 80 11 00 00 [21:06:10]Write to MH i2c: E2 08 00 F4 2E 80 11 00 00 00 00 00 00 9C [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:10]Read from MH i2c: E2 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 17 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: E2 17 00 F4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [21:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:06:10]wFMCommunicate OK [21:06:10]CreateOFDProtocolMessage done [21:06:10]OFDSenderStorePacket 112439 [21:06:10]StoreOFDPacket docnum=112439 [21:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E4 E2 08 01 D5 A5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 43 45 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B7 01 00 35 04 06 00 8C 95 48 DC F8 A7 AA 32 84 FE AF E2 8B 9F [21:06:10]CheckFolder [21:06:10]dirname=/storage/ofd_packets [21:06:10]CheckFolder done [21:06:10]ProducePacketName [21:06:10]name=ofd_packets/00112439 [21:06:10]NVStorageSaveData ofd_packets/00112439 [21:06:10]File name is /storage/ofd_packets/00112439 [21:06:10]Write 302 bytes [21:06:10]NVStorageSaveData done [21:06:10]OFDSenderStorePacket done [21:06:10]KKMCreateOFDPacket done [21:06:10]NVStorageSaveData kkm_last_timestamp [21:06:10]File name is /storage/kkm_last_timestamp [21:06:10]Write 4 bytes [21:06:10]NVStorageSaveData done [21:06:10]ExternCall_PrintAddStr [21:06:10]wPrintStart [21:06:10]Write to MH i2c: 01 00 00 F5 2E 23 [21:06:10]Write i2c OK [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 [21:06:10]MH_I2C_Read... [21:06:10]Read from MH i2c: 01 07 00 F5 2E 00 00 00 00 00 FF 0F 38 [21:06:10]RasterBufferAndPrint [21:06:10]line Счет N : (1)48735 [21:06:10]line ИНН: 02508201610067 [21:06:10]line Контрольно-Кассовый Чек [21:06:10]line ПРОДАЖА [21:06:10]line ТРК (МРК, ГНК) : 41 [21:06:10]line Товар: 2710124130 [21:06:10]line SUPER 92-К-5 [21:06:10]line 10.720 * 65.30 [21:06:10]line = 700.02 [21:06:10]line НДС 12% НСП 1% [21:06:10]line > о реализуемом товаре [21:06:10]line ИТОГО: 700.02 [21:06:10]line НСП 1% : 6.19 [21:06:10]line НДС 12% : 74.34 [21:06:10]line Наличными: 0.00 [21:06:10]line Безнал.: 700.02 [21:06:10]line Место: АЗС № 47 "Партнер Нефть" [21:06:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:06:10]line СНО: Общий режим [21:06:10]line Чек 338 14.04.2024 21:06 [21:06:10]line Смена: 357 ФФД: 1.0 [21:06:10]line ЗНМ: 0300000138 [21:06:10]line РНМ: 0000000000094237 [21:06:10]line Версия ККМ: 001 [21:06:10]line Платежная система: Бакай Банк [21:06:10]line ФМ: 0000000000875019 [21:06:10]line ФД: 112439 [21:06:10]line ФПД: 154572800456871 [21:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T210611&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112439&fm=154572800456871&tin=02508201610067®Number=0000000000094237&sum=70002 [21:06:11]OFD Sender: Processing packet 112439 [packets to send 71, broken 70] [21:06:11]ProducePacketName [21:06:11]name=ofd_packets/00112439 [21:06:11]OFD Sender: To server: pG, [21:06:11]CommunicateWithHost lk.salyk.kg:30040 [21:06:11]ConnectInit lk.salyk.kg [21:06:11]written 0, free lines is 4095 [21:06:11]Connected sock=10 [21:06:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 E4 E2 08 01 D5 A5 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 72 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 72 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 43 45 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B7 01 00 35 04 06 00 8C 95 48 DC F8 A7 AA 32 84 FE AF E2 8B 9F [21:06:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 60 B9 47 00 EA FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 37 B7 01 00 F4 03 04 00 CD EC 1B 66 B6 04 01 00 00 D1 48 1F 5B 57 1C B6 51 [21:06:11]CommunicateWithHost err = 0 [21:06:11]CheckOFDResponse [21:06:11]1017 (14) - 77093643461234 [21:06:11]1041 (16) - 0000000000875019 [21:06:11]1040 (4) - 112439 [21:06:11]1012 (4) - 14.04.2024 14:48 [21:06:11]1206 (1) - 0 [21:06:11]OFD Sender: Remove packet 112439 [21:06:11]ProducePacketName [21:06:11]name=ofd_packets/00112439 [21:06:11]NVStorageDeleteData [21:06:11]Write to MH i2c: 01 00 00 1F 2F 4E [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 07 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: 01 07 00 1F 2F 00 00 00 00 00 00 0D 62 [21:06:11]RasterBufferAndPrint [21:06:11]line [21:06:11]line [21:06:11]line [21:06:11]line [21:06:11]line [21:06:11]written 0, free lines is 3336 [21:06:11]MH_Cut [21:06:11]Write to MH i2c: D1 01 00 26 2F 01 27 [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: D1 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: D1 01 00 [21:06:11]MH_I2C_Read... [21:06:11]Read from MH i2c: D1 01 00 26 2F 00 26 [21:06:11]Write to MH i2c: 01 00 00 27 2F 56 [21:06:11]Write i2c OK [21:06:11]MH_I2C_Read... [21:06:12]OFD Sender: No OFD packet to send [21:06:12]*** Cut start [21:06:12]*** Partial cut [21:06:12]*** CUTSNS_PIN = 1 [21:06:12]*** CUTSNS_PIN = 0 [21:06:12]*** Brake cut motor [21:06:13]Read from MH i2c: 01 [21:06:13]MH_I2C_Read... [21:06:13]*** Stop cut motor [21:06:13]*** Cut end [21:06:13]Read from MH i2c: 01 07 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: 01 07 00 27 2F 00 00 00 00 00 FF 0F 6B [21:06:13]process_action close_receipt done [21:06:13]requested_data is exist [21:06:13]produce_requested_data [21:06:13]requested_item fm.sn is exist - process it [21:06:13]wFMCommunicate request_size=4 [21:06:13]MH_SAM_APDU [21:06:13]CAPDU: 80 11 00 00 [21:06:13]Write to MH i2c: E2 08 00 28 2F 80 11 00 00 00 00 00 00 D1 [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:13]Read from MH i2c: E2 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 17 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 17 00 28 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 22 [21:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:06:13]wFMCommunicate OK [21:06:13]requested_item fd.num is exist - process it [21:06:13]SAM_PROTO_GetFieldsCounters [21:06:13]wFMCommunicate request_size=4 [21:06:13]MH_SAM_APDU [21:06:13]CAPDU: 80 13 00 00 [21:06:13]Write to MH i2c: E2 08 00 29 2F 80 13 00 00 00 00 00 00 D4 [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:13]Read from MH i2c: E2 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 62 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 62 00 29 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 37 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 41 [21:06:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 37 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:06:13]wFMCommunicate OK [21:06:13]SAM_PROTO_GetFieldsCounters done [21:06:13]requested_item shift.num is exist - process it [21:06:13]requested_item shift.opened is exist - process it [21:06:13]req_shift_opened [21:06:13]FM_GetShiftState [21:06:13]SAM_PROTO_GetShiftState [21:06:13]wFMCommunicate request_size=4 [21:06:13]MH_SAM_APDU [21:06:13]CAPDU: 80 13 01 00 [21:06:13]Write to MH i2c: E2 08 00 2A 2F 80 13 01 00 00 00 00 00 D6 [21:06:13]Write i2c OK [21:06:13]MH_I2C_Read... [21:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:13]Read from MH i2c: E2 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 0E 00 [21:06:13]MH_I2C_Read... [21:06:13]Read from MH i2c: E2 0E 00 2A 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6E [21:06:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:06:13]wFMCommunicate OK [21:06:13]SAM_PROTO_GetShiftState done [21:06:13]FM_GetShiftState done [21:06:13]req_shift_opened done [21:06:13]requested_item shift.open_date is exist - process it [21:06:13]req_shift_open_date [21:06:13]req_shift_open_date done [21:06:13]produce_requested_data done [21:06:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112439,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:06:13]process_action_free close_receipt [21:06:13]json_value_free [21:06:13]json_value_free done [21:06:13]process_json_proto returns [21:06:13]Send response to host [21:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112439,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:06:13]free response buf [21:06:13]execute_script done [21:06:13]execute_script returns [21:06:13]free content buf [21:06:13]Sock 9.Close socket [21:06:13]Sock 9.Thread stoped [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]OFD Sender: No OFD packet to send [21:06:37]OFD Sender: No OFD packet to send [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:35]accept exits with 8 [21:10:35]New connection [21:10:35]New thread 3066682724 created [21:10:35]Thread 3066826084 joined [21:10:35]Waiting for new connection... [21:10:35] Sock 8.Parse request [21:10:35]Sock 8.Check first char [21:10:35]Sock 8.First char is OK [21:10:35]request: POST /json_proto HTTP/1.0 [21:10:35]Method: POST [21:10:35]URL: /json_proto [21:10:35]Method is POST - this is cgi request [21:10:35]url: /json_proto [21:10:35]query_string will be loaded in cgi processing [21:10:35]execute_cgi json_proto POST (null) [21:10:35]execute_cgi path=json_proto method=POST [21:10:35]POST find Content-Length [21:10:35]Host: 172.17.96.197:8080 [21:10:35]Content-Length: 619 [21:10:35]Content-Type: application/json [21:10:35] [21:10:35]POST finish read [21:10:35]Found Content-Length = 619 [21:10:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10448", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:35]execute_script... [21:10:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10448", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:10:35]POST & json_proto [21:10:35]process_json_proto [21:10:35]json parsed OK: [21:10:35]protocol is kg_v1.0 [21:10:35]action value=close_receipt [21:10:35]process_action close_receipt [21:10:35]cmd_close_receipt [21:10:35]MH_GetDate [21:10:35]Write to MH i2c: F0 00 00 2B 2F 49 [21:10:35]Write i2c OK [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: F0 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: F0 09 00 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: F0 09 00 2B 2F 00 4D 46 1C 66 E0 85 7F 64 AF [21:10:35]GetLastDocTimeStamp 1713128771 [21:10:35]current date 1713129037 [21:10:35]FM_GetShiftState [21:10:35]SAM_PROTO_GetShiftState [21:10:35]wFMCommunicate request_size=4 [21:10:35]MH_SAM_APDU [21:10:35]CAPDU: 80 13 01 00 [21:10:35]Write to MH i2c: E2 08 00 2C 2F 80 13 01 00 00 00 00 00 D8 [21:10:35]Write i2c OK [21:10:35]MH_I2C_Read... [21:10:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:35]Read from MH i2c: E2 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: E2 0E 00 [21:10:35]MH_I2C_Read... [21:10:35]Read from MH i2c: E2 0E 00 2C 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 70 [21:10:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:10:35]wFMCommunicate OK [21:10:35]SAM_PROTO_GetShiftState done [21:10:35]FM_GetShiftState done [21:10:35]opened in 1713054696 [21:10:35]opened+sec_in_day 1713141096 [21:10:35]quantity*price = 13000 [21:10:35]sum+1 = 13001 [21:10:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 339 14.04.2024 21:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112440 ФПД: 182646221914684 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211037&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112440&fm=182646221914684&tin=02508201610067®Number=0000000000094237&sum=13000 0 [21:10:37]StoreToDocumentArchive [21:10:37]shift 357 fd 112440 [21:10:37]save to /storage/0357/doc_00112440 [21:10:37]save last doc name /storage/0357/doc_00112440 to /storage/kkm_last_doc_name [21:10:37]save OK [21:10:37]Clear old archive folders... [21:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=272 [21:10:37]tlvbuf is B6EBBAD0 [21:10:37]SAM_PROTO_ClearQueue [21:10:37]wFMCommunicate request_size=4 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 09 00 00 [21:10:37]Write to MH i2c: E2 08 00 39 2F 80 09 00 00 00 00 00 00 DA [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 39 2F 00 90 00 DC [21:10:37]RAPDU: 90 00 [21:10:37]wFMCommunicate OK [21:10:37]SAM_PROTO_ClearQueue done [21:10:37]KKMCreateOFDPacket [21:10:37]OFDProtocolAddRootSTLVToBuf [21:10:37]FM_MakeSignedData [21:10:37]FM_MakeSignedData [21:10:37]SAM_PROTO_SignData [21:10:37]wFMCommunicate request_size=4 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 0D 01 02 [21:10:37]Write to MH i2c: E2 08 00 3A 2F 80 0D 01 02 00 00 00 00 E2 [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 3A 2F 00 90 00 DD [21:10:37]RAPDU: 90 00 [21:10:37]wFMCommunicate OK [21:10:37]wFMCommunicate request_size=255 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4D 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [21:10:37]Write to MH i2c: E2 02 01 3B 2F 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4D 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 5A [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 3B 2F 00 90 00 DE [21:10:37]RAPDU: 90 00 [21:10:37]wFMCommunicate OK [21:10:37]wFMCommunicate request_size=31 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 38 B7 01 00 35 04 06 00 A6 1D A3 2D 42 3C [21:10:37]Write to MH i2c: E2 22 00 3C 2F 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 38 B7 01 00 35 04 06 00 A6 1D A3 2D 42 3C 00 00 0F [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 03 00 3C 2F 00 90 00 DF [21:10:37]RAPDU: 90 00 [21:10:37]wFMCommunicate OK [21:10:37]wFMCommunicate request_size=4 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 0D 03 02 [21:10:37]Write to MH i2c: E2 08 00 3D 2F 80 0D 03 02 00 00 00 00 E7 [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]OFD Sender: No OFD packet to send [21:10:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 0B 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 0B 00 3D 2F 00 66 74 F8 A6 A8 D2 FF 5A 90 00 33 [21:10:37]RAPDU: 66 74 F8 A6 A8 D2 FF 5A 90 00 [21:10:37]wFMCommunicate OK [21:10:37]SAM_PROTO_SignData done [21:10:37]FM_MakeSignedData done [21:10:37]CreateOFDProtocolMessage [21:10:37]wFMCommunicate request_size=4 [21:10:37]MH_SAM_APDU [21:10:37]CAPDU: 80 11 00 00 [21:10:37]Write to MH i2c: E2 08 00 3E 2F 80 11 00 00 00 00 00 00 E7 [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:37]Read from MH i2c: E2 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 17 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: E2 17 00 3E 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 38 [21:10:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:10:37]wFMCommunicate OK [21:10:37]CreateOFDProtocolMessage done [21:10:37]OFDSenderStorePacket 112440 [21:10:37]StoreOFDPacket docnum=112440 [21:10:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 C1 E2 1C 01 28 2E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4D 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B7 01 00 35 04 06 00 A6 1D A3 2D 42 3C 66 74 F8 A6 A8 D2 FF 5A [21:10:37]CheckFolder [21:10:37]dirname=/storage/ofd_packets [21:10:37]CheckFolder done [21:10:37]ProducePacketName [21:10:37]name=ofd_packets/00112440 [21:10:37]NVStorageSaveData ofd_packets/00112440 [21:10:37]File name is /storage/ofd_packets/00112440 [21:10:37]Write 322 bytes [21:10:37]NVStorageSaveData done [21:10:37]OFDSenderStorePacket done [21:10:37]KKMCreateOFDPacket done [21:10:37]NVStorageSaveData kkm_last_timestamp [21:10:37]File name is /storage/kkm_last_timestamp [21:10:37]Write 4 bytes [21:10:37]NVStorageSaveData done [21:10:37]ExternCall_PrintAddStr [21:10:37]wPrintStart [21:10:37]Write to MH i2c: 01 00 00 3F 2F 6E [21:10:37]Write i2c OK [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: 01 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: 01 07 00 [21:10:37]MH_I2C_Read... [21:10:37]Read from MH i2c: 01 07 00 3F 2F 00 00 00 00 00 FF 0F 83 [21:10:37]RasterBufferAndPrint [21:10:37]line Счет N : (3)10448 [21:10:37]line ИНН: 02508201610067 [21:10:37]line Контрольно-Кассовый Чек [21:10:37]line ПРОДАЖА [21:10:37]line Товар: 48745000 [21:10:37]line Сигареты Winston Purple Mix [21:10:37]line 1.000 * 130.00 [21:10:37]line = 130.00 [21:10:37]line НДС 12% НСП 1% [21:10:37]line > о реализуемом товаре [21:10:37]line ИТОГО: 130.00 [21:10:37]line НСП 1% : 1.15 [21:10:37]line НДС 12% : 13.80 [21:10:37]line Наличными: 130.00 [21:10:37]line Безнал.: 0.00 [21:10:37]line Место: АЗС № 47 "Партнер Нефть" [21:10:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:10:37]line СНО: Общий режим [21:10:37]line Чек 339 14.04.2024 21:10 [21:10:37]line Смена: 357 ФФД: 1.0 [21:10:37]line ЗНМ: 0300000138 [21:10:37]line РНМ: 0000000000094237 [21:10:37]line Версия ККМ: 001 [21:10:37]line ФМ: 0000000000875019 [21:10:37]line ФД: 112440 [21:10:37]line ФПД: 182646221914684 [21:10:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211037&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112440&fm=182646221914684&tin=02508201610067®Number=0000000000094237&sum=13000 [21:10:37]line 0 [21:10:37]OFD Sender: Processing packet 112440 [packets to send 71, broken 70] [21:10:37]ProducePacketName [21:10:37]name=ofd_packets/00112440 [21:10:37]OFD Sender: To server: pG, [21:10:37]CommunicateWithHost lk.salyk.kg:30040 [21:10:37]ConnectInit lk.salyk.kg [21:10:37]written 0, free lines is 4095 [21:10:38]Connected sock=10 [21:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 C1 E2 1C 01 28 2E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 01 00 00 F4 03 04 00 4D 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B7 01 00 35 04 06 00 A6 1D A3 2D 42 3C 66 74 F8 A6 A8 D2 FF 5A [21:10:38]Write to MH i2c: 01 00 00 67 2F 96 [21:10:38]Write i2c OK [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: 01 [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: 01 07 00 [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: 01 07 00 67 2F 00 00 00 00 00 06 0D B0 [21:10:38]RasterBufferAndPrint [21:10:38]line [21:10:38]line [21:10:38]line [21:10:38]line [21:10:38]line [21:10:38]written 0, free lines is 3343 [21:10:38]MH_Cut [21:10:38]Write to MH i2c: D1 01 00 6E 2F 01 6F [21:10:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7B AE 47 00 7E A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 38 B7 01 00 F4 03 04 00 D8 ED 1B 66 B6 04 01 00 00 32 D7 1F 85 80 4A FD B0 [21:10:38]CommunicateWithHost err = 0 [21:10:38]CheckOFDResponse [21:10:38]1017 (14) - 77093643461234 [21:10:38]1041 (16) - 0000000000875019 [21:10:38]1040 (4) - 112440 [21:10:38]1012 (4) - 14.04.2024 14:53 [21:10:38]1206 (1) - 0 [21:10:38]OFD Sender: Remove packet 112440 [21:10:38]ProducePacketName [21:10:38]name=ofd_packets/00112440 [21:10:38]NVStorageDeleteData [21:10:38]Write i2c OK [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: D1 [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: D1 01 00 [21:10:38]MH_I2C_Read... [21:10:38]Read from MH i2c: D1 01 00 6E 2F 00 6E [21:10:38]Write to MH i2c: 01 00 00 6F 2F 9E [21:10:38]Write i2c OK [21:10:38]MH_I2C_Read... [21:10:38]OFD Sender: No OFD packet to send [21:10:39]*** Cut start [21:10:39]*** Partial cut [21:10:39]*** CUTSNS_PIN = 1 [21:10:39]*** CUTSNS_PIN = 0 [21:10:39]*** Brake cut motor [21:10:39]Read from MH i2c: 01 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: 01 07 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: 01 07 00 6F 2F 00 00 00 00 00 FF 0F B3 [21:10:39]process_action close_receipt done [21:10:39]requested_data is exist [21:10:39]produce_requested_data [21:10:39]requested_item fm.sn is exist - process it [21:10:39]wFMCommunicate request_size=4 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 11 00 00 [21:10:39]Write to MH i2c: E2 08 00 70 2F 80 11 00 00 00 00 00 00 19 [21:10:39]*** Stop cut motor [21:10:39]*** Cut end [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 17 00 70 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6A [21:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:10:39]wFMCommunicate OK [21:10:39]requested_item fd.num is exist - process it [21:10:39]SAM_PROTO_GetFieldsCounters [21:10:39]wFMCommunicate request_size=4 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 13 00 00 [21:10:39]Write to MH i2c: E2 08 00 71 2F 80 13 00 00 00 00 00 00 1C [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:10:39]Read from MH i2c: E2 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 62 00 [21:10:39]MH_I2C_Read... [21:10:39]Read from MH i2c: E2 62 00 71 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 38 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [21:10:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 38 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:10:39]wFMCommunicate OK [21:10:39]SAM_PROTO_GetFieldsCounters done [21:10:39]requested_item shift.num is exist - process it [21:10:39]requested_item shift.opened is exist - process it [21:10:39]req_shift_opened [21:10:39]FM_GetShiftState [21:10:39]SAM_PROTO_GetShiftState [21:10:39]wFMCommunicate request_size=4 [21:10:39]MH_SAM_APDU [21:10:39]CAPDU: 80 13 01 00 [21:10:39]Write to MH i2c: E2 08 00 72 2F 80 13 01 00 00 00 00 00 1E [21:10:39]Write i2c OK [21:10:39]MH_I2C_Read... [21:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:10:40]Read from MH i2c: E2 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 0E 00 [21:10:40]MH_I2C_Read... [21:10:40]Read from MH i2c: E2 0E 00 72 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B6 [21:10:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:10:40]wFMCommunicate OK [21:10:40]SAM_PROTO_GetShiftState done [21:10:40]FM_GetShiftState done [21:10:40]req_shift_opened done [21:10:40]requested_item shift.open_date is exist - process it [21:10:40]req_shift_open_date [21:10:40]req_shift_open_date done [21:10:40]produce_requested_data done [21:10:40]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112440,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:10:40]process_action_free close_receipt [21:10:40]json_value_free [21:10:40]json_value_free done [21:10:40]process_json_proto returns [21:10:40]Send response to host [21:10:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112440,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:10:40]free response buf [21:10:40]execute_script done [21:10:40]execute_script returns [21:10:40]free content buf [21:10:40]Sock 8.Close socket [21:10:40]Sock 8.Thread stoped [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:49]accept exits with 9 [21:11:49]New connection [21:11:49]New thread 3066826084 created [21:11:49]Thread 3066682724 joined [21:11:49]Waiting for new connection... [21:11:49] Sock 9.Parse request [21:11:49]Sock 9.Check first char [21:11:49]Sock 9.First char is OK [21:11:49]request: POST /json_proto HTTP/1.0 [21:11:49]Method: POST [21:11:49]URL: /json_proto [21:11:49]Method is POST - this is cgi request [21:11:49]url: /json_proto [21:11:49]query_string will be loaded in cgi processing [21:11:49]execute_cgi json_proto POST (null) [21:11:49]execute_cgi path=json_proto method=POST [21:11:49]POST find Content-Length [21:11:49]Host: 172.17.96.197:8080 [21:11:49]Content-Length: 812 [21:11:49]Content-Type: application/json [21:11:49] [21:11:49]POST finish read [21:11:49]Found Content-Length = 812 [21:11:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48736", "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.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:49]execute_script... [21:11:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48736", "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.40, "quantity" : 6.910, "sum" : 500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:11:49]POST & json_proto [21:11:49]process_json_proto [21:11:49]json parsed OK: [21:11:49]protocol is kg_v1.0 [21:11:49]action value=close_receipt [21:11:49]process_action close_receipt [21:11:49]cmd_close_receipt [21:11:49]MH_GetDate [21:11:49]Write to MH i2c: F0 00 00 73 2F 91 [21:11:49]Write i2c OK [21:11:49]MH_I2C_Read... [21:11:49]Read from MH i2c: F0 [21:11:49]MH_I2C_Read... [21:11:49]Read from MH i2c: F0 09 00 [21:11:49]MH_I2C_Read... [21:11:49]Read from MH i2c: F0 09 00 73 2F 00 97 46 1C 66 E0 85 7F 64 41 [21:11:49]GetLastDocTimeStamp 1713129037 [21:11:49]current date 1713129111 [21:11:49]FM_GetShiftState [21:11:49]SAM_PROTO_GetShiftState [21:11:49]wFMCommunicate request_size=4 [21:11:49]MH_SAM_APDU [21:11:49]CAPDU: 80 13 01 00 [21:11:49]Write to MH i2c: E2 08 00 74 2F 80 13 01 00 00 00 00 00 20 [21:11:49]Write i2c OK [21:11:49]MH_I2C_Read... [21:11:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:49]Read from MH i2c: E2 [21:11:49]MH_I2C_Read... [21:11:49]Read from MH i2c: E2 0E 00 [21:11:49]MH_I2C_Read... [21:11:49]Read from MH i2c: E2 0E 00 74 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B8 [21:11:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:11:49]wFMCommunicate OK [21:11:49]SAM_PROTO_GetShiftState done [21:11:49]FM_GetShiftState done [21:11:49]opened in 1713054696 [21:11:49]opened+sec_in_day 1713141096 [21:11:49]quantity*price = 50028 [21:11:49]sum+1 = 50029 [21:11:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.28 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.28 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 340 14.04.2024 21:11 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112441 ФПД: 273855677088278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211151&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112441&fm=273855677088278&tin=02508201610067®Number=0000000000094237&sum=50028 [21:11:50]StoreToDocumentArchive [21:11:50]shift 357 fd 112441 [21:11:50]save to /storage/0357/doc_00112441 [21:11:50]save last doc name /storage/0357/doc_00112441 to /storage/kkm_last_doc_name [21:11:50]save OK [21:11:50]Clear old archive folders... [21:11:50]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:11:50]tlvbuf is 00184300 [21:11:50]SAM_PROTO_ClearQueue [21:11:50]wFMCommunicate request_size=4 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 09 00 00 [21:11:50]Write to MH i2c: E2 08 00 81 2F 80 09 00 00 00 00 00 00 22 [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 81 2F 00 90 00 24 [21:11:50]RAPDU: 90 00 [21:11:50]wFMCommunicate OK [21:11:50]SAM_PROTO_ClearQueue done [21:11:50]KKMCreateOFDPacket [21:11:50]OFDProtocolAddRootSTLVToBuf [21:11:50]FM_MakeSignedData [21:11:50]FM_MakeSignedData [21:11:50]SAM_PROTO_SignData [21:11:50]wFMCommunicate request_size=4 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 0D 01 02 [21:11:50]Write to MH i2c: E2 08 00 82 2F 80 0D 01 02 00 00 00 00 2A [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 82 2F 00 90 00 25 [21:11:50]RAPDU: 90 00 [21:11:50]wFMCommunicate OK [21:11:50]wFMCommunicate request_size=255 [21:11:50]MH_SAM_APDU [21:11:50]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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 97 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B7 01 00 35 04 06 00 F9 11 FE 5A [21:11:50]Write to MH i2c: E2 02 01 83 2F 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 97 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B7 01 00 35 04 06 00 F9 11 FE 5A 00 00 8C [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:50]Read from MH i2c: E2 03 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 83 2F 00 90 00 26 [21:11:50]RAPDU: 90 00 [21:11:50]wFMCommunicate OK [21:11:50]wFMCommunicate request_size=7 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 0D 02 02 02 42 16 [21:11:50]Write to MH i2c: E2 0A 00 84 2F 80 0D 02 02 02 00 42 16 00 00 89 [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 03 00 84 2F 00 90 00 27 [21:11:50]RAPDU: 90 00 [21:11:50]wFMCommunicate OK [21:11:50]wFMCommunicate request_size=4 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 0D 03 02 [21:11:50]Write to MH i2c: E2 08 00 85 2F 80 0D 03 02 00 00 00 00 2F [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 0B 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 0B 00 85 2F 00 D3 77 20 C4 EA AE E5 8C 90 00 67 [21:11:50]RAPDU: D3 77 20 C4 EA AE E5 8C 90 00 [21:11:50]wFMCommunicate OK [21:11:50]SAM_PROTO_SignData done [21:11:50]FM_MakeSignedData done [21:11:50]CreateOFDProtocolMessage [21:11:50]wFMCommunicate request_size=4 [21:11:50]MH_SAM_APDU [21:11:50]CAPDU: 80 11 00 00 [21:11:50]Write to MH i2c: E2 08 00 86 2F 80 11 00 00 00 00 00 00 2F [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:50]Read from MH i2c: E2 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 17 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: E2 17 00 86 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 80 [21:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:11:50]wFMCommunicate OK [21:11:50]CreateOFDProtocolMessage done [21:11:50]OFDSenderStorePacket 112441 [21:11:50]StoreOFDPacket docnum=112441 [21:11:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 3E DE 04 01 CE 2E 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 97 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B7 01 00 35 04 06 00 F9 11 FE 5A 42 16 D3 77 20 C4 EA AE E5 8C [21:11:50]CheckFolder [21:11:50]dirname=/storage/ofd_packets [21:11:50]CheckFolder done [21:11:50]ProducePacketName [21:11:50]name=ofd_packets/00112441 [21:11:50]NVStorageSaveData ofd_packets/00112441 [21:11:50]File name is /storage/ofd_packets/00112441 [21:11:50]Write 298 bytes [21:11:50]NVStorageSaveData done [21:11:50]OFDSenderStorePacket done [21:11:50]KKMCreateOFDPacket done [21:11:50]NVStorageSaveData kkm_last_timestamp [21:11:50]File name is /storage/kkm_last_timestamp [21:11:50]Write 4 bytes [21:11:50]NVStorageSaveData done [21:11:50]ExternCall_PrintAddStr [21:11:50]wPrintStart [21:11:50]Write to MH i2c: 01 00 00 87 2F B6 [21:11:50]Write i2c OK [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: 01 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: 01 07 00 [21:11:50]MH_I2C_Read... [21:11:50]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 FF 0F CB [21:11:50]RasterBufferAndPrint [21:11:50]line Счет N : (1)48736 [21:11:50]line ИНН: 02508201610067 [21:11:50]line Контрольно-Кассовый Чек [21:11:50]line ПРОДАЖА [21:11:50]line ТРК (МРК, ГНК) : 51 [21:11:50]line Товар: 2710194210 [21:11:50]line ДТ-К-5 [21:11:50]line 6.910 * 72.40 [21:11:50]line = 500.28 [21:11:50]line НДС 12% НСП 1% [21:11:50]line > о реализуемом товаре [21:11:50]line ИТОГО: 500.28 [21:11:50]line НСП 1% : 4.43 [21:11:50]line НДС 12% : 53.13 [21:11:50]line Наличными: 0.00 [21:11:50]line Безнал.: 500.28 [21:11:50]line Место: АЗС № 47 "Партнер Нефть" [21:11:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:11:50]line СНО: Общий режим [21:11:50]line Чек 340 14.04.2024 21:11 [21:11:50]line Смена: 357 ФФД: 1.0 [21:11:50]line ЗНМ: 0300000138 [21:11:50]line РНМ: 0000000000094237 [21:11:50]line Версия ККМ: 001 [21:11:50]line Платежная система: Бакай Банк [21:11:50]line ФМ: 0000000000875019 [21:11:50]line ФД: 112441 [21:11:50]line ФПД: 273855677088278 [21:11:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211151&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112441&fm=273855677088278&tin=02508201610067®Number=0000000000094237&sum=50028 [21:11:51]OFD Sender: Processing packet 112441 [packets to send 71, broken 70] [21:11:51]ProducePacketName [21:11:51]name=ofd_packets/00112441 [21:11:51]OFD Sender: To server: pG, [21:11:51]CommunicateWithHost lk.salyk.kg:30040 [21:11:51]ConnectInit lk.salyk.kg [21:11:51]written 0, free lines is 4095 [21:11:51]Connected sock=10 [21:11:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 3E DE 04 01 CE 2E 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 FE 1A 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 6C C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 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 6C C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 97 46 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B7 01 00 35 04 06 00 F9 11 FE 5A 42 16 D3 77 20 C4 EA AE E5 8C [21:11:51]Write to MH i2c: 01 00 00 B1 2F E0 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: 01 07 00 B1 2F 00 00 00 00 00 F2 0C E5 [21:11:51]RasterBufferAndPrint [21:11:51]line [21:11:51]line [21:11:51]line [21:11:51]line [21:11:51]line [21:11:51]written 0, free lines is 3320 [21:11:51]MH_Cut [21:11:51]Write to MH i2c: D1 01 00 B8 2F 01 B9 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: D1 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: D1 01 00 [21:11:51]MH_I2C_Read... [21:11:51]Read from MH i2c: D1 01 00 B8 2F 00 B8 [21:11:51]Write to MH i2c: 01 00 00 B9 2F E8 [21:11:51]Write i2c OK [21:11:51]MH_I2C_Read... [21:11:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AC 19 47 00 0D 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 39 B7 01 00 F4 03 04 00 21 EE 1B 66 B6 04 01 00 00 E1 44 2B AE 99 33 D7 F1 [21:11:51]CommunicateWithHost err = 0 [21:11:51]CheckOFDResponse [21:11:51]1017 (14) - 77093643461234 [21:11:51]1041 (16) - 0000000000875019 [21:11:51]1040 (4) - 112441 [21:11:51]1012 (4) - 14.04.2024 14:54 [21:11:51]1206 (1) - 0 [21:11:51]OFD Sender: Remove packet 112441 [21:11:51]ProducePacketName [21:11:51]name=ofd_packets/00112441 [21:11:51]NVStorageDeleteData [21:11:52]OFD Sender: No OFD packet to send [21:11:52]*** Cut start [21:11:52]*** Partial cut [21:11:52]*** CUTSNS_PIN = 1 [21:11:52]*** CUTSNS_PIN = 0 [21:11:52]*** Brake cut motor [21:11:53]Read from MH i2c: 01 [21:11:53]MH_I2C_Read... [21:11:53]*** Stop cut motor [21:11:53]*** Cut end [21:11:53]Read from MH i2c: 01 07 00 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: 01 07 00 B9 2F 00 00 00 00 00 FF 0F FD [21:11:53]process_action close_receipt done [21:11:53]requested_data is exist [21:11:53]produce_requested_data [21:11:53]requested_item fm.sn is exist - process it [21:11:53]wFMCommunicate request_size=4 [21:11:53]MH_SAM_APDU [21:11:53]CAPDU: 80 11 00 00 [21:11:53]Write to MH i2c: E2 08 00 BA 2F 80 11 00 00 00 00 00 00 63 [21:11:53]Write i2c OK [21:11:53]MH_I2C_Read... [21:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:11:53]Read from MH i2c: E2 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 17 00 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 17 00 BA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B4 [21:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:11:53]wFMCommunicate OK [21:11:53]requested_item fd.num is exist - process it [21:11:53]SAM_PROTO_GetFieldsCounters [21:11:53]wFMCommunicate request_size=4 [21:11:53]MH_SAM_APDU [21:11:53]CAPDU: 80 13 00 00 [21:11:53]Write to MH i2c: E2 08 00 BB 2F 80 13 00 00 00 00 00 00 66 [21:11:53]Write i2c OK [21:11:53]MH_I2C_Read... [21:11:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:11:53]Read from MH i2c: E2 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 62 00 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 62 00 BB 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 39 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [21:11:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 39 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:11:53]wFMCommunicate OK [21:11:53]SAM_PROTO_GetFieldsCounters done [21:11:53]requested_item shift.num is exist - process it [21:11:53]requested_item shift.opened is exist - process it [21:11:53]req_shift_opened [21:11:53]FM_GetShiftState [21:11:53]SAM_PROTO_GetShiftState [21:11:53]wFMCommunicate request_size=4 [21:11:53]MH_SAM_APDU [21:11:53]CAPDU: 80 13 01 00 [21:11:53]Write to MH i2c: E2 08 00 BC 2F 80 13 01 00 00 00 00 00 68 [21:11:53]Write i2c OK [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 [21:11:53]MH_I2C_Read... [21:11:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:11:53]Read from MH i2c: E2 0E 00 [21:11:53]MH_I2C_Read... [21:11:53]Read from MH i2c: E2 0E 00 BC 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 00 [21:11:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:11:53]wFMCommunicate OK [21:11:53]SAM_PROTO_GetShiftState done [21:11:53]FM_GetShiftState done [21:11:53]req_shift_opened done [21:11:53]requested_item shift.open_date is exist - process it [21:11:53]req_shift_open_date [21:11:53]req_shift_open_date done [21:11:53]produce_requested_data done [21:11:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112441,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:11:53]process_action_free close_receipt [21:11:53]json_value_free [21:11:53]json_value_free done [21:11:53]process_json_proto returns [21:11:53]Send response to host [21:11:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112441,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:11:53]free response buf [21:11:53]execute_script done [21:11:53]execute_script returns [21:11:53]free content buf [21:11:53]Sock 9.Close socket [21:11:53]Sock 9.Thread stoped [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]OFD Sender: No OFD packet to send [21:12:47]OFD Sender: No OFD packet to send [21:12:52]OFD Sender: No OFD packet to send [21:12:57]OFD Sender: No OFD packet to send [21:13:02]OFD Sender: No OFD packet to send [21:13:07]OFD Sender: No OFD packet to send [21:13:12]OFD Sender: No OFD packet to send [21:13:17]OFD Sender: No OFD packet to send [21:13:22]OFD Sender: No OFD packet to send [21:13:27]OFD Sender: No OFD packet to send [21:13:32]OFD Sender: No OFD packet to send [21:13:37]OFD Sender: No OFD packet to send [21:13:42]OFD Sender: No OFD packet to send [21:13:47]OFD Sender: No OFD packet to send [21:13:52]OFD Sender: No OFD packet to send [21:13:57]OFD Sender: No OFD packet to send [21:14:02]OFD Sender: No OFD packet to send [21:14:07]OFD Sender: No OFD packet to send [21:14:12]OFD Sender: No OFD packet to send [21:14:17]OFD Sender: No OFD packet to send [21:14:22]OFD Sender: No OFD packet to send [21:14:27]OFD Sender: No OFD packet to send [21:14:32]OFD Sender: No OFD packet to send [21:14:37]OFD Sender: No OFD packet to send [21:14:42]OFD Sender: No OFD packet to send [21:14:47]OFD Sender: No OFD packet to send [21:14:52]OFD Sender: No OFD packet to send [21:14:57]OFD Sender: No OFD packet to send [21:15:02]OFD Sender: No OFD packet to send [21:15:07]OFD Sender: No OFD packet to send [21:15:12]OFD Sender: No OFD packet to send [21:15:17]OFD Sender: No OFD packet to send [21:15:22]OFD Sender: No OFD packet to send [21:15:27]OFD Sender: No OFD packet to send [21:15:32]OFD Sender: No OFD packet to send [21:15:37]OFD Sender: No OFD packet to send [21:15:42]OFD Sender: No OFD packet to send [21:15:47]OFD Sender: No OFD packet to send [21:15:52]OFD Sender: No OFD packet to send [21:15:57]OFD Sender: No OFD packet to send [21:16:02]OFD Sender: No OFD packet to send [21:16:07]OFD Sender: No OFD packet to send [21:16:12]OFD Sender: No OFD packet to send [21:16:17]OFD Sender: No OFD packet to send [21:16:22]OFD Sender: No OFD packet to send [21:16:27]OFD Sender: No OFD packet to send [21:16:32]OFD Sender: No OFD packet to send [21:16:37]OFD Sender: No OFD packet to send [21:16:38]accept exits with 8 [21:16:38]New connection [21:16:38]New thread 3066682724 created [21:16:38]Thread 3066826084 joined [21:16:38]Waiting for new connection... [21:16:38] Sock 8.Parse request [21:16:38]Sock 8.Check first char [21:16:38]Sock 8.First char is OK [21:16:38]request: POST /json_proto HTTP/1.0 [21:16:38]Method: POST [21:16:38]URL: /json_proto [21:16:38]Method is POST - this is cgi request [21:16:38]url: /json_proto [21:16:38]query_string will be loaded in cgi processing [21:16:38]execute_cgi json_proto POST (null) [21:16:38]execute_cgi path=json_proto method=POST [21:16:38]POST find Content-Length [21:16:38]Host: 172.17.96.197:8080 [21:16:38]Content-Length: 645 [21:16:38]Content-Type: application/json [21:16:38] [21:16:38]POST finish read [21:16:38]Found Content-Length = 645 [21:16:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10449", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:38]execute_script... [21:16:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10449", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:38]POST & json_proto [21:16:38]process_json_proto [21:16:38]json parsed OK: [21:16:38]protocol is kg_v1.0 [21:16:38]action value=close_receipt [21:16:38]process_action close_receipt [21:16:38]cmd_close_receipt [21:16:38]MH_GetDate [21:16:38]Write to MH i2c: F0 00 00 BD 2F DB [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 09 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: F0 09 00 BD 2F 00 B8 47 1C 66 E0 85 7F 64 AD [21:16:38]GetLastDocTimeStamp 1713129111 [21:16:38]current date 1713129400 [21:16:38]FM_GetShiftState [21:16:38]SAM_PROTO_GetShiftState [21:16:38]wFMCommunicate request_size=4 [21:16:38]MH_SAM_APDU [21:16:38]CAPDU: 80 13 01 00 [21:16:38]Write to MH i2c: E2 08 00 BE 2F 80 13 01 00 00 00 00 00 6A [21:16:38]Write i2c OK [21:16:38]MH_I2C_Read... [21:16:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:38]Read from MH i2c: E2 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 0E 00 [21:16:38]MH_I2C_Read... [21:16:38]Read from MH i2c: E2 0E 00 BE 2F 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 02 [21:16:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:38]wFMCommunicate OK [21:16:38]SAM_PROTO_GetShiftState done [21:16:38]FM_GetShiftState done [21:16:38]opened in 1713054696 [21:16:38]opened+sec_in_day 1713141096 [21:16:38]quantity*price = 13000 [21:16:38]sum+1 = 13001 [21:16:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 341 14.04.2024 21:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112442 ФПД: 174860397262244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211640&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112442&fm=174860397262244&tin=02508201610067®Number=0000000000094237&sum=13000 0 [21:16:39]StoreToDocumentArchive [21:16:39]shift 357 fd 112442 [21:16:39]save to /storage/0357/doc_00112442 [21:16:39]save last doc name /storage/0357/doc_00112442 to /storage/kkm_last_doc_name [21:16:39]save OK [21:16:39]Clear old archive folders... [21:16:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:16:39]tlvbuf is 001F8820 [21:16:39]SAM_PROTO_ClearQueue [21:16:39]wFMCommunicate request_size=4 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 09 00 00 [21:16:39]Write to MH i2c: E2 08 00 CB 2F 80 09 00 00 00 00 00 00 6C [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 CB 2F 00 90 00 6E [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]SAM_PROTO_ClearQueue done [21:16:39]KKMCreateOFDPacket [21:16:39]OFDProtocolAddRootSTLVToBuf [21:16:39]FM_MakeSignedData [21:16:39]FM_MakeSignedData [21:16:39]SAM_PROTO_SignData [21:16:39]wFMCommunicate request_size=4 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 01 02 [21:16:39]Write to MH i2c: E2 08 00 CC 2F 80 0D 01 02 00 00 00 00 74 [21:16:39]Write i2c OK [21:16:39]MH_I2C_Read... [21:16:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:39]Read from MH i2c: E2 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 [21:16:39]MH_I2C_Read... [21:16:39]Read from MH i2c: E2 03 00 CC 2F 00 90 00 6F [21:16:39]RAPDU: 90 00 [21:16:39]wFMCommunicate OK [21:16:39]wFMCommunicate request_size=255 [21:16:39]MH_SAM_APDU [21:16:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B8 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [21:16:39]Write to MH i2c: E2 02 01 CD 2F 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B8 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 C0 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 CD 2F 00 90 00 70 [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=41 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B7 01 00 35 04 06 00 9F 08 DB DD 35 A4 [21:16:40]Write to MH i2c: E2 2C 00 CE 2F 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B7 01 00 35 04 06 00 9F 08 DB DD 35 A4 00 00 6E [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 CE 2F 00 90 00 71 [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 0D 03 02 [21:16:40]Write to MH i2c: E2 08 00 CF 2F 80 0D 03 02 00 00 00 00 79 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 0B 00 CF 2F 00 80 56 EE 16 02 67 94 76 90 00 C7 [21:16:40]RAPDU: 80 56 EE 16 02 67 94 76 90 00 [21:16:40]wFMCommunicate OK [21:16:40]SAM_PROTO_SignData done [21:16:40]FM_MakeSignedData done [21:16:40]CreateOFDProtocolMessage [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 11 00 00 [21:16:40]Write to MH i2c: E2 08 00 D0 2F 80 11 00 00 00 00 00 00 79 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 D0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CA [21:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:40]wFMCommunicate OK [21:16:40]CreateOFDProtocolMessage done [21:16:40]OFDSenderStorePacket 112442 [21:16:40]StoreOFDPacket docnum=112442 [21:16:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 EF F0 26 01 86 B0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B8 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B7 01 00 35 04 06 00 9F 08 DB DD 35 A4 80 56 EE 16 02 67 94 76 [21:16:40]CheckFolder [21:16:40]dirname=/storage/ofd_packets [21:16:40]CheckFolder done [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00112442 [21:16:40]NVStorageSaveData ofd_packets/00112442 [21:16:40]File name is /storage/ofd_packets/00112442 [21:16:40]Write 332 bytes [21:16:40]NVStorageSaveData done [21:16:40]OFDSenderStorePacket done [21:16:40]KKMCreateOFDPacket done [21:16:40]NVStorageSaveData kkm_last_timestamp [21:16:40]File name is /storage/kkm_last_timestamp [21:16:40]Write 4 bytes [21:16:40]NVStorageSaveData done [21:16:40]ExternCall_PrintAddStr [21:16:40]wPrintStart [21:16:40]Write to MH i2c: 01 00 00 D1 2F 00 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 D1 2F 00 00 00 00 00 FF 0F 15 [21:16:40]RasterBufferAndPrint [21:16:40]line Счет N : (3)10449 [21:16:40]line ИНН: 02508201610067 [21:16:40]line Контрольно-Кассовый Чек [21:16:40]line ПРОДАЖА [21:16:40]line Товар: 2000036220012 [21:16:40]line Кофе Капучино XL(GABB TRADE) [21:16:40]line 1.000 * 130.00 [21:16:40]line = 130.00 [21:16:40]line НДС 12% НСП 1% [21:16:40]line > о реализуемом товаре [21:16:40]line ИТОГО: 130.00 [21:16:40]line НСП 1% : 1.15 [21:16:40]line НДС 12% : 13.80 [21:16:40]line Наличными: 130.00 [21:16:40]line Безнал.: 0.00 [21:16:40]line Место: АЗС № 47 "Партнер Нефть" [21:16:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:16:40]line СНО: Общий режим [21:16:40]line Чек 341 14.04.2024 21:16 [21:16:40]line Смена: 357 ФФД: 1.0 [21:16:40]line ЗНМ: 0300000138 [21:16:40]line РНМ: 0000000000094237 [21:16:40]line Версия ККМ: 001 [21:16:40]line ФМ: 0000000000875019 [21:16:40]line ФД: 112442 [21:16:40]line ФПД: 174860397262244 [21:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211640&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112442&fm=174860397262244&tin=02508201610067®Number=0000000000094237&sum=13000 [21:16:40]line 0 [21:16:40]OFD Sender: Processing packet 112442 [packets to send 71, broken 70] [21:16:40]ProducePacketName [21:16:40]name=ofd_packets/00112442 [21:16:40]OFD Sender: To server: pG, [21:16:40]CommunicateWithHost lk.salyk.kg:30040 [21:16:40]ConnectInit lk.salyk.kg [21:16:40]written 0, free lines is 4095 [21:16:40]Connected sock=10 [21:16:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 EF F0 26 01 86 B0 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 B8 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B7 01 00 35 04 06 00 9F 08 DB DD 35 A4 80 56 EE 16 02 67 94 76 [21:16:41]Write to MH i2c: 01 00 00 FA 2F 29 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 07 00 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: 01 07 00 FA 2F 00 00 00 00 00 F1 0C 2D [21:16:41]RasterBufferAndPrint [21:16:41]line [21:16:41]line [21:16:41]line [21:16:41]line [21:16:41]line [21:16:41]written 0, free lines is 3319 [21:16:41]MH_Cut [21:16:41]Write to MH i2c: D1 01 00 01 30 01 03 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 01 00 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: D1 01 00 01 30 00 02 [21:16:41]Write to MH i2c: 01 00 00 02 30 32 [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 21 58 47 00 15 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3A B7 01 00 F4 03 04 00 42 EF 1B 66 B6 04 01 00 00 F1 F9 8A DE 9C DA 97 74 [21:16:41]CommunicateWithHost err = 0 [21:16:41]CheckOFDResponse [21:16:41]1017 (14) - 77093643461234 [21:16:41]1041 (16) - 0000000000875019 [21:16:41]1040 (4) - 112442 [21:16:41]1012 (4) - 14.04.2024 14:59 [21:16:41]1206 (1) - 0 [21:16:41]OFD Sender: Remove packet 112442 [21:16:41]ProducePacketName [21:16:41]name=ofd_packets/00112442 [21:16:41]NVStorageDeleteData [21:16:41]OFD Sender: No OFD packet to send [21:16:41]*** Cut start [21:16:41]*** Partial cut [21:16:41]*** CUTSNS_PIN = 1 [21:16:42]*** CUTSNS_PIN = 0 [21:16:42]*** Brake cut motor [21:16:42]Read from MH i2c: 01 [21:16:42]MH_I2C_Read... [21:16:42]*** Stop cut motor [21:16:42]*** Cut end [21:16:42]Read from MH i2c: 01 07 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: 01 07 00 02 30 00 00 00 00 00 FF 0F 47 [21:16:42]process_action close_receipt done [21:16:42]requested_data is exist [21:16:42]produce_requested_data [21:16:42]requested_item fm.sn is exist - process it [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 11 00 00 [21:16:42]Write to MH i2c: E2 08 00 03 30 80 11 00 00 00 00 00 00 AD [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 17 00 03 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FE [21:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:42]wFMCommunicate OK [21:16:42]requested_item fd.num is exist - process it [21:16:42]SAM_PROTO_GetFieldsCounters [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 00 00 [21:16:42]Write to MH i2c: E2 08 00 04 30 80 13 00 00 00 00 00 00 B0 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 04 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetFieldsCounters done [21:16:42]requested_item shift.num is exist - process it [21:16:42]requested_item shift.opened is exist - process it [21:16:42]req_shift_opened [21:16:42]FM_GetShiftState [21:16:42]SAM_PROTO_GetShiftState [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 01 00 [21:16:42]Write to MH i2c: E2 08 00 05 30 80 13 01 00 00 00 00 00 B2 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 05 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4A [21:16:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetShiftState done [21:16:42]FM_GetShiftState done [21:16:42]req_shift_opened done [21:16:42]requested_item shift.open_date is exist - process it [21:16:42]req_shift_open_date [21:16:42]req_shift_open_date done [21:16:42]produce_requested_data done [21:16:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112442,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:16:42]process_action_free close_receipt [21:16:42]json_value_free [21:16:42]json_value_free done [21:16:42]process_json_proto returns [21:16:42]Send response to host [21:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112442,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:16:42]free response buf [21:16:42]execute_script done [21:16:42]execute_script returns [21:16:42]free content buf [21:16:42]Sock 8.Close socket [21:16:42]Sock 8.Thread stoped [21:16:45]accept exits with 9 [21:16:45]New connection [21:16:45]New thread 3066826084 created [21:16:45]Thread 3066682724 joined [21:16:45]Waiting for new connection... [21:16:45] Sock 9.Parse request [21:16:45]Sock 9.Check first char [21:16:45]Sock 9.First char is OK [21:16:45]request: POST /json_proto HTTP/1.0 [21:16:45]Method: POST [21:16:45]URL: /json_proto [21:16:45]Method is POST - this is cgi request [21:16:45]url: /json_proto [21:16:45]query_string will be loaded in cgi processing [21:16:45]execute_cgi json_proto POST (null) [21:16:45]execute_cgi path=json_proto method=POST [21:16:45]POST find Content-Length [21:16:45]Host: 172.17.96.197:8080 [21:16:45]Content-Length: 676 [21:16:45]Content-Type: application/json [21:16:45] [21:16:45]POST finish read [21:16:45]Found Content-Length = 676 [21:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48737", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [21:16:45]execute_script... [21:16: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)48737", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [21:16:45]POST & json_proto [21:16:45]process_json_proto [21:16:45]json parsed OK: [21:16:45]protocol is kg_v1.0 [21:16:45]action value=close_receipt [21:16:45]process_action close_receipt [21:16:45]cmd_close_receipt [21:16:45]MH_GetDate [21:16:45]Write to MH i2c: F0 00 00 06 30 25 [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 09 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: F0 09 00 06 30 00 BF 47 1C 66 E0 85 7F 64 FE [21:16:45]GetLastDocTimeStamp 1713129400 [21:16:45]current date 1713129407 [21:16:45]FM_GetShiftState [21:16:45]SAM_PROTO_GetShiftState [21:16:45]wFMCommunicate request_size=4 [21:16:45]MH_SAM_APDU [21:16:45]CAPDU: 80 13 01 00 [21:16:45]Write to MH i2c: E2 08 00 07 30 80 13 01 00 00 00 00 00 B4 [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:45]Read from MH i2c: E2 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 0E 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 0E 00 07 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4C [21:16:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:45]wFMCommunicate OK [21:16:45]SAM_PROTO_GetShiftState done [21:16:45]FM_GetShiftState done [21:16:45]opened in 1713054696 [21:16:45]opened+sec_in_day 1713141096 [21:16:45]quantity*price = 40058 [21:16:45]sum+1 = 40060 [21:16:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 342 14.04.2024 21:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112443 ФПД: 205310503924563 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211647&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112443&fm=205310503924563&tin=02508201610067®Number=0000000000094237&sum=40000 [21:16:47]StoreToDocumentArchive [21:16:47]shift 357 fd 112443 [21:16:47]save to /storage/0357/doc_00112443 [21:16:47]save last doc name /storage/0357/doc_00112443 to /storage/kkm_last_doc_name [21:16:47]save OK [21:16:47]Clear old archive folders... [21:16:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:47]tlvbuf is 0015F470 [21:16:47]SAM_PROTO_ClearQueue [21:16:47]wFMCommunicate request_size=4 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 09 00 00 [21:16:47]Write to MH i2c: E2 08 00 14 30 80 09 00 00 00 00 00 00 B6 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 14 30 00 90 00 B8 [21:16:47]RAPDU: 90 00 [21:16:47]wFMCommunicate OK [21:16:47]SAM_PROTO_ClearQueue done [21:16:47]KKMCreateOFDPacket [21:16:47]OFDProtocolAddRootSTLVToBuf [21:16:47]FM_MakeSignedData [21:16:47]FM_MakeSignedData [21:16:47]SAM_PROTO_SignData [21:16:47]wFMCommunicate request_size=4 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 0D 01 02 [21:16:47]Write to MH i2c: E2 08 00 15 30 80 0D 01 02 00 00 00 00 BE [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 15 30 00 90 00 B9 [21:16:47]RAPDU: 90 00 [21:16:47]wFMCommunicate OK [21:16:47]wFMCommunicate request_size=255 [21:16:47]MH_SAM_APDU [21:16: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 56 01 00 00 F4 03 04 00 BF 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B7 01 00 35 04 06 00 BA [21:16:47]Write to MH i2c: E2 02 01 16 30 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 56 01 00 00 F4 03 04 00 BF 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B7 01 00 35 04 06 00 BA 00 00 3D [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 16 30 00 90 00 BA [21:16:47]RAPDU: 90 00 [21:16:47]wFMCommunicate OK [21:16:47]wFMCommunicate request_size=10 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 0D 02 02 05 BA 93 A7 B3 53 [21:16:47]Write to MH i2c: E2 0D 00 17 30 80 0D 02 02 05 00 BA 93 A7 B3 53 00 00 C5 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 03 00 17 30 00 90 00 BB [21:16:47]RAPDU: 90 00 [21:16:47]wFMCommunicate OK [21:16:47]wFMCommunicate request_size=4 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 0D 03 02 [21:16:47]Write to MH i2c: E2 08 00 18 30 80 0D 03 02 00 00 00 00 C3 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 0B 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 0B 00 18 30 00 AF 85 4F 8F C7 4B F2 36 90 00 10 [21:16:47]RAPDU: AF 85 4F 8F C7 4B F2 36 90 00 [21:16:47]wFMCommunicate OK [21:16:47]SAM_PROTO_SignData done [21:16:47]FM_MakeSignedData done [21:16:47]CreateOFDProtocolMessage [21:16:47]wFMCommunicate request_size=4 [21:16:47]MH_SAM_APDU [21:16:47]CAPDU: 80 11 00 00 [21:16:47]Write to MH i2c: E2 08 00 19 30 80 11 00 00 00 00 00 00 C3 [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:47]Read from MH i2c: E2 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 17 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: E2 17 00 19 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 14 [21:16:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:47]wFMCommunicate OK [21:16:47]CreateOFDProtocolMessage done [21:16:47]OFDSenderStorePacket 112443 [21:16:47]StoreOFDPacket docnum=112443 [21:16:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C0 1F 07 01 DA 7A 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 56 01 00 00 F4 03 04 00 BF 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B7 01 00 35 04 06 00 BA BA 93 A7 B3 53 AF 85 4F 8F C7 4B F2 36 [21:16:47]CheckFolder [21:16:47]dirname=/storage/ofd_packets [21:16:47]CheckFolder done [21:16:47]ProducePacketName [21:16:47]name=ofd_packets/00112443 [21:16:47]NVStorageSaveData ofd_packets/00112443 [21:16:47]File name is /storage/ofd_packets/00112443 [21:16:47]Write 301 bytes [21:16:47]NVStorageSaveData done [21:16:47]OFDSenderStorePacket done [21:16:47]KKMCreateOFDPacket done [21:16:47]NVStorageSaveData kkm_last_timestamp [21:16:47]File name is /storage/kkm_last_timestamp [21:16:47]Write 4 bytes [21:16:47]NVStorageSaveData done [21:16:47]ExternCall_PrintAddStr [21:16:47]wPrintStart [21:16:47]Write to MH i2c: 01 00 00 1A 30 4A [21:16:47]OFD Sender: Processing packet 112443 [packets to send 71, broken 70] [21:16:47]ProducePacketName [21:16:47]name=ofd_packets/00112443 [21:16:47]OFD Sender: To server: pG, [21:16:47]CommunicateWithHost lk.salyk.kg:30040 [21:16:47]ConnectInit lk.salyk.kg [21:16:47]Write i2c OK [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 07 00 [21:16:47]MH_I2C_Read... [21:16:47]Read from MH i2c: 01 07 00 1A 30 00 00 00 00 00 FF 0F 5F [21:16:47]RasterBufferAndPrint [21:16:47]line Счет N : (1)48737 [21:16:47]line ИНН: 02508201610067 [21:16:47]line Контрольно-Кассовый Чек [21:16:47]line ПРОДАЖА [21:16:47]line ТРК (МРК, ГНК) : 32 [21:16:47]line Товар: 2710124130 [21:16:47]line Аи-92-К-5 [21:16:47]line 6.230 * 64.30 [21:16:47]line = 400.59 [21:16:47]line НДС 12% НСП 1% [21:16:47]line > о реализуемом товаре [21:16:47]line ОКРУГЛЕНИЕ: -0.59 [21:16:47]line ИТОГО: 400.00 [21:16:47]line Внесено: 400.00 [21:16:47]line СДАЧА: 0.00 [21:16:47]line НСП 1% : 3.54 [21:16:47]line НДС 12% : 42.54 [21:16:47]line Наличными: 400.00 [21:16:47]line Безнал.: 0.00 [21:16:47]line Место: АЗС № 47 "Партнер Нефть" [21:16:47]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:16:47]line СНО: Общий режим [21:16:47]line Чек 342 14.04.2024 21:16 [21:16:47]line Смена: 357 ФФД: 1.0 [21:16:47]line ЗНМ: 0300000138 [21:16:47]line РНМ: 0000000000094237 [21:16:47]line Версия ККМ: 001 [21:16:47]line ФМ: 0000000000875019 [21:16:47]line ФД: 112443 [21:16:47]line ФПД: 205310503924563 [21:16:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211647&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112443&fm=205310503924563&tin=02508201610067®Number=0000000000094237&sum=40000 [21:16:47]written 0, free lines is 4095 [21:16:47]Connected sock=11 [21:16:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C0 1F 07 01 DA 7A 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 56 01 00 00 F4 03 04 00 BF 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B7 01 00 35 04 06 00 BA BA 93 A7 B3 53 AF 85 4F 8F C7 4B F2 36 [21:16:48]Write to MH i2c: 01 00 00 45 30 75 [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 07 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: 01 07 00 45 30 00 00 00 00 00 E6 0C 6E [21:16:48]RasterBufferAndPrint [21:16:48]line [21:16:48]line [21:16:48]line [21:16:48]line [21:16:48]line [21:16:48]written 0, free lines is 3314 [21:16:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B4 C4 47 00 1B 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3B B7 01 00 F4 03 04 00 49 EF 1B 66 B6 04 01 00 00 D9 07 01 FC 89 6D 93 EF [21:16:48]CommunicateWithHost err = 0 [21:16:48]CheckOFDResponse [21:16:48]1017 (14) - 77093643461234 [21:16:48]1041 (16) - 0000000000875019 [21:16:48]1040 (4) - 112443 [21:16:48]1012 (4) - 14.04.2024 14:59 [21:16:48]1206 (1) - 0 [21:16:48]OFD Sender: Remove packet 112443 [21:16:48]ProducePacketName [21:16:48]name=ofd_packets/00112443 [21:16:48]NVStorageDeleteData [21:16:48]MH_Cut [21:16:48]Write to MH i2c: D1 01 00 4C 30 01 4E [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: D1 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: D1 01 00 [21:16:48]MH_I2C_Read... [21:16:48]Read from MH i2c: D1 01 00 4C 30 00 4D [21:16:48]Write to MH i2c: 01 00 00 4D 30 7D [21:16:48]Write i2c OK [21:16:48]MH_I2C_Read... [21:16:48]OFD Sender: No OFD packet to send [21:16:48]*** Cut start [21:16:48]*** Partial cut [21:16:48]*** CUTSNS_PIN = 1 [21:16:48]*** CUTSNS_PIN = 0 [21:16:49]*** Brake cut motor [21:16:49]Read from MH i2c: 01 [21:16:49]MH_I2C_Read... [21:16:49]*** Stop cut motor [21:16:49]*** Cut end [21:16:49]Read from MH i2c: 01 07 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: 01 07 00 4D 30 00 00 00 00 00 FF 0F 92 [21:16:49]process_action close_receipt done [21:16:49]requested_data is exist [21:16:49]produce_requested_data [21:16:49]requested_item fm.sn is exist - process it [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 11 00 00 [21:16:49]Write to MH i2c: E2 08 00 4E 30 80 11 00 00 00 00 00 00 F8 [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 17 00 4E 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 49 [21:16:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:49]wFMCommunicate OK [21:16:49]requested_item fd.num is exist - process it [21:16:49]SAM_PROTO_GetFieldsCounters [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 13 00 00 [21:16:49]Write to MH i2c: E2 08 00 4F 30 80 13 00 00 00 00 00 00 FB [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:49]Read from MH i2c: E2 62 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 62 00 4F 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [21:16:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_GetFieldsCounters done [21:16:49]requested_item shift.num is exist - process it [21:16:49]requested_item shift.opened is exist - process it [21:16:49]req_shift_opened [21:16:49]FM_GetShiftState [21:16:49]SAM_PROTO_GetShiftState [21:16:49]wFMCommunicate request_size=4 [21:16:49]MH_SAM_APDU [21:16:49]CAPDU: 80 13 01 00 [21:16:49]Write to MH i2c: E2 08 00 50 30 80 13 01 00 00 00 00 00 FD [21:16:49]Write i2c OK [21:16:49]MH_I2C_Read... [21:16:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:49]Read from MH i2c: E2 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 [21:16:49]MH_I2C_Read... [21:16:49]Read from MH i2c: E2 0E 00 50 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 95 [21:16:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:49]wFMCommunicate OK [21:16:49]SAM_PROTO_GetShiftState done [21:16:49]FM_GetShiftState done [21:16:49]req_shift_opened done [21:16:49]requested_item shift.open_date is exist - process it [21:16:49]req_shift_open_date [21:16:49]req_shift_open_date done [21:16:49]produce_requested_data done [21:16:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112443,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:16:49]process_action_free close_receipt [21:16:49]json_value_free [21:16:49]json_value_free done [21:16:49]process_json_proto returns [21:16:49]Send response to host [21:16:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112443,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:16:49]free response buf [21:16:49]execute_script done [21:16:49]execute_script returns [21:16:49]free content buf [21:16:49]Sock 9.Close socket [21:16:49]Sock 9.Thread stoped [21:16:50]accept exits with 8 [21:16:50]New connection [21:16:50]New thread 3066682724 created [21:16:50]Thread 3066826084 joined [21:16:50]Waiting for new connection... [21:16:50] Sock 8.Parse request [21:16:50]Sock 8.Check first char [21:16:50]Sock 8.First char is OK [21:16:50]request: POST /json_proto HTTP/1.0 [21:16:50]Method: POST [21:16:50]URL: /json_proto [21:16:50]Method is POST - this is cgi request [21:16:50]url: /json_proto [21:16:50]query_string will be loaded in cgi processing [21:16:50]execute_cgi json_proto POST (null) [21:16:50]execute_cgi path=json_proto method=POST [21:16:50]POST find Content-Length [21:16:50]Host: 172.17.96.197:8080 [21:16:50]Content-Length: 815 [21:16:50]Content-Type: application/json [21:16:50] [21:16:50]POST finish read [21:16:50]Found Content-Length = 815 [21:16:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:50]execute_script... [21:16: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)48738", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:50]POST & json_proto [21:16:50]process_json_proto [21:16:50]json parsed OK: [21:16:50]protocol is kg_v1.0 [21:16:50]action value=close_receipt [21:16:50]process_action close_receipt [21:16:50]cmd_close_receipt [21:16:50]MH_GetDate [21:16:50]Write to MH i2c: F0 00 00 51 30 70 [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: F0 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: F0 09 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: F0 09 00 51 30 00 C4 47 1C 66 E0 85 7F 64 4E [21:16:50]GetLastDocTimeStamp 1713129407 [21:16:50]current date 1713129412 [21:16:50]FM_GetShiftState [21:16:50]SAM_PROTO_GetShiftState [21:16:50]wFMCommunicate request_size=4 [21:16:50]MH_SAM_APDU [21:16:50]CAPDU: 80 13 01 00 [21:16:50]Write to MH i2c: E2 08 00 52 30 80 13 01 00 00 00 00 00 FF [21:16:50]Write i2c OK [21:16:50]MH_I2C_Read... [21:16:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:50]Read from MH i2c: E2 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 0E 00 [21:16:50]MH_I2C_Read... [21:16:50]Read from MH i2c: E2 0E 00 52 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 97 [21:16:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:50]wFMCommunicate OK [21:16:50]SAM_PROTO_GetShiftState done [21:16:50]FM_GetShiftState done [21:16:50]opened in 1713054696 [21:16:50]opened+sec_in_day 1713141096 [21:16:50]quantity*price = 50025 [21:16:50]sum+1 = 50026 [21:16:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 343 14.04.2024 21:16 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112444 ФПД: 271155179228080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211652&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112444&fm=271155179228080&tin=02508201610067®Number=0000000000094237&sum=50025 [21:16:51]StoreToDocumentArchive [21:16:51]shift 357 fd 112444 [21:16:51]save to /storage/0357/doc_00112444 [21:16:51]save last doc name /storage/0357/doc_00112444 to /storage/kkm_last_doc_name [21:16:51]save OK [21:16:51]Clear old archive folders... [21:16:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:16:51]tlvbuf is 00134A00 [21:16:51]SAM_PROTO_ClearQueue [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 09 00 00 [21:16:51]Write to MH i2c: E2 08 00 5F 30 80 09 00 00 00 00 00 00 01 [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 5F 30 00 90 00 03 [21:16:51]RAPDU: 90 00 [21:16:51]wFMCommunicate OK [21:16:51]SAM_PROTO_ClearQueue done [21:16:51]KKMCreateOFDPacket [21:16:51]OFDProtocolAddRootSTLVToBuf [21:16:51]FM_MakeSignedData [21:16:51]FM_MakeSignedData [21:16:51]SAM_PROTO_SignData [21:16:51]wFMCommunicate request_size=4 [21:16:51]MH_SAM_APDU [21:16:51]CAPDU: 80 0D 01 02 [21:16:51]Write to MH i2c: E2 08 00 60 30 80 0D 01 02 00 00 00 00 09 [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:16:51]Read from MH i2c: E2 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 [21:16:51]MH_I2C_Read... [21:16:51]Read from MH i2c: E2 03 00 60 30 00 90 00 04 [21:16:51]RAPDU: 90 00 [21:16:51]wFMCommunicate OK [21:16:51]wFMCommunicate request_size=255 [21:16:51]MH_SAM_APDU [21:16:51]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C4 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B7 01 00 35 04 06 00 F6 [21:16:51]Write to MH i2c: E2 02 01 61 30 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C4 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B7 01 00 35 04 06 00 F6 00 00 13 [21:16:51]Write i2c OK [21:16:51]MH_I2C_Read... [21:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:52]Read from MH i2c: E2 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 03 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 03 00 61 30 00 90 00 05 [21:16:52]RAPDU: 90 00 [21:16:52]wFMCommunicate OK [21:16:52]wFMCommunicate request_size=10 [21:16:52]MH_SAM_APDU [21:16:52]CAPDU: 80 0D 02 02 05 9D 3C 23 0B B0 [21:16:52]Write to MH i2c: E2 0D 00 62 30 80 0D 02 02 05 00 9D 3C 23 0B B0 00 00 CD [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:16:52]Read from MH i2c: E2 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 03 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 03 00 62 30 00 90 00 06 [21:16:52]RAPDU: 90 00 [21:16:52]wFMCommunicate OK [21:16:52]wFMCommunicate request_size=4 [21:16:52]MH_SAM_APDU [21:16:52]CAPDU: 80 0D 03 02 [21:16:52]Write to MH i2c: E2 08 00 63 30 80 0D 03 02 00 00 00 00 0E [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:16:52]Read from MH i2c: E2 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 0B 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 0B 00 63 30 00 C4 E7 0C E4 79 21 F1 85 90 00 BA [21:16:52]RAPDU: C4 E7 0C E4 79 21 F1 85 90 00 [21:16:52]wFMCommunicate OK [21:16:52]SAM_PROTO_SignData done [21:16:52]FM_MakeSignedData done [21:16:52]CreateOFDProtocolMessage [21:16:52]wFMCommunicate request_size=4 [21:16:52]MH_SAM_APDU [21:16:52]CAPDU: 80 11 00 00 [21:16:52]Write to MH i2c: E2 08 00 64 30 80 11 00 00 00 00 00 00 0E [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:52]Read from MH i2c: E2 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 17 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: E2 17 00 64 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5F [21:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:52]wFMCommunicate OK [21:16:52]CreateOFDProtocolMessage done [21:16:52]OFDSenderStorePacket 112444 [21:16:52]StoreOFDPacket docnum=112444 [21:16:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1D 89 07 01 CA 52 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C4 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B7 01 00 35 04 06 00 F6 9D 3C 23 0B B0 C4 E7 0C E4 79 21 F1 85 [21:16:52]CheckFolder [21:16:52]dirname=/storage/ofd_packets [21:16:52]CheckFolder done [21:16:52]ProducePacketName [21:16:52]name=ofd_packets/00112444 [21:16:52]NVStorageSaveData ofd_packets/00112444 [21:16:52]File name is /storage/ofd_packets/00112444 [21:16:52]Write 301 bytes [21:16:52]NVStorageSaveData done [21:16:52]OFDSenderStorePacket done [21:16:52]KKMCreateOFDPacket done [21:16:52]NVStorageSaveData kkm_last_timestamp [21:16:52]File name is /storage/kkm_last_timestamp [21:16:52]Write 4 bytes [21:16:52]NVStorageSaveData done [21:16:52]ExternCall_PrintAddStr [21:16:52]wPrintStart [21:16:52]Write to MH i2c: 01 00 00 65 30 95 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 65 30 00 00 00 00 00 FF 0F AA [21:16:52]RasterBufferAndPrint [21:16:52]line Счет N : (1)48738 [21:16:52]line ИНН: 02508201610067 [21:16:52]line Контрольно-Кассовый Чек [21:16:52]line ПРОДАЖА [21:16:52]line ТРК (МРК, ГНК) : 11 [21:16:52]line Товар: 2710124130 [21:16:52]line Аи-92-К-5 [21:16:52]line 7.780 * 64.30 [21:16:52]line = 500.25 [21:16:52]line НДС 12% НСП 1% [21:16:52]line > о реализуемом товаре [21:16:52]line ИТОГО: 500.25 [21:16:52]line НСП 1% : 4.43 [21:16:52]line НДС 12% : 53.12 [21:16:52]line Наличными: 0.00 [21:16:52]line Безнал.: 500.25 [21:16:52]line Место: АЗС № 47 "Партнер Нефть" [21:16:52]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:16:52]line СНО: Общий режим [21:16:52]line Чек 343 14.04.2024 21:16 [21:16:52]line Смена: 357 ФФД: 1.0 [21:16:52]line ЗНМ: 0300000138 [21:16:52]line РНМ: 0000000000094237 [21:16:52]line Версия ККМ: 001 [21:16:52]line Платежная система: Бакай Банк [21:16:52]line ФМ: 0000000000875019 [21:16:52]line ФД: 112444 [21:16:52]line ФПД: 271155179228080 [21:16:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211652&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112444&fm=271155179228080&tin=02508201610067®Number=0000000000094237&sum=50025 [21:16:52]written 0, free lines is 4095 [21:16:52]OFD Sender: Processing packet 112444 [packets to send 71, broken 70] [21:16:52]ProducePacketName [21:16:52]name=ofd_packets/00112444 [21:16:52]OFD Sender: To server: pG, [21:16:52]CommunicateWithHost lk.salyk.kg:30040 [21:16:52]ConnectInit lk.salyk.kg [21:16:52]Connected sock=10 [21:16:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 1D 89 07 01 CA 52 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 C4 47 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B7 01 00 35 04 06 00 F6 9D 3C 23 0B B0 C4 E7 0C E4 79 21 F1 85 [21:16:52]Write to MH i2c: 01 00 00 8F 30 BF [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: 01 07 00 8F 30 00 00 00 00 00 01 0D D4 [21:16:52]RasterBufferAndPrint [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]line [21:16:52]written 0, free lines is 3344 [21:16:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 78 58 47 00 EE 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3C B7 01 00 F4 03 04 00 4E EF 1B 66 B6 04 01 00 00 07 0E 2A E0 1F 0D E1 46 [21:16:52]CommunicateWithHost err = 0 [21:16:52]CheckOFDResponse [21:16:52]1017 (14) - 77093643461234 [21:16:52]1041 (16) - 0000000000875019 [21:16:52]1040 (4) - 112444 [21:16:52]1012 (4) - 14.04.2024 14:59 [21:16:52]1206 (1) - 0 [21:16:52]OFD Sender: Remove packet 112444 [21:16:52]ProducePacketName [21:16:52]name=ofd_packets/00112444 [21:16:52]NVStorageDeleteData [21:16:52]MH_Cut [21:16:52]Write to MH i2c: D1 01 00 96 30 01 98 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 01 00 [21:16:52]MH_I2C_Read... [21:16:52]Read from MH i2c: D1 01 00 96 30 00 97 [21:16:52]Write to MH i2c: 01 00 00 97 30 C7 [21:16:52]Write i2c OK [21:16:52]MH_I2C_Read... [21:16:53]OFD Sender: No OFD packet to send [21:16:53]*** Cut start [21:16:53]*** Partial cut [21:16:53]*** CUTSNS_PIN = 1 [21:16:53]*** CUTSNS_PIN = 0 [21:16:53]*** Brake cut motor [21:16:54]Read from MH i2c: 01 [21:16:54]MH_I2C_Read... [21:16:54]*** Stop cut motor [21:16:54]*** Cut end [21:16:54]Read from MH i2c: 01 07 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: 01 07 00 97 30 00 00 00 00 00 FF 0F DC [21:16:54]process_action close_receipt done [21:16:54]requested_data is exist [21:16:54]produce_requested_data [21:16:54]requested_item fm.sn is exist - process it [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 11 00 00 [21:16:54]Write to MH i2c: E2 08 00 98 30 80 11 00 00 00 00 00 00 42 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 17 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 17 00 98 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [21:16:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:16:54]wFMCommunicate OK [21:16:54]requested_item fd.num is exist - process it [21:16:54]SAM_PROTO_GetFieldsCounters [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 13 00 00 [21:16:54]Write to MH i2c: E2 08 00 99 30 80 13 00 00 00 00 00 00 45 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 62 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 62 00 99 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [21:16:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:54]wFMCommunicate OK [21:16:54]SAM_PROTO_GetFieldsCounters done [21:16:54]requested_item shift.num is exist - process it [21:16:54]requested_item shift.opened is exist - process it [21:16:54]req_shift_opened [21:16:54]FM_GetShiftState [21:16:54]SAM_PROTO_GetShiftState [21:16:54]wFMCommunicate request_size=4 [21:16:54]MH_SAM_APDU [21:16:54]CAPDU: 80 13 01 00 [21:16:54]Write to MH i2c: E2 08 00 9A 30 80 13 01 00 00 00 00 00 47 [21:16:54]Write i2c OK [21:16:54]MH_I2C_Read... [21:16:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:54]Read from MH i2c: E2 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 0E 00 [21:16:54]MH_I2C_Read... [21:16:54]Read from MH i2c: E2 0E 00 9A 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DF [21:16:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:16:54]wFMCommunicate OK [21:16:54]SAM_PROTO_GetShiftState done [21:16:54]FM_GetShiftState done [21:16:54]req_shift_opened done [21:16:54]requested_item shift.open_date is exist - process it [21:16:54]req_shift_open_date [21:16:54]req_shift_open_date done [21:16:54]produce_requested_data done [21:16:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112444,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:16:54]process_action_free close_receipt [21:16:54]json_value_free [21:16:54]json_value_free done [21:16:54]process_json_proto returns [21:16:54]Send response to host [21:16:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112444,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:16:54]free response buf [21:16:54]execute_script done [21:16:54]execute_script returns [21:16:54]free content buf [21:16:54]Sock 8.Close socket [21:16:54]Sock 8.Thread stoped [21:16:58]OFD Sender: No OFD packet to send [21:17:03]OFD Sender: No OFD packet to send [21:17:08]OFD Sender: No OFD packet to send [21:17:13]OFD Sender: No OFD packet to send [21:17:18]OFD Sender: No OFD packet to send [21:17:23]OFD Sender: No OFD packet to send [21:17:28]OFD Sender: No OFD packet to send [21:17:33]OFD Sender: No OFD packet to send [21:17:38]OFD Sender: No OFD packet to send [21:17:43]OFD Sender: No OFD packet to send [21:17:48]OFD Sender: No OFD packet to send [21:17:53]OFD Sender: No OFD packet to send [21:17:58]OFD Sender: No OFD packet to send [21:17:58]accept exits with 9 [21:17:58]New connection [21:17:58]New thread 3066826084 created [21:17:58]Thread 3066682724 joined [21:17:58]Waiting for new connection... [21:17:58] Sock 9.Parse request [21:17:58]Sock 9.Check first char [21:17:58]Sock 9.First char is OK [21:17:58]request: POST /json_proto HTTP/1.0 [21:17:58]Method: POST [21:17:58]URL: /json_proto [21:17:58]Method is POST - this is cgi request [21:17:58]url: /json_proto [21:17:58]query_string will be loaded in cgi processing [21:17:58]execute_cgi json_proto POST (null) [21:17:58]execute_cgi path=json_proto method=POST [21:17:58]POST find Content-Length [21:17:58]Host: 172.17.96.197:8080 [21:17:58]Content-Length: 676 [21:17:58]Content-Type: application/json [21:17:58] [21:17:58]POST finish read [21:17:58]Found Content-Length = 676 [21:17:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:17:58]execute_script... [21:17:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48739", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:17:58]POST & json_proto [21:17:58]process_json_proto [21:17:58]json parsed OK: [21:17:58]protocol is kg_v1.0 [21:17:58]action value=close_receipt [21:17:58]process_action close_receipt [21:17:58]cmd_close_receipt [21:17:58]MH_GetDate [21:17:58]Write to MH i2c: F0 00 00 9B 30 BA [21:17:58]Write i2c OK [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 09 00 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: F0 09 00 9B 30 00 08 48 1C 66 E0 85 7F 64 DD [21:17:58]GetLastDocTimeStamp 1713129412 [21:17:58]current date 1713129480 [21:17:58]FM_GetShiftState [21:17:58]SAM_PROTO_GetShiftState [21:17:58]wFMCommunicate request_size=4 [21:17:58]MH_SAM_APDU [21:17:58]CAPDU: 80 13 01 00 [21:17:58]Write to MH i2c: E2 08 00 9C 30 80 13 01 00 00 00 00 00 49 [21:17:58]Write i2c OK [21:17:58]MH_I2C_Read... [21:17:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:58]Read from MH i2c: E2 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: E2 0E 00 [21:17:58]MH_I2C_Read... [21:17:58]Read from MH i2c: E2 0E 00 9C 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E1 [21:17:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:17:58]wFMCommunicate OK [21:17:58]SAM_PROTO_GetShiftState done [21:17:58]FM_GetShiftState done [21:17:58]opened in 1713054696 [21:17:58]opened+sec_in_day 1713141096 [21:17:58]quantity*price = 50025 [21:17:58]sum+1 = 50026 [21:17:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 344 14.04.2024 21:18 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112445 ФПД: 67226620963504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211800&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112445&fm=67226620963504&tin=02508201610067®Number=0000000000094237&sum=50000 [21:17:59]StoreToDocumentArchive [21:17:59]shift 357 fd 112445 [21:17:59]save to /storage/0357/doc_00112445 [21:17:59]save last doc name /storage/0357/doc_00112445 to /storage/kkm_last_doc_name [21:17:59]save OK [21:17:59]Clear old archive folders... [21:17:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:17:59]tlvbuf is B6D89610 [21:17:59]SAM_PROTO_ClearQueue [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 09 00 00 [21:17:59]Write to MH i2c: E2 08 00 A9 30 80 09 00 00 00 00 00 00 4B [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 A9 30 00 90 00 4D [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]SAM_PROTO_ClearQueue done [21:17:59]KKMCreateOFDPacket [21:17:59]OFDProtocolAddRootSTLVToBuf [21:17:59]FM_MakeSignedData [21:17:59]FM_MakeSignedData [21:17:59]SAM_PROTO_SignData [21:17:59]wFMCommunicate request_size=4 [21:17:59]MH_SAM_APDU [21:17:59]CAPDU: 80 0D 01 02 [21:17:59]Write to MH i2c: E2 08 00 AA 30 80 0D 01 02 00 00 00 00 53 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:17:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:17:59]Read from MH i2c: E2 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 [21:17:59]MH_I2C_Read... [21:17:59]Read from MH i2c: E2 03 00 AA 30 00 90 00 4E [21:17:59]RAPDU: 90 00 [21:17:59]wFMCommunicate OK [21:17:59]wFMCommunicate request_size=255 [21:17:59]MH_SAM_APDU [21:17:59]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 58 01 00 00 F4 03 04 00 08 48 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B7 01 00 35 04 06 00 3D [21:17:59]Write to MH i2c: E2 02 01 AB 30 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 58 01 00 00 F4 03 04 00 08 48 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B7 01 00 35 04 06 00 3D 00 00 B9 [21:17:59]Write i2c OK [21:17:59]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 AB 30 00 90 00 4F [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]wFMCommunicate request_size=10 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 0D 02 02 05 24 6A DC AA B0 [21:18:00]Write to MH i2c: E2 0D 00 AC 30 80 0D 02 02 05 00 24 6A DC AA B0 00 00 24 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 03 00 AC 30 00 90 00 50 [21:18:00]RAPDU: 90 00 [21:18:00]wFMCommunicate OK [21:18:00]wFMCommunicate request_size=4 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 0D 03 02 [21:18:00]Write to MH i2c: E2 08 00 AD 30 80 0D 03 02 00 00 00 00 58 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 0B 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 0B 00 AD 30 00 63 77 2F BF AD 1A 01 04 90 00 ED [21:18:00]RAPDU: 63 77 2F BF AD 1A 01 04 90 00 [21:18:00]wFMCommunicate OK [21:18:00]SAM_PROTO_SignData done [21:18:00]FM_MakeSignedData done [21:18:00]CreateOFDProtocolMessage [21:18:00]wFMCommunicate request_size=4 [21:18:00]MH_SAM_APDU [21:18:00]CAPDU: 80 11 00 00 [21:18:00]Write to MH i2c: E2 08 00 AE 30 80 11 00 00 00 00 00 00 58 [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:00]Read from MH i2c: E2 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 17 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: E2 17 00 AE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [21:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:18:00]wFMCommunicate OK [21:18:00]CreateOFDProtocolMessage done [21:18:00]OFDSenderStorePacket 112445 [21:18:00]StoreOFDPacket docnum=112445 [21:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8E 75 07 01 18 2C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 58 01 00 00 F4 03 04 00 08 48 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B7 01 00 35 04 06 00 3D 24 6A DC AA B0 63 77 2F BF AD 1A 01 04 [21:18:00]CheckFolder [21:18:00]dirname=/storage/ofd_packets [21:18:00]CheckFolder done [21:18:00]ProducePacketName [21:18:00]name=ofd_packets/00112445 [21:18:00]NVStorageSaveData ofd_packets/00112445 [21:18:00]File name is /storage/ofd_packets/00112445 [21:18:00]Write 301 bytes [21:18:00]NVStorageSaveData done [21:18:00]OFDSenderStorePacket done [21:18:00]KKMCreateOFDPacket done [21:18:00]NVStorageSaveData kkm_last_timestamp [21:18:00]File name is /storage/kkm_last_timestamp [21:18:00]Write 4 bytes [21:18:00]NVStorageSaveData done [21:18:00]ExternCall_PrintAddStr [21:18:00]wPrintStart [21:18:00]Write to MH i2c: 01 00 00 AF 30 DF [21:18:00]Write i2c OK [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 07 00 [21:18:00]MH_I2C_Read... [21:18:00]Read from MH i2c: 01 07 00 AF 30 00 00 00 00 00 FF 0F F4 [21:18:00]RasterBufferAndPrint [21:18:00]line Счет N : (1)48739 [21:18:00]line ИНН: 02508201610067 [21:18:00]line Контрольно-Кассовый Чек [21:18:00]line ПРОДАЖА [21:18:00]line ТРК (МРК, ГНК) : 11 [21:18:00]line Товар: 2710124130 [21:18:00]line Аи-92-К-5 [21:18:00]line 7.780 * 64.30 [21:18:00]line = 500.25 [21:18:00]line НДС 12% НСП 1% [21:18:00]line > о реализуемом товаре [21:18:00]line ОКРУГЛЕНИЕ: -0.25 [21:18:00]line ИТОГО: 500.00 [21:18:00]line Внесено: 500.00 [21:18:00]line СДАЧА: 0.00 [21:18:00]line НСП 1% : 4.43 [21:18:00]line НДС 12% : 53.12 [21:18:00]line Наличными: 500.00 [21:18:00]line Безнал.: 0.00 [21:18:00]line Место: АЗС № 47 "Партнер Нефть" [21:18:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:18:00]line СНО: Общий режим [21:18:00]line Чек 344 14.04.2024 21:18 [21:18:00]line Смена: 357 ФФД: 1.0 [21:18:00]line ЗНМ: 0300000138 [21:18:00]line РНМ: 0000000000094237 [21:18:00]line Версия ККМ: 001 [21:18:00]line ФМ: 0000000000875019 [21:18:00]line ФД: 112445 [21:18:00]line ФПД: 67226620963504 [21:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T211800&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112445&fm=67226620963504&tin=02508201610067®Number=0000000000094237&sum=50000 [21:18:00]OFD Sender: Processing packet 112445 [packets to send 71, broken 70] [21:18:00]ProducePacketName [21:18:00]name=ofd_packets/00112445 [21:18:00]OFD Sender: To server: pG, [21:18:00]CommunicateWithHost lk.salyk.kg:30040 [21:18:00]ConnectInit lk.salyk.kg [21:18:00]written 0, free lines is 4095 [21:18:01]Connected sock=10 [21:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8E 75 07 01 18 2C 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 58 01 00 00 F4 03 04 00 08 48 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3D B7 01 00 35 04 06 00 3D 24 6A DC AA B0 63 77 2F BF AD 1A 01 04 [21:18:01]Write to MH i2c: 01 00 00 DA 30 0A [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: 01 07 00 DA 30 00 00 00 00 00 E7 0C 04 [21:18:01]RasterBufferAndPrint [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]line [21:18:01]written 0, free lines is 3312 [21:18:01]MH_Cut [21:18:01]Write to MH i2c: D1 01 00 E1 30 01 E3 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: D1 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: D1 01 00 [21:18:01]MH_I2C_Read... [21:18:01]Read from MH i2c: D1 01 00 E1 30 00 E2 [21:18:01]Write to MH i2c: 01 00 00 E2 30 12 [21:18:01]Write i2c OK [21:18:01]MH_I2C_Read... [21:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 DF CC 47 00 2D 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 38 37 35 30 31 39 10 04 04 00 3D B7 01 00 F4 03 04 00 93 EF 1B 66 B6 04 01 00 00 72 7B 16 3D B2 D3 1B 2C [21:18:01]CommunicateWithHost err = 0 [21:18:01]CheckOFDResponse [21:18:01]1017 (14) - 77093643461234 [21:18:01]1041 (16) - 0000000000875019 [21:18:01]1040 (4) - 112445 [21:18:01]1012 (4) - 14.04.2024 15:00 [21:18:01]1206 (1) - 0 [21:18:01]OFD Sender: Remove packet 112445 [21:18:01]ProducePacketName [21:18:01]name=ofd_packets/00112445 [21:18:01]NVStorageDeleteData [21:18:01]OFD Sender: No OFD packet to send [21:18:01]*** Cut start [21:18:01]*** Partial cut [21:18:01]*** CUTSNS_PIN = 1 [21:18:02]*** CUTSNS_PIN = 0 [21:18:02]*** Brake cut motor [21:18:02]Read from MH i2c: 01 [21:18:02]MH_I2C_Read... [21:18:02]*** Stop cut motor [21:18:02]*** Cut end [21:18:02]Read from MH i2c: 01 07 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: 01 07 00 E2 30 00 00 00 00 00 FF 0F 27 [21:18:02]process_action close_receipt done [21:18:02]requested_data is exist [21:18:02]produce_requested_data [21:18:02]requested_item fm.sn is exist - process it [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 11 00 00 [21:18:02]Write to MH i2c: E2 08 00 E3 30 80 11 00 00 00 00 00 00 8D [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 17 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 17 00 E3 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DE [21:18:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:18:02]wFMCommunicate OK [21:18:02]requested_item fd.num is exist - process it [21:18:02]SAM_PROTO_GetFieldsCounters [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 13 00 00 [21:18:02]Write to MH i2c: E2 08 00 E4 30 80 13 00 00 00 00 00 00 90 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 62 00 E4 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [21:18:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetFieldsCounters done [21:18:02]requested_item shift.num is exist - process it [21:18:02]requested_item shift.opened is exist - process it [21:18:02]req_shift_opened [21:18:02]FM_GetShiftState [21:18:02]SAM_PROTO_GetShiftState [21:18:02]wFMCommunicate request_size=4 [21:18:02]MH_SAM_APDU [21:18:02]CAPDU: 80 13 01 00 [21:18:02]Write to MH i2c: E2 08 00 E5 30 80 13 01 00 00 00 00 00 92 [21:18:02]Write i2c OK [21:18:02]MH_I2C_Read... [21:18:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:02]Read from MH i2c: E2 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 [21:18:02]MH_I2C_Read... [21:18:02]Read from MH i2c: E2 0E 00 E5 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2A [21:18:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:18:02]wFMCommunicate OK [21:18:02]SAM_PROTO_GetShiftState done [21:18:02]FM_GetShiftState done [21:18:02]req_shift_opened done [21:18:02]requested_item shift.open_date is exist - process it [21:18:02]req_shift_open_date [21:18:02]req_shift_open_date done [21:18:02]produce_requested_data done [21:18:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112445,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:18:02]process_action_free close_receipt [21:18:02]json_value_free [21:18:02]json_value_free done [21:18:02]process_json_proto returns [21:18:02]Send response to host [21:18:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112445,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:18:02]free response buf [21:18:02]execute_script done [21:18:02]execute_script returns [21:18:02]free content buf [21:18:02]Sock 9.Close socket [21:18:02]Sock 9.Thread stoped [21:18:06]OFD Sender: No OFD packet to send [21:18:11]OFD Sender: No OFD packet to send [21:18:16]OFD Sender: No OFD packet to send [21:18:21]OFD Sender: No OFD packet to send [21:18:26]OFD Sender: No OFD packet to send [21:18:31]OFD Sender: No OFD packet to send [21:18:36]OFD Sender: No OFD packet to send [21:18:41]OFD Sender: No OFD packet to send [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:31]OFD Sender: No OFD packet to send [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:47]OFD Sender: No OFD packet to send [21:20:52]OFD Sender: No OFD packet to send [21:20:57]OFD Sender: No OFD packet to send [21:21:02]OFD Sender: No OFD packet to send [21:21:07]OFD Sender: No OFD packet to send [21:21:12]OFD Sender: No OFD packet to send [21:21:17]OFD Sender: No OFD packet to send [21:21:22]OFD Sender: No OFD packet to send [21:21:27]OFD Sender: No OFD packet to send [21:21:32]OFD Sender: No OFD packet to send [21:21:37]OFD Sender: No OFD packet to send [21:21:42]OFD Sender: No OFD packet to send [21:21:47]OFD Sender: No OFD packet to send [21:21:52]OFD Sender: No OFD packet to send [21:21:57]OFD Sender: No OFD packet to send [21:22:02]OFD Sender: No OFD packet to send [21:22:07]OFD Sender: No OFD packet to send [21:22:12]OFD Sender: No OFD packet to send [21:22:17]OFD Sender: No OFD packet to send [21:22:22]OFD Sender: No OFD packet to send [21:22:27]OFD Sender: No OFD packet to send [21:22:32]OFD Sender: No OFD packet to send [21:22:37]OFD Sender: No OFD packet to send [21:22:42]OFD Sender: No OFD packet to send [21:22:47]OFD Sender: No OFD packet to send [21:22:47]accept exits with 8 [21:22:47]New connection [21:22:47]New thread 3066682724 created [21:22:47]Thread 3066826084 joined [21:22:47]Waiting for new connection... [21:22:47] Sock 8.Parse request [21:22:47]Sock 8.Check first char [21:22:47]Sock 8.First char is OK [21:22:47]request: POST /json_proto HTTP/1.0 [21:22:47]Method: POST [21:22:47]URL: /json_proto [21:22:47]Method is POST - this is cgi request [21:22:47]url: /json_proto [21:22:47]query_string will be loaded in cgi processing [21:22:47]execute_cgi json_proto POST (null) [21:22:47]execute_cgi path=json_proto method=POST [21:22:47]POST find Content-Length [21:22:47]Host: 172.17.96.197:8080 [21:22:47]Content-Length: 676 [21:22:47]Content-Type: application/json [21:22:47] [21:22:47]POST finish read [21:22:47]Found Content-Length = 676 [21:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.690, "sum" : 340.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:47]execute_script... [21:22: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)48740", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 72.50, "quantity" : 4.690, "sum" : 340.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:22:47]POST & json_proto [21:22:47]process_json_proto [21:22:47]json parsed OK: [21:22:47]protocol is kg_v1.0 [21:22:47]action value=close_receipt [21:22:47]process_action close_receipt [21:22:47]cmd_close_receipt [21:22:47]MH_GetDate [21:22:47]Write to MH i2c: F0 00 00 E6 30 05 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: F0 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: F0 09 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: F0 09 00 E6 30 00 29 49 1C 66 E0 85 7F 64 4A [21:22:47]GetLastDocTimeStamp 1713129480 [21:22:47]current date 1713129769 [21:22:47]FM_GetShiftState [21:22:47]SAM_PROTO_GetShiftState [21:22:47]wFMCommunicate request_size=4 [21:22:47]MH_SAM_APDU [21:22:47]CAPDU: 80 13 01 00 [21:22:47]Write to MH i2c: E2 08 00 E7 30 80 13 01 00 00 00 00 00 94 [21:22:47]Write i2c OK [21:22:47]MH_I2C_Read... [21:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:47]Read from MH i2c: E2 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0E 00 [21:22:47]MH_I2C_Read... [21:22:47]Read from MH i2c: E2 0E 00 E7 30 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2C [21:22:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:22:47]wFMCommunicate OK [21:22:47]SAM_PROTO_GetShiftState done [21:22:47]FM_GetShiftState done [21:22:47]opened in 1713054696 [21:22:47]opened+sec_in_day 1713141096 [21:22:47]quantity*price = 34002 [21:22:47]sum+1 = 34004 [21:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 345 14.04.2024 21:22 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112446 ФПД: 128260100596127 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T212249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112446&fm=128260100596127&tin=02508201610067®Number=0000000000094237&sum=34000 [21:22:49]StoreToDocumentArchive [21:22:49]shift 357 fd 112446 [21:22:49]save to /storage/0357/doc_00112446 [21:22:49]save last doc name /storage/0357/doc_00112446 to /storage/kkm_last_doc_name [21:22:49]save OK [21:22:49]Clear old archive folders... [21:22:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:22:49]tlvbuf is 001F7F20 [21:22:49]SAM_PROTO_ClearQueue [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 09 00 00 [21:22:49]Write to MH i2c: E2 08 00 F4 30 80 09 00 00 00 00 00 00 96 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 F4 30 00 90 00 98 [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]SAM_PROTO_ClearQueue done [21:22:49]KKMCreateOFDPacket [21:22:49]OFDProtocolAddRootSTLVToBuf [21:22:49]FM_MakeSignedData [21:22:49]FM_MakeSignedData [21:22:49]SAM_PROTO_SignData [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 01 02 [21:22:49]Write to MH i2c: E2 08 00 F5 30 80 0D 01 02 00 00 00 00 9E [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 F5 30 00 90 00 99 [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=255 [21:22:49]MH_SAM_APDU [21:22: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 52 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 29 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B7 01 00 35 04 06 00 74 [21:22:49]Write to MH i2c: E2 02 01 F6 30 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 52 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 29 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B7 01 00 35 04 06 00 74 00 00 F0 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 F6 30 00 90 00 9A [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=10 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 02 02 05 A6 E1 BC 21 9F [21:22:49]Write to MH i2c: E2 0D 00 F7 30 80 0D 02 02 05 00 A6 E1 BC 21 9F 00 00 AE [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 03 00 F7 30 00 90 00 9B [21:22:49]RAPDU: 90 00 [21:22:49]wFMCommunicate OK [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 0D 03 02 [21:22:49]Write to MH i2c: E2 08 00 F8 30 80 0D 03 02 00 00 00 00 A3 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 0B 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 0B 00 F8 30 00 04 A8 08 40 31 A6 5C 3D 90 00 08 [21:22:49]RAPDU: 04 A8 08 40 31 A6 5C 3D 90 00 [21:22:49]wFMCommunicate OK [21:22:49]SAM_PROTO_SignData done [21:22:49]FM_MakeSignedData done [21:22:49]CreateOFDProtocolMessage [21:22:49]wFMCommunicate request_size=4 [21:22:49]MH_SAM_APDU [21:22:49]CAPDU: 80 11 00 00 [21:22:49]Write to MH i2c: E2 08 00 F9 30 80 11 00 00 00 00 00 00 A3 [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:49]Read from MH i2c: E2 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 17 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: E2 17 00 F9 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F4 [21:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:22:49]wFMCommunicate OK [21:22:49]CreateOFDProtocolMessage done [21:22:49]OFDSenderStorePacket 112446 [21:22:49]StoreOFDPacket docnum=112446 [21:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 76 27 07 01 68 AE 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 52 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 29 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B7 01 00 35 04 06 00 74 A6 E1 BC 21 9F 04 A8 08 40 31 A6 5C 3D [21:22:49]CheckFolder [21:22:49]dirname=/storage/ofd_packets [21:22:49]CheckFolder done [21:22:49]ProducePacketName [21:22:49]name=ofd_packets/00112446 [21:22:49]NVStorageSaveData ofd_packets/00112446 [21:22:49]File name is /storage/ofd_packets/00112446 [21:22:49]Write 301 bytes [21:22:49]NVStorageSaveData done [21:22:49]OFDSenderStorePacket done [21:22:49]KKMCreateOFDPacket done [21:22:49]NVStorageSaveData kkm_last_timestamp [21:22:49]File name is /storage/kkm_last_timestamp [21:22:49]Write 4 bytes [21:22:49]NVStorageSaveData done [21:22:49]ExternCall_PrintAddStr [21:22:49]wPrintStart [21:22:49]Write to MH i2c: 01 00 00 FA 30 2A [21:22:49]Write i2c OK [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 07 00 [21:22:49]MH_I2C_Read... [21:22:49]Read from MH i2c: 01 07 00 FA 30 00 00 00 00 00 FF 0F 3F [21:22:49]RasterBufferAndPrint [21:22:49]line Счет N : (1)48740 [21:22:49]line ИНН: 02508201610067 [21:22:49]line Контрольно-Кассовый Чек [21:22:49]line ПРОДАЖА [21:22:49]line ТРК (МРК, ГНК) : 22 [21:22:49]line Товар: 2710124500 [21:22:49]line Аи-95-К-5 [21:22:49]line 4.690 * 72.50 [21:22:49]line = 340.03 [21:22:49]line НДС 12% НСП 1% [21:22:49]line > о реализуемом товаре [21:22:49]line ОКРУГЛЕНИЕ: -0.03 [21:22:49]line ИТОГО: 340.00 [21:22:49]line Внесено: 340.00 [21:22:49]line СДАЧА: 0.00 [21:22:49]line НСП 1% : 3.01 [21:22:49]line НДС 12% : 36.11 [21:22:49]line Наличными: 340.00 [21:22:49]line Безнал.: 0.00 [21:22:49]line Место: АЗС № 47 "Партнер Нефть" [21:22:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:22:49]line СНО: Общий режим [21:22:49]line Чек 345 14.04.2024 21:22 [21:22:49]line Смена: 357 ФФД: 1.0 [21:22:49]line ЗНМ: 0300000138 [21:22:49]line РНМ: 0000000000094237 [21:22:49]line Версия ККМ: 001 [21:22:49]line ФМ: 0000000000875019 [21:22:49]line ФД: 112446 [21:22:49]line ФПД: 128260100596127 [21:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T212249&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112446&fm=128260100596127&tin=02508201610067®Number=0000000000094237&sum=34000 [21:22:49]OFD Sender: Processing packet 112446 [packets to send 71, broken 70] [21:22:49]ProducePacketName [21:22:49]name=ofd_packets/00112446 [21:22:49]OFD Sender: To server: pG, [21:22:49]CommunicateWithHost lk.salyk.kg:30040 [21:22:49]ConnectInit lk.salyk.kg [21:22:49]written 0, free lines is 4095 [21:22:50]Connected sock=11 [21:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 76 27 07 01 68 AE 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 52 12 00 00 00 00 00 37 04 06 00 52 1C 00 00 00 00 13 04 06 00 D3 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 01 00 00 F4 03 04 00 29 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B7 01 00 35 04 06 00 74 A6 E1 BC 21 9F 04 A8 08 40 31 A6 5C 3D [21:22:50]Write to MH i2c: 01 00 00 25 31 56 [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: 01 07 00 25 31 00 00 00 00 00 E4 0C 4D [21:22:50]RasterBufferAndPrint [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]line [21:22:50]written 0, free lines is 3306 [21:22:50]MH_Cut [21:22:50]Write to MH i2c: D1 01 00 2C 31 01 2F [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 [21:22:50]MH_I2C_Read... [21:22:50]Read from MH i2c: D1 01 00 2C 31 00 2E [21:22:50]Write to MH i2c: 01 00 00 2D 31 5E [21:22:50]Write i2c OK [21:22:50]MH_I2C_Read... [21:22:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A4 1B 47 00 B4 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3E B7 01 00 F4 03 04 00 B4 F0 1B 66 B6 04 01 00 00 E8 FC 6D 3D 81 2E 86 D1 [21:22:50]CommunicateWithHost err = 0 [21:22:50]CheckOFDResponse [21:22:50]1017 (14) - 77093643461234 [21:22:50]1041 (16) - 0000000000875019 [21:22:50]1040 (4) - 112446 [21:22:50]1012 (4) - 14.04.2024 15:05 [21:22:50]1206 (1) - 0 [21:22:50]OFD Sender: Remove packet 112446 [21:22:50]ProducePacketName [21:22:50]name=ofd_packets/00112446 [21:22:50]NVStorageDeleteData [21:22:50]OFD Sender: No OFD packet to send [21:22:51]*** Cut start [21:22:51]*** Partial cut [21:22:51]*** CUTSNS_PIN = 1 [21:22:51]*** CUTSNS_PIN = 0 [21:22:51]*** Brake cut motor [21:22:51]Read from MH i2c: 01 [21:22:51]MH_I2C_Read... [21:22:51]*** Stop cut motor [21:22:51]*** Cut end [21:22:51]Read from MH i2c: 01 07 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: 01 07 00 2D 31 00 00 00 00 00 FF 0F 73 [21:22:51]process_action close_receipt done [21:22:51]requested_data is exist [21:22:51]produce_requested_data [21:22:51]requested_item fm.sn is exist - process it [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 11 00 00 [21:22:51]Write to MH i2c: E2 08 00 2E 31 80 11 00 00 00 00 00 00 D9 [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 17 00 2E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2A [21:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:22:51]wFMCommunicate OK [21:22:51]requested_item fd.num is exist - process it [21:22:51]SAM_PROTO_GetFieldsCounters [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 00 00 [21:22:51]Write to MH i2c: E2 08 00 2F 31 80 13 00 00 00 00 00 00 DC [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 62 00 2F 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [21:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:22:51]wFMCommunicate OK [21:22:51]SAM_PROTO_GetFieldsCounters done [21:22:51]requested_item shift.num is exist - process it [21:22:51]requested_item shift.opened is exist - process it [21:22:51]req_shift_opened [21:22:51]FM_GetShiftState [21:22:51]SAM_PROTO_GetShiftState [21:22:51]wFMCommunicate request_size=4 [21:22:51]MH_SAM_APDU [21:22:51]CAPDU: 80 13 01 00 [21:22:51]Write to MH i2c: E2 08 00 30 31 80 13 01 00 00 00 00 00 DE [21:22:51]Write i2c OK [21:22:51]MH_I2C_Read... [21:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:22:51]Read from MH i2c: E2 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 0E 00 [21:22:51]MH_I2C_Read... [21:22:51]Read from MH i2c: E2 0E 00 30 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [21:22:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:22:51]wFMCommunicate OK [21:22:51]SAM_PROTO_GetShiftState done [21:22:51]FM_GetShiftState done [21:22:51]req_shift_opened done [21:22:51]requested_item shift.open_date is exist - process it [21:22:51]req_shift_open_date [21:22:51]req_shift_open_date done [21:22:51]produce_requested_data done [21:22:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112446,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:22:51]process_action_free close_receipt [21:22:51]json_value_free [21:22:51]json_value_free done [21:22:51]process_json_proto returns [21:22:51]Send response to host [21:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112446,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:22:51]free response buf [21:22:51]execute_script done [21:22:51]execute_script returns [21:22:51]free content buf [21:22:51]Sock 8.Close socket [21:22:51]Sock 8.Thread stoped [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:26]OFD Sender: No OFD packet to send [21:23:31]OFD Sender: No OFD packet to send [21:23:36]OFD Sender: No OFD packet to send [21:23:41]OFD Sender: No OFD packet to send [21:23:46]OFD Sender: No OFD packet to send [21:23:51]OFD Sender: No OFD packet to send [21:23:56]OFD Sender: No OFD packet to send [21:24:01]OFD Sender: No OFD packet to send [21:24:06]OFD Sender: No OFD packet to send [21:24:11]OFD Sender: No OFD packet to send [21:24:16]OFD Sender: No OFD packet to send [21:24:21]OFD Sender: No OFD packet to send [21:24:26]OFD Sender: No OFD packet to send [21:24:31]OFD Sender: No OFD packet to send [21:24:36]OFD Sender: No OFD packet to send [21:24:41]OFD Sender: No OFD packet to send [21:24:46]OFD Sender: No OFD packet to send [21:24:50]accept exits with 9 [21:24:50]New connection [21:24:50]New thread 3066826084 created [21:24:50]Thread 3066682724 joined [21:24:50]Waiting for new connection... [21:24:50] Sock 9.Parse request [21:24:50]Sock 9.Check first char [21:24:50]Sock 9.First char is OK [21:24:50]request: POST /json_proto HTTP/1.0 [21:24:50]Method: POST [21:24:50]URL: /json_proto [21:24:50]Method is POST - this is cgi request [21:24:50]url: /json_proto [21:24:50]query_string will be loaded in cgi processing [21:24:50]execute_cgi json_proto POST (null) [21:24:50]execute_cgi path=json_proto method=POST [21:24:50]POST find Content-Length [21:24:50]Host: 172.17.96.197:8080 [21:24:50]Content-Length: 676 [21:24:50]Content-Type: application/json [21:24:50] [21:24:50]POST finish read [21:24:50]Found Content-Length = 676 [21:24:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:24:50]execute_script... [21:24: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)48741", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:24:50]POST & json_proto [21:24:50]process_json_proto [21:24:50]json parsed OK: [21:24:50]protocol is kg_v1.0 [21:24:50]action value=close_receipt [21:24:50]process_action close_receipt [21:24:50]cmd_close_receipt [21:24:50]MH_GetDate [21:24:50]Write to MH i2c: F0 00 00 31 31 51 [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: F0 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: F0 09 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: F0 09 00 31 31 00 A4 49 1C 66 E0 85 7F 64 11 [21:24:50]GetLastDocTimeStamp 1713129769 [21:24:50]current date 1713129892 [21:24:50]FM_GetShiftState [21:24:50]SAM_PROTO_GetShiftState [21:24:50]wFMCommunicate request_size=4 [21:24:50]MH_SAM_APDU [21:24:50]CAPDU: 80 13 01 00 [21:24:50]Write to MH i2c: E2 08 00 32 31 80 13 01 00 00 00 00 00 E0 [21:24:50]Write i2c OK [21:24:50]MH_I2C_Read... [21:24:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:50]Read from MH i2c: E2 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 0E 00 [21:24:50]MH_I2C_Read... [21:24:50]Read from MH i2c: E2 0E 00 32 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 78 [21:24:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:24:50]wFMCommunicate OK [21:24:50]SAM_PROTO_GetShiftState done [21:24:50]FM_GetShiftState done [21:24:50]opened in 1713054696 [21:24:50]opened+sec_in_day 1713141096 [21:24:50]quantity*price = 50025 [21:24:50]sum+1 = 50026 [21:24:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 346 14.04.2024 21:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112447 ФПД: 29018771592415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T212452&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112447&fm=29018771592415&tin=02508201610067®Number=0000000000094237&sum=50000 [21:24:51]StoreToDocumentArchive [21:24:51]shift 357 fd 112447 [21:24:51]save to /storage/0357/doc_00112447 [21:24:51]save last doc name /storage/0357/doc_00112447 to /storage/kkm_last_doc_name [21:24:51]save OK [21:24:51]Clear old archive folders... [21:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:24:51]tlvbuf is 00268620 [21:24:51]SAM_PROTO_ClearQueue [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 09 00 00 [21:24:51]Write to MH i2c: E2 08 00 3F 31 80 09 00 00 00 00 00 00 E2 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:51]Read from MH i2c: E2 03 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 3F 31 00 90 00 E4 [21:24:51]RAPDU: 90 00 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_ClearQueue done [21:24:51]KKMCreateOFDPacket [21:24:51]OFDProtocolAddRootSTLVToBuf [21:24:51]FM_MakeSignedData [21:24:51]FM_MakeSignedData [21:24:51]SAM_PROTO_SignData [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 0D 01 02 [21:24:51]Write to MH i2c: E2 08 00 40 31 80 0D 01 02 00 00 00 00 EA [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 40 31 00 90 00 E5 [21:24:51]RAPDU: 90 00 [21:24:51]wFMCommunicate OK [21:24:51]wFMCommunicate request_size=255 [21:24:51]MH_SAM_APDU [21:24:51]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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 5A 01 00 00 F4 03 04 00 A4 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B7 01 00 35 04 06 00 1A [21:24:51]Write to MH i2c: E2 02 01 41 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 5A 01 00 00 F4 03 04 00 A4 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B7 01 00 35 04 06 00 1A 00 00 CE [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 41 31 00 90 00 E6 [21:24:51]RAPDU: 90 00 [21:24:51]wFMCommunicate OK [21:24:51]wFMCommunicate request_size=10 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 0D 02 02 05 64 75 92 94 DF [21:24:51]Write to MH i2c: E2 0D 00 42 31 80 0D 02 02 05 00 64 75 92 94 DF 00 00 D5 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 03 00 42 31 00 90 00 E7 [21:24:51]RAPDU: 90 00 [21:24:51]wFMCommunicate OK [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 0D 03 02 [21:24:51]Write to MH i2c: E2 08 00 43 31 80 0D 03 02 00 00 00 00 EF [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0B 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0B 00 43 31 00 E7 40 F5 2C 63 1B B6 FC 90 00 68 [21:24:51]RAPDU: E7 40 F5 2C 63 1B B6 FC 90 00 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_SignData done [21:24:51]FM_MakeSignedData done [21:24:51]CreateOFDProtocolMessage [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 11 00 00 [21:24:51]Write to MH i2c: E2 08 00 44 31 80 11 00 00 00 00 00 00 EF [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 44 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 40 [21:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:24:51]wFMCommunicate OK [21:24:51]CreateOFDProtocolMessage done [21:24:51]OFDSenderStorePacket 112447 [21:24:51]StoreOFDPacket docnum=112447 [21:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EE 20 07 01 2E FF 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 5A 01 00 00 F4 03 04 00 A4 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B7 01 00 35 04 06 00 1A 64 75 92 94 DF E7 40 F5 2C 63 1B B6 FC [21:24:51]CheckFolder [21:24:51]dirname=/storage/ofd_packets [21:24:51]CheckFolder done [21:24:51]ProducePacketName [21:24:51]name=ofd_packets/00112447 [21:24:51]NVStorageSaveData ofd_packets/00112447 [21:24:51]File name is /storage/ofd_packets/00112447 [21:24:51]Write 301 bytes [21:24:51]NVStorageSaveData done [21:24:51]OFDSenderStorePacket done [21:24:51]KKMCreateOFDPacket done [21:24:51]NVStorageSaveData kkm_last_timestamp [21:24:51]File name is /storage/kkm_last_timestamp [21:24:51]Write 4 bytes [21:24:51]NVStorageSaveData done [21:24:51]ExternCall_PrintAddStr [21:24:51]wPrintStart [21:24:51]Write to MH i2c: 01 00 00 45 31 76 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: 01 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: 01 07 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: 01 07 00 45 31 00 00 00 00 00 FF 0F 8B [21:24:51]RasterBufferAndPrint [21:24:51]line Счет N : (1)48741 [21:24:51]line ИНН: 02508201610067 [21:24:51]line Контрольно-Кассовый Чек [21:24:51]line ПРОДАЖА [21:24:51]line ТРК (МРК, ГНК) : 21 [21:24:51]line Товар: 2710124130 [21:24:51]line Аи-92-К-5 [21:24:51]line 7.780 * 64.30 [21:24:51]line = 500.25 [21:24:51]line НДС 12% НСП 1% [21:24:51]line > о реализуемом товаре [21:24:51]line ОКРУГЛЕНИЕ: -0.25 [21:24:51]line ИТОГО: 500.00 [21:24:51]line Внесено: 500.00 [21:24:51]line СДАЧА: 0.00 [21:24:51]line НСП 1% : 4.43 [21:24:51]line НДС 12% : 53.12 [21:24:51]line Наличными: 500.00 [21:24:51]line Безнал.: 0.00 [21:24:51]line Место: АЗС № 47 "Партнер Нефть" [21:24:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:24:51]line СНО: Общий режим [21:24:51]line Чек 346 14.04.2024 21:24 [21:24:51]line Смена: 357 ФФД: 1.0 [21:24:51]line ЗНМ: 0300000138 [21:24:51]line РНМ: 0000000000094237 [21:24:51]line Версия ККМ: 001 [21:24:51]line ФМ: 0000000000875019 [21:24:51]line ФД: 112447 [21:24:51]line ФПД: 29018771592415 [21:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T212452&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112447&fm=29018771592415&tin=02508201610067®Number=0000000000094237&sum=50000 [21:24:52]written 0, free lines is 4095 [21:24:52]OFD Sender: Processing packet 112447 [packets to send 71, broken 70] [21:24:52]ProducePacketName [21:24:52]name=ofd_packets/00112447 [21:24:52]OFD Sender: To server: pG, [21:24:52]CommunicateWithHost lk.salyk.kg:30040 [21:24:52]ConnectInit lk.salyk.kg [21:24:52]Connected sock=10 [21:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EE 20 07 01 2E FF 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 5A 01 00 00 F4 03 04 00 A4 49 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 3F B7 01 00 35 04 06 00 1A 64 75 92 94 DF E7 40 F5 2C 63 1B B6 FC [21:24:52]Write to MH i2c: 01 00 00 70 31 A1 [21:24:52]Write i2c OK [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: 01 [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: 01 07 00 [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: 01 07 00 70 31 00 00 00 00 00 D7 0C 8B [21:24:52]RasterBufferAndPrint [21:24:52]line [21:24:52]line [21:24:52]line [21:24:52]line [21:24:52]line [21:24:52]written 0, free lines is 3294 [21:24:52]MH_Cut [21:24:52]Write to MH i2c: D1 01 00 77 31 01 7A [21:24:52]Write i2c OK [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: D1 [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: D1 01 00 [21:24:52]MH_I2C_Read... [21:24:52]Read from MH i2c: D1 01 00 77 31 00 79 [21:24:52]Write to MH i2c: 01 00 00 78 31 A9 [21:24:52]Write i2c OK [21:24:52]MH_I2C_Read... [21:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 03 47 00 E5 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 38 37 35 30 31 39 10 04 04 00 3F B7 01 00 F4 03 04 00 2E F1 1B 66 B6 04 01 00 00 20 75 77 21 5E 61 64 A2 [21:24:52]CommunicateWithHost err = 0 [21:24:52]CheckOFDResponse [21:24:52]1017 (14) - 77093643461234 [21:24:52]1041 (16) - 0000000000875019 [21:24:52]1040 (4) - 112447 [21:24:52]1012 (4) - 14.04.2024 15:07 [21:24:52]1206 (1) - 0 [21:24:52]OFD Sender: Remove packet 112447 [21:24:52]ProducePacketName [21:24:52]name=ofd_packets/00112447 [21:24:52]NVStorageDeleteData [21:24:53]OFD Sender: No OFD packet to send [21:24:53]*** Cut start [21:24:53]*** Partial cut [21:24:53]*** CUTSNS_PIN = 1 [21:24:53]*** CUTSNS_PIN = 0 [21:24:53]*** Brake cut motor [21:24:54]Read from MH i2c: 01 [21:24:54]MH_I2C_Read... [21:24:54]*** Stop cut motor [21:24:54]*** Cut end [21:24:54]Read from MH i2c: 01 07 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: 01 07 00 78 31 00 00 00 00 00 FF 0F BE [21:24:54]process_action close_receipt done [21:24:54]requested_data is exist [21:24:54]produce_requested_data [21:24:54]requested_item fm.sn is exist - process it [21:24:54]wFMCommunicate request_size=4 [21:24:54]MH_SAM_APDU [21:24:54]CAPDU: 80 11 00 00 [21:24:54]Write to MH i2c: E2 08 00 79 31 80 11 00 00 00 00 00 00 24 [21:24:54]Write i2c OK [21:24:54]MH_I2C_Read... [21:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:54]Read from MH i2c: E2 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 17 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 17 00 79 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 75 [21:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:24:54]wFMCommunicate OK [21:24:54]requested_item fd.num is exist - process it [21:24:54]SAM_PROTO_GetFieldsCounters [21:24:54]wFMCommunicate request_size=4 [21:24:54]MH_SAM_APDU [21:24:54]CAPDU: 80 13 00 00 [21:24:54]Write to MH i2c: E2 08 00 7A 31 80 13 00 00 00 00 00 00 27 [21:24:54]Write i2c OK [21:24:54]MH_I2C_Read... [21:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:54]Read from MH i2c: E2 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 62 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 62 00 7A 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [21:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 3F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:24:54]wFMCommunicate OK [21:24:54]SAM_PROTO_GetFieldsCounters done [21:24:54]requested_item shift.num is exist - process it [21:24:54]requested_item shift.opened is exist - process it [21:24:54]req_shift_opened [21:24:54]FM_GetShiftState [21:24:54]SAM_PROTO_GetShiftState [21:24:54]wFMCommunicate request_size=4 [21:24:54]MH_SAM_APDU [21:24:54]CAPDU: 80 13 01 00 [21:24:54]Write to MH i2c: E2 08 00 7B 31 80 13 01 00 00 00 00 00 29 [21:24:54]Write i2c OK [21:24:54]MH_I2C_Read... [21:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:54]Read from MH i2c: E2 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 0E 00 [21:24:54]MH_I2C_Read... [21:24:54]Read from MH i2c: E2 0E 00 7B 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C1 [21:24:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:24:54]wFMCommunicate OK [21:24:54]SAM_PROTO_GetShiftState done [21:24:54]FM_GetShiftState done [21:24:54]req_shift_opened done [21:24:54]requested_item shift.open_date is exist - process it [21:24:54]req_shift_open_date [21:24:54]req_shift_open_date done [21:24:54]produce_requested_data done [21:24:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112447,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:24:54]process_action_free close_receipt [21:24:54]json_value_free [21:24:54]json_value_free done [21:24:54]process_json_proto returns [21:24:54]Send response to host [21:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112447,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:24:54]free response buf [21:24:54]execute_script done [21:24:54]execute_script returns [21:24:54]free content buf [21:24:54]Sock 9.Close socket [21:24:54]Sock 9.Thread stoped [21:24:58]OFD Sender: No OFD packet to send [21:25:03]OFD Sender: No OFD packet to send [21:25:08]OFD Sender: No OFD packet to send [21:25:13]OFD Sender: No OFD packet to send [21:25:18]OFD Sender: No OFD packet to send [21:25:23]OFD Sender: No OFD packet to send [21:25:28]OFD Sender: No OFD packet to send [21:25:33]OFD Sender: No OFD packet to send [21:25:38]OFD Sender: No OFD packet to send [21:25:43]OFD Sender: No OFD packet to send [21:25:48]OFD Sender: No OFD packet to send [21:25:53]OFD Sender: No OFD packet to send [21:25:58]OFD Sender: No OFD packet to send [21:26:03]OFD Sender: No OFD packet to send [21:26:08]OFD Sender: No OFD packet to send [21:26:13]OFD Sender: No OFD packet to send [21:26:18]OFD Sender: No OFD packet to send [21:26:23]OFD Sender: No OFD packet to send [21:26:28]OFD Sender: No OFD packet to send [21:26:33]OFD Sender: No OFD packet to send [21:26:38]OFD Sender: No OFD packet to send [21:26:43]OFD Sender: No OFD packet to send [21:26:48]OFD Sender: No OFD packet to send [21:26:53]OFD Sender: No OFD packet to send [21:26:58]OFD Sender: No OFD packet to send [21:27:03]OFD Sender: No OFD packet to send [21:27:08]OFD Sender: No OFD packet to send [21:27:13]OFD Sender: No OFD packet to send [21:27:18]OFD Sender: No OFD packet to send [21:27:23]OFD Sender: No OFD packet to send [21:27:28]OFD Sender: No OFD packet to send [21:27:33]OFD Sender: No OFD packet to send [21:27:38]OFD Sender: No OFD packet to send [21:27:43]OFD Sender: No OFD packet to send [21:27:48]OFD Sender: No OFD packet to send [21:27:53]OFD Sender: No OFD packet to send [21:27:58]OFD Sender: No OFD packet to send [21:28:03]OFD Sender: No OFD packet to send [21:28:08]OFD Sender: No OFD packet to send [21:28:13]OFD Sender: No OFD packet to send [21:28:18]OFD Sender: No OFD packet to send [21:28:23]OFD Sender: No OFD packet to send [21:28:28]OFD Sender: No OFD packet to send [21:28:33]OFD Sender: No OFD packet to send [21:28:38]OFD Sender: No OFD packet to send [21:28:43]OFD Sender: No OFD packet to send [21:28:48]OFD Sender: No OFD packet to send [21:28:53]OFD Sender: No OFD packet to send [21:28:58]OFD Sender: No OFD packet to send [21:29:03]OFD Sender: No OFD packet to send [21:29:08]OFD Sender: No OFD packet to send [21:29:13]OFD Sender: No OFD packet to send [21:29:18]OFD Sender: No OFD packet to send [21:29:23]OFD Sender: No OFD packet to send [21:29:28]OFD Sender: No OFD packet to send [21:29:33]OFD Sender: No OFD packet to send [21:29:38]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:47]accept exits with 8 [21:31:47]New connection [21:31:47]New thread 3066682724 created [21:31:47]Thread 3066826084 joined [21:31:47]Waiting for new connection... [21:31:47] Sock 8.Parse request [21:31:47]Sock 8.Check first char [21:31:47]Sock 8.First char is OK [21:31:47]request: POST /json_proto HTTP/1.0 [21:31:47]Method: POST [21:31:47]URL: /json_proto [21:31:47]Method is POST - this is cgi request [21:31:47]url: /json_proto [21:31:47]query_string will be loaded in cgi processing [21:31:47]execute_cgi json_proto POST (null) [21:31:47]execute_cgi path=json_proto method=POST [21:31:47]POST find Content-Length [21:31:47]Host: 172.17.96.197:8080 [21:31:47]Content-Length: 677 [21:31:47]Content-Type: application/json [21:31:47] [21:31:47]POST finish read [21:31:47]Found Content-Length = 677 [21:31:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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" ] } } [21:31:47]execute_script... [21:31: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)48742", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 12.450, "sum" : 800.54, "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" ] } } [21:31:47]POST & json_proto [21:31:47]process_json_proto [21:31:47]json parsed OK: [21:31:47]protocol is kg_v1.0 [21:31:47]action value=close_receipt [21:31:47]process_action close_receipt [21:31:47]cmd_close_receipt [21:31:47]MH_GetDate [21:31:47]Write to MH i2c: F0 00 00 7C 31 9C [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: F0 09 00 7C 31 00 45 4B 1C 66 E0 85 7F 64 FF [21:31:47]GetLastDocTimeStamp 1713129892 [21:31:47]current date 1713130309 [21:31:47]FM_GetShiftState [21:31:47]SAM_PROTO_GetShiftState [21:31:47]wFMCommunicate request_size=4 [21:31:47]MH_SAM_APDU [21:31:47]CAPDU: 80 13 01 00 [21:31:47]Write to MH i2c: E2 08 00 7D 31 80 13 01 00 00 00 00 00 2B [21:31:47]Write i2c OK [21:31:47]MH_I2C_Read... [21:31:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:47]Read from MH i2c: E2 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 [21:31:47]MH_I2C_Read... [21:31:47]Read from MH i2c: E2 0E 00 7D 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C3 [21:31:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:31:47]wFMCommunicate OK [21:31:47]SAM_PROTO_GetShiftState done [21:31:47]FM_GetShiftState done [21:31:47]opened in 1713054696 [21:31:47]opened+sec_in_day 1713141096 [21:31:47]quantity*price = 80053 [21:31:47]sum+1 = 80055 [21:31:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 347 14.04.2024 21:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112448 ФПД: 80102729984093 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213149&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112448&fm=80102729984093&tin=02508201610067®Number=0000000000094237&sum=80000 [21:31:49]StoreToDocumentArchive [21:31:49]shift 357 fd 112448 [21:31:49]save to /storage/0357/doc_00112448 [21:31:49]save last doc name /storage/0357/doc_00112448 to /storage/kkm_last_doc_name [21:31:49]save OK [21:31:49]Clear old archive folders... [21:31:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:31:49]tlvbuf is 001C2030 [21:31:49]SAM_PROTO_ClearQueue [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 09 00 00 [21:31:49]Write to MH i2c: E2 08 00 8A 31 80 09 00 00 00 00 00 00 2D [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 8A 31 00 90 00 2F [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]SAM_PROTO_ClearQueue done [21:31:49]KKMCreateOFDPacket [21:31:49]OFDProtocolAddRootSTLVToBuf [21:31:49]FM_MakeSignedData [21:31:49]FM_MakeSignedData [21:31:49]SAM_PROTO_SignData [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 01 02 [21:31:49]Write to MH i2c: E2 08 00 8B 31 80 0D 01 02 00 00 00 00 35 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 8B 31 00 90 00 30 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=255 [21:31:49]MH_SAM_APDU [21:31: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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 5B 01 00 00 F4 03 04 00 45 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B7 01 00 35 04 06 00 48 [21:31:49]Write to MH i2c: E2 02 01 8C 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 5B 01 00 00 F4 03 04 00 45 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B7 01 00 35 04 06 00 48 00 00 D7 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 8C 31 00 90 00 31 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=10 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 02 02 05 DA 5E C4 28 5D [21:31:49]Write to MH i2c: E2 0D 00 8D 31 80 0D 02 02 05 00 DA 5E C4 28 5D 00 00 C3 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 03 00 8D 31 00 90 00 32 [21:31:49]RAPDU: 90 00 [21:31:49]wFMCommunicate OK [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 0D 03 02 [21:31:49]Write to MH i2c: E2 08 00 8E 31 80 0D 03 02 00 00 00 00 3A [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 0B 00 8E 31 00 13 B6 DF 92 06 03 3F 6C 90 00 29 [21:31:49]RAPDU: 13 B6 DF 92 06 03 3F 6C 90 00 [21:31:49]wFMCommunicate OK [21:31:49]SAM_PROTO_SignData done [21:31:49]FM_MakeSignedData done [21:31:49]CreateOFDProtocolMessage [21:31:49]wFMCommunicate request_size=4 [21:31:49]MH_SAM_APDU [21:31:49]CAPDU: 80 11 00 00 [21:31:49]Write to MH i2c: E2 08 00 8F 31 80 11 00 00 00 00 00 00 3A [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:49]Read from MH i2c: E2 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: E2 17 00 8F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8B [21:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:31:49]wFMCommunicate OK [21:31:49]CreateOFDProtocolMessage done [21:31:49]OFDSenderStorePacket 112448 [21:31:49]StoreOFDPacket docnum=112448 [21:31:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3C 37 07 01 ED 0A 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 5B 01 00 00 F4 03 04 00 45 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B7 01 00 35 04 06 00 48 DA 5E C4 28 5D 13 B6 DF 92 06 03 3F 6C [21:31:49]CheckFolder [21:31:49]dirname=/storage/ofd_packets [21:31:49]CheckFolder done [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00112448 [21:31:49]NVStorageSaveData ofd_packets/00112448 [21:31:49]File name is /storage/ofd_packets/00112448 [21:31:49]Write 301 bytes [21:31:49]NVStorageSaveData done [21:31:49]OFDSenderStorePacket done [21:31:49]KKMCreateOFDPacket done [21:31:49]NVStorageSaveData kkm_last_timestamp [21:31:49]File name is /storage/kkm_last_timestamp [21:31:49]Write 4 bytes [21:31:49]NVStorageSaveData done [21:31:49]ExternCall_PrintAddStr [21:31:49]wPrintStart [21:31:49]Write to MH i2c: 01 00 00 90 31 C1 [21:31:49]Write i2c OK [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 [21:31:49]MH_I2C_Read... [21:31:49]Read from MH i2c: 01 07 00 90 31 00 00 00 00 00 FF 0F D6 [21:31:49]RasterBufferAndPrint [21:31:49]line Счет N : (1)48742 [21:31:49]line ИНН: 02508201610067 [21:31:49]line Контрольно-Кассовый Чек [21:31:49]line ПРОДАЖА [21:31:49]line ТРК (МРК, ГНК) : 21 [21:31:49]line Товар: 2710124130 [21:31:49]line Аи-92-К-5 [21:31:49]line 12.450 * 64.30 [21:31:49]line = 800.54 [21:31:49]line НДС 12% НСП 1% [21:31:49]line > о реализуемом товаре [21:31:49]line ОКРУГЛЕНИЕ: -0.54 [21:31:49]line ИТОГО: 800.00 [21:31:49]line Внесено: 800.00 [21:31:49]line СДАЧА: 0.00 [21:31:49]line НСП 1% : 7.08 [21:31:49]line НДС 12% : 85.01 [21:31:49]line Наличными: 800.00 [21:31:49]line Безнал.: 0.00 [21:31:49]line Место: АЗС № 47 "Партнер Нефть" [21:31:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:31:49]line СНО: Общий режим [21:31:49]line Чек 347 14.04.2024 21:31 [21:31:49]line Смена: 357 ФФД: 1.0 [21:31:49]line ЗНМ: 0300000138 [21:31:49]line РНМ: 0000000000094237 [21:31:49]line Версия ККМ: 001 [21:31:49]line ФМ: 0000000000875019 [21:31:49]line ФД: 112448 [21:31:49]line ФПД: 80102729984093 [21:31:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213149&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112448&fm=80102729984093&tin=02508201610067®Number=0000000000094237&sum=80000 [21:31:49]OFD Sender: Processing packet 112448 [packets to send 71, broken 70] [21:31:49]ProducePacketName [21:31:49]name=ofd_packets/00112448 [21:31:49]OFD Sender: To server: pG, [21:31:49]CommunicateWithHost lk.salyk.kg:30040 [21:31:49]ConnectInit lk.salyk.kg [21:31:49]written 0, free lines is 4095 [21:31:50]Connected sock=10 [21:31:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 3C 37 07 01 ED 0A 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 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 35 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 5B 01 00 00 F4 03 04 00 45 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B7 01 00 35 04 06 00 48 DA 5E C4 28 5D 13 B6 DF 92 06 03 3F 6C [21:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 02 C9 47 00 6C 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 40 B7 01 00 F4 03 04 00 D0 F2 1B 66 B6 04 01 00 00 B7 54 AB AF AF 52 0B 01 [21:31:50]CommunicateWithHost err = 0 [21:31:50]CheckOFDResponse [21:31:50]1017 (14) - 77093643461234 [21:31:50]1041 (16) - 0000000000875019 [21:31:50]1040 (4) - 112448 [21:31:50]1012 (4) - 14.04.2024 15:14 [21:31:50]1206 (1) - 0 [21:31:50]OFD Sender: Remove packet 112448 [21:31:50]ProducePacketName [21:31:50]name=ofd_packets/00112448 [21:31:50]NVStorageDeleteData [21:31:50]Write to MH i2c: 01 00 00 BB 31 EC [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: 01 07 00 BB 31 00 00 00 00 00 F2 0C F1 [21:31:50]RasterBufferAndPrint [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]line [21:31:50]written 0, free lines is 3320 [21:31:50]MH_Cut [21:31:50]Write to MH i2c: D1 01 00 C2 31 01 C5 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 [21:31:50]MH_I2C_Read... [21:31:50]Read from MH i2c: D1 01 00 C2 31 00 C4 [21:31:50]Write to MH i2c: 01 00 00 C3 31 F4 [21:31:50]Write i2c OK [21:31:50]MH_I2C_Read... [21:31:50]OFD Sender: No OFD packet to send [21:31:51]*** Cut start [21:31:51]*** Partial cut [21:31:51]*** CUTSNS_PIN = 1 [21:31:51]*** CUTSNS_PIN = 0 [21:31:51]*** Brake cut motor [21:31:51]Read from MH i2c: 01 [21:31:51]MH_I2C_Read... [21:31:51]*** Stop cut motor [21:31:51]*** Cut end [21:31:51]Read from MH i2c: 01 07 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: 01 07 00 C3 31 00 00 00 00 00 FF 0F 09 [21:31:51]process_action close_receipt done [21:31:51]requested_data is exist [21:31:51]produce_requested_data [21:31:51]requested_item fm.sn is exist - process it [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 11 00 00 [21:31:51]Write to MH i2c: E2 08 00 C4 31 80 11 00 00 00 00 00 00 6F [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 17 00 C4 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C0 [21:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:31:51]wFMCommunicate OK [21:31:51]requested_item fd.num is exist - process it [21:31:51]SAM_PROTO_GetFieldsCounters [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 00 00 [21:31:51]Write to MH i2c: E2 08 00 C5 31 80 13 00 00 00 00 00 00 72 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:51]Read from MH i2c: E2 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 [21:31:51]MH_I2C_Read... [21:31:51]Read from MH i2c: E2 62 00 C5 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 40 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [21:31:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 40 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:51]wFMCommunicate OK [21:31:51]SAM_PROTO_GetFieldsCounters done [21:31:51]requested_item shift.num is exist - process it [21:31:51]requested_item shift.opened is exist - process it [21:31:51]req_shift_opened [21:31:51]FM_GetShiftState [21:31:51]SAM_PROTO_GetShiftState [21:31:51]wFMCommunicate request_size=4 [21:31:51]MH_SAM_APDU [21:31:51]CAPDU: 80 13 01 00 [21:31:51]Write to MH i2c: E2 08 00 C6 31 80 13 01 00 00 00 00 00 74 [21:31:51]Write i2c OK [21:31:51]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 C6 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0C [21:31:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:31:52]wFMCommunicate OK [21:31:52]SAM_PROTO_GetShiftState done [21:31:52]FM_GetShiftState done [21:31:52]req_shift_opened done [21:31:52]requested_item shift.open_date is exist - process it [21:31:52]req_shift_open_date [21:31:52]req_shift_open_date done [21:31:52]produce_requested_data done [21:31:52]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112448,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:31:52]process_action_free close_receipt [21:31:52]json_value_free [21:31:52]json_value_free done [21:31:52]process_json_proto returns [21:31:52]Send response to host [21:31:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112448,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:31:52]free response buf [21:31:52]execute_script done [21:31:52]execute_script returns [21:31:52]free content buf [21:31:52]Sock 8.Close socket [21:31:52]Sock 8.Thread stoped [21:31:52]accept exits with 9 [21:31:52]New connection [21:31:52]New thread 3066826084 created [21:31:52]Thread 3066682724 joined [21:31:52]Waiting for new connection... [21:31:52] Sock 9.Parse request [21:31:52]Sock 9.Check first char [21:31:52]Sock 9.First char is OK [21:31:52]request: POST /json_proto HTTP/1.0 [21:31:52]Method: POST [21:31:52]URL: /json_proto [21:31:52]Method is POST - this is cgi request [21:31:52]url: /json_proto [21:31:52]query_string will be loaded in cgi processing [21:31:52]execute_cgi json_proto POST (null) [21:31:52]execute_cgi path=json_proto method=POST [21:31:52]POST find Content-Length [21:31:52]Host: 172.17.96.197:8080 [21:31:52]Content-Length: 678 [21:31:52]Content-Type: application/json [21:31:52] [21:31:52]POST finish read [21:31:52]Found Content-Length = 678 [21:31:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48743", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [21:31:52]execute_script... [21:31: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)48743", "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.40, "quantity" : 13.820, "sum" : 1000.57, "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" ] } } [21:31:52]POST & json_proto [21:31:52]process_json_proto [21:31:52]json parsed OK: [21:31:52]protocol is kg_v1.0 [21:31:52]action value=close_receipt [21:31:52]process_action close_receipt [21:31:52]cmd_close_receipt [21:31:52]MH_GetDate [21:31:52]Write to MH i2c: F0 00 00 C7 31 E7 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 09 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: F0 09 00 C7 31 00 4A 4B 1C 66 E0 85 7F 64 4F [21:31:52]GetLastDocTimeStamp 1713130309 [21:31:52]current date 1713130314 [21:31:52]FM_GetShiftState [21:31:52]SAM_PROTO_GetShiftState [21:31:52]wFMCommunicate request_size=4 [21:31:52]MH_SAM_APDU [21:31:52]CAPDU: 80 13 01 00 [21:31:52]Write to MH i2c: E2 08 00 C8 31 80 13 01 00 00 00 00 00 76 [21:31:52]Write i2c OK [21:31:52]MH_I2C_Read... [21:31:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:52]Read from MH i2c: E2 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 [21:31:52]MH_I2C_Read... [21:31:52]Read from MH i2c: E2 0E 00 C8 31 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0E [21:31:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:31:52]wFMCommunicate OK [21:31:52]SAM_PROTO_GetShiftState done [21:31:52]FM_GetShiftState done [21:31:52]opened in 1713054696 [21:31:52]opened+sec_in_day 1713141096 [21:31:52]quantity*price = 100056 [21:31:52]sum+1 = 100058 [21:31:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 348 14.04.2024 21:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112449 ФПД: 28599082354459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213154&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112449&fm=28599082354459&tin=02508201610067®Number=0000000000094237&sum=100000 [21:31:53]StoreToDocumentArchive [21:31:53]shift 357 fd 112449 [21:31:53]save to /storage/0357/doc_00112449 [21:31:53]save last doc name /storage/0357/doc_00112449 to /storage/kkm_last_doc_name [21:31:53]save OK [21:31:53]Clear old archive folders... [21:31:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:53]tlvbuf is 00134C30 [21:31:53]SAM_PROTO_ClearQueue [21:31:53]wFMCommunicate request_size=4 [21:31:53]MH_SAM_APDU [21:31:53]CAPDU: 80 09 00 00 [21:31:53]Write to MH i2c: E2 08 00 D5 31 80 09 00 00 00 00 00 00 78 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:53]Read from MH i2c: E2 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: E2 03 00 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: E2 03 00 D5 31 00 90 00 7A [21:31:53]RAPDU: 90 00 [21:31:53]wFMCommunicate OK [21:31:53]SAM_PROTO_ClearQueue done [21:31:53]KKMCreateOFDPacket [21:31:53]OFDProtocolAddRootSTLVToBuf [21:31:53]FM_MakeSignedData [21:31:53]FM_MakeSignedData [21:31:53]SAM_PROTO_SignData [21:31:53]wFMCommunicate request_size=4 [21:31:53]MH_SAM_APDU [21:31:53]CAPDU: 80 0D 01 02 [21:31:53]Write to MH i2c: E2 08 00 D6 31 80 0D 01 02 00 00 00 00 80 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:53]Read from MH i2c: E2 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: E2 03 00 [21:31:53]MH_I2C_Read... [21:31:53]Read from MH i2c: E2 03 00 D6 31 00 90 00 7B [21:31:53]RAPDU: 90 00 [21:31:53]wFMCommunicate OK [21:31:53]wFMCommunicate request_size=255 [21:31:53]MH_SAM_APDU [21:31: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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5C 01 00 00 F4 03 04 00 4A 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B7 01 00 35 04 06 00 1A 02 BE 25 [21:31:53]Write to MH i2c: E2 02 01 D7 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5C 01 00 00 F4 03 04 00 4A 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B7 01 00 35 04 06 00 1A 02 BE 25 00 00 12 [21:31:53]Write i2c OK [21:31:53]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 D7 31 00 90 00 7C [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]wFMCommunicate request_size=7 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 0D 02 02 02 07 1B [21:31:54]Write to MH i2c: E2 0A 00 D8 31 80 0D 02 02 02 00 07 1B 00 00 A9 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 03 00 D8 31 00 90 00 7D [21:31:54]RAPDU: 90 00 [21:31:54]wFMCommunicate OK [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 0D 03 02 [21:31:54]Write to MH i2c: E2 08 00 D9 31 80 0D 03 02 00 00 00 00 85 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0B 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0B 00 D9 31 00 B8 B5 AA 70 A0 5C 68 91 90 00 02 [21:31:54]RAPDU: B8 B5 AA 70 A0 5C 68 91 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_SignData done [21:31:54]FM_MakeSignedData done [21:31:54]CreateOFDProtocolMessage [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 11 00 00 [21:31:54]Write to MH i2c: E2 08 00 DA 31 80 11 00 00 00 00 00 00 85 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 17 00 DA 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D6 [21:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:31:54]wFMCommunicate OK [21:31:54]CreateOFDProtocolMessage done [21:31:54]OFDSenderStorePacket 112449 [21:31:54]StoreOFDPacket docnum=112449 [21:31:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 BA 00 04 01 38 81 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5C 01 00 00 F4 03 04 00 4A 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B7 01 00 35 04 06 00 1A 02 BE 25 07 1B B8 B5 AA 70 A0 5C 68 91 [21:31:54]CheckFolder [21:31:54]dirname=/storage/ofd_packets [21:31:54]CheckFolder done [21:31:54]ProducePacketName [21:31:54]name=ofd_packets/00112449 [21:31:54]NVStorageSaveData ofd_packets/00112449 [21:31:54]File name is /storage/ofd_packets/00112449 [21:31:54]Write 298 bytes [21:31:54]NVStorageSaveData done [21:31:54]OFDSenderStorePacket done [21:31:54]KKMCreateOFDPacket done [21:31:54]NVStorageSaveData kkm_last_timestamp [21:31:54]File name is /storage/kkm_last_timestamp [21:31:54]Write 4 bytes [21:31:54]NVStorageSaveData done [21:31:54]ExternCall_PrintAddStr [21:31:54]wPrintStart [21:31:54]Write to MH i2c: 01 00 00 DB 31 0C [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 07 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: 01 07 00 DB 31 00 00 00 00 00 FF 0F 21 [21:31:54]RasterBufferAndPrint [21:31:54]line Счет N : (1)48743 [21:31:54]line ИНН: 02508201610067 [21:31:54]line Контрольно-Кассовый Чек [21:31:54]line ПРОДАЖА [21:31:54]line ТРК (МРК, ГНК) : 51 [21:31:54]line Товар: 2710194210 [21:31:54]line ДТ-К-5 [21:31:54]line 13.820 * 72.40 [21:31:54]line = 1000.57 [21:31:54]line НДС 12% НСП 1% [21:31:54]line > о реализуемом товаре [21:31:54]line ОКРУГЛЕНИЕ: -0.57 [21:31:54]line ИТОГО: 1000.00 [21:31:54]line Внесено: 1000.00 [21:31:54]line СДАЧА: 0.00 [21:31:54]line НСП 1% : 8.85 [21:31:54]line НДС 12% : 106.25 [21:31:54]line Наличными: 1000.00 [21:31:54]line Безнал.: 0.00 [21:31:54]line Место: АЗС № 47 "Партнер Нефть" [21:31:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:31:54]line СНО: Общий режим [21:31:54]line Чек 348 14.04.2024 21:31 [21:31:54]line Смена: 357 ФФД: 1.0 [21:31:54]line ЗНМ: 0300000138 [21:31:54]line РНМ: 0000000000094237 [21:31:54]line Версия ККМ: 001 [21:31:54]line ФМ: 0000000000875019 [21:31:54]line ФД: 112449 [21:31:54]line ФПД: 28599082354459 [21:31:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213154&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112449&fm=28599082354459&tin=02508201610067®Number=0000000000094237&sum=100000 [21:31:54]OFD Sender: Processing packet 112449 [packets to send 71, broken 70] [21:31:54]ProducePacketName [21:31:54]name=ofd_packets/00112449 [21:31:54]OFD Sender: To server: pG, [21:31:54]CommunicateWithHost lk.salyk.kg:30040 [21:31:54]ConnectInit lk.salyk.kg [21:31:54]written 0, free lines is 4095 [21:31:54]Connected sock=10 [21:31:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 BA 00 04 01 38 81 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 FC 35 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 D9 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 5C 01 00 00 F4 03 04 00 4A 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B7 01 00 35 04 06 00 1A 02 BE 25 07 1B B8 B5 AA 70 A0 5C 68 91 [21:31:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 ED C4 47 00 85 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 41 B7 01 00 F4 03 04 00 D5 F2 1B 66 B6 04 01 00 00 D9 48 52 0B 7D 5B 84 2D [21:31:55]CommunicateWithHost err = 0 [21:31:55]CheckOFDResponse [21:31:55]1017 (14) - 77093643461234 [21:31:55]1041 (16) - 0000000000875019 [21:31:55]1040 (4) - 112449 [21:31:55]1012 (4) - 14.04.2024 15:14 [21:31:55]1206 (1) - 0 [21:31:55]OFD Sender: Remove packet 112449 [21:31:55]ProducePacketName [21:31:55]name=ofd_packets/00112449 [21:31:55]NVStorageDeleteData [21:31:55]Write to MH i2c: 01 00 00 06 32 38 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 F4 0C 3F [21:31:55]RasterBufferAndPrint [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]line [21:31:55]written 0, free lines is 3329 [21:31:55]MH_Cut [21:31:55]Write to MH i2c: D1 01 00 0D 32 01 11 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 01 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: D1 01 00 0D 32 00 10 [21:31:55]Write to MH i2c: 01 00 00 0E 32 40 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]OFD Sender: No OFD packet to send [21:31:55]*** Cut start [21:31:55]*** Partial cut [21:31:55]*** CUTSNS_PIN = 1 [21:31:55]*** CUTSNS_PIN = 0 [21:31:56]*** Brake cut motor [21:31:56]Read from MH i2c: 01 [21:31:56]MH_I2C_Read... [21:31:56]*** Stop cut motor [21:31:56]*** Cut end [21:31:56]Read from MH i2c: 01 07 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 0E 32 00 00 00 00 00 FF 0F 55 [21:31:56]process_action close_receipt done [21:31:56]requested_data is exist [21:31:56]produce_requested_data [21:31:56]requested_item fm.sn is exist - process it [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 11 00 00 [21:31:56]Write to MH i2c: E2 08 00 0F 32 80 11 00 00 00 00 00 00 BB [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 17 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 17 00 0F 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0C [21:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:31:56]wFMCommunicate OK [21:31:56]requested_item fd.num is exist - process it [21:31:56]SAM_PROTO_GetFieldsCounters [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 13 00 00 [21:31:56]Write to MH i2c: E2 08 00 10 32 80 13 00 00 00 00 00 00 BE [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 62 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 62 00 10 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 41 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [21:31:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 41 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:31:56]wFMCommunicate OK [21:31:56]SAM_PROTO_GetFieldsCounters done [21:31:56]requested_item shift.num is exist - process it [21:31:56]requested_item shift.opened is exist - process it [21:31:56]req_shift_opened [21:31:56]FM_GetShiftState [21:31:56]SAM_PROTO_GetShiftState [21:31:56]wFMCommunicate request_size=4 [21:31:56]MH_SAM_APDU [21:31:56]CAPDU: 80 13 01 00 [21:31:56]Write to MH i2c: E2 08 00 11 32 80 13 01 00 00 00 00 00 C0 [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:56]Read from MH i2c: E2 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 0E 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: E2 0E 00 11 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 58 [21:31:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:31:56]wFMCommunicate OK [21:31:56]SAM_PROTO_GetShiftState done [21:31:56]FM_GetShiftState done [21:31:56]req_shift_opened done [21:31:56]requested_item shift.open_date is exist - process it [21:31:56]req_shift_open_date [21:31:56]req_shift_open_date done [21:31:56]produce_requested_data done [21:31:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112449,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:31:56]process_action_free close_receipt [21:31:56]json_value_free [21:31:56]json_value_free done [21:31:56]process_json_proto returns [21:31:56]Send response to host [21:31:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112449,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:31:56]free response buf [21:31:56]execute_script done [21:31:56]execute_script returns [21:31:56]free content buf [21:31:56]Sock 9.Close socket [21:31:56]Sock 9.Thread stoped [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:22]accept exits with 8 [21:32:22]New connection [21:32:22]New thread 3066682724 created [21:32:22]Thread 3066826084 joined [21:32:22]Waiting for new connection... [21:32:22] Sock 8.Parse request [21:32:22]Sock 8.Check first char [21:32:22]Sock 8.First char is OK [21:32:22]request: POST /json_proto HTTP/1.0 [21:32:22]Method: POST [21:32:22]URL: /json_proto [21:32:22]Method is POST - this is cgi request [21:32:22]url: /json_proto [21:32:22]query_string will be loaded in cgi processing [21:32:22]execute_cgi json_proto POST (null) [21:32:22]execute_cgi path=json_proto method=POST [21:32:22]POST find Content-Length [21:32:22]Host: 172.17.96.197:8080 [21:32:22]Content-Length: 674 [21:32:22]Content-Type: application/json [21:32:22] [21:32:22]POST finish read [21:32:22]Found Content-Length = 674 [21:32:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48744", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [21:32:22]execute_script... [21:32: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)48744", "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.30, "quantity" : 15.320, "sum" : 1000.40, "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" ] } } [21:32:22]POST & json_proto [21:32:22]process_json_proto [21:32:22]json parsed OK: [21:32:22]protocol is kg_v1.0 [21:32:22]action value=close_receipt [21:32:22]process_action close_receipt [21:32:22]cmd_close_receipt [21:32:22]MH_GetDate [21:32:22]Write to MH i2c: F0 00 00 12 32 33 [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: F0 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: F0 09 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: F0 09 00 12 32 00 68 4B 1C 66 E0 85 7F 64 B9 [21:32:22]GetLastDocTimeStamp 1713130314 [21:32:22]current date 1713130344 [21:32:22]FM_GetShiftState [21:32:22]SAM_PROTO_GetShiftState [21:32:22]wFMCommunicate request_size=4 [21:32:22]MH_SAM_APDU [21:32:22]CAPDU: 80 13 01 00 [21:32:22]Write to MH i2c: E2 08 00 13 32 80 13 01 00 00 00 00 00 C2 [21:32:22]Write i2c OK [21:32:22]MH_I2C_Read... [21:32:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:22]Read from MH i2c: E2 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 0E 00 [21:32:22]MH_I2C_Read... [21:32:22]Read from MH i2c: E2 0E 00 13 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [21:32:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:32:22]wFMCommunicate OK [21:32:22]SAM_PROTO_GetShiftState done [21:32:22]FM_GetShiftState done [21:32:22]opened in 1713054696 [21:32:22]opened+sec_in_day 1713141096 [21:32:22]quantity*price = 100039 [21:32:22]sum+1 = 100041 [21:32:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 349 14.04.2024 21:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112450 ФПД: 132285526690597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213224&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112450&fm=132285526690597&tin=02508201610067®Number=0000000000094237&sum=100000 [21:32:23]StoreToDocumentArchive [21:32:23]shift 357 fd 112450 [21:32:23]save to /storage/0357/doc_00112450 [21:32:23]save last doc name /storage/0357/doc_00112450 to /storage/kkm_last_doc_name [21:32:23]save OK [21:32:23]Clear old archive folders... [21:32:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:32:23]tlvbuf is 0023B020 [21:32:23]SAM_PROTO_ClearQueue [21:32:23]wFMCommunicate request_size=4 [21:32:23]MH_SAM_APDU [21:32:23]CAPDU: 80 09 00 00 [21:32:23]Write to MH i2c: E2 08 00 20 32 80 09 00 00 00 00 00 00 C4 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 [21:32:23]MH_I2C_Read... [21:32:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:23]Read from MH i2c: E2 03 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 03 00 20 32 00 90 00 C6 [21:32:23]RAPDU: 90 00 [21:32:23]wFMCommunicate OK [21:32:23]SAM_PROTO_ClearQueue done [21:32:23]KKMCreateOFDPacket [21:32:23]OFDProtocolAddRootSTLVToBuf [21:32:23]FM_MakeSignedData [21:32:23]FM_MakeSignedData [21:32:23]SAM_PROTO_SignData [21:32:23]wFMCommunicate request_size=4 [21:32:23]MH_SAM_APDU [21:32:23]CAPDU: 80 0D 01 02 [21:32:23]Write to MH i2c: E2 08 00 21 32 80 0D 01 02 00 00 00 00 CC [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:23]Read from MH i2c: E2 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 03 00 [21:32:23]MH_I2C_Read... [21:32:23]Read from MH i2c: E2 03 00 21 32 00 90 00 C7 [21:32:23]RAPDU: 90 00 [21:32:23]wFMCommunicate OK [21:32:23]wFMCommunicate request_size=255 [21:32:23]MH_SAM_APDU [21:32:23]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 5D 01 00 00 F4 03 04 00 68 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B7 01 00 35 04 06 00 [21:32:23]Write to MH i2c: E2 02 01 22 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 5D 01 00 00 F4 03 04 00 68 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B7 01 00 35 04 06 00 00 00 D0 [21:32:23]Write i2c OK [21:32:23]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 22 32 00 90 00 C8 [21:32:24]RAPDU: 90 00 [21:32:24]wFMCommunicate OK [21:32:24]wFMCommunicate request_size=11 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 0D 02 02 06 78 50 1F D3 CB 25 [21:32:24]Write to MH i2c: E2 0E 00 23 32 80 0D 02 02 06 00 78 50 1F D3 CB 25 00 00 85 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 03 00 23 32 00 90 00 C9 [21:32:24]RAPDU: 90 00 [21:32:24]wFMCommunicate OK [21:32:24]wFMCommunicate request_size=4 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 0D 03 02 [21:32:24]Write to MH i2c: E2 08 00 24 32 80 0D 03 02 00 00 00 00 D1 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0B 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 0B 00 24 32 00 99 87 13 98 C2 7A CE D6 90 00 7D [21:32:24]RAPDU: 99 87 13 98 C2 7A CE D6 90 00 [21:32:24]wFMCommunicate OK [21:32:24]SAM_PROTO_SignData done [21:32:24]FM_MakeSignedData done [21:32:24]CreateOFDProtocolMessage [21:32:24]wFMCommunicate request_size=4 [21:32:24]MH_SAM_APDU [21:32:24]CAPDU: 80 11 00 00 [21:32:24]Write to MH i2c: E2 08 00 25 32 80 11 00 00 00 00 00 00 D1 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:24]Read from MH i2c: E2 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 17 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: E2 17 00 25 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 22 [21:32:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:32:24]wFMCommunicate OK [21:32:24]CreateOFDProtocolMessage done [21:32:24]OFDSenderStorePacket 112450 [21:32:24]StoreOFDPacket docnum=112450 [21:32:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F8 5D 08 01 AA 89 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 5D 01 00 00 F4 03 04 00 68 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B7 01 00 35 04 06 00 78 50 1F D3 CB 25 99 87 13 98 C2 7A CE D6 [21:32:24]CheckFolder [21:32:24]dirname=/storage/ofd_packets [21:32:24]CheckFolder done [21:32:24]ProducePacketName [21:32:24]name=ofd_packets/00112450 [21:32:24]NVStorageSaveData ofd_packets/00112450 [21:32:24]File name is /storage/ofd_packets/00112450 [21:32:24]Write 302 bytes [21:32:24]NVStorageSaveData done [21:32:24]OFDSenderStorePacket done [21:32:24]KKMCreateOFDPacket done [21:32:24]NVStorageSaveData kkm_last_timestamp [21:32:24]File name is /storage/kkm_last_timestamp [21:32:24]Write 4 bytes [21:32:24]NVStorageSaveData done [21:32:24]ExternCall_PrintAddStr [21:32:24]wPrintStart [21:32:24]Write to MH i2c: 01 00 00 26 32 58 [21:32:24]Write i2c OK [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: 01 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: 01 07 00 [21:32:24]MH_I2C_Read... [21:32:24]Read from MH i2c: 01 07 00 26 32 00 00 00 00 00 FF 0F 6D [21:32:24]RasterBufferAndPrint [21:32:24]line Счет N : (1)48744 [21:32:24]line ИНН: 02508201610067 [21:32:24]line Контрольно-Кассовый Чек [21:32:24]line ПРОДАЖА [21:32:24]line ТРК (МРК, ГНК) : 31 [21:32:24]line Товар: 2710124130 [21:32:24]line SUPER 92-К-5 [21:32:24]line 15.320 * 65.30 [21:32:24]line = 1000.40 [21:32:24]line НДС 12% НСП 1% [21:32:24]line > о реализуемом товаре [21:32:24]line ОКРУГЛЕНИЕ: -0.40 [21:32:24]line ИТОГО: 1000.00 [21:32:24]line Внесено: 1000.00 [21:32:24]line СДАЧА: 0.00 [21:32:24]line НСП 1% : 8.85 [21:32:24]line НДС 12% : 106.24 [21:32:24]line Наличными: 1000.00 [21:32:24]line Безнал.: 0.00 [21:32:24]line Место: АЗС № 47 "Партнер Нефть" [21:32:24]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:32:24]line СНО: Общий режим [21:32:24]line Чек 349 14.04.2024 21:32 [21:32:24]line Смена: 357 ФФД: 1.0 [21:32:24]line ЗНМ: 0300000138 [21:32:24]line РНМ: 0000000000094237 [21:32:24]line Версия ККМ: 001 [21:32:24]line ФМ: 0000000000875019 [21:32:24]line ФД: 112450 [21:32:24]line ФПД: 132285526690597 [21:32:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213224&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112450&fm=132285526690597&tin=02508201610067®Number=0000000000094237&sum=100000 [21:32:24]OFD Sender: Processing packet 112450 [packets to send 71, broken 70] [21:32:24]ProducePacketName [21:32:24]name=ofd_packets/00112450 [21:32:24]OFD Sender: To server: pG, [21:32:24]CommunicateWithHost lk.salyk.kg:30040 [21:32:24]ConnectInit lk.salyk.kg [21:32:24]written 0, free lines is 4095 [21:32:24]Connected sock=10 [21:32:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F8 5D 08 01 AA 89 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 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 80 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 5D 01 00 00 F4 03 04 00 68 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B7 01 00 35 04 06 00 78 50 1F D3 CB 25 99 87 13 98 C2 7A CE D6 [21:32:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E6 4B 47 00 95 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 42 B7 01 00 F4 03 04 00 F2 F2 1B 66 B6 04 01 00 00 1C 85 81 DD 81 C1 2A D7 [21:32:25]CommunicateWithHost err = 0 [21:32:25]CheckOFDResponse [21:32:25]1017 (14) - 77093643461234 [21:32:25]1041 (16) - 0000000000875019 [21:32:25]1040 (4) - 112450 [21:32:25]1012 (4) - 14.04.2024 15:14 [21:32:25]1206 (1) - 0 [21:32:25]OFD Sender: Remove packet 112450 [21:32:25]ProducePacketName [21:32:25]name=ofd_packets/00112450 [21:32:25]NVStorageDeleteData [21:32:25]Write to MH i2c: 01 00 00 51 32 83 [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: 01 07 00 51 32 00 00 00 00 00 FD 0C 93 [21:32:25]RasterBufferAndPrint [21:32:25]line [21:32:25]line [21:32:25]line [21:32:25]line [21:32:25]line [21:32:25]written 0, free lines is 3331 [21:32:25]MH_Cut [21:32:25]Write to MH i2c: D1 01 00 58 32 01 5C [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: D1 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: D1 01 00 [21:32:25]MH_I2C_Read... [21:32:25]Read from MH i2c: D1 01 00 58 32 00 5B [21:32:25]Write to MH i2c: 01 00 00 59 32 8B [21:32:25]Write i2c OK [21:32:25]MH_I2C_Read... [21:32:25]OFD Sender: No OFD packet to send [21:32:25]*** Cut start [21:32:25]*** Partial cut [21:32:25]*** CUTSNS_PIN = 1 [21:32:25]*** CUTSNS_PIN = 0 [21:32:26]*** Brake cut motor [21:32:26]Read from MH i2c: 01 [21:32:26]MH_I2C_Read... [21:32:26]*** Stop cut motor [21:32:26]*** Cut end [21:32:26]Read from MH i2c: 01 07 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: 01 07 00 59 32 00 00 00 00 00 FF 0F A0 [21:32:26]process_action close_receipt done [21:32:26]requested_data is exist [21:32:26]produce_requested_data [21:32:26]requested_item fm.sn is exist - process it [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 11 00 00 [21:32:26]Write to MH i2c: E2 08 00 5A 32 80 11 00 00 00 00 00 00 06 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 17 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 17 00 5A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 57 [21:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:32:26]wFMCommunicate OK [21:32:26]requested_item fd.num is exist - process it [21:32:26]SAM_PROTO_GetFieldsCounters [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 13 00 00 [21:32:26]Write to MH i2c: E2 08 00 5B 32 80 13 00 00 00 00 00 00 09 [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 62 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 62 00 5B 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 42 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [21:32:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 42 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_GetFieldsCounters done [21:32:26]requested_item shift.num is exist - process it [21:32:26]requested_item shift.opened is exist - process it [21:32:26]req_shift_opened [21:32:26]FM_GetShiftState [21:32:26]SAM_PROTO_GetShiftState [21:32:26]wFMCommunicate request_size=4 [21:32:26]MH_SAM_APDU [21:32:26]CAPDU: 80 13 01 00 [21:32:26]Write to MH i2c: E2 08 00 5C 32 80 13 01 00 00 00 00 00 0B [21:32:26]Write i2c OK [21:32:26]MH_I2C_Read... [21:32:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:26]Read from MH i2c: E2 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 0E 00 [21:32:26]MH_I2C_Read... [21:32:26]Read from MH i2c: E2 0E 00 5C 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A3 [21:32:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:32:26]wFMCommunicate OK [21:32:26]SAM_PROTO_GetShiftState done [21:32:26]FM_GetShiftState done [21:32:26]req_shift_opened done [21:32:26]requested_item shift.open_date is exist - process it [21:32:26]req_shift_open_date [21:32:26]req_shift_open_date done [21:32:26]produce_requested_data done [21:32:26]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112450,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:32:26]process_action_free close_receipt [21:32:26]json_value_free [21:32:26]json_value_free done [21:32:26]process_json_proto returns [21:32:26]Send response to host [21:32:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112450,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:32:26]free response buf [21:32:26]execute_script done [21:32:26]execute_script returns [21:32:26]free content buf [21:32:26]Sock 8.Close socket [21:32:26]Sock 8.Thread stoped [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]accept exits with 9 [21:33:25]New connection [21:33:25]New thread 3066826084 created [21:33:25]Thread 3066682724 joined [21:33:25]Waiting for new connection... [21:33:25] Sock 9.Parse request [21:33:25]Sock 9.Check first char [21:33:25]Sock 9.First char is OK [21:33:25]request: POST /json_proto HTTP/1.0 [21:33:25]Method: POST [21:33:25]URL: /json_proto [21:33:25]Method is POST - this is cgi request [21:33:25]url: /json_proto [21:33:25]query_string will be loaded in cgi processing [21:33:25]execute_cgi json_proto POST (null) [21:33:25]execute_cgi path=json_proto method=POST [21:33:25]POST find Content-Length [21:33:25]Host: 172.17.96.197:8080 [21:33:25]Content-Length: 676 [21:33:25]Content-Type: application/json [21:33:25] [21:33:25]POST finish read [21:33:25]Found Content-Length = 676 [21:33:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48745", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:33:25]execute_script... [21:33: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)48745", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [21:33:25]POST & json_proto [21:33:25]process_json_proto [21:33:25]json parsed OK: [21:33:25]protocol is kg_v1.0 [21:33:25]action value=close_receipt [21:33:25]process_action close_receipt [21:33:25]cmd_close_receipt [21:33:25]MH_GetDate [21:33:25]Write to MH i2c: F0 00 00 5D 32 7E [21:33:25]Write i2c OK [21:33:25]MH_I2C_Read... [21:33:25]Read from MH i2c: F0 [21:33:25]MH_I2C_Read... [21:33:25]Read from MH i2c: F0 09 00 [21:33:25]MH_I2C_Read... [21:33:25]Read from MH i2c: F0 09 00 5D 32 00 A7 4B 1C 66 E0 85 7F 64 43 [21:33:25]GetLastDocTimeStamp 1713130344 [21:33:25]current date 1713130407 [21:33:25]FM_GetShiftState [21:33:25]SAM_PROTO_GetShiftState [21:33:25]wFMCommunicate request_size=4 [21:33:25]MH_SAM_APDU [21:33:25]CAPDU: 80 13 01 00 [21:33:25]Write to MH i2c: E2 08 00 5E 32 80 13 01 00 00 00 00 00 0D [21:33:25]Write i2c OK [21:33:25]MH_I2C_Read... [21:33:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:25]Read from MH i2c: E2 [21:33:25]MH_I2C_Read... [21:33:25]Read from MH i2c: E2 0E 00 [21:33:25]MH_I2C_Read... [21:33:25]Read from MH i2c: E2 0E 00 5E 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [21:33:25]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:33:25]wFMCommunicate OK [21:33:25]SAM_PROTO_GetShiftState done [21:33:25]FM_GetShiftState done [21:33:25]opened in 1713054696 [21:33:25]opened+sec_in_day 1713141096 [21:33:25]quantity*price = 50025 [21:33:25]sum+1 = 50026 [21:33:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 350 14.04.2024 21:33 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112451 ФПД: 135161391709017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112451&fm=135161391709017&tin=02508201610067®Number=0000000000094237&sum=50000 [21:33:26]StoreToDocumentArchive [21:33:26]shift 357 fd 112451 [21:33:26]save to /storage/0357/doc_00112451 [21:33:26]save last doc name /storage/0357/doc_00112451 to /storage/kkm_last_doc_name [21:33:26]save OK [21:33:26]Clear old archive folders... [21:33:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:33:26]tlvbuf is 0018A7D0 [21:33:26]SAM_PROTO_ClearQueue [21:33:26]wFMCommunicate request_size=4 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 09 00 00 [21:33:26]Write to MH i2c: E2 08 00 6B 32 80 09 00 00 00 00 00 00 0F [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:33:26]Read from MH i2c: E2 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 6B 32 00 90 00 11 [21:33:26]RAPDU: 90 00 [21:33:26]wFMCommunicate OK [21:33:26]SAM_PROTO_ClearQueue done [21:33:26]KKMCreateOFDPacket [21:33:26]OFDProtocolAddRootSTLVToBuf [21:33:26]FM_MakeSignedData [21:33:26]FM_MakeSignedData [21:33:26]SAM_PROTO_SignData [21:33:26]wFMCommunicate request_size=4 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 0D 01 02 [21:33:26]Write to MH i2c: E2 08 00 6C 32 80 0D 01 02 00 00 00 00 17 [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:33:26]Read from MH i2c: E2 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 6C 32 00 90 00 12 [21:33:26]RAPDU: 90 00 [21:33:26]wFMCommunicate OK [21:33:26]wFMCommunicate request_size=255 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 01 00 00 F4 03 04 00 A7 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B7 01 00 35 04 06 00 7A [21:33:26]Write to MH i2c: E2 02 01 6D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 01 00 00 F4 03 04 00 A7 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B7 01 00 35 04 06 00 7A 00 00 68 [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:26]Read from MH i2c: E2 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 6D 32 00 90 00 13 [21:33:26]RAPDU: 90 00 [21:33:26]wFMCommunicate OK [21:33:26]wFMCommunicate request_size=10 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 0D 02 02 05 ED B6 BD 7B 59 [21:33:26]Write to MH i2c: E2 0D 00 6E 32 80 0D 02 02 05 00 ED B6 BD 7B 59 00 00 58 [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:33:26]Read from MH i2c: E2 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 03 00 6E 32 00 90 00 14 [21:33:26]RAPDU: 90 00 [21:33:26]wFMCommunicate OK [21:33:26]wFMCommunicate request_size=4 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 0D 03 02 [21:33:26]Write to MH i2c: E2 08 00 6F 32 80 0D 03 02 00 00 00 00 1C [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:33:26]Read from MH i2c: E2 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 0B 00 [21:33:26]MH_I2C_Read... [21:33:26]Read from MH i2c: E2 0B 00 6F 32 00 65 63 7D 9D F9 95 88 53 90 00 68 [21:33:26]RAPDU: 65 63 7D 9D F9 95 88 53 90 00 [21:33:26]wFMCommunicate OK [21:33:26]SAM_PROTO_SignData done [21:33:26]FM_MakeSignedData done [21:33:26]CreateOFDProtocolMessage [21:33:26]wFMCommunicate request_size=4 [21:33:26]MH_SAM_APDU [21:33:26]CAPDU: 80 11 00 00 [21:33:26]Write to MH i2c: E2 08 00 70 32 80 11 00 00 00 00 00 00 1C [21:33:26]Write i2c OK [21:33:26]MH_I2C_Read... [21:33:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:27]Read from MH i2c: E2 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: E2 17 00 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: E2 17 00 70 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6D [21:33:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:33:27]wFMCommunicate OK [21:33:27]CreateOFDProtocolMessage done [21:33:27]OFDSenderStorePacket 112451 [21:33:27]StoreOFDPacket docnum=112451 [21:33:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 17 64 07 01 01 4E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 01 00 00 F4 03 04 00 A7 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B7 01 00 35 04 06 00 7A ED B6 BD 7B 59 65 63 7D 9D F9 95 88 53 [21:33:27]CheckFolder [21:33:27]dirname=/storage/ofd_packets [21:33:27]CheckFolder done [21:33:27]ProducePacketName [21:33:27]name=ofd_packets/00112451 [21:33:27]NVStorageSaveData ofd_packets/00112451 [21:33:27]File name is /storage/ofd_packets/00112451 [21:33:27]Write 301 bytes [21:33:27]NVStorageSaveData done [21:33:27]OFDSenderStorePacket done [21:33:27]KKMCreateOFDPacket done [21:33:27]NVStorageSaveData kkm_last_timestamp [21:33:27]File name is /storage/kkm_last_timestamp [21:33:27]Write 4 bytes [21:33:27]NVStorageSaveData done [21:33:27]ExternCall_PrintAddStr [21:33:27]wPrintStart [21:33:27]Write to MH i2c: 01 00 00 71 32 A3 [21:33:27]Write i2c OK [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 07 00 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 07 00 71 32 00 00 00 00 00 FF 0F B8 [21:33:27]RasterBufferAndPrint [21:33:27]line Счет N : (1)48745 [21:33:27]line ИНН: 02508201610067 [21:33:27]line Контрольно-Кассовый Чек [21:33:27]line ПРОДАЖА [21:33:27]line ТРК (МРК, ГНК) : 42 [21:33:27]line Товар: 2710124130 [21:33:27]line Аи-92-К-5 [21:33:27]line 7.780 * 64.30 [21:33:27]line = 500.25 [21:33:27]line НДС 12% НСП 1% [21:33:27]line > о реализуемом товаре [21:33:27]line ОКРУГЛЕНИЕ: -0.25 [21:33:27]line ИТОГО: 500.00 [21:33:27]line Внесено: 500.00 [21:33:27]line СДАЧА: 0.00 [21:33:27]line НСП 1% : 4.43 [21:33:27]line НДС 12% : 53.12 [21:33:27]line Наличными: 500.00 [21:33:27]line Безнал.: 0.00 [21:33:27]line Место: АЗС № 47 "Партнер Нефть" [21:33:27]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:33:27]line СНО: Общий режим [21:33:27]line Чек 350 14.04.2024 21:33 [21:33:27]line Смена: 357 ФФД: 1.0 [21:33:27]line ЗНМ: 0300000138 [21:33:27]line РНМ: 0000000000094237 [21:33:27]line Версия ККМ: 001 [21:33:27]line ФМ: 0000000000875019 [21:33:27]line ФД: 112451 [21:33:27]line ФПД: 135161391709017 [21:33:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213327&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112451&fm=135161391709017&tin=02508201610067®Number=0000000000094237&sum=50000 [21:33:27]written 0, free lines is 4095 [21:33:27]OFD Sender: Processing packet 112451 [packets to send 71, broken 70] [21:33:27]ProducePacketName [21:33:27]name=ofd_packets/00112451 [21:33:27]OFD Sender: To server: pG, [21:33:27]CommunicateWithHost lk.salyk.kg:30040 [21:33:27]ConnectInit lk.salyk.kg [21:33:27]Connected sock=10 [21:33:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 17 64 07 01 01 4E 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 01 00 00 F4 03 04 00 A7 4B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B7 01 00 35 04 06 00 7A ED B6 BD 7B 59 65 63 7D 9D F9 95 88 53 [21:33:27]Write to MH i2c: 01 00 00 9C 32 CE [21:33:27]Write i2c OK [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 07 00 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: 01 07 00 9C 32 00 00 00 00 00 EB 0C CC [21:33:27]RasterBufferAndPrint [21:33:27]line [21:33:27]line [21:33:27]line [21:33:27]line [21:33:27]line [21:33:27]written 0, free lines is 3313 [21:33:27]MH_Cut [21:33:27]Write to MH i2c: D1 01 00 A3 32 01 A7 [21:33:27]Write i2c OK [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: D1 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: D1 01 00 [21:33:27]MH_I2C_Read... [21:33:27]Read from MH i2c: D1 01 00 A3 32 00 A6 [21:33:27]Write to MH i2c: 01 00 00 A4 32 D6 [21:33:27]Write i2c OK [21:33:27]MH_I2C_Read... [21:33:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 97 56 47 00 F3 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 43 B7 01 00 F4 03 04 00 31 F3 1B 66 B6 04 01 00 00 A1 56 D5 59 C3 27 FC 15 [21:33:27]CommunicateWithHost err = 0 [21:33:27]CheckOFDResponse [21:33:27]1017 (14) - 77093643461234 [21:33:27]1041 (16) - 0000000000875019 [21:33:27]1040 (4) - 112451 [21:33:27]1012 (4) - 14.04.2024 15:16 [21:33:27]1206 (1) - 0 [21:33:27]OFD Sender: Remove packet 112451 [21:33:27]ProducePacketName [21:33:27]name=ofd_packets/00112451 [21:33:27]NVStorageDeleteData [21:33:28]OFD Sender: No OFD packet to send [21:33:28]*** Cut start [21:33:28]*** Partial cut [21:33:28]*** CUTSNS_PIN = 1 [21:33:28]*** CUTSNS_PIN = 0 [21:33:28]*** Brake cut motor [21:33:29]*** Stop cut motor [21:33:29]*** Cut end [21:33:29]Read from MH i2c: 01 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: 01 07 00 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [21:33:29]process_action close_receipt done [21:33:29]requested_data is exist [21:33:29]produce_requested_data [21:33:29]requested_item fm.sn is exist - process it [21:33:29]wFMCommunicate request_size=4 [21:33:29]MH_SAM_APDU [21:33:29]CAPDU: 80 11 00 00 [21:33:29]Write to MH i2c: E2 08 00 A5 32 80 11 00 00 00 00 00 00 51 [21:33:29]Write i2c OK [21:33:29]MH_I2C_Read... [21:33:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:33:29]Read from MH i2c: E2 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 17 00 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 17 00 A5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A2 [21:33:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:33:29]wFMCommunicate OK [21:33:29]requested_item fd.num is exist - process it [21:33:29]SAM_PROTO_GetFieldsCounters [21:33:29]wFMCommunicate request_size=4 [21:33:29]MH_SAM_APDU [21:33:29]CAPDU: 80 13 00 00 [21:33:29]Write to MH i2c: E2 08 00 A6 32 80 13 00 00 00 00 00 00 54 [21:33:29]Write i2c OK [21:33:29]MH_I2C_Read... [21:33:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:33:29]Read from MH i2c: E2 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 62 00 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 62 00 A6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 43 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [21:33:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 43 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:33:29]wFMCommunicate OK [21:33:29]SAM_PROTO_GetFieldsCounters done [21:33:29]requested_item shift.num is exist - process it [21:33:29]requested_item shift.opened is exist - process it [21:33:29]req_shift_opened [21:33:29]FM_GetShiftState [21:33:29]SAM_PROTO_GetShiftState [21:33:29]wFMCommunicate request_size=4 [21:33:29]MH_SAM_APDU [21:33:29]CAPDU: 80 13 01 00 [21:33:29]Write to MH i2c: E2 08 00 A7 32 80 13 01 00 00 00 00 00 56 [21:33:29]Write i2c OK [21:33:29]MH_I2C_Read... [21:33:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:33:29]Read from MH i2c: E2 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 0E 00 [21:33:29]MH_I2C_Read... [21:33:29]Read from MH i2c: E2 0E 00 A7 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 EE [21:33:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:33:29]wFMCommunicate OK [21:33:29]SAM_PROTO_GetShiftState done [21:33:29]FM_GetShiftState done [21:33:29]req_shift_opened done [21:33:29]requested_item shift.open_date is exist - process it [21:33:29]req_shift_open_date [21:33:29]req_shift_open_date done [21:33:29]produce_requested_data done [21:33:29]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112451,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:33:29]process_action_free close_receipt [21:33:29]json_value_free [21:33:29]json_value_free done [21:33:29]process_json_proto returns [21:33:29]Send response to host [21:33:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112451,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:33:29]free response buf [21:33:29]execute_script done [21:33:29]execute_script returns [21:33:29]free content buf [21:33:29]Sock 9.Close socket [21:33:29]Sock 9.Thread stoped [21:33:33]OFD Sender: No OFD packet to send [21:33:38]OFD Sender: No OFD packet to send [21:33:43]OFD Sender: No OFD packet to send [21:33:48]OFD Sender: No OFD packet to send [21:33:53]OFD Sender: No OFD packet to send [21:33:58]OFD Sender: No OFD packet to send [21:34:03]OFD Sender: No OFD packet to send [21:34:08]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]OFD Sender: No OFD packet to send [21:35:43]OFD Sender: No OFD packet to send [21:35:48]OFD Sender: No OFD packet to send [21:35:53]OFD Sender: No OFD packet to send [21:35:58]OFD Sender: No OFD packet to send [21:36:03]OFD Sender: No OFD packet to send [21:36:08]OFD Sender: No OFD packet to send [21:36:13]OFD Sender: No OFD packet to send [21:36:18]OFD Sender: No OFD packet to send [21:36:23]OFD Sender: No OFD packet to send [21:36:28]OFD Sender: No OFD packet to send [21:36:33]OFD Sender: No OFD packet to send [21:36:38]OFD Sender: No OFD packet to send [21:36:43]OFD Sender: No OFD packet to send [21:36:48]OFD Sender: No OFD packet to send [21:36:53]OFD Sender: No OFD packet to send [21:36:58]OFD Sender: No OFD packet to send [21:37:03]OFD Sender: No OFD packet to send [21:37:08]OFD Sender: No OFD packet to send [21:37:13]OFD Sender: No OFD packet to send [21:37:18]OFD Sender: No OFD packet to send [21:37:23]OFD Sender: No OFD packet to send [21:37:28]OFD Sender: No OFD packet to send [21:37:33]OFD Sender: No OFD packet to send [21:37:38]OFD Sender: No OFD packet to send [21:37:43]OFD Sender: No OFD packet to send [21:37:48]OFD Sender: No OFD packet to send [21:37:53]OFD Sender: No OFD packet to send [21:37:58]OFD Sender: No OFD packet to send [21:38:03]OFD Sender: No OFD packet to send [21:38:08]OFD Sender: No OFD packet to send [21:38:12]accept exits with 8 [21:38:12]New connection [21:38:12]New thread 3066682724 created [21:38:12]Thread 3066826084 joined [21:38:12]Waiting for new connection... [21:38:12] Sock 8.Parse request [21:38:12]Sock 8.Check first char [21:38:12]Sock 8.First char is OK [21:38:12]request: POST /json_proto HTTP/1.0 [21:38:12]Method: POST [21:38:12]URL: /json_proto [21:38:12]Method is POST - this is cgi request [21:38:12]url: /json_proto [21:38:12]query_string will be loaded in cgi processing [21:38:12]execute_cgi json_proto POST (null) [21:38:12]execute_cgi path=json_proto method=POST [21:38:12]POST find Content-Length [21:38:12]Host: 172.17.96.197:8080 [21:38:12]Content-Length: 681 [21:38:12]Content-Type: application/json [21:38:12] [21:38:12]POST finish read [21:38:12]Found Content-Length = 681 [21:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48747", "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.30, "quantity" : 15.560, "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" ] } } [21:38:12]execute_script... [21:38: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)48747", "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.30, "quantity" : 15.560, "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" ] } } [21:38:12]POST & json_proto [21:38:12]process_json_proto [21:38:12]json parsed OK: [21:38:12]protocol is kg_v1.0 [21:38:12]action value=close_receipt [21:38:12]process_action close_receipt [21:38:12]cmd_close_receipt [21:38:12]MH_GetDate [21:38:12]Write to MH i2c: F0 00 00 A8 32 C9 [21:38:12]Write i2c OK [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: F0 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: F0 09 00 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: F0 09 00 A8 32 00 C6 4C 1C 66 E0 85 7F 64 AE [21:38:12]GetLastDocTimeStamp 1713130407 [21:38:12]current date 1713130694 [21:38:12]FM_GetShiftState [21:38:12]SAM_PROTO_GetShiftState [21:38:12]wFMCommunicate request_size=4 [21:38:12]MH_SAM_APDU [21:38:12]CAPDU: 80 13 01 00 [21:38:12]Write to MH i2c: E2 08 00 A9 32 80 13 01 00 00 00 00 00 58 [21:38:12]Write i2c OK [21:38:12]MH_I2C_Read... [21:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:12]Read from MH i2c: E2 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: E2 0E 00 [21:38:12]MH_I2C_Read... [21:38:12]Read from MH i2c: E2 0E 00 A9 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [21:38:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:38:12]wFMCommunicate OK [21:38:12]SAM_PROTO_GetShiftState done [21:38:12]FM_GetShiftState done [21:38:12]opened in 1713054696 [21:38:12]opened+sec_in_day 1713141096 [21:38:12]quantity*price = 100050 [21:38:12]sum+1 = 100052 [21:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 351 14.04.2024 21:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112452 ФПД: 257146049320934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213814&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112452&fm=257146049320934&tin=02508201610067®Number=0000000000094237&sum=100000 [21:38:13]StoreToDocumentArchive [21:38:13]shift 357 fd 112452 [21:38:13]save to /storage/0357/doc_00112452 [21:38:13]save last doc name /storage/0357/doc_00112452 to /storage/kkm_last_doc_name [21:38:13]save OK [21:38:13]Clear old archive folders... [21:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:13]tlvbuf is 0015F380 [21:38:13]SAM_PROTO_ClearQueue [21:38:13]wFMCommunicate request_size=4 [21:38:13]MH_SAM_APDU [21:38:13]CAPDU: 80 09 00 00 [21:38:13]Write to MH i2c: E2 08 00 B6 32 80 09 00 00 00 00 00 00 5A [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 [21:38:13]MH_I2C_Read... [21:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:13]Read from MH i2c: E2 03 00 [21:38:13]MH_I2C_Read... [21:38:13]Read from MH i2c: E2 03 00 B6 32 00 90 00 5C [21:38:13]RAPDU: 90 00 [21:38:13]wFMCommunicate OK [21:38:13]SAM_PROTO_ClearQueue done [21:38:13]KKMCreateOFDPacket [21:38:13]OFDProtocolAddRootSTLVToBuf [21:38:13]FM_MakeSignedData [21:38:13]FM_MakeSignedData [21:38:13]SAM_PROTO_SignData [21:38:13]wFMCommunicate request_size=4 [21:38:13]MH_SAM_APDU [21:38:13]CAPDU: 80 0D 01 02 [21:38:13]Write to MH i2c: E2 08 00 B7 32 80 0D 01 02 00 00 00 00 62 [21:38:13]Write i2c OK [21:38:13]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 B7 32 00 90 00 5D [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=255 [21:38:14]MH_SAM_APDU [21:38:14]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 3C 00 00 00 00 00 37 04 06 00 1E 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 5F 01 00 00 F4 03 04 00 C6 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B7 01 00 35 04 06 00 E9 [21:38:14]Write to MH i2c: E2 02 01 B8 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 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 3C 00 00 00 00 00 37 04 06 00 1E 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 5F 01 00 00 F4 03 04 00 C6 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B7 01 00 35 04 06 00 E9 00 00 AE [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 B8 32 00 90 00 5E [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=10 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 02 02 05 DF 7A EC D7 E6 [21:38:14]Write to MH i2c: E2 0D 00 B9 32 80 0D 02 02 05 00 DF 7A EC D7 E6 00 00 71 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [21:38:14]RAPDU: 90 00 [21:38:14]wFMCommunicate OK [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 0D 03 02 [21:38:14]Write to MH i2c: E2 08 00 BA 32 80 0D 03 02 00 00 00 00 67 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 0B 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 0B 00 BA 32 00 D4 86 9C 73 4C 0D 99 0F 90 00 D2 [21:38:14]RAPDU: D4 86 9C 73 4C 0D 99 0F 90 00 [21:38:14]wFMCommunicate OK [21:38:14]SAM_PROTO_SignData done [21:38:14]FM_MakeSignedData done [21:38:14]CreateOFDProtocolMessage [21:38:14]wFMCommunicate request_size=4 [21:38:14]MH_SAM_APDU [21:38:14]CAPDU: 80 11 00 00 [21:38:14]Write to MH i2c: E2 08 00 BB 32 80 11 00 00 00 00 00 00 67 [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:14]Read from MH i2c: E2 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 17 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: E2 17 00 BB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B8 [21:38:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:38:14]wFMCommunicate OK [21:38:14]CreateOFDProtocolMessage done [21:38:14]OFDSenderStorePacket 112452 [21:38:14]StoreOFDPacket docnum=112452 [21:38:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 44 B3 07 01 45 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 00 00 37 04 06 00 1E 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 5F 01 00 00 F4 03 04 00 C6 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B7 01 00 35 04 06 00 E9 DF 7A EC D7 E6 D4 86 9C 73 4C 0D 99 0F [21:38:14]CheckFolder [21:38:14]dirname=/storage/ofd_packets [21:38:14]CheckFolder done [21:38:14]ProducePacketName [21:38:14]name=ofd_packets/00112452 [21:38:14]NVStorageSaveData ofd_packets/00112452 [21:38:14]File name is /storage/ofd_packets/00112452 [21:38:14]Write 301 bytes [21:38:14]NVStorageSaveData done [21:38:14]OFDSenderStorePacket done [21:38:14]KKMCreateOFDPacket done [21:38:14]NVStorageSaveData kkm_last_timestamp [21:38:14]File name is /storage/kkm_last_timestamp [21:38:14]Write 4 bytes [21:38:14]NVStorageSaveData done [21:38:14]ExternCall_PrintAddStr [21:38:14]wPrintStart [21:38:14]Write to MH i2c: 01 00 00 BC 32 EE [21:38:14]Write i2c OK [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: 01 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: 01 07 00 [21:38:14]MH_I2C_Read... [21:38:14]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 FF 0F 03 [21:38:14]RasterBufferAndPrint [21:38:14]line Счет N : (1)48747 [21:38:14]line ИНН: 02508201610067 [21:38:14]line Контрольно-Кассовый Чек [21:38:14]line ПРОДАЖА [21:38:14]line ТРК (МРК, ГНК) : 42 [21:38:14]line Товар: 2710124130 [21:38:14]line Аи-92-К-5 [21:38:14]line 15.560 * 64.30 [21:38:14]line = 1000.51 [21:38:14]line НДС 12% НСП 1% [21:38:14]line > о реализуемом товаре [21:38:14]line ОКРУГЛЕНИЕ: -0.51 [21:38:14]line ИТОГО: 1000.00 [21:38:14]line Внесено: 1000.00 [21:38:14]line СДАЧА: 0.00 [21:38:14]line НСП 1% : 8.85 [21:38:14]line НДС 12% : 106.25 [21:38:14]line Наличными: 1000.00 [21:38:14]line Безнал.: 0.00 [21:38:14]line Место: АЗС № 47 "Партнер Нефть" [21:38:14]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:38:14]line СНО: Общий режим [21:38:14]line Чек 351 14.04.2024 21:38 [21:38:14]line Смена: 357 ФФД: 1.0 [21:38:14]line ЗНМ: 0300000138 [21:38:14]line РНМ: 0000000000094237 [21:38:14]line Версия ККМ: 001 [21:38:14]line ФМ: 0000000000875019 [21:38:14]line ФД: 112452 [21:38:14]line ФПД: 257146049320934 [21:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213814&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112452&fm=257146049320934&tin=02508201610067®Number=0000000000094237&sum=100000 [21:38:14]OFD Sender: Processing packet 112452 [packets to send 71, broken 70] [21:38:14]ProducePacketName [21:38:14]name=ofd_packets/00112452 [21:38:14]OFD Sender: To server: pG, [21:38:14]CommunicateWithHost lk.salyk.kg:30040 [21:38:14]ConnectInit lk.salyk.kg [21:38:14]written 0, free lines is 4095 [21:38:14]Connected sock=10 [21:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 44 B3 07 01 45 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3C 00 00 00 00 00 37 04 06 00 1E 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 5F 01 00 00 F4 03 04 00 C6 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 44 B7 01 00 35 04 06 00 E9 DF 7A EC D7 E6 D4 86 9C 73 4C 0D 99 0F [21:38:15]Write to MH i2c: 01 00 00 E7 32 19 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: 01 07 00 E7 32 00 00 00 00 00 E1 0C 0D [21:38:15]RasterBufferAndPrint [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]line [21:38:15]written 0, free lines is 3303 [21:38:15]MH_Cut [21:38:15]Write to MH i2c: D1 01 00 EE 32 01 F2 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 [21:38:15]MH_I2C_Read... [21:38:15]Read from MH i2c: D1 01 00 EE 32 00 F1 [21:38:15]Write to MH i2c: 01 00 00 EF 32 21 [21:38:15]Write i2c OK [21:38:15]MH_I2C_Read... [21:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 00 47 00 74 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 38 37 35 30 31 39 10 04 04 00 44 B7 01 00 F4 03 04 00 51 F4 1B 66 B6 04 01 00 00 0E 28 1B D7 8A B6 C7 65 [21:38:15]CommunicateWithHost err = 0 [21:38:15]CheckOFDResponse [21:38:15]1017 (14) - 77093643461234 [21:38:15]1041 (16) - 0000000000875019 [21:38:15]1040 (4) - 112452 [21:38:15]1012 (4) - 14.04.2024 15:20 [21:38:15]1206 (1) - 0 [21:38:15]OFD Sender: Remove packet 112452 [21:38:15]ProducePacketName [21:38:15]name=ofd_packets/00112452 [21:38:15]NVStorageDeleteData [21:38:15]OFD Sender: No OFD packet to send [21:38:15]*** Cut start [21:38:15]*** Partial cut [21:38:15]*** CUTSNS_PIN = 1 [21:38:16]*** CUTSNS_PIN = 0 [21:38:16]*** Brake cut motor [21:38:16]Read from MH i2c: 01 [21:38:16]MH_I2C_Read... [21:38:16]*** Stop cut motor [21:38:16]*** Cut end [21:38:16]Read from MH i2c: 01 07 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: 01 07 00 EF 32 00 00 00 00 00 FF 0F 36 [21:38:16]process_action close_receipt done [21:38:16]requested_data is exist [21:38:16]produce_requested_data [21:38:16]requested_item fm.sn is exist - process it [21:38:16]wFMCommunicate request_size=4 [21:38:16]MH_SAM_APDU [21:38:16]CAPDU: 80 11 00 00 [21:38:16]Write to MH i2c: E2 08 00 F0 32 80 11 00 00 00 00 00 00 9C [21:38:16]Write i2c OK [21:38:16]MH_I2C_Read... [21:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:16]Read from MH i2c: E2 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 17 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 17 00 F0 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [21:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:38:16]wFMCommunicate OK [21:38:16]requested_item fd.num is exist - process it [21:38:16]SAM_PROTO_GetFieldsCounters [21:38:16]wFMCommunicate request_size=4 [21:38:16]MH_SAM_APDU [21:38:16]CAPDU: 80 13 00 00 [21:38:16]Write to MH i2c: E2 08 00 F1 32 80 13 00 00 00 00 00 00 9F [21:38:16]Write i2c OK [21:38:16]MH_I2C_Read... [21:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:16]Read from MH i2c: E2 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 62 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 62 00 F1 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 44 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 40 [21:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 44 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:16]wFMCommunicate OK [21:38:16]SAM_PROTO_GetFieldsCounters done [21:38:16]requested_item shift.num is exist - process it [21:38:16]requested_item shift.opened is exist - process it [21:38:16]req_shift_opened [21:38:16]FM_GetShiftState [21:38:16]SAM_PROTO_GetShiftState [21:38:16]wFMCommunicate request_size=4 [21:38:16]MH_SAM_APDU [21:38:16]CAPDU: 80 13 01 00 [21:38:16]Write to MH i2c: E2 08 00 F2 32 80 13 01 00 00 00 00 00 A1 [21:38:16]Write i2c OK [21:38:16]MH_I2C_Read... [21:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:16]Read from MH i2c: E2 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 0E 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 0E 00 F2 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 39 [21:38:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:38:16]wFMCommunicate OK [21:38:16]SAM_PROTO_GetShiftState done [21:38:16]FM_GetShiftState done [21:38:16]req_shift_opened done [21:38:16]requested_item shift.open_date is exist - process it [21:38:16]req_shift_open_date [21:38:16]req_shift_open_date done [21:38:16]produce_requested_data done [21:38:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112452,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:38:16]process_action_free close_receipt [21:38:16]json_value_free [21:38:16]json_value_free done [21:38:16]process_json_proto returns [21:38:16]Send response to host [21:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112452,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:38:16]free response buf [21:38:16]execute_script done [21:38:16]execute_script returns [21:38:16]free content buf [21:38:16]Sock 8.Close socket [21:38:16]Sock 8.Thread stoped [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:49]accept exits with 9 [21:38:49]New connection [21:38:49]New thread 3066826084 created [21:38:49]Thread 3066682724 joined [21:38:49]Waiting for new connection... [21:38:49] Sock 9.Parse request [21:38:49]Sock 9.Check first char [21:38:49]Sock 9.First char is OK [21:38:49]request: POST /json_proto HTTP/1.0 [21:38:49]Method: POST [21:38:49]URL: /json_proto [21:38:49]Method is POST - this is cgi request [21:38:49]url: /json_proto [21:38:49]query_string will be loaded in cgi processing [21:38:49]execute_cgi json_proto POST (null) [21:38:49]execute_cgi path=json_proto method=POST [21:38:49]POST find Content-Length [21:38:49]Host: 172.17.96.197:8080 [21:38:49]Content-Length: 669 [21:38:49]Content-Type: application/json [21:38:49] [21:38:49]POST finish read [21:38:49]Found Content-Length = 669 [21:38:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48748", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [21:38:49]execute_script... [21:38:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48748", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [21:38:49]POST & json_proto [21:38:49]process_json_proto [21:38:49]json parsed OK: [21:38:49]protocol is kg_v1.0 [21:38:49]action value=close_receipt [21:38:49]process_action close_receipt [21:38:49]cmd_close_receipt [21:38:49]MH_GetDate [21:38:49]Write to MH i2c: F0 00 00 F3 32 14 [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: F0 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: F0 09 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: F0 09 00 F3 32 00 EB 4C 1C 66 E0 85 7F 64 1E [21:38:49]GetLastDocTimeStamp 1713130694 [21:38:49]current date 1713130731 [21:38:49]FM_GetShiftState [21:38:49]SAM_PROTO_GetShiftState [21:38:49]wFMCommunicate request_size=4 [21:38:49]MH_SAM_APDU [21:38:49]CAPDU: 80 13 01 00 [21:38:49]Write to MH i2c: E2 08 00 F4 32 80 13 01 00 00 00 00 00 A3 [21:38:49]Write i2c OK [21:38:49]MH_I2C_Read... [21:38:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:49]Read from MH i2c: E2 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 0E 00 [21:38:49]MH_I2C_Read... [21:38:49]Read from MH i2c: E2 0E 00 F4 32 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3B [21:38:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:38:49]wFMCommunicate OK [21:38:49]SAM_PROTO_GetShiftState done [21:38:49]FM_GetShiftState done [21:38:49]opened in 1713054696 [21:38:49]opened+sec_in_day 1713141096 [21:38:49]quantity*price = 50019 [21:38:49]sum+1 = 50021 [21:38:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 352 14.04.2024 21:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112453 ФПД: 131713925517954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213851&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112453&fm=131713925517954&tin=02508201610067®Number=0000000000094237&sum=50000 [21:38:50]StoreToDocumentArchive [21:38:50]shift 357 fd 112453 [21:38:50]save to /storage/0357/doc_00112453 [21:38:50]save last doc name /storage/0357/doc_00112453 to /storage/kkm_last_doc_name [21:38:50]save OK [21:38:50]Clear old archive folders... [21:38:50]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:38:50]tlvbuf is B6F360A0 [21:38:50]SAM_PROTO_ClearQueue [21:38:50]wFMCommunicate request_size=4 [21:38:50]MH_SAM_APDU [21:38:50]CAPDU: 80 09 00 00 [21:38:50]Write to MH i2c: E2 08 00 01 33 80 09 00 00 00 00 00 00 A6 [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:50]Read from MH i2c: E2 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 03 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 03 00 01 33 00 90 00 A8 [21:38:50]RAPDU: 90 00 [21:38:50]wFMCommunicate OK [21:38:50]SAM_PROTO_ClearQueue done [21:38:50]KKMCreateOFDPacket [21:38:50]OFDProtocolAddRootSTLVToBuf [21:38:50]FM_MakeSignedData [21:38:50]FM_MakeSignedData [21:38:50]SAM_PROTO_SignData [21:38:50]wFMCommunicate request_size=4 [21:38:50]MH_SAM_APDU [21:38:50]CAPDU: 80 0D 01 02 [21:38:50]Write to MH i2c: E2 08 00 02 33 80 0D 01 02 00 00 00 00 AE [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:50]Read from MH i2c: E2 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 03 00 [21:38:50]MH_I2C_Read... [21:38:50]Read from MH i2c: E2 03 00 02 33 00 90 00 A9 [21:38:50]RAPDU: 90 00 [21:38:50]wFMCommunicate OK [21:38:50]wFMCommunicate request_size=255 [21:38:50]MH_SAM_APDU [21:38:50]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 60 01 00 00 F4 03 04 00 EB 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B7 01 00 35 04 06 00 [21:38:50]Write to MH i2c: E2 02 01 03 33 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 60 01 00 00 F4 03 04 00 EB 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B7 01 00 35 04 06 00 00 00 51 [21:38:50]Write i2c OK [21:38:50]MH_I2C_Read... [21:38:50]OFD Sender: No OFD packet to send [21:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 03 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 03 00 03 33 00 90 00 AA [21:38:51]RAPDU: 90 00 [21:38:51]wFMCommunicate OK [21:38:51]wFMCommunicate request_size=11 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 0D 02 02 06 77 CB 09 BE 12 82 [21:38:51]Write to MH i2c: E2 0E 00 04 33 80 0D 02 02 06 00 77 CB 09 BE 12 82 00 00 5A [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 03 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [21:38:51]RAPDU: 90 00 [21:38:51]wFMCommunicate OK [21:38:51]wFMCommunicate request_size=4 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 0D 03 02 [21:38:51]Write to MH i2c: E2 08 00 05 33 80 0D 03 02 00 00 00 00 B3 [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 0B 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 0B 00 05 33 00 DC 67 16 A5 87 A6 B1 8E 90 00 1E [21:38:51]RAPDU: DC 67 16 A5 87 A6 B1 8E 90 00 [21:38:51]wFMCommunicate OK [21:38:51]SAM_PROTO_SignData done [21:38:51]FM_MakeSignedData done [21:38:51]CreateOFDProtocolMessage [21:38:51]wFMCommunicate request_size=4 [21:38:51]MH_SAM_APDU [21:38:51]CAPDU: 80 11 00 00 [21:38:51]Write to MH i2c: E2 08 00 06 33 80 11 00 00 00 00 00 00 B3 [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:51]Read from MH i2c: E2 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 17 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: E2 17 00 06 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 04 [21:38:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:38:51]wFMCommunicate OK [21:38:51]CreateOFDProtocolMessage done [21:38:51]OFDSenderStorePacket 112453 [21:38:51]StoreOFDPacket docnum=112453 [21:38:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8E DE 08 01 5A EA 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 60 01 00 00 F4 03 04 00 EB 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B7 01 00 35 04 06 00 77 CB 09 BE 12 82 DC 67 16 A5 87 A6 B1 8E [21:38:51]CheckFolder [21:38:51]dirname=/storage/ofd_packets [21:38:51]CheckFolder done [21:38:51]ProducePacketName [21:38:51]name=ofd_packets/00112453 [21:38:51]NVStorageSaveData ofd_packets/00112453 [21:38:51]File name is /storage/ofd_packets/00112453 [21:38:51]Write 302 bytes [21:38:51]NVStorageSaveData done [21:38:51]OFDSenderStorePacket done [21:38:51]KKMCreateOFDPacket done [21:38:51]NVStorageSaveData kkm_last_timestamp [21:38:51]File name is /storage/kkm_last_timestamp [21:38:51]Write 4 bytes [21:38:51]NVStorageSaveData done [21:38:51]ExternCall_PrintAddStr [21:38:51]wPrintStart [21:38:51]Write to MH i2c: 01 00 00 07 33 3A [21:38:51]Write i2c OK [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: 01 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: 01 07 00 [21:38:51]MH_I2C_Read... [21:38:51]Read from MH i2c: 01 07 00 07 33 00 00 00 00 00 FF 0F 4F [21:38:51]RasterBufferAndPrint [21:38:51]line Счет N : (1)48748 [21:38:51]line ИНН: 02508201610067 [21:38:51]line Контрольно-Кассовый Чек [21:38:51]line ПРОДАЖА [21:38:51]line ТРК (МРК, ГНК) : 31 [21:38:51]line Товар: 2710124130 [21:38:51]line SUPER 92-К-5 [21:38:51]line 7.660 * 65.30 [21:38:51]line = 500.20 [21:38:51]line НДС 12% НСП 1% [21:38:51]line > о реализуемом товаре [21:38:51]line ОКРУГЛЕНИЕ: -0.20 [21:38:51]line ИТОГО: 500.00 [21:38:51]line Внесено: 500.00 [21:38:51]line СДАЧА: 0.00 [21:38:51]line НСП 1% : 4.43 [21:38:51]line НДС 12% : 53.12 [21:38:51]line Наличными: 500.00 [21:38:51]line Безнал.: 0.00 [21:38:51]line Место: АЗС № 47 "Партнер Нефть" [21:38:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:38:51]line СНО: Общий режим [21:38:51]line Чек 352 14.04.2024 21:38 [21:38:51]line Смена: 357 ФФД: 1.0 [21:38:51]line ЗНМ: 0300000138 [21:38:51]line РНМ: 0000000000094237 [21:38:51]line Версия ККМ: 001 [21:38:51]line ФМ: 0000000000875019 [21:38:51]line ФД: 112453 [21:38:51]line ФПД: 131713925517954 [21:38:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T213851&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112453&fm=131713925517954&tin=02508201610067®Number=0000000000094237&sum=50000 [21:38:51]OFD Sender: Processing packet 112453 [packets to send 71, broken 70] [21:38:51]ProducePacketName [21:38:51]name=ofd_packets/00112453 [21:38:51]OFD Sender: To server: pG, [21:38:51]CommunicateWithHost lk.salyk.kg:30040 [21:38:51]ConnectInit lk.salyk.kg [21:38:51]written 0, free lines is 4095 [21:38:51]Connected sock=10 [21:38:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 8E DE 08 01 5A EA 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 60 01 00 00 F4 03 04 00 EB 4C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B7 01 00 35 04 06 00 77 CB 09 BE 12 82 DC 67 16 A5 87 A6 B1 8E [21:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 75 BE 47 00 2F 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 45 B7 01 00 F4 03 04 00 75 F4 1B 66 B6 04 01 00 00 AB D8 F7 09 ED D4 08 60 [21:38:51]CommunicateWithHost err = 0 [21:38:51]CheckOFDResponse [21:38:51]1017 (14) - 77093643461234 [21:38:51]1041 (16) - 0000000000875019 [21:38:51]1040 (4) - 112453 [21:38:51]1012 (4) - 14.04.2024 15:21 [21:38:51]1206 (1) - 0 [21:38:51]OFD Sender: Remove packet 112453 [21:38:51]ProducePacketName [21:38:51]name=ofd_packets/00112453 [21:38:51]NVStorageDeleteData [21:38:52]Write to MH i2c: 01 00 00 32 33 65 [21:38:52]Write i2c OK [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: 01 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: 01 07 00 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: 01 07 00 32 33 00 00 00 00 00 EB 0C 63 [21:38:52]RasterBufferAndPrint [21:38:52]line [21:38:52]line [21:38:52]line [21:38:52]line [21:38:52]line [21:38:52]written 0, free lines is 3313 [21:38:52]MH_Cut [21:38:52]Write to MH i2c: D1 01 00 39 33 01 3E [21:38:52]Write i2c OK [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: D1 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: D1 01 00 [21:38:52]MH_I2C_Read... [21:38:52]Read from MH i2c: D1 01 00 39 33 00 3D [21:38:52]Write to MH i2c: 01 00 00 3A 33 6D [21:38:52]Write i2c OK [21:38:52]MH_I2C_Read... [21:38:52]OFD Sender: No OFD packet to send [21:38:52]*** Cut start [21:38:52]*** Partial cut [21:38:52]*** CUTSNS_PIN = 1 [21:38:52]*** CUTSNS_PIN = 0 [21:38:53]*** Brake cut motor [21:38:53]Read from MH i2c: 01 [21:38:53]MH_I2C_Read... [21:38:53]*** Stop cut motor [21:38:53]*** Cut end [21:38:53]Read from MH i2c: 01 07 00 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: 01 07 00 3A 33 00 00 00 00 00 FF 0F 82 [21:38:53]process_action close_receipt done [21:38:53]requested_data is exist [21:38:53]produce_requested_data [21:38:53]requested_item fm.sn is exist - process it [21:38:53]wFMCommunicate request_size=4 [21:38:53]MH_SAM_APDU [21:38:53]CAPDU: 80 11 00 00 [21:38:53]Write to MH i2c: E2 08 00 3B 33 80 11 00 00 00 00 00 00 E8 [21:38:53]Write i2c OK [21:38:53]MH_I2C_Read... [21:38:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:53]Read from MH i2c: E2 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 17 00 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 17 00 3B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 39 [21:38:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:38:53]wFMCommunicate OK [21:38:53]requested_item fd.num is exist - process it [21:38:53]SAM_PROTO_GetFieldsCounters [21:38:53]wFMCommunicate request_size=4 [21:38:53]MH_SAM_APDU [21:38:53]CAPDU: 80 13 00 00 [21:38:53]Write to MH i2c: E2 08 00 3C 33 80 13 00 00 00 00 00 00 EB [21:38:53]Write i2c OK [21:38:53]MH_I2C_Read... [21:38:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:53]Read from MH i2c: E2 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 62 00 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 62 00 3C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 45 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [21:38:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 45 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:53]wFMCommunicate OK [21:38:53]SAM_PROTO_GetFieldsCounters done [21:38:53]requested_item shift.num is exist - process it [21:38:53]requested_item shift.opened is exist - process it [21:38:53]req_shift_opened [21:38:53]FM_GetShiftState [21:38:53]SAM_PROTO_GetShiftState [21:38:53]wFMCommunicate request_size=4 [21:38:53]MH_SAM_APDU [21:38:53]CAPDU: 80 13 01 00 [21:38:53]Write to MH i2c: E2 08 00 3D 33 80 13 01 00 00 00 00 00 ED [21:38:53]Write i2c OK [21:38:53]MH_I2C_Read... [21:38:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:53]Read from MH i2c: E2 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 0E 00 [21:38:53]MH_I2C_Read... [21:38:53]Read from MH i2c: E2 0E 00 3D 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 85 [21:38:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:38:53]wFMCommunicate OK [21:38:53]SAM_PROTO_GetShiftState done [21:38:53]FM_GetShiftState done [21:38:53]req_shift_opened done [21:38:53]requested_item shift.open_date is exist - process it [21:38:53]req_shift_open_date [21:38:53]req_shift_open_date done [21:38:53]produce_requested_data done [21:38:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112453,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:38:53]process_action_free close_receipt [21:38:53]json_value_free [21:38:53]json_value_free done [21:38:53]process_json_proto returns [21:38:53]Send response to host [21:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112453,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:38:53]free response buf [21:38:53]execute_script done [21:38:53]execute_script returns [21:38:53]free content buf [21:38:53]Sock 9.Close socket [21:38:53]Sock 9.Thread stoped [21:38:57]OFD Sender: No OFD packet to send [21:39:02]OFD Sender: No OFD packet to send [21:39:07]OFD Sender: No OFD packet to send [21:39:12]OFD Sender: No OFD packet to send [21:39:17]OFD Sender: No OFD packet to send [21:39:22]OFD Sender: No OFD packet to send [21:39:27]OFD Sender: No OFD packet to send [21:39:32]OFD Sender: No OFD packet to send [21:39:37]OFD Sender: No OFD packet to send [21:39:42]OFD Sender: No OFD packet to send [21:39:47]OFD Sender: No OFD packet to send [21:39:52]OFD Sender: No OFD packet to send [21:39:57]OFD Sender: No OFD packet to send [21:40:02]OFD Sender: No OFD packet to send [21:40:07]OFD Sender: No OFD packet to send [21:40:12]OFD Sender: No OFD packet to send [21:40:17]OFD Sender: No OFD packet to send [21:40:22]OFD Sender: No OFD packet to send [21:40:27]OFD Sender: No OFD packet to send [21:40:32]OFD Sender: No OFD packet to send [21:40:37]OFD Sender: No OFD packet to send [21:40:42]OFD Sender: No OFD packet to send [21:40:47]OFD Sender: No OFD packet to send [21:40:52]OFD Sender: No OFD packet to send [21:40:57]OFD Sender: No OFD packet to send [21:41:02]OFD Sender: No OFD packet to send [21:41:07]OFD Sender: No OFD packet to send [21:41:12]OFD Sender: No OFD packet to send [21:41:17]OFD Sender: No OFD packet to send [21:41:22]OFD Sender: No OFD packet to send [21:41:27]OFD Sender: No OFD packet to send [21:41:32]OFD Sender: No OFD packet to send [21:41:37]OFD Sender: No OFD packet to send [21:41:42]OFD Sender: No OFD packet to send [21:41:47]OFD Sender: No OFD packet to send [21:41:52]OFD Sender: No OFD packet to send [21:41:57]OFD Sender: No OFD packet to send [21:42:02]OFD Sender: No OFD packet to send [21:42:03]accept exits with 8 [21:42:03]New connection [21:42:03]New thread 3066682724 created [21:42:03]Thread 3066826084 joined [21:42:03]Waiting for new connection... [21:42:03] Sock 8.Parse request [21:42:03]Sock 8.Check first char [21:42:03]Sock 8.First char is OK [21:42:03]request: POST /json_proto HTTP/1.0 [21:42:03]Method: POST [21:42:03]URL: /json_proto [21:42:03]Method is POST - this is cgi request [21:42:03]url: /json_proto [21:42:03]query_string will be loaded in cgi processing [21:42:03]execute_cgi json_proto POST (null) [21:42:03]execute_cgi path=json_proto method=POST [21:42:03]POST find Content-Length [21:42:03]Host: 172.17.96.197:8080 [21:42:03]Content-Length: 662 [21:42:03]Content-Type: application/json [21:42:03] [21:42:03]POST finish read [21:42:03]Found Content-Length = 662 [21:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10450", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:03]execute_script... [21:42:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10450", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:03]POST & json_proto [21:42:03]process_json_proto [21:42:03]json parsed OK: [21:42:03]protocol is kg_v1.0 [21:42:03]action value=close_receipt [21:42:03]process_action close_receipt [21:42:03]cmd_close_receipt [21:42:03]MH_GetDate [21:42:03]Write to MH i2c: F0 00 00 3E 33 60 [21:42:03]Write i2c OK [21:42:03]MH_I2C_Read... [21:42:03]Read from MH i2c: F0 [21:42:03]MH_I2C_Read... [21:42:03]Read from MH i2c: F0 09 00 [21:42:03]MH_I2C_Read... [21:42:03]Read from MH i2c: F0 09 00 3E 33 00 AD 4D 1C 66 E0 85 7F 64 2D [21:42:03]GetLastDocTimeStamp 1713130731 [21:42:03]current date 1713130925 [21:42:03]FM_GetShiftState [21:42:03]SAM_PROTO_GetShiftState [21:42:03]wFMCommunicate request_size=4 [21:42:03]MH_SAM_APDU [21:42:03]CAPDU: 80 13 01 00 [21:42:03]Write to MH i2c: E2 08 00 3F 33 80 13 01 00 00 00 00 00 EF [21:42:03]Write i2c OK [21:42:03]MH_I2C_Read... [21:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:03]Read from MH i2c: E2 [21:42:03]MH_I2C_Read... [21:42:03]Read from MH i2c: E2 0E 00 [21:42:03]MH_I2C_Read... [21:42:03]Read from MH i2c: E2 0E 00 3F 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [21:42:03]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:42:03]wFMCommunicate OK [21:42:03]SAM_PROTO_GetShiftState done [21:42:03]FM_GetShiftState done [21:42:03]opened in 1713054696 [21:42:03]opened+sec_in_day 1713141096 [21:42:03]quantity*price = 5300 [21:42:03]sum+1 = 5301 [21:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 53.00 НСП 1% : 0.47 НДС 12% : 5.63 Наличными: 53.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 353 14.04.2024 21:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112454 ФПД: 73892377110549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214205&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112454&fm=73892377110549&tin=02508201610067®Number=0000000000094237&sum=5300 0 [21:42:04]StoreToDocumentArchive [21:42:04]shift 357 fd 112454 [21:42:04]save to /storage/0357/doc_00112454 [21:42:04]save last doc name /storage/0357/doc_00112454 to /storage/kkm_last_doc_name [21:42:04]save OK [21:42:04]Clear old archive folders... [21:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=286 [21:42:04]tlvbuf is 001F8850 [21:42:04]SAM_PROTO_ClearQueue [21:42:04]wFMCommunicate request_size=4 [21:42:04]MH_SAM_APDU [21:42:04]CAPDU: 80 09 00 00 [21:42:04]Write to MH i2c: E2 08 00 4C 33 80 09 00 00 00 00 00 00 F1 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 [21:42:04]MH_I2C_Read... [21:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:04]Read from MH i2c: E2 03 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 03 00 4C 33 00 90 00 F3 [21:42:04]RAPDU: 90 00 [21:42:04]wFMCommunicate OK [21:42:04]SAM_PROTO_ClearQueue done [21:42:04]KKMCreateOFDPacket [21:42:04]OFDProtocolAddRootSTLVToBuf [21:42:04]FM_MakeSignedData [21:42:04]FM_MakeSignedData [21:42:04]SAM_PROTO_SignData [21:42:04]wFMCommunicate request_size=4 [21:42:04]MH_SAM_APDU [21:42:04]CAPDU: 80 0D 01 02 [21:42:04]Write to MH i2c: E2 08 00 4D 33 80 0D 01 02 00 00 00 00 F9 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:04]Read from MH i2c: E2 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 03 00 [21:42:04]MH_I2C_Read... [21:42:04]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [21:42:04]RAPDU: 90 00 [21:42:04]wFMCommunicate OK [21:42:04]wFMCommunicate request_size=255 [21:42:04]MH_SAM_APDU [21:42:04]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 AD 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 [21:42:04]Write to MH i2c: E2 02 01 4E 33 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 AD 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 00 00 14 [21:42:04]Write i2c OK [21:42:04]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [21:42:05]RAPDU: 90 00 [21:42:05]wFMCommunicate OK [21:42:05]wFMCommunicate request_size=45 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 0D 02 02 28 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B7 01 00 35 04 06 00 43 34 68 E3 A8 15 [21:42:05]Write to MH i2c: E2 30 00 4F 33 80 0D 02 02 28 00 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B7 01 00 35 04 06 00 43 34 68 E3 A8 15 00 00 CD [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [21:42:05]RAPDU: 90 00 [21:42:05]wFMCommunicate OK [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 0D 03 02 [21:42:05]Write to MH i2c: E2 08 00 50 33 80 0D 03 02 00 00 00 00 FE [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 0B 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 0B 00 50 33 00 47 F6 C9 57 59 76 BF 68 90 00 52 [21:42:05]RAPDU: 47 F6 C9 57 59 76 BF 68 90 00 [21:42:05]wFMCommunicate OK [21:42:05]SAM_PROTO_SignData done [21:42:05]FM_MakeSignedData done [21:42:05]CreateOFDProtocolMessage [21:42:05]wFMCommunicate request_size=4 [21:42:05]MH_SAM_APDU [21:42:05]CAPDU: 80 11 00 00 [21:42:05]Write to MH i2c: E2 08 00 51 33 80 11 00 00 00 00 00 00 FE [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:05]Read from MH i2c: E2 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 17 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: E2 17 00 51 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4F [21:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:42:05]wFMCommunicate OK [21:42:05]CreateOFDProtocolMessage done [21:42:05]OFDSenderStorePacket 112454 [21:42:05]StoreOFDPacket docnum=112454 [21:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 32 01 00 00 EB 50 2A 01 23 6D 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 AD 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B7 01 00 35 04 06 00 43 34 68 E3 A8 15 47 F6 C9 57 59 76 BF 68 [21:42:05]CheckFolder [21:42:05]dirname=/storage/ofd_packets [21:42:05]CheckFolder done [21:42:05]ProducePacketName [21:42:05]name=ofd_packets/00112454 [21:42:05]NVStorageSaveData ofd_packets/00112454 [21:42:05]File name is /storage/ofd_packets/00112454 [21:42:05]Write 336 bytes [21:42:05]NVStorageSaveData done [21:42:05]OFDSenderStorePacket done [21:42:05]KKMCreateOFDPacket done [21:42:05]NVStorageSaveData kkm_last_timestamp [21:42:05]File name is /storage/kkm_last_timestamp [21:42:05]Write 4 bytes [21:42:05]NVStorageSaveData done [21:42:05]ExternCall_PrintAddStr [21:42:05]wPrintStart [21:42:05]Write to MH i2c: 01 00 00 52 33 85 [21:42:05]Write i2c OK [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: 01 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: 01 07 00 [21:42:05]MH_I2C_Read... [21:42:05]Read from MH i2c: 01 07 00 52 33 00 00 00 00 00 FF 0F 9A [21:42:05]RasterBufferAndPrint [21:42:05]line Счет N : (3)10450 [21:42:05]line ИНН: 02508201610067 [21:42:05]line Контрольно-Кассовый Чек [21:42:05]line ПРОДАЖА [21:42:05]line Товар: 4607120854184 [21:42:05]line Снек Орехи BEERKa Арахис 90г [21:42:05]line 1.000 * 53.00 [21:42:05]line = 53.00 [21:42:05]line НДС 12% НСП 1% [21:42:05]line > о реализуемом товаре [21:42:05]line ИТОГО: 53.00 [21:42:05]line НСП 1% : 0.47 [21:42:05]line НДС 12% : 5.63 [21:42:05]line Наличными: 53.00 [21:42:05]line Безнал.: 0.00 [21:42:05]line Место: АЗС № 47 "Партнер Нефть" [21:42:05]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:42:05]line СНО: Общий режим [21:42:05]line Чек 353 14.04.2024 21:42 [21:42:05]line Смена: 357 ФФД: 1.0 [21:42:05]line ЗНМ: 0300000138 [21:42:05]line РНМ: 0000000000094237 [21:42:05]line Версия ККМ: 001 [21:42:05]line ФМ: 0000000000875019 [21:42:05]line ФД: 112454 [21:42:05]line ФПД: 73892377110549 [21:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214205&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112454&fm=73892377110549&tin=02508201610067®Number=0000000000094237&sum=5300 [21:42:05]line 0 [21:42:05]OFD Sender: Processing packet 112454 [packets to send 71, broken 70] [21:42:05]ProducePacketName [21:42:05]name=ofd_packets/00112454 [21:42:05]OFD Sender: To server: pG, [21:42:05]CommunicateWithHost lk.salyk.kg:30040 [21:42:05]ConnectInit lk.salyk.kg [21:42:05]written 0, free lines is 4095 [21:42:05]Connected sock=10 [21:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 32 01 00 00 EB 50 2A 01 23 6D 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 AD 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B7 01 00 35 04 06 00 43 34 68 E3 A8 15 47 F6 C9 57 59 76 BF 68 [21:42:06]Write to MH i2c: 01 00 00 7B 33 AE [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 07 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: 01 07 00 7B 33 00 00 00 00 00 DF 0C A0 [21:42:06]RasterBufferAndPrint [21:42:06]line [21:42:06]line [21:42:06]line [21:42:06]line [21:42:06]line [21:42:06]written 0, free lines is 3304 [21:42:06]MH_Cut [21:42:06]Write to MH i2c: D1 01 00 82 33 01 87 [21:42:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 97 36 47 00 6D ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 46 B7 01 00 F4 03 04 00 37 F5 1B 66 B6 04 01 00 00 42 C9 0E 5C 2D 32 50 2C [21:42:06]CommunicateWithHost err = 0 [21:42:06]CheckOFDResponse [21:42:06]1017 (14) - 77093643461234 [21:42:06]1041 (16) - 0000000000875019 [21:42:06]1040 (4) - 112454 [21:42:06]1012 (4) - 14.04.2024 15:24 [21:42:06]1206 (1) - 0 [21:42:06]OFD Sender: Remove packet 112454 [21:42:06]ProducePacketName [21:42:06]name=ofd_packets/00112454 [21:42:06]NVStorageDeleteData [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: D1 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: D1 01 00 [21:42:06]MH_I2C_Read... [21:42:06]Read from MH i2c: D1 01 00 82 33 00 86 [21:42:06]Write to MH i2c: 01 00 00 83 33 B6 [21:42:06]Write i2c OK [21:42:06]MH_I2C_Read... [21:42:06]OFD Sender: No OFD packet to send [21:42:06]*** Cut start [21:42:06]*** Partial cut [21:42:06]*** CUTSNS_PIN = 1 [21:42:07]*** CUTSNS_PIN = 0 [21:42:07]*** Brake cut motor [21:42:07]Read from MH i2c: 01 [21:42:07]MH_I2C_Read... [21:42:07]*** Stop cut motor [21:42:07]*** Cut end [21:42:07]Read from MH i2c: 01 07 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: 01 07 00 83 33 00 00 00 00 00 FF 0F CB [21:42:07]process_action close_receipt done [21:42:07]requested_data is exist [21:42:07]produce_requested_data [21:42:07]requested_item fm.sn is exist - process it [21:42:07]wFMCommunicate request_size=4 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 11 00 00 [21:42:07]Write to MH i2c: E2 08 00 84 33 80 11 00 00 00 00 00 00 31 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 17 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 17 00 84 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 82 [21:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:42:07]wFMCommunicate OK [21:42:07]requested_item fd.num is exist - process it [21:42:07]SAM_PROTO_GetFieldsCounters [21:42:07]wFMCommunicate request_size=4 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 13 00 00 [21:42:07]Write to MH i2c: E2 08 00 85 33 80 13 00 00 00 00 00 00 34 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 62 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 62 00 85 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 46 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [21:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 46 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:07]wFMCommunicate OK [21:42:07]SAM_PROTO_GetFieldsCounters done [21:42:07]requested_item shift.num is exist - process it [21:42:07]requested_item shift.opened is exist - process it [21:42:07]req_shift_opened [21:42:07]FM_GetShiftState [21:42:07]SAM_PROTO_GetShiftState [21:42:07]wFMCommunicate request_size=4 [21:42:07]MH_SAM_APDU [21:42:07]CAPDU: 80 13 01 00 [21:42:07]Write to MH i2c: E2 08 00 86 33 80 13 01 00 00 00 00 00 36 [21:42:07]Write i2c OK [21:42:07]MH_I2C_Read... [21:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:07]Read from MH i2c: E2 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 0E 00 [21:42:07]MH_I2C_Read... [21:42:07]Read from MH i2c: E2 0E 00 86 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 CE [21:42:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:42:07]wFMCommunicate OK [21:42:07]SAM_PROTO_GetShiftState done [21:42:07]FM_GetShiftState done [21:42:07]req_shift_opened done [21:42:07]requested_item shift.open_date is exist - process it [21:42:07]req_shift_open_date [21:42:07]req_shift_open_date done [21:42:07]produce_requested_data done [21:42:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112454,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:42:07]process_action_free close_receipt [21:42:07]json_value_free [21:42:07]json_value_free done [21:42:07]process_json_proto returns [21:42:07]Send response to host [21:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112454,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:42:07]free response buf [21:42:07]execute_script done [21:42:07]execute_script returns [21:42:07]free content buf [21:42:07]Sock 8.Close socket [21:42:07]Sock 8.Thread stoped [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:18]accept exits with 9 [21:42:18]New connection [21:42:18]New thread 3066826084 created [21:42:18]Thread 3066682724 joined [21:42:18]Waiting for new connection... [21:42:18] Sock 9.Parse request [21:42:18]Sock 9.Check first char [21:42:18]Sock 9.First char is OK [21:42:18]request: POST /json_proto HTTP/1.0 [21:42:18]Method: POST [21:42:18]URL: /json_proto [21:42:18]Method is POST - this is cgi request [21:42:18]url: /json_proto [21:42:18]query_string will be loaded in cgi processing [21:42:18]execute_cgi json_proto POST (null) [21:42:18]execute_cgi path=json_proto method=POST [21:42:18]POST find Content-Length [21:42:18]Host: 172.17.96.197:8080 [21:42:18]Content-Length: 676 [21:42:18]Content-Type: application/json [21:42:18] [21:42:18]POST finish read [21:42:18]Found Content-Length = 676 [21:42:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.140, "sum" : 330.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:18]execute_script... [21:42: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)48749", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 5.140, "sum" : 330.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:18]POST & json_proto [21:42:18]process_json_proto [21:42:18]json parsed OK: [21:42:18]protocol is kg_v1.0 [21:42:18]action value=close_receipt [21:42:18]process_action close_receipt [21:42:18]cmd_close_receipt [21:42:18]MH_GetDate [21:42:18]Write to MH i2c: F0 00 00 87 33 A9 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: F0 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: F0 09 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: F0 09 00 87 33 00 BC 4D 1C 66 E0 85 7F 64 85 [21:42:18]GetLastDocTimeStamp 1713130925 [21:42:18]current date 1713130940 [21:42:18]FM_GetShiftState [21:42:18]SAM_PROTO_GetShiftState [21:42:18]wFMCommunicate request_size=4 [21:42:18]MH_SAM_APDU [21:42:18]CAPDU: 80 13 01 00 [21:42:18]Write to MH i2c: E2 08 00 88 33 80 13 01 00 00 00 00 00 38 [21:42:18]Write i2c OK [21:42:18]MH_I2C_Read... [21:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:18]Read from MH i2c: E2 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0E 00 [21:42:18]MH_I2C_Read... [21:42:18]Read from MH i2c: E2 0E 00 88 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D0 [21:42:18]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:42:18]wFMCommunicate OK [21:42:18]SAM_PROTO_GetShiftState done [21:42:18]FM_GetShiftState done [21:42:18]opened in 1713054696 [21:42:18]opened+sec_in_day 1713141096 [21:42:18]quantity*price = 33050 [21:42:18]sum+1 = 33051 [21:42:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 354 14.04.2024 21:42 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112455 ФПД: 202828212580314 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214220&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112455&fm=202828212580314&tin=02508201610067®Number=0000000000094237&sum=33000 [21:42:20]StoreToDocumentArchive [21:42:20]shift 357 fd 112455 [21:42:20]save to /storage/0357/doc_00112455 [21:42:20]save last doc name /storage/0357/doc_00112455 to /storage/kkm_last_doc_name [21:42:20]save OK [21:42:20]Clear old archive folders... [21:42:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:20]tlvbuf is 001C9CA0 [21:42:20]SAM_PROTO_ClearQueue [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 09 00 00 [21:42:20]Write to MH i2c: E2 08 00 95 33 80 09 00 00 00 00 00 00 3A [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:20]Read from MH i2c: E2 03 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 95 33 00 90 00 3C [21:42:20]RAPDU: 90 00 [21:42:20]wFMCommunicate OK [21:42:20]SAM_PROTO_ClearQueue done [21:42:20]KKMCreateOFDPacket [21:42:20]OFDProtocolAddRootSTLVToBuf [21:42:20]FM_MakeSignedData [21:42:20]FM_MakeSignedData [21:42:20]SAM_PROTO_SignData [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 0D 01 02 [21:42:20]Write to MH i2c: E2 08 00 96 33 80 0D 01 02 00 00 00 00 42 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 96 33 00 90 00 3D [21:42:20]RAPDU: 90 00 [21:42:20]wFMCommunicate OK [21:42:20]wFMCommunicate request_size=255 [21:42:20]MH_SAM_APDU [21:42:20]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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 BC 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B7 01 00 35 04 06 00 B8 [21:42:20]Write to MH i2c: E2 02 01 97 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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 BC 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B7 01 00 35 04 06 00 B8 00 00 07 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [21:42:20]RAPDU: 90 00 [21:42:20]wFMCommunicate OK [21:42:20]wFMCommunicate request_size=10 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 0D 02 02 05 78 9F 8F AF DA [21:42:20]Write to MH i2c: E2 0D 00 98 33 80 0D 02 02 05 00 78 9F 8F AF DA 00 00 7E [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [21:42:20]RAPDU: 90 00 [21:42:20]wFMCommunicate OK [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 0D 03 02 [21:42:20]Write to MH i2c: E2 08 00 99 33 80 0D 03 02 00 00 00 00 47 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 0B 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 0B 00 99 33 00 0A 83 DC D9 F0 64 EA 02 90 00 CA [21:42:20]RAPDU: 0A 83 DC D9 F0 64 EA 02 90 00 [21:42:20]wFMCommunicate OK [21:42:20]SAM_PROTO_SignData done [21:42:20]FM_MakeSignedData done [21:42:20]CreateOFDProtocolMessage [21:42:20]wFMCommunicate request_size=4 [21:42:20]MH_SAM_APDU [21:42:20]CAPDU: 80 11 00 00 [21:42:20]Write to MH i2c: E2 08 00 9A 33 80 11 00 00 00 00 00 00 47 [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:20]Read from MH i2c: E2 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 17 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: E2 17 00 9A 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 98 [21:42:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:42:20]wFMCommunicate OK [21:42:20]CreateOFDProtocolMessage done [21:42:20]OFDSenderStorePacket 112455 [21:42:20]StoreOFDPacket docnum=112455 [21:42:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CA 45 07 01 0E E7 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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 BC 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B7 01 00 35 04 06 00 B8 78 9F 8F AF DA 0A 83 DC D9 F0 64 EA 02 [21:42:20]CheckFolder [21:42:20]dirname=/storage/ofd_packets [21:42:20]CheckFolder done [21:42:20]ProducePacketName [21:42:20]name=ofd_packets/00112455 [21:42:20]NVStorageSaveData ofd_packets/00112455 [21:42:20]File name is /storage/ofd_packets/00112455 [21:42:20]Write 301 bytes [21:42:20]NVStorageSaveData done [21:42:20]OFDSenderStorePacket done [21:42:20]KKMCreateOFDPacket done [21:42:20]NVStorageSaveData kkm_last_timestamp [21:42:20]File name is /storage/kkm_last_timestamp [21:42:20]Write 4 bytes [21:42:20]NVStorageSaveData done [21:42:20]ExternCall_PrintAddStr [21:42:20]wPrintStart [21:42:20]Write to MH i2c: 01 00 00 9B 33 CE [21:42:20]Write i2c OK [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: 01 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: 01 07 00 [21:42:20]MH_I2C_Read... [21:42:20]Read from MH i2c: 01 07 00 9B 33 00 00 00 00 00 FF 0F E3 [21:42:20]RasterBufferAndPrint [21:42:20]line Счет N : (1)48749 [21:42:20]line ИНН: 02508201610067 [21:42:20]line Контрольно-Кассовый Чек [21:42:20]line ПРОДАЖА [21:42:20]line ТРК (МРК, ГНК) : 21 [21:42:20]line Товар: 2710124130 [21:42:20]line Аи-92-К-5 [21:42:20]line 5.140 * 64.30 [21:42:20]line = 330.50 [21:42:20]line НДС 12% НСП 1% [21:42:20]line > о реализуемом товаре [21:42:20]line ОКРУГЛЕНИЕ: -0.50 [21:42:20]line ИТОГО: 330.00 [21:42:20]line Внесено: 330.00 [21:42:20]line СДАЧА: 0.00 [21:42:20]line НСП 1% : 2.92 [21:42:20]line НДС 12% : 35.10 [21:42:20]line Наличными: 330.00 [21:42:20]line Безнал.: 0.00 [21:42:20]line Место: АЗС № 47 "Партнер Нефть" [21:42:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:42:20]line СНО: Общий режим [21:42:20]line Чек 354 14.04.2024 21:42 [21:42:20]line Смена: 357 ФФД: 1.0 [21:42:20]line ЗНМ: 0300000138 [21:42:20]line РНМ: 0000000000094237 [21:42:20]line Версия ККМ: 001 [21:42:20]line ФМ: 0000000000875019 [21:42:20]line ФД: 112455 [21:42:20]line ФПД: 202828212580314 [21:42:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214220&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112455&fm=202828212580314&tin=02508201610067®Number=0000000000094237&sum=33000 [21:42:20]written 0, free lines is 4095 [21:42:20]OFD Sender: Processing packet 112455 [packets to send 71, broken 70] [21:42:20]ProducePacketName [21:42:20]name=ofd_packets/00112455 [21:42:20]OFD Sender: To server: pG, [21:42:20]CommunicateWithHost lk.salyk.kg:30040 [21:42:20]ConnectInit lk.salyk.kg [21:42:21]Connected sock=8 [21:42:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 CA 45 07 01 0E E7 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 14 14 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 1A 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 BC 4D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B7 01 00 35 04 06 00 B8 78 9F 8F AF DA 0A 83 DC D9 F0 64 EA 02 [21:42:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2D 97 47 00 DB 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 47 B7 01 00 F4 03 04 00 47 F5 1B 66 B6 04 01 00 00 02 E5 D9 D7 53 E8 E6 0D [21:42:21]CommunicateWithHost err = 0 [21:42:21]CheckOFDResponse [21:42:21]1017 (14) - 77093643461234 [21:42:21]1041 (16) - 0000000000875019 [21:42:21]1040 (4) - 112455 [21:42:21]1012 (4) - 14.04.2024 15:24 [21:42:21]1206 (1) - 0 [21:42:21]OFD Sender: Remove packet 112455 [21:42:21]ProducePacketName [21:42:21]name=ofd_packets/00112455 [21:42:21]NVStorageDeleteData [21:42:21]Write to MH i2c: 01 00 00 C6 33 F9 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: 01 07 00 C6 33 00 00 00 00 00 EE 0C FA [21:42:21]RasterBufferAndPrint [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]line [21:42:21]written 0, free lines is 3316 [21:42:21]MH_Cut [21:42:21]Write to MH i2c: D1 01 00 CD 33 01 D2 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 01 00 [21:42:21]MH_I2C_Read... [21:42:21]Read from MH i2c: D1 01 00 CD 33 00 D1 [21:42:21]Write to MH i2c: 01 00 00 CE 33 01 [21:42:21]Write i2c OK [21:42:21]MH_I2C_Read... [21:42:21]OFD Sender: No OFD packet to send [21:42:22]*** Cut start [21:42:22]*** Partial cut [21:42:22]*** CUTSNS_PIN = 1 [21:42:22]*** CUTSNS_PIN = 0 [21:42:22]*** Brake cut motor [21:42:22]Read from MH i2c: 01 [21:42:22]MH_I2C_Read... [21:42:22]*** Stop cut motor [21:42:22]*** Cut end [21:42:22]Read from MH i2c: 01 07 00 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: 01 07 00 CE 33 00 00 00 00 00 FF 0F 16 [21:42:22]process_action close_receipt done [21:42:22]requested_data is exist [21:42:22]produce_requested_data [21:42:22]requested_item fm.sn is exist - process it [21:42:22]wFMCommunicate request_size=4 [21:42:22]MH_SAM_APDU [21:42:22]CAPDU: 80 11 00 00 [21:42:22]Write to MH i2c: E2 08 00 CF 33 80 11 00 00 00 00 00 00 7C [21:42:22]Write i2c OK [21:42:22]MH_I2C_Read... [21:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:22]Read from MH i2c: E2 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 17 00 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 17 00 CF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CD [21:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:42:22]wFMCommunicate OK [21:42:22]requested_item fd.num is exist - process it [21:42:22]SAM_PROTO_GetFieldsCounters [21:42:22]wFMCommunicate request_size=4 [21:42:22]MH_SAM_APDU [21:42:22]CAPDU: 80 13 00 00 [21:42:22]Write to MH i2c: E2 08 00 D0 33 80 13 00 00 00 00 00 00 7F [21:42:22]Write i2c OK [21:42:22]MH_I2C_Read... [21:42:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:22]Read from MH i2c: E2 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 62 00 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 62 00 D0 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 47 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [21:42:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 47 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:22]wFMCommunicate OK [21:42:22]SAM_PROTO_GetFieldsCounters done [21:42:22]requested_item shift.num is exist - process it [21:42:22]requested_item shift.opened is exist - process it [21:42:22]req_shift_opened [21:42:22]FM_GetShiftState [21:42:22]SAM_PROTO_GetShiftState [21:42:22]wFMCommunicate request_size=4 [21:42:22]MH_SAM_APDU [21:42:22]CAPDU: 80 13 01 00 [21:42:22]Write to MH i2c: E2 08 00 D1 33 80 13 01 00 00 00 00 00 81 [21:42:22]Write i2c OK [21:42:22]MH_I2C_Read... [21:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:22]Read from MH i2c: E2 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 0E 00 [21:42:22]MH_I2C_Read... [21:42:22]Read from MH i2c: E2 0E 00 D1 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 19 [21:42:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:42:22]wFMCommunicate OK [21:42:22]SAM_PROTO_GetShiftState done [21:42:22]FM_GetShiftState done [21:42:22]req_shift_opened done [21:42:22]requested_item shift.open_date is exist - process it [21:42:22]req_shift_open_date [21:42:22]req_shift_open_date done [21:42:22]produce_requested_data done [21:42:22]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112455,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:42:22]process_action_free close_receipt [21:42:22]json_value_free [21:42:22]json_value_free done [21:42:22]process_json_proto returns [21:42:22]Send response to host [21:42:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112455,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:42:22]free response buf [21:42:22]execute_script done [21:42:22]execute_script returns [21:42:22]free content buf [21:42:22]Sock 9.Close socket [21:42:22]Sock 9.Thread stoped [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:35]accept exits with 10 [21:44:35]New connection [21:44:35]New thread 3066682724 created [21:44:35]Thread 3066826084 joined [21:44:35]Waiting for new connection... [21:44:35] Sock 10.Parse request [21:44:35]Sock 10.Check first char [21:44:35]Sock 10.First char is OK [21:44:35]request: POST /json_proto HTTP/1.0 [21:44:35]Method: POST [21:44:35]URL: /json_proto [21:44:35]Method is POST - this is cgi request [21:44:35]url: /json_proto [21:44:35]query_string will be loaded in cgi processing [21:44:35]execute_cgi json_proto POST (null) [21:44:35]execute_cgi path=json_proto method=POST [21:44:35]POST find Content-Length [21:44:35]Host: 172.17.96.197:8080 [21:44:35]Content-Length: 678 [21:44:35]Content-Type: application/json [21:44:35] [21:44:35]POST finish read [21:44:35]Found Content-Length = 678 [21:44:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48750", "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.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:35]execute_script... [21:44: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)48750", "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.40, "quantity" : 41.440, "sum" : 3000.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:35]POST & json_proto [21:44:35]process_json_proto [21:44:35]json parsed OK: [21:44:35]protocol is kg_v1.0 [21:44:35]action value=close_receipt [21:44:35]process_action close_receipt [21:44:35]cmd_close_receipt [21:44:35]MH_GetDate [21:44:35]Write to MH i2c: F0 00 00 D2 33 F4 [21:44:35]Write i2c OK [21:44:35]MH_I2C_Read... [21:44:35]Read from MH i2c: F0 [21:44:35]MH_I2C_Read... [21:44:35]Read from MH i2c: F0 09 00 [21:44:35]MH_I2C_Read... [21:44:35]Read from MH i2c: F0 09 00 D2 33 00 45 4E 1C 66 E0 85 7F 64 5A [21:44:35]GetLastDocTimeStamp 1713130940 [21:44:35]current date 1713131077 [21:44:35]FM_GetShiftState [21:44:35]SAM_PROTO_GetShiftState [21:44:35]wFMCommunicate request_size=4 [21:44:35]MH_SAM_APDU [21:44:35]CAPDU: 80 13 01 00 [21:44:35]Write to MH i2c: E2 08 00 D3 33 80 13 01 00 00 00 00 00 83 [21:44:35]Write i2c OK [21:44:35]MH_I2C_Read... [21:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:35]Read from MH i2c: E2 [21:44:35]MH_I2C_Read... [21:44:35]Read from MH i2c: E2 0E 00 [21:44:35]MH_I2C_Read... [21:44:35]Read from MH i2c: E2 0E 00 D3 33 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1B [21:44:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:44:35]wFMCommunicate OK [21:44:35]SAM_PROTO_GetShiftState done [21:44:35]FM_GetShiftState done [21:44:35]opened in 1713054696 [21:44:35]opened+sec_in_day 1713141096 [21:44:35]quantity*price = 300025 [21:44:35]sum+1 = 300027 [21:44:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.61 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 355 14.04.2024 21:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112456 ФПД: 177174976308411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214437&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112456&fm=177174976308411&tin=02508201610067®Number=0000000000094237&sum=300000 [21:44:36]StoreToDocumentArchive [21:44:36]shift 357 fd 112456 [21:44:36]save to /storage/0357/doc_00112456 [21:44:36]save last doc name /storage/0357/doc_00112456 to /storage/kkm_last_doc_name [21:44:36]save OK [21:44:36]Clear old archive folders... [21:44:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:44:36]tlvbuf is 00175810 [21:44:36]SAM_PROTO_ClearQueue [21:44:36]wFMCommunicate request_size=4 [21:44:36]MH_SAM_APDU [21:44:36]CAPDU: 80 09 00 00 [21:44:36]Write to MH i2c: E2 08 00 E0 33 80 09 00 00 00 00 00 00 85 [21:44:36]Write i2c OK [21:44:36]MH_I2C_Read... [21:44:36]Read from MH i2c: E2 [21:44:36]MH_I2C_Read... [21:44:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:36]Read from MH i2c: E2 03 00 [21:44:36]MH_I2C_Read... [21:44:36]Read from MH i2c: E2 03 00 E0 33 00 90 00 87 [21:44:36]RAPDU: 90 00 [21:44:36]wFMCommunicate OK [21:44:36]SAM_PROTO_ClearQueue done [21:44:36]KKMCreateOFDPacket [21:44:36]OFDProtocolAddRootSTLVToBuf [21:44:36]FM_MakeSignedData [21:44:36]FM_MakeSignedData [21:44:36]SAM_PROTO_SignData [21:44:36]wFMCommunicate request_size=4 [21:44:36]MH_SAM_APDU [21:44:36]CAPDU: 80 0D 01 02 [21:44:36]Write to MH i2c: E2 08 00 E1 33 80 0D 01 02 00 00 00 00 8D [21:44:36]Write i2c OK [21:44:36]MH_I2C_Read... [21:44:36]OFD Sender: No OFD packet to send [21:44:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:37]Read from MH i2c: E2 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 E1 33 00 90 00 88 [21:44:37]RAPDU: 90 00 [21:44:37]wFMCommunicate OK [21:44:37]wFMCommunicate request_size=255 [21:44:37]MH_SAM_APDU [21:44: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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 45 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B7 01 00 35 04 06 00 A1 23 C3 86 [21:44:37]Write to MH i2c: E2 02 01 E2 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 45 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B7 01 00 35 04 06 00 A1 23 C3 86 00 00 92 [21:44:37]Write i2c OK [21:44:37]MH_I2C_Read... [21:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:37]Read from MH i2c: E2 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 E2 33 00 90 00 89 [21:44:37]RAPDU: 90 00 [21:44:37]wFMCommunicate OK [21:44:37]wFMCommunicate request_size=7 [21:44:37]MH_SAM_APDU [21:44:37]CAPDU: 80 0D 02 02 02 A4 BB [21:44:37]Write to MH i2c: E2 0A 00 E3 33 80 0D 02 02 02 00 A4 BB 00 00 F3 [21:44:37]Write i2c OK [21:44:37]MH_I2C_Read... [21:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:37]Read from MH i2c: E2 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 03 00 E3 33 00 90 00 8A [21:44:37]RAPDU: 90 00 [21:44:37]wFMCommunicate OK [21:44:37]wFMCommunicate request_size=4 [21:44:37]MH_SAM_APDU [21:44:37]CAPDU: 80 0D 03 02 [21:44:37]Write to MH i2c: E2 08 00 E4 33 80 0D 03 02 00 00 00 00 92 [21:44:37]Write i2c OK [21:44:37]MH_I2C_Read... [21:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:37]Read from MH i2c: E2 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 0B 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 0B 00 E4 33 00 C1 06 52 BB A3 D8 22 08 90 00 0C [21:44:37]RAPDU: C1 06 52 BB A3 D8 22 08 90 00 [21:44:37]wFMCommunicate OK [21:44:37]SAM_PROTO_SignData done [21:44:37]FM_MakeSignedData done [21:44:37]CreateOFDProtocolMessage [21:44:37]wFMCommunicate request_size=4 [21:44:37]MH_SAM_APDU [21:44:37]CAPDU: 80 11 00 00 [21:44:37]Write to MH i2c: E2 08 00 E5 33 80 11 00 00 00 00 00 00 92 [21:44:37]Write i2c OK [21:44:37]MH_I2C_Read... [21:44:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:37]Read from MH i2c: E2 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 17 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: E2 17 00 E5 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E3 [21:44:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:44:37]wFMCommunicate OK [21:44:37]CreateOFDProtocolMessage done [21:44:37]OFDSenderStorePacket 112456 [21:44:37]StoreOFDPacket docnum=112456 [21:44:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C7 CF 04 01 7D 6C 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 45 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B7 01 00 35 04 06 00 A1 23 C3 86 A4 BB C1 06 52 BB A3 D8 22 08 [21:44:37]CheckFolder [21:44:37]dirname=/storage/ofd_packets [21:44:37]CheckFolder done [21:44:37]ProducePacketName [21:44:37]name=ofd_packets/00112456 [21:44:37]NVStorageSaveData ofd_packets/00112456 [21:44:37]File name is /storage/ofd_packets/00112456 [21:44:37]Write 298 bytes [21:44:37]NVStorageSaveData done [21:44:37]OFDSenderStorePacket done [21:44:37]KKMCreateOFDPacket done [21:44:37]NVStorageSaveData kkm_last_timestamp [21:44:37]File name is /storage/kkm_last_timestamp [21:44:37]Write 4 bytes [21:44:37]NVStorageSaveData done [21:44:37]ExternCall_PrintAddStr [21:44:37]wPrintStart [21:44:37]Write to MH i2c: 01 00 00 E6 33 19 [21:44:37]Write i2c OK [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: 01 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: 01 07 00 [21:44:37]MH_I2C_Read... [21:44:37]Read from MH i2c: 01 07 00 E6 33 00 00 00 00 00 FF 0F 2E [21:44:37]RasterBufferAndPrint [21:44:37]line Счет N : (1)48750 [21:44:37]line ИНН: 02508201610067 [21:44:37]line Контрольно-Кассовый Чек [21:44:37]line ПРОДАЖА [21:44:37]line ТРК (МРК, ГНК) : 51 [21:44:37]line Товар: 2710194210 [21:44:37]line ДТ-К-5 [21:44:37]line 41.440 * 72.40 [21:44:37]line = 3000.26 [21:44:37]line НДС 12% НСП 1% [21:44:37]line > о реализуемом товаре [21:44:37]line ОКРУГЛЕНИЕ: -0.26 [21:44:37]line ИТОГО: 3000.00 [21:44:37]line Внесено: 3000.00 [21:44:37]line СДАЧА: 0.00 [21:44:37]line НСП 1% : 26.55 [21:44:37]line НДС 12% : 318.61 [21:44:37]line Наличными: 3000.00 [21:44:37]line Безнал.: 0.00 [21:44:37]line Место: АЗС № 47 "Партнер Нефть" [21:44:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:44:37]line СНО: Общий режим [21:44:37]line Чек 355 14.04.2024 21:44 [21:44:37]line Смена: 357 ФФД: 1.0 [21:44:37]line ЗНМ: 0300000138 [21:44:37]line РНМ: 0000000000094237 [21:44:37]line Версия ККМ: 001 [21:44:37]line ФМ: 0000000000875019 [21:44:37]line ФД: 112456 [21:44:37]line ФПД: 177174976308411 [21:44:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214437&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112456&fm=177174976308411&tin=02508201610067®Number=0000000000094237&sum=300000 [21:44:37]OFD Sender: Processing packet 112456 [packets to send 71, broken 70] [21:44:37]ProducePacketName [21:44:37]name=ofd_packets/00112456 [21:44:37]OFD Sender: To server: pG, [21:44:37]CommunicateWithHost lk.salyk.kg:30040 [21:44:37]ConnectInit lk.salyk.kg [21:44:37]written 0, free lines is 4095 [21:44:37]Connected sock=9 [21:44:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C7 CF 04 01 7D 6C 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 E0 A1 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 FA 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 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 75 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 01 00 00 F4 03 04 00 45 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B7 01 00 35 04 06 00 A1 23 C3 86 A4 BB C1 06 52 BB A3 D8 22 08 [21:44:38]Write to MH i2c: 01 00 00 11 34 45 [21:44:38]Write i2c OK [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: 01 [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: 01 07 00 [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: 01 07 00 11 34 00 00 00 00 00 EC 0C 44 [21:44:38]RasterBufferAndPrint [21:44:38]line [21:44:38]line [21:44:38]line [21:44:38]line [21:44:38]line [21:44:38]written 0, free lines is 3314 [21:44:38]MH_Cut [21:44:38]Write to MH i2c: D1 01 00 18 34 01 1E [21:44:38]Write i2c OK [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: D1 [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: D1 01 00 [21:44:38]MH_I2C_Read... [21:44:38]Read from MH i2c: D1 01 00 18 34 00 1D [21:44:38]Write to MH i2c: 01 00 00 19 34 4D [21:44:38]Write i2c OK [21:44:38]MH_I2C_Read... [21:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E4 52 47 00 37 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 48 B7 01 00 F4 03 04 00 D0 F5 1B 66 B6 04 01 00 00 6D 7A F2 59 3D 27 92 18 [21:44:38]CommunicateWithHost err = 0 [21:44:38]CheckOFDResponse [21:44:38]1017 (14) - 77093643461234 [21:44:38]1041 (16) - 0000000000875019 [21:44:38]1040 (4) - 112456 [21:44:38]1012 (4) - 14.04.2024 15:27 [21:44:38]1206 (1) - 0 [21:44:38]OFD Sender: Remove packet 112456 [21:44:38]ProducePacketName [21:44:38]name=ofd_packets/00112456 [21:44:38]NVStorageDeleteData [21:44:38]OFD Sender: No OFD packet to send [21:44:38]*** Cut start [21:44:38]*** Partial cut [21:44:38]*** CUTSNS_PIN = 1 [21:44:39]*** CUTSNS_PIN = 0 [21:44:39]*** Brake cut motor [21:44:39]Read from MH i2c: 01 [21:44:39]MH_I2C_Read... [21:44:39]*** Stop cut motor [21:44:39]*** Cut end [21:44:39]Read from MH i2c: 01 07 00 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: 01 07 00 19 34 00 00 00 00 00 FF 0F 62 [21:44:39]process_action close_receipt done [21:44:39]requested_data is exist [21:44:39]produce_requested_data [21:44:39]requested_item fm.sn is exist - process it [21:44:39]wFMCommunicate request_size=4 [21:44:39]MH_SAM_APDU [21:44:39]CAPDU: 80 11 00 00 [21:44:39]Write to MH i2c: E2 08 00 1A 34 80 11 00 00 00 00 00 00 C8 [21:44:39]Write i2c OK [21:44:39]MH_I2C_Read... [21:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:39]Read from MH i2c: E2 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 17 00 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 17 00 1A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 19 [21:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:44:39]wFMCommunicate OK [21:44:39]requested_item fd.num is exist - process it [21:44:39]SAM_PROTO_GetFieldsCounters [21:44:39]wFMCommunicate request_size=4 [21:44:39]MH_SAM_APDU [21:44:39]CAPDU: 80 13 00 00 [21:44:39]Write to MH i2c: E2 08 00 1B 34 80 13 00 00 00 00 00 00 CB [21:44:39]Write i2c OK [21:44:39]MH_I2C_Read... [21:44:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:39]Read from MH i2c: E2 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 62 00 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 62 00 1B 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 48 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [21:44:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 48 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:39]wFMCommunicate OK [21:44:39]SAM_PROTO_GetFieldsCounters done [21:44:39]requested_item shift.num is exist - process it [21:44:39]requested_item shift.opened is exist - process it [21:44:39]req_shift_opened [21:44:39]FM_GetShiftState [21:44:39]SAM_PROTO_GetShiftState [21:44:39]wFMCommunicate request_size=4 [21:44:39]MH_SAM_APDU [21:44:39]CAPDU: 80 13 01 00 [21:44:39]Write to MH i2c: E2 08 00 1C 34 80 13 01 00 00 00 00 00 CD [21:44:39]Write i2c OK [21:44:39]MH_I2C_Read... [21:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:39]Read from MH i2c: E2 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 0E 00 [21:44:39]MH_I2C_Read... [21:44:39]Read from MH i2c: E2 0E 00 1C 34 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 65 [21:44:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:44:39]wFMCommunicate OK [21:44:39]SAM_PROTO_GetShiftState done [21:44:39]FM_GetShiftState done [21:44:39]req_shift_opened done [21:44:39]requested_item shift.open_date is exist - process it [21:44:39]req_shift_open_date [21:44:39]req_shift_open_date done [21:44:39]produce_requested_data done [21:44:39]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112456,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:44:39]process_action_free close_receipt [21:44:39]json_value_free [21:44:39]json_value_free done [21:44:39]process_json_proto returns [21:44:39]Send response to host [21:44:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112456,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:44:39]free response buf [21:44:39]execute_script done [21:44:39]execute_script returns [21:44:39]free content buf [21:44:39]Sock 10.Close socket [21:44:39]Sock 10.Thread stoped [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:58]OFD Sender: No OFD packet to send [21:45:03]OFD Sender: No OFD packet to send [21:45:08]OFD Sender: No OFD packet to send [21:45:13]OFD Sender: No OFD packet to send [21:45:18]OFD Sender: No OFD packet to send [21:45:23]OFD Sender: No OFD packet to send [21:45:28]OFD Sender: No OFD packet to send [21:45:33]OFD Sender: No OFD packet to send [21:45:38]OFD Sender: No OFD packet to send [21:45:43]OFD Sender: No OFD packet to send [21:45:48]OFD Sender: No OFD packet to send [21:45:53]OFD Sender: No OFD packet to send [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]OFD Sender: No OFD packet to send [21:46:13]accept exits with 8 [21:46:13]New connection [21:46:13]New thread 3066826084 created [21:46:13]Thread 3066682724 joined [21:46:13]Waiting for new connection... [21:46:13] Sock 8.Parse request [21:46:13]Sock 8.Check first char [21:46:13]Sock 8.First char is OK [21:46:13]request: POST /json_proto HTTP/1.0 [21:46:13]Method: POST [21:46:13]URL: /json_proto [21:46:13]Method is POST - this is cgi request [21:46:13]url: /json_proto [21:46:13]query_string will be loaded in cgi processing [21:46:13]execute_cgi json_proto POST (null) [21:46:13]execute_cgi path=json_proto method=POST [21:46:13]POST find Content-Length [21:46:13]Host: 172.17.96.197:8080 [21:46:13]Content-Length: 674 [21:46:13]Content-Type: application/json [21:46:13] [21:46:13]POST finish read [21:46:13]Found Content-Length = 674 [21:46:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48751", "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.40, "quantity" : 11.190, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:13]execute_script... [21:46: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)48751", "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.40, "quantity" : 11.190, "sum" : 810.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 810.00, "total" : 810.00, "payments": [ { "type": 0, "sum" : 810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:13]POST & json_proto [21:46:13]process_json_proto [21:46:13]json parsed OK: [21:46:13]protocol is kg_v1.0 [21:46:13]action value=close_receipt [21:46:13]process_action close_receipt [21:46:13]cmd_close_receipt [21:46:13]MH_GetDate [21:46:13]Write to MH i2c: F0 00 00 1D 34 40 [21:46:13]Write i2c OK [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: F0 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: F0 09 00 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: F0 09 00 1D 34 00 A7 4E 1C 66 E0 85 7F 64 08 [21:46:13]GetLastDocTimeStamp 1713131077 [21:46:13]current date 1713131175 [21:46:13]FM_GetShiftState [21:46:13]SAM_PROTO_GetShiftState [21:46:13]wFMCommunicate request_size=4 [21:46:13]MH_SAM_APDU [21:46:13]CAPDU: 80 13 01 00 [21:46:13]Write to MH i2c: E2 08 00 1E 34 80 13 01 00 00 00 00 00 CF [21:46:13]Write i2c OK [21:46:13]MH_I2C_Read... [21:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:13]Read from MH i2c: E2 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 0E 00 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 0E 00 1E 34 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [21:46:13]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:46:13]wFMCommunicate OK [21:46:13]SAM_PROTO_GetShiftState done [21:46:13]FM_GetShiftState done [21:46:13]opened in 1713054696 [21:46:13]opened+sec_in_day 1713141096 [21:46:13]quantity*price = 81015 [21:46:13]sum+1 = 81017 [21:46:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 810.00 Внесено: 810.00 СДАЧА: 0.00 НСП 1% : 7.17 НДС 12% : 86.03 Наличными: 810.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 356 14.04.2024 21:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112457 ФПД: 241038360075355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214615&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112457&fm=241038360075355&tin=02508201610067®Number=0000000000094237&sum=81000 [21:46:14]StoreToDocumentArchive [21:46:14]shift 357 fd 112457 [21:46:14]save to /storage/0357/doc_00112457 [21:46:14]save last doc name /storage/0357/doc_00112457 to /storage/kkm_last_doc_name [21:46:14]save OK [21:46:14]Clear old archive folders... [21:46:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:46:14]tlvbuf is 00163620 [21:46:14]SAM_PROTO_ClearQueue [21:46:14]wFMCommunicate request_size=4 [21:46:14]MH_SAM_APDU [21:46:14]CAPDU: 80 09 00 00 [21:46:14]Write to MH i2c: E2 08 00 2B 34 80 09 00 00 00 00 00 00 D1 [21:46:14]Write i2c OK [21:46:14]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 2B 34 00 90 00 D3 [21:46:15]RAPDU: 90 00 [21:46:15]wFMCommunicate OK [21:46:15]SAM_PROTO_ClearQueue done [21:46:15]KKMCreateOFDPacket [21:46:15]OFDProtocolAddRootSTLVToBuf [21:46:15]FM_MakeSignedData [21:46:15]FM_MakeSignedData [21:46:15]SAM_PROTO_SignData [21:46:15]wFMCommunicate request_size=4 [21:46:15]MH_SAM_APDU [21:46:15]CAPDU: 80 0D 01 02 [21:46:15]Write to MH i2c: E2 08 00 2C 34 80 0D 01 02 00 00 00 00 D9 [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 2C 34 00 90 00 D4 [21:46:15]RAPDU: 90 00 [21:46:15]wFMCommunicate OK [21:46:15]wFMCommunicate request_size=255 [21:46:15]MH_SAM_APDU [21:46: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 B6 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B7 01 00 35 04 06 00 DB 39 1D D4 [21:46:15]Write to MH i2c: E2 02 01 2D 34 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 B6 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B7 01 00 35 04 06 00 DB 39 1D D4 00 00 4B [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 2D 34 00 90 00 D5 [21:46:15]RAPDU: 90 00 [21:46:15]wFMCommunicate OK [21:46:15]wFMCommunicate request_size=7 [21:46:15]MH_SAM_APDU [21:46:15]CAPDU: 80 0D 02 02 02 5C 5B [21:46:15]Write to MH i2c: E2 0A 00 2E 34 80 0D 02 02 02 00 5C 5B 00 00 97 [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 03 00 2E 34 00 90 00 D6 [21:46:15]RAPDU: 90 00 [21:46:15]wFMCommunicate OK [21:46:15]wFMCommunicate request_size=4 [21:46:15]MH_SAM_APDU [21:46:15]CAPDU: 80 0D 03 02 [21:46:15]Write to MH i2c: E2 08 00 2F 34 80 0D 03 02 00 00 00 00 DE [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 0B 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 0B 00 2F 34 00 16 5D EE 19 AB 57 9B AB 90 00 A1 [21:46:15]RAPDU: 16 5D EE 19 AB 57 9B AB 90 00 [21:46:15]wFMCommunicate OK [21:46:15]SAM_PROTO_SignData done [21:46:15]FM_MakeSignedData done [21:46:15]CreateOFDProtocolMessage [21:46:15]wFMCommunicate request_size=4 [21:46:15]MH_SAM_APDU [21:46:15]CAPDU: 80 11 00 00 [21:46:15]Write to MH i2c: E2 08 00 30 34 80 11 00 00 00 00 00 00 DE [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:15]Read from MH i2c: E2 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 17 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: E2 17 00 30 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2F [21:46:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:46:15]wFMCommunicate OK [21:46:15]CreateOFDProtocolMessage done [21:46:15]OFDSenderStorePacket 112457 [21:46:15]StoreOFDPacket docnum=112457 [21:46:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5F BF 04 01 C3 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 B6 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B7 01 00 35 04 06 00 DB 39 1D D4 5C 5B 16 5D EE 19 AB 57 9B AB [21:46:15]CheckFolder [21:46:15]dirname=/storage/ofd_packets [21:46:15]CheckFolder done [21:46:15]ProducePacketName [21:46:15]name=ofd_packets/00112457 [21:46:15]NVStorageSaveData ofd_packets/00112457 [21:46:15]File name is /storage/ofd_packets/00112457 [21:46:15]Write 298 bytes [21:46:15]NVStorageSaveData done [21:46:15]OFDSenderStorePacket done [21:46:15]KKMCreateOFDPacket done [21:46:15]NVStorageSaveData kkm_last_timestamp [21:46:15]File name is /storage/kkm_last_timestamp [21:46:15]Write 4 bytes [21:46:15]NVStorageSaveData done [21:46:15]ExternCall_PrintAddStr [21:46:15]wPrintStart [21:46:15]Write to MH i2c: 01 00 00 31 34 65 [21:46:15]Write i2c OK [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: 01 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: 01 07 00 [21:46:15]MH_I2C_Read... [21:46:15]Read from MH i2c: 01 07 00 31 34 00 00 00 00 00 FF 0F 7A [21:46:15]RasterBufferAndPrint [21:46:15]line Счет N : (1)48751 [21:46:15]line ИНН: 02508201610067 [21:46:15]line Контрольно-Кассовый Чек [21:46:15]line ПРОДАЖА [21:46:15]line ТРК (МРК, ГНК) : 51 [21:46:15]line Товар: 2710194210 [21:46:15]line ДТ-К-5 [21:46:15]line 11.190 * 72.40 [21:46:15]line = 810.16 [21:46:15]line НДС 12% НСП 1% [21:46:15]line > о реализуемом товаре [21:46:15]line ОКРУГЛЕНИЕ: -0.16 [21:46:15]line ИТОГО: 810.00 [21:46:15]line Внесено: 810.00 [21:46:15]line СДАЧА: 0.00 [21:46:15]line НСП 1% : 7.17 [21:46:15]line НДС 12% : 86.03 [21:46:15]line Наличными: 810.00 [21:46:15]line Безнал.: 0.00 [21:46:15]line Место: АЗС № 47 "Партнер Нефть" [21:46:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:46:15]line СНО: Общий режим [21:46:15]line Чек 356 14.04.2024 21:46 [21:46:15]line Смена: 357 ФФД: 1.0 [21:46:15]line ЗНМ: 0300000138 [21:46:15]line РНМ: 0000000000094237 [21:46:15]line Версия ККМ: 001 [21:46:15]line ФМ: 0000000000875019 [21:46:15]line ФД: 112457 [21:46:15]line ФПД: 241038360075355 [21:46:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214615&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112457&fm=241038360075355&tin=02508201610067®Number=0000000000094237&sum=81000 [21:46:15]OFD Sender: Processing packet 112457 [packets to send 71, broken 70] [21:46:15]ProducePacketName [21:46:15]name=ofd_packets/00112457 [21:46:15]OFD Sender: To server: pG, [21:46:15]CommunicateWithHost lk.salyk.kg:30040 [21:46:15]ConnectInit lk.salyk.kg [21:46:15]written 0, free lines is 4095 [21:46:16]Connected sock=10 [21:46:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 5F BF 04 01 C3 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 B6 2B 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 78 3C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 3C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9B 21 00 00 00 00 07 04 06 00 68 3C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 A7 4E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B7 01 00 35 04 06 00 DB 39 1D D4 5C 5B 16 5D EE 19 AB 57 9B AB [21:46:16]Write to MH i2c: 01 00 00 5C 34 90 [21:46:16]Write i2c OK [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: 01 [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: 01 07 00 [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: 01 07 00 5C 34 00 00 00 00 00 E1 0C 84 [21:46:16]RasterBufferAndPrint [21:46:16]line [21:46:16]line [21:46:16]line [21:46:16]line [21:46:16]line [21:46:16]written 0, free lines is 3306 [21:46:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 72 C1 47 00 51 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 49 B7 01 00 F4 03 04 00 32 F6 1B 66 B6 04 01 00 00 E7 87 EA 9C D4 5E 71 2D [21:46:16]CommunicateWithHost err = 0 [21:46:16]CheckOFDResponse [21:46:16]1017 (14) - 77093643461234 [21:46:16]1041 (16) - 0000000000875019 [21:46:16]1040 (4) - 112457 [21:46:16]1012 (4) - 14.04.2024 15:28 [21:46:16]1206 (1) - 0 [21:46:16]OFD Sender: Remove packet 112457 [21:46:16]ProducePacketName [21:46:16]name=ofd_packets/00112457 [21:46:16]NVStorageDeleteData [21:46:16]MH_Cut [21:46:16]Write to MH i2c: D1 01 00 63 34 01 69 [21:46:16]Write i2c OK [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: D1 [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: D1 01 00 [21:46:16]MH_I2C_Read... [21:46:16]Read from MH i2c: D1 01 00 63 34 00 68 [21:46:16]Write to MH i2c: 01 00 00 64 34 98 [21:46:16]Write i2c OK [21:46:16]MH_I2C_Read... [21:46:16]OFD Sender: No OFD packet to send [21:46:17]*** Cut start [21:46:17]*** Partial cut [21:46:17]*** CUTSNS_PIN = 1 [21:46:17]*** CUTSNS_PIN = 0 [21:46:17]*** Brake cut motor [21:46:17]Read from MH i2c: 01 [21:46:17]MH_I2C_Read... [21:46:17]*** Stop cut motor [21:46:17]*** Cut end [21:46:17]Read from MH i2c: 01 07 00 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: 01 07 00 64 34 00 00 00 00 00 FF 0F AD [21:46:17]process_action close_receipt done [21:46:17]requested_data is exist [21:46:17]produce_requested_data [21:46:17]requested_item fm.sn is exist - process it [21:46:17]wFMCommunicate request_size=4 [21:46:17]MH_SAM_APDU [21:46:17]CAPDU: 80 11 00 00 [21:46:17]Write to MH i2c: E2 08 00 65 34 80 11 00 00 00 00 00 00 13 [21:46:17]Write i2c OK [21:46:17]MH_I2C_Read... [21:46:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:17]Read from MH i2c: E2 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 17 00 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 17 00 65 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 64 [21:46:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:46:17]wFMCommunicate OK [21:46:17]requested_item fd.num is exist - process it [21:46:17]SAM_PROTO_GetFieldsCounters [21:46:17]wFMCommunicate request_size=4 [21:46:17]MH_SAM_APDU [21:46:17]CAPDU: 80 13 00 00 [21:46:17]Write to MH i2c: E2 08 00 66 34 80 13 00 00 00 00 00 00 16 [21:46:17]Write i2c OK [21:46:17]MH_I2C_Read... [21:46:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:17]Read from MH i2c: E2 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 62 00 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 62 00 66 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 49 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [21:46:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 49 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:17]wFMCommunicate OK [21:46:17]SAM_PROTO_GetFieldsCounters done [21:46:17]requested_item shift.num is exist - process it [21:46:17]requested_item shift.opened is exist - process it [21:46:17]req_shift_opened [21:46:17]FM_GetShiftState [21:46:17]SAM_PROTO_GetShiftState [21:46:17]wFMCommunicate request_size=4 [21:46:17]MH_SAM_APDU [21:46:17]CAPDU: 80 13 01 00 [21:46:17]Write to MH i2c: E2 08 00 67 34 80 13 01 00 00 00 00 00 18 [21:46:17]Write i2c OK [21:46:17]MH_I2C_Read... [21:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:17]Read from MH i2c: E2 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 0E 00 [21:46:17]MH_I2C_Read... [21:46:17]Read from MH i2c: E2 0E 00 67 34 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [21:46:17]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:46:17]wFMCommunicate OK [21:46:17]SAM_PROTO_GetShiftState done [21:46:17]FM_GetShiftState done [21:46:17]req_shift_opened done [21:46:17]requested_item shift.open_date is exist - process it [21:46:17]req_shift_open_date [21:46:17]req_shift_open_date done [21:46:17]produce_requested_data done [21:46:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112457,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:46:17]process_action_free close_receipt [21:46:17]json_value_free [21:46:17]json_value_free done [21:46:17]process_json_proto returns [21:46:17]Send response to host [21:46:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112457,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:46:17]free response buf [21:46:17]execute_script done [21:46:17]execute_script returns [21:46:17]free content buf [21:46:17]Sock 8.Close socket [21:46:17]Sock 8.Thread stoped [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:56]OFD Sender: No OFD packet to send [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:39]accept exits with 9 [21:48:39]New connection [21:48:39]New thread 3066682724 created [21:48:39]Thread 3066826084 joined [21:48:39]Waiting for new connection... [21:48:39] Sock 9.Parse request [21:48:39]Sock 9.Check first char [21:48:39]Sock 9.First char is OK [21:48:39]request: POST /json_proto HTTP/1.0 [21:48:39]Method: POST [21:48:39]URL: /json_proto [21:48:39]Method is POST - this is cgi request [21:48:39]url: /json_proto [21:48:39]query_string will be loaded in cgi processing [21:48:39]execute_cgi json_proto POST (null) [21:48:39]execute_cgi path=json_proto method=POST [21:48:39]POST find Content-Length [21:48:39]Host: 172.17.96.197:8080 [21:48:39]Content-Length: 676 [21:48:39]Content-Type: application/json [21:48:39] [21:48:39]POST finish read [21:48:39]Found Content-Length = 676 [21:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48753", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [21:48:39]execute_script... [21:48: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)48753", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [21:48:39]POST & json_proto [21:48:39]process_json_proto [21:48:39]json parsed OK: [21:48:39]protocol is kg_v1.0 [21:48:39]action value=close_receipt [21:48:39]process_action close_receipt [21:48:39]cmd_close_receipt [21:48:39]MH_GetDate [21:48:39]Write to MH i2c: F0 00 00 68 34 8B [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 09 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: F0 09 00 68 34 00 39 4F 1C 66 E0 85 7F 64 E6 [21:48:39]GetLastDocTimeStamp 1713131175 [21:48:39]current date 1713131321 [21:48:39]FM_GetShiftState [21:48:39]SAM_PROTO_GetShiftState [21:48:39]wFMCommunicate request_size=4 [21:48:39]MH_SAM_APDU [21:48:39]CAPDU: 80 13 01 00 [21:48:39]Write to MH i2c: E2 08 00 69 34 80 13 01 00 00 00 00 00 1A [21:48:39]Write i2c OK [21:48:39]MH_I2C_Read... [21:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:39]Read from MH i2c: E2 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 [21:48:39]MH_I2C_Read... [21:48:39]Read from MH i2c: E2 0E 00 69 34 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B2 [21:48:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:48:39]wFMCommunicate OK [21:48:39]SAM_PROTO_GetShiftState done [21:48:39]FM_GetShiftState done [21:48:39]opened in 1713054696 [21:48:39]opened+sec_in_day 1713141096 [21:48:39]quantity*price = 60056 [21:48:39]sum+1 = 60057 [21:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 357 14.04.2024 21:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112458 ФПД: 156336298328490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214841&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112458&fm=156336298328490&tin=02508201610067®Number=0000000000094237&sum=60000 [21:48:40]StoreToDocumentArchive [21:48:40]shift 357 fd 112458 [21:48:40]save to /storage/0357/doc_00112458 [21:48:40]save last doc name /storage/0357/doc_00112458 to /storage/kkm_last_doc_name [21:48:40]save OK [21:48:40]Clear old archive folders... [21:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:48:40]tlvbuf is 001B8140 [21:48:40]SAM_PROTO_ClearQueue [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 09 00 00 [21:48:40]Write to MH i2c: E2 08 00 76 34 80 09 00 00 00 00 00 00 1C [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 03 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 03 00 76 34 00 90 00 1E [21:48:40]RAPDU: 90 00 [21:48:40]wFMCommunicate OK [21:48:40]SAM_PROTO_ClearQueue done [21:48:40]KKMCreateOFDPacket [21:48:40]OFDProtocolAddRootSTLVToBuf [21:48:40]FM_MakeSignedData [21:48:40]FM_MakeSignedData [21:48:40]SAM_PROTO_SignData [21:48:40]wFMCommunicate request_size=4 [21:48:40]MH_SAM_APDU [21:48:40]CAPDU: 80 0D 01 02 [21:48:40]Write to MH i2c: E2 08 00 77 34 80 0D 01 02 00 00 00 00 24 [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:48:40]Read from MH i2c: E2 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 03 00 [21:48:40]MH_I2C_Read... [21:48:40]Read from MH i2c: E2 03 00 77 34 00 90 00 1F [21:48:40]RAPDU: 90 00 [21:48:40]wFMCommunicate OK [21:48:40]wFMCommunicate request_size=255 [21:48:40]MH_SAM_APDU [21:48: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 65 01 00 00 F4 03 04 00 39 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B7 01 00 35 04 06 00 8E [21:48:40]Write to MH i2c: E2 02 01 78 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 65 01 00 00 F4 03 04 00 39 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B7 01 00 35 04 06 00 8E 00 00 96 [21:48:40]Write i2c OK [21:48:40]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 78 34 00 90 00 20 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]wFMCommunicate request_size=10 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 0D 02 02 05 2F E1 87 01 AA [21:48:41]Write to MH i2c: E2 0D 00 79 34 80 0D 02 02 05 00 2F E1 87 01 AA 00 00 73 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 03 00 79 34 00 90 00 21 [21:48:41]RAPDU: 90 00 [21:48:41]wFMCommunicate OK [21:48:41]wFMCommunicate request_size=4 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 0D 03 02 [21:48:41]Write to MH i2c: E2 08 00 7A 34 80 0D 03 02 00 00 00 00 29 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 0B 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 0B 00 7A 34 00 47 25 54 4A F5 D3 89 4F 90 00 D4 [21:48:41]RAPDU: 47 25 54 4A F5 D3 89 4F 90 00 [21:48:41]wFMCommunicate OK [21:48:41]SAM_PROTO_SignData done [21:48:41]FM_MakeSignedData done [21:48:41]CreateOFDProtocolMessage [21:48:41]wFMCommunicate request_size=4 [21:48:41]MH_SAM_APDU [21:48:41]CAPDU: 80 11 00 00 [21:48:41]Write to MH i2c: E2 08 00 7B 34 80 11 00 00 00 00 00 00 29 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:41]Read from MH i2c: E2 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 17 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: E2 17 00 7B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7A [21:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:48:41]wFMCommunicate OK [21:48:41]CreateOFDProtocolMessage done [21:48:41]OFDSenderStorePacket 112458 [21:48:41]StoreOFDPacket docnum=112458 [21:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F7 53 07 01 69 49 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 65 01 00 00 F4 03 04 00 39 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B7 01 00 35 04 06 00 8E 2F E1 87 01 AA 47 25 54 4A F5 D3 89 4F [21:48:41]CheckFolder [21:48:41]dirname=/storage/ofd_packets [21:48:41]CheckFolder done [21:48:41]ProducePacketName [21:48:41]name=ofd_packets/00112458 [21:48:41]NVStorageSaveData ofd_packets/00112458 [21:48:41]File name is /storage/ofd_packets/00112458 [21:48:41]Write 301 bytes [21:48:41]NVStorageSaveData done [21:48:41]OFDSenderStorePacket done [21:48:41]KKMCreateOFDPacket done [21:48:41]NVStorageSaveData kkm_last_timestamp [21:48:41]File name is /storage/kkm_last_timestamp [21:48:41]Write 4 bytes [21:48:41]NVStorageSaveData done [21:48:41]ExternCall_PrintAddStr [21:48:41]wPrintStart [21:48:41]Write to MH i2c: 01 00 00 7C 34 B0 [21:48:41]Write i2c OK [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 [21:48:41]MH_I2C_Read... [21:48:41]Read from MH i2c: 01 07 00 7C 34 00 00 00 00 00 FF 0F C5 [21:48:41]RasterBufferAndPrint [21:48:41]line Счет N : (1)48753 [21:48:41]line ИНН: 02508201610067 [21:48:41]line Контрольно-Кассовый Чек [21:48:41]line ПРОДАЖА [21:48:41]line ТРК (МРК, ГНК) : 32 [21:48:41]line Товар: 2710124130 [21:48:41]line Аи-92-К-5 [21:48:41]line 9.340 * 64.30 [21:48:41]line = 600.56 [21:48:41]line НДС 12% НСП 1% [21:48:41]line > о реализуемом товаре [21:48:41]line ОКРУГЛЕНИЕ: -0.56 [21:48:41]line ИТОГО: 600.00 [21:48:41]line Внесено: 600.00 [21:48:41]line СДАЧА: 0.00 [21:48:41]line НСП 1% : 5.31 [21:48:41]line НДС 12% : 63.78 [21:48:41]line Наличными: 600.00 [21:48:41]line Безнал.: 0.00 [21:48:41]line Место: АЗС № 47 "Партнер Нефть" [21:48:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:48:41]line СНО: Общий режим [21:48:41]line Чек 357 14.04.2024 21:48 [21:48:41]line Смена: 357 ФФД: 1.0 [21:48:41]line ЗНМ: 0300000138 [21:48:41]line РНМ: 0000000000094237 [21:48:41]line Версия ККМ: 001 [21:48:41]line ФМ: 0000000000875019 [21:48:41]line ФД: 112458 [21:48:41]line ФПД: 156336298328490 [21:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214841&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112458&fm=156336298328490&tin=02508201610067®Number=0000000000094237&sum=60000 [21:48:41]written 0, free lines is 4095 [21:48:41]OFD Sender: Processing packet 112458 [packets to send 71, broken 70] [21:48:41]ProducePacketName [21:48:41]name=ofd_packets/00112458 [21:48:41]OFD Sender: To server: pG, [21:48:41]CommunicateWithHost lk.salyk.kg:30040 [21:48:41]ConnectInit lk.salyk.kg [21:48:41]Connected sock=10 [21:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F7 53 07 01 69 49 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 65 01 00 00 F4 03 04 00 39 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B7 01 00 35 04 06 00 8E 2F E1 87 01 AA 47 25 54 4A F5 D3 89 4F [21:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D4 9D 47 00 36 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4A B7 01 00 F4 03 04 00 C3 F6 1B 66 B6 04 01 00 00 B7 DD 16 6E FC 4D 42 17 [21:48:42]CommunicateWithHost err = 0 [21:48:42]CheckOFDResponse [21:48:42]1017 (14) - 77093643461234 [21:48:42]1041 (16) - 0000000000875019 [21:48:42]1040 (4) - 112458 [21:48:42]1012 (4) - 14.04.2024 15:31 [21:48:42]1206 (1) - 0 [21:48:42]OFD Sender: Remove packet 112458 [21:48:42]ProducePacketName [21:48:42]name=ofd_packets/00112458 [21:48:42]NVStorageDeleteData [21:48:42]Write to MH i2c: 01 00 00 A7 34 DB [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 07 00 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: 01 07 00 A7 34 00 00 00 00 00 F5 0C E3 [21:48:42]RasterBufferAndPrint [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]line [21:48:42]written 0, free lines is 3323 [21:48:42]MH_Cut [21:48:42]Write to MH i2c: D1 01 00 AE 34 01 B4 [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 01 00 [21:48:42]MH_I2C_Read... [21:48:42]Read from MH i2c: D1 01 00 AE 34 00 B3 [21:48:42]Write to MH i2c: 01 00 00 AF 34 E3 [21:48:42]Write i2c OK [21:48:42]MH_I2C_Read... [21:48:42]OFD Sender: No OFD packet to send [21:48:42]*** Cut start [21:48:42]*** Partial cut [21:48:42]*** CUTSNS_PIN = 1 [21:48:42]*** CUTSNS_PIN = 0 [21:48:43]*** Brake cut motor [21:48:43]Read from MH i2c: 01 [21:48:43]MH_I2C_Read... [21:48:43]*** Stop cut motor [21:48:43]*** Cut end [21:48:43]Read from MH i2c: 01 07 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: 01 07 00 AF 34 00 00 00 00 00 FF 0F F8 [21:48:43]process_action close_receipt done [21:48:43]requested_data is exist [21:48:43]produce_requested_data [21:48:43]requested_item fm.sn is exist - process it [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 11 00 00 [21:48:43]Write to MH i2c: E2 08 00 B0 34 80 11 00 00 00 00 00 00 5E [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 17 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 17 00 B0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AF [21:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:48:43]wFMCommunicate OK [21:48:43]requested_item fd.num is exist - process it [21:48:43]SAM_PROTO_GetFieldsCounters [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 13 00 00 [21:48:43]Write to MH i2c: E2 08 00 B1 34 80 13 00 00 00 00 00 00 61 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 62 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 62 00 B1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [21:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:48:43]wFMCommunicate OK [21:48:43]SAM_PROTO_GetFieldsCounters done [21:48:43]requested_item shift.num is exist - process it [21:48:43]requested_item shift.opened is exist - process it [21:48:43]req_shift_opened [21:48:43]FM_GetShiftState [21:48:43]SAM_PROTO_GetShiftState [21:48:43]wFMCommunicate request_size=4 [21:48:43]MH_SAM_APDU [21:48:43]CAPDU: 80 13 01 00 [21:48:43]Write to MH i2c: E2 08 00 B2 34 80 13 01 00 00 00 00 00 63 [21:48:43]Write i2c OK [21:48:43]MH_I2C_Read... [21:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:48:43]Read from MH i2c: E2 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 0E 00 [21:48:43]MH_I2C_Read... [21:48:43]Read from MH i2c: E2 0E 00 B2 34 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [21:48:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:48:43]wFMCommunicate OK [21:48:43]SAM_PROTO_GetShiftState done [21:48:43]FM_GetShiftState done [21:48:43]req_shift_opened done [21:48:43]requested_item shift.open_date is exist - process it [21:48:43]req_shift_open_date [21:48:43]req_shift_open_date done [21:48:43]produce_requested_data done [21:48:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112458,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:48:43]process_action_free close_receipt [21:48:43]json_value_free [21:48:43]json_value_free done [21:48:43]process_json_proto returns [21:48:43]Send response to host [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]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 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 6A [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 54000000005725C5 (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 27052411+1686078944=1713131355 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x220ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33540623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [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 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 C5 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 6B [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 5B 4F 1C 66 E0 85 7F 64 73 [21:49:15]Current date/time: 14.04.2024 21:49 [21:49:15]FM_Init [21:49:15]wFMConnect [21:49:15]MH_SAM_On [21:49:15]Write to MH i2c: E0 00 00 08 00 E7 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_init finished! [21:49:15]*** atr: [21:49:15]*** 0F 3B D5 18 FF 81 91 FE [21:49:15]*** 1F C3 80 73 C8 21 10 0A [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]*** 00 00 00 00 00 00 00 00 [21:49:15]Read from MH i2c: E0 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E0 10 00 [21:49:15]MH_I2C_Read... [21:49:15]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 [21:49:15]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:49:15]wFMCommunicate request_size=10 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:49:15]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:49:15]RAPDU: 90 00 [21:49:15]wFMCommunicate OK [21:49:15]wFMCommunicate request_size=4 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 80 11 00 00 [21:49:15]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 17 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D5 [21:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:49:15]wFMCommunicate OK [21:49:15]Detected FM SN is 0000000000875019 [21:49:15]Stored FM SN is 0000000000875019 [21:49:15]wFMCommunicate request_size=9 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 80 16 00 00 04 70 BB 00 00 [21:49:15]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 70 BB 00 00 00 00 BD [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:49:15]RAPDU: 90 00 [21:49:15]wFMCommunicate OK [21:49:15]FM PIN OK [21:49:15]wFMCommunicate request_size=8 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 80 14 04 00 03 02 00 01 [21:49:15]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:49:15]RAPDU: 90 00 [21:49:15]wFMCommunicate OK [21:49:15]wFMCommunicate request_size=13 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:49:15]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 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:49:15]RAPDU: 90 00 [21:49:15]wFMCommunicate OK [21:49:15]wFMCommunicate request_size=4 [21:49:15]MH_SAM_APDU [21:49:15]CAPDU: 80 11 00 00 [21:49:15]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:15]Read from MH i2c: E2 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 17 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [21:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:49:15]wFMCommunicate OK [21:49:15]DocumentArchiveInit [21:49:15]Start Httpd... [21:49:15]Httpd thread 3067604324 created [21:49:15]Write to MH i2c: 01 00 00 0F 00 0F [21:49:15]Write i2c OK [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: 01 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: 01 07 00 [21:49:15]MH_I2C_Read... [21:49:15]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [21:49:15]MH Int Process started [21:49:15]Allocated Socket 8 [21:49:15]Bind OK [21:49:15]Listen OK [21:49:15]httpd running on port 8080 [21:49:15]Waiting for new connection... [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:22]accept exits with 9 [21:49:22]New connection [21:49:22]New thread 3067317604 created [21:49:22]Waiting for new connection... [21:49:22] Sock 9.Parse request [21:49:22]Sock 9.Check first char [21:49:22]Sock 9.First char is OK [21:49:22]request: POST /json_proto HTTP/1.0 [21:49:22]Method: POST [21:49:22]URL: /json_proto [21:49:22]Method is POST - this is cgi request [21:49:22]url: /json_proto [21:49:22]query_string will be loaded in cgi processing [21:49:22]execute_cgi json_proto POST (null) [21:49:22]execute_cgi path=json_proto method=POST [21:49:22]POST find Content-Length [21:49:22]Host: 172.17.96.197:8080 [21:49:22]Content-Length: 215 [21:49:22]Content-Type: application/json [21:49:22] [21:49:22]POST finish read [21:49:22]Found Content-Length = 215 [21:49:22]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" ] } } [21:49:22]execute_script... [21:49:22]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" ] } } [21:49:22]POST & json_proto [21:49:22]process_json_proto [21:49:22]json parsed OK: [21:49:22]protocol is kg_v1.0 [21:49:22]action value=get_value [21:49:22]process_action get_value [21:49:22]cmd_get_value [21:49:22]process_action get_value done [21:49:22]requested_data is exist [21:49:22]produce_requested_data [21:49:22]requested_item kkm.sn is exist - process it [21:49:22]requested_item kkm.ver is exist - process it [21:49:22]requested_item fm.sn is exist - process it [21:49:22]wFMCommunicate request_size=4 [21:49:22]MH_SAM_APDU [21:49:22]CAPDU: 80 11 00 00 [21:49:22]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 [21:49:22]MH_I2C_Read... [21:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:22]Read from MH i2c: E2 17 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DB [21:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:49:22]wFMCommunicate OK [21:49:22]requested_item fd.num is exist - process it [21:49:22]SAM_PROTO_GetFieldsCounters [21:49:22]wFMCommunicate request_size=4 [21:49:22]MH_SAM_APDU [21:49:22]CAPDU: 80 13 00 00 [21:49:22]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:22]Read from MH i2c: E2 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 62 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 4A [21:49:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:22]wFMCommunicate OK [21:49:22]SAM_PROTO_GetFieldsCounters done [21:49:22]requested_item shift.num is exist - process it [21:49:22]requested_item shift.opened is exist - process it [21:49:22]req_shift_opened [21:49:22]FM_GetShiftState [21:49:22]SAM_PROTO_GetShiftState [21:49:22]wFMCommunicate request_size=4 [21:49:22]MH_SAM_APDU [21:49:22]CAPDU: 80 13 01 00 [21:49:22]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:22]Read from MH i2c: E2 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 0E 00 [21:49:22]MH_I2C_Read... [21:49:22]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 27 [21:49:22]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:49:22]wFMCommunicate OK [21:49:22]SAM_PROTO_GetShiftState done [21:49:22]FM_GetShiftState done [21:49:22]req_shift_opened done [21:49:22]requested_item shift.open_date is exist - process it [21:49:22]req_shift_open_date [21:49:22]req_shift_open_date done [21:49:22]produce_requested_data done [21:49:22]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112459,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:49:22]process_action_free get_value [21:49:22]json_value_free [21:49:22]json_value_free done [21:49:22]process_json_proto returns [21:49:22]Send response to host [21:49:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112459,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:49:22]free response buf [21:49:22]execute_script done [21:49:22]execute_script returns [21:49:22]free content buf [21:49:22]Sock 9.Close socket [21:49:22]Sock 9.Thread stoped [21:49:22]accept exits with 7 [21:49:22]New connection [21:49:22]New thread 3067174244 created [21:49:22]Thread 3067317604 joined [21:49:22]Waiting for new connection... [21:49:22] Sock 7.Parse request [21:49:22]Sock 7.Check first char [21:49:22]Sock 7.First char is OK [21:49:22]request: POST /json_proto HTTP/1.0 [21:49:22]Method: POST [21:49:22]URL: /json_proto [21:49:22]Method is POST - this is cgi request [21:49:22]url: /json_proto [21:49:22]query_string will be loaded in cgi processing [21:49:22]execute_cgi json_proto POST (null) [21:49:22]execute_cgi path=json_proto method=POST [21:49:22]POST find Content-Length [21:49:22]Host: 172.17.96.197:8080 [21:49:22]Content-Length: 331 [21:49:22]Content-Type: application/json [21:49:22] [21:49:22]POST finish read [21:49:22]Found Content-Length = 331 [21:49:22]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" ] } } [21:49:22]execute_script... [21:49:22]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" ] } } [21:49:22]POST & json_proto [21:49:22]process_json_proto [21:49:22]json parsed OK: [21:49:22]protocol is kg_v1.0 [21:49:22]action value=get_value [21:49:22]process_action get_value [21:49:22]cmd_get_value [21:49:22]process_action get_value done [21:49:22]requested_data is exist [21:49:22]produce_requested_data [21:49:22]requested_item fm.sale.total is exist - process it [21:49:22]SAM_PROTO_GetFMData [21:49:22]wFMCommunicate request_size=4 [21:49:22]MH_SAM_APDU [21:49:22]CAPDU: 80 13 03 00 [21:49:22]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:49:22]Write i2c OK [21:49:22]MH_I2C_Read... [21:49:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:49:23]Read from MH i2c: E2 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 13 00 00 C8 04 85 04 C4 04 6E 04 04 00 81 B4 01 00 69 04 A3 00 6F 04 04 00 09 AF 01 00 B1 04 05 00 EF 01 1B C9 01 70 04 05 00 A2 2D 26 88 01 72 04 04 00 4D D4 F4 40 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 7F 53 8E 30 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 34 B9 0B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 25 [21:49:23]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 81 B4 01 00 69 04 A3 00 6F 04 04 00 09 AF 01 00 B1 04 05 00 EF 01 1B C9 01 70 04 05 00 A2 2D 26 88 01 72 04 04 00 4D D4 F4 40 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 7F 53 8E 30 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 34 B9 0B 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [21:49:23]wFMCommunicate OK [21:49:23]wFMCommunicate request_size=4 [21:49:23]MH_SAM_APDU [21:49:23]CAPDU: 80 17 00 00 [21:49:23]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:23]Read from MH i2c: E2 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 14 00 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [21:49:23]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:49:23]wFMCommunicate OK [21:49:23]wFMCommunicate request_size=4 [21:49:23]MH_SAM_APDU [21:49:23]CAPDU: 80 17 00 00 [21:49:23]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:23]Read from MH i2c: E2 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 [21:49:23]MH_I2C_Read... [21:49:23]Read from MH i2c: E2 FD 00 15 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [21:49:23]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:49:23]wFMCommunicate OK [21:49:23]wFMCommunicate request_size=4 [21:49:23]MH_SAM_APDU [21:49:23]CAPDU: 80 17 00 00 [21:49:23]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:49:23]Write i2c OK [21:49:23]MH_I2C_Read... [21:49:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:24]Read from MH i2c: E2 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 FD 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 FD 00 16 00 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0E [21:49:24]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [21:49:24]wFMCommunicate OK [21:49:24]wFMCommunicate request_size=4 [21:49:24]MH_SAM_APDU [21:49:24]CAPDU: 80 17 00 00 [21:49:24]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [21:49:24]Read from MH i2c: E2 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 E5 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 E5 00 17 00 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:49:24]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:49:24]wFMCommunicate OK [21:49:24]SAM_PROTO_GetFMData done [21:49:24]requested_item fm.sale_refund.total is exist - process it [21:49:24]requested_item fm.buy.total is exist - process it [21:49:24]requested_item shift.sale.total is exist - process it [21:49:24]SAM_PROTO_GetShiftData [21:49:24]wFMCommunicate request_size=4 [21:49:24]MH_SAM_APDU [21:49:24]CAPDU: 80 13 02 00 [21:49:24]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:49:24]Read from MH i2c: E2 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 FD 00 [21:49:24]MH_I2C_Read... [21:49:24]Read from MH i2c: E2 FD 00 18 00 00 BB 04 AA 04 B7 04 6E 04 04 00 66 01 00 00 69 04 9E 00 6F 04 04 00 64 01 00 00 B1 04 04 00 3B 28 7B 01 70 04 04 00 38 12 46 01 72 04 03 00 03 16 35 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 40 47 28 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 27 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 BB [21:49:24]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 66 01 00 00 69 04 9E 00 6F 04 04 00 64 01 00 00 B1 04 04 00 3B 28 7B 01 70 04 04 00 38 12 46 01 72 04 03 00 03 16 35 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 40 47 28 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 27 5B 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [21:49:24]wFMCommunicate OK [21:49:24]wFMCommunicate request_size=4 [21:49:24]MH_SAM_APDU [21:49:24]CAPDU: 80 17 00 00 [21:49:24]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:49:24]Write i2c OK [21:49:24]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 19 00 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 2E [21:49:25]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 17 00 00 [21:49:25]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 1A 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C6 [21:49:25]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 17 00 00 [21:49:25]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]OFD Sender: No OFD packet to send [21:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 FD 00 1B 00 00 00 00 EF 03 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 90 00 10 [21:49:25]RAPDU: 00 00 EF 03 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 90 00 [21:49:25]wFMCommunicate OK [21:49:25]wFMCommunicate request_size=4 [21:49:25]MH_SAM_APDU [21:49:25]CAPDU: 80 17 00 00 [21:49:25]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:49:25]Write i2c OK [21:49:25]MH_I2C_Read... [21:49:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [21:49:25]Read from MH i2c: E2 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 D8 00 [21:49:25]MH_I2C_Read... [21:49:25]Read from MH i2c: E2 D8 00 1C 00 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 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 83 [21:49:25]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 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 [21:49:26]wFMCommunicate OK [21:49:26]SAM_PROTO_GetShiftData done [21:49:26]requested_item shift.sale.total_cash is exist - process it [21:49:26]requested_item shift.sale_refund.total is exist - process it [21:49:26]requested_item shift.sale_refund.total_cash is exist - process it [21:49:26]requested_item shift.buy.total is exist - process it [21:49:26]requested_item shift.buy.total_cash is exist - process it [21:49:26]produce_requested_data done [21:49:26]produce_requested_data return {"fm.sale.total":76689576.79,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":248484.43,"shift.sale.total_cash":213694.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:49:26]process_action_free get_value [21:49:26]json_value_free [21:49:26]json_value_free done [21:49:26]process_json_proto returns [21:49:26]Send response to host [21:49:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76689576.79,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":248484.43,"shift.sale.total_cash":213694.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:49:26]free response buf [21:49:26]execute_script done [21:49:26]execute_script returns [21:49:26]free content buf [21:49:26]Sock 7.Close socket [21:49:26]Sock 7.Thread stoped [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:46]accept exits with 9 [21:49:46]New connection [21:49:46]New thread 3067317604 created [21:49:46]Thread 3067174244 joined [21:49:46]Waiting for new connection... [21:49:46] Sock 9.Parse request [21:49:46]Sock 9.Check first char [21:49:46]Sock 9.First char is OK [21:49:46]request: POST /json_proto HTTP/1.0 [21:49:46]Method: POST [21:49:46]URL: /json_proto [21:49:46]Method is POST - this is cgi request [21:49:46]url: /json_proto [21:49:46]query_string will be loaded in cgi processing [21:49:46]execute_cgi json_proto POST (null) [21:49:46]execute_cgi path=json_proto method=POST [21:49:46]POST find Content-Length [21:49:46]Host: 172.17.96.197:8080 [21:49:46]Content-Length: 657 [21:49:46]Content-Type: application/json [21:49:46] [21:49:46]POST finish read [21:49:46]Found Content-Length = 657 [21:49:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10451", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:46]execute_script... [21:49:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10451", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:49:46]POST & json_proto [21:49:46]process_json_proto [21:49:46]json parsed OK: [21:49:46]protocol is kg_v1.0 [21:49:46]action value=close_receipt [21:49:46]process_action close_receipt [21:49:46]cmd_close_receipt [21:49:46]MH_GetDate [21:49:46]Write to MH i2c: F0 00 00 1D 00 0C [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: F0 09 00 1D 00 00 7B 4F 1C 66 E0 85 7F 64 A9 [21:49:46]GetLastDocTimeStamp 48 [21:49:46]current date 1713131387 [21:49:46]FM_GetShiftState [21:49:46]SAM_PROTO_GetShiftState [21:49:46]wFMCommunicate request_size=4 [21:49:46]MH_SAM_APDU [21:49:46]CAPDU: 80 13 01 00 [21:49:46]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [21:49:46]Write i2c OK [21:49:46]MH_I2C_Read... [21:49:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:46]Read from MH i2c: E2 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 [21:49:46]MH_I2C_Read... [21:49:46]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 33 [21:49:46]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:49:46]wFMCommunicate OK [21:49:46]SAM_PROTO_GetShiftState done [21:49:46]FM_GetShiftState done [21:49:46]opened in 1713054696 [21:49:46]opened+sec_in_day 1713141096 [21:49:46]quantity*price = 11000 [21:49:46]sum+1 = 11001 [21:49:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 359 14.04.2024 21:49 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112460 ФПД: 90891070710470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214947&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112460&fm=90891070710470&tin=02508201610067®Number=0000000000094237&sum=11000 0 [21:49:48]StoreToDocumentArchive [21:49:48]shift 357 fd 112460 [21:49:48]save to /storage/0357/doc_00112460 [21:49:48]save last doc name /storage/0357/doc_00112460 to /storage/kkm_last_doc_name [21:49:48]save OK [21:49:48]Clear old archive folders... [21:49:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [21:49:48]tlvbuf is 019E2700 [21:49:48]SAM_PROTO_ClearQueue [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 09 00 00 [21:49:48]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [21:49:48]RAPDU: 90 00 [21:49:48]wFMCommunicate OK [21:49:48]SAM_PROTO_ClearQueue done [21:49:48]KKMCreateOFDPacket [21:49:48]OFDProtocolAddRootSTLVToBuf [21:49:48]FM_MakeSignedData [21:49:48]FM_MakeSignedData [21:49:48]SAM_PROTO_SignData [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 0D 01 02 [21:49:48]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [21:49:48]RAPDU: 90 00 [21:49:48]wFMCommunicate OK [21:49:48]wFMCommunicate request_size=255 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 [21:49:48]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 00 00 35 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [21:49:48]RAPDU: 90 00 [21:49:48]wFMCommunicate OK [21:49:48]wFMCommunicate request_size=37 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B7 01 00 35 04 06 00 52 AA 39 FB A2 C6 [21:49:48]Write to MH i2c: E2 28 00 2E 00 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B7 01 00 35 04 06 00 52 AA 39 FB A2 C6 00 00 99 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [21:49:48]RAPDU: 90 00 [21:49:48]wFMCommunicate OK [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 0D 03 02 [21:49:48]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 0B 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 0B 00 2F 00 00 2C CB 22 51 71 CA E1 0B 90 00 3C [21:49:48]RAPDU: 2C CB 22 51 71 CA E1 0B 90 00 [21:49:48]wFMCommunicate OK [21:49:48]SAM_PROTO_SignData done [21:49:48]FM_MakeSignedData done [21:49:48]CreateOFDProtocolMessage [21:49:48]wFMCommunicate request_size=4 [21:49:48]MH_SAM_APDU [21:49:48]CAPDU: 80 11 00 00 [21:49:48]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:48]Read from MH i2c: E2 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 17 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FB [21:49:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:49:48]wFMCommunicate OK [21:49:48]CreateOFDProtocolMessage done [21:49:48]OFDSenderStorePacket 112460 [21:49:48]StoreOFDPacket docnum=112460 [21:49:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2A 01 00 00 94 5E 22 01 AB D6 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B7 01 00 35 04 06 00 52 AA 39 FB A2 C6 2C CB 22 51 71 CA E1 0B [21:49:48]CheckFolder [21:49:48]dirname=/storage/ofd_packets [21:49:48]CheckFolder done [21:49:48]ProducePacketName [21:49:48]name=ofd_packets/00112460 [21:49:48]NVStorageSaveData ofd_packets/00112460 [21:49:48]File name is /storage/ofd_packets/00112460 [21:49:48]Write 328 bytes [21:49:48]NVStorageSaveData done [21:49:48]OFDSenderStorePacket done [21:49:48]KKMCreateOFDPacket done [21:49:48]NVStorageSaveData kkm_last_timestamp [21:49:48]File name is /storage/kkm_last_timestamp [21:49:48]Write 4 bytes [21:49:48]NVStorageSaveData done [21:49:48]ExternCall_PrintAddStr [21:49:48]wPrintStart [21:49:48]Write to MH i2c: 01 00 00 31 00 31 [21:49:48]Write i2c OK [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 [21:49:48]MH_I2C_Read... [21:49:48]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [21:49:48]RasterBufferAndPrint [21:49:48]line Счет N : (3)10451 [21:49:48]line ИНН: 02508201610067 [21:49:48]line Контрольно-Кассовый Чек [21:49:48]line ПРОДАЖА [21:49:48]line Товар: 5449000054227 [21:49:48]line Напиток Кока-Кола 1л [21:49:48]line 1.000 * 110.00 [21:49:48]line = 110.00 [21:49:48]line НДС 12% НСП 1% [21:49:48]line > о реализуемом товаре [21:49:48]line ИТОГО: 110.00 [21:49:48]line НСП 1% : 0.97 [21:49:48]line НДС 12% : 11.68 [21:49:48]line Наличными: 110.00 [21:49:48]line Безнал.: 0.00 [21:49:48]line Место: АЗС № 47 "Партнер Нефть" [21:49:48]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:49:48]line СНО: Общий режим [21:49:48]line Чек 359 14.04.2024 21:49 [21:49:48]line Смена: 357 ФФД: 1.0 [21:49:48]line ЗНМ: 0300000138 [21:49:48]line РНМ: 0000000000094237 [21:49:48]line Версия ККМ: 001 [21:49:48]line ФМ: 0000000000875019 [21:49:48]line ФД: 112460 [21:49:48]line ФПД: 90891070710470 [21:49:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T214947&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112460&fm=90891070710470&tin=02508201610067®Number=0000000000094237&sum=11000 [21:49:48]OFD Sender: Processing packet 112460 [packets to send 71, broken 70] [21:49:48]ProducePacketName [21:49:48]name=ofd_packets/00112460 [21:49:48]OFD Sender: To server: pG, [21:49:48]CommunicateWithHost lk.salyk.kg:30040 [21:49:48]ConnectInit lk.salyk.kg [21:49:48]line 0 [21:49:48]written 0, free lines is 4095 [21:49:49]Connected sock=10 [21:49:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2A 01 00 00 94 5E 22 01 AB D6 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 7B 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B7 01 00 35 04 06 00 52 AA 39 FB A2 C6 2C CB 22 51 71 CA E1 0B [21:49:49]Write to MH i2c: 01 00 00 59 00 59 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: 01 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: 01 07 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: 01 07 00 59 00 00 00 00 00 00 01 0D 6E [21:49:49]RasterBufferAndPrint [21:49:49]line [21:49:49]line [21:49:49]line [21:49:49]line [21:49:49]line [21:49:49]written 0, free lines is 3334 [21:49:49]MH_Cut [21:49:49]Write to MH i2c: D1 01 00 60 00 01 32 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: D1 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: D1 01 00 [21:49:49]MH_I2C_Read... [21:49:49]Read from MH i2c: D1 01 00 60 00 00 31 [21:49:49]Write to MH i2c: 01 00 00 61 00 61 [21:49:49]Write i2c OK [21:49:49]MH_I2C_Read... [21:49:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1D FD 47 00 8D E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4C B7 01 00 F4 03 04 00 06 F7 1B 66 B6 04 01 00 00 91 D7 0A 00 B3 79 92 7F [21:49:49]CommunicateWithHost err = 0 [21:49:49]CheckOFDResponse [21:49:49]1017 (14) - 77093643461234 [21:49:49]1041 (16) - 0000000000875019 [21:49:49]1040 (4) - 112460 [21:49:49]1012 (4) - 14.04.2024 15:32 [21:49:49]1206 (1) - 0 [21:49:49]OFD Sender: Remove packet 112460 [21:49:49]ProducePacketName [21:49:49]name=ofd_packets/00112460 [21:49:49]NVStorageDeleteData [21:49:49]OFD Sender: No OFD packet to send [21:49:50]*** Cut start [21:49:50]*** Partial cut [21:49:50]*** CUTSNS_PIN = 1 [21:49:50]*** CUTSNS_PIN = 0 [21:49:50]*** Brake cut motor [21:49:50]Read from MH i2c: 01 [21:49:50]MH_I2C_Read... [21:49:50]*** Stop cut motor [21:49:50]*** Cut end [21:49:50]Read from MH i2c: 01 07 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: 01 07 00 61 00 00 00 00 00 00 FF 0F 76 [21:49:50]process_action close_receipt done [21:49:50]requested_data is exist [21:49:50]produce_requested_data [21:49:50]requested_item fm.sn is exist - process it [21:49:50]wFMCommunicate request_size=4 [21:49:50]MH_SAM_APDU [21:49:50]CAPDU: 80 11 00 00 [21:49:50]Write to MH i2c: E2 08 00 62 00 80 11 00 00 00 00 00 00 DC [21:49:50]Write i2c OK [21:49:50]MH_I2C_Read... [21:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:50]Read from MH i2c: E2 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 17 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 17 00 62 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2D [21:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:49:50]wFMCommunicate OK [21:49:50]requested_item fd.num is exist - process it [21:49:50]SAM_PROTO_GetFieldsCounters [21:49:50]wFMCommunicate request_size=4 [21:49:50]MH_SAM_APDU [21:49:50]CAPDU: 80 13 00 00 [21:49:50]Write to MH i2c: E2 08 00 63 00 80 13 00 00 00 00 00 00 DF [21:49:50]Write i2c OK [21:49:50]MH_I2C_Read... [21:49:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:50]Read from MH i2c: E2 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 62 00 [21:49:50]MH_I2C_Read... [21:49:50]Read from MH i2c: E2 62 00 63 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 A0 [21:49:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:50]wFMCommunicate OK [21:49:50]SAM_PROTO_GetFieldsCounters done [21:49:50]requested_item shift.num is exist - process it [21:49:50]requested_item shift.opened is exist - process it [21:49:50]req_shift_opened [21:49:50]FM_GetShiftState [21:49:50]SAM_PROTO_GetShiftState [21:49:50]wFMCommunicate request_size=4 [21:49:50]MH_SAM_APDU [21:49:50]CAPDU: 80 13 01 00 [21:49:50]Write to MH i2c: E2 08 00 64 00 80 13 01 00 00 00 00 00 E1 [21:49:50]Write i2c OK [21:49:50]MH_I2C_Read... [21:49:51]Read from MH i2c: E2 [21:49:51]MH_I2C_Read... [21:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:51]Read from MH i2c: E2 0E 00 [21:49:51]MH_I2C_Read... [21:49:51]Read from MH i2c: E2 0E 00 64 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 79 [21:49:51]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:49:51]wFMCommunicate OK [21:49:51]SAM_PROTO_GetShiftState done [21:49:51]FM_GetShiftState done [21:49:51]req_shift_opened done [21:49:51]requested_item shift.open_date is exist - process it [21:49:51]req_shift_open_date [21:49:51]req_shift_open_date done [21:49:51]produce_requested_data done [21:49:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112460,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:49:51]process_action_free close_receipt [21:49:51]json_value_free [21:49:51]json_value_free done [21:49:51]process_json_proto returns [21:49:51]Send response to host [21:49:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112460,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:49:51]free response buf [21:49:51]execute_script done [21:49:51]execute_script returns [21:49:51]free content buf [21:49:51]Sock 9.Close socket [21:49:51]Sock 9.Thread stoped [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:20]OFD Sender: No OFD packet to send [21:50:25]OFD Sender: No OFD packet to send [21:50:27]accept exits with 7 [21:50:27]New connection [21:50:27]New thread 3067174244 created [21:50:27]Thread 3067317604 joined [21:50:27]Waiting for new connection... [21:50:27] Sock 7.Parse request [21:50:27]Sock 7.Check first char [21:50:27]Sock 7.First char is OK [21:50:27]request: POST /json_proto HTTP/1.0 [21:50:27]Method: POST [21:50:27]URL: /json_proto [21:50:27]Method is POST - this is cgi request [21:50:27]url: /json_proto [21:50:27]query_string will be loaded in cgi processing [21:50:27]execute_cgi json_proto POST (null) [21:50:27]execute_cgi path=json_proto method=POST [21:50:27]POST find Content-Length [21:50:27]Host: 172.17.96.197:8080 [21:50:27]Content-Length: 681 [21:50:27]Content-Type: application/json [21:50:27] [21:50:27]POST finish read [21:50:27]Found Content-Length = 681 [21:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:50:27]execute_script... [21:50:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48754", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 15.560, "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" ] } } [21:50:27]POST & json_proto [21:50:27]process_json_proto [21:50:27]json parsed OK: [21:50:27]protocol is kg_v1.0 [21:50:27]action value=close_receipt [21:50:27]process_action close_receipt [21:50:27]cmd_close_receipt [21:50:27]MH_GetDate [21:50:27]Write to MH i2c: F0 00 00 65 00 54 [21:50:27]Write i2c OK [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: F0 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: F0 09 00 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: F0 09 00 65 00 00 A4 4F 1C 66 E0 85 7F 64 1A [21:50:27]GetLastDocTimeStamp 1713131387 [21:50:27]current date 1713131428 [21:50:27]FM_GetShiftState [21:50:27]SAM_PROTO_GetShiftState [21:50:27]wFMCommunicate request_size=4 [21:50:27]MH_SAM_APDU [21:50:27]CAPDU: 80 13 01 00 [21:50:27]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [21:50:27]Write i2c OK [21:50:27]MH_I2C_Read... [21:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:27]Read from MH i2c: E2 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 0E 00 [21:50:27]MH_I2C_Read... [21:50:27]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7B [21:50:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:50:27]wFMCommunicate OK [21:50:27]SAM_PROTO_GetShiftState done [21:50:27]FM_GetShiftState done [21:50:27]opened in 1713054696 [21:50:27]opened+sec_in_day 1713141096 [21:50:27]quantity*price = 100050 [21:50:27]sum+1 = 100052 [21:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 360 14.04.2024 21:50 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112461 ФПД: 28346857470528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T215028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112461&fm=28346857470528&tin=02508201610067®Number=0000000000094237&sum=100000 [21:50:28]StoreToDocumentArchive [21:50:28]shift 357 fd 112461 [21:50:28]save to /storage/0357/doc_00112461 [21:50:28]save last doc name /storage/0357/doc_00112461 to /storage/kkm_last_doc_name [21:50:28]save OK [21:50:28]Clear old archive folders... [21:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:50:28]tlvbuf is 019D9660 [21:50:28]SAM_PROTO_ClearQueue [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 09 00 00 [21:50:28]Write to MH i2c: E2 08 00 73 00 80 09 00 00 00 00 00 00 E5 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 73 00 00 90 00 E7 [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]SAM_PROTO_ClearQueue done [21:50:28]KKMCreateOFDPacket [21:50:28]OFDProtocolAddRootSTLVToBuf [21:50:28]FM_MakeSignedData [21:50:28]FM_MakeSignedData [21:50:28]SAM_PROTO_SignData [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 0D 01 02 [21:50:28]Write to MH i2c: E2 08 00 74 00 80 0D 01 02 00 00 00 00 ED [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]wFMCommunicate request_size=255 [21:50:28]MH_SAM_APDU [21:50:28]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 3C 00 00 00 00 00 37 04 06 00 1E 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 68 01 00 00 F4 03 04 00 A4 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B7 01 00 35 04 06 00 19 [21:50:28]Write to MH i2c: E2 02 01 75 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 C8 3C 00 00 00 00 00 37 04 06 00 1E 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 68 01 00 00 F4 03 04 00 A4 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B7 01 00 35 04 06 00 19 00 00 5C [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]wFMCommunicate request_size=10 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 0D 02 02 05 C8 04 5E BA 40 [21:50:28]Write to MH i2c: E2 0D 00 76 00 80 0D 02 02 05 00 C8 04 5E BA 40 00 00 1E [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [21:50:28]RAPDU: 90 00 [21:50:28]wFMCommunicate OK [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 0D 03 02 [21:50:28]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0B 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 0B 00 77 00 00 F1 D5 F2 D6 6B CA 35 BB 90 00 A6 [21:50:28]RAPDU: F1 D5 F2 D6 6B CA 35 BB 90 00 [21:50:28]wFMCommunicate OK [21:50:28]SAM_PROTO_SignData done [21:50:28]FM_MakeSignedData done [21:50:28]CreateOFDProtocolMessage [21:50:28]wFMCommunicate request_size=4 [21:50:28]MH_SAM_APDU [21:50:28]CAPDU: 80 11 00 00 [21:50:28]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:28]Read from MH i2c: E2 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 17 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 43 [21:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:50:28]wFMCommunicate OK [21:50:28]CreateOFDProtocolMessage done [21:50:28]OFDSenderStorePacket 112461 [21:50:28]StoreOFDPacket docnum=112461 [21:50:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 19 A5 07 01 0B 22 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 3C 00 00 00 00 00 37 04 06 00 1E 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 68 01 00 00 F4 03 04 00 A4 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B7 01 00 35 04 06 00 19 C8 04 5E BA 40 F1 D5 F2 D6 6B CA 35 BB [21:50:28]CheckFolder [21:50:28]dirname=/storage/ofd_packets [21:50:28]CheckFolder done [21:50:28]ProducePacketName [21:50:28]name=ofd_packets/00112461 [21:50:28]NVStorageSaveData ofd_packets/00112461 [21:50:28]File name is /storage/ofd_packets/00112461 [21:50:28]Write 301 bytes [21:50:28]NVStorageSaveData done [21:50:28]OFDSenderStorePacket done [21:50:28]KKMCreateOFDPacket done [21:50:28]NVStorageSaveData kkm_last_timestamp [21:50:28]File name is /storage/kkm_last_timestamp [21:50:28]Write 4 bytes [21:50:28]NVStorageSaveData done [21:50:28]ExternCall_PrintAddStr [21:50:28]wPrintStart [21:50:28]Write to MH i2c: 01 00 00 79 00 79 [21:50:28]Write i2c OK [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 [21:50:28]MH_I2C_Read... [21:50:28]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [21:50:28]RasterBufferAndPrint [21:50:28]line Счет N : (1)48754 [21:50:28]line ИНН: 02508201610067 [21:50:28]line Контрольно-Кассовый Чек [21:50:28]line ПРОДАЖА [21:50:28]line ТРК (МРК, ГНК) : 21 [21:50:28]line Товар: 2710124130 [21:50:28]line Аи-92-К-5 [21:50:28]line 15.560 * 64.30 [21:50:28]line = 1000.51 [21:50:28]line НДС 12% НСП 1% [21:50:28]line > о реализуемом товаре [21:50:28]line ОКРУГЛЕНИЕ: -0.51 [21:50:28]line ИТОГО: 1000.00 [21:50:28]line Внесено: 1000.00 [21:50:28]line СДАЧА: 0.00 [21:50:28]line НСП 1% : 8.85 [21:50:28]line НДС 12% : 106.25 [21:50:28]line Наличными: 1000.00 [21:50:28]line Безнал.: 0.00 [21:50:28]line Место: АЗС № 47 "Партнер Нефть" [21:50:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:50:28]line СНО: Общий режим [21:50:28]line Чек 360 14.04.2024 21:50 [21:50:28]line Смена: 357 ФФД: 1.0 [21:50:28]line ЗНМ: 0300000138 [21:50:28]line РНМ: 0000000000094237 [21:50:28]line Версия ККМ: 001 [21:50:28]line ФМ: 0000000000875019 [21:50:28]line ФД: 112461 [21:50:28]line ФПД: 28346857470528 [21:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T215028&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112461&fm=28346857470528&tin=02508201610067®Number=0000000000094237&sum=100000 [21:50:29]OFD Sender: Processing packet 112461 [packets to send 71, broken 70] [21:50:29]ProducePacketName [21:50:29]name=ofd_packets/00112461 [21:50:29]OFD Sender: To server: pG, [21:50:29]CommunicateWithHost lk.salyk.kg:30040 [21:50:29]ConnectInit lk.salyk.kg [21:50:29]written 0, free lines is 4095 [21:50:29]Connected sock=11 [21:50:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 19 A5 07 01 0B 22 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 3C 00 00 00 00 00 37 04 06 00 1E 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 68 01 00 00 F4 03 04 00 A4 4F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B7 01 00 35 04 06 00 19 C8 04 5E BA 40 F1 D5 F2 D6 6B CA 35 BB [21:50:29]Write to MH i2c: 01 00 00 A4 00 A4 [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: 01 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: 01 07 00 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 E9 0C A0 [21:50:29]RasterBufferAndPrint [21:50:29]line [21:50:29]line [21:50:29]line [21:50:29]line [21:50:29]line [21:50:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 46 7E 47 00 00 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4D B7 01 00 F4 03 04 00 2E F7 1B 66 B6 04 01 00 00 A6 44 2A 2E 88 17 B6 94 [21:50:29]CommunicateWithHost err = 0 [21:50:29]CheckOFDResponse [21:50:29]1017 (14) - 77093643461234 [21:50:29]1041 (16) - 0000000000875019 [21:50:29]1040 (4) - 112461 [21:50:29]1012 (4) - 14.04.2024 15:33 [21:50:29]1206 (1) - 0 [21:50:29]OFD Sender: Remove packet 112461 [21:50:29]ProducePacketName [21:50:29]name=ofd_packets/00112461 [21:50:29]NVStorageDeleteData [21:50:29]written 0, free lines is 3326 [21:50:29]MH_Cut [21:50:29]Write to MH i2c: D1 01 00 AB 00 01 7D [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: D1 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: D1 01 00 [21:50:29]MH_I2C_Read... [21:50:29]Read from MH i2c: D1 01 00 AB 00 00 7C [21:50:29]Write to MH i2c: 01 00 00 AC 00 AC [21:50:29]Write i2c OK [21:50:29]MH_I2C_Read... [21:50:30]OFD Sender: No OFD packet to send [21:50:30]*** Cut start [21:50:30]*** Partial cut [21:50:30]*** CUTSNS_PIN = 1 [21:50:30]*** CUTSNS_PIN = 0 [21:50:30]*** Brake cut motor [21:50:30]Read from MH i2c: 01 [21:50:31]MH_I2C_Read... [21:50:31]*** Stop cut motor [21:50:31]*** Cut end [21:50:31]Read from MH i2c: 01 07 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [21:50:31]process_action close_receipt done [21:50:31]requested_data is exist [21:50:31]produce_requested_data [21:50:31]requested_item fm.sn is exist - process it [21:50:31]wFMCommunicate request_size=4 [21:50:31]MH_SAM_APDU [21:50:31]CAPDU: 80 11 00 00 [21:50:31]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:50:31]Read from MH i2c: E2 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 17 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [21:50:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:50:31]wFMCommunicate OK [21:50:31]requested_item fd.num is exist - process it [21:50:31]SAM_PROTO_GetFieldsCounters [21:50:31]wFMCommunicate request_size=4 [21:50:31]MH_SAM_APDU [21:50:31]CAPDU: 80 13 00 00 [21:50:31]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:50:31]Read from MH i2c: E2 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 62 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 62 00 AE 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [21:50:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:50:31]wFMCommunicate OK [21:50:31]SAM_PROTO_GetFieldsCounters done [21:50:31]requested_item shift.num is exist - process it [21:50:31]requested_item shift.opened is exist - process it [21:50:31]req_shift_opened [21:50:31]FM_GetShiftState [21:50:31]SAM_PROTO_GetShiftState [21:50:31]wFMCommunicate request_size=4 [21:50:31]MH_SAM_APDU [21:50:31]CAPDU: 80 13 01 00 [21:50:31]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [21:50:31]Write i2c OK [21:50:31]MH_I2C_Read... [21:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:50:31]Read from MH i2c: E2 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 0E 00 [21:50:31]MH_I2C_Read... [21:50:31]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [21:50:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:50:31]wFMCommunicate OK [21:50:31]SAM_PROTO_GetShiftState done [21:50:31]FM_GetShiftState done [21:50:31]req_shift_opened done [21:50:31]requested_item shift.open_date is exist - process it [21:50:31]req_shift_open_date [21:50:31]req_shift_open_date done [21:50:31]produce_requested_data done [21:50:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112461,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:50:31]process_action_free close_receipt [21:50:31]json_value_free [21:50:31]json_value_free done [21:50:31]process_json_proto returns [21:50:31]Send response to host [21:50:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112461,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:50:31]free response buf [21:50:31]execute_script done [21:50:31]execute_script returns [21:50:31]free content buf [21:50:31]Sock 7.Close socket [21:50:31]Sock 7.Thread stoped [21:50:35]OFD Sender: No OFD packet to send [21:50:40]OFD Sender: No OFD packet to send [21:50:45]OFD Sender: No OFD packet to send [21:50:50]OFD Sender: No OFD packet to send [21:50:55]OFD Sender: No OFD packet to send [21:51:00]OFD Sender: No OFD packet to send [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:15]OFD Sender: No OFD packet to send [21:51:20]OFD Sender: No OFD packet to send [21:51:25]OFD Sender: No OFD packet to send [21:51:30]OFD Sender: No OFD packet to send [21:51:35]OFD Sender: No OFD packet to send [21:51:40]OFD Sender: No OFD packet to send [21:51:45]OFD Sender: No OFD packet to send [21:51:50]OFD Sender: No OFD packet to send [21:51:55]OFD Sender: No OFD packet to send [21:52:00]OFD Sender: No OFD packet to send [21:52:05]OFD Sender: No OFD packet to send [21:52:10]OFD Sender: No OFD packet to send [21:52:15]OFD Sender: No OFD packet to send [21:52:20]OFD Sender: No OFD packet to send [21:52:25]OFD Sender: No OFD packet to send [21:52:30]OFD Sender: No OFD packet to send [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:24]accept exits with 9 [21:53:24]New connection [21:53:24]New thread 3067317604 created [21:53:24]Thread 3067174244 joined [21:53:24]Waiting for new connection... [21:53:24] Sock 9.Parse request [21:53:24]Sock 9.Check first char [21:53:24]Sock 9.First char is OK [21:53:24]request: POST /json_proto HTTP/1.0 [21:53:24]Method: POST [21:53:24]URL: /json_proto [21:53:24]Method is POST - this is cgi request [21:53:24]url: /json_proto [21:53:24]query_string will be loaded in cgi processing [21:53:24]execute_cgi json_proto POST (null) [21:53:24]execute_cgi path=json_proto method=POST [21:53:24]POST find Content-Length [21:53:24]Host: 172.17.96.197:8080 [21:53:24]Content-Length: 676 [21:53:24]Content-Type: application/json [21:53:24] [21:53:24]POST finish read [21:53:24]Found Content-Length = 676 [21:53:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [21:53:24]execute_script... [21:53: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)48755", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [21:53:24]POST & json_proto [21:53:24]process_json_proto [21:53:24]json parsed OK: [21:53:24]protocol is kg_v1.0 [21:53:24]action value=close_receipt [21:53:24]process_action close_receipt [21:53:24]cmd_close_receipt [21:53:24]MH_GetDate [21:53:24]Write to MH i2c: F0 00 00 B0 00 9F [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: F0 09 00 B0 00 00 55 50 1C 66 E0 85 7F 64 17 [21:53:24]GetLastDocTimeStamp 1713131428 [21:53:24]current date 1713131605 [21:53:24]FM_GetShiftState [21:53:24]SAM_PROTO_GetShiftState [21:53:24]wFMCommunicate request_size=4 [21:53:24]MH_SAM_APDU [21:53:24]CAPDU: 80 13 01 00 [21:53:24]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [21:53:24]Write i2c OK [21:53:24]MH_I2C_Read... [21:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:24]Read from MH i2c: E2 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 [21:53:24]MH_I2C_Read... [21:53:24]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C6 [21:53:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:53:24]wFMCommunicate OK [21:53:24]SAM_PROTO_GetShiftState done [21:53:24]FM_GetShiftState done [21:53:24]opened in 1713054696 [21:53:24]opened+sec_in_day 1713141096 [21:53:24]quantity*price = 20061 [21:53:24]sum+1 = 20063 [21:53:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 361 14.04.2024 21:53 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112462 ФПД: 263709584831333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T215325&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112462&fm=263709584831333&tin=02508201610067®Number=0000000000094237&sum=20000 [21:53:25]StoreToDocumentArchive [21:53:25]shift 357 fd 112462 [21:53:25]save to /storage/0357/doc_00112462 [21:53:25]save last doc name /storage/0357/doc_00112462 to /storage/kkm_last_doc_name [21:53:25]save OK [21:53:25]Clear old archive folders... [21:53:25]OFD Sender: No OFD packet to send [21:53:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:53:25]tlvbuf is 01A09FD0 [21:53:25]SAM_PROTO_ClearQueue [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 09 00 00 [21:53:25]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]SAM_PROTO_ClearQueue done [21:53:25]KKMCreateOFDPacket [21:53:25]OFDProtocolAddRootSTLVToBuf [21:53:25]FM_MakeSignedData [21:53:25]FM_MakeSignedData [21:53:25]SAM_PROTO_SignData [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 0D 01 02 [21:53:25]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]wFMCommunicate request_size=255 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 69 01 00 00 F4 03 04 00 55 50 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B7 01 00 35 04 06 00 EF [21:53:25]Write to MH i2c: E2 02 01 C0 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 69 01 00 00 F4 03 04 00 55 50 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B7 01 00 35 04 06 00 EF 00 00 32 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]wFMCommunicate request_size=10 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 0D 02 02 05 D7 AC 20 B3 65 [21:53:25]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 D7 AC 20 B3 65 00 00 00 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [21:53:25]RAPDU: 90 00 [21:53:25]wFMCommunicate OK [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 0D 03 02 [21:53:25]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 0B 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 0B 00 C2 00 00 43 EA 1C 0B 97 B1 91 DE 90 00 49 [21:53:25]RAPDU: 43 EA 1C 0B 97 B1 91 DE 90 00 [21:53:25]wFMCommunicate OK [21:53:25]SAM_PROTO_SignData done [21:53:25]FM_MakeSignedData done [21:53:25]CreateOFDProtocolMessage [21:53:25]wFMCommunicate request_size=4 [21:53:25]MH_SAM_APDU [21:53:25]CAPDU: 80 11 00 00 [21:53:25]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:25]Read from MH i2c: E2 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 17 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [21:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:53:25]wFMCommunicate OK [21:53:25]CreateOFDProtocolMessage done [21:53:25]OFDSenderStorePacket 112462 [21:53:25]StoreOFDPacket docnum=112462 [21:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 08 DD 07 01 E3 AC 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 69 01 00 00 F4 03 04 00 55 50 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B7 01 00 35 04 06 00 EF D7 AC 20 B3 65 43 EA 1C 0B 97 B1 91 DE [21:53:25]CheckFolder [21:53:25]dirname=/storage/ofd_packets [21:53:25]CheckFolder done [21:53:25]ProducePacketName [21:53:25]name=ofd_packets/00112462 [21:53:25]NVStorageSaveData ofd_packets/00112462 [21:53:25]File name is /storage/ofd_packets/00112462 [21:53:25]Write 301 bytes [21:53:25]NVStorageSaveData done [21:53:25]OFDSenderStorePacket done [21:53:25]KKMCreateOFDPacket done [21:53:25]NVStorageSaveData kkm_last_timestamp [21:53:25]File name is /storage/kkm_last_timestamp [21:53:25]Write 4 bytes [21:53:25]NVStorageSaveData done [21:53:25]ExternCall_PrintAddStr [21:53:25]wPrintStart [21:53:25]Write to MH i2c: 01 00 00 C4 00 C4 [21:53:25]Write i2c OK [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 [21:53:25]MH_I2C_Read... [21:53:25]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [21:53:25]RasterBufferAndPrint [21:53:25]line Счет N : (1)48755 [21:53:25]line ИНН: 02508201610067 [21:53:25]line Контрольно-Кассовый Чек [21:53:25]line ПРОДАЖА [21:53:25]line ТРК (МРК, ГНК) : 11 [21:53:25]line Товар: 2710124130 [21:53:25]line Аи-92-К-5 [21:53:25]line 3.120 * 64.30 [21:53:25]line = 200.62 [21:53:25]line НДС 12% НСП 1% [21:53:25]line > о реализуемом товаре [21:53:25]line ОКРУГЛЕНИЕ: -0.62 [21:53:25]line ИТОГО: 200.00 [21:53:25]line Внесено: 200.00 [21:53:25]line СДАЧА: 0.00 [21:53:25]line НСП 1% : 1.77 [21:53:25]line НДС 12% : 21.30 [21:53:25]line Наличными: 200.00 [21:53:25]line Безнал.: 0.00 [21:53:25]line Место: АЗС № 47 "Партнер Нефть" [21:53:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [21:53:25]line СНО: Общий режим [21:53:25]line Чек 361 14.04.2024 21:53 [21:53:25]line Смена: 357 ФФД: 1.0 [21:53:25]line ЗНМ: 0300000138 [21:53:25]line РНМ: 0000000000094237 [21:53:25]line Версия ККМ: 001 [21:53:25]line ФМ: 0000000000875019 [21:53:25]line ФД: 112462 [21:53:25]line ФПД: 263709584831333 [21:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T215325&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112462&fm=263709584831333&tin=02508201610067®Number=0000000000094237&sum=20000 [21:53:26]OFD Sender: Processing packet 112462 [packets to send 71, broken 70] [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00112462 [21:53:26]OFD Sender: To server: pG, [21:53:26]CommunicateWithHost lk.salyk.kg:30040 [21:53:26]ConnectInit lk.salyk.kg [21:53:26]written 0, free lines is 4095 [21:53:26]Connected sock=10 [21:53:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 08 DD 07 01 E3 AC 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 69 01 00 00 F4 03 04 00 55 50 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B7 01 00 35 04 06 00 EF D7 AC 20 B3 65 43 EA 1C 0B 97 B1 91 DE [21:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 CB FA 47 00 D1 B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4E B7 01 00 F4 03 04 00 DF F7 1B 66 B6 04 01 00 00 F1 70 D8 32 7A 58 0D 09 [21:53:26]CommunicateWithHost err = 0 [21:53:26]CheckOFDResponse [21:53:26]1017 (14) - 77093643461234 [21:53:26]1041 (16) - 0000000000875019 [21:53:26]1040 (4) - 112462 [21:53:26]1012 (4) - 14.04.2024 15:35 [21:53:26]1206 (1) - 0 [21:53:26]OFD Sender: Remove packet 112462 [21:53:26]ProducePacketName [21:53:26]name=ofd_packets/00112462 [21:53:26]NVStorageDeleteData [21:53:26]Write to MH i2c: 01 00 00 EF 00 EF [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 F1 0C F3 [21:53:26]RasterBufferAndPrint [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]line [21:53:26]written 0, free lines is 3319 [21:53:26]MH_Cut [21:53:26]Write to MH i2c: D1 01 00 F6 00 01 C8 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 01 00 [21:53:26]MH_I2C_Read... [21:53:26]Read from MH i2c: D1 01 00 F6 00 00 C7 [21:53:26]Write to MH i2c: 01 00 00 F7 00 F7 [21:53:26]Write i2c OK [21:53:26]MH_I2C_Read... [21:53:27]OFD Sender: No OFD packet to send [21:53:27]*** Cut start [21:53:27]*** Partial cut [21:53:27]*** CUTSNS_PIN = 1 [21:53:27]*** CUTSNS_PIN = 0 [21:53:27]*** Brake cut motor [21:53:28]Read from MH i2c: 01 [21:53:28]MH_I2C_Read... [21:53:28]*** Stop cut motor [21:53:28]*** Cut end [21:53:28]Read from MH i2c: 01 07 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [21:53:28]process_action close_receipt done [21:53:28]requested_data is exist [21:53:28]produce_requested_data [21:53:28]requested_item fm.sn is exist - process it [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 11 00 00 [21:53:28]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 17 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 17 00 F8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [21:53:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [21:53:28]wFMCommunicate OK [21:53:28]requested_item fd.num is exist - process it [21:53:28]SAM_PROTO_GetFieldsCounters [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 00 00 [21:53:28]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 62 00 F9 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [21:53:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetFieldsCounters done [21:53:28]requested_item shift.num is exist - process it [21:53:28]requested_item shift.opened is exist - process it [21:53:28]req_shift_opened [21:53:28]FM_GetShiftState [21:53:28]SAM_PROTO_GetShiftState [21:53:28]wFMCommunicate request_size=4 [21:53:28]MH_SAM_APDU [21:53:28]CAPDU: 80 13 01 00 [21:53:28]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [21:53:28]Write i2c OK [21:53:28]MH_I2C_Read... [21:53:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:28]Read from MH i2c: E2 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 [21:53:28]MH_I2C_Read... [21:53:28]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [21:53:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [21:53:28]wFMCommunicate OK [21:53:28]SAM_PROTO_GetShiftState done [21:53:28]FM_GetShiftState done [21:53:28]req_shift_opened done [21:53:28]requested_item shift.open_date is exist - process it [21:53:28]req_shift_open_date [21:53:28]req_shift_open_date done [21:53:28]produce_requested_data done [21:53:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112462,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [21:53:28]process_action_free close_receipt [21:53:28]json_value_free [21:53:28]json_value_free done [21:53:28]process_json_proto returns [21:53:28]Send response to host [21:53:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112462,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [21:53:28]free response buf [21:53:28]execute_script done [21:53:28]execute_script returns [21:53:28]free content buf [21:53:28]Sock 9.Close socket [21:53:28]Sock 9.Thread stoped [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:37]OFD Sender: No OFD packet to send [22:04:42]OFD Sender: No OFD packet to send [22:04:47]OFD Sender: No OFD packet to send [22:04:52]OFD Sender: No OFD packet to send [22:04:57]OFD Sender: No OFD packet to send [22:05:02]OFD Sender: No OFD packet to send [22:05:07]OFD Sender: No OFD packet to send [22:05:12]OFD Sender: No OFD packet to send [22:05:17]OFD Sender: No OFD packet to send [22:05:22]OFD Sender: No OFD packet to send [22:05:27]OFD Sender: No OFD packet to send [22:05:32]OFD Sender: No OFD packet to send [22:05:37]OFD Sender: No OFD packet to send [22:05:42]OFD Sender: No OFD packet to send [22:05:47]OFD Sender: No OFD packet to send [22:05:52]OFD Sender: No OFD packet to send [22:05:57]OFD Sender: No OFD packet to send [22:06:02]OFD Sender: No OFD packet to send [22:06:07]OFD Sender: No OFD packet to send [22:06:12]OFD Sender: No OFD packet to send [22:06:17]OFD Sender: No OFD packet to send [22:06:22]OFD Sender: No OFD packet to send [22:06:27]OFD Sender: No OFD packet to send [22:06:29]accept exits with 7 [22:06:29]New connection [22:06:29]New thread 3067174244 created [22:06:29]Thread 3067317604 joined [22:06:29]Waiting for new connection... [22:06:29] Sock 7.Parse request [22:06:29]Sock 7.Check first char [22:06:29]Sock 7.First char is OK [22:06:29]request: POST /json_proto HTTP/1.0 [22:06:29]Method: POST [22:06:29]URL: /json_proto [22:06:29]Method is POST - this is cgi request [22:06:29]url: /json_proto [22:06:29]query_string will be loaded in cgi processing [22:06:29]execute_cgi json_proto POST (null) [22:06:29]execute_cgi path=json_proto method=POST [22:06:29]POST find Content-Length [22:06:29]Host: 172.17.96.197:8080 [22:06:29]Content-Length: 789 [22:06:29]Content-Type: application/json [22:06:29] [22:06:29]POST finish read [22:06:29]Found Content-Length = 789 [22:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10452", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:29]execute_script... [22:06:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10452", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u041E! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:29]POST & json_proto [22:06:29]process_json_proto [22:06:29]json parsed OK: [22:06:29]protocol is kg_v1.0 [22:06:29]action value=close_receipt [22:06:29]process_action close_receipt [22:06:29]cmd_close_receipt [22:06:29]MH_GetDate [22:06:29]Write to MH i2c: F0 00 00 FB 00 EA [22:06:29]Write i2c OK [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: F0 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: F0 09 00 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: F0 09 00 FB 00 00 66 53 1C 66 E0 85 7F 64 76 [22:06:29]GetLastDocTimeStamp 1713131605 [22:06:29]current date 1713132390 [22:06:29]FM_GetShiftState [22:06:29]SAM_PROTO_GetShiftState [22:06:29]wFMCommunicate request_size=4 [22:06:29]MH_SAM_APDU [22:06:29]CAPDU: 80 13 01 00 [22:06:29]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [22:06:29]Write i2c OK [22:06:29]MH_I2C_Read... [22:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:29]Read from MH i2c: E2 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: E2 0E 00 [22:06:29]MH_I2C_Read... [22:06:29]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [22:06:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:06:29]wFMCommunicate OK [22:06:29]SAM_PROTO_GetShiftState done [22:06:29]FM_GetShiftState done [22:06:29]opened in 1713054696 [22:06:29]opened+sec_in_day 1713141096 [22:06:29]quantity*price = 15100 [22:06:29]sum+1 = 15101 [22:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 362 14.04.2024 22:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112463 ФПД: 81944005487418 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220630&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112463&fm=81944005487418&tin=02508201610067®Number=0000000000094237&sum=15100 0 [22:06:30]StoreToDocumentArchive [22:06:30]shift 357 fd 112463 [22:06:30]save to /storage/0357/doc_00112463 [22:06:30]save last doc name /storage/0357/doc_00112463 to /storage/kkm_last_doc_name [22:06:30]save OK [22:06:30]Clear old archive folders... [22:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:06:30]tlvbuf is 01A0EF70 [22:06:30]SAM_PROTO_ClearQueue [22:06:30]wFMCommunicate request_size=4 [22:06:30]MH_SAM_APDU [22:06:30]CAPDU: 80 09 00 00 [22:06:30]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [22:06:30]Write i2c OK [22:06:30]MH_I2C_Read... [22:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:30]Read from MH i2c: E2 [22:06:30]MH_I2C_Read... [22:06:30]Read from MH i2c: E2 03 00 [22:06:30]MH_I2C_Read... [22:06:30]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [22:06:30]RAPDU: 90 00 [22:06:30]wFMCommunicate OK [22:06:30]SAM_PROTO_ClearQueue done [22:06:30]KKMCreateOFDPacket [22:06:30]OFDProtocolAddRootSTLVToBuf [22:06:30]FM_MakeSignedData [22:06:30]FM_MakeSignedData [22:06:30]SAM_PROTO_SignData [22:06:30]wFMCommunicate request_size=4 [22:06:30]MH_SAM_APDU [22:06:30]CAPDU: 80 0D 01 02 [22:06:30]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [22:06:30]Write i2c OK [22:06:30]MH_I2C_Read... [22:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:30]Read from MH i2c: E2 [22:06:30]MH_I2C_Read... [22:06:30]Read from MH i2c: E2 03 00 [22:06:30]MH_I2C_Read... [22:06:30]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [22:06:30]RAPDU: 90 00 [22:06:30]wFMCommunicate OK [22:06:30]wFMCommunicate request_size=255 [22:06:30]MH_SAM_APDU [22:06:30]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 66 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 [22:06:30]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 66 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 00 00 E2 [22:06:30]Write i2c OK [22:06:30]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 03 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [22:06:31]RAPDU: 90 00 [22:06:31]wFMCommunicate OK [22:06:31]wFMCommunicate request_size=35 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B7 01 00 35 04 06 00 4A 87 13 56 AB 3A [22:06:31]Write to MH i2c: E2 26 00 0C 01 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B7 01 00 35 04 06 00 4A 87 13 56 AB 3A 00 00 9E [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 03 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [22:06:31]RAPDU: 90 00 [22:06:31]wFMCommunicate OK [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 0D 03 02 [22:06:31]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0B 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 0B 00 0D 01 00 68 C8 FB CC 80 BC 3E 0B 90 00 06 [22:06:31]RAPDU: 68 C8 FB CC 80 BC 3E 0B 90 00 [22:06:31]wFMCommunicate OK [22:06:31]SAM_PROTO_SignData done [22:06:31]FM_MakeSignedData done [22:06:31]CreateOFDProtocolMessage [22:06:31]wFMCommunicate request_size=4 [22:06:31]MH_SAM_APDU [22:06:31]CAPDU: 80 11 00 00 [22:06:31]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:31]Read from MH i2c: E2 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 17 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DA [22:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:06:31]wFMCommunicate OK [22:06:31]CreateOFDProtocolMessage done [22:06:31]OFDSenderStorePacket 112463 [22:06:31]StoreOFDPacket docnum=112463 [22:06:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 54 77 20 01 E2 3B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 66 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B7 01 00 35 04 06 00 4A 87 13 56 AB 3A 68 C8 FB CC 80 BC 3E 0B [22:06:31]CheckFolder [22:06:31]dirname=/storage/ofd_packets [22:06:31]CheckFolder done [22:06:31]ProducePacketName [22:06:31]name=ofd_packets/00112463 [22:06:31]NVStorageSaveData ofd_packets/00112463 [22:06:31]File name is /storage/ofd_packets/00112463 [22:06:31]Write 326 bytes [22:06:31]NVStorageSaveData done [22:06:31]OFDSenderStorePacket done [22:06:31]KKMCreateOFDPacket done [22:06:31]NVStorageSaveData kkm_last_timestamp [22:06:31]File name is /storage/kkm_last_timestamp [22:06:31]Write 4 bytes [22:06:31]NVStorageSaveData done [22:06:31]ExternCall_PrintAddStr [22:06:31]wPrintStart [22:06:31]Write to MH i2c: 01 00 00 0F 01 10 [22:06:31]Write i2c OK [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: 01 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: 01 07 00 [22:06:31]MH_I2C_Read... [22:06:31]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [22:06:31]RasterBufferAndPrint [22:06:31]line Счет N : (3)10452 [22:06:31]line ИНН: 02508201610067 [22:06:31]line Контрольно-Кассовый Чек [22:06:31]line ПРОДАЖА [22:06:31]line Товар: 48742245 [22:06:31]line Сигареты Parliament Silver Blue [22:06:31]line 1.000 * 151.00 [22:06:31]line = 151.00 [22:06:31]line НДС 12% НСП 1% [22:06:31]line > о реализуемом товаре [22:06:31]line ИТОГО: 151.00 [22:06:31]line НСП 1% : 1.34 [22:06:31]line НДС 12% : 16.03 [22:06:31]line Наличными: 0.00 [22:06:31]line Безнал.: 151.00 [22:06:31]line Место: АЗС № 47 "Партнер Нефть" [22:06:31]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:06:31]line СНО: Общий режим [22:06:31]line Чек 362 14.04.2024 22:06 [22:06:31]line Смена: 357 ФФД: 1.0 [22:06:31]line ЗНМ: 0300000138 [22:06:31]line РНМ: 0000000000094237 [22:06:31]line Версия ККМ: 001 [22:06:31]line Платежная система: О! деньги [22:06:31]line ФМ: 0000000000875019 [22:06:31]line ФД: 112463 [22:06:31]line ФПД: 81944005487418 [22:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220630&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112463&fm=81944005487418&tin=02508201610067®Number=0000000000094237&sum=15100 [22:06:31]line 0 [22:06:31]OFD Sender: Processing packet 112463 [packets to send 71, broken 70] [22:06:31]ProducePacketName [22:06:31]name=ofd_packets/00112463 [22:06:31]OFD Sender: To server: pG, [22:06:31]CommunicateWithHost lk.salyk.kg:30040 [22:06:31]ConnectInit lk.salyk.kg [22:06:31]written 0, free lines is 4095 [22:06:31]Connected sock=10 [22:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 54 77 20 01 E2 3B 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 01 00 00 F4 03 04 00 66 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B7 01 00 35 04 06 00 4A 87 13 56 AB 3A 68 C8 FB CC 80 BC 3E 0B [22:06:32]Write to MH i2c: 01 00 00 3A 01 3B [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: 01 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: 01 07 00 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 B5 0C 03 [22:06:32]RasterBufferAndPrint [22:06:32]line [22:06:32]line [22:06:32]line [22:06:32]line [22:06:32]line [22:06:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1F 05 47 00 C2 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 4F B7 01 00 F4 03 04 00 F0 FA 1B 66 B6 04 01 00 00 6E B7 21 E3 3F CB 68 C9 [22:06:32]CommunicateWithHost err = 0 [22:06:32]CheckOFDResponse [22:06:32]1017 (14) - 77093643461234 [22:06:32]1041 (16) - 0000000000875019 [22:06:32]1040 (4) - 112463 [22:06:32]1012 (4) - 14.04.2024 15:49 [22:06:32]1206 (1) - 0 [22:06:32]OFD Sender: Remove packet 112463 [22:06:32]ProducePacketName [22:06:32]name=ofd_packets/00112463 [22:06:32]NVStorageDeleteData [22:06:32]written 0, free lines is 3259 [22:06:32]MH_Cut [22:06:32]Write to MH i2c: D1 01 00 41 01 01 14 [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: D1 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: D1 01 00 [22:06:32]MH_I2C_Read... [22:06:32]Read from MH i2c: D1 01 00 41 01 00 13 [22:06:32]Write to MH i2c: 01 00 00 42 01 43 [22:06:32]Write i2c OK [22:06:32]MH_I2C_Read... [22:06:32]OFD Sender: No OFD packet to send [22:06:32]*** Cut start [22:06:32]*** Partial cut [22:06:32]*** CUTSNS_PIN = 1 [22:06:33]*** CUTSNS_PIN = 0 [22:06:33]*** Brake cut motor [22:06:33]Read from MH i2c: 01 [22:06:33]MH_I2C_Read... [22:06:33]*** Stop cut motor [22:06:33]*** Cut end [22:06:33]Read from MH i2c: 01 07 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [22:06:33]process_action close_receipt done [22:06:33]requested_data is exist [22:06:33]produce_requested_data [22:06:33]requested_item fm.sn is exist - process it [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 11 00 00 [22:06:33]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 17 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [22:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:06:33]wFMCommunicate OK [22:06:33]requested_item fd.num is exist - process it [22:06:33]SAM_PROTO_GetFieldsCounters [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 13 00 00 [22:06:33]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 62 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 4F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:33]wFMCommunicate OK [22:06:33]SAM_PROTO_GetFieldsCounters done [22:06:33]requested_item shift.num is exist - process it [22:06:33]requested_item shift.opened is exist - process it [22:06:33]req_shift_opened [22:06:33]FM_GetShiftState [22:06:33]SAM_PROTO_GetShiftState [22:06:33]wFMCommunicate request_size=4 [22:06:33]MH_SAM_APDU [22:06:33]CAPDU: 80 13 01 00 [22:06:33]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [22:06:33]Write i2c OK [22:06:33]MH_I2C_Read... [22:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:33]Read from MH i2c: E2 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 [22:06:33]MH_I2C_Read... [22:06:33]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5B [22:06:33]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:06:33]wFMCommunicate OK [22:06:33]SAM_PROTO_GetShiftState done [22:06:33]FM_GetShiftState done [22:06:33]req_shift_opened done [22:06:33]requested_item shift.open_date is exist - process it [22:06:33]req_shift_open_date [22:06:33]req_shift_open_date done [22:06:33]produce_requested_data done [22:06:33]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112463,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:06:33]process_action_free close_receipt [22:06:33]json_value_free [22:06:33]json_value_free done [22:06:33]process_json_proto returns [22:06:33]Send response to host [22:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112463,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:06:33]free response buf [22:06:33]execute_script done [22:06:33]execute_script returns [22:06:33]free content buf [22:06:33]Sock 7.Close socket [22:06:33]Sock 7.Thread stoped [22:06:37]OFD Sender: No OFD packet to send [22:06:42]OFD Sender: No OFD packet to send [22:06:47]OFD Sender: No OFD packet to send [22:06:52]accept exits with 9 [22:06:52]New connection [22:06:52]New thread 3067317604 created [22:06:52]Thread 3067174244 joined [22:06:52]Waiting for new connection... [22:06:52] Sock 9.Parse request [22:06:52]Sock 9.Check first char [22:06:52]Sock 9.First char is OK [22:06:52]request: POST /json_proto HTTP/1.0 [22:06:52]Method: POST [22:06:52]URL: /json_proto [22:06:52]Method is POST - this is cgi request [22:06:52]url: /json_proto [22:06:52]query_string will be loaded in cgi processing [22:06:52]execute_cgi json_proto POST (null) [22:06:52]execute_cgi path=json_proto method=POST [22:06:52]POST find Content-Length [22:06:52]Host: 172.17.96.197:8080 [22:06:52]Content-Length: 804 [22:06:52]Content-Type: application/json [22:06:52] [22:06:52]POST finish read [22:06:52]Found Content-Length = 804 [22:06:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48756", "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.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:52]execute_script... [22: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)48756", "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.30, "quantity" : 4.670, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:52]POST & json_proto [22:06:52]process_json_proto [22:06:52]json parsed OK: [22:06:52]protocol is kg_v1.0 [22:06:52]action value=close_receipt [22:06:52]process_action close_receipt [22:06:52]cmd_close_receipt [22:06:52]MH_GetDate [22:06:52]Write to MH i2c: F0 00 00 46 01 36 [22:06:52]Write i2c OK [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 09 00 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: F0 09 00 46 01 00 7D 53 1C 66 E0 85 7F 64 D9 [22:06:52]GetLastDocTimeStamp 1713132390 [22:06:52]current date 1713132413 [22:06:52]FM_GetShiftState [22:06:52]SAM_PROTO_GetShiftState [22:06:52]wFMCommunicate request_size=4 [22:06:52]MH_SAM_APDU [22:06:52]CAPDU: 80 13 01 00 [22:06:52]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [22:06:52]Write i2c OK [22:06:52]MH_I2C_Read... [22:06:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:52]Read from MH i2c: E2 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: E2 0E 00 [22:06:52]MH_I2C_Read... [22:06:52]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5D [22:06:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:06:52]wFMCommunicate OK [22:06:52]SAM_PROTO_GetShiftState done [22:06:52]FM_GetShiftState done [22:06:52]opened in 1713054696 [22:06:52]opened+sec_in_day 1713141096 [22:06:52]quantity*price = 30028 [22:06:52]sum+1 = 30029 [22:06:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 363 14.04.2024 22:06 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112464 ФПД: 47020174612472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220653&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112464&fm=47020174612472&tin=02508201610067®Number=0000000000094237&sum=30028 [22:06:53]StoreToDocumentArchive [22:06:53]shift 357 fd 112464 [22:06:53]save to /storage/0357/doc_00112464 [22:06:53]save last doc name /storage/0357/doc_00112464 to /storage/kkm_last_doc_name [22:06:53]save OK [22:06:53]Clear old archive folders... [22:06:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:06:53]tlvbuf is 01A082D0 [22:06:53]SAM_PROTO_ClearQueue [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 09 00 00 [22:06:53]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]SAM_PROTO_ClearQueue done [22:06:53]KKMCreateOFDPacket [22:06:53]OFDProtocolAddRootSTLVToBuf [22:06:53]FM_MakeSignedData [22:06:53]FM_MakeSignedData [22:06:53]SAM_PROTO_SignData [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 0D 01 02 [22:06:53]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]wFMCommunicate request_size=255 [22:06:53]MH_SAM_APDU [22:06: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 7D 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B7 01 00 35 04 06 00 2A [22:06:53]Write to MH i2c: E2 02 01 56 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 7D 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B7 01 00 35 04 06 00 2A 00 00 83 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]wFMCommunicate request_size=10 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 0D 02 02 05 C3 BC CE 17 F8 [22:06:53]Write to MH i2c: E2 0D 00 57 01 80 0D 02 02 05 00 C3 BC CE 17 F8 00 00 38 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [22:06:53]RAPDU: 90 00 [22:06:53]wFMCommunicate OK [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 0D 03 02 [22:06:53]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 0B 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 0B 00 58 01 00 0A 3E 2A D7 39 39 F8 2D 90 00 B5 [22:06:53]RAPDU: 0A 3E 2A D7 39 39 F8 2D 90 00 [22:06:53]wFMCommunicate OK [22:06:53]SAM_PROTO_SignData done [22:06:53]FM_MakeSignedData done [22:06:53]CreateOFDProtocolMessage [22:06:53]wFMCommunicate request_size=4 [22:06:53]MH_SAM_APDU [22:06:53]CAPDU: 80 11 00 00 [22:06:53]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:53]Read from MH i2c: E2 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 17 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [22:06:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:06:53]wFMCommunicate OK [22:06:53]CreateOFDProtocolMessage done [22:06:53]OFDSenderStorePacket 112464 [22:06:53]StoreOFDPacket docnum=112464 [22:06:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5D CF 07 01 48 4E 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 7D 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B7 01 00 35 04 06 00 2A C3 BC CE 17 F8 0A 3E 2A D7 39 39 F8 2D [22:06:53]CheckFolder [22:06:53]dirname=/storage/ofd_packets [22:06:53]CheckFolder done [22:06:53]ProducePacketName [22:06:53]name=ofd_packets/00112464 [22:06:53]NVStorageSaveData ofd_packets/00112464 [22:06:53]File name is /storage/ofd_packets/00112464 [22:06:53]Write 301 bytes [22:06:53]NVStorageSaveData done [22:06:53]OFDSenderStorePacket done [22:06:53]KKMCreateOFDPacket done [22:06:53]NVStorageSaveData kkm_last_timestamp [22:06:53]File name is /storage/kkm_last_timestamp [22:06:53]Write 4 bytes [22:06:53]NVStorageSaveData done [22:06:53]ExternCall_PrintAddStr [22:06:53]wPrintStart [22:06:53]Write to MH i2c: 01 00 00 5A 01 5B [22:06:53]Write i2c OK [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: 01 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: 01 07 00 [22:06:53]MH_I2C_Read... [22:06:53]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [22:06:53]RasterBufferAndPrint [22:06:53]line Счет N : (1)48756 [22:06:53]line ИНН: 02508201610067 [22:06:53]line Контрольно-Кассовый Чек [22:06:53]line ПРОДАЖА [22:06:53]line ТРК (МРК, ГНК) : 32 [22:06:53]line Товар: 2710124130 [22:06:53]line Аи-92-К-5 [22:06:53]line 4.670 * 64.30 [22:06:53]line = 300.28 [22:06:53]line НДС 12% НСП 1% [22:06:53]line > о реализуемом товаре [22:06:53]line ИТОГО: 300.28 [22:06:53]line НСП 1% : 2.66 [22:06:53]line НДС 12% : 31.89 [22:06:53]line Наличными: 0.00 [22:06:53]line Безнал.: 300.28 [22:06:53]line Место: АЗС № 47 "Партнер Нефть" [22:06:53]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:06:53]line СНО: Общий режим [22:06:53]line Чек 363 14.04.2024 22:06 [22:06:53]line Смена: 357 ФФД: 1.0 [22:06:53]line ЗНМ: 0300000138 [22:06:53]line РНМ: 0000000000094237 [22:06:53]line Версия ККМ: 001 [22:06:53]line Платежная система: О! деньги [22:06:53]line ФМ: 0000000000875019 [22:06:53]line ФД: 112464 [22:06:53]line ФПД: 47020174612472 [22:06:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220653&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112464&fm=47020174612472&tin=02508201610067®Number=0000000000094237&sum=30028 [22:06:54]OFD Sender: Processing packet 112464 [packets to send 71, broken 70] [22:06:54]ProducePacketName [22:06:54]name=ofd_packets/00112464 [22:06:54]OFD Sender: To server: pG, [22:06:54]CommunicateWithHost lk.salyk.kg:30040 [22:06:54]ConnectInit lk.salyk.kg [22:06:54]written 0, free lines is 4095 [22:06:54]Connected sock=11 [22:06:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 5D CF 07 01 48 4E 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 01 00 00 F4 03 04 00 7D 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B7 01 00 35 04 06 00 2A C3 BC CE 17 F8 0A 3E 2A D7 39 39 F8 2D [22:06:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 10 27 47 00 18 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 50 B7 01 00 F4 03 04 00 07 FB 1B 66 B6 04 01 00 00 3D A5 46 C0 08 55 A9 D3 [22:06:54]CommunicateWithHost err = 0 [22:06:54]CheckOFDResponse [22:06:54]1017 (14) - 77093643461234 [22:06:54]1041 (16) - 0000000000875019 [22:06:54]1040 (4) - 112464 [22:06:54]1012 (4) - 14.04.2024 15:49 [22:06:54]1206 (1) - 0 [22:06:54]OFD Sender: Remove packet 112464 [22:06:54]ProducePacketName [22:06:54]name=ofd_packets/00112464 [22:06:54]NVStorageDeleteData [22:06:54]Write to MH i2c: 01 00 00 84 01 85 [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 07 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 EC 0C 84 [22:06:54]RasterBufferAndPrint [22:06:54]line [22:06:54]line [22:06:54]line [22:06:54]line [22:06:54]line [22:06:54]written 0, free lines is 3315 [22:06:54]MH_Cut [22:06:54]Write to MH i2c: D1 01 00 8B 01 01 5E [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: D1 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: D1 01 00 [22:06:54]MH_I2C_Read... [22:06:54]Read from MH i2c: D1 01 00 8B 01 00 5D [22:06:54]Write to MH i2c: 01 00 00 8C 01 8D [22:06:54]Write i2c OK [22:06:54]MH_I2C_Read... [22:06:55]OFD Sender: No OFD packet to send [22:06:55]*** Cut start [22:06:55]*** Partial cut [22:06:55]*** CUTSNS_PIN = 1 [22:06:55]*** CUTSNS_PIN = 0 [22:06:55]*** Brake cut motor [22:06:55]Read from MH i2c: 01 [22:06:55]MH_I2C_Read... [22:06:56]*** Stop cut motor [22:06:56]*** Cut end [22:06:56]Read from MH i2c: 01 07 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [22:06:56]process_action close_receipt done [22:06:56]requested_data is exist [22:06:56]produce_requested_data [22:06:56]requested_item fm.sn is exist - process it [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 11 00 00 [22:06:56]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:56]Read from MH i2c: E2 17 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [22:06:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:06:56]wFMCommunicate OK [22:06:56]requested_item fd.num is exist - process it [22:06:56]SAM_PROTO_GetFieldsCounters [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 13 00 00 [22:06:56]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 62 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 50 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [22:06:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 50 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:06:56]wFMCommunicate OK [22:06:56]SAM_PROTO_GetFieldsCounters done [22:06:56]requested_item shift.num is exist - process it [22:06:56]requested_item shift.opened is exist - process it [22:06:56]req_shift_opened [22:06:56]FM_GetShiftState [22:06:56]SAM_PROTO_GetShiftState [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 13 01 00 [22:06:56]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [22:06:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:06:56]wFMCommunicate OK [22:06:56]SAM_PROTO_GetShiftState done [22:06:56]FM_GetShiftState done [22:06:56]req_shift_opened done [22:06:56]requested_item shift.open_date is exist - process it [22:06:56]req_shift_open_date [22:06:56]req_shift_open_date done [22:06:56]produce_requested_data done [22:06:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112464,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:06:56]process_action_free close_receipt [22:06:56]json_value_free [22:06:56]json_value_free done [22:06:56]process_json_proto returns [22:06:56]Send response to host [22:06:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112464,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:06:56]free response buf [22:06:56]execute_script done [22:06:56]execute_script returns [22:06:56]free content buf [22:06:56]Sock 9.Close socket [22:06:56]Sock 9.Thread stoped [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:34]accept exits with 7 [22:08:34]New connection [22:08:34]New thread 3067174244 created [22:08:34]Thread 3067317604 joined [22:08:34]Waiting for new connection... [22:08:34] Sock 7.Parse request [22:08:34]Sock 7.Check first char [22:08:34]Sock 7.First char is OK [22:08:34]request: POST /json_proto HTTP/1.0 [22:08:34]Method: POST [22:08:34]URL: /json_proto [22:08:34]Method is POST - this is cgi request [22:08:34]url: /json_proto [22:08:34]query_string will be loaded in cgi processing [22:08:34]execute_cgi json_proto POST (null) [22:08:34]execute_cgi path=json_proto method=POST [22:08:34]POST find Content-Length [22:08:34]Host: 172.17.96.197:8080 [22:08:34]Content-Length: 676 [22:08:34]Content-Type: application/json [22:08:34] [22:08:34]POST finish read [22:08:34]Found Content-Length = 676 [22:08:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48757", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [22:08:34]execute_script... [22:08: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)48757", "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.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [22:08:34]POST & json_proto [22:08:34]process_json_proto [22:08:34]json parsed OK: [22:08:34]protocol is kg_v1.0 [22:08:34]action value=close_receipt [22:08:34]process_action close_receipt [22:08:34]cmd_close_receipt [22:08:34]MH_GetDate [22:08:34]Write to MH i2c: F0 00 00 90 01 80 [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 09 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: F0 09 00 90 01 00 E3 53 1C 66 E0 85 7F 64 89 [22:08:34]GetLastDocTimeStamp 1713132413 [22:08:34]current date 1713132515 [22:08:34]FM_GetShiftState [22:08:34]SAM_PROTO_GetShiftState [22:08:34]wFMCommunicate request_size=4 [22:08:34]MH_SAM_APDU [22:08:34]CAPDU: 80 13 01 00 [22:08:34]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [22:08:34]Write i2c OK [22:08:34]MH_I2C_Read... [22:08:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:34]Read from MH i2c: E2 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 [22:08:34]MH_I2C_Read... [22:08:34]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A7 [22:08:34]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:08:34]wFMCommunicate OK [22:08:34]SAM_PROTO_GetShiftState done [22:08:34]FM_GetShiftState done [22:08:34]opened in 1713054696 [22:08:34]opened+sec_in_day 1713141096 [22:08:34]quantity*price = 20061 [22:08:34]sum+1 = 20063 [22:08:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 364 14.04.2024 22:08 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112465 ФПД: 17387569700220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220835&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112465&fm=17387569700220&tin=02508201610067®Number=0000000000094237&sum=20000 [22:08:35]StoreToDocumentArchive [22:08:35]shift 357 fd 112465 [22:08:35]save to /storage/0357/doc_00112465 [22:08:35]save last doc name /storage/0357/doc_00112465 to /storage/kkm_last_doc_name [22:08:35]save OK [22:08:35]Clear old archive folders... [22:08:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:08:35]tlvbuf is 01A07EB0 [22:08:35]SAM_PROTO_ClearQueue [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 09 00 00 [22:08:35]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]SAM_PROTO_ClearQueue done [22:08:35]KKMCreateOFDPacket [22:08:35]OFDProtocolAddRootSTLVToBuf [22:08:35]FM_MakeSignedData [22:08:35]FM_MakeSignedData [22:08:35]SAM_PROTO_SignData [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 01 02 [22:08:35]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=255 [22:08:35]MH_SAM_APDU [22:08: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 6C 01 00 00 F4 03 04 00 E3 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B7 01 00 35 04 06 00 0F [22:08:35]Write to MH i2c: E2 02 01 A0 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 6C 01 00 00 F4 03 04 00 E3 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B7 01 00 35 04 06 00 0F 00 00 CA [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=10 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 02 02 05 D0 5B EA 5D 7C [22:08:35]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 D0 5B EA 5D 7C 00 00 14 [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:08:35]Read from MH i2c: E2 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 [22:08:35]MH_I2C_Read... [22:08:35]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [22:08:35]RAPDU: 90 00 [22:08:35]wFMCommunicate OK [22:08:35]wFMCommunicate request_size=4 [22:08:35]MH_SAM_APDU [22:08:35]CAPDU: 80 0D 03 02 [22:08:35]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [22:08:35]Write i2c OK [22:08:35]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 0B 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 0B 00 A2 01 00 12 54 6C DD 94 BC 53 EB 90 00 5C [22:08:36]RAPDU: 12 54 6C DD 94 BC 53 EB 90 00 [22:08:36]wFMCommunicate OK [22:08:36]SAM_PROTO_SignData done [22:08:36]FM_MakeSignedData done [22:08:36]CreateOFDProtocolMessage [22:08:36]wFMCommunicate request_size=4 [22:08:36]MH_SAM_APDU [22:08:36]CAPDU: 80 11 00 00 [22:08:36]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:36]Read from MH i2c: E2 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 17 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [22:08:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:08:36]wFMCommunicate OK [22:08:36]CreateOFDProtocolMessage done [22:08:36]OFDSenderStorePacket 112465 [22:08:36]StoreOFDPacket docnum=112465 [22:08:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8E 57 07 01 AA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 6C 01 00 00 F4 03 04 00 E3 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B7 01 00 35 04 06 00 0F D0 5B EA 5D 7C 12 54 6C DD 94 BC 53 EB [22:08:36]CheckFolder [22:08:36]dirname=/storage/ofd_packets [22:08:36]CheckFolder done [22:08:36]ProducePacketName [22:08:36]name=ofd_packets/00112465 [22:08:36]NVStorageSaveData ofd_packets/00112465 [22:08:36]File name is /storage/ofd_packets/00112465 [22:08:36]Write 301 bytes [22:08:36]NVStorageSaveData done [22:08:36]OFDSenderStorePacket done [22:08:36]KKMCreateOFDPacket done [22:08:36]NVStorageSaveData kkm_last_timestamp [22:08:36]File name is /storage/kkm_last_timestamp [22:08:36]Write 4 bytes [22:08:36]NVStorageSaveData done [22:08:36]ExternCall_PrintAddStr [22:08:36]wPrintStart [22:08:36]Write to MH i2c: 01 00 00 A4 01 A5 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [22:08:36]RasterBufferAndPrint [22:08:36]line Счет N : (1)48757 [22:08:36]line ИНН: 02508201610067 [22:08:36]line Контрольно-Кассовый Чек [22:08:36]line ПРОДАЖА [22:08:36]line ТРК (МРК, ГНК) : 42 [22:08:36]line Товар: 2710124130 [22:08:36]line Аи-92-К-5 [22:08:36]line 3.120 * 64.30 [22:08:36]line = 200.62 [22:08:36]line НДС 12% НСП 1% [22:08:36]line > о реализуемом товаре [22:08:36]line ОКРУГЛЕНИЕ: -0.62 [22:08:36]line ИТОГО: 200.00 [22:08:36]line Внесено: 200.00 [22:08:36]line СДАЧА: 0.00 [22:08:36]line НСП 1% : 1.77 [22:08:36]line НДС 12% : 21.30 [22:08:36]line Наличными: 200.00 [22:08:36]line Безнал.: 0.00 [22:08:36]line Место: АЗС № 47 "Партнер Нефть" [22:08:36]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:08:36]line СНО: Общий режим [22:08:36]line Чек 364 14.04.2024 22:08 [22:08:36]line Смена: 357 ФФД: 1.0 [22:08:36]line ЗНМ: 0300000138 [22:08:36]line РНМ: 0000000000094237 [22:08:36]line Версия ККМ: 001 [22:08:36]line ФМ: 0000000000875019 [22:08:36]line ФД: 112465 [22:08:36]line ФПД: 17387569700220 [22:08:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T220835&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112465&fm=17387569700220&tin=02508201610067®Number=0000000000094237&sum=20000 [22:08:36]OFD Sender: Processing packet 112465 [packets to send 71, broken 70] [22:08:36]ProducePacketName [22:08:36]name=ofd_packets/00112465 [22:08:36]OFD Sender: To server: pG, [22:08:36]CommunicateWithHost lk.salyk.kg:30040 [22:08:36]ConnectInit lk.salyk.kg [22:08:36]written 0, free lines is 4095 [22:08:36]Write to MH i2c: 01 00 00 CF 01 D0 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 CD 0C B0 [22:08:36]RasterBufferAndPrint [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]line [22:08:36]written 0, free lines is 3281 [22:08:36]MH_Cut [22:08:36]Write to MH i2c: D1 01 00 D6 01 01 A9 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 01 00 [22:08:36]MH_I2C_Read... [22:08:36]Read from MH i2c: D1 01 00 D6 01 00 A8 [22:08:36]Write to MH i2c: 01 00 00 D7 01 D8 [22:08:36]Write i2c OK [22:08:36]MH_I2C_Read... [22:08:37]*** Cut start [22:08:37]*** Partial cut [22:08:37]*** CUTSNS_PIN = 1 [22:08:37]*** CUTSNS_PIN = 0 [22:08:37]*** Brake cut motor [22:08:38]Read from MH i2c: 01 [22:08:38]MH_I2C_Read... [22:08:38]*** Stop cut motor [22:08:38]*** Cut end [22:08:38]Read from MH i2c: 01 07 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [22:08:38]process_action close_receipt done [22:08:38]requested_data is exist [22:08:38]produce_requested_data [22:08:38]requested_item fm.sn is exist - process it [22:08:38]wFMCommunicate request_size=4 [22:08:38]MH_SAM_APDU [22:08:38]CAPDU: 80 11 00 00 [22:08:38]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:08:38]Read from MH i2c: E2 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 17 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [22:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:08:38]wFMCommunicate OK [22:08:38]requested_item fd.num is exist - process it [22:08:38]SAM_PROTO_GetFieldsCounters [22:08:38]wFMCommunicate request_size=4 [22:08:38]MH_SAM_APDU [22:08:38]CAPDU: 80 13 00 00 [22:08:38]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:08:38]Read from MH i2c: E2 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 62 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 62 00 D9 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 51 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [22:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 51 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:08:38]wFMCommunicate OK [22:08:38]SAM_PROTO_GetFieldsCounters done [22:08:38]requested_item shift.num is exist - process it [22:08:38]requested_item shift.opened is exist - process it [22:08:38]req_shift_opened [22:08:38]FM_GetShiftState [22:08:38]SAM_PROTO_GetShiftState [22:08:38]wFMCommunicate request_size=4 [22:08:38]MH_SAM_APDU [22:08:38]CAPDU: 80 13 01 00 [22:08:38]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [22:08:38]Write i2c OK [22:08:38]MH_I2C_Read... [22:08:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:08:38]Read from MH i2c: E2 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 [22:08:38]MH_I2C_Read... [22:08:38]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [22:08:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:08:38]wFMCommunicate OK [22:08:38]SAM_PROTO_GetShiftState done [22:08:38]FM_GetShiftState done [22:08:38]req_shift_opened done [22:08:38]requested_item shift.open_date is exist - process it [22:08:38]req_shift_open_date [22:08:38]req_shift_open_date done [22:08:38]produce_requested_data done [22:08:38]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112465,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:08:38]process_action_free close_receipt [22:08:38]json_value_free [22:08:38]json_value_free done [22:08:38]process_json_proto returns [22:08:38]Send response to host [22:08:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112465,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:08:38]free response buf [22:08:38]execute_script done [22:08:38]execute_script returns [22:08:38]free content buf [22:08:38]Sock 7.Close socket [22:08:38]Sock 7.Thread stoped [22:10:50]ConnectInit Can't connect to host [22:10:50]CommunicateWithHost connect error [22:10:50]CommunicateWithHost err = -1 [22:10:50]OFD Sender: Server communicate error [22:10:55]OFD Sender: Processing packet 112465 [packets to send 71, broken 70] [22:10:55]ProducePacketName [22:10:55]name=ofd_packets/00112465 [22:10:55]OFD Sender: To server: pG, [22:10:55]CommunicateWithHost lk.salyk.kg:30040 [22:10:55]ConnectInit lk.salyk.kg [22:10:55]Connected sock=7 [22:10:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 8E 57 07 01 AA EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 6C 01 00 00 F4 03 04 00 E3 53 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B7 01 00 35 04 06 00 0F D0 5B EA 5D 7C 12 54 6C DD 94 BC 53 EB [22:10:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C4 CF 47 00 B7 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 51 B7 01 00 F4 03 04 00 F8 FB 1B 66 B6 04 01 00 00 12 45 15 EA D0 EB D2 C2 [22:10:56]CommunicateWithHost err = 0 [22:10:56]CheckOFDResponse [22:10:56]1017 (14) - 77093643461234 [22:10:56]1041 (16) - 0000000000875019 [22:10:56]1040 (4) - 112465 [22:10:56]1012 (4) - 14.04.2024 15:53 [22:10:56]1206 (1) - 0 [22:10:56]OFD Sender: Remove packet 112465 [22:10:56]ProducePacketName [22:10:56]name=ofd_packets/00112465 [22:10:56]NVStorageDeleteData [22:10:56]OFD Sender: No OFD packet to send [22:10:57]accept exits with 9 [22:10:57]New connection [22:10:57]New thread 3067317604 created [22:10:57]Thread 3067174244 joined [22:10:57]Waiting for new connection... [22:10:57] Sock 9.Parse request [22:10:57]Sock 9.Check first char [22:10:57]Sock 9.First char is OK [22:10:57]request: POST /json_proto HTTP/1.0 [22:10:57]Method: POST [22:10:57]URL: /json_proto [22:10:57]Method is POST - this is cgi request [22:10:57]url: /json_proto [22:10:57]query_string will be loaded in cgi processing [22:10:57]execute_cgi json_proto POST (null) [22:10:57]execute_cgi path=json_proto method=POST [22:10:57]POST find Content-Length [22:10:57]Host: 172.17.96.197:8080 [22:10:57]Content-Length: 676 [22:10:57]Content-Type: application/json [22:10:57] [22:10:57]POST finish read [22:10:57]Found Content-Length = 676 [22:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48758", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [22:10:57]execute_script... [22:10: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)48758", "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.30, "quantity" : 4.670, "sum" : 300.28, "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" ] } } [22:10:57]POST & json_proto [22:10:57]process_json_proto [22:10:57]json parsed OK: [22:10:57]protocol is kg_v1.0 [22:10:57]action value=close_receipt [22:10:57]process_action close_receipt [22:10:57]cmd_close_receipt [22:10:57]MH_GetDate [22:10:57]Write to MH i2c: F0 00 00 DB 01 CB [22:10:57]Write i2c OK [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: F0 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: F0 09 00 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: F0 09 00 DB 01 00 72 54 1C 66 E0 85 7F 64 64 [22:10:57]GetLastDocTimeStamp 1713132515 [22:10:57]current date 1713132658 [22:10:57]FM_GetShiftState [22:10:57]SAM_PROTO_GetShiftState [22:10:57]wFMCommunicate request_size=4 [22:10:57]MH_SAM_APDU [22:10:57]CAPDU: 80 13 01 00 [22:10:57]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [22:10:57]Write i2c OK [22:10:57]MH_I2C_Read... [22:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:10:57]Read from MH i2c: E2 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: E2 0E 00 [22:10:57]MH_I2C_Read... [22:10:57]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F2 [22:10:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:10:57]wFMCommunicate OK [22:10:57]SAM_PROTO_GetShiftState done [22:10:57]FM_GetShiftState done [22:10:57]opened in 1713054696 [22:10:57]opened+sec_in_day 1713141096 [22:10:57]quantity*price = 30028 [22:10:57]sum+1 = 30029 [22:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 365 14.04.2024 22:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112466 ФПД: 6318345801212 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221058&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112466&fm=6318345801212&tin=02508201610067®Number=0000000000094237&sum=30000 [22:10:58]StoreToDocumentArchive [22:10:58]shift 357 fd 112466 [22:10:58]save to /storage/0357/doc_00112466 [22:10:58]save last doc name /storage/0357/doc_00112466 to /storage/kkm_last_doc_name [22:10:58]save OK [22:10:58]Clear old archive folders... [22:10:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:10:58]tlvbuf is 019CC820 [22:10:58]SAM_PROTO_ClearQueue [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 09 00 00 [22:10:58]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [22:10:58]RAPDU: 90 00 [22:10:58]wFMCommunicate OK [22:10:58]SAM_PROTO_ClearQueue done [22:10:58]KKMCreateOFDPacket [22:10:58]OFDProtocolAddRootSTLVToBuf [22:10:58]FM_MakeSignedData [22:10:58]FM_MakeSignedData [22:10:58]SAM_PROTO_SignData [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 0D 01 02 [22:10:58]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [22:10:58]RAPDU: 90 00 [22:10:58]wFMCommunicate OK [22:10:58]wFMCommunicate request_size=255 [22:10:58]MH_SAM_APDU [22:10: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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 6D 01 00 00 F4 03 04 00 72 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B7 01 00 35 04 06 00 05 [22:10:58]Write to MH i2c: E2 02 01 EB 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 3E 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 6D 01 00 00 F4 03 04 00 72 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B7 01 00 35 04 06 00 05 00 00 B5 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [22:10:58]RAPDU: 90 00 [22:10:58]wFMCommunicate OK [22:10:58]wFMCommunicate request_size=10 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 0D 02 02 05 BF 1A C1 CD FC [22:10:58]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 BF 1A C1 CD FC 00 00 D4 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [22:10:58]RAPDU: 90 00 [22:10:58]wFMCommunicate OK [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 0D 03 02 [22:10:58]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 0B 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 0B 00 ED 01 00 F9 9D 78 FB A1 97 1A 68 90 00 2D [22:10:58]RAPDU: F9 9D 78 FB A1 97 1A 68 90 00 [22:10:58]wFMCommunicate OK [22:10:58]SAM_PROTO_SignData done [22:10:58]FM_MakeSignedData done [22:10:58]CreateOFDProtocolMessage [22:10:58]wFMCommunicate request_size=4 [22:10:58]MH_SAM_APDU [22:10:58]CAPDU: 80 11 00 00 [22:10:58]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:10:58]Read from MH i2c: E2 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 17 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BA [22:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:10:58]wFMCommunicate OK [22:10:58]CreateOFDProtocolMessage done [22:10:58]OFDSenderStorePacket 112466 [22:10:58]StoreOFDPacket docnum=112466 [22:10:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4C 47 07 01 60 A2 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 6D 01 00 00 F4 03 04 00 72 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B7 01 00 35 04 06 00 05 BF 1A C1 CD FC F9 9D 78 FB A1 97 1A 68 [22:10:58]CheckFolder [22:10:58]dirname=/storage/ofd_packets [22:10:58]CheckFolder done [22:10:58]ProducePacketName [22:10:58]name=ofd_packets/00112466 [22:10:58]NVStorageSaveData ofd_packets/00112466 [22:10:58]File name is /storage/ofd_packets/00112466 [22:10:58]Write 301 bytes [22:10:58]NVStorageSaveData done [22:10:58]OFDSenderStorePacket done [22:10:58]KKMCreateOFDPacket done [22:10:58]NVStorageSaveData kkm_last_timestamp [22:10:58]File name is /storage/kkm_last_timestamp [22:10:58]Write 4 bytes [22:10:58]NVStorageSaveData done [22:10:58]ExternCall_PrintAddStr [22:10:58]wPrintStart [22:10:58]Write to MH i2c: 01 00 00 EF 01 F0 [22:10:58]Write i2c OK [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: 01 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: 01 07 00 [22:10:58]MH_I2C_Read... [22:10:58]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [22:10:58]RasterBufferAndPrint [22:10:58]line Счет N : (1)48758 [22:10:58]line ИНН: 02508201610067 [22:10:58]line Контрольно-Кассовый Чек [22:10:58]line ПРОДАЖА [22:10:58]line ТРК (МРК, ГНК) : 42 [22:10:58]line Товар: 2710124130 [22:10:58]line Аи-92-К-5 [22:10:58]line 4.670 * 64.30 [22:10:58]line = 300.28 [22:10:58]line НДС 12% НСП 1% [22:10:58]line > о реализуемом товаре [22:10:58]line ОКРУГЛЕНИЕ: -0.28 [22:10:58]line ИТОГО: 300.00 [22:10:58]line Внесено: 300.00 [22:10:58]line СДАЧА: 0.00 [22:10:58]line НСП 1% : 2.66 [22:10:58]line НДС 12% : 31.89 [22:10:58]line Наличными: 300.00 [22:10:58]line Безнал.: 0.00 [22:10:58]line Место: АЗС № 47 "Партнер Нефть" [22:10:58]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:10:58]line СНО: Общий режим [22:10:58]line Чек 365 14.04.2024 22:10 [22:10:58]line Смена: 357 ФФД: 1.0 [22:10:58]line ЗНМ: 0300000138 [22:10:58]line РНМ: 0000000000094237 [22:10:58]line Версия ККМ: 001 [22:10:58]line ФМ: 0000000000875019 [22:10:58]line ФД: 112466 [22:10:58]line ФПД: 6318345801212 [22:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221058&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112466&fm=6318345801212&tin=02508201610067®Number=0000000000094237&sum=30000 [22:10:59]OFD Sender: Processing packet 112466 [packets to send 71, broken 70] [22:10:59]ProducePacketName [22:10:59]name=ofd_packets/00112466 [22:10:59]OFD Sender: To server: pG, [22:10:59]CommunicateWithHost lk.salyk.kg:30040 [22:10:59]ConnectInit lk.salyk.kg [22:10:59]written 0, free lines is 4095 [22:10:59]Connected sock=10 [22:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 4C 47 07 01 60 A2 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 12 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 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 6D 01 00 00 F4 03 04 00 72 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B7 01 00 35 04 06 00 05 BF 1A C1 CD FC F9 9D 78 FB A1 97 1A 68 [22:10:59]Write to MH i2c: 01 00 00 1A 02 1C [22:10:59]Write i2c OK [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: 01 [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: 01 07 00 [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: 01 07 00 1A 02 00 00 00 00 00 E1 0C 10 [22:10:59]RasterBufferAndPrint [22:10:59]line [22:10:59]line [22:10:59]line [22:10:59]line [22:10:59]line [22:10:59]written 0, free lines is 3303 [22:10:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 9D 06 47 00 D8 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 52 B7 01 00 F4 03 04 00 FC FB 1B 66 B6 04 01 00 00 B9 FD 04 93 36 98 1B FC [22:10:59]CommunicateWithHost err = 0 [22:10:59]CheckOFDResponse [22:10:59]1017 (14) - 77093643461234 [22:10:59]1041 (16) - 0000000000875019 [22:10:59]1040 (4) - 112466 [22:10:59]1012 (4) - 14.04.2024 15:53 [22:10:59]1206 (1) - 0 [22:10:59]OFD Sender: Remove packet 112466 [22:10:59]ProducePacketName [22:10:59]name=ofd_packets/00112466 [22:10:59]NVStorageDeleteData [22:10:59]MH_Cut [22:10:59]Write to MH i2c: D1 01 00 21 02 01 F5 [22:10:59]Write i2c OK [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: D1 [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: D1 01 00 [22:10:59]MH_I2C_Read... [22:10:59]Read from MH i2c: D1 01 00 21 02 00 F4 [22:10:59]Write to MH i2c: 01 00 00 22 02 24 [22:10:59]Write i2c OK [22:10:59]MH_I2C_Read... [22:11:00]OFD Sender: No OFD packet to send [22:11:00]*** Cut start [22:11:00]*** Partial cut [22:11:00]*** CUTSNS_PIN = 1 [22:11:00]*** CUTSNS_PIN = 0 [22:11:00]*** Brake cut motor [22:11:01]Read from MH i2c: 01 [22:11:01]MH_I2C_Read... [22:11:01]*** Stop cut motor [22:11:01]*** Cut end [22:11:01]Read from MH i2c: 01 07 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: 01 07 00 22 02 00 00 00 00 00 FF 0F 39 [22:11:01]process_action close_receipt done [22:11:01]requested_data is exist [22:11:01]produce_requested_data [22:11:01]requested_item fm.sn is exist - process it [22:11:01]wFMCommunicate request_size=4 [22:11:01]MH_SAM_APDU [22:11:01]CAPDU: 80 11 00 00 [22:11:01]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:01]Read from MH i2c: E2 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 17 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [22:11:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:11:01]wFMCommunicate OK [22:11:01]requested_item fd.num is exist - process it [22:11:01]SAM_PROTO_GetFieldsCounters [22:11:01]wFMCommunicate request_size=4 [22:11:01]MH_SAM_APDU [22:11:01]CAPDU: 80 13 00 00 [22:11:01]Write to MH i2c: E2 08 00 24 02 80 13 00 00 00 00 00 00 A2 [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:01]Read from MH i2c: E2 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 62 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 62 00 24 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 52 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [22:11:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 52 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:01]wFMCommunicate OK [22:11:01]SAM_PROTO_GetFieldsCounters done [22:11:01]requested_item shift.num is exist - process it [22:11:01]requested_item shift.opened is exist - process it [22:11:01]req_shift_opened [22:11:01]FM_GetShiftState [22:11:01]SAM_PROTO_GetShiftState [22:11:01]wFMCommunicate request_size=4 [22:11:01]MH_SAM_APDU [22:11:01]CAPDU: 80 13 01 00 [22:11:01]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [22:11:01]Write i2c OK [22:11:01]MH_I2C_Read... [22:11:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:01]Read from MH i2c: E2 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 [22:11:01]MH_I2C_Read... [22:11:01]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [22:11:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:11:01]wFMCommunicate OK [22:11:01]SAM_PROTO_GetShiftState done [22:11:01]FM_GetShiftState done [22:11:01]req_shift_opened done [22:11:01]requested_item shift.open_date is exist - process it [22:11:01]req_shift_open_date [22:11:01]req_shift_open_date done [22:11:01]produce_requested_data done [22:11:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112466,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:11:01]process_action_free close_receipt [22:11:01]json_value_free [22:11:01]json_value_free done [22:11:01]process_json_proto returns [22:11:01]Send response to host [22:11:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112466,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:11:01]free response buf [22:11:01]execute_script done [22:11:01]execute_script returns [22:11:01]free content buf [22:11:01]Sock 9.Close socket [22:11:01]Sock 9.Thread stoped [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:43]accept exits with 7 [22:11:43]New connection [22:11:43]New thread 3067174244 created [22:11:43]Thread 3067317604 joined [22:11:43]Waiting for new connection... [22:11:43] Sock 7.Parse request [22:11:43]Sock 7.Check first char [22:11:43]Sock 7.First char is OK [22:11:43]request: POST /json_proto HTTP/1.0 [22:11:43]Method: POST [22:11:43]URL: /json_proto [22:11:43]Method is POST - this is cgi request [22:11:43]url: /json_proto [22:11:43]query_string will be loaded in cgi processing [22:11:43]execute_cgi json_proto POST (null) [22:11:43]execute_cgi path=json_proto method=POST [22:11:43]POST find Content-Length [22:11:43]Host: 172.17.96.197:8080 [22:11:43]Content-Length: 678 [22:11:43]Content-Type: application/json [22:11:43] [22:11:43]POST finish read [22:11:43]Found Content-Length = 678 [22:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48759", "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.40, "quantity" : 16.580, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:43]execute_script... [22:11: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)48759", "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.40, "quantity" : 16.580, "sum" : 1200.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:11:43]POST & json_proto [22:11:43]process_json_proto [22:11:43]json parsed OK: [22:11:43]protocol is kg_v1.0 [22:11:43]action value=close_receipt [22:11:43]process_action close_receipt [22:11:43]cmd_close_receipt [22:11:43]MH_GetDate [22:11:43]Write to MH i2c: F0 00 00 26 02 17 [22:11:43]Write i2c OK [22:11:43]MH_I2C_Read... [22:11:43]Read from MH i2c: F0 [22:11:43]MH_I2C_Read... [22:11:43]Read from MH i2c: F0 09 00 [22:11:43]MH_I2C_Read... [22:11:43]Read from MH i2c: F0 09 00 26 02 00 A0 54 1C 66 E0 85 7F 64 DE [22:11:43]GetLastDocTimeStamp 1713132658 [22:11:43]current date 1713132704 [22:11:43]FM_GetShiftState [22:11:43]SAM_PROTO_GetShiftState [22:11:43]wFMCommunicate request_size=4 [22:11:43]MH_SAM_APDU [22:11:43]CAPDU: 80 13 01 00 [22:11:43]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [22:11:43]Write i2c OK [22:11:43]MH_I2C_Read... [22:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:43]Read from MH i2c: E2 [22:11:43]MH_I2C_Read... [22:11:43]Read from MH i2c: E2 0E 00 [22:11:43]MH_I2C_Read... [22:11:43]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3E [22:11:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:11:43]wFMCommunicate OK [22:11:43]SAM_PROTO_GetShiftState done [22:11:43]FM_GetShiftState done [22:11:43]opened in 1713054696 [22:11:43]opened+sec_in_day 1713141096 [22:11:43]quantity*price = 120039 [22:11:43]sum+1 = 120040 [22:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.47 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 366 14.04.2024 22:11 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112467 ФПД: 225731963775593 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221144&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112467&fm=225731963775593&tin=02508201610067®Number=0000000000094237&sum=120000 [22:11:44]StoreToDocumentArchive [22:11:44]shift 357 fd 112467 [22:11:44]save to /storage/0357/doc_00112467 [22:11:44]save last doc name /storage/0357/doc_00112467 to /storage/kkm_last_doc_name [22:11:44]save OK [22:11:44]Clear old archive folders... [22:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:11:44]tlvbuf is 01A11C20 [22:11:44]SAM_PROTO_ClearQueue [22:11:44]wFMCommunicate request_size=4 [22:11:44]MH_SAM_APDU [22:11:44]CAPDU: 80 09 00 00 [22:11:44]Write to MH i2c: E2 08 00 34 02 80 09 00 00 00 00 00 00 A8 [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:11:44]Read from MH i2c: E2 03 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [22:11:44]RAPDU: 90 00 [22:11:44]wFMCommunicate OK [22:11:44]SAM_PROTO_ClearQueue done [22:11:44]KKMCreateOFDPacket [22:11:44]OFDProtocolAddRootSTLVToBuf [22:11:44]FM_MakeSignedData [22:11:44]FM_MakeSignedData [22:11:44]SAM_PROTO_SignData [22:11:44]wFMCommunicate request_size=4 [22:11:44]MH_SAM_APDU [22:11:44]CAPDU: 80 0D 01 02 [22:11:44]Write to MH i2c: E2 08 00 35 02 80 0D 01 02 00 00 00 00 B0 [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [22:11:44]RAPDU: 90 00 [22:11:44]wFMCommunicate OK [22:11:44]wFMCommunicate request_size=255 [22:11:44]MH_SAM_APDU [22:11:44]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 C4 40 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A0 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B7 01 00 35 04 06 00 CD 4D 51 83 [22:11:44]Write to MH i2c: E2 02 01 36 02 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 C4 40 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A0 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B7 01 00 35 04 06 00 CD 4D 51 83 00 00 C3 [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [22:11:44]RAPDU: 90 00 [22:11:44]wFMCommunicate OK [22:11:44]wFMCommunicate request_size=7 [22:11:44]MH_SAM_APDU [22:11:44]CAPDU: 80 0D 02 02 02 EA 69 [22:11:44]Write to MH i2c: E2 0A 00 37 02 80 0D 02 02 02 00 EA 69 00 00 0A [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [22:11:44]RAPDU: 90 00 [22:11:44]wFMCommunicate OK [22:11:44]wFMCommunicate request_size=4 [22:11:44]MH_SAM_APDU [22:11:44]CAPDU: 80 0D 03 02 [22:11:44]Write to MH i2c: E2 08 00 38 02 80 0D 03 02 00 00 00 00 B5 [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 0B 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 0B 00 38 02 00 7C 41 79 5B E3 89 49 8B 90 00 87 [22:11:44]RAPDU: 7C 41 79 5B E3 89 49 8B 90 00 [22:11:44]wFMCommunicate OK [22:11:44]SAM_PROTO_SignData done [22:11:44]FM_MakeSignedData done [22:11:44]CreateOFDProtocolMessage [22:11:44]wFMCommunicate request_size=4 [22:11:44]MH_SAM_APDU [22:11:44]CAPDU: 80 11 00 00 [22:11:44]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:44]Read from MH i2c: E2 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 17 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 06 [22:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:11:44]wFMCommunicate OK [22:11:44]CreateOFDProtocolMessage done [22:11:44]OFDSenderStorePacket 112467 [22:11:44]StoreOFDPacket docnum=112467 [22:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 14 D3 04 01 1D 90 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 C4 40 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A0 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B7 01 00 35 04 06 00 CD 4D 51 83 EA 69 7C 41 79 5B E3 89 49 8B [22:11:44]CheckFolder [22:11:44]dirname=/storage/ofd_packets [22:11:44]CheckFolder done [22:11:44]ProducePacketName [22:11:44]name=ofd_packets/00112467 [22:11:44]NVStorageSaveData ofd_packets/00112467 [22:11:44]File name is /storage/ofd_packets/00112467 [22:11:44]Write 298 bytes [22:11:44]NVStorageSaveData done [22:11:44]OFDSenderStorePacket done [22:11:44]KKMCreateOFDPacket done [22:11:44]NVStorageSaveData kkm_last_timestamp [22:11:44]File name is /storage/kkm_last_timestamp [22:11:44]Write 4 bytes [22:11:44]NVStorageSaveData done [22:11:44]ExternCall_PrintAddStr [22:11:44]wPrintStart [22:11:44]Write to MH i2c: 01 00 00 3A 02 3C [22:11:44]Write i2c OK [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: 01 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: 01 07 00 [22:11:44]MH_I2C_Read... [22:11:44]Read from MH i2c: 01 07 00 3A 02 00 00 00 00 00 FF 0F 51 [22:11:44]RasterBufferAndPrint [22:11:44]line Счет N : (1)48759 [22:11:44]line ИНН: 02508201610067 [22:11:44]line Контрольно-Кассовый Чек [22:11:44]line ПРОДАЖА [22:11:44]line ТРК (МРК, ГНК) : 51 [22:11:44]line Товар: 2710194210 [22:11:44]line ДТ-К-5 [22:11:44]line 16.580 * 72.40 [22:11:44]line = 1200.39 [22:11:44]line НДС 12% НСП 1% [22:11:44]line > о реализуемом товаре [22:11:44]line ОКРУГЛЕНИЕ: -0.39 [22:11:44]line ИТОГО: 1200.00 [22:11:44]line Внесено: 1200.00 [22:11:44]line СДАЧА: 0.00 [22:11:44]line НСП 1% : 10.62 [22:11:44]line НДС 12% : 127.47 [22:11:44]line Наличными: 1200.00 [22:11:44]line Безнал.: 0.00 [22:11:44]line Место: АЗС № 47 "Партнер Нефть" [22:11:44]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:11:44]line СНО: Общий режим [22:11:44]line Чек 366 14.04.2024 22:11 [22:11:44]line Смена: 357 ФФД: 1.0 [22:11:44]line ЗНМ: 0300000138 [22:11:44]line РНМ: 0000000000094237 [22:11:44]line Версия ККМ: 001 [22:11:44]line ФМ: 0000000000875019 [22:11:44]line ФД: 112467 [22:11:44]line ФПД: 225731963775593 [22:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221144&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112467&fm=225731963775593&tin=02508201610067®Number=0000000000094237&sum=120000 [22:11:45]OFD Sender: Processing packet 112467 [packets to send 71, broken 70] [22:11:45]ProducePacketName [22:11:45]name=ofd_packets/00112467 [22:11:45]OFD Sender: To server: pG, [22:11:45]CommunicateWithHost lk.salyk.kg:30040 [22:11:45]ConnectInit lk.salyk.kg [22:11:45]written 0, free lines is 4095 [22:11:45]Connected sock=10 [22:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 14 D3 04 01 1D 90 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 C4 40 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 E7 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 A0 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B7 01 00 35 04 06 00 CD 4D 51 83 EA 69 7C 41 79 5B E3 89 49 8B [22:11:45]Write to MH i2c: 01 00 00 65 02 67 [22:11:45]Write i2c OK [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: 01 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: 01 07 00 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 DA 0C 54 [22:11:45]RasterBufferAndPrint [22:11:45]line [22:11:45]line [22:11:45]line [22:11:45]line [22:11:45]line [22:11:45]written 0, free lines is 3297 [22:11:45]MH_Cut [22:11:45]Write to MH i2c: D1 01 00 6C 02 01 40 [22:11:45]Write i2c OK [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: D1 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: D1 01 00 [22:11:45]MH_I2C_Read... [22:11:45]Read from MH i2c: D1 01 00 6C 02 00 3F [22:11:45]Write to MH i2c: 01 00 00 6D 02 6F [22:11:45]Write i2c OK [22:11:45]MH_I2C_Read... [22:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A3 10 47 00 1C 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 53 B7 01 00 F4 03 04 00 2A FC 1B 66 B6 04 01 00 00 6F 15 9D 6F 2A 36 74 39 [22:11:45]CommunicateWithHost err = 0 [22:11:45]CheckOFDResponse [22:11:45]1017 (14) - 77093643461234 [22:11:45]1041 (16) - 0000000000875019 [22:11:45]1040 (4) - 112467 [22:11:45]1012 (4) - 14.04.2024 15:54 [22:11:45]1206 (1) - 0 [22:11:45]OFD Sender: Remove packet 112467 [22:11:45]ProducePacketName [22:11:45]name=ofd_packets/00112467 [22:11:45]NVStorageDeleteData [22:11:46]OFD Sender: No OFD packet to send [22:11:46]*** Cut start [22:11:46]*** Partial cut [22:11:46]*** CUTSNS_PIN = 1 [22:11:46]*** CUTSNS_PIN = 0 [22:11:46]*** Brake cut motor [22:11:46]Read from MH i2c: 01 [22:11:46]MH_I2C_Read... [22:11:46]*** Stop cut motor [22:11:46]*** Cut end [22:11:46]Read from MH i2c: 01 07 00 [22:11:46]MH_I2C_Read... [22:11:46]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [22:11:46]process_action close_receipt done [22:11:46]requested_data is exist [22:11:46]produce_requested_data [22:11:46]requested_item fm.sn is exist - process it [22:11:46]wFMCommunicate request_size=4 [22:11:46]MH_SAM_APDU [22:11:46]CAPDU: 80 11 00 00 [22:11:46]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [22:11:46]Write i2c OK [22:11:46]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 17 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3B [22:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:11:47]wFMCommunicate OK [22:11:47]requested_item fd.num is exist - process it [22:11:47]SAM_PROTO_GetFieldsCounters [22:11:47]wFMCommunicate request_size=4 [22:11:47]MH_SAM_APDU [22:11:47]CAPDU: 80 13 00 00 [22:11:47]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 62 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 53 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 CA [22:11:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 53 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:11:47]wFMCommunicate OK [22:11:47]SAM_PROTO_GetFieldsCounters done [22:11:47]requested_item shift.num is exist - process it [22:11:47]requested_item shift.opened is exist - process it [22:11:47]req_shift_opened [22:11:47]FM_GetShiftState [22:11:47]SAM_PROTO_GetShiftState [22:11:47]wFMCommunicate request_size=4 [22:11:47]MH_SAM_APDU [22:11:47]CAPDU: 80 13 01 00 [22:11:47]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [22:11:47]Write i2c OK [22:11:47]MH_I2C_Read... [22:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:11:47]Read from MH i2c: E2 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 0E 00 [22:11:47]MH_I2C_Read... [22:11:47]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [22:11:47]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:11:47]wFMCommunicate OK [22:11:47]SAM_PROTO_GetShiftState done [22:11:47]FM_GetShiftState done [22:11:47]req_shift_opened done [22:11:47]requested_item shift.open_date is exist - process it [22:11:47]req_shift_open_date [22:11:47]req_shift_open_date done [22:11:47]produce_requested_data done [22:11:47]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112467,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:11:47]process_action_free close_receipt [22:11:47]json_value_free [22:11:47]json_value_free done [22:11:47]process_json_proto returns [22:11:47]Send response to host [22:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112467,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:11:47]free response buf [22:11:47]execute_script done [22:11:47]execute_script returns [22:11:47]free content buf [22:11:47]Sock 7.Close socket [22:11:47]Sock 7.Thread stoped [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:38]accept exits with 9 [22:12:38]New connection [22:12:38]New thread 3067317604 created [22:12:38]Thread 3067174244 joined [22:12:38]Waiting for new connection... [22:12:38] Sock 9.Parse request [22:12:38]Sock 9.Check first char [22:12:38]Sock 9.First char is OK [22:12:38]request: POST /json_proto HTTP/1.0 [22:12:38]Method: POST [22:12:38]URL: /json_proto [22:12:38]Method is POST - this is cgi request [22:12:38]url: /json_proto [22:12:38]query_string will be loaded in cgi processing [22:12:38]execute_cgi json_proto POST (null) [22:12:38]execute_cgi path=json_proto method=POST [22:12:38]POST find Content-Length [22:12:38]Host: 172.17.96.197:8080 [22:12:38]Content-Length: 676 [22:12:38]Content-Type: application/json [22:12:38] [22:12:38]POST finish read [22:12:38]Found Content-Length = 676 [22:12:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48760", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [22:12:38]execute_script... [22:12: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)48760", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [22:12:38]POST & json_proto [22:12:38]process_json_proto [22:12:38]json parsed OK: [22:12:38]protocol is kg_v1.0 [22:12:38]action value=close_receipt [22:12:38]process_action close_receipt [22:12:38]cmd_close_receipt [22:12:38]MH_GetDate [22:12:38]Write to MH i2c: F0 00 00 71 02 62 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: F0 09 00 71 02 00 D7 54 1C 66 E0 85 7F 64 60 [22:12:38]GetLastDocTimeStamp 1713132704 [22:12:38]current date 1713132759 [22:12:38]FM_GetShiftState [22:12:38]SAM_PROTO_GetShiftState [22:12:38]wFMCommunicate request_size=4 [22:12:38]MH_SAM_APDU [22:12:38]CAPDU: 80 13 01 00 [22:12:38]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [22:12:38]Write i2c OK [22:12:38]MH_I2C_Read... [22:12:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:38]Read from MH i2c: E2 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 0E 00 [22:12:38]MH_I2C_Read... [22:12:38]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 89 [22:12:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:12:38]wFMCommunicate OK [22:12:38]SAM_PROTO_GetShiftState done [22:12:38]FM_GetShiftState done [22:12:38]opened in 1713054696 [22:12:38]opened+sec_in_day 1713141096 [22:12:38]quantity*price = 40058 [22:12:38]sum+1 = 40060 [22:12:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 367 14.04.2024 22:12 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112468 ФПД: 70733648495599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221239&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112468&fm=70733648495599&tin=02508201610067®Number=0000000000094237&sum=40000 [22:12:39]StoreToDocumentArchive [22:12:39]shift 357 fd 112468 [22:12:39]save to /storage/0357/doc_00112468 [22:12:39]save last doc name /storage/0357/doc_00112468 to /storage/kkm_last_doc_name [22:12:39]save OK [22:12:39]Clear old archive folders... [22:12:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:12:39]tlvbuf is 01A15B50 [22:12:39]SAM_PROTO_ClearQueue [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 09 00 00 [22:12:39]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]SAM_PROTO_ClearQueue done [22:12:39]KKMCreateOFDPacket [22:12:39]OFDProtocolAddRootSTLVToBuf [22:12:39]FM_MakeSignedData [22:12:39]FM_MakeSignedData [22:12:39]SAM_PROTO_SignData [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 01 02 [22:12:39]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=255 [22:12:39]MH_SAM_APDU [22:12: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 6F 01 00 00 F4 03 04 00 D7 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B7 01 00 35 04 06 00 40 [22:12:39]Write to MH i2c: E2 02 01 81 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 6F 01 00 00 F4 03 04 00 D7 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B7 01 00 35 04 06 00 40 00 00 57 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=10 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 02 02 05 54 F5 FE 03 EF [22:12:39]Write to MH i2c: E2 0D 00 82 02 80 0D 02 02 05 00 54 F5 FE 03 EF 00 00 41 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:39]Read from MH i2c: E2 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 [22:12:39]MH_I2C_Read... [22:12:39]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [22:12:39]RAPDU: 90 00 [22:12:39]wFMCommunicate OK [22:12:39]wFMCommunicate request_size=4 [22:12:39]MH_SAM_APDU [22:12:39]CAPDU: 80 0D 03 02 [22:12:39]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [22:12:39]Write i2c OK [22:12:39]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 0B 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 0B 00 83 02 00 F5 5A F7 B5 2B 9F B7 3E 90 00 BB [22:12:40]RAPDU: F5 5A F7 B5 2B 9F B7 3E 90 00 [22:12:40]wFMCommunicate OK [22:12:40]SAM_PROTO_SignData done [22:12:40]FM_MakeSignedData done [22:12:40]CreateOFDProtocolMessage [22:12:40]wFMCommunicate request_size=4 [22:12:40]MH_SAM_APDU [22:12:40]CAPDU: 80 11 00 00 [22:12:40]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:40]Read from MH i2c: E2 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 17 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 51 [22:12:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:12:40]wFMCommunicate OK [22:12:40]CreateOFDProtocolMessage done [22:12:40]OFDSenderStorePacket 112468 [22:12:40]StoreOFDPacket docnum=112468 [22:12:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EE DA 07 01 01 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 6F 01 00 00 F4 03 04 00 D7 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B7 01 00 35 04 06 00 40 54 F5 FE 03 EF F5 5A F7 B5 2B 9F B7 3E [22:12:40]CheckFolder [22:12:40]dirname=/storage/ofd_packets [22:12:40]CheckFolder done [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00112468 [22:12:40]NVStorageSaveData ofd_packets/00112468 [22:12:40]File name is /storage/ofd_packets/00112468 [22:12:40]Write 301 bytes [22:12:40]NVStorageSaveData done [22:12:40]OFDSenderStorePacket done [22:12:40]KKMCreateOFDPacket done [22:12:40]NVStorageSaveData kkm_last_timestamp [22:12:40]File name is /storage/kkm_last_timestamp [22:12:40]Write 4 bytes [22:12:40]NVStorageSaveData done [22:12:40]ExternCall_PrintAddStr [22:12:40]wPrintStart [22:12:40]Write to MH i2c: 01 00 00 85 02 87 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [22:12:40]RasterBufferAndPrint [22:12:40]line Счет N : (1)48760 [22:12:40]line ИНН: 02508201610067 [22:12:40]line Контрольно-Кассовый Чек [22:12:40]line ПРОДАЖА [22:12:40]line ТРК (МРК, ГНК) : 32 [22:12:40]line Товар: 2710124130 [22:12:40]line Аи-92-К-5 [22:12:40]line 6.230 * 64.30 [22:12:40]line = 400.59 [22:12:40]line НДС 12% НСП 1% [22:12:40]line > о реализуемом товаре [22:12:40]line ОКРУГЛЕНИЕ: -0.59 [22:12:40]line ИТОГО: 400.00 [22:12:40]line Внесено: 400.00 [22:12:40]line СДАЧА: 0.00 [22:12:40]line НСП 1% : 3.54 [22:12:40]line НДС 12% : 42.54 [22:12:40]line Наличными: 400.00 [22:12:40]line Безнал.: 0.00 [22:12:40]line Место: АЗС № 47 "Партнер Нефть" [22:12:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:12:40]line СНО: Общий режим [22:12:40]line Чек 367 14.04.2024 22:12 [22:12:40]line Смена: 357 ФФД: 1.0 [22:12:40]line ЗНМ: 0300000138 [22:12:40]line РНМ: 0000000000094237 [22:12:40]line Версия ККМ: 001 [22:12:40]line ФМ: 0000000000875019 [22:12:40]line ФД: 112468 [22:12:40]line ФПД: 70733648495599 [22:12:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T221239&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112468&fm=70733648495599&tin=02508201610067®Number=0000000000094237&sum=40000 [22:12:40]OFD Sender: Processing packet 112468 [packets to send 71, broken 70] [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00112468 [22:12:40]OFD Sender: To server: pG, [22:12:40]CommunicateWithHost lk.salyk.kg:30040 [22:12:40]ConnectInit lk.salyk.kg [22:12:40]written 0, free lines is 4095 [22:12:40]Connected sock=10 [22:12:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EE DA 07 01 01 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 6F 01 00 00 F4 03 04 00 D7 54 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B7 01 00 35 04 06 00 40 54 F5 FE 03 EF F5 5A F7 B5 2B 9F B7 3E [22:12:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 98 53 47 00 DA BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 54 B7 01 00 F4 03 04 00 61 FC 1B 66 B6 04 01 00 00 4C AC E2 AB AF 16 8F 43 [22:12:40]CommunicateWithHost err = 0 [22:12:40]CheckOFDResponse [22:12:40]1017 (14) - 77093643461234 [22:12:40]1041 (16) - 0000000000875019 [22:12:40]1040 (4) - 112468 [22:12:40]1012 (4) - 14.04.2024 15:55 [22:12:40]1206 (1) - 0 [22:12:40]OFD Sender: Remove packet 112468 [22:12:40]ProducePacketName [22:12:40]name=ofd_packets/00112468 [22:12:40]NVStorageDeleteData [22:12:40]Write to MH i2c: 01 00 00 B0 02 B2 [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: 01 07 00 B0 02 00 00 00 00 00 EA 0C AF [22:12:40]RasterBufferAndPrint [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]line [22:12:40]written 0, free lines is 3312 [22:12:40]MH_Cut [22:12:40]Write to MH i2c: D1 01 00 B7 02 01 8B [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 [22:12:40]MH_I2C_Read... [22:12:40]Read from MH i2c: D1 01 00 B7 02 00 8A [22:12:40]Write to MH i2c: 01 00 00 B8 02 BA [22:12:40]Write i2c OK [22:12:40]MH_I2C_Read... [22:12:41]OFD Sender: No OFD packet to send [22:12:41]*** Cut start [22:12:41]*** Partial cut [22:12:41]*** CUTSNS_PIN = 1 [22:12:41]*** CUTSNS_PIN = 0 [22:12:41]*** Brake cut motor [22:12:42]Read from MH i2c: 01 [22:12:42]MH_I2C_Read... [22:12:42]*** Stop cut motor [22:12:42]*** Cut end [22:12:42]Read from MH i2c: 01 07 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: 01 07 00 B8 02 00 00 00 00 00 FF 0F CF [22:12:42]process_action close_receipt done [22:12:42]requested_data is exist [22:12:42]produce_requested_data [22:12:42]requested_item fm.sn is exist - process it [22:12:42]wFMCommunicate request_size=4 [22:12:42]MH_SAM_APDU [22:12:42]CAPDU: 80 11 00 00 [22:12:42]Write to MH i2c: E2 08 00 B9 02 80 11 00 00 00 00 00 00 35 [22:12:42]Write i2c OK [22:12:42]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 17 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 17 00 B9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 86 [22:12:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:12:42]wFMCommunicate OK [22:12:42]requested_item fd.num is exist - process it [22:12:42]SAM_PROTO_GetFieldsCounters [22:12:42]wFMCommunicate request_size=4 [22:12:42]MH_SAM_APDU [22:12:42]CAPDU: 80 13 00 00 [22:12:42]Write to MH i2c: E2 08 00 BA 02 80 13 00 00 00 00 00 00 38 [22:12:42]Write i2c OK [22:12:42]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 62 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 62 00 BA 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 54 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 19 [22:12:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 54 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:42]wFMCommunicate OK [22:12:42]SAM_PROTO_GetFieldsCounters done [22:12:42]requested_item shift.num is exist - process it [22:12:42]requested_item shift.opened is exist - process it [22:12:42]req_shift_opened [22:12:42]FM_GetShiftState [22:12:42]SAM_PROTO_GetShiftState [22:12:42]wFMCommunicate request_size=4 [22:12:42]MH_SAM_APDU [22:12:42]CAPDU: 80 13 01 00 [22:12:42]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [22:12:42]Write i2c OK [22:12:42]MH_I2C_Read... [22:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:42]Read from MH i2c: E2 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 [22:12:42]MH_I2C_Read... [22:12:42]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D2 [22:12:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:12:42]wFMCommunicate OK [22:12:42]SAM_PROTO_GetShiftState done [22:12:42]FM_GetShiftState done [22:12:42]req_shift_opened done [22:12:42]requested_item shift.open_date is exist - process it [22:12:42]req_shift_open_date [22:12:42]req_shift_open_date done [22:12:42]produce_requested_data done [22:12:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112468,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:12:42]process_action_free close_receipt [22:12:42]json_value_free [22:12:42]json_value_free done [22:12:42]process_json_proto returns [22:12:42]Send response to host [22:12:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112468,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:12:42]free response buf [22:12:42]execute_script done [22:12:42]execute_script returns [22:12:42]free content buf [22:12:42]Sock 9.Close socket [22:12:42]Sock 9.Thread stoped [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:16]OFD Sender: No OFD packet to send [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [22:17:16]OFD Sender: No OFD packet to send [22:17:21]OFD Sender: No OFD packet to send [22:17:26]OFD Sender: No OFD packet to send [22:17:31]OFD Sender: No OFD packet to send [22:17:36]OFD Sender: No OFD packet to send [22:17:41]OFD Sender: No OFD packet to send [22:17:46]OFD Sender: No OFD packet to send [22:17:51]OFD Sender: No OFD packet to send [22:17:56]OFD Sender: No OFD packet to send [22:18:01]OFD Sender: No OFD packet to send [22:18:06]OFD Sender: No OFD packet to send [22:18:11]OFD Sender: No OFD packet to send [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:06]OFD Sender: No OFD packet to send [22:21:11]OFD Sender: No OFD packet to send [22:21:16]OFD Sender: No OFD packet to send [22:21:21]OFD Sender: No OFD packet to send [22:21:26]OFD Sender: No OFD packet to send [22:21:31]OFD Sender: No OFD packet to send [22:21:36]OFD Sender: No OFD packet to send [22:21:41]OFD Sender: No OFD packet to send [22:21:46]OFD Sender: No OFD packet to send [22:21:49]accept exits with 7 [22:21:49]New connection [22:21:49]New thread 3067174244 created [22:21:49]Thread 3067317604 joined [22:21:49]Waiting for new connection... [22:21:49] Sock 7.Parse request [22:21:49]Sock 7.Check first char [22:21:49]Sock 7.First char is OK [22:21:49]request: POST /json_proto HTTP/1.0 [22:21:49]Method: POST [22:21:49]URL: /json_proto [22:21:49]Method is POST - this is cgi request [22:21:49]url: /json_proto [22:21:49]query_string will be loaded in cgi processing [22:21:49]execute_cgi json_proto POST (null) [22:21:49]execute_cgi path=json_proto method=POST [22:21:49]POST find Content-Length [22:21:49]Host: 172.17.96.197:8080 [22:21:49]Content-Length: 796 [22:21:49]Content-Type: application/json [22:21:49] [22:21:49]POST finish read [22:21:49]Found Content-Length = 796 [22:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10453", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:49]execute_script... [22:21:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10453", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:49]POST & json_proto [22:21:49]process_json_proto [22:21:49]json parsed OK: [22:21:49]protocol is kg_v1.0 [22:21:49]action value=close_receipt [22:21:49]process_action close_receipt [22:21:49]cmd_close_receipt [22:21:49]MH_GetDate [22:21:49]Write to MH i2c: F0 00 00 BC 02 AD [22:21:49]Write i2c OK [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: F0 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: F0 09 00 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: F0 09 00 BC 02 00 FE 56 1C 66 E0 85 7F 64 D4 [22:21:49]GetLastDocTimeStamp 1713132759 [22:21:49]current date 1713133310 [22:21:49]FM_GetShiftState [22:21:49]SAM_PROTO_GetShiftState [22:21:49]wFMCommunicate request_size=4 [22:21:49]MH_SAM_APDU [22:21:49]CAPDU: 80 13 01 00 [22:21:49]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [22:21:49]Write i2c OK [22:21:49]MH_I2C_Read... [22:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:49]Read from MH i2c: E2 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: E2 0E 00 [22:21:49]MH_I2C_Read... [22:21:49]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D4 [22:21:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:21:49]wFMCommunicate OK [22:21:49]SAM_PROTO_GetShiftState done [22:21:49]FM_GetShiftState done [22:21:49]opened in 1713054696 [22:21:49]opened+sec_in_day 1713141096 [22:21:49]quantity*price = 13000 [22:21:49]sum+1 = 13001 [22:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 368 14.04.2024 22:21 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112469 ФПД: 147356996580208 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112469&fm=147356996580208&tin=02508201610067®Number=0000000000094237&sum=13000 0 [22:21:50]StoreToDocumentArchive [22:21:50]shift 357 fd 112469 [22:21:50]save to /storage/0357/doc_00112469 [22:21:50]save last doc name /storage/0357/doc_00112469 to /storage/kkm_last_doc_name [22:21:50]save OK [22:21:50]Clear old archive folders... [22:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=272 [22:21:50]tlvbuf is 019D4930 [22:21:50]SAM_PROTO_ClearQueue [22:21:50]wFMCommunicate request_size=4 [22:21:50]MH_SAM_APDU [22:21:50]CAPDU: 80 09 00 00 [22:21:50]Write to MH i2c: E2 08 00 CA 02 80 09 00 00 00 00 00 00 3E [22:21:50]Write i2c OK [22:21:50]MH_I2C_Read... [22:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:50]Read from MH i2c: E2 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 03 00 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [22:21:50]RAPDU: 90 00 [22:21:50]wFMCommunicate OK [22:21:50]SAM_PROTO_ClearQueue done [22:21:50]KKMCreateOFDPacket [22:21:50]OFDProtocolAddRootSTLVToBuf [22:21:50]FM_MakeSignedData [22:21:50]FM_MakeSignedData [22:21:50]SAM_PROTO_SignData [22:21:50]wFMCommunicate request_size=4 [22:21:50]MH_SAM_APDU [22:21:50]CAPDU: 80 0D 01 02 [22:21:50]Write to MH i2c: E2 08 00 CB 02 80 0D 01 02 00 00 00 00 46 [22:21:50]Write i2c OK [22:21:50]MH_I2C_Read... [22:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:50]Read from MH i2c: E2 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 03 00 [22:21:50]MH_I2C_Read... [22:21:50]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [22:21:50]RAPDU: 90 00 [22:21:50]wFMCommunicate OK [22:21:50]wFMCommunicate request_size=255 [22:21:50]MH_SAM_APDU [22:21:50]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 FE 56 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [22:21:50]Write to MH i2c: E2 02 01 CC 02 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 FE 56 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 9C [22:21:50]Write i2c OK [22:21:50]MH_I2C_Read... [22:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:51]Read from MH i2c: E2 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 03 00 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [22:21:51]RAPDU: 90 00 [22:21:51]wFMCommunicate OK [22:21:51]wFMCommunicate request_size=31 [22:21:51]MH_SAM_APDU [22:21:51]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 55 B7 01 00 35 04 06 00 86 05 39 6F B3 70 [22:21:51]Write to MH i2c: E2 22 00 CD 02 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 55 B7 01 00 35 04 06 00 86 05 39 6F B3 70 00 00 D5 [22:21:51]Write i2c OK [22:21:51]MH_I2C_Read... [22:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:51]Read from MH i2c: E2 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 03 00 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [22:21:51]RAPDU: 90 00 [22:21:51]wFMCommunicate OK [22:21:51]wFMCommunicate request_size=4 [22:21:51]MH_SAM_APDU [22:21:51]CAPDU: 80 0D 03 02 [22:21:51]Write to MH i2c: E2 08 00 CE 02 80 0D 03 02 00 00 00 00 4B [22:21:51]Write i2c OK [22:21:51]MH_I2C_Read... [22:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:51]Read from MH i2c: E2 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 0B 00 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 0B 00 CE 02 00 1F 48 97 6D BD 5D 10 AC 90 00 8D [22:21:51]RAPDU: 1F 48 97 6D BD 5D 10 AC 90 00 [22:21:51]wFMCommunicate OK [22:21:51]SAM_PROTO_SignData done [22:21:51]FM_MakeSignedData done [22:21:51]CreateOFDProtocolMessage [22:21:51]wFMCommunicate request_size=4 [22:21:51]MH_SAM_APDU [22:21:51]CAPDU: 80 11 00 00 [22:21:51]Write to MH i2c: E2 08 00 CF 02 80 11 00 00 00 00 00 00 4B [22:21:51]Write i2c OK [22:21:51]MH_I2C_Read... [22:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:51]Read from MH i2c: E2 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 17 00 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: E2 17 00 CF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9C [22:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:21:51]wFMCommunicate OK [22:21:51]CreateOFDProtocolMessage done [22:21:51]OFDSenderStorePacket 112469 [22:21:51]StoreOFDPacket docnum=112469 [22:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 E3 87 1C 01 69 D2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 FE 56 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B7 01 00 35 04 06 00 86 05 39 6F B3 70 1F 48 97 6D BD 5D 10 AC [22:21:51]CheckFolder [22:21:51]dirname=/storage/ofd_packets [22:21:51]CheckFolder done [22:21:51]ProducePacketName [22:21:51]name=ofd_packets/00112469 [22:21:51]NVStorageSaveData ofd_packets/00112469 [22:21:51]File name is /storage/ofd_packets/00112469 [22:21:51]Write 322 bytes [22:21:51]NVStorageSaveData done [22:21:51]OFDSenderStorePacket done [22:21:51]KKMCreateOFDPacket done [22:21:51]NVStorageSaveData kkm_last_timestamp [22:21:51]File name is /storage/kkm_last_timestamp [22:21:51]Write 4 bytes [22:21:51]NVStorageSaveData done [22:21:51]ExternCall_PrintAddStr [22:21:51]wPrintStart [22:21:51]Write to MH i2c: 01 00 00 D0 02 D2 [22:21:51]Write i2c OK [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: 01 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: 01 07 00 [22:21:51]MH_I2C_Read... [22:21:51]Read from MH i2c: 01 07 00 D0 02 00 00 00 00 00 FF 0F E7 [22:21:51]RasterBufferAndPrint [22:21:51]line Счет N : (3)10453 [22:21:51]line ИНН: 02508201610067 [22:21:51]line Контрольно-Кассовый Чек [22:21:51]line ПРОДАЖА [22:21:51]line Товар: 48745000 [22:21:51]line Сигареты Winston Purple Mix [22:21:51]line 1.000 * 130.00 [22:21:51]line = 130.00 [22:21:51]line НДС 12% НСП 1% [22:21:51]line > о реализуемом товаре [22:21:51]line ИТОГО: 130.00 [22:21:51]line НСП 1% : 1.15 [22:21:51]line НДС 12% : 13.80 [22:21:51]line Наличными: 0.00 [22:21:51]line Безнал.: 130.00 [22:21:51]line Место: АЗС № 47 "Партнер Нефть" [22:21:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:21:51]line СНО: Общий режим [22:21:51]line Чек 368 14.04.2024 22:21 [22:21:51]line Смена: 357 ФФД: 1.0 [22:21:51]line ЗНМ: 0300000138 [22:21:51]line РНМ: 0000000000094237 [22:21:51]line Версия ККМ: 001 [22:21:51]line Платежная система: Бакай Банк [22:21:51]line ФМ: 0000000000875019 [22:21:51]line ФД: 112469 [22:21:51]line ФПД: 147356996580208 [22:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222150&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112469&fm=147356996580208&tin=02508201610067®Number=0000000000094237&sum=13000 [22:21:51]line 0 [22:21:51]OFD Sender: Processing packet 112469 [packets to send 71, broken 70] [22:21:51]ProducePacketName [22:21:51]name=ofd_packets/00112469 [22:21:51]OFD Sender: To server: pG, [22:21:51]CommunicateWithHost lk.salyk.kg:30040 [22:21:51]ConnectInit lk.salyk.kg [22:21:51]written 0, free lines is 4095 [22:21:51]Connected sock=10 [22:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 E3 87 1C 01 69 D2 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 FE 56 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B7 01 00 35 04 06 00 86 05 39 6F B3 70 1F 48 97 6D BD 5D 10 AC [22:21:52]Write to MH i2c: 01 00 00 FA 02 FC [22:21:52]Write i2c OK [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: 01 07 00 FA 02 00 00 00 00 00 DF 0C EE [22:21:52]RasterBufferAndPrint [22:21:52]line [22:21:52]line [22:21:52]line [22:21:52]line [22:21:52]line [22:21:52]written 0, free lines is 3301 [22:21:52]MH_Cut [22:21:52]Write to MH i2c: D1 01 00 01 03 01 D6 [22:21:52]Write i2c OK [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: D1 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: D1 01 00 [22:21:52]MH_I2C_Read... [22:21:52]Read from MH i2c: D1 01 00 01 03 00 D5 [22:21:52]Write to MH i2c: 01 00 00 02 03 05 [22:21:52]Write i2c OK [22:21:52]MH_I2C_Read... [22:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 FD 82 47 00 6F 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 55 B7 01 00 F4 03 04 00 88 FE 1B 66 B6 04 01 00 00 50 66 2E E0 B3 F1 6C B1 [22:21:52]CommunicateWithHost err = 0 [22:21:52]CheckOFDResponse [22:21:52]1017 (14) - 77093643461234 [22:21:52]1041 (16) - 0000000000875019 [22:21:52]1040 (4) - 112469 [22:21:52]1012 (4) - 14.04.2024 16:04 [22:21:52]1206 (1) - 0 [22:21:52]OFD Sender: Remove packet 112469 [22:21:52]ProducePacketName [22:21:52]name=ofd_packets/00112469 [22:21:52]NVStorageDeleteData [22:21:52]OFD Sender: No OFD packet to send [22:21:52]*** Cut start [22:21:52]*** Partial cut [22:21:52]*** CUTSNS_PIN = 1 [22:21:52]*** CUTSNS_PIN = 0 [22:21:53]*** Brake cut motor [22:21:53]Read from MH i2c: 01 [22:21:53]MH_I2C_Read... [22:21:53]*** Stop cut motor [22:21:53]*** Cut end [22:21:53]Read from MH i2c: 01 07 00 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: 01 07 00 02 03 00 00 00 00 00 FF 0F 1A [22:21:53]process_action close_receipt done [22:21:53]requested_data is exist [22:21:53]produce_requested_data [22:21:53]requested_item fm.sn is exist - process it [22:21:53]wFMCommunicate request_size=4 [22:21:53]MH_SAM_APDU [22:21:53]CAPDU: 80 11 00 00 [22:21:53]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [22:21:53]Write i2c OK [22:21:53]MH_I2C_Read... [22:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:53]Read from MH i2c: E2 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 17 00 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D1 [22:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:21:53]wFMCommunicate OK [22:21:53]requested_item fd.num is exist - process it [22:21:53]SAM_PROTO_GetFieldsCounters [22:21:53]wFMCommunicate request_size=4 [22:21:53]MH_SAM_APDU [22:21:53]CAPDU: 80 13 00 00 [22:21:53]Write to MH i2c: E2 08 00 04 03 80 13 00 00 00 00 00 00 83 [22:21:53]Write i2c OK [22:21:53]MH_I2C_Read... [22:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:53]Read from MH i2c: E2 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 62 00 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 62 00 04 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 55 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [22:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 55 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:21:53]wFMCommunicate OK [22:21:53]SAM_PROTO_GetFieldsCounters done [22:21:53]requested_item shift.num is exist - process it [22:21:53]requested_item shift.opened is exist - process it [22:21:53]req_shift_opened [22:21:53]FM_GetShiftState [22:21:53]SAM_PROTO_GetShiftState [22:21:53]wFMCommunicate request_size=4 [22:21:53]MH_SAM_APDU [22:21:53]CAPDU: 80 13 01 00 [22:21:53]Write to MH i2c: E2 08 00 05 03 80 13 01 00 00 00 00 00 85 [22:21:53]Write i2c OK [22:21:53]MH_I2C_Read... [22:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:53]Read from MH i2c: E2 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 0E 00 [22:21:53]MH_I2C_Read... [22:21:53]Read from MH i2c: E2 0E 00 05 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1D [22:21:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:21:53]wFMCommunicate OK [22:21:53]SAM_PROTO_GetShiftState done [22:21:53]FM_GetShiftState done [22:21:53]req_shift_opened done [22:21:53]requested_item shift.open_date is exist - process it [22:21:53]req_shift_open_date [22:21:53]req_shift_open_date done [22:21:53]produce_requested_data done [22:21:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112469,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:21:53]process_action_free close_receipt [22:21:53]json_value_free [22:21:53]json_value_free done [22:21:53]process_json_proto returns [22:21:53]Send response to host [22:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112469,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:21:53]free response buf [22:21:53]execute_script done [22:21:53]execute_script returns [22:21:53]free content buf [22:21:53]Sock 7.Close socket [22:21:53]Sock 7.Thread stoped [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]accept exits with 9 [22:23:12]New connection [22:23:12]New thread 3067317604 created [22:23:12]Thread 3067174244 joined [22:23:12]Waiting for new connection... [22:23:12] Sock 9.Parse request [22:23:12]Sock 9.Check first char [22:23:12]Sock 9.First char is OK [22:23:12]request: POST /json_proto HTTP/1.0 [22:23:12]Method: POST [22:23:12]URL: /json_proto [22:23:12]Method is POST - this is cgi request [22:23:12]url: /json_proto [22:23:12]query_string will be loaded in cgi processing [22:23:12]execute_cgi json_proto POST (null) [22:23:12]execute_cgi path=json_proto method=POST [22:23:12]POST find Content-Length [22:23:12]Host: 172.17.96.197:8080 [22:23:12]Content-Length: 665 [22:23:12]Content-Type: application/json [22:23:12] [22:23:12]POST finish read [22:23:12]Found Content-Length = 665 [22:23:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 56.850, "sum" : 1859.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:12]execute_script... [22:23: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)48761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 56.850, "sum" : 1859.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "payments": [ { "type": 0, "sum" : 1859.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:23:12]POST & json_proto [22:23:12]process_json_proto [22:23:12]json parsed OK: [22:23:12]protocol is kg_v1.0 [22:23:12]action value=close_receipt [22:23:12]process_action close_receipt [22:23:12]cmd_close_receipt [22:23:12]MH_GetDate [22:23:12]Write to MH i2c: F0 00 00 06 03 F8 [22:23:12]Write i2c OK [22:23:12]MH_I2C_Read... [22:23:12]Read from MH i2c: F0 [22:23:12]MH_I2C_Read... [22:23:12]Read from MH i2c: F0 09 00 [22:23:12]MH_I2C_Read... [22:23:12]Read from MH i2c: F0 09 00 06 03 00 51 57 1C 66 E0 85 7F 64 73 [22:23:12]GetLastDocTimeStamp 1713133310 [22:23:12]current date 1713133393 [22:23:12]FM_GetShiftState [22:23:12]SAM_PROTO_GetShiftState [22:23:12]wFMCommunicate request_size=4 [22:23:12]MH_SAM_APDU [22:23:12]CAPDU: 80 13 01 00 [22:23:12]Write to MH i2c: E2 08 00 07 03 80 13 01 00 00 00 00 00 87 [22:23:12]Write i2c OK [22:23:12]MH_I2C_Read... [22:23:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:12]Read from MH i2c: E2 [22:23:12]MH_I2C_Read... [22:23:12]Read from MH i2c: E2 0E 00 [22:23:12]MH_I2C_Read... [22:23:12]Read from MH i2c: E2 0E 00 07 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1F [22:23:12]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:23:12]wFMCommunicate OK [22:23:12]SAM_PROTO_GetShiftState done [22:23:12]FM_GetShiftState done [22:23:12]opened in 1713054696 [22:23:12]opened+sec_in_day 1713141096 [22:23:12]quantity*price = 185899 [22:23:12]sum+1 = 185901 [22:23:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1859.00 Внесено: 2500.00 СДАЧА: 641.00 НСП 1% : 16.45 НДС 12% : 197.42 Наличными: 1859.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 369 14.04.2024 22:23 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112470 ФПД: 13688251735179 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222313&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112470&fm=13688251735179&tin=02508201610067®Number=0000000000094237&sum=185900 [22:23:13]StoreToDocumentArchive [22:23:13]shift 357 fd 112470 [22:23:13]save to /storage/0357/doc_00112470 [22:23:13]save last doc name /storage/0357/doc_00112470 to /storage/kkm_last_doc_name [22:23:13]save OK [22:23:13]Clear old archive folders... [22:23:13]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:23:13]tlvbuf is 019D4850 [22:23:13]SAM_PROTO_ClearQueue [22:23:13]wFMCommunicate request_size=4 [22:23:13]MH_SAM_APDU [22:23:13]CAPDU: 80 09 00 00 [22:23:13]Write to MH i2c: E2 08 00 14 03 80 09 00 00 00 00 00 00 89 [22:23:13]Write i2c OK [22:23:13]MH_I2C_Read... [22:23:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:23:13]Read from MH i2c: E2 [22:23:13]MH_I2C_Read... [22:23:13]Read from MH i2c: E2 03 00 [22:23:13]MH_I2C_Read... [22:23:13]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [22:23:13]RAPDU: 90 00 [22:23:13]wFMCommunicate OK [22:23:13]SAM_PROTO_ClearQueue done [22:23:13]KKMCreateOFDPacket [22:23:13]OFDProtocolAddRootSTLVToBuf [22:23:13]FM_MakeSignedData [22:23:13]FM_MakeSignedData [22:23:13]SAM_PROTO_SignData [22:23:13]wFMCommunicate request_size=4 [22:23:13]MH_SAM_APDU [22:23:13]CAPDU: 80 0D 01 02 [22:23:13]Write to MH i2c: E2 08 00 15 03 80 0D 01 02 00 00 00 00 91 [22:23:13]Write i2c OK [22:23:13]MH_I2C_Read... [22:23:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:23:13]Read from MH i2c: E2 [22:23:13]MH_I2C_Read... [22:23:13]Read from MH i2c: E2 03 00 [22:23:13]MH_I2C_Read... [22:23:13]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [22:23:13]RAPDU: 90 00 [22:23:13]wFMCommunicate OK [22:23:13]wFMCommunicate request_size=255 [22:23:13]MH_SAM_APDU [22:23: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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 DE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 4D 00 00 00 00 07 04 06 00 2C D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 51 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B7 01 00 35 04 06 00 0C 73 [22:23:13]Write to MH i2c: E2 02 01 16 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 DE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 4D 00 00 00 00 07 04 06 00 2C D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 51 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B7 01 00 35 04 06 00 0C 73 00 00 7B [22:23:13]Write i2c OK [22:23:13]MH_I2C_Read... [22:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:14]Read from MH i2c: E2 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 03 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [22:23:14]RAPDU: 90 00 [22:23:14]wFMCommunicate OK [22:23:14]wFMCommunicate request_size=9 [22:23:14]MH_SAM_APDU [22:23:14]CAPDU: 80 0D 02 02 04 0B 61 DC 8B [22:23:14]Write to MH i2c: E2 0C 00 17 03 80 0D 02 02 04 00 0B 61 DC 8B 00 00 6F [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:23:14]Read from MH i2c: E2 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 03 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [22:23:14]RAPDU: 90 00 [22:23:14]wFMCommunicate OK [22:23:14]wFMCommunicate request_size=4 [22:23:14]MH_SAM_APDU [22:23:14]CAPDU: 80 0D 03 02 [22:23:14]Write to MH i2c: E2 08 00 18 03 80 0D 03 02 00 00 00 00 96 [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:23:14]Read from MH i2c: E2 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 0B 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 0B 00 18 03 00 67 57 B5 36 22 CC 72 7F 90 00 1F [22:23:14]RAPDU: 67 57 B5 36 22 CC 72 7F 90 00 [22:23:14]wFMCommunicate OK [22:23:14]SAM_PROTO_SignData done [22:23:14]FM_MakeSignedData done [22:23:14]CreateOFDProtocolMessage [22:23:14]wFMCommunicate request_size=4 [22:23:14]MH_SAM_APDU [22:23:14]CAPDU: 80 11 00 00 [22:23:14]Write to MH i2c: E2 08 00 19 03 80 11 00 00 00 00 00 00 96 [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:14]Read from MH i2c: E2 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 17 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: E2 17 00 19 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E7 [22:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:23:14]wFMCommunicate OK [22:23:14]CreateOFDProtocolMessage done [22:23:14]OFDSenderStorePacket 112470 [22:23:14]StoreOFDPacket docnum=112470 [22:23:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 04 25 06 01 5B 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 DE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 4D 00 00 00 00 07 04 06 00 2C D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 51 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B7 01 00 35 04 06 00 0C 73 0B 61 DC 8B 67 57 B5 36 22 CC 72 7F [22:23:14]CheckFolder [22:23:14]dirname=/storage/ofd_packets [22:23:14]CheckFolder done [22:23:14]ProducePacketName [22:23:14]name=ofd_packets/00112470 [22:23:14]NVStorageSaveData ofd_packets/00112470 [22:23:14]File name is /storage/ofd_packets/00112470 [22:23:14]Write 300 bytes [22:23:14]NVStorageSaveData done [22:23:14]OFDSenderStorePacket done [22:23:14]KKMCreateOFDPacket done [22:23:14]NVStorageSaveData kkm_last_timestamp [22:23:14]File name is /storage/kkm_last_timestamp [22:23:14]Write 4 bytes [22:23:14]NVStorageSaveData done [22:23:14]ExternCall_PrintAddStr [22:23:14]wPrintStart [22:23:14]Write to MH i2c: 01 00 00 1A 03 1D [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 07 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 07 00 1A 03 00 00 00 00 00 FF 0F 32 [22:23:14]RasterBufferAndPrint [22:23:14]line Счет N : (1)48761 [22:23:14]line ИНН: 02508201610067 [22:23:14]line Контрольно-Кассовый Чек [22:23:14]line ПРОДАЖА [22:23:14]line ТРК (МРК, ГНК) : 71 [22:23:14]line Товар: 2711190000 [22:23:14]line ГАЗ-К-5 [22:23:14]line 56.850 * 32.70 [22:23:14]line = 1859.00 [22:23:14]line НДС 12% НСП 1% [22:23:14]line > о реализуемом товаре [22:23:14]line ИТОГО: 1859.00 [22:23:14]line Внесено: 2500.00 [22:23:14]line СДАЧА: 641.00 [22:23:14]line НСП 1% : 16.45 [22:23:14]line НДС 12% : 197.42 [22:23:14]line Наличными: 1859.00 [22:23:14]line Безнал.: 0.00 [22:23:14]line Место: АЗС № 47 "Партнер Нефть" [22:23:14]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:23:14]line СНО: Общий режим [22:23:14]line Чек 369 14.04.2024 22:23 [22:23:14]line Смена: 357 ФФД: 1.0 [22:23:14]line ЗНМ: 0300000138 [22:23:14]line РНМ: 0000000000094237 [22:23:14]line Версия ККМ: 001 [22:23:14]line ФМ: 0000000000875019 [22:23:14]line ФД: 112470 [22:23:14]line ФПД: 13688251735179 [22:23:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222313&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112470&fm=13688251735179&tin=02508201610067®Number=0000000000094237&sum=185900 [22:23:14]written 0, free lines is 4095 [22:23:14]OFD Sender: Processing packet 112470 [packets to send 71, broken 70] [22:23:14]ProducePacketName [22:23:14]name=ofd_packets/00112470 [22:23:14]OFD Sender: To server: pG, [22:23:14]CommunicateWithHost lk.salyk.kg:30040 [22:23:14]ConnectInit lk.salyk.kg [22:23:14]Connected sock=10 [22:23:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 04 25 06 01 5B 3A 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 12 DE 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 2C D6 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C D6 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 4D 00 00 00 00 07 04 06 00 2C D6 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 51 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B7 01 00 35 04 06 00 0C 73 0B 61 DC 8B 67 57 B5 36 22 CC 72 7F [22:23:14]Write to MH i2c: 01 00 00 44 03 47 [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 07 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: 01 07 00 44 03 00 00 00 00 00 EC 0C 46 [22:23:14]RasterBufferAndPrint [22:23:14]line [22:23:14]line [22:23:14]line [22:23:14]line [22:23:14]line [22:23:14]written 0, free lines is 3314 [22:23:14]MH_Cut [22:23:14]Write to MH i2c: D1 01 00 4B 03 01 20 [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: D1 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: D1 01 00 [22:23:14]MH_I2C_Read... [22:23:14]Read from MH i2c: D1 01 00 4B 03 00 1F [22:23:14]Write to MH i2c: 01 00 00 4C 03 4F [22:23:14]Write i2c OK [22:23:14]MH_I2C_Read... [22:23:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5A 7A 47 00 29 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 56 B7 01 00 F4 03 04 00 DB FE 1B 66 B6 04 01 00 00 A1 9E B4 BD CE 24 8B FB [22:23:14]CommunicateWithHost err = 0 [22:23:14]CheckOFDResponse [22:23:14]1017 (14) - 77093643461234 [22:23:14]1041 (16) - 0000000000875019 [22:23:14]1040 (4) - 112470 [22:23:14]1012 (4) - 14.04.2024 16:05 [22:23:14]1206 (1) - 0 [22:23:14]OFD Sender: Remove packet 112470 [22:23:14]ProducePacketName [22:23:14]name=ofd_packets/00112470 [22:23:14]NVStorageDeleteData [22:23:15]OFD Sender: No OFD packet to send [22:23:15]*** Cut start [22:23:15]*** Partial cut [22:23:15]*** CUTSNS_PIN = 1 [22:23:15]*** CUTSNS_PIN = 0 [22:23:15]*** Brake cut motor [22:23:15]Read from MH i2c: 01 [22:23:15]MH_I2C_Read... [22:23:16]*** Stop cut motor [22:23:16]*** Cut end [22:23:16]Read from MH i2c: 01 07 00 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: 01 07 00 4C 03 00 00 00 00 00 FF 0F 64 [22:23:16]process_action close_receipt done [22:23:16]requested_data is exist [22:23:16]produce_requested_data [22:23:16]requested_item fm.sn is exist - process it [22:23:16]wFMCommunicate request_size=4 [22:23:16]MH_SAM_APDU [22:23:16]CAPDU: 80 11 00 00 [22:23:16]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [22:23:16]Write i2c OK [22:23:16]MH_I2C_Read... [22:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:23:16]Read from MH i2c: E2 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 17 00 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1B [22:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:23:16]wFMCommunicate OK [22:23:16]requested_item fd.num is exist - process it [22:23:16]SAM_PROTO_GetFieldsCounters [22:23:16]wFMCommunicate request_size=4 [22:23:16]MH_SAM_APDU [22:23:16]CAPDU: 80 13 00 00 [22:23:16]Write to MH i2c: E2 08 00 4E 03 80 13 00 00 00 00 00 00 CD [22:23:16]Write i2c OK [22:23:16]MH_I2C_Read... [22:23:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:23:16]Read from MH i2c: E2 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 62 00 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 62 00 4E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 56 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [22:23:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 56 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:23:16]wFMCommunicate OK [22:23:16]SAM_PROTO_GetFieldsCounters done [22:23:16]requested_item shift.num is exist - process it [22:23:16]requested_item shift.opened is exist - process it [22:23:16]req_shift_opened [22:23:16]FM_GetShiftState [22:23:16]SAM_PROTO_GetShiftState [22:23:16]wFMCommunicate request_size=4 [22:23:16]MH_SAM_APDU [22:23:16]CAPDU: 80 13 01 00 [22:23:16]Write to MH i2c: E2 08 00 4F 03 80 13 01 00 00 00 00 00 CF [22:23:16]Write i2c OK [22:23:16]MH_I2C_Read... [22:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:23:16]Read from MH i2c: E2 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 0E 00 [22:23:16]MH_I2C_Read... [22:23:16]Read from MH i2c: E2 0E 00 4F 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 67 [22:23:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:23:16]wFMCommunicate OK [22:23:16]SAM_PROTO_GetShiftState done [22:23:16]FM_GetShiftState done [22:23:16]req_shift_opened done [22:23:16]requested_item shift.open_date is exist - process it [22:23:16]req_shift_open_date [22:23:16]req_shift_open_date done [22:23:16]produce_requested_data done [22:23:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112470,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:23:16]process_action_free close_receipt [22:23:16]json_value_free [22:23:16]json_value_free done [22:23:16]process_json_proto returns [22:23:16]Send response to host [22:23:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112470,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:23:16]free response buf [22:23:16]execute_script done [22:23:16]execute_script returns [22:23:16]free content buf [22:23:16]Sock 9.Close socket [22:23:16]Sock 9.Thread stoped [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:23]accept exits with 7 [22:24:23]New connection [22:24:23]New thread 3067174244 created [22:24:23]Thread 3067317604 joined [22:24:23]Waiting for new connection... [22:24:23] Sock 7.Parse request [22:24:23]Sock 7.Check first char [22:24:23]Sock 7.First char is OK [22:24:23]request: POST /json_proto HTTP/1.0 [22:24:23]Method: POST [22:24:23]URL: /json_proto [22:24:23]Method is POST - this is cgi request [22:24:23]url: /json_proto [22:24:23]query_string will be loaded in cgi processing [22:24:23]execute_cgi json_proto POST (null) [22:24:23]execute_cgi path=json_proto method=POST [22:24:23]POST find Content-Length [22:24:23]Host: 172.17.96.197:8080 [22:24:23]Content-Length: 674 [22:24:23]Content-Type: application/json [22:24:23] [22:24:23]POST finish read [22:24:23]Found Content-Length = 674 [22:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10454", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:23]execute_script... [22:24:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10454", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:24:23]POST & json_proto [22:24:23]process_json_proto [22:24:23]json parsed OK: [22:24:23]protocol is kg_v1.0 [22:24:23]action value=close_receipt [22:24:23]process_action close_receipt [22:24:23]cmd_close_receipt [22:24:23]MH_GetDate [22:24:23]Write to MH i2c: F0 00 00 50 03 42 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: F0 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: F0 09 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: F0 09 00 50 03 00 98 57 1C 66 E0 85 7F 64 04 [22:24:23]GetLastDocTimeStamp 1713133393 [22:24:23]current date 1713133464 [22:24:23]FM_GetShiftState [22:24:23]SAM_PROTO_GetShiftState [22:24:23]wFMCommunicate request_size=4 [22:24:23]MH_SAM_APDU [22:24:23]CAPDU: 80 13 01 00 [22:24:23]Write to MH i2c: E2 08 00 51 03 80 13 01 00 00 00 00 00 D1 [22:24:23]Write i2c OK [22:24:23]MH_I2C_Read... [22:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:23]Read from MH i2c: E2 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 0E 00 [22:24:23]MH_I2C_Read... [22:24:23]Read from MH i2c: E2 0E 00 51 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 69 [22:24:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:24:23]wFMCommunicate OK [22:24:23]SAM_PROTO_GetShiftState done [22:24:23]FM_GetShiftState done [22:24:23]opened in 1713054696 [22:24:23]opened+sec_in_day 1713141096 [22:24:23]quantity*price = 2100 [22:24:23]sum+1 = 2101 [22:24:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 370 14.04.2024 22:24 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112471 ФПД: 160928503586137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222424&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112471&fm=160928503586137&tin=02508201610067®Number=0000000000094237&sum=2100 0 [22:24:24]StoreToDocumentArchive [22:24:24]shift 357 fd 112471 [22:24:24]save to /storage/0357/doc_00112471 [22:24:24]save last doc name /storage/0357/doc_00112471 to /storage/kkm_last_doc_name [22:24:24]save OK [22:24:24]Clear old archive folders... [22:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=287 [22:24:24]tlvbuf is 01A02820 [22:24:24]SAM_PROTO_ClearQueue [22:24:24]wFMCommunicate request_size=4 [22:24:24]MH_SAM_APDU [22:24:24]CAPDU: 80 09 00 00 [22:24:24]Write to MH i2c: E2 08 00 5E 03 80 09 00 00 00 00 00 00 D3 [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:24:24]Read from MH i2c: E2 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: E2 03 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [22:24:24]RAPDU: 90 00 [22:24:24]wFMCommunicate OK [22:24:24]SAM_PROTO_ClearQueue done [22:24:24]KKMCreateOFDPacket [22:24:24]OFDProtocolAddRootSTLVToBuf [22:24:24]FM_MakeSignedData [22:24:24]FM_MakeSignedData [22:24:24]SAM_PROTO_SignData [22:24:24]wFMCommunicate request_size=4 [22:24:24]MH_SAM_APDU [22:24:24]CAPDU: 80 0D 01 02 [22:24:24]Write to MH i2c: E2 08 00 5F 03 80 0D 01 02 00 00 00 00 DB [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:24:24]Read from MH i2c: E2 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: E2 03 00 [22:24:24]MH_I2C_Read... [22:24:24]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [22:24:24]RAPDU: 90 00 [22:24:24]wFMCommunicate OK [22:24:24]wFMCommunicate request_size=255 [22:24:24]MH_SAM_APDU [22:24:24]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 98 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 [22:24:24]Write to MH i2c: E2 02 01 60 03 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 98 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 00 00 57 [22:24:24]Write i2c OK [22:24:24]MH_I2C_Read... [22:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:25]Read from MH i2c: E2 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 03 00 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [22:24:25]RAPDU: 90 00 [22:24:25]wFMCommunicate OK [22:24:25]wFMCommunicate request_size=46 [22:24:25]MH_SAM_APDU [22:24:25]CAPDU: 80 0D 02 02 29 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B7 01 00 35 04 06 00 92 5D 16 4A 5D 59 [22:24:25]Write to MH i2c: E2 31 00 61 03 80 0D 02 02 29 00 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B7 01 00 35 04 06 00 92 5D 16 4A 5D 59 00 00 7A [22:24:25]Write i2c OK [22:24:25]MH_I2C_Read... [22:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:24:25]Read from MH i2c: E2 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 03 00 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 03 00 61 03 00 90 00 D8 [22:24:25]RAPDU: 90 00 [22:24:25]wFMCommunicate OK [22:24:25]wFMCommunicate request_size=4 [22:24:25]MH_SAM_APDU [22:24:25]CAPDU: 80 0D 03 02 [22:24:25]Write to MH i2c: E2 08 00 62 03 80 0D 03 02 00 00 00 00 E0 [22:24:25]Write i2c OK [22:24:25]MH_I2C_Read... [22:24:25]OFD Sender: No OFD packet to send [22:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:24:25]Read from MH i2c: E2 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 0B 00 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 0B 00 62 03 00 13 B0 F8 BC E7 AE F0 FB 90 00 D8 [22:24:25]RAPDU: 13 B0 F8 BC E7 AE F0 FB 90 00 [22:24:25]wFMCommunicate OK [22:24:25]SAM_PROTO_SignData done [22:24:25]FM_MakeSignedData done [22:24:25]CreateOFDProtocolMessage [22:24:25]wFMCommunicate request_size=4 [22:24:25]MH_SAM_APDU [22:24:25]CAPDU: 80 11 00 00 [22:24:25]Write to MH i2c: E2 08 00 63 03 80 11 00 00 00 00 00 00 E0 [22:24:25]Write i2c OK [22:24:25]MH_I2C_Read... [22:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:25]Read from MH i2c: E2 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 17 00 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: E2 17 00 63 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 31 [22:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:24:25]wFMCommunicate OK [22:24:25]CreateOFDProtocolMessage done [22:24:25]OFDSenderStorePacket 112471 [22:24:25]StoreOFDPacket docnum=112471 [22:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 33 01 00 00 8F 7E 2B 01 F5 20 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 98 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B7 01 00 35 04 06 00 92 5D 16 4A 5D 59 13 B0 F8 BC E7 AE F0 FB [22:24:25]CheckFolder [22:24:25]dirname=/storage/ofd_packets [22:24:25]CheckFolder done [22:24:25]ProducePacketName [22:24:25]name=ofd_packets/00112471 [22:24:25]NVStorageSaveData ofd_packets/00112471 [22:24:25]File name is /storage/ofd_packets/00112471 [22:24:25]Write 337 bytes [22:24:25]NVStorageSaveData done [22:24:25]OFDSenderStorePacket done [22:24:25]KKMCreateOFDPacket done [22:24:25]NVStorageSaveData kkm_last_timestamp [22:24:25]File name is /storage/kkm_last_timestamp [22:24:25]Write 4 bytes [22:24:25]NVStorageSaveData done [22:24:25]ExternCall_PrintAddStr [22:24:25]wPrintStart [22:24:25]Write to MH i2c: 01 00 00 64 03 67 [22:24:25]Write i2c OK [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: 01 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: 01 07 00 [22:24:25]MH_I2C_Read... [22:24:25]Read from MH i2c: 01 07 00 64 03 00 00 00 00 00 FF 0F 7C [22:24:25]RasterBufferAndPrint [22:24:25]line Счет N : (3)10454 [22:24:25]line ИНН: 02508201610067 [22:24:25]line Контрольно-Кассовый Чек [22:24:25]line ПРОДАЖА [22:24:25]line Товар: 2000053020015 [22:24:25]line Бумажные стаканы 250мл 1шт [22:24:25]line 3.000 * 7.00 [22:24:25]line = 21.00 [22:24:25]line НДС 12% НСП 1% [22:24:25]line > о реализуемом товаре [22:24:25]line ИТОГО: 21.00 [22:24:25]line НСП 1% : 0.19 [22:24:25]line НДС 12% : 2.23 [22:24:25]line Наличными: 21.00 [22:24:25]line Безнал.: 0.00 [22:24:25]line Место: АЗС № 47 "Партнер Нефть" [22:24:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:24:25]line СНО: Общий режим [22:24:25]line Чек 370 14.04.2024 22:24 [22:24:25]line Смена: 357 ФФД: 1.0 [22:24:25]line ЗНМ: 0300000138 [22:24:25]line РНМ: 0000000000094237 [22:24:25]line Версия ККМ: 001 [22:24:25]line ФМ: 0000000000875019 [22:24:25]line ФД: 112471 [22:24:25]line ФПД: 160928503586137 [22:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222424&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112471&fm=160928503586137&tin=02508201610067®Number=0000000000094237&sum=2100 [22:24:25]line 0 [22:24:25]OFD Sender: Processing packet 112471 [packets to send 71, broken 70] [22:24:25]ProducePacketName [22:24:25]name=ofd_packets/00112471 [22:24:25]OFD Sender: To server: pG, [22:24:25]CommunicateWithHost lk.salyk.kg:30040 [22:24:25]ConnectInit lk.salyk.kg [22:24:25]written 0, free lines is 4095 [22:24:25]Connected sock=10 [22:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 33 01 00 00 8F 7E 2B 01 F5 20 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 98 57 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B7 01 00 35 04 06 00 92 5D 16 4A 5D 59 13 B0 F8 BC E7 AE F0 FB [22:24:26]Write to MH i2c: 01 00 00 8D 03 90 [22:24:26]Write i2c OK [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: 01 [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: 01 07 00 [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 CC 0C 6F [22:24:26]RasterBufferAndPrint [22:24:26]line [22:24:26]line [22:24:26]line [22:24:26]line [22:24:26]line [22:24:26]written 0, free lines is 3282 [22:24:26]MH_Cut [22:24:26]Write to MH i2c: D1 01 00 94 03 01 69 [22:24:26]Write i2c OK [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: D1 [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: D1 01 00 [22:24:26]MH_I2C_Read... [22:24:26]Read from MH i2c: D1 01 00 94 03 00 68 [22:24:26]Write to MH i2c: 01 00 00 95 03 98 [22:24:26]Write i2c OK [22:24:26]MH_I2C_Read... [22:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 3A 6B 47 00 86 4F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 57 B7 01 00 F4 03 04 00 22 FF 1B 66 B6 04 01 00 00 20 F0 16 C7 51 7E A4 99 [22:24:26]CommunicateWithHost err = 0 [22:24:26]CheckOFDResponse [22:24:26]1017 (14) - 77093643461234 [22:24:26]1041 (16) - 0000000000875019 [22:24:26]1040 (4) - 112471 [22:24:26]1012 (4) - 14.04.2024 16:06 [22:24:26]1206 (1) - 0 [22:24:26]OFD Sender: Remove packet 112471 [22:24:26]ProducePacketName [22:24:26]name=ofd_packets/00112471 [22:24:26]NVStorageDeleteData [22:24:26]OFD Sender: No OFD packet to send [22:24:26]*** Cut start [22:24:26]*** Partial cut [22:24:26]*** CUTSNS_PIN = 1 [22:24:26]*** CUTSNS_PIN = 0 [22:24:27]*** Brake cut motor [22:24:27]Read from MH i2c: 01 [22:24:27]MH_I2C_Read... [22:24:27]*** Stop cut motor [22:24:27]*** Cut end [22:24:27]Read from MH i2c: 01 07 00 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [22:24:27]process_action close_receipt done [22:24:27]requested_data is exist [22:24:27]produce_requested_data [22:24:27]requested_item fm.sn is exist - process it [22:24:27]wFMCommunicate request_size=4 [22:24:27]MH_SAM_APDU [22:24:27]CAPDU: 80 11 00 00 [22:24:27]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [22:24:27]Write i2c OK [22:24:27]MH_I2C_Read... [22:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:24:27]Read from MH i2c: E2 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 17 00 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 64 [22:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:24:27]wFMCommunicate OK [22:24:27]requested_item fd.num is exist - process it [22:24:27]SAM_PROTO_GetFieldsCounters [22:24:27]wFMCommunicate request_size=4 [22:24:27]MH_SAM_APDU [22:24:27]CAPDU: 80 13 00 00 [22:24:27]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [22:24:27]Write i2c OK [22:24:27]MH_I2C_Read... [22:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:24:27]Read from MH i2c: E2 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 62 00 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 62 00 97 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 57 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [22:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 57 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:24:27]wFMCommunicate OK [22:24:27]SAM_PROTO_GetFieldsCounters done [22:24:27]requested_item shift.num is exist - process it [22:24:27]requested_item shift.opened is exist - process it [22:24:27]req_shift_opened [22:24:27]FM_GetShiftState [22:24:27]SAM_PROTO_GetShiftState [22:24:27]wFMCommunicate request_size=4 [22:24:27]MH_SAM_APDU [22:24:27]CAPDU: 80 13 01 00 [22:24:27]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [22:24:27]Write i2c OK [22:24:27]MH_I2C_Read... [22:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:24:27]Read from MH i2c: E2 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 0E 00 [22:24:27]MH_I2C_Read... [22:24:27]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B0 [22:24:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:24:27]wFMCommunicate OK [22:24:27]SAM_PROTO_GetShiftState done [22:24:27]FM_GetShiftState done [22:24:27]req_shift_opened done [22:24:27]requested_item shift.open_date is exist - process it [22:24:27]req_shift_open_date [22:24:27]req_shift_open_date done [22:24:27]produce_requested_data done [22:24:27]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112471,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:24:27]process_action_free close_receipt [22:24:27]json_value_free [22:24:27]json_value_free done [22:24:27]process_json_proto returns [22:24:27]Send response to host [22:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112471,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:24:27]free response buf [22:24:27]execute_script done [22:24:27]execute_script returns [22:24:27]free content buf [22:24:27]Sock 7.Close socket [22:24:27]Sock 7.Thread stoped [22:24:31]OFD Sender: No OFD packet to send [22:24:36]OFD Sender: No OFD packet to send [22:24:41]OFD Sender: No OFD packet to send [22:24:46]OFD Sender: No OFD packet to send [22:24:51]OFD Sender: No OFD packet to send [22:24:56]OFD Sender: No OFD packet to send [22:25:01]OFD Sender: No OFD packet to send [22:25:06]OFD Sender: No OFD packet to send [22:25:11]OFD Sender: No OFD packet to send [22:25:16]OFD Sender: No OFD packet to send [22:25:21]OFD Sender: No OFD packet to send [22:25:26]OFD Sender: No OFD packet to send [22:25:31]OFD Sender: No OFD packet to send [22:25:36]OFD Sender: No OFD packet to send [22:25:41]OFD Sender: No OFD packet to send [22:25:46]OFD Sender: No OFD packet to send [22:25:51]OFD Sender: No OFD packet to send [22:25:56]OFD Sender: No OFD packet to send [22:26:01]OFD Sender: No OFD packet to send [22:26:06]OFD Sender: No OFD packet to send [22:26:11]OFD Sender: No OFD packet to send [22:26:16]OFD Sender: No OFD packet to send [22:26:21]OFD Sender: No OFD packet to send [22:26:26]OFD Sender: No OFD packet to send [22:26:31]OFD Sender: No OFD packet to send [22:26:36]OFD Sender: No OFD packet to send [22:26:41]OFD Sender: No OFD packet to send [22:26:46]OFD Sender: No OFD packet to send [22:26:51]OFD Sender: No OFD packet to send [22:26:56]OFD Sender: No OFD packet to send [22:27:01]OFD Sender: No OFD packet to send [22:27:06]OFD Sender: No OFD packet to send [22:27:11]OFD Sender: No OFD packet to send [22:27:16]OFD Sender: No OFD packet to send [22:27:21]OFD Sender: No OFD packet to send [22:27:26]accept exits with 9 [22:27:26]New connection [22:27:26]New thread 3067317604 created [22:27:26]Thread 3067174244 joined [22:27:26]Waiting for new connection... [22:27:26] Sock 9.Parse request [22:27:26]Sock 9.Check first char [22:27:26]Sock 9.First char is OK [22:27:26]request: POST /json_proto HTTP/1.0 [22:27:26]Method: POST [22:27:26]URL: /json_proto [22:27:26]Method is POST - this is cgi request [22:27:26]url: /json_proto [22:27:26]query_string will be loaded in cgi processing [22:27:26]execute_cgi json_proto POST (null) [22:27:26]execute_cgi path=json_proto method=POST [22:27:26]POST find Content-Length [22:27:26]Host: 172.17.96.197:8080 [22:27:26]Content-Length: 678 [22:27:26]Content-Type: application/json [22:27:26] [22:27:26]POST finish read [22:27:26]Found Content-Length = 678 [22:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48762", "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.40, "quantity" : 69.070, "sum" : 5000.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:26]execute_script... [22:27: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)48762", "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.40, "quantity" : 69.070, "sum" : 5000.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:27:26]POST & json_proto [22:27:26]process_json_proto [22:27:26]json parsed OK: [22:27:26]protocol is kg_v1.0 [22:27:26]action value=close_receipt [22:27:26]process_action close_receipt [22:27:26]cmd_close_receipt [22:27:26]MH_GetDate [22:27:26]Write to MH i2c: F0 00 00 99 03 8B [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: F0 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: F0 09 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: F0 09 00 99 03 00 4F 58 1C 66 E0 85 7F 64 05 [22:27:26]GetLastDocTimeStamp 1713133464 [22:27:26]current date 1713133647 [22:27:26]FM_GetShiftState [22:27:26]SAM_PROTO_GetShiftState [22:27:26]wFMCommunicate request_size=4 [22:27:26]MH_SAM_APDU [22:27:26]CAPDU: 80 13 01 00 [22:27:26]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [22:27:26]Write i2c OK [22:27:26]MH_I2C_Read... [22:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:26]Read from MH i2c: E2 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 [22:27:26]MH_I2C_Read... [22:27:26]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B2 [22:27:26]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:27:26]wFMCommunicate OK [22:27:26]SAM_PROTO_GetShiftState done [22:27:26]FM_GetShiftState done [22:27:26]opened in 1713054696 [22:27:26]opened+sec_in_day 1713141096 [22:27:26]quantity*price = 500066 [22:27:26]sum+1 = 500068 [22:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.04 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 371 14.04.2024 22:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112472 ФПД: 86031435270650 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222727&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112472&fm=86031435270650&tin=02508201610067®Number=0000000000094237&sum=500000 [22:27:27]StoreToDocumentArchive [22:27:27]shift 357 fd 112472 [22:27:27]save to /storage/0357/doc_00112472 [22:27:27]save last doc name /storage/0357/doc_00112472 to /storage/kkm_last_doc_name [22:27:27]save OK [22:27:27]Clear old archive folders... [22:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:27:27]tlvbuf is 019D6160 [22:27:27]SAM_PROTO_ClearQueue [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 09 00 00 [22:27:27]Write to MH i2c: E2 08 00 A7 03 80 09 00 00 00 00 00 00 1C [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [22:27:27]RAPDU: 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_ClearQueue done [22:27:27]KKMCreateOFDPacket [22:27:27]OFDProtocolAddRootSTLVToBuf [22:27:27]FM_MakeSignedData [22:27:27]FM_MakeSignedData [22:27:27]SAM_PROTO_SignData [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 0D 01 02 [22:27:27]Write to MH i2c: E2 08 00 A8 03 80 0D 01 02 00 00 00 00 24 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [22:27:27]RAPDU: 90 00 [22:27:27]wFMCommunicate OK [22:27:27]wFMCommunicate request_size=255 [22:27:27]MH_SAM_APDU [22:27: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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4F 58 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B7 01 00 35 04 06 00 4E 3E C1 23 [22:27:27]Write to MH i2c: E2 02 01 A9 03 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4F 58 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B7 01 00 35 04 06 00 4E 3E C1 23 00 00 76 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 A9 03 00 90 00 20 [22:27:27]RAPDU: 90 00 [22:27:27]wFMCommunicate OK [22:27:27]wFMCommunicate request_size=7 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 0D 02 02 02 89 FA [22:27:27]Write to MH i2c: E2 0A 00 AA 03 80 0D 02 02 02 00 89 FA 00 00 AE [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 03 00 AA 03 00 90 00 21 [22:27:27]RAPDU: 90 00 [22:27:27]wFMCommunicate OK [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 0D 03 02 [22:27:27]Write to MH i2c: E2 08 00 AB 03 80 0D 03 02 00 00 00 00 29 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:27]Read from MH i2c: E2 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0B 00 [22:27:27]MH_I2C_Read... [22:27:27]Read from MH i2c: E2 0B 00 AB 03 00 F2 5A 44 E2 CD 3B B0 15 90 00 69 [22:27:27]RAPDU: F2 5A 44 E2 CD 3B B0 15 90 00 [22:27:27]wFMCommunicate OK [22:27:27]SAM_PROTO_SignData done [22:27:27]FM_MakeSignedData done [22:27:27]CreateOFDProtocolMessage [22:27:27]wFMCommunicate request_size=4 [22:27:27]MH_SAM_APDU [22:27:27]CAPDU: 80 11 00 00 [22:27:27]Write to MH i2c: E2 08 00 AC 03 80 11 00 00 00 00 00 00 29 [22:27:27]Write i2c OK [22:27:27]MH_I2C_Read... [22:27:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:28]Read from MH i2c: E2 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 17 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: E2 17 00 AC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7A [22:27:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:27:28]wFMCommunicate OK [22:27:28]CreateOFDProtocolMessage done [22:27:28]OFDSenderStorePacket 112472 [22:27:28]StoreOFDPacket docnum=112472 [22:27:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C0 76 04 01 72 C4 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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4F 58 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B7 01 00 35 04 06 00 4E 3E C1 23 89 FA F2 5A 44 E2 CD 3B B0 15 [22:27:28]CheckFolder [22:27:28]dirname=/storage/ofd_packets [22:27:28]CheckFolder done [22:27:28]ProducePacketName [22:27:28]name=ofd_packets/00112472 [22:27:28]NVStorageSaveData ofd_packets/00112472 [22:27:28]File name is /storage/ofd_packets/00112472 [22:27:28]Write 298 bytes [22:27:28]NVStorageSaveData done [22:27:28]OFDSenderStorePacket done [22:27:28]KKMCreateOFDPacket done [22:27:28]NVStorageSaveData kkm_last_timestamp [22:27:28]File name is /storage/kkm_last_timestamp [22:27:28]Write 4 bytes [22:27:28]NVStorageSaveData done [22:27:28]ExternCall_PrintAddStr [22:27:28]wPrintStart [22:27:28]Write to MH i2c: 01 00 00 AD 03 B0 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 AD 03 00 00 00 00 00 FF 0F C5 [22:27:28]RasterBufferAndPrint [22:27:28]line Счет N : (1)48762 [22:27:28]line ИНН: 02508201610067 [22:27:28]line Контрольно-Кассовый Чек [22:27:28]line ПРОДАЖА [22:27:28]line ТРК (МРК, ГНК) : 51 [22:27:28]line Товар: 2710194210 [22:27:28]line ДТ-К-5 [22:27:28]line 69.070 * 72.40 [22:27:28]line = 5000.67 [22:27:28]line НДС 12% НСП 1% [22:27:28]line > о реализуемом товаре [22:27:28]line ОКРУГЛЕНИЕ: -0.67 [22:27:28]line ИТОГО: 5000.00 [22:27:28]line Внесено: 5000.00 [22:27:28]line СДАЧА: 0.00 [22:27:28]line НСП 1% : 44.25 [22:27:28]line НДС 12% : 531.04 [22:27:28]line Наличными: 5000.00 [22:27:28]line Безнал.: 0.00 [22:27:28]line Место: АЗС № 47 "Партнер Нефть" [22:27:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:27:28]line СНО: Общий режим [22:27:28]line Чек 371 14.04.2024 22:27 [22:27:28]line Смена: 357 ФФД: 1.0 [22:27:28]line ЗНМ: 0300000138 [22:27:28]line РНМ: 0000000000094237 [22:27:28]line Версия ККМ: 001 [22:27:28]line ФМ: 0000000000875019 [22:27:28]line ФД: 112472 [22:27:28]line ФПД: 86031435270650 [22:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T222727&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112472&fm=86031435270650&tin=02508201610067®Number=0000000000094237&sum=500000 [22:27:28]OFD Sender: Processing packet 112472 [packets to send 71, broken 70] [22:27:28]ProducePacketName [22:27:28]name=ofd_packets/00112472 [22:27:28]OFD Sender: To server: pG, [22:27:28]CommunicateWithHost lk.salyk.kg:30040 [22:27:28]ConnectInit lk.salyk.kg [22:27:28]written 0, free lines is 4095 [22:27:28]Connected sock=10 [22:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 C0 76 04 01 72 C4 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 CE 0D 01 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 63 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 4F 58 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B7 01 00 35 04 06 00 4E 3E C1 23 89 FA F2 5A 44 E2 CD 3B B0 15 [22:27:28]Write to MH i2c: 01 00 00 D8 03 DB [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 D0 0C BE [22:27:28]RasterBufferAndPrint [22:27:28]line [22:27:28]line [22:27:28]line [22:27:28]line [22:27:28]line [22:27:28]written 0, free lines is 3287 [22:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4E C2 47 00 2C 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 58 B7 01 00 F4 03 04 00 D9 FF 1B 66 B6 04 01 00 00 F9 0C 12 F5 4E 13 A8 23 [22:27:28]CommunicateWithHost err = 0 [22:27:28]CheckOFDResponse [22:27:28]1017 (14) - 77093643461234 [22:27:28]1041 (16) - 0000000000875019 [22:27:28]1040 (4) - 112472 [22:27:28]1012 (4) - 14.04.2024 16:10 [22:27:28]1206 (1) - 0 [22:27:28]OFD Sender: Remove packet 112472 [22:27:28]ProducePacketName [22:27:28]name=ofd_packets/00112472 [22:27:28]NVStorageDeleteData [22:27:28]MH_Cut [22:27:28]Write to MH i2c: D1 01 00 DF 03 01 B4 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: D1 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: D1 01 00 [22:27:28]MH_I2C_Read... [22:27:28]Read from MH i2c: D1 01 00 DF 03 00 B3 [22:27:28]Write to MH i2c: 01 00 00 E0 03 E3 [22:27:28]Write i2c OK [22:27:28]MH_I2C_Read... [22:27:29]OFD Sender: No OFD packet to send [22:27:29]*** Cut start [22:27:29]*** Partial cut [22:27:29]*** CUTSNS_PIN = 1 [22:27:29]*** CUTSNS_PIN = 0 [22:27:29]*** Brake cut motor [22:27:30]Read from MH i2c: 01 [22:27:30]MH_I2C_Read... [22:27:30]*** Stop cut motor [22:27:30]*** Cut end [22:27:30]Read from MH i2c: 01 07 00 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: 01 07 00 E0 03 00 00 00 00 00 FF 0F F8 [22:27:30]process_action close_receipt done [22:27:30]requested_data is exist [22:27:30]produce_requested_data [22:27:30]requested_item fm.sn is exist - process it [22:27:30]wFMCommunicate request_size=4 [22:27:30]MH_SAM_APDU [22:27:30]CAPDU: 80 11 00 00 [22:27:30]Write to MH i2c: E2 08 00 E1 03 80 11 00 00 00 00 00 00 5E [22:27:30]Write i2c OK [22:27:30]MH_I2C_Read... [22:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:30]Read from MH i2c: E2 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 17 00 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 17 00 E1 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AF [22:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:27:30]wFMCommunicate OK [22:27:30]requested_item fd.num is exist - process it [22:27:30]SAM_PROTO_GetFieldsCounters [22:27:30]wFMCommunicate request_size=4 [22:27:30]MH_SAM_APDU [22:27:30]CAPDU: 80 13 00 00 [22:27:30]Write to MH i2c: E2 08 00 E2 03 80 13 00 00 00 00 00 00 61 [22:27:30]Write i2c OK [22:27:30]MH_I2C_Read... [22:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:30]Read from MH i2c: E2 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 62 00 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 62 00 E2 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 58 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [22:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 58 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:30]wFMCommunicate OK [22:27:30]SAM_PROTO_GetFieldsCounters done [22:27:30]requested_item shift.num is exist - process it [22:27:30]requested_item shift.opened is exist - process it [22:27:30]req_shift_opened [22:27:30]FM_GetShiftState [22:27:30]SAM_PROTO_GetShiftState [22:27:30]wFMCommunicate request_size=4 [22:27:30]MH_SAM_APDU [22:27:30]CAPDU: 80 13 01 00 [22:27:30]Write to MH i2c: E2 08 00 E3 03 80 13 01 00 00 00 00 00 63 [22:27:30]Write i2c OK [22:27:30]MH_I2C_Read... [22:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:30]Read from MH i2c: E2 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 0E 00 [22:27:30]MH_I2C_Read... [22:27:30]Read from MH i2c: E2 0E 00 E3 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FB [22:27:30]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:27:30]wFMCommunicate OK [22:27:30]SAM_PROTO_GetShiftState done [22:27:30]FM_GetShiftState done [22:27:30]req_shift_opened done [22:27:30]requested_item shift.open_date is exist - process it [22:27:30]req_shift_open_date [22:27:30]req_shift_open_date done [22:27:30]produce_requested_data done [22:27:30]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112472,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:27:30]process_action_free close_receipt [22:27:30]json_value_free [22:27:30]json_value_free done [22:27:30]process_json_proto returns [22:27:30]Send response to host [22:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112472,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:27:30]free response buf [22:27:30]execute_script done [22:27:30]execute_script returns [22:27:30]free content buf [22:27:30]Sock 9.Close socket [22:27:30]Sock 9.Thread stoped [22:27:34]OFD Sender: No OFD packet to send [22:27:39]OFD Sender: No OFD packet to send [22:27:44]OFD Sender: No OFD packet to send [22:27:49]OFD Sender: No OFD packet to send [22:27:54]OFD Sender: No OFD packet to send [22:27:59]OFD Sender: No OFD packet to send [22:28:04]OFD Sender: No OFD packet to send [22:28:09]OFD Sender: No OFD packet to send [22:28:14]OFD Sender: No OFD packet to send [22:28:19]OFD Sender: No OFD packet to send [22:28:24]OFD Sender: No OFD packet to send [22:28:29]OFD Sender: No OFD packet to send [22:28:34]OFD Sender: No OFD packet to send [22:28:39]OFD Sender: No OFD packet to send [22:28:44]OFD Sender: No OFD packet to send [22:28:49]OFD Sender: No OFD packet to send [22:28:54]OFD Sender: No OFD packet to send [22:28:59]OFD Sender: No OFD packet to send [22:29:04]OFD Sender: No OFD packet to send [22:29:09]OFD Sender: No OFD packet to send [22:29:14]OFD Sender: No OFD packet to send [22:29:19]OFD Sender: No OFD packet to send [22:29:24]OFD Sender: No OFD packet to send [22:29:29]OFD Sender: No OFD packet to send [22:29:34]OFD Sender: No OFD packet to send [22:29:39]OFD Sender: No OFD packet to send [22:29:44]OFD Sender: No OFD packet to send [22:29:49]OFD Sender: No OFD packet to send [22:29:54]OFD Sender: No OFD packet to send [22:29:59]OFD Sender: No OFD packet to send [22:30:04]OFD Sender: No OFD packet to send [22:30:09]OFD Sender: No OFD packet to send [22:30:14]OFD Sender: No OFD packet to send [22:30:19]OFD Sender: No OFD packet to send [22:30:24]OFD Sender: No OFD packet to send [22:30:29]OFD Sender: No OFD packet to send [22:30:34]OFD Sender: No OFD packet to send [22:30:39]OFD Sender: No OFD packet to send [22:30:44]OFD Sender: No OFD packet to send [22:30:49]OFD Sender: No OFD packet to send [22:30:54]OFD Sender: No OFD packet to send [22:30:59]OFD Sender: No OFD packet to send [22:31:04]OFD Sender: No OFD packet to send [22:31:09]OFD Sender: No OFD packet to send [22:31:14]OFD Sender: No OFD packet to send [22:31:19]OFD Sender: No OFD packet to send [22:31:23]accept exits with 7 [22:31:23]New connection [22:31:23]New thread 3067174244 created [22:31:23]Thread 3067317604 joined [22:31:23]Waiting for new connection... [22:31:23] Sock 7.Parse request [22:31:23]Sock 7.Check first char [22:31:23]Sock 7.First char is OK [22:31:23]request: POST /json_proto HTTP/1.0 [22:31:23]Method: POST [22:31:23]URL: /json_proto [22:31:23]Method is POST - this is cgi request [22:31:23]url: /json_proto [22:31:23]query_string will be loaded in cgi processing [22:31:23]execute_cgi json_proto POST (null) [22:31:23]execute_cgi path=json_proto method=POST [22:31:23]POST find Content-Length [22:31:23]Host: 172.17.96.197:8080 [22:31:23]Content-Length: 800 [22:31:23]Content-Type: application/json [22:31:23] [22:31:23]POST finish read [22:31:23]Found Content-Length = 800 [22:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10455", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:23]execute_script... [22:31:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10455", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:31:23]POST & json_proto [22:31:23]process_json_proto [22:31:23]json parsed OK: [22:31:23]protocol is kg_v1.0 [22:31:23]action value=close_receipt [22:31:23]process_action close_receipt [22:31:23]cmd_close_receipt [22:31:23]MH_GetDate [22:31:23]Write to MH i2c: F0 00 00 E4 03 D6 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: F0 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: F0 09 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: F0 09 00 E4 03 00 3C 59 1C 66 E0 85 7F 64 3E [22:31:23]GetLastDocTimeStamp 1713133647 [22:31:23]current date 1713133884 [22:31:23]FM_GetShiftState [22:31:23]SAM_PROTO_GetShiftState [22:31:23]wFMCommunicate request_size=4 [22:31:23]MH_SAM_APDU [22:31:23]CAPDU: 80 13 01 00 [22:31:23]Write to MH i2c: E2 08 00 E5 03 80 13 01 00 00 00 00 00 65 [22:31:23]Write i2c OK [22:31:23]MH_I2C_Read... [22:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:23]Read from MH i2c: E2 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 0E 00 [22:31:23]MH_I2C_Read... [22:31:23]Read from MH i2c: E2 0E 00 E5 03 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 FD [22:31:23]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:31:23]wFMCommunicate OK [22:31:23]SAM_PROTO_GetShiftState done [22:31:23]FM_GetShiftState done [22:31:23]opened in 1713054696 [22:31:23]opened+sec_in_day 1713141096 [22:31:23]quantity*price = 15100 [22:31:23]sum+1 = 15101 [22:31:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 372 14.04.2024 22:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112473 ФПД: 109816622800253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223124&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112473&fm=109816622800253&tin=02508201610067®Number=0000000000094237&sum=15100 0 [22:31:24]StoreToDocumentArchive [22:31:24]shift 357 fd 112473 [22:31:24]save to /storage/0357/doc_00112473 [22:31:24]save last doc name /storage/0357/doc_00112473 to /storage/kkm_last_doc_name [22:31:24]save OK [22:31:24]Clear old archive folders... [22:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:31:24]tlvbuf is 01A193D0 [22:31:24]SAM_PROTO_ClearQueue [22:31:24]wFMCommunicate request_size=4 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 09 00 00 [22:31:24]Write to MH i2c: E2 08 00 F2 03 80 09 00 00 00 00 00 00 67 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 [22:31:24]MH_I2C_Read... [22:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:31:24]Read from MH i2c: E2 03 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [22:31:24]RAPDU: 90 00 [22:31:24]wFMCommunicate OK [22:31:24]SAM_PROTO_ClearQueue done [22:31:24]KKMCreateOFDPacket [22:31:24]OFDProtocolAddRootSTLVToBuf [22:31:24]FM_MakeSignedData [22:31:24]FM_MakeSignedData [22:31:24]SAM_PROTO_SignData [22:31:24]wFMCommunicate request_size=4 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 0D 01 02 [22:31:24]Write to MH i2c: E2 08 00 F3 03 80 0D 01 02 00 00 00 00 6F [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:31:24]Read from MH i2c: E2 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 03 00 [22:31:24]MH_I2C_Read... [22:31:24]Read from MH i2c: E2 03 00 F3 03 00 90 00 6A [22:31:24]RAPDU: 90 00 [22:31:24]wFMCommunicate OK [22:31:24]wFMCommunicate request_size=255 [22:31:24]MH_SAM_APDU [22:31:24]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 3C 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 [22:31:24]Write to MH i2c: E2 02 01 F4 03 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 3C 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 00 00 B3 [22:31:24]Write i2c OK [22:31:24]MH_I2C_Read... [22:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:25]Read from MH i2c: E2 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 03 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 03 00 F4 03 00 90 00 6B [22:31:25]RAPDU: 90 00 [22:31:25]wFMCommunicate OK [22:31:25]wFMCommunicate request_size=35 [22:31:25]MH_SAM_APDU [22:31:25]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B7 01 00 35 04 06 00 63 E0 AC CA DD 7D [22:31:25]Write to MH i2c: E2 26 00 F5 03 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B7 01 00 35 04 06 00 63 E0 AC CA DD 7D 00 00 87 [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:31:25]Read from MH i2c: E2 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 03 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 03 00 F5 03 00 90 00 6C [22:31:25]RAPDU: 90 00 [22:31:25]wFMCommunicate OK [22:31:25]wFMCommunicate request_size=4 [22:31:25]MH_SAM_APDU [22:31:25]CAPDU: 80 0D 03 02 [22:31:25]Write to MH i2c: E2 08 00 F6 03 80 0D 03 02 00 00 00 00 74 [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:31:25]Read from MH i2c: E2 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 0B 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 0B 00 F6 03 00 CB 79 07 8B F9 CA 5A CD 90 00 35 [22:31:25]RAPDU: CB 79 07 8B F9 CA 5A CD 90 00 [22:31:25]wFMCommunicate OK [22:31:25]SAM_PROTO_SignData done [22:31:25]FM_MakeSignedData done [22:31:25]CreateOFDProtocolMessage [22:31:25]wFMCommunicate request_size=4 [22:31:25]MH_SAM_APDU [22:31:25]CAPDU: 80 11 00 00 [22:31:25]Write to MH i2c: E2 08 00 F7 03 80 11 00 00 00 00 00 00 74 [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:25]Read from MH i2c: E2 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 17 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: E2 17 00 F7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C5 [22:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:31:25]wFMCommunicate OK [22:31:25]CreateOFDProtocolMessage done [22:31:25]OFDSenderStorePacket 112473 [22:31:25]StoreOFDPacket docnum=112473 [22:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 83 DB 20 01 99 08 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 3C 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B7 01 00 35 04 06 00 63 E0 AC CA DD 7D CB 79 07 8B F9 CA 5A CD [22:31:25]CheckFolder [22:31:25]dirname=/storage/ofd_packets [22:31:25]CheckFolder done [22:31:25]ProducePacketName [22:31:25]name=ofd_packets/00112473 [22:31:25]NVStorageSaveData ofd_packets/00112473 [22:31:25]File name is /storage/ofd_packets/00112473 [22:31:25]Write 326 bytes [22:31:25]NVStorageSaveData done [22:31:25]OFDSenderStorePacket done [22:31:25]KKMCreateOFDPacket done [22:31:25]NVStorageSaveData kkm_last_timestamp [22:31:25]File name is /storage/kkm_last_timestamp [22:31:25]Write 4 bytes [22:31:25]NVStorageSaveData done [22:31:25]ExternCall_PrintAddStr [22:31:25]wPrintStart [22:31:25]Write to MH i2c: 01 00 00 F8 03 FB [22:31:25]Write i2c OK [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 07 00 [22:31:25]MH_I2C_Read... [22:31:25]Read from MH i2c: 01 07 00 F8 03 00 00 00 00 00 FF 0F 10 [22:31:25]RasterBufferAndPrint [22:31:25]line Счет N : (3)10455 [22:31:25]line ИНН: 02508201610067 [22:31:25]line Контрольно-Кассовый Чек [22:31:25]line ПРОДАЖА [22:31:25]line Товар: 48742245 [22:31:25]line Сигареты Parliament Silver Blue [22:31:25]line 1.000 * 151.00 [22:31:25]line = 151.00 [22:31:25]line НДС 12% НСП 1% [22:31:25]line > о реализуемом товаре [22:31:25]line ИТОГО: 151.00 [22:31:25]line НСП 1% : 1.34 [22:31:25]line НДС 12% : 16.03 [22:31:25]line Наличными: 0.00 [22:31:25]line Безнал.: 151.00 [22:31:25]line Место: АЗС № 47 "Партнер Нефть" [22:31:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:31:25]line СНО: Общий режим [22:31:25]line Чек 372 14.04.2024 22:31 [22:31:25]line Смена: 357 ФФД: 1.0 [22:31:25]line ЗНМ: 0300000138 [22:31:25]line РНМ: 0000000000094237 [22:31:25]line Версия ККМ: 001 [22:31:25]line Платежная система: Бакай Банк [22:31:25]line ФМ: 0000000000875019 [22:31:25]line ФД: 112473 [22:31:25]line ФПД: 109816622800253 [22:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223124&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112473&fm=109816622800253&tin=02508201610067®Number=0000000000094237&sum=15100 [22:31:25]line 0 [22:31:25]OFD Sender: Processing packet 112473 [packets to send 71, broken 70] [22:31:25]ProducePacketName [22:31:25]name=ofd_packets/00112473 [22:31:25]OFD Sender: To server: pG, [22:31:25]CommunicateWithHost lk.salyk.kg:30040 [22:31:25]ConnectInit lk.salyk.kg [22:31:25]written 0, free lines is 4095 [22:31:25]Connected sock=10 [22:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 28 01 00 00 83 DB 20 01 99 08 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 3C 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B7 01 00 35 04 06 00 63 E0 AC CA DD 7D CB 79 07 8B F9 CA 5A CD [22:31:26]Write to MH i2c: 01 00 00 23 04 27 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 07 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 A6 0C E0 [22:31:26]RasterBufferAndPrint [22:31:26]line [22:31:26]line [22:31:26]line [22:31:26]line [22:31:26]line [22:31:26]written 0, free lines is 3244 [22:31:26]MH_Cut [22:31:26]Write to MH i2c: D1 01 00 2A 04 01 00 [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: D1 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: D1 01 00 [22:31:26]MH_I2C_Read... [22:31:26]Read from MH i2c: D1 01 00 2A 04 00 FF [22:31:26]Write to MH i2c: 01 00 00 2B 04 2F [22:31:26]Write i2c OK [22:31:26]MH_I2C_Read... [22:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 34 74 47 00 5D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 59 B7 01 00 F4 03 04 00 C6 00 1C 66 B6 04 01 00 00 2D 82 E7 A8 FA 96 E1 03 [22:31:26]CommunicateWithHost err = 0 [22:31:26]CheckOFDResponse [22:31:26]1017 (14) - 77093643461234 [22:31:26]1041 (16) - 0000000000875019 [22:31:26]1040 (4) - 112473 [22:31:26]1012 (4) - 14.04.2024 16:13 [22:31:26]1206 (1) - 0 [22:31:26]OFD Sender: Remove packet 112473 [22:31:26]ProducePacketName [22:31:26]name=ofd_packets/00112473 [22:31:26]NVStorageDeleteData [22:31:26]OFD Sender: No OFD packet to send [22:31:26]*** Cut start [22:31:26]*** Partial cut [22:31:26]*** CUTSNS_PIN = 1 [22:31:26]*** CUTSNS_PIN = 0 [22:31:27]*** Brake cut motor [22:31:27]Read from MH i2c: 01 [22:31:27]MH_I2C_Read... [22:31:27]*** Stop cut motor [22:31:27]*** Cut end [22:31:27]Read from MH i2c: 01 07 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: 01 07 00 2B 04 00 00 00 00 00 FF 0F 44 [22:31:27]process_action close_receipt done [22:31:27]requested_data is exist [22:31:27]produce_requested_data [22:31:27]requested_item fm.sn is exist - process it [22:31:27]wFMCommunicate request_size=4 [22:31:27]MH_SAM_APDU [22:31:27]CAPDU: 80 11 00 00 [22:31:27]Write to MH i2c: E2 08 00 2C 04 80 11 00 00 00 00 00 00 AA [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:31:27]Read from MH i2c: E2 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 17 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 17 00 2C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FB [22:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:31:27]wFMCommunicate OK [22:31:27]requested_item fd.num is exist - process it [22:31:27]SAM_PROTO_GetFieldsCounters [22:31:27]wFMCommunicate request_size=4 [22:31:27]MH_SAM_APDU [22:31:27]CAPDU: 80 13 00 00 [22:31:27]Write to MH i2c: E2 08 00 2D 04 80 13 00 00 00 00 00 00 AD [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:31:27]Read from MH i2c: E2 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 62 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 62 00 2D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [22:31:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 59 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:31:27]wFMCommunicate OK [22:31:27]SAM_PROTO_GetFieldsCounters done [22:31:27]requested_item shift.num is exist - process it [22:31:27]requested_item shift.opened is exist - process it [22:31:27]req_shift_opened [22:31:27]FM_GetShiftState [22:31:27]SAM_PROTO_GetShiftState [22:31:27]wFMCommunicate request_size=4 [22:31:27]MH_SAM_APDU [22:31:27]CAPDU: 80 13 01 00 [22:31:27]Write to MH i2c: E2 08 00 2E 04 80 13 01 00 00 00 00 00 AF [22:31:27]Write i2c OK [22:31:27]MH_I2C_Read... [22:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:31:27]Read from MH i2c: E2 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 0E 00 [22:31:27]MH_I2C_Read... [22:31:27]Read from MH i2c: E2 0E 00 2E 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 47 [22:31:27]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:31:27]wFMCommunicate OK [22:31:27]SAM_PROTO_GetShiftState done [22:31:27]FM_GetShiftState done [22:31:27]req_shift_opened done [22:31:27]requested_item shift.open_date is exist - process it [22:31:27]req_shift_open_date [22:31:27]req_shift_open_date done [22:31:27]produce_requested_data done [22:31:27]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112473,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:31:27]process_action_free close_receipt [22:31:27]json_value_free [22:31:27]json_value_free done [22:31:27]process_json_proto returns [22:31:27]Send response to host [22:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112473,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:31:27]free response buf [22:31:27]execute_script done [22:31:27]execute_script returns [22:31:27]free content buf [22:31:27]Sock 7.Close socket [22:31:27]Sock 7.Thread stoped [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:24]accept exits with 9 [22:32:24]New connection [22:32:24]New thread 3067317604 created [22:32:24]Thread 3067174244 joined [22:32:24]Waiting for new connection... [22:32:24] Sock 9.Parse request [22:32:24]Sock 9.Check first char [22:32:24]Sock 9.First char is OK [22:32:24]request: POST /json_proto HTTP/1.0 [22:32:24]Method: POST [22:32:24]URL: /json_proto [22:32:24]Method is POST - this is cgi request [22:32:24]url: /json_proto [22:32:24]query_string will be loaded in cgi processing [22:32:24]execute_cgi json_proto POST (null) [22:32:24]execute_cgi path=json_proto method=POST [22:32:24]POST find Content-Length [22:32:24]Host: 172.17.96.197:8080 [22:32:24]Content-Length: 1161 [22:32:24]Content-Type: application/json [22:32:24] [22:32:24]POST finish read [22:32:24]Found Content-Length = 1161 [22:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10456", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:24]execute_script... [22:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10456", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:24]POST & json_proto [22:32:24]process_json_proto [22:32:24]json parsed OK: [22:32:24]protocol is kg_v1.0 [22:32:24]action value=close_receipt [22:32:24]process_action close_receipt [22:32:24]cmd_close_receipt [22:32:24]MH_GetDate [22:32:24]Write to MH i2c: F0 00 00 2F 04 22 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: F0 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: F0 09 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: F0 09 00 2F 04 00 79 59 1C 66 E0 85 7F 64 C7 [22:32:24]GetLastDocTimeStamp 1713133884 [22:32:24]current date 1713133945 [22:32:24]FM_GetShiftState [22:32:24]SAM_PROTO_GetShiftState [22:32:24]wFMCommunicate request_size=4 [22:32:24]MH_SAM_APDU [22:32:24]CAPDU: 80 13 01 00 [22:32:24]Write to MH i2c: E2 08 00 30 04 80 13 01 00 00 00 00 00 B1 [22:32:24]Write i2c OK [22:32:24]MH_I2C_Read... [22:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:24]Read from MH i2c: E2 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0E 00 [22:32:24]MH_I2C_Read... [22:32:24]Read from MH i2c: E2 0E 00 30 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 49 [22:32:24]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:32:24]wFMCommunicate OK [22:32:24]SAM_PROTO_GetShiftState done [22:32:24]FM_GetShiftState done [22:32:24]opened in 1713054696 [22:32:24]opened+sec_in_day 1713141096 [22:32:24]quantity*price = 11000 [22:32:24]sum+1 = 11001 [22:32:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 0.00 Безнал.: 225.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 373 14.04.2024 22:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112474 ФПД: 167621360256403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223225&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112474&fm=167621360256403&tin=02508201610067®Number=0000000000094237&sum=22500 0 [22:32:25]StoreToDocumentArchive [22:32:25]shift 357 fd 112474 [22:32:25]save to /storage/0357/doc_00112474 [22:32:25]save last doc name /storage/0357/doc_00112474 to /storage/kkm_last_doc_name [22:32:25]save OK [22:32:25]Clear old archive folders... [22:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=411 [22:32:25]tlvbuf is 01A02DB0 [22:32:25]SAM_PROTO_ClearQueue [22:32:25]wFMCommunicate request_size=4 [22:32:25]MH_SAM_APDU [22:32:25]CAPDU: 80 09 00 00 [22:32:25]Write to MH i2c: E2 08 00 3D 04 80 09 00 00 00 00 00 00 B3 [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:25]Read from MH i2c: E2 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: E2 03 00 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: E2 03 00 3D 04 00 90 00 B5 [22:32:25]RAPDU: 90 00 [22:32:25]wFMCommunicate OK [22:32:25]SAM_PROTO_ClearQueue done [22:32:25]KKMCreateOFDPacket [22:32:25]OFDProtocolAddRootSTLVToBuf [22:32:25]FM_MakeSignedData [22:32:25]FM_MakeSignedData [22:32:25]SAM_PROTO_SignData [22:32:25]wFMCommunicate request_size=4 [22:32:25]MH_SAM_APDU [22:32:25]CAPDU: 80 0D 01 02 [22:32:25]Write to MH i2c: E2 08 00 3E 04 80 0D 01 02 00 00 00 00 BB [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:25]Read from MH i2c: E2 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: E2 03 00 [22:32:25]MH_I2C_Read... [22:32:25]Read from MH i2c: E2 03 00 3E 04 00 90 00 B6 [22:32:25]RAPDU: 90 00 [22:32:25]wFMCommunicate OK [22:32:25]wFMCommunicate request_size=255 [22:32:25]MH_SAM_APDU [22:32:25]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [22:32:25]Write to MH i2c: E2 02 01 3F 04 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 2E [22:32:25]Write i2c OK [22:32:25]MH_I2C_Read... [22:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:26]Read from MH i2c: E2 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 03 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 03 00 3F 04 00 90 00 B7 [22:32:26]RAPDU: 90 00 [22:32:26]wFMCommunicate OK [22:32:26]wFMCommunicate request_size=170 [22:32:26]MH_SAM_APDU [22:32:26]CAPDU: 80 0D 02 02 A5 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 79 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B7 01 00 35 04 06 00 98 73 63 A2 85 93 [22:32:26]Write to MH i2c: E2 AD 00 40 04 80 0D 02 02 A5 00 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 79 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B7 01 00 35 04 06 00 98 73 63 A2 85 93 00 00 4D [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:32:26]Read from MH i2c: E2 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 03 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 03 00 40 04 00 90 00 B8 [22:32:26]RAPDU: 90 00 [22:32:26]wFMCommunicate OK [22:32:26]wFMCommunicate request_size=4 [22:32:26]MH_SAM_APDU [22:32:26]CAPDU: 80 0D 03 02 [22:32:26]Write to MH i2c: E2 08 00 41 04 80 0D 03 02 00 00 00 00 C0 [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:32:26]Read from MH i2c: E2 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 0B 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 0B 00 41 04 00 8D C5 72 4C F7 C3 F4 B5 90 00 34 [22:32:26]RAPDU: 8D C5 72 4C F7 C3 F4 B5 90 00 [22:32:26]wFMCommunicate OK [22:32:26]SAM_PROTO_SignData done [22:32:26]FM_MakeSignedData done [22:32:26]CreateOFDProtocolMessage [22:32:26]wFMCommunicate request_size=4 [22:32:26]MH_SAM_APDU [22:32:26]CAPDU: 80 11 00 00 [22:32:26]Write to MH i2c: E2 08 00 42 04 80 11 00 00 00 00 00 00 C0 [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:26]Read from MH i2c: E2 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 17 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: E2 17 00 42 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 11 [22:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:32:26]wFMCommunicate OK [22:32:26]CreateOFDProtocolMessage done [22:32:26]OFDSenderStorePacket 112474 [22:32:26]StoreOFDPacket docnum=112474 [22:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AF 01 00 00 3F 43 A7 01 3B F8 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 79 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B7 01 00 35 04 06 00 98 73 63 A2 85 93 8D C5 72 4C F7 C3 F4 B5 [22:32:26]CheckFolder [22:32:26]dirname=/storage/ofd_packets [22:32:26]CheckFolder done [22:32:26]ProducePacketName [22:32:26]name=ofd_packets/00112474 [22:32:26]NVStorageSaveData ofd_packets/00112474 [22:32:26]File name is /storage/ofd_packets/00112474 [22:32:26]Write 461 bytes [22:32:26]NVStorageSaveData done [22:32:26]OFDSenderStorePacket done [22:32:26]KKMCreateOFDPacket done [22:32:26]NVStorageSaveData kkm_last_timestamp [22:32:26]File name is /storage/kkm_last_timestamp [22:32:26]Write 4 bytes [22:32:26]NVStorageSaveData done [22:32:26]ExternCall_PrintAddStr [22:32:26]wPrintStart [22:32:26]Write to MH i2c: 01 00 00 43 04 47 [22:32:26]OFD Sender: No OFD packet to send [22:32:26]Write i2c OK [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: 01 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: 01 07 00 [22:32:26]MH_I2C_Read... [22:32:26]Read from MH i2c: 01 07 00 43 04 00 00 00 00 00 FF 0F 5C [22:32:26]RasterBufferAndPrint [22:32:26]line Счет N : (3)10456 [22:32:26]line ИНН: 02508201610067 [22:32:26]line Контрольно-Кассовый Чек [22:32:26]line ПРОДАЖА [22:32:26]line Товар: 5449000054227 [22:32:26]line Напиток Кока-Кола 1л [22:32:26]line 1.000 * 110.00 [22:32:26]line = 110.00 [22:32:26]line НДС 12% НСП 1% [22:32:26]line > о реализуемом товаре [22:32:26]line Товар: 4870202521216 [22:32:26]line Напиток MAXI чай 1,2 зел.лимон (новый) [22:32:26]line 1.000 * 115.00 [22:32:26]line = 115.00 [22:32:26]line НДС 12% НСП 1% [22:32:26]line > о реализуемом товаре [22:32:26]line ИТОГО: 225.00 [22:32:26]line НСП 1% : 1.99 [22:32:26]line НДС 12% : 23.89 [22:32:26]line Наличными: 0.00 [22:32:26]line Безнал.: 225.00 [22:32:26]line Место: АЗС № 47 "Партнер Нефть" [22:32:26]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:32:26]line СНО: Общий режим [22:32:26]line Чек 373 14.04.2024 22:32 [22:32:26]line Смена: 357 ФФД: 1.0 [22:32:26]line ЗНМ: 0300000138 [22:32:26]line РНМ: 0000000000094237 [22:32:26]line Версия ККМ: 001 [22:32:26]line Платежная система: Бакай Банк [22:32:26]line ФМ: 0000000000875019 [22:32:26]line ФД: 112474 [22:32:26]line ФПД: 167621360256403 [22:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223225&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112474&fm=167621360256403&tin=02508201610067®Number=0000000000094237&sum=22500 [22:32:26]line 0 [22:32:26]written 0, free lines is 4095 [22:32:26]OFD Sender: Processing packet 112474 [packets to send 71, broken 70] [22:32:26]ProducePacketName [22:32:26]name=ofd_packets/00112474 [22:32:26]OFD Sender: To server: pG, [22:32:26]CommunicateWithHost lk.salyk.kg:30040 [22:32:26]ConnectInit lk.salyk.kg [22:32:27]Connected sock=10 [22:32:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AF 01 00 00 3F 43 A7 01 3B F8 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 01 00 00 F4 03 04 00 79 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B7 01 00 35 04 06 00 98 73 63 A2 85 93 8D C5 72 4C F7 C3 F4 B5 [22:32:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4E BA 47 00 A7 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5A B7 01 00 F4 03 04 00 04 01 1C 66 B6 04 01 00 00 17 7A 59 E2 CC FC 97 DD [22:32:27]CommunicateWithHost err = 0 [22:32:27]CheckOFDResponse [22:32:27]1017 (14) - 77093643461234 [22:32:27]1041 (16) - 0000000000875019 [22:32:27]1040 (4) - 112474 [22:32:27]1012 (4) - 14.04.2024 16:15 [22:32:27]1206 (1) - 0 [22:32:27]OFD Sender: Remove packet 112474 [22:32:27]ProducePacketName [22:32:27]name=ofd_packets/00112474 [22:32:27]NVStorageDeleteData [22:32:27]Write to MH i2c: 01 00 00 74 04 78 [22:32:27]Write i2c OK [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: 01 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: 01 07 00 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 73 0C FE [22:32:27]RasterBufferAndPrint [22:32:27]line [22:32:27]line [22:32:27]line [22:32:27]line [22:32:27]line [22:32:27]written 0, free lines is 3193 [22:32:27]MH_Cut [22:32:27]Write to MH i2c: D1 01 00 7B 04 01 51 [22:32:27]Write i2c OK [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: D1 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: D1 01 00 [22:32:27]MH_I2C_Read... [22:32:27]Read from MH i2c: D1 01 00 7B 04 00 50 [22:32:27]Write to MH i2c: 01 00 00 7C 04 80 [22:32:27]Write i2c OK [22:32:27]MH_I2C_Read... [22:32:27]OFD Sender: No OFD packet to send [22:32:28]*** Cut start [22:32:28]*** Partial cut [22:32:28]*** CUTSNS_PIN = 1 [22:32:28]*** CUTSNS_PIN = 0 [22:32:28]*** Brake cut motor [22:32:28]Read from MH i2c: 01 [22:32:28]MH_I2C_Read... [22:32:28]*** Stop cut motor [22:32:28]*** Cut end [22:32:28]Read from MH i2c: 01 07 00 [22:32:28]MH_I2C_Read... [22:32:28]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [22:32:28]process_action close_receipt done [22:32:28]requested_data is exist [22:32:28]produce_requested_data [22:32:28]requested_item fm.sn is exist - process it [22:32:28]wFMCommunicate request_size=4 [22:32:28]MH_SAM_APDU [22:32:28]CAPDU: 80 11 00 00 [22:32:28]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [22:32:28]Write i2c OK [22:32:28]MH_I2C_Read... [22:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:32:28]Read from MH i2c: E2 [22:32:28]MH_I2C_Read... [22:32:28]Read from MH i2c: E2 17 00 [22:32:28]MH_I2C_Read... [22:32:28]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4C [22:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:32:28]wFMCommunicate OK [22:32:28]requested_item fd.num is exist - process it [22:32:28]SAM_PROTO_GetFieldsCounters [22:32:28]wFMCommunicate request_size=4 [22:32:28]MH_SAM_APDU [22:32:28]CAPDU: 80 13 00 00 [22:32:28]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [22:32:28]Write i2c OK [22:32:28]MH_I2C_Read... [22:32:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:32:29]Read from MH i2c: E2 [22:32:29]MH_I2C_Read... [22:32:29]Read from MH i2c: E2 62 00 [22:32:29]MH_I2C_Read... [22:32:29]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [22:32:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:32:29]wFMCommunicate OK [22:32:29]SAM_PROTO_GetFieldsCounters done [22:32:29]requested_item shift.num is exist - process it [22:32:29]requested_item shift.opened is exist - process it [22:32:29]req_shift_opened [22:32:29]FM_GetShiftState [22:32:29]SAM_PROTO_GetShiftState [22:32:29]wFMCommunicate request_size=4 [22:32:29]MH_SAM_APDU [22:32:29]CAPDU: 80 13 01 00 [22:32:29]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [22:32:29]Write i2c OK [22:32:29]MH_I2C_Read... [22:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:29]Read from MH i2c: E2 [22:32:29]MH_I2C_Read... [22:32:29]Read from MH i2c: E2 0E 00 [22:32:29]MH_I2C_Read... [22:32:29]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 98 [22:32:29]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:32:29]wFMCommunicate OK [22:32:29]SAM_PROTO_GetShiftState done [22:32:29]FM_GetShiftState done [22:32:29]req_shift_opened done [22:32:29]requested_item shift.open_date is exist - process it [22:32:29]req_shift_open_date [22:32:29]req_shift_open_date done [22:32:29]produce_requested_data done [22:32:29]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112474,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:32:29]process_action_free close_receipt [22:32:29]json_value_free [22:32:29]json_value_free done [22:32:29]process_json_proto returns [22:32:29]Send response to host [22:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112474,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:32:29]free response buf [22:32:29]execute_script done [22:32:29]execute_script returns [22:32:29]free content buf [22:32:29]Sock 9.Close socket [22:32:29]Sock 9.Thread stoped [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:32:58]accept exits with 7 [22:32:58]New connection [22:32:58]New thread 3067174244 created [22:32:58]Thread 3067317604 joined [22:32:58]Waiting for new connection... [22:32:58] Sock 7.Parse request [22:32:58]Sock 7.Check first char [22:32:58]Sock 7.First char is OK [22:32:58]request: POST /json_proto HTTP/1.0 [22:32:58]Method: POST [22:32:58]URL: /json_proto [22:32:58]Method is POST - this is cgi request [22:32:58]url: /json_proto [22:32:58]query_string will be loaded in cgi processing [22:32:58]execute_cgi json_proto POST (null) [22:32:58]execute_cgi path=json_proto method=POST [22:32:58]POST find Content-Length [22:32:58]Host: 172.17.96.197:8080 [22:32:58]Content-Length: 810 [22:32:58]Content-Type: application/json [22:32:58] [22:32:58]POST finish read [22:32:58]Found Content-Length = 810 [22:32:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:58]execute_script... [22:32:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48763", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:32:58]POST & json_proto [22:32:58]process_json_proto [22:32:58]json parsed OK: [22:32:58]protocol is kg_v1.0 [22:32:58]action value=close_receipt [22:32:58]process_action close_receipt [22:32:58]cmd_close_receipt [22:32:58]MH_GetDate [22:32:58]Write to MH i2c: F0 00 00 80 04 73 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: F0 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: F0 09 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: F0 09 00 80 04 00 9B 59 1C 66 E0 85 7F 64 3A [22:32:58]GetLastDocTimeStamp 1713133945 [22:32:58]current date 1713133979 [22:32:58]FM_GetShiftState [22:32:58]SAM_PROTO_GetShiftState [22:32:58]wFMCommunicate request_size=4 [22:32:58]MH_SAM_APDU [22:32:58]CAPDU: 80 13 01 00 [22:32:58]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [22:32:58]Write i2c OK [22:32:58]MH_I2C_Read... [22:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:32:58]Read from MH i2c: E2 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0E 00 [22:32:58]MH_I2C_Read... [22:32:58]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 9A [22:32:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:32:58]wFMCommunicate OK [22:32:58]SAM_PROTO_GetShiftState done [22:32:58]FM_GetShiftState done [22:32:58]opened in 1713054696 [22:32:58]opened+sec_in_day 1713141096 [22:32:58]quantity*price = 100029 [22:32:58]sum+1 = 100030 [22:32:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 374 14.04.2024 22:32 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112475 ФПД: 41476988637287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223259&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112475&fm=41476988637287&tin=02508201610067®Number=0000000000094237&sum=100029 [22:32:59]StoreToDocumentArchive [22:32:59]shift 357 fd 112475 [22:32:59]save to /storage/0357/doc_00112475 [22:32:59]save last doc name /storage/0357/doc_00112475 to /storage/kkm_last_doc_name [22:32:59]save OK [22:32:59]Clear old archive folders... [22:32:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:32:59]tlvbuf is 01A27670 [22:32:59]SAM_PROTO_ClearQueue [22:32:59]wFMCommunicate request_size=4 [22:32:59]MH_SAM_APDU [22:32:59]CAPDU: 80 09 00 00 [22:32:59]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:32:59]Read from MH i2c: E2 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 03 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [22:32:59]RAPDU: 90 00 [22:32:59]wFMCommunicate OK [22:32:59]SAM_PROTO_ClearQueue done [22:32:59]KKMCreateOFDPacket [22:32:59]OFDProtocolAddRootSTLVToBuf [22:32:59]FM_MakeSignedData [22:32:59]FM_MakeSignedData [22:32:59]SAM_PROTO_SignData [22:32:59]wFMCommunicate request_size=4 [22:32:59]MH_SAM_APDU [22:32:59]CAPDU: 80 0D 01 02 [22:32:59]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:32:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:32:59]Read from MH i2c: E2 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 03 00 [22:32:59]MH_I2C_Read... [22:32:59]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [22:32:59]RAPDU: 90 00 [22:32:59]wFMCommunicate OK [22:32:59]wFMCommunicate request_size=255 [22:32:59]MH_SAM_APDU [22:32:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9B 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B7 01 00 35 04 06 00 25 B9 [22:32:59]Write to MH i2c: E2 02 01 90 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9B 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B7 01 00 35 04 06 00 25 B9 00 00 B1 [22:32:59]Write i2c OK [22:32:59]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [22:33:00]RAPDU: 90 00 [22:33:00]wFMCommunicate OK [22:33:00]wFMCommunicate request_size=9 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 0D 02 02 04 1D 2C 90 67 [22:33:00]Write to MH i2c: E2 0C 00 91 04 80 0D 02 02 04 00 1D 2C 90 67 00 00 57 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:00]Read from MH i2c: E2 03 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [22:33:00]RAPDU: 90 00 [22:33:00]wFMCommunicate OK [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 0D 03 02 [22:33:00]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 0B 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 0B 00 92 04 00 B9 C5 B8 7B 8F 85 CD B1 90 00 55 [22:33:00]RAPDU: B9 C5 B8 7B 8F 85 CD B1 90 00 [22:33:00]wFMCommunicate OK [22:33:00]SAM_PROTO_SignData done [22:33:00]FM_MakeSignedData done [22:33:00]CreateOFDProtocolMessage [22:33:00]wFMCommunicate request_size=4 [22:33:00]MH_SAM_APDU [22:33:00]CAPDU: 80 11 00 00 [22:33:00]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:00]Read from MH i2c: E2 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 17 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 62 [22:33:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:33:00]wFMCommunicate OK [22:33:00]CreateOFDProtocolMessage done [22:33:00]OFDSenderStorePacket 112475 [22:33:00]StoreOFDPacket docnum=112475 [22:33:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 FC 3C 06 01 19 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9B 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B7 01 00 35 04 06 00 25 B9 1D 2C 90 67 B9 C5 B8 7B 8F 85 CD B1 [22:33:00]CheckFolder [22:33:00]dirname=/storage/ofd_packets [22:33:00]CheckFolder done [22:33:00]ProducePacketName [22:33:00]name=ofd_packets/00112475 [22:33:00]NVStorageSaveData ofd_packets/00112475 [22:33:00]File name is /storage/ofd_packets/00112475 [22:33:00]Write 300 bytes [22:33:00]NVStorageSaveData done [22:33:00]OFDSenderStorePacket done [22:33:00]KKMCreateOFDPacket done [22:33:00]NVStorageSaveData kkm_last_timestamp [22:33:00]File name is /storage/kkm_last_timestamp [22:33:00]Write 4 bytes [22:33:00]NVStorageSaveData done [22:33:00]ExternCall_PrintAddStr [22:33:00]wPrintStart [22:33:00]Write to MH i2c: 01 00 00 94 04 98 [22:33:00]Write i2c OK [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: 01 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: 01 07 00 [22:33:00]MH_I2C_Read... [22:33:00]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [22:33:00]RasterBufferAndPrint [22:33:00]line Счет N : (1)48763 [22:33:00]line ИНН: 02508201610067 [22:33:00]line Контрольно-Кассовый Чек [22:33:00]line ПРОДАЖА [22:33:00]line ТРК (МРК, ГНК) : 72 [22:33:00]line Товар: 2711190000 [22:33:00]line ГАЗ-К-5 [22:33:00]line 30.590 * 32.70 [22:33:00]line = 1000.29 [22:33:00]line НДС 12% НСП 1% [22:33:00]line > о реализуемом товаре [22:33:00]line ИТОГО: 1000.29 [22:33:00]line НСП 1% : 8.85 [22:33:00]line НДС 12% : 106.22 [22:33:00]line Наличными: 0.00 [22:33:00]line Безнал.: 1000.29 [22:33:00]line Место: АЗС № 47 "Партнер Нефть" [22:33:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:33:00]line СНО: Общий режим [22:33:00]line Чек 374 14.04.2024 22:32 [22:33:00]line Смена: 357 ФФД: 1.0 [22:33:00]line ЗНМ: 0300000138 [22:33:00]line РНМ: 0000000000094237 [22:33:00]line Версия ККМ: 001 [22:33:00]line Платежная система: О! деньги [22:33:00]line ФМ: 0000000000875019 [22:33:00]line ФД: 112475 [22:33:00]line ФПД: 41476988637287 [22:33:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223259&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112475&fm=41476988637287&tin=02508201610067®Number=0000000000094237&sum=100029 [22:33:00]OFD Sender: Processing packet 112475 [packets to send 71, broken 70] [22:33:00]ProducePacketName [22:33:00]name=ofd_packets/00112475 [22:33:00]OFD Sender: To server: pG, [22:33:00]CommunicateWithHost lk.salyk.kg:30040 [22:33:00]ConnectInit lk.salyk.kg [22:33:00]written 0, free lines is 4095 [22:33:00]Connected sock=10 [22:33:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 FC 3C 06 01 19 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 9B 59 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B7 01 00 35 04 06 00 25 B9 1D 2C 90 67 B9 C5 B8 7B 8F 85 CD B1 [22:33:01]Write to MH i2c: 01 00 00 BE 04 C2 [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: 01 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: 01 07 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: 01 07 00 BE 04 00 00 00 00 00 F2 0C C7 [22:33:01]RasterBufferAndPrint [22:33:01]line [22:33:01]line [22:33:01]line [22:33:01]line [22:33:01]line [22:33:01]written 0, free lines is 3320 [22:33:01]MH_Cut [22:33:01]Write to MH i2c: D1 01 00 C5 04 01 9B [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: D1 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: D1 01 00 [22:33:01]MH_I2C_Read... [22:33:01]Read from MH i2c: D1 01 00 C5 04 00 9A [22:33:01]Write to MH i2c: 01 00 00 C6 04 CA [22:33:01]Write i2c OK [22:33:01]MH_I2C_Read... [22:33:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A0 CD 47 00 47 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5B B7 01 00 F4 03 04 00 25 01 1C 66 B6 04 01 00 00 D7 27 4E D5 33 F6 4E C6 [22:33:01]CommunicateWithHost err = 0 [22:33:01]CheckOFDResponse [22:33:01]1017 (14) - 77093643461234 [22:33:01]1041 (16) - 0000000000875019 [22:33:01]1040 (4) - 112475 [22:33:01]1012 (4) - 14.04.2024 16:15 [22:33:01]1206 (1) - 0 [22:33:01]OFD Sender: Remove packet 112475 [22:33:01]ProducePacketName [22:33:01]name=ofd_packets/00112475 [22:33:01]NVStorageDeleteData [22:33:01]OFD Sender: No OFD packet to send [22:33:01]*** Cut start [22:33:01]*** Partial cut [22:33:01]*** CUTSNS_PIN = 1 [22:33:01]*** CUTSNS_PIN = 0 [22:33:02]*** Brake cut motor [22:33:02]Read from MH i2c: 01 [22:33:02]MH_I2C_Read... [22:33:02]*** Stop cut motor [22:33:02]*** Cut end [22:33:02]Read from MH i2c: 01 07 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: 01 07 00 C6 04 00 00 00 00 00 FF 0F DF [22:33:02]process_action close_receipt done [22:33:02]requested_data is exist [22:33:02]produce_requested_data [22:33:02]requested_item fm.sn is exist - process it [22:33:02]wFMCommunicate request_size=4 [22:33:02]MH_SAM_APDU [22:33:02]CAPDU: 80 11 00 00 [22:33:02]Write to MH i2c: E2 08 00 C7 04 80 11 00 00 00 00 00 00 45 [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:02]Read from MH i2c: E2 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 17 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 17 00 C7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 96 [22:33:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:33:02]wFMCommunicate OK [22:33:02]requested_item fd.num is exist - process it [22:33:02]SAM_PROTO_GetFieldsCounters [22:33:02]wFMCommunicate request_size=4 [22:33:02]MH_SAM_APDU [22:33:02]CAPDU: 80 13 00 00 [22:33:02]Write to MH i2c: E2 08 00 C8 04 80 13 00 00 00 00 00 00 48 [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:02]Read from MH i2c: E2 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 62 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 62 00 C8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [22:33:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:02]wFMCommunicate OK [22:33:02]SAM_PROTO_GetFieldsCounters done [22:33:02]requested_item shift.num is exist - process it [22:33:02]requested_item shift.opened is exist - process it [22:33:02]req_shift_opened [22:33:02]FM_GetShiftState [22:33:02]SAM_PROTO_GetShiftState [22:33:02]wFMCommunicate request_size=4 [22:33:02]MH_SAM_APDU [22:33:02]CAPDU: 80 13 01 00 [22:33:02]Write to MH i2c: E2 08 00 C9 04 80 13 01 00 00 00 00 00 4A [22:33:02]Write i2c OK [22:33:02]MH_I2C_Read... [22:33:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:02]Read from MH i2c: E2 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 0E 00 [22:33:02]MH_I2C_Read... [22:33:02]Read from MH i2c: E2 0E 00 C9 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E2 [22:33:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:33:02]wFMCommunicate OK [22:33:02]SAM_PROTO_GetShiftState done [22:33:02]FM_GetShiftState done [22:33:02]req_shift_opened done [22:33:02]requested_item shift.open_date is exist - process it [22:33:02]req_shift_open_date [22:33:02]req_shift_open_date done [22:33:02]produce_requested_data done [22:33:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112475,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:33:02]process_action_free close_receipt [22:33:02]json_value_free [22:33:02]json_value_free done [22:33:02]process_json_proto returns [22:33:02]Send response to host [22:33:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112475,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:33:02]free response buf [22:33:02]execute_script done [22:33:02]execute_script returns [22:33:02]free content buf [22:33:02]Sock 7.Close socket [22:33:02]Sock 7.Thread stoped [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:46]OFD Sender: No OFD packet to send [22:33:51]OFD Sender: No OFD packet to send [22:33:56]OFD Sender: No OFD packet to send [22:34:01]OFD Sender: No OFD packet to send [22:34:06]OFD Sender: No OFD packet to send [22:34:11]OFD Sender: No OFD packet to send [22:34:16]OFD Sender: No OFD packet to send [22:34:21]OFD Sender: No OFD packet to send [22:34:26]OFD Sender: No OFD packet to send [22:34:31]OFD Sender: No OFD packet to send [22:34:36]OFD Sender: No OFD packet to send [22:34:41]OFD Sender: No OFD packet to send [22:34:46]OFD Sender: No OFD packet to send [22:34:51]OFD Sender: No OFD packet to send [22:34:52]accept exits with 9 [22:34:52]New connection [22:34:52]New thread 3067317604 created [22:34:52]Thread 3067174244 joined [22:34:52]Waiting for new connection... [22:34:52] Sock 9.Parse request [22:34:52]Sock 9.Check first char [22:34:52]Sock 9.First char is OK [22:34:52]request: POST /json_proto HTTP/1.0 [22:34:52]Method: POST [22:34:52]URL: /json_proto [22:34:52]Method is POST - this is cgi request [22:34:52]url: /json_proto [22:34:52]query_string will be loaded in cgi processing [22:34:52]execute_cgi json_proto POST (null) [22:34:52]execute_cgi path=json_proto method=POST [22:34:52]POST find Content-Length [22:34:52]Host: 172.17.96.197:8080 [22:34:52]Content-Length: 796 [22:34:52]Content-Type: application/json [22:34:52] [22:34:52]POST finish read [22:34:52]Found Content-Length = 796 [22:34:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10457", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:52]execute_script... [22:34:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10457", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:52]POST & json_proto [22:34:52]process_json_proto [22:34:52]json parsed OK: [22:34:52]protocol is kg_v1.0 [22:34:52]action value=close_receipt [22:34:52]process_action close_receipt [22:34:52]cmd_close_receipt [22:34:52]MH_GetDate [22:34:52]Write to MH i2c: F0 00 00 CA 04 BD [22:34:52]Write i2c OK [22:34:52]MH_I2C_Read... [22:34:52]Read from MH i2c: F0 [22:34:52]MH_I2C_Read... [22:34:52]Read from MH i2c: F0 09 00 [22:34:52]MH_I2C_Read... [22:34:52]Read from MH i2c: F0 09 00 CA 04 00 0D 5A 1C 66 E0 85 7F 64 F7 [22:34:52]GetLastDocTimeStamp 1713133979 [22:34:52]current date 1713134093 [22:34:52]FM_GetShiftState [22:34:52]SAM_PROTO_GetShiftState [22:34:52]wFMCommunicate request_size=4 [22:34:52]MH_SAM_APDU [22:34:52]CAPDU: 80 13 01 00 [22:34:52]Write to MH i2c: E2 08 00 CB 04 80 13 01 00 00 00 00 00 4C [22:34:52]Write i2c OK [22:34:52]MH_I2C_Read... [22:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:52]Read from MH i2c: E2 [22:34:52]MH_I2C_Read... [22:34:52]Read from MH i2c: E2 0E 00 [22:34:52]MH_I2C_Read... [22:34:52]Read from MH i2c: E2 0E 00 CB 04 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E4 [22:34:52]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:34:52]wFMCommunicate OK [22:34:52]SAM_PROTO_GetShiftState done [22:34:52]FM_GetShiftState done [22:34:52]opened in 1713054696 [22:34:52]opened+sec_in_day 1713141096 [22:34:52]quantity*price = 13000 [22:34:52]sum+1 = 13001 [22:34:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 375 14.04.2024 22:34 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112476 ФПД: 91962243179270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223453&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112476&fm=91962243179270&tin=02508201610067®Number=0000000000094237&sum=13000 0 [22:34:53]StoreToDocumentArchive [22:34:53]shift 357 fd 112476 [22:34:53]save to /storage/0357/doc_00112476 [22:34:53]save last doc name /storage/0357/doc_00112476 to /storage/kkm_last_doc_name [22:34:53]save OK [22:34:53]Clear old archive folders... [22:34:53]ProcessDocumentItem done err = 0, tmpTLVsize=272 [22:34:53]tlvbuf is 01A27620 [22:34:53]SAM_PROTO_ClearQueue [22:34:53]wFMCommunicate request_size=4 [22:34:53]MH_SAM_APDU [22:34:53]CAPDU: 80 09 00 00 [22:34:53]Write to MH i2c: E2 08 00 D8 04 80 09 00 00 00 00 00 00 4E [22:34:53]Write i2c OK [22:34:53]MH_I2C_Read... [22:34:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:53]Read from MH i2c: E2 [22:34:53]MH_I2C_Read... [22:34:53]Read from MH i2c: E2 03 00 [22:34:53]MH_I2C_Read... [22:34:53]Read from MH i2c: E2 03 00 D8 04 00 90 00 50 [22:34:53]RAPDU: 90 00 [22:34:53]wFMCommunicate OK [22:34:53]SAM_PROTO_ClearQueue done [22:34:53]KKMCreateOFDPacket [22:34:53]OFDProtocolAddRootSTLVToBuf [22:34:53]FM_MakeSignedData [22:34:53]FM_MakeSignedData [22:34:53]SAM_PROTO_SignData [22:34:53]wFMCommunicate request_size=4 [22:34:53]MH_SAM_APDU [22:34:53]CAPDU: 80 0D 01 02 [22:34:53]Write to MH i2c: E2 08 00 D9 04 80 0D 01 02 00 00 00 00 56 [22:34:53]Write i2c OK [22:34:53]MH_I2C_Read... [22:34:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:53]Read from MH i2c: E2 [22:34:53]MH_I2C_Read... [22:34:53]Read from MH i2c: E2 03 00 [22:34:53]MH_I2C_Read... [22:34:53]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [22:34:53]RAPDU: 90 00 [22:34:53]wFMCommunicate OK [22:34:53]wFMCommunicate request_size=255 [22:34:53]MH_SAM_APDU [22:34:53]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0D 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [22:34:53]Write to MH i2c: E2 02 01 DA 04 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0D 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C6 [22:34:53]Write i2c OK [22:34:53]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 03 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [22:34:54]RAPDU: 90 00 [22:34:54]wFMCommunicate OK [22:34:54]wFMCommunicate request_size=31 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 5C B7 01 00 35 04 06 00 53 A3 A0 D6 63 06 [22:34:54]Write to MH i2c: E2 22 00 DB 04 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 5C B7 01 00 35 04 06 00 53 A3 A0 D6 63 06 00 00 6B [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 03 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [22:34:54]RAPDU: 90 00 [22:34:54]wFMCommunicate OK [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 0D 03 02 [22:34:54]Write to MH i2c: E2 08 00 DC 04 80 0D 03 02 00 00 00 00 5B [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 0B 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 0B 00 DC 04 00 BC A3 DA 7D 26 E1 F3 5A 90 00 66 [22:34:54]RAPDU: BC A3 DA 7D 26 E1 F3 5A 90 00 [22:34:54]wFMCommunicate OK [22:34:54]SAM_PROTO_SignData done [22:34:54]FM_MakeSignedData done [22:34:54]CreateOFDProtocolMessage [22:34:54]wFMCommunicate request_size=4 [22:34:54]MH_SAM_APDU [22:34:54]CAPDU: 80 11 00 00 [22:34:54]Write to MH i2c: E2 08 00 DD 04 80 11 00 00 00 00 00 00 5B [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:54]Read from MH i2c: E2 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: E2 17 00 DD 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AC [22:34:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:34:54]wFMCommunicate OK [22:34:54]CreateOFDProtocolMessage done [22:34:54]OFDSenderStorePacket 112476 [22:34:54]StoreOFDPacket docnum=112476 [22:34:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 33 07 1C 01 64 2E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0D 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B7 01 00 35 04 06 00 53 A3 A0 D6 63 06 BC A3 DA 7D 26 E1 F3 5A [22:34:54]CheckFolder [22:34:54]dirname=/storage/ofd_packets [22:34:54]CheckFolder done [22:34:54]ProducePacketName [22:34:54]name=ofd_packets/00112476 [22:34:54]NVStorageSaveData ofd_packets/00112476 [22:34:54]File name is /storage/ofd_packets/00112476 [22:34:54]Write 322 bytes [22:34:54]NVStorageSaveData done [22:34:54]OFDSenderStorePacket done [22:34:54]KKMCreateOFDPacket done [22:34:54]NVStorageSaveData kkm_last_timestamp [22:34:54]File name is /storage/kkm_last_timestamp [22:34:54]Write 4 bytes [22:34:54]NVStorageSaveData done [22:34:54]ExternCall_PrintAddStr [22:34:54]wPrintStart [22:34:54]Write to MH i2c: 01 00 00 DE 04 E2 [22:34:54]Write i2c OK [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: 01 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: 01 07 00 [22:34:54]MH_I2C_Read... [22:34:54]Read from MH i2c: 01 07 00 DE 04 00 00 00 00 00 FF 0F F7 [22:34:54]RasterBufferAndPrint [22:34:54]line Счет N : (3)10457 [22:34:54]line ИНН: 02508201610067 [22:34:54]line Контрольно-Кассовый Чек [22:34:54]line ПРОДАЖА [22:34:54]line Товар: 48745000 [22:34:54]line Сигареты Winston Purple Mix [22:34:54]line 1.000 * 130.00 [22:34:54]line = 130.00 [22:34:54]line НДС 12% НСП 1% [22:34:54]line > о реализуемом товаре [22:34:54]line ИТОГО: 130.00 [22:34:54]line НСП 1% : 1.15 [22:34:54]line НДС 12% : 13.80 [22:34:54]line Наличными: 0.00 [22:34:54]line Безнал.: 130.00 [22:34:54]line Место: АЗС № 47 "Партнер Нефть" [22:34:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:34:54]line СНО: Общий режим [22:34:54]line Чек 375 14.04.2024 22:34 [22:34:54]line Смена: 357 ФФД: 1.0 [22:34:54]line ЗНМ: 0300000138 [22:34:54]line РНМ: 0000000000094237 [22:34:54]line Версия ККМ: 001 [22:34:54]line Платежная система: Бакай Банк [22:34:54]line ФМ: 0000000000875019 [22:34:54]line ФД: 112476 [22:34:54]line ФПД: 91962243179270 [22:34:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223453&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112476&fm=91962243179270&tin=02508201610067®Number=0000000000094237&sum=13000 [22:34:54]line 0 [22:34:54]OFD Sender: Processing packet 112476 [packets to send 71, broken 70] [22:34:54]ProducePacketName [22:34:54]name=ofd_packets/00112476 [22:34:54]OFD Sender: To server: pG, [22:34:54]CommunicateWithHost lk.salyk.kg:30040 [22:34:54]ConnectInit lk.salyk.kg [22:34:54]written 0, free lines is 4095 [22:34:54]Connected sock=10 [22:34:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 33 07 1C 01 64 2E 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 0D 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B7 01 00 35 04 06 00 53 A3 A0 D6 63 06 BC A3 DA 7D 26 E1 F3 5A [22:34:55]Write to MH i2c: 01 00 00 08 05 0D [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: 01 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: 01 07 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 D0 0C F0 [22:34:55]RasterBufferAndPrint [22:34:55]line [22:34:55]line [22:34:55]line [22:34:55]line [22:34:55]line [22:34:55]written 0, free lines is 3285 [22:34:55]MH_Cut [22:34:55]Write to MH i2c: D1 01 00 0F 05 01 E6 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: D1 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: D1 01 00 [22:34:55]MH_I2C_Read... [22:34:55]Read from MH i2c: D1 01 00 0F 05 00 E5 [22:34:55]Write to MH i2c: 01 00 00 10 05 15 [22:34:55]Write i2c OK [22:34:55]MH_I2C_Read... [22:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 12 7A 47 00 65 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5C B7 01 00 F4 03 04 00 97 01 1C 66 B6 04 01 00 00 23 B0 DF A7 6C B5 43 3A [22:34:55]CommunicateWithHost err = 0 [22:34:55]CheckOFDResponse [22:34:55]1017 (14) - 77093643461234 [22:34:55]1041 (16) - 0000000000875019 [22:34:55]1040 (4) - 112476 [22:34:55]1012 (4) - 14.04.2024 16:17 [22:34:55]1206 (1) - 0 [22:34:55]OFD Sender: Remove packet 112476 [22:34:55]ProducePacketName [22:34:55]name=ofd_packets/00112476 [22:34:55]NVStorageDeleteData [22:34:55]OFD Sender: No OFD packet to send [22:34:55]*** Cut start [22:34:55]*** Partial cut [22:34:55]*** CUTSNS_PIN = 1 [22:34:55]*** CUTSNS_PIN = 0 [22:34:56]*** Brake cut motor [22:34:56]Read from MH i2c: 01 [22:34:56]MH_I2C_Read... [22:34:56]*** Stop cut motor [22:34:56]*** Cut end [22:34:56]Read from MH i2c: 01 07 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: 01 07 00 10 05 00 00 00 00 00 FF 0F 2A [22:34:56]process_action close_receipt done [22:34:56]requested_data is exist [22:34:56]produce_requested_data [22:34:56]requested_item fm.sn is exist - process it [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 11 00 00 [22:34:56]Write to MH i2c: E2 08 00 11 05 80 11 00 00 00 00 00 00 90 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 17 00 11 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E1 [22:34:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:34:56]wFMCommunicate OK [22:34:56]requested_item fd.num is exist - process it [22:34:56]SAM_PROTO_GetFieldsCounters [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 13 00 00 [22:34:56]Write to MH i2c: E2 08 00 12 05 80 13 00 00 00 00 00 00 93 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 62 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 62 00 12 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [22:34:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:56]wFMCommunicate OK [22:34:56]SAM_PROTO_GetFieldsCounters done [22:34:56]requested_item shift.num is exist - process it [22:34:56]requested_item shift.opened is exist - process it [22:34:56]req_shift_opened [22:34:56]FM_GetShiftState [22:34:56]SAM_PROTO_GetShiftState [22:34:56]wFMCommunicate request_size=4 [22:34:56]MH_SAM_APDU [22:34:56]CAPDU: 80 13 01 00 [22:34:56]Write to MH i2c: E2 08 00 13 05 80 13 01 00 00 00 00 00 95 [22:34:56]Write i2c OK [22:34:56]MH_I2C_Read... [22:34:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:56]Read from MH i2c: E2 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 0E 00 [22:34:56]MH_I2C_Read... [22:34:56]Read from MH i2c: E2 0E 00 13 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2D [22:34:56]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:34:56]wFMCommunicate OK [22:34:56]SAM_PROTO_GetShiftState done [22:34:56]FM_GetShiftState done [22:34:56]req_shift_opened done [22:34:56]requested_item shift.open_date is exist - process it [22:34:56]req_shift_open_date [22:34:56]req_shift_open_date done [22:34:56]produce_requested_data done [22:34:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112476,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:34:56]process_action_free close_receipt [22:34:56]json_value_free [22:34:56]json_value_free done [22:34:56]process_json_proto returns [22:34:56]Send response to host [22:34:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112476,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:34:56]free response buf [22:34:56]execute_script done [22:34:56]execute_script returns [22:34:56]free content buf [22:34:56]Sock 9.Close socket [22:34:56]Sock 9.Thread stoped [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:20]OFD Sender: No OFD packet to send [22:35:25]OFD Sender: No OFD packet to send [22:35:30]OFD Sender: No OFD packet to send [22:35:35]OFD Sender: No OFD packet to send [22:35:40]OFD Sender: No OFD packet to send [22:35:45]OFD Sender: No OFD packet to send [22:35:50]OFD Sender: No OFD packet to send [22:35:55]OFD Sender: No OFD packet to send [22:36:00]OFD Sender: No OFD packet to send [22:36:05]OFD Sender: No OFD packet to send [22:36:10]OFD Sender: No OFD packet to send [22:36:15]OFD Sender: No OFD packet to send [22:36:20]OFD Sender: No OFD packet to send [22:36:25]OFD Sender: No OFD packet to send [22:36:30]OFD Sender: No OFD packet to send [22:36:35]OFD Sender: No OFD packet to send [22:36:40]OFD Sender: No OFD packet to send [22:36:45]OFD Sender: No OFD packet to send [22:36:50]OFD Sender: No OFD packet to send [22:36:55]OFD Sender: No OFD packet to send [22:37:00]OFD Sender: No OFD packet to send [22:37:05]OFD Sender: No OFD packet to send [22:37:10]OFD Sender: No OFD packet to send [22:37:15]OFD Sender: No OFD packet to send [22:37:20]OFD Sender: No OFD packet to send [22:37:25]OFD Sender: No OFD packet to send [22:37:30]OFD Sender: No OFD packet to send [22:37:35]OFD Sender: No OFD packet to send [22:37:40]OFD Sender: No OFD packet to send [22:37:44]accept exits with 7 [22:37:44]New connection [22:37:44]New thread 3067174244 created [22:37:44]Thread 3067317604 joined [22:37:44]Waiting for new connection... [22:37:44] Sock 7.Parse request [22:37:44]Sock 7.Check first char [22:37:44]Sock 7.First char is OK [22:37:44]request: POST /json_proto HTTP/1.0 [22:37:44]Method: POST [22:37:44]URL: /json_proto [22:37:44]Method is POST - this is cgi request [22:37:44]url: /json_proto [22:37:44]query_string will be loaded in cgi processing [22:37:44]execute_cgi json_proto POST (null) [22:37:44]execute_cgi path=json_proto method=POST [22:37:44]POST find Content-Length [22:37:44]Host: 172.17.96.197:8080 [22:37:44]Content-Length: 676 [22:37:44]Content-Type: application/json [22:37:44] [22:37:44]POST finish read [22:37:44]Found Content-Length = 676 [22:37:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [22:37:44]execute_script... [22:37:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48764", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [22:37:44]POST & json_proto [22:37:44]process_json_proto [22:37:44]json parsed OK: [22:37:44]protocol is kg_v1.0 [22:37:44]action value=close_receipt [22:37:44]process_action close_receipt [22:37:44]cmd_close_receipt [22:37:44]MH_GetDate [22:37:44]Write to MH i2c: F0 00 00 14 05 08 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: F0 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: F0 09 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: F0 09 00 14 05 00 B9 5A 1C 66 E0 85 7F 64 EE [22:37:44]GetLastDocTimeStamp 1713134093 [22:37:44]current date 1713134265 [22:37:44]FM_GetShiftState [22:37:44]SAM_PROTO_GetShiftState [22:37:44]wFMCommunicate request_size=4 [22:37:44]MH_SAM_APDU [22:37:44]CAPDU: 80 13 01 00 [22:37:44]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [22:37:44]Write i2c OK [22:37:44]MH_I2C_Read... [22:37:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:44]Read from MH i2c: E2 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 0E 00 [22:37:44]MH_I2C_Read... [22:37:44]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2F [22:37:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:37:44]wFMCommunicate OK [22:37:44]SAM_PROTO_GetShiftState done [22:37:44]FM_GetShiftState done [22:37:44]opened in 1713054696 [22:37:44]opened+sec_in_day 1713141096 [22:37:44]quantity*price = 60056 [22:37:44]sum+1 = 60057 [22:37:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 376 14.04.2024 22:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112477 ФПД: 96106263956189 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112477&fm=96106263956189&tin=02508201610067®Number=0000000000094237&sum=60000 [22:37:45]StoreToDocumentArchive [22:37:45]shift 357 fd 112477 [22:37:45]save to /storage/0357/doc_00112477 [22:37:45]save last doc name /storage/0357/doc_00112477 to /storage/kkm_last_doc_name [22:37:45]save OK [22:37:45]Clear old archive folders... [22:37:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:37:45]tlvbuf is 01A06BB0 [22:37:45]SAM_PROTO_ClearQueue [22:37:45]wFMCommunicate request_size=4 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 09 00 00 [22:37:45]Write to MH i2c: E2 08 00 22 05 80 09 00 00 00 00 00 00 99 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 22 05 00 90 00 9B [22:37:45]RAPDU: 90 00 [22:37:45]wFMCommunicate OK [22:37:45]SAM_PROTO_ClearQueue done [22:37:45]KKMCreateOFDPacket [22:37:45]OFDProtocolAddRootSTLVToBuf [22:37:45]FM_MakeSignedData [22:37:45]FM_MakeSignedData [22:37:45]SAM_PROTO_SignData [22:37:45]wFMCommunicate request_size=4 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 0D 01 02 [22:37:45]Write to MH i2c: E2 08 00 23 05 80 0D 01 02 00 00 00 00 A1 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 23 05 00 90 00 9C [22:37:45]RAPDU: 90 00 [22:37:45]wFMCommunicate OK [22:37:45]wFMCommunicate request_size=255 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 78 01 00 00 F4 03 04 00 B9 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B7 01 00 35 04 06 00 57 [22:37:45]Write to MH i2c: E2 02 01 24 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 78 01 00 00 F4 03 04 00 B9 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B7 01 00 35 04 06 00 57 00 00 8D [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [22:37:45]RAPDU: 90 00 [22:37:45]wFMCommunicate OK [22:37:45]wFMCommunicate request_size=10 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 0D 02 02 05 68 7B B9 4A DD [22:37:45]Write to MH i2c: E2 0D 00 25 05 80 0D 02 02 05 00 68 7B B9 4A DD 00 00 71 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [22:37:45]RAPDU: 90 00 [22:37:45]wFMCommunicate OK [22:37:45]wFMCommunicate request_size=4 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 0D 03 02 [22:37:45]Write to MH i2c: E2 08 00 26 05 80 0D 03 02 00 00 00 00 A6 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 0B 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 0B 00 26 05 00 28 3D C5 11 57 85 7A 1F 90 00 57 [22:37:45]RAPDU: 28 3D C5 11 57 85 7A 1F 90 00 [22:37:45]wFMCommunicate OK [22:37:45]SAM_PROTO_SignData done [22:37:45]FM_MakeSignedData done [22:37:45]CreateOFDProtocolMessage [22:37:45]wFMCommunicate request_size=4 [22:37:45]MH_SAM_APDU [22:37:45]CAPDU: 80 11 00 00 [22:37:45]Write to MH i2c: E2 08 00 27 05 80 11 00 00 00 00 00 00 A6 [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:45]Read from MH i2c: E2 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 17 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: E2 17 00 27 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F7 [22:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:37:45]wFMCommunicate OK [22:37:45]CreateOFDProtocolMessage done [22:37:45]OFDSenderStorePacket 112477 [22:37:45]StoreOFDPacket docnum=112477 [22:37:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 21 DF 07 01 74 4D 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 78 01 00 00 F4 03 04 00 B9 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B7 01 00 35 04 06 00 57 68 7B B9 4A DD 28 3D C5 11 57 85 7A 1F [22:37:45]CheckFolder [22:37:45]dirname=/storage/ofd_packets [22:37:45]CheckFolder done [22:37:45]ProducePacketName [22:37:45]name=ofd_packets/00112477 [22:37:45]NVStorageSaveData ofd_packets/00112477 [22:37:45]File name is /storage/ofd_packets/00112477 [22:37:45]Write 301 bytes [22:37:45]NVStorageSaveData done [22:37:45]OFDSenderStorePacket done [22:37:45]KKMCreateOFDPacket done [22:37:45]NVStorageSaveData kkm_last_timestamp [22:37:45]File name is /storage/kkm_last_timestamp [22:37:45]Write 4 bytes [22:37:45]NVStorageSaveData done [22:37:45]ExternCall_PrintAddStr [22:37:45]wPrintStart [22:37:45]Write to MH i2c: 01 00 00 28 05 2D [22:37:45]Write i2c OK [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 07 00 [22:37:45]MH_I2C_Read... [22:37:45]Read from MH i2c: 01 07 00 28 05 00 00 00 00 00 FF 0F 42 [22:37:45]RasterBufferAndPrint [22:37:45]line Счет N : (1)48764 [22:37:45]line ИНН: 02508201610067 [22:37:45]line Контрольно-Кассовый Чек [22:37:45]line ПРОДАЖА [22:37:45]line ТРК (МРК, ГНК) : 11 [22:37:45]line Товар: 2710124130 [22:37:45]line Аи-92-К-5 [22:37:45]line 9.340 * 64.30 [22:37:45]line = 600.56 [22:37:45]line НДС 12% НСП 1% [22:37:45]line > о реализуемом товаре [22:37:45]line ОКРУГЛЕНИЕ: -0.56 [22:37:45]line ИТОГО: 600.00 [22:37:45]line Внесено: 600.00 [22:37:45]line СДАЧА: 0.00 [22:37:45]line НСП 1% : 5.31 [22:37:45]line НДС 12% : 63.78 [22:37:45]line Наличными: 600.00 [22:37:45]line Безнал.: 0.00 [22:37:45]line Место: АЗС № 47 "Партнер Нефть" [22:37:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:37:45]line СНО: Общий режим [22:37:45]line Чек 376 14.04.2024 22:37 [22:37:45]line Смена: 357 ФФД: 1.0 [22:37:45]line ЗНМ: 0300000138 [22:37:45]line РНМ: 0000000000094237 [22:37:45]line Версия ККМ: 001 [22:37:45]line ФМ: 0000000000875019 [22:37:45]line ФД: 112477 [22:37:45]line ФПД: 96106263956189 [22:37:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223745&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112477&fm=96106263956189&tin=02508201610067®Number=0000000000094237&sum=60000 [22:37:46]OFD Sender: Processing packet 112477 [packets to send 71, broken 70] [22:37:46]ProducePacketName [22:37:46]name=ofd_packets/00112477 [22:37:46]OFD Sender: To server: pG, [22:37:46]CommunicateWithHost lk.salyk.kg:30040 [22:37:46]ConnectInit lk.salyk.kg [22:37:46]written 0, free lines is 4095 [22:37:46]Connected sock=10 [22:37:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 21 DF 07 01 74 4D 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 78 01 00 00 F4 03 04 00 B9 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B7 01 00 35 04 06 00 57 68 7B B9 4A DD 28 3D C5 11 57 85 7A 1F [22:37:46]Write to MH i2c: 01 00 00 53 05 58 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: 01 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: 01 07 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 DC 0C 47 [22:37:46]RasterBufferAndPrint [22:37:46]line [22:37:46]line [22:37:46]line [22:37:46]line [22:37:46]line [22:37:46]written 0, free lines is 3298 [22:37:46]MH_Cut [22:37:46]Write to MH i2c: D1 01 00 5A 05 01 31 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: D1 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: D1 01 00 [22:37:46]MH_I2C_Read... [22:37:46]Read from MH i2c: D1 01 00 5A 05 00 30 [22:37:46]Write to MH i2c: 01 00 00 5B 05 60 [22:37:46]Write i2c OK [22:37:46]MH_I2C_Read... [22:37:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A 5C 47 00 F8 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5D B7 01 00 F4 03 04 00 43 02 1C 66 B6 04 01 00 00 86 67 E7 D8 DF E6 77 35 [22:37:46]CommunicateWithHost err = 0 [22:37:46]CheckOFDResponse [22:37:46]1017 (14) - 77093643461234 [22:37:46]1041 (16) - 0000000000875019 [22:37:46]1040 (4) - 112477 [22:37:46]1012 (4) - 14.04.2024 16:20 [22:37:46]1206 (1) - 0 [22:37:46]OFD Sender: Remove packet 112477 [22:37:46]ProducePacketName [22:37:46]name=ofd_packets/00112477 [22:37:46]NVStorageDeleteData [22:37:47]OFD Sender: No OFD packet to send [22:37:47]*** Cut start [22:37:47]*** Partial cut [22:37:47]*** CUTSNS_PIN = 1 [22:37:47]*** CUTSNS_PIN = 0 [22:37:47]*** Brake cut motor [22:37:47]Read from MH i2c: 01 [22:37:47]MH_I2C_Read... [22:37:47]*** Stop cut motor [22:37:47]*** Cut end [22:37:47]Read from MH i2c: 01 07 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: 01 07 00 5B 05 00 00 00 00 00 FF 0F 75 [22:37:47]process_action close_receipt done [22:37:47]requested_data is exist [22:37:47]produce_requested_data [22:37:47]requested_item fm.sn is exist - process it [22:37:47]wFMCommunicate request_size=4 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 11 00 00 [22:37:47]Write to MH i2c: E2 08 00 5C 05 80 11 00 00 00 00 00 00 DB [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 17 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 17 00 5C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2C [22:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:37:48]wFMCommunicate OK [22:37:48]requested_item fd.num is exist - process it [22:37:48]SAM_PROTO_GetFieldsCounters [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 13 00 00 [22:37:48]Write to MH i2c: E2 08 00 5D 05 80 13 00 00 00 00 00 00 DE [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 62 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 62 00 5D 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:37:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:48]wFMCommunicate OK [22:37:48]SAM_PROTO_GetFieldsCounters done [22:37:48]requested_item shift.num is exist - process it [22:37:48]requested_item shift.opened is exist - process it [22:37:48]req_shift_opened [22:37:48]FM_GetShiftState [22:37:48]SAM_PROTO_GetShiftState [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 13 01 00 [22:37:48]Write to MH i2c: E2 08 00 5E 05 80 13 01 00 00 00 00 00 E0 [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 0E 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 0E 00 5E 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 78 [22:37:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:37:48]wFMCommunicate OK [22:37:48]SAM_PROTO_GetShiftState done [22:37:48]FM_GetShiftState done [22:37:48]req_shift_opened done [22:37:48]requested_item shift.open_date is exist - process it [22:37:48]req_shift_open_date [22:37:48]req_shift_open_date done [22:37:48]produce_requested_data done [22:37:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112477,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:37:48]process_action_free close_receipt [22:37:48]json_value_free [22:37:48]json_value_free done [22:37:48]process_json_proto returns [22:37:48]Send response to host [22:37:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112477,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:37:48]free response buf [22:37:48]execute_script done [22:37:48]execute_script returns [22:37:48]free content buf [22:37:48]Sock 7.Close socket [22:37:48]Sock 7.Thread stoped [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:02]accept exits with 9 [22:38:02]New connection [22:38:02]New thread 3067317604 created [22:38:02]Thread 3067174244 joined [22:38:02]Waiting for new connection... [22:38:02] Sock 9.Parse request [22:38:02]Sock 9.Check first char [22:38:02]Sock 9.First char is OK [22:38:02]request: POST /json_proto HTTP/1.0 [22:38:02]Method: POST [22:38:02]URL: /json_proto [22:38:02]Method is POST - this is cgi request [22:38:02]url: /json_proto [22:38:02]query_string will be loaded in cgi processing [22:38:02]execute_cgi json_proto POST (null) [22:38:02]execute_cgi path=json_proto method=POST [22:38:02]POST find Content-Length [22:38:02]Host: 172.17.96.197:8080 [22:38:02]Content-Length: 676 [22:38:02]Content-Type: application/json [22:38:02] [22:38:02]POST finish read [22:38:02]Found Content-Length = 676 [22:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48765", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [22:38:02]execute_script... [22:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48765", "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.30, "quantity" : 9.340, "sum" : 600.56, "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" ] } } [22:38:02]POST & json_proto [22:38:02]process_json_proto [22:38:02]json parsed OK: [22:38:02]protocol is kg_v1.0 [22:38:02]action value=close_receipt [22:38:02]process_action close_receipt [22:38:02]cmd_close_receipt [22:38:02]MH_GetDate [22:38:02]Write to MH i2c: F0 00 00 5F 05 53 [22:38:02]Write i2c OK [22:38:02]MH_I2C_Read... [22:38:02]Read from MH i2c: F0 [22:38:02]MH_I2C_Read... [22:38:02]Read from MH i2c: F0 09 00 [22:38:02]MH_I2C_Read... [22:38:02]Read from MH i2c: F0 09 00 5F 05 00 CB 5A 1C 66 E0 85 7F 64 4B [22:38:02]GetLastDocTimeStamp 1713134265 [22:38:02]current date 1713134283 [22:38:02]FM_GetShiftState [22:38:02]SAM_PROTO_GetShiftState [22:38:02]wFMCommunicate request_size=4 [22:38:02]MH_SAM_APDU [22:38:02]CAPDU: 80 13 01 00 [22:38:02]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [22:38:02]Write i2c OK [22:38:02]MH_I2C_Read... [22:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:02]Read from MH i2c: E2 [22:38:02]MH_I2C_Read... [22:38:02]Read from MH i2c: E2 0E 00 [22:38:02]MH_I2C_Read... [22:38:02]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7A [22:38:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:38:02]wFMCommunicate OK [22:38:02]SAM_PROTO_GetShiftState done [22:38:02]FM_GetShiftState done [22:38:02]opened in 1713054696 [22:38:02]opened+sec_in_day 1713141096 [22:38:02]quantity*price = 60056 [22:38:02]sum+1 = 60057 [22:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 377 14.04.2024 22:38 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112478 ФПД: 235640858255224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223803&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112478&fm=235640858255224&tin=02508201610067®Number=0000000000094237&sum=60000 [22:38:03]StoreToDocumentArchive [22:38:03]shift 357 fd 112478 [22:38:03]save to /storage/0357/doc_00112478 [22:38:03]save last doc name /storage/0357/doc_00112478 to /storage/kkm_last_doc_name [22:38:03]save OK [22:38:03]Clear old archive folders... [22:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:38:03]tlvbuf is B6F01EA0 [22:38:03]SAM_PROTO_ClearQueue [22:38:03]wFMCommunicate request_size=4 [22:38:03]MH_SAM_APDU [22:38:03]CAPDU: 80 09 00 00 [22:38:03]Write to MH i2c: E2 08 00 6D 05 80 09 00 00 00 00 00 00 E4 [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [22:38:03]RAPDU: 90 00 [22:38:03]wFMCommunicate OK [22:38:03]SAM_PROTO_ClearQueue done [22:38:03]KKMCreateOFDPacket [22:38:03]OFDProtocolAddRootSTLVToBuf [22:38:03]FM_MakeSignedData [22:38:03]FM_MakeSignedData [22:38:03]SAM_PROTO_SignData [22:38:03]wFMCommunicate request_size=4 [22:38:03]MH_SAM_APDU [22:38:03]CAPDU: 80 0D 01 02 [22:38:03]Write to MH i2c: E2 08 00 6E 05 80 0D 01 02 00 00 00 00 EC [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [22:38:03]RAPDU: 90 00 [22:38:03]wFMCommunicate OK [22:38:03]wFMCommunicate request_size=255 [22:38:03]MH_SAM_APDU [22:38: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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 79 01 00 00 F4 03 04 00 CB 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B7 01 00 35 04 06 00 D6 [22:38:03]Write to MH i2c: E2 02 01 6F 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 79 01 00 00 F4 03 04 00 CB 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B7 01 00 35 04 06 00 D6 00 00 6B [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [22:38:03]RAPDU: 90 00 [22:38:03]wFMCommunicate OK [22:38:03]wFMCommunicate request_size=10 [22:38:03]MH_SAM_APDU [22:38:03]CAPDU: 80 0D 02 02 05 50 69 A6 9F 78 [22:38:03]Write to MH i2c: E2 0D 00 70 05 80 0D 02 02 05 00 50 69 A6 9F 78 00 00 6F [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [22:38:03]RAPDU: 90 00 [22:38:03]wFMCommunicate OK [22:38:03]wFMCommunicate request_size=4 [22:38:03]MH_SAM_APDU [22:38:03]CAPDU: 80 0D 03 02 [22:38:03]Write to MH i2c: E2 08 00 71 05 80 0D 03 02 00 00 00 00 F1 [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 0B 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 0B 00 71 05 00 30 B6 5B 64 C7 D2 84 8F 90 00 43 [22:38:03]RAPDU: 30 B6 5B 64 C7 D2 84 8F 90 00 [22:38:03]wFMCommunicate OK [22:38:03]SAM_PROTO_SignData done [22:38:03]FM_MakeSignedData done [22:38:03]CreateOFDProtocolMessage [22:38:03]wFMCommunicate request_size=4 [22:38:03]MH_SAM_APDU [22:38:03]CAPDU: 80 11 00 00 [22:38:03]Write to MH i2c: E2 08 00 72 05 80 11 00 00 00 00 00 00 F1 [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:03]Read from MH i2c: E2 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 17 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: E2 17 00 72 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 42 [22:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:38:03]wFMCommunicate OK [22:38:03]CreateOFDProtocolMessage done [22:38:03]OFDSenderStorePacket 112478 [22:38:03]StoreOFDPacket docnum=112478 [22:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E5 DE 07 01 98 76 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 79 01 00 00 F4 03 04 00 CB 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B7 01 00 35 04 06 00 D6 50 69 A6 9F 78 30 B6 5B 64 C7 D2 84 8F [22:38:03]CheckFolder [22:38:03]dirname=/storage/ofd_packets [22:38:03]CheckFolder done [22:38:03]ProducePacketName [22:38:03]name=ofd_packets/00112478 [22:38:03]NVStorageSaveData ofd_packets/00112478 [22:38:03]File name is /storage/ofd_packets/00112478 [22:38:03]Write 301 bytes [22:38:03]NVStorageSaveData done [22:38:03]OFDSenderStorePacket done [22:38:03]KKMCreateOFDPacket done [22:38:03]NVStorageSaveData kkm_last_timestamp [22:38:03]File name is /storage/kkm_last_timestamp [22:38:03]Write 4 bytes [22:38:03]NVStorageSaveData done [22:38:03]ExternCall_PrintAddStr [22:38:03]wPrintStart [22:38:03]Write to MH i2c: 01 00 00 73 05 78 [22:38:03]Write i2c OK [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: 01 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: 01 07 00 [22:38:03]MH_I2C_Read... [22:38:03]Read from MH i2c: 01 07 00 73 05 00 00 00 00 00 FF 0F 8D [22:38:03]RasterBufferAndPrint [22:38:03]line Счет N : (1)48765 [22:38:03]line ИНН: 02508201610067 [22:38:03]line Контрольно-Кассовый Чек [22:38:03]line ПРОДАЖА [22:38:03]line ТРК (МРК, ГНК) : 32 [22:38:03]line Товар: 2710124130 [22:38:03]line Аи-92-К-5 [22:38:03]line 9.340 * 64.30 [22:38:03]line = 600.56 [22:38:03]line НДС 12% НСП 1% [22:38:03]line > о реализуемом товаре [22:38:03]line ОКРУГЛЕНИЕ: -0.56 [22:38:03]line ИТОГО: 600.00 [22:38:03]line Внесено: 600.00 [22:38:03]line СДАЧА: 0.00 [22:38:03]line НСП 1% : 5.31 [22:38:03]line НДС 12% : 63.78 [22:38:03]line Наличными: 600.00 [22:38:03]line Безнал.: 0.00 [22:38:03]line Место: АЗС № 47 "Партнер Нефть" [22:38:03]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:38:03]line СНО: Общий режим [22:38:03]line Чек 377 14.04.2024 22:38 [22:38:03]line Смена: 357 ФФД: 1.0 [22:38:03]line ЗНМ: 0300000138 [22:38:03]line РНМ: 0000000000094237 [22:38:03]line Версия ККМ: 001 [22:38:03]line ФМ: 0000000000875019 [22:38:03]line ФД: 112478 [22:38:03]line ФПД: 235640858255224 [22:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T223803&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112478&fm=235640858255224&tin=02508201610067®Number=0000000000094237&sum=60000 [22:38:04]OFD Sender: Processing packet 112478 [packets to send 71, broken 70] [22:38:04]ProducePacketName [22:38:04]name=ofd_packets/00112478 [22:38:04]OFD Sender: To server: pG, [22:38:04]CommunicateWithHost lk.salyk.kg:30040 [22:38:04]ConnectInit lk.salyk.kg [22:38:04]written 0, free lines is 4095 [22:38:04]Connected sock=10 [22:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 E5 DE 07 01 98 76 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 7C 24 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 98 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 EA 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 79 01 00 00 F4 03 04 00 CB 5A 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B7 01 00 35 04 06 00 D6 50 69 A6 9F 78 30 B6 5B 64 C7 D2 84 8F [22:38:04]Write to MH i2c: 01 00 00 9E 05 A3 [22:38:04]Write i2c OK [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: 01 [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: 01 07 00 [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: 01 07 00 9E 05 00 00 00 00 00 DC 0C 92 [22:38:04]RasterBufferAndPrint [22:38:04]line [22:38:04]line [22:38:04]line [22:38:04]line [22:38:04]line [22:38:04]written 0, free lines is 3299 [22:38:04]MH_Cut [22:38:04]Write to MH i2c: D1 01 00 A5 05 01 7C [22:38:04]Write i2c OK [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: D1 [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: D1 01 00 [22:38:04]MH_I2C_Read... [22:38:04]Read from MH i2c: D1 01 00 A5 05 00 7B [22:38:04]Write to MH i2c: 01 00 00 A6 05 AB [22:38:04]Write i2c OK [22:38:04]MH_I2C_Read... [22:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 26 C9 47 00 4A 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5E B7 01 00 F4 03 04 00 55 02 1C 66 B6 04 01 00 00 52 47 1C 77 5B 0E 47 62 [22:38:04]CommunicateWithHost err = 0 [22:38:04]CheckOFDResponse [22:38:04]1017 (14) - 77093643461234 [22:38:04]1041 (16) - 0000000000875019 [22:38:04]1040 (4) - 112478 [22:38:04]1012 (4) - 14.04.2024 16:20 [22:38:04]1206 (1) - 0 [22:38:04]OFD Sender: Remove packet 112478 [22:38:04]ProducePacketName [22:38:04]name=ofd_packets/00112478 [22:38:04]NVStorageDeleteData [22:38:05]OFD Sender: No OFD packet to send [22:38:05]*** Cut start [22:38:05]*** Partial cut [22:38:05]*** CUTSNS_PIN = 1 [22:38:05]*** CUTSNS_PIN = 0 [22:38:05]*** Brake cut motor [22:38:05]Read from MH i2c: 01 [22:38:05]MH_I2C_Read... [22:38:06]*** Stop cut motor [22:38:06]*** Cut end [22:38:06]Read from MH i2c: 01 07 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: 01 07 00 A6 05 00 00 00 00 00 FF 0F C0 [22:38:06]process_action close_receipt done [22:38:06]requested_data is exist [22:38:06]produce_requested_data [22:38:06]requested_item fm.sn is exist - process it [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 11 00 00 [22:38:06]Write to MH i2c: E2 08 00 A7 05 80 11 00 00 00 00 00 00 26 [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 17 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 17 00 A7 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 77 [22:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:38:06]wFMCommunicate OK [22:38:06]requested_item fd.num is exist - process it [22:38:06]SAM_PROTO_GetFieldsCounters [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 13 00 00 [22:38:06]Write to MH i2c: E2 08 00 A8 05 80 13 00 00 00 00 00 00 29 [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 62 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 62 00 A8 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [22:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:06]wFMCommunicate OK [22:38:06]SAM_PROTO_GetFieldsCounters done [22:38:06]requested_item shift.num is exist - process it [22:38:06]requested_item shift.opened is exist - process it [22:38:06]req_shift_opened [22:38:06]FM_GetShiftState [22:38:06]SAM_PROTO_GetShiftState [22:38:06]wFMCommunicate request_size=4 [22:38:06]MH_SAM_APDU [22:38:06]CAPDU: 80 13 01 00 [22:38:06]Write to MH i2c: E2 08 00 A9 05 80 13 01 00 00 00 00 00 2B [22:38:06]Write i2c OK [22:38:06]MH_I2C_Read... [22:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:06]Read from MH i2c: E2 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 0E 00 [22:38:06]MH_I2C_Read... [22:38:06]Read from MH i2c: E2 0E 00 A9 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C3 [22:38:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:38:06]wFMCommunicate OK [22:38:06]SAM_PROTO_GetShiftState done [22:38:06]FM_GetShiftState done [22:38:06]req_shift_opened done [22:38:06]requested_item shift.open_date is exist - process it [22:38:06]req_shift_open_date [22:38:06]req_shift_open_date done [22:38:06]produce_requested_data done [22:38:06]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112478,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:38:06]process_action_free close_receipt [22:38:06]json_value_free [22:38:06]json_value_free done [22:38:06]process_json_proto returns [22:38:06]Send response to host [22:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112478,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:38:06]free response buf [22:38:06]execute_script done [22:38:06]execute_script returns [22:38:06]free content buf [22:38:06]Sock 9.Close socket [22:38:06]Sock 9.Thread stoped [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:17]accept exits with 7 [22:41:17]New connection [22:41:17]New thread 3067174244 created [22:41:17]Thread 3067317604 joined [22:41:17]Waiting for new connection... [22:41:17] Sock 7.Parse request [22:41:17]Sock 7.Check first char [22:41:17]Sock 7.First char is OK [22:41:17]request: POST /json_proto HTTP/1.0 [22:41:17]Method: POST [22:41:17]URL: /json_proto [22:41:17]Method is POST - this is cgi request [22:41:17]url: /json_proto [22:41:17]query_string will be loaded in cgi processing [22:41:17]execute_cgi json_proto POST (null) [22:41:17]execute_cgi path=json_proto method=POST [22:41:17]POST find Content-Length [22:41:17]Host: 172.17.96.197:8080 [22:41:17]Content-Length: 1208 [22:41:17]Content-Type: application/json [22:41:17] [22:41:17]POST finish read [22:41:17]Found Content-Length = 1208 [22:41:17]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48766\u000A14.04.2024 22:20\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 18.720 x 64.30\u000A\u0418\u0422\u041E\u0413: 1203.70\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\u000A74503\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:17]execute_script... [22:41:17]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 47\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. \u000A\u0421\u0447\u0435\u0442 N : (1)48766\u000A14.04.2024 22:20\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 18.720 x 64.30\u000A\u0418\u0422\u041E\u0413: 1203.70\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\u000A74503\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:17]POST & json_proto [22:41:17]process_json_proto [22:41:17]json parsed OK: [22:41:17]protocol is kg_v1.0 [22:41:17]action value=print_text [22:41:17]process_action print_text [22:41:17]cmd_print_text [22:41:17]ExternCall_PrintAddStr [22:41:17]wPrintStart [22:41:17]Write to MH i2c: 01 00 00 AA 05 AF [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 AA 05 00 00 00 00 00 FF 0F C4 [22:41:17]RasterBufferAndPrint [22:41:17]line *****ТОВАРНЫЙ ЧЕК***** [22:41:17]line АЗС 47 [22:41:17]line Партнер нефть [22:41:17]line 02508201610067 [22:41:17]line Кассир : Таалайбек к. П. [22:41:17]line Счет N : (1)48766 [22:41:17]line 14.04.2024 22:20 [22:41:17]line ПРОДАЖА [22:41:17]line ТРК (МРК, ГНК): 32 [22:41:17]line Вид ГСМ : 2710124130 [22:41:17]line Аи-92-К-5 [22:41:17]line 18.720 x 64.30 [22:41:17]line ИТОГ: 1203.70 [22:41:17]line Тип оплаты: Талоны: Топливная Карта [22:41:17]line 74503 [22:41:17]line ______________________ [22:41:17]line (подпись) [22:41:17]written 0, free lines is 4095 [22:41:17]Write to MH i2c: 01 00 00 BF 05 C4 [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: 01 07 00 BF 05 00 00 00 00 00 F4 0D CC [22:41:17]RasterBufferAndPrint [22:41:17]line [22:41:17]line [22:41:17]line [22:41:17]line [22:41:17]line [22:41:17]written 0, free lines is 3574 [22:41:17]MH_Cut [22:41:17]Write to MH i2c: D1 01 00 C6 05 01 9D [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: D1 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: D1 01 00 [22:41:17]MH_I2C_Read... [22:41:17]Read from MH i2c: D1 01 00 C6 05 00 9C [22:41:17]Write to MH i2c: 01 00 00 C7 05 CC [22:41:17]Write i2c OK [22:41:17]MH_I2C_Read... [22:41:18]*** Cut start [22:41:18]*** Partial cut [22:41:18]*** CUTSNS_PIN = 1 [22:41:18]*** CUTSNS_PIN = 0 [22:41:18]*** Brake cut motor [22:41:19]Read from MH i2c: 01 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: 01 07 00 [22:41:19]MH_I2C_Read... [22:41:19]*** Stop cut motor [22:41:19]*** Cut end [22:41:19]Read from MH i2c: 01 07 00 C7 05 00 00 00 00 00 FF 0F E1 [22:41:19]process_action print_text done [22:41:19]requested_data is exist [22:41:19]produce_requested_data [22:41:19]requested_item fm.sn is exist - process it [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 11 00 00 [22:41:19]Write to MH i2c: E2 08 00 C8 05 80 11 00 00 00 00 00 00 47 [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 17 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 17 00 C8 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 98 [22:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:41:19]wFMCommunicate OK [22:41:19]requested_item fd.num is exist - process it [22:41:19]SAM_PROTO_GetFieldsCounters [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 13 00 00 [22:41:19]Write to MH i2c: E2 08 00 C9 05 80 13 00 00 00 00 00 00 4A [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 62 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 62 00 C9 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [22:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetFieldsCounters done [22:41:19]requested_item shift.num is exist - process it [22:41:19]requested_item shift.opened is exist - process it [22:41:19]req_shift_opened [22:41:19]FM_GetShiftState [22:41:19]SAM_PROTO_GetShiftState [22:41:19]wFMCommunicate request_size=4 [22:41:19]MH_SAM_APDU [22:41:19]CAPDU: 80 13 01 00 [22:41:19]Write to MH i2c: E2 08 00 CA 05 80 13 01 00 00 00 00 00 4C [22:41:19]Write i2c OK [22:41:19]MH_I2C_Read... [22:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:19]Read from MH i2c: E2 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 [22:41:19]MH_I2C_Read... [22:41:19]Read from MH i2c: E2 0E 00 CA 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E4 [22:41:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:41:19]wFMCommunicate OK [22:41:19]SAM_PROTO_GetShiftState done [22:41:19]FM_GetShiftState done [22:41:19]req_shift_opened done [22:41:19]requested_item shift.open_date is exist - process it [22:41:19]req_shift_open_date [22:41:19]req_shift_open_date done [22:41:19]produce_requested_data done [22:41:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112478,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:41:19]process_action_free print_text [22:41:19]json_value_free [22:41:19]json_value_free done [22:41:19]process_json_proto returns [22:41:19]Send response to host [22:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112478,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:41:19]free response buf [22:41:19]execute_script done [22:41:19]execute_script returns [22:41:19]free content buf [22:41:19]Sock 7.Close socket [22:41:19]Sock 7.Thread stoped [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:00]accept exits with 9 [22:43:00]New connection [22:43:00]New thread 3067317604 created [22:43:00]Thread 3067174244 joined [22:43:00]Waiting for new connection... [22:43:00] Sock 9.Parse request [22:43:00]Sock 9.Check first char [22:43:00]Sock 9.First char is OK [22:43:00]request: POST /json_proto HTTP/1.0 [22:43:00]Method: POST [22:43:00]URL: /json_proto [22:43:00]Method is POST - this is cgi request [22:43:00]url: /json_proto [22:43:00]query_string will be loaded in cgi processing [22:43:00]execute_cgi json_proto POST (null) [22:43:00]execute_cgi path=json_proto method=POST [22:43:00]POST find Content-Length [22:43:00]Host: 172.17.96.197:8080 [22:43:00]Content-Length: 676 [22:43:00]Content-Type: application/json [22:43:00] [22:43:00]POST finish read [22:43:00]Found Content-Length = 676 [22:43:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [22:43:00]execute_script... [22:43: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)48768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 3.120, "sum" : 200.62, "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" ] } } [22:43:00]POST & json_proto [22:43:00]process_json_proto [22:43:00]json parsed OK: [22:43:00]protocol is kg_v1.0 [22:43:00]action value=close_receipt [22:43:00]process_action close_receipt [22:43:00]cmd_close_receipt [22:43:00]MH_GetDate [22:43:00]Write to MH i2c: F0 00 00 CB 05 BF [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: F0 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: F0 09 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: F0 09 00 CB 05 00 F6 5B 1C 66 E0 85 7F 64 E3 [22:43:00]GetLastDocTimeStamp 1713134283 [22:43:00]current date 1713134582 [22:43:00]FM_GetShiftState [22:43:00]SAM_PROTO_GetShiftState [22:43:00]wFMCommunicate request_size=4 [22:43:00]MH_SAM_APDU [22:43:00]CAPDU: 80 13 01 00 [22:43:00]Write to MH i2c: E2 08 00 CC 05 80 13 01 00 00 00 00 00 4E [22:43:00]Write i2c OK [22:43:00]MH_I2C_Read... [22:43:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:00]Read from MH i2c: E2 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0E 00 [22:43:00]MH_I2C_Read... [22:43:00]Read from MH i2c: E2 0E 00 CC 05 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E6 [22:43:00]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:43:00]wFMCommunicate OK [22:43:00]SAM_PROTO_GetShiftState done [22:43:00]FM_GetShiftState done [22:43:00]opened in 1713054696 [22:43:00]opened+sec_in_day 1713141096 [22:43:00]quantity*price = 20061 [22:43:00]sum+1 = 20063 [22:43:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.30 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 378 14.04.2024 22:43 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112479 ФПД: 96170080767147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224302&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112479&fm=96170080767147&tin=02508201610067®Number=0000000000094237&sum=20000 [22:43:02]StoreToDocumentArchive [22:43:02]shift 357 fd 112479 [22:43:02]save to /storage/0357/doc_00112479 [22:43:02]save last doc name /storage/0357/doc_00112479 to /storage/kkm_last_doc_name [22:43:02]save OK [22:43:02]Clear old archive folders... [22:43:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:43:02]tlvbuf is 019B47D0 [22:43:02]SAM_PROTO_ClearQueue [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 09 00 00 [22:43:02]Write to MH i2c: E2 08 00 D9 05 80 09 00 00 00 00 00 00 50 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 D9 05 00 90 00 52 [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]SAM_PROTO_ClearQueue done [22:43:02]KKMCreateOFDPacket [22:43:02]OFDProtocolAddRootSTLVToBuf [22:43:02]FM_MakeSignedData [22:43:02]FM_MakeSignedData [22:43:02]SAM_PROTO_SignData [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 01 02 [22:43:02]Write to MH i2c: E2 08 00 DA 05 80 0D 01 02 00 00 00 00 58 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 DA 05 00 90 00 53 [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=255 [22:43:02]MH_SAM_APDU [22:43: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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 7A 01 00 00 F4 03 04 00 F6 5B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B7 01 00 35 04 06 00 57 [22:43:02]Write to MH i2c: E2 02 01 DB 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 7A 01 00 00 F4 03 04 00 F6 5B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B7 01 00 35 04 06 00 57 00 00 88 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 DB 05 00 90 00 54 [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=10 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 02 02 05 77 57 80 8C AB [22:43:02]Write to MH i2c: E2 0D 00 DC 05 80 0D 02 02 05 00 77 57 80 8C AB 00 00 EA [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 03 00 DC 05 00 90 00 55 [22:43:02]RAPDU: 90 00 [22:43:02]wFMCommunicate OK [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 0D 03 02 [22:43:02]Write to MH i2c: E2 08 00 DD 05 80 0D 03 02 00 00 00 00 5D [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0B 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 0B 00 DD 05 00 FA 58 09 AE F7 51 AE D9 90 00 36 [22:43:02]RAPDU: FA 58 09 AE F7 51 AE D9 90 00 [22:43:02]wFMCommunicate OK [22:43:02]SAM_PROTO_SignData done [22:43:02]FM_MakeSignedData done [22:43:02]CreateOFDProtocolMessage [22:43:02]wFMCommunicate request_size=4 [22:43:02]MH_SAM_APDU [22:43:02]CAPDU: 80 11 00 00 [22:43:02]Write to MH i2c: E2 08 00 DE 05 80 11 00 00 00 00 00 00 5D [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:02]Read from MH i2c: E2 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 17 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: E2 17 00 DE 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AE [22:43:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:43:02]wFMCommunicate OK [22:43:02]CreateOFDProtocolMessage done [22:43:02]OFDSenderStorePacket 112479 [22:43:02]StoreOFDPacket docnum=112479 [22:43:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D0 1D 07 01 F1 65 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 7A 01 00 00 F4 03 04 00 F6 5B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B7 01 00 35 04 06 00 57 77 57 80 8C AB FA 58 09 AE F7 51 AE D9 [22:43:02]CheckFolder [22:43:02]dirname=/storage/ofd_packets [22:43:02]CheckFolder done [22:43:02]ProducePacketName [22:43:02]name=ofd_packets/00112479 [22:43:02]NVStorageSaveData ofd_packets/00112479 [22:43:02]File name is /storage/ofd_packets/00112479 [22:43:02]Write 301 bytes [22:43:02]NVStorageSaveData done [22:43:02]OFDSenderStorePacket done [22:43:02]KKMCreateOFDPacket done [22:43:02]NVStorageSaveData kkm_last_timestamp [22:43:02]File name is /storage/kkm_last_timestamp [22:43:02]Write 4 bytes [22:43:02]NVStorageSaveData done [22:43:02]ExternCall_PrintAddStr [22:43:02]wPrintStart [22:43:02]Write to MH i2c: 01 00 00 DF 05 E4 [22:43:02]Write i2c OK [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 [22:43:02]MH_I2C_Read... [22:43:02]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [22:43:02]RasterBufferAndPrint [22:43:02]line Счет N : (1)48768 [22:43:02]line ИНН: 02508201610067 [22:43:02]line Контрольно-Кассовый Чек [22:43:02]line ПРОДАЖА [22:43:02]line ТРК (МРК, ГНК) : 21 [22:43:02]line Товар: 2710124130 [22:43:02]line Аи-92-К-5 [22:43:02]line 3.120 * 64.30 [22:43:02]line = 200.62 [22:43:02]line НДС 12% НСП 1% [22:43:02]line > о реализуемом товаре [22:43:02]line ОКРУГЛЕНИЕ: -0.62 [22:43:02]line ИТОГО: 200.00 [22:43:02]line Внесено: 200.00 [22:43:02]line СДАЧА: 0.00 [22:43:02]line НСП 1% : 1.77 [22:43:02]line НДС 12% : 21.30 [22:43:02]line Наличными: 200.00 [22:43:02]line Безнал.: 0.00 [22:43:02]line Место: АЗС № 47 "Партнер Нефть" [22:43:02]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:43:02]line СНО: Общий режим [22:43:02]line Чек 378 14.04.2024 22:43 [22:43:02]line Смена: 357 ФФД: 1.0 [22:43:02]line ЗНМ: 0300000138 [22:43:02]line РНМ: 0000000000094237 [22:43:02]line Версия ККМ: 001 [22:43:02]line ФМ: 0000000000875019 [22:43:02]line ФД: 112479 [22:43:02]line ФПД: 96170080767147 [22:43:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224302&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112479&fm=96170080767147&tin=02508201610067®Number=0000000000094237&sum=20000 [22:43:02]OFD Sender: Processing packet 112479 [packets to send 71, broken 70] [22:43:02]ProducePacketName [22:43:02]name=ofd_packets/00112479 [22:43:02]OFD Sender: To server: pG, [22:43:02]CommunicateWithHost lk.salyk.kg:30040 [22:43:02]ConnectInit lk.salyk.kg [22:43:02]written 0, free lines is 4095 [22:43:03]Connected sock=10 [22:43:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D0 1D 07 01 F1 65 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 30 0C 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 5E 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 52 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 7A 01 00 00 F4 03 04 00 F6 5B 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 5F B7 01 00 35 04 06 00 57 77 57 80 8C AB FA 58 09 AE F7 51 AE D9 [22:43:03]Write to MH i2c: 01 00 00 0A 06 10 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 07 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: 01 07 00 0A 06 00 00 00 00 00 E5 0C 08 [22:43:03]RasterBufferAndPrint [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]line [22:43:03]written 0, free lines is 3307 [22:43:03]MH_Cut [22:43:03]Write to MH i2c: D1 01 00 11 06 01 E9 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 01 00 [22:43:03]MH_I2C_Read... [22:43:03]Read from MH i2c: D1 01 00 11 06 00 E8 [22:43:03]Write to MH i2c: 01 00 00 12 06 18 [22:43:03]Write i2c OK [22:43:03]MH_I2C_Read... [22:43:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 5D 55 47 00 E3 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 38 37 35 30 31 39 10 04 04 00 5F B7 01 00 F4 03 04 00 80 03 1C 66 B6 04 01 00 00 5D 3A 11 0C A1 D5 B8 FA [22:43:03]CommunicateWithHost err = 0 [22:43:03]CheckOFDResponse [22:43:03]1017 (14) - 77093643461234 [22:43:03]1041 (16) - 0000000000875019 [22:43:03]1040 (4) - 112479 [22:43:03]1012 (4) - 14.04.2024 16:25 [22:43:03]1206 (1) - 0 [22:43:03]OFD Sender: Remove packet 112479 [22:43:03]ProducePacketName [22:43:03]name=ofd_packets/00112479 [22:43:03]NVStorageDeleteData [22:43:03]OFD Sender: No OFD packet to send [22:43:04]*** Cut start [22:43:04]*** Partial cut [22:43:04]*** CUTSNS_PIN = 1 [22:43:04]*** CUTSNS_PIN = 0 [22:43:04]*** Brake cut motor [22:43:04]Read from MH i2c: 01 [22:43:04]MH_I2C_Read... [22:43:04]*** Stop cut motor [22:43:04]*** Cut end [22:43:04]Read from MH i2c: 01 07 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: 01 07 00 12 06 00 00 00 00 00 FF 0F 2D [22:43:04]process_action close_receipt done [22:43:04]requested_data is exist [22:43:04]produce_requested_data [22:43:04]requested_item fm.sn is exist - process it [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 11 00 00 [22:43:04]Write to MH i2c: E2 08 00 13 06 80 11 00 00 00 00 00 00 93 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:43:04]Read from MH i2c: E2 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 [22:43:04]MH_I2C_Read... [22:43:04]Read from MH i2c: E2 17 00 13 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E4 [22:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:43:04]wFMCommunicate OK [22:43:04]requested_item fd.num is exist - process it [22:43:04]SAM_PROTO_GetFieldsCounters [22:43:04]wFMCommunicate request_size=4 [22:43:04]MH_SAM_APDU [22:43:04]CAPDU: 80 13 00 00 [22:43:04]Write to MH i2c: E2 08 00 14 06 80 13 00 00 00 00 00 00 96 [22:43:04]Write i2c OK [22:43:04]MH_I2C_Read... [22:43:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:43:05]Read from MH i2c: E2 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: E2 62 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: E2 62 00 14 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 A3 [22:43:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 5F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:43:05]wFMCommunicate OK [22:43:05]SAM_PROTO_GetFieldsCounters done [22:43:05]requested_item shift.num is exist - process it [22:43:05]requested_item shift.opened is exist - process it [22:43:05]req_shift_opened [22:43:05]FM_GetShiftState [22:43:05]SAM_PROTO_GetShiftState [22:43:05]wFMCommunicate request_size=4 [22:43:05]MH_SAM_APDU [22:43:05]CAPDU: 80 13 01 00 [22:43:05]Write to MH i2c: E2 08 00 15 06 80 13 01 00 00 00 00 00 98 [22:43:05]Write i2c OK [22:43:05]MH_I2C_Read... [22:43:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:43:05]Read from MH i2c: E2 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: E2 0E 00 [22:43:05]MH_I2C_Read... [22:43:05]Read from MH i2c: E2 0E 00 15 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 30 [22:43:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:43:05]wFMCommunicate OK [22:43:05]SAM_PROTO_GetShiftState done [22:43:05]FM_GetShiftState done [22:43:05]req_shift_opened done [22:43:05]requested_item shift.open_date is exist - process it [22:43:05]req_shift_open_date [22:43:05]req_shift_open_date done [22:43:05]produce_requested_data done [22:43:05]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112479,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:43:05]process_action_free close_receipt [22:43:05]json_value_free [22:43:05]json_value_free done [22:43:05]process_json_proto returns [22:43:05]Send response to host [22:43:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112479,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:43:05]free response buf [22:43:05]execute_script done [22:43:05]execute_script returns [22:43:05]free content buf [22:43:05]Sock 9.Close socket [22:43:05]Sock 9.Thread stoped [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:39]accept exits with 7 [22:44:39]New connection [22:44:39]New thread 3067174244 created [22:44:39]Thread 3067317604 joined [22:44:39]Waiting for new connection... [22:44:39] Sock 7.Parse request [22:44:39]Sock 7.Check first char [22:44:39]Sock 7.First char is OK [22:44:39]request: POST /json_proto HTTP/1.0 [22:44:39]Method: POST [22:44:39]URL: /json_proto [22:44:39]Method is POST - this is cgi request [22:44:39]url: /json_proto [22:44:39]query_string will be loaded in cgi processing [22:44:39]execute_cgi json_proto POST (null) [22:44:39]execute_cgi path=json_proto method=POST [22:44:39]POST find Content-Length [22:44:39]Host: 172.17.96.197:8080 [22:44:39]Content-Length: 821 [22:44:39]Content-Type: application/json [22:44:39] [22:44:39]POST finish read [22:44:39]Found Content-Length = 821 [22:44:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:39]execute_script... [22:44:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.29 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:39]POST & json_proto [22:44:39]process_json_proto [22:44:39]json parsed OK: [22:44:39]protocol is kg_v1.0 [22:44:39]action value=close_receipt [22:44:39]process_action close_receipt [22:44:39]cmd_close_receipt [22:44:39]MH_GetDate [22:44:39]Write to MH i2c: F0 00 00 16 06 0B [22:44:39]Write i2c OK [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: F0 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: F0 09 00 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: F0 09 00 16 06 00 58 5C 1C 66 E0 85 7F 64 92 [22:44:39]GetLastDocTimeStamp 1713134582 [22:44:39]current date 1713134680 [22:44:39]FM_GetShiftState [22:44:39]SAM_PROTO_GetShiftState [22:44:39]wFMCommunicate request_size=4 [22:44:39]MH_SAM_APDU [22:44:39]CAPDU: 80 13 01 00 [22:44:39]Write to MH i2c: E2 08 00 17 06 80 13 01 00 00 00 00 00 9A [22:44:39]Write i2c OK [22:44:39]MH_I2C_Read... [22:44:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:39]Read from MH i2c: E2 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 0E 00 [22:44:39]MH_I2C_Read... [22:44:39]Read from MH i2c: E2 0E 00 17 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 32 [22:44:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:44:39]wFMCommunicate OK [22:44:39]SAM_PROTO_GetShiftState done [22:44:39]FM_GetShiftState done [22:44:39]opened in 1713054696 [22:44:39]opened+sec_in_day 1713141096 [22:44:39]quantity*price = 100029 [22:44:39]sum+1 = 100030 [22:44:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.29 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.29 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 379 14.04.2024 22:44 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112480 ФПД: 113889477064880 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224440&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112480&fm=113889477064880&tin=02508201610067®Number=0000000000094237&sum=100029 [22:44:40]StoreToDocumentArchive [22:44:40]shift 357 fd 112480 [22:44:40]save to /storage/0357/doc_00112480 [22:44:40]save last doc name /storage/0357/doc_00112480 to /storage/kkm_last_doc_name [22:44:40]save OK [22:44:40]Clear old archive folders... [22:44:40]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:44:40]tlvbuf is 01A0F200 [22:44:40]SAM_PROTO_ClearQueue [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 09 00 00 [22:44:40]Write to MH i2c: E2 08 00 24 06 80 09 00 00 00 00 00 00 9C [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 24 06 00 90 00 9E [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]SAM_PROTO_ClearQueue done [22:44:40]KKMCreateOFDPacket [22:44:40]OFDProtocolAddRootSTLVToBuf [22:44:40]FM_MakeSignedData [22:44:40]FM_MakeSignedData [22:44:40]SAM_PROTO_SignData [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 01 02 [22:44:40]Write to MH i2c: E2 08 00 25 06 80 0D 01 02 00 00 00 00 A4 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 25 06 00 90 00 9F [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]wFMCommunicate request_size=255 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 58 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B7 01 00 35 04 06 00 67 94 [22:44:40]Write to MH i2c: E2 02 01 26 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 58 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B7 01 00 35 04 06 00 67 94 00 00 30 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 26 06 00 90 00 A0 [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]wFMCommunicate request_size=9 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 02 02 04 F5 D2 F8 B0 [22:44:40]Write to MH i2c: E2 0C 00 27 06 80 0D 02 02 04 00 F5 D2 F8 B0 00 00 1E [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 03 00 27 06 00 90 00 A1 [22:44:40]RAPDU: 90 00 [22:44:40]wFMCommunicate OK [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 0D 03 02 [22:44:40]Write to MH i2c: E2 08 00 28 06 80 0D 03 02 00 00 00 00 A9 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 0B 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 0B 00 28 06 00 53 F0 0F 67 55 1C 4A AD 90 00 CB [22:44:40]RAPDU: 53 F0 0F 67 55 1C 4A AD 90 00 [22:44:40]wFMCommunicate OK [22:44:40]SAM_PROTO_SignData done [22:44:40]FM_MakeSignedData done [22:44:40]CreateOFDProtocolMessage [22:44:40]wFMCommunicate request_size=4 [22:44:40]MH_SAM_APDU [22:44:40]CAPDU: 80 11 00 00 [22:44:40]Write to MH i2c: E2 08 00 29 06 80 11 00 00 00 00 00 00 A9 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:40]Read from MH i2c: E2 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 17 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: E2 17 00 29 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FA [22:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:44:40]wFMCommunicate OK [22:44:40]CreateOFDProtocolMessage done [22:44:40]OFDSenderStorePacket 112480 [22:44:40]StoreOFDPacket docnum=112480 [22:44:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 0D C1 06 01 FD 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 58 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B7 01 00 35 04 06 00 67 94 F5 D2 F8 B0 53 F0 0F 67 55 1C 4A AD [22:44:40]CheckFolder [22:44:40]dirname=/storage/ofd_packets [22:44:40]CheckFolder done [22:44:40]ProducePacketName [22:44:40]name=ofd_packets/00112480 [22:44:40]NVStorageSaveData ofd_packets/00112480 [22:44:40]File name is /storage/ofd_packets/00112480 [22:44:40]Write 300 bytes [22:44:40]NVStorageSaveData done [22:44:40]OFDSenderStorePacket done [22:44:40]KKMCreateOFDPacket done [22:44:40]NVStorageSaveData kkm_last_timestamp [22:44:40]File name is /storage/kkm_last_timestamp [22:44:40]Write 4 bytes [22:44:40]NVStorageSaveData done [22:44:40]ExternCall_PrintAddStr [22:44:40]wPrintStart [22:44:40]Write to MH i2c: 01 00 00 2A 06 30 [22:44:40]Write i2c OK [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 07 00 [22:44:40]MH_I2C_Read... [22:44:40]Read from MH i2c: 01 07 00 2A 06 00 00 00 00 00 FF 0F 45 [22:44:40]RasterBufferAndPrint [22:44:40]line Счет N : (1)48767 [22:44:40]line ИНН: 02508201610067 [22:44:40]line Контрольно-Кассовый Чек [22:44:40]line ПРОДАЖА [22:44:40]line ТРК (МРК, ГНК) : 72 [22:44:40]line Товар: 2711190000 [22:44:40]line ГАЗ-К-5 [22:44:40]line 30.590 * 32.70 [22:44:40]line = 1000.29 [22:44:40]line НДС 12% НСП 1% [22:44:40]line > о реализуемом товаре [22:44:40]line ИТОГО: 1000.29 [22:44:40]line НСП 1% : 8.85 [22:44:40]line НДС 12% : 106.22 [22:44:40]line Наличными: 0.00 [22:44:40]line Безнал.: 1000.29 [22:44:40]line Место: АЗС № 47 "Партнер Нефть" [22:44:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:44:40]line СНО: Общий режим [22:44:40]line Чек 379 14.04.2024 22:44 [22:44:40]line Смена: 357 ФФД: 1.0 [22:44:40]line ЗНМ: 0300000138 [22:44:40]line РНМ: 0000000000094237 [22:44:40]line Версия ККМ: 001 [22:44:40]line Платежная система: Бакай Банк [22:44:40]line ФМ: 0000000000875019 [22:44:40]line ФД: 112480 [22:44:40]line ФПД: 113889477064880 [22:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224440&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112480&fm=113889477064880&tin=02508201610067®Number=0000000000094237&sum=100029 [22:44:40]written 0, free lines is 4095 [22:44:40]OFD Sender: Processing packet 112480 [packets to send 71, broken 70] [22:44:40]ProducePacketName [22:44:40]name=ofd_packets/00112480 [22:44:40]OFD Sender: To server: pG, [22:44:40]CommunicateWithHost lk.salyk.kg:30040 [22:44:40]ConnectInit lk.salyk.kg [22:44:41]Connected sock=10 [22:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 0D C1 06 01 FD 62 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BD 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BD 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 58 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B7 01 00 35 04 06 00 67 94 F5 D2 F8 B0 53 F0 0F 67 55 1C 4A AD [22:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E9 66 47 00 A0 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 60 B7 01 00 F4 03 04 00 E2 03 1C 66 B6 04 01 00 00 0C 6E 64 F7 78 24 34 AC [22:44:41]CommunicateWithHost err = 0 [22:44:41]CheckOFDResponse [22:44:41]1017 (14) - 77093643461234 [22:44:41]1041 (16) - 0000000000875019 [22:44:41]1040 (4) - 112480 [22:44:41]1012 (4) - 14.04.2024 16:27 [22:44:41]1206 (1) - 0 [22:44:41]OFD Sender: Remove packet 112480 [22:44:41]ProducePacketName [22:44:41]name=ofd_packets/00112480 [22:44:41]NVStorageDeleteData [22:44:41]Write to MH i2c: 01 00 00 54 06 5A [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 07 00 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: 01 07 00 54 06 00 00 00 00 00 FC 0C 69 [22:44:41]RasterBufferAndPrint [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]line [22:44:41]written 0, free lines is 3330 [22:44:41]MH_Cut [22:44:41]Write to MH i2c: D1 01 00 5B 06 01 33 [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 01 00 [22:44:41]MH_I2C_Read... [22:44:41]Read from MH i2c: D1 01 00 5B 06 00 32 [22:44:41]Write to MH i2c: 01 00 00 5C 06 62 [22:44:41]Write i2c OK [22:44:41]MH_I2C_Read... [22:44:41]OFD Sender: No OFD packet to send [22:44:42]*** Cut start [22:44:42]*** Partial cut [22:44:42]*** CUTSNS_PIN = 1 [22:44:42]*** CUTSNS_PIN = 0 [22:44:42]*** Brake cut motor [22:44:42]Read from MH i2c: 01 [22:44:42]MH_I2C_Read... [22:44:42]*** Stop cut motor [22:44:42]*** Cut end [22:44:42]Read from MH i2c: 01 07 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: 01 07 00 5C 06 00 00 00 00 00 FF 0F 77 [22:44:42]process_action close_receipt done [22:44:42]requested_data is exist [22:44:42]produce_requested_data [22:44:42]requested_item fm.sn is exist - process it [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 11 00 00 [22:44:42]Write to MH i2c: E2 08 00 5D 06 80 11 00 00 00 00 00 00 DD [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:42]Read from MH i2c: E2 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 17 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 17 00 5D 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 2E [22:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:44:42]wFMCommunicate OK [22:44:42]requested_item fd.num is exist - process it [22:44:42]SAM_PROTO_GetFieldsCounters [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 13 00 00 [22:44:42]Write to MH i2c: E2 08 00 5E 06 80 13 00 00 00 00 00 00 E0 [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:42]Read from MH i2c: E2 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 62 00 [22:44:42]MH_I2C_Read... [22:44:42]Read from MH i2c: E2 62 00 5E 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 60 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [22:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 60 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:42]wFMCommunicate OK [22:44:42]SAM_PROTO_GetFieldsCounters done [22:44:42]requested_item shift.num is exist - process it [22:44:42]requested_item shift.opened is exist - process it [22:44:42]req_shift_opened [22:44:42]FM_GetShiftState [22:44:42]SAM_PROTO_GetShiftState [22:44:42]wFMCommunicate request_size=4 [22:44:42]MH_SAM_APDU [22:44:42]CAPDU: 80 13 01 00 [22:44:42]Write to MH i2c: E2 08 00 5F 06 80 13 01 00 00 00 00 00 E2 [22:44:42]Write i2c OK [22:44:42]MH_I2C_Read... [22:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:43]Read from MH i2c: E2 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: E2 0E 00 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: E2 0E 00 5F 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7A [22:44:43]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:44:43]wFMCommunicate OK [22:44:43]SAM_PROTO_GetShiftState done [22:44:43]FM_GetShiftState done [22:44:43]req_shift_opened done [22:44:43]requested_item shift.open_date is exist - process it [22:44:43]req_shift_open_date [22:44:43]req_shift_open_date done [22:44:43]produce_requested_data done [22:44:43]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112480,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:44:43]process_action_free close_receipt [22:44:43]json_value_free [22:44:43]json_value_free done [22:44:43]process_json_proto returns [22:44:43]Send response to host [22:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112480,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:44:43]free response buf [22:44:43]execute_script done [22:44:43]execute_script returns [22:44:43]free content buf [22:44:43]Sock 7.Close socket [22:44:43]Sock 7.Thread stoped [22:44:46]OFD Sender: No OFD packet to send [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:50]accept exits with 9 [22:46:50]New connection [22:46:50]New thread 3067317604 created [22:46:50]Thread 3067174244 joined [22:46:50]Waiting for new connection... [22:46:50] Sock 9.Parse request [22:46:50]Sock 9.Check first char [22:46:50]Sock 9.First char is OK [22:46:50]request: POST /json_proto HTTP/1.0 [22:46:50]Method: POST [22:46:50]URL: /json_proto [22:46:50]Method is POST - this is cgi request [22:46:50]url: /json_proto [22:46:50]query_string will be loaded in cgi processing [22:46:50]execute_cgi json_proto POST (null) [22:46:50]execute_cgi path=json_proto method=POST [22:46:50]POST find Content-Length [22:46:50]Host: 172.17.96.197:8080 [22:46:50]Content-Length: 821 [22:46:50]Content-Type: application/json [22:46:50] [22:46:50]POST finish read [22:46:50]Found Content-Length = 821 [22:46:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:50]execute_script... [22:46: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)48769", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 45.880, "sum" : 1500.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:46:50]POST & json_proto [22:46:50]process_json_proto [22:46:50]json parsed OK: [22:46:50]protocol is kg_v1.0 [22:46:50]action value=close_receipt [22:46:50]process_action close_receipt [22:46:50]cmd_close_receipt [22:46:50]MH_GetDate [22:46:50]Write to MH i2c: F0 00 00 60 06 55 [22:46:50]Write i2c OK [22:46:50]MH_I2C_Read... [22:46:50]Read from MH i2c: F0 [22:46:50]MH_I2C_Read... [22:46:50]Read from MH i2c: F0 09 00 [22:46:50]MH_I2C_Read... [22:46:50]Read from MH i2c: F0 09 00 60 06 00 DB 5C 1C 66 E0 85 7F 64 5F [22:46:50]GetLastDocTimeStamp 1713134680 [22:46:50]current date 1713134811 [22:46:50]FM_GetShiftState [22:46:50]SAM_PROTO_GetShiftState [22:46:50]wFMCommunicate request_size=4 [22:46:50]MH_SAM_APDU [22:46:50]CAPDU: 80 13 01 00 [22:46:50]Write to MH i2c: E2 08 00 61 06 80 13 01 00 00 00 00 00 E4 [22:46:50]Write i2c OK [22:46:50]MH_I2C_Read... [22:46:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:50]Read from MH i2c: E2 [22:46:50]MH_I2C_Read... [22:46:50]Read from MH i2c: E2 0E 00 [22:46:50]MH_I2C_Read... [22:46:50]Read from MH i2c: E2 0E 00 61 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 7C [22:46:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:46:50]wFMCommunicate OK [22:46:50]SAM_PROTO_GetShiftState done [22:46:50]FM_GetShiftState done [22:46:50]opened in 1713054696 [22:46:50]opened+sec_in_day 1713141096 [22:46:50]quantity*price = 150027 [22:46:50]sum+1 = 150029 [22:46:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.28 НСП 1% : 13.28 НДС 12% : 159.32 Наличными: 0.00 Безнал.: 1500.28 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 380 14.04.2024 22:46 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112481 ФПД: 158877396088105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224651&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112481&fm=158877396088105&tin=02508201610067®Number=0000000000094237&sum=150028 [22:46:51]StoreToDocumentArchive [22:46:51]shift 357 fd 112481 [22:46:51]save to /storage/0357/doc_00112481 [22:46:51]save last doc name /storage/0357/doc_00112481 to /storage/kkm_last_doc_name [22:46:51]save OK [22:46:51]Clear old archive folders... [22:46:51]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:46:51]tlvbuf is 01A18FA0 [22:46:51]SAM_PROTO_ClearQueue [22:46:51]wFMCommunicate request_size=4 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 09 00 00 [22:46:51]Write to MH i2c: E2 08 00 6E 06 80 09 00 00 00 00 00 00 E6 [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 6E 06 00 90 00 E8 [22:46:51]RAPDU: 90 00 [22:46:51]wFMCommunicate OK [22:46:51]SAM_PROTO_ClearQueue done [22:46:51]KKMCreateOFDPacket [22:46:51]OFDProtocolAddRootSTLVToBuf [22:46:51]FM_MakeSignedData [22:46:51]FM_MakeSignedData [22:46:51]SAM_PROTO_SignData [22:46:51]wFMCommunicate request_size=4 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 0D 01 02 [22:46:51]Write to MH i2c: E2 08 00 6F 06 80 0D 01 02 00 00 00 00 EE [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 6F 06 00 90 00 E9 [22:46:51]RAPDU: 90 00 [22:46:51]wFMCommunicate OK [22:46:51]wFMCommunicate request_size=255 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 DB 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B7 01 00 35 04 06 00 90 7F [22:46:51]Write to MH i2c: E2 02 01 70 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 DB 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B7 01 00 35 04 06 00 90 7F 00 00 D5 [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 70 06 00 90 00 EA [22:46:51]RAPDU: 90 00 [22:46:51]wFMCommunicate OK [22:46:51]wFMCommunicate request_size=9 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 0D 02 02 04 86 C1 B5 29 [22:46:51]Write to MH i2c: E2 0C 00 71 06 80 0D 02 02 04 00 86 C1 B5 29 00 00 1E [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 03 00 71 06 00 90 00 EB [22:46:51]RAPDU: 90 00 [22:46:51]wFMCommunicate OK [22:46:51]wFMCommunicate request_size=4 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 0D 03 02 [22:46:51]Write to MH i2c: E2 08 00 72 06 80 0D 03 02 00 00 00 00 F3 [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 0B 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 0B 00 72 06 00 82 43 6A 38 B9 F4 F5 A4 90 00 A1 [22:46:51]RAPDU: 82 43 6A 38 B9 F4 F5 A4 90 00 [22:46:51]wFMCommunicate OK [22:46:51]SAM_PROTO_SignData done [22:46:51]FM_MakeSignedData done [22:46:51]CreateOFDProtocolMessage [22:46:51]wFMCommunicate request_size=4 [22:46:51]MH_SAM_APDU [22:46:51]CAPDU: 80 11 00 00 [22:46:51]Write to MH i2c: E2 08 00 73 06 80 11 00 00 00 00 00 00 F3 [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:51]Read from MH i2c: E2 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 17 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: E2 17 00 73 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 44 [22:46:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:46:51]wFMCommunicate OK [22:46:51]CreateOFDProtocolMessage done [22:46:51]OFDSenderStorePacket 112481 [22:46:51]StoreOFDPacket docnum=112481 [22:46:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 65 A0 06 01 EB 36 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 DB 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B7 01 00 35 04 06 00 90 7F 86 C1 B5 29 82 43 6A 38 B9 F4 F5 A4 [22:46:51]CheckFolder [22:46:51]dirname=/storage/ofd_packets [22:46:51]CheckFolder done [22:46:51]ProducePacketName [22:46:51]name=ofd_packets/00112481 [22:46:51]NVStorageSaveData ofd_packets/00112481 [22:46:51]File name is /storage/ofd_packets/00112481 [22:46:51]Write 300 bytes [22:46:51]NVStorageSaveData done [22:46:51]OFDSenderStorePacket done [22:46:51]KKMCreateOFDPacket done [22:46:51]NVStorageSaveData kkm_last_timestamp [22:46:51]File name is /storage/kkm_last_timestamp [22:46:51]Write 4 bytes [22:46:51]NVStorageSaveData done [22:46:51]ExternCall_PrintAddStr [22:46:51]wPrintStart [22:46:51]Write to MH i2c: 01 00 00 74 06 7A [22:46:51]Write i2c OK [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: 01 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: 01 07 00 [22:46:51]MH_I2C_Read... [22:46:51]Read from MH i2c: 01 07 00 74 06 00 00 00 00 00 FF 0F 8F [22:46:51]RasterBufferAndPrint [22:46:51]line Счет N : (1)48769 [22:46:51]line ИНН: 02508201610067 [22:46:51]line Контрольно-Кассовый Чек [22:46:51]line ПРОДАЖА [22:46:51]line ТРК (МРК, ГНК) : 71 [22:46:51]line Товар: 2711190000 [22:46:51]line ГАЗ-К-5 [22:46:51]line 45.880 * 32.70 [22:46:51]line = 1500.28 [22:46:51]line НДС 12% НСП 1% [22:46:51]line > о реализуемом товаре [22:46:51]line ИТОГО: 1500.28 [22:46:51]line НСП 1% : 13.28 [22:46:51]line НДС 12% : 159.32 [22:46:51]line Наличными: 0.00 [22:46:51]line Безнал.: 1500.28 [22:46:51]line Место: АЗС № 47 "Партнер Нефть" [22:46:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:46:51]line СНО: Общий режим [22:46:51]line Чек 380 14.04.2024 22:46 [22:46:51]line Смена: 357 ФФД: 1.0 [22:46:51]line ЗНМ: 0300000138 [22:46:51]line РНМ: 0000000000094237 [22:46:51]line Версия ККМ: 001 [22:46:51]line Платежная система: Бакай Банк [22:46:51]line ФМ: 0000000000875019 [22:46:51]line ФД: 112481 [22:46:51]line ФПД: 158877396088105 [22:46:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224651&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112481&fm=158877396088105&tin=02508201610067®Number=0000000000094237&sum=150028 [22:46:51]written 0, free lines is 4095 [22:46:51]OFD Sender: Processing packet 112481 [packets to send 71, broken 70] [22:46:51]ProducePacketName [22:46:51]name=ofd_packets/00112481 [22:46:51]OFD Sender: To server: pG, [22:46:51]CommunicateWithHost lk.salyk.kg:30040 [22:46:51]ConnectInit lk.salyk.kg [22:46:52]Connected sock=10 [22:46:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 65 A0 06 01 EB 36 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 B3 00 00 00 00 00 37 04 06 00 C6 0C 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 0C 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 0C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 DB 5C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B7 01 00 35 04 06 00 90 7F 86 C1 B5 29 82 43 6A 38 B9 F4 F5 A4 [22:46:52]Write to MH i2c: 01 00 00 9E 06 A4 [22:46:52]Write i2c OK [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: 01 [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: 01 07 00 [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: 01 07 00 9E 06 00 00 00 00 00 F7 0C AE [22:46:52]RasterBufferAndPrint [22:46:52]line [22:46:52]line [22:46:52]line [22:46:52]line [22:46:52]line [22:46:52]written 0, free lines is 3324 [22:46:52]MH_Cut [22:46:52]Write to MH i2c: D1 01 00 A5 06 01 7D [22:46:52]Write i2c OK [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: D1 [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: D1 01 00 [22:46:52]MH_I2C_Read... [22:46:52]Read from MH i2c: D1 01 00 A5 06 00 7C [22:46:52]Write to MH i2c: 01 00 00 A6 06 AC [22:46:52]Write i2c OK [22:46:52]MH_I2C_Read... [22:46:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D2 62 47 00 28 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 61 B7 01 00 F4 03 04 00 65 04 1C 66 B6 04 01 00 00 3E 6F DD 4B B1 C2 0D E2 [22:46:52]CommunicateWithHost err = 0 [22:46:52]CheckOFDResponse [22:46:52]1017 (14) - 77093643461234 [22:46:52]1041 (16) - 0000000000875019 [22:46:52]1040 (4) - 112481 [22:46:52]1012 (4) - 14.04.2024 16:29 [22:46:52]1206 (1) - 0 [22:46:52]OFD Sender: Remove packet 112481 [22:46:52]ProducePacketName [22:46:52]name=ofd_packets/00112481 [22:46:52]NVStorageDeleteData [22:46:52]OFD Sender: No OFD packet to send [22:46:53]*** Cut start [22:46:53]*** Partial cut [22:46:53]*** CUTSNS_PIN = 1 [22:46:53]*** CUTSNS_PIN = 0 [22:46:53]*** Brake cut motor [22:46:53]Read from MH i2c: 01 [22:46:53]MH_I2C_Read... [22:46:53]*** Stop cut motor [22:46:53]*** Cut end [22:46:53]Read from MH i2c: 01 07 00 [22:46:53]MH_I2C_Read... [22:46:53]Read from MH i2c: 01 07 00 A6 06 00 00 00 00 00 FF 0F C1 [22:46:53]process_action close_receipt done [22:46:53]requested_data is exist [22:46:53]produce_requested_data [22:46:53]requested_item fm.sn is exist - process it [22:46:53]wFMCommunicate request_size=4 [22:46:53]MH_SAM_APDU [22:46:53]CAPDU: 80 11 00 00 [22:46:53]Write to MH i2c: E2 08 00 A7 06 80 11 00 00 00 00 00 00 27 [22:46:53]Write i2c OK [22:46:53]MH_I2C_Read... [22:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:46:53]Read from MH i2c: E2 [22:46:53]MH_I2C_Read... [22:46:53]Read from MH i2c: E2 17 00 [22:46:53]MH_I2C_Read... [22:46:53]Read from MH i2c: E2 17 00 A7 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 78 [22:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:46:53]wFMCommunicate OK [22:46:53]requested_item fd.num is exist - process it [22:46:53]SAM_PROTO_GetFieldsCounters [22:46:53]wFMCommunicate request_size=4 [22:46:53]MH_SAM_APDU [22:46:53]CAPDU: 80 13 00 00 [22:46:53]Write to MH i2c: E2 08 00 A8 06 80 13 00 00 00 00 00 00 2A [22:46:53]Write i2c OK [22:46:53]MH_I2C_Read... [22:46:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:46:53]Read from MH i2c: E2 [22:46:53]MH_I2C_Read... [22:46:53]Read from MH i2c: E2 62 00 [22:46:53]MH_I2C_Read... [22:46:53]Read from MH i2c: E2 62 00 A8 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [22:46:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 61 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:46:53]wFMCommunicate OK [22:46:53]SAM_PROTO_GetFieldsCounters done [22:46:53]requested_item shift.num is exist - process it [22:46:53]requested_item shift.opened is exist - process it [22:46:53]req_shift_opened [22:46:53]FM_GetShiftState [22:46:53]SAM_PROTO_GetShiftState [22:46:53]wFMCommunicate request_size=4 [22:46:53]MH_SAM_APDU [22:46:53]CAPDU: 80 13 01 00 [22:46:53]Write to MH i2c: E2 08 00 A9 06 80 13 01 00 00 00 00 00 2C [22:46:53]Write i2c OK [22:46:53]MH_I2C_Read... [22:46:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:46:54]Read from MH i2c: E2 [22:46:54]MH_I2C_Read... [22:46:54]Read from MH i2c: E2 0E 00 [22:46:54]MH_I2C_Read... [22:46:54]Read from MH i2c: E2 0E 00 A9 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C4 [22:46:54]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:46:54]wFMCommunicate OK [22:46:54]SAM_PROTO_GetShiftState done [22:46:54]FM_GetShiftState done [22:46:54]req_shift_opened done [22:46:54]requested_item shift.open_date is exist - process it [22:46:54]req_shift_open_date [22:46:54]req_shift_open_date done [22:46:54]produce_requested_data done [22:46:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112481,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:46:54]process_action_free close_receipt [22:46:54]json_value_free [22:46:54]json_value_free done [22:46:54]process_json_proto returns [22:46:54]Send response to host [22:46:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112481,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:46:54]free response buf [22:46:54]execute_script done [22:46:54]execute_script returns [22:46:54]free content buf [22:46:54]Sock 9.Close socket [22:46:54]Sock 9.Thread stoped [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:05]accept exits with 7 [22:48:05]New connection [22:48:05]New thread 3067174244 created [22:48:05]Thread 3067317604 joined [22:48:05]Waiting for new connection... [22:48:05] Sock 7.Parse request [22:48:05]Sock 7.Check first char [22:48:05]Sock 7.First char is OK [22:48:05]request: POST /json_proto HTTP/1.0 [22:48:05]Method: POST [22:48:05]URL: /json_proto [22:48:05]Method is POST - this is cgi request [22:48:05]url: /json_proto [22:48:05]query_string will be loaded in cgi processing [22:48:05]execute_cgi json_proto POST (null) [22:48:05]execute_cgi path=json_proto method=POST [22:48:05]POST find Content-Length [22:48:05]Host: 172.17.96.197:8080 [22:48:05]Content-Length: 669 [22:48:05]Content-Type: application/json [22:48:05] [22:48:05]POST finish read [22:48:05]Found Content-Length = 669 [22:48:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48770", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [22:48:05]execute_script... [22:48: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)48770", "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.30, "quantity" : 7.660, "sum" : 500.20, "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" ] } } [22:48:05]POST & json_proto [22:48:05]process_json_proto [22:48:05]json parsed OK: [22:48:05]protocol is kg_v1.0 [22:48:05]action value=close_receipt [22:48:05]process_action close_receipt [22:48:05]cmd_close_receipt [22:48:05]MH_GetDate [22:48:05]Write to MH i2c: F0 00 00 AA 06 9F [22:48:05]Write i2c OK [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: F0 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: F0 09 00 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: F0 09 00 AA 06 00 26 5D 1C 66 E0 85 7F 64 F5 [22:48:05]GetLastDocTimeStamp 1713134811 [22:48:05]current date 1713134886 [22:48:05]FM_GetShiftState [22:48:05]SAM_PROTO_GetShiftState [22:48:05]wFMCommunicate request_size=4 [22:48:05]MH_SAM_APDU [22:48:05]CAPDU: 80 13 01 00 [22:48:05]Write to MH i2c: E2 08 00 AB 06 80 13 01 00 00 00 00 00 2E [22:48:05]Write i2c OK [22:48:05]MH_I2C_Read... [22:48:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:05]Read from MH i2c: E2 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: E2 0E 00 [22:48:05]MH_I2C_Read... [22:48:05]Read from MH i2c: E2 0E 00 AB 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C6 [22:48:05]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:48:05]wFMCommunicate OK [22:48:05]SAM_PROTO_GetShiftState done [22:48:05]FM_GetShiftState done [22:48:05]opened in 1713054696 [22:48:05]opened+sec_in_day 1713141096 [22:48:05]quantity*price = 50019 [22:48:05]sum+1 = 50021 [22:48:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 381 14.04.2024 22:48 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112482 ФПД: 231565590453160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224806&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112482&fm=231565590453160&tin=02508201610067®Number=0000000000094237&sum=50000 [22:48:06]StoreToDocumentArchive [22:48:06]shift 357 fd 112482 [22:48:06]save to /storage/0357/doc_00112482 [22:48:06]save last doc name /storage/0357/doc_00112482 to /storage/kkm_last_doc_name [22:48:06]save OK [22:48:06]Clear old archive folders... [22:48:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [22:48:06]tlvbuf is 019B4A70 [22:48:06]SAM_PROTO_ClearQueue [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 09 00 00 [22:48:06]Write to MH i2c: E2 08 00 B8 06 80 09 00 00 00 00 00 00 30 [22:48:06]Write i2c OK [22:48:06]MH_I2C_Read... [22:48:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:48:06]Read from MH i2c: E2 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 [22:48:06]MH_I2C_Read... [22:48:06]Read from MH i2c: E2 03 00 B8 06 00 90 00 32 [22:48:06]RAPDU: 90 00 [22:48:06]wFMCommunicate OK [22:48:06]SAM_PROTO_ClearQueue done [22:48:06]KKMCreateOFDPacket [22:48:06]OFDProtocolAddRootSTLVToBuf [22:48:06]FM_MakeSignedData [22:48:06]FM_MakeSignedData [22:48:06]SAM_PROTO_SignData [22:48:06]wFMCommunicate request_size=4 [22:48:06]MH_SAM_APDU [22:48:06]CAPDU: 80 0D 01 02 [22:48:06]Write to MH i2c: E2 08 00 B9 06 80 0D 01 02 00 00 00 00 38 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 B9 06 00 90 00 33 [22:48:07]RAPDU: 90 00 [22:48:07]wFMCommunicate OK [22:48:07]wFMCommunicate request_size=255 [22:48:07]MH_SAM_APDU [22:48:07]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7D 01 00 00 F4 03 04 00 26 5D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B7 01 00 35 04 06 00 [22:48:07]Write to MH i2c: E2 02 01 BA 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7D 01 00 00 F4 03 04 00 26 5D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B7 01 00 35 04 06 00 00 00 61 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 BA 06 00 90 00 34 [22:48:07]RAPDU: 90 00 [22:48:07]wFMCommunicate OK [22:48:07]wFMCommunicate request_size=11 [22:48:07]MH_SAM_APDU [22:48:07]CAPDU: 80 0D 02 02 06 D2 9B 90 C2 DB A8 [22:48:07]Write to MH i2c: E2 0E 00 BB 06 80 0D 02 02 06 00 D2 9B 90 C2 DB A8 00 00 89 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 03 00 BB 06 00 90 00 35 [22:48:07]RAPDU: 90 00 [22:48:07]wFMCommunicate OK [22:48:07]wFMCommunicate request_size=4 [22:48:07]MH_SAM_APDU [22:48:07]CAPDU: 80 0D 03 02 [22:48:07]Write to MH i2c: E2 08 00 BC 06 80 0D 03 02 00 00 00 00 3D [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 0B 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 0B 00 BC 06 00 DF FD 92 03 B2 BF 91 49 90 00 FA [22:48:07]RAPDU: DF FD 92 03 B2 BF 91 49 90 00 [22:48:07]wFMCommunicate OK [22:48:07]SAM_PROTO_SignData done [22:48:07]FM_MakeSignedData done [22:48:07]CreateOFDProtocolMessage [22:48:07]wFMCommunicate request_size=4 [22:48:07]MH_SAM_APDU [22:48:07]CAPDU: 80 11 00 00 [22:48:07]Write to MH i2c: E2 08 00 BD 06 80 11 00 00 00 00 00 00 3D [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:07]Read from MH i2c: E2 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 17 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: E2 17 00 BD 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [22:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:48:07]wFMCommunicate OK [22:48:07]CreateOFDProtocolMessage done [22:48:07]OFDSenderStorePacket 112482 [22:48:07]StoreOFDPacket docnum=112482 [22:48:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 42 87 08 01 5A 25 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7D 01 00 00 F4 03 04 00 26 5D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B7 01 00 35 04 06 00 D2 9B 90 C2 DB A8 DF FD 92 03 B2 BF 91 49 [22:48:07]CheckFolder [22:48:07]dirname=/storage/ofd_packets [22:48:07]CheckFolder done [22:48:07]ProducePacketName [22:48:07]name=ofd_packets/00112482 [22:48:07]NVStorageSaveData ofd_packets/00112482 [22:48:07]File name is /storage/ofd_packets/00112482 [22:48:07]Write 302 bytes [22:48:07]NVStorageSaveData done [22:48:07]OFDSenderStorePacket done [22:48:07]KKMCreateOFDPacket done [22:48:07]NVStorageSaveData kkm_last_timestamp [22:48:07]File name is /storage/kkm_last_timestamp [22:48:07]Write 4 bytes [22:48:07]NVStorageSaveData done [22:48:07]ExternCall_PrintAddStr [22:48:07]wPrintStart [22:48:07]Write to MH i2c: 01 00 00 BE 06 C4 [22:48:07]Write i2c OK [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 07 00 [22:48:07]MH_I2C_Read... [22:48:07]Read from MH i2c: 01 07 00 BE 06 00 00 00 00 00 FF 0F D9 [22:48:07]RasterBufferAndPrint [22:48:07]line Счет N : (1)48770 [22:48:07]line ИНН: 02508201610067 [22:48:07]line Контрольно-Кассовый Чек [22:48:07]line ПРОДАЖА [22:48:07]line ТРК (МРК, ГНК) : 31 [22:48:07]line Товар: 2710124130 [22:48:07]line SUPER 92-К-5 [22:48:07]line 7.660 * 65.30 [22:48:07]line = 500.20 [22:48:07]line НДС 12% НСП 1% [22:48:07]line > о реализуемом товаре [22:48:07]line ОКРУГЛЕНИЕ: -0.20 [22:48:07]line ИТОГО: 500.00 [22:48:07]line Внесено: 500.00 [22:48:07]line СДАЧА: 0.00 [22:48:07]line НСП 1% : 4.43 [22:48:07]line НДС 12% : 53.12 [22:48:07]line Наличными: 500.00 [22:48:07]line Безнал.: 0.00 [22:48:07]line Место: АЗС № 47 "Партнер Нефть" [22:48:07]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:48:07]line СНО: Общий режим [22:48:07]line Чек 381 14.04.2024 22:48 [22:48:07]line Смена: 357 ФФД: 1.0 [22:48:07]line ЗНМ: 0300000138 [22:48:07]line РНМ: 0000000000094237 [22:48:07]line Версия ККМ: 001 [22:48:07]line ФМ: 0000000000875019 [22:48:07]line ФД: 112482 [22:48:07]line ФПД: 231565590453160 [22:48:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T224806&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112482&fm=231565590453160&tin=02508201610067®Number=0000000000094237&sum=50000 [22:48:07]OFD Sender: Processing packet 112482 [packets to send 71, broken 70] [22:48:07]ProducePacketName [22:48:07]name=ofd_packets/00112482 [22:48:07]OFD Sender: To server: pG, [22:48:07]CommunicateWithHost lk.salyk.kg:30040 [22:48:07]ConnectInit lk.salyk.kg [22:48:07]written 0, free lines is 4095 [22:48:07]Connected sock=10 [22:48:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 42 87 08 01 5A 25 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 EC 1D 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 64 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 7D 01 00 00 F4 03 04 00 26 5D 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B7 01 00 35 04 06 00 D2 9B 90 C2 DB A8 DF FD 92 03 B2 BF 91 49 [22:48:08]Write to MH i2c: 01 00 00 E9 06 EF [22:48:08]Write i2c OK [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: 01 [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: 01 07 00 [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: 01 07 00 E9 06 00 00 00 00 00 DA 0C DC [22:48:08]RasterBufferAndPrint [22:48:08]line [22:48:08]line [22:48:08]line [22:48:08]line [22:48:08]line [22:48:08]written 0, free lines is 3297 [22:48:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 58 A5 47 00 95 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 62 B7 01 00 F4 03 04 00 B1 04 1C 66 B6 04 01 00 00 48 D4 AF 59 90 E1 34 77 [22:48:08]CommunicateWithHost err = 0 [22:48:08]CheckOFDResponse [22:48:08]1017 (14) - 77093643461234 [22:48:08]1041 (16) - 0000000000875019 [22:48:08]1040 (4) - 112482 [22:48:08]1012 (4) - 14.04.2024 16:30 [22:48:08]1206 (1) - 0 [22:48:08]OFD Sender: Remove packet 112482 [22:48:08]ProducePacketName [22:48:08]name=ofd_packets/00112482 [22:48:08]NVStorageDeleteData [22:48:08]MH_Cut [22:48:08]Write to MH i2c: D1 01 00 F0 06 01 C8 [22:48:08]Write i2c OK [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: D1 [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: D1 01 00 [22:48:08]MH_I2C_Read... [22:48:08]Read from MH i2c: D1 01 00 F0 06 00 C7 [22:48:08]Write to MH i2c: 01 00 00 F1 06 F7 [22:48:08]Write i2c OK [22:48:08]MH_I2C_Read... [22:48:08]OFD Sender: No OFD packet to send [22:48:09]*** Cut start [22:48:09]*** Partial cut [22:48:09]*** CUTSNS_PIN = 1 [22:48:09]*** CUTSNS_PIN = 0 [22:48:09]*** Brake cut motor [22:48:09]Read from MH i2c: 01 [22:48:09]MH_I2C_Read... [22:48:09]*** Stop cut motor [22:48:09]*** Cut end [22:48:09]Read from MH i2c: 01 07 00 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: 01 07 00 F1 06 00 00 00 00 00 FF 0F 0C [22:48:09]process_action close_receipt done [22:48:09]requested_data is exist [22:48:09]produce_requested_data [22:48:09]requested_item fm.sn is exist - process it [22:48:09]wFMCommunicate request_size=4 [22:48:09]MH_SAM_APDU [22:48:09]CAPDU: 80 11 00 00 [22:48:09]Write to MH i2c: E2 08 00 F2 06 80 11 00 00 00 00 00 00 72 [22:48:09]Write i2c OK [22:48:09]MH_I2C_Read... [22:48:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:48:09]Read from MH i2c: E2 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 17 00 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 17 00 F2 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C3 [22:48:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:48:09]wFMCommunicate OK [22:48:09]requested_item fd.num is exist - process it [22:48:09]SAM_PROTO_GetFieldsCounters [22:48:09]wFMCommunicate request_size=4 [22:48:09]MH_SAM_APDU [22:48:09]CAPDU: 80 13 00 00 [22:48:09]Write to MH i2c: E2 08 00 F3 06 80 13 00 00 00 00 00 00 75 [22:48:09]Write i2c OK [22:48:09]MH_I2C_Read... [22:48:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:48:09]Read from MH i2c: E2 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 62 00 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 62 00 F3 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 62 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 8E [22:48:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 62 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:48:09]wFMCommunicate OK [22:48:09]SAM_PROTO_GetFieldsCounters done [22:48:09]requested_item shift.num is exist - process it [22:48:09]requested_item shift.opened is exist - process it [22:48:09]req_shift_opened [22:48:09]FM_GetShiftState [22:48:09]SAM_PROTO_GetShiftState [22:48:09]wFMCommunicate request_size=4 [22:48:09]MH_SAM_APDU [22:48:09]CAPDU: 80 13 01 00 [22:48:09]Write to MH i2c: E2 08 00 F4 06 80 13 01 00 00 00 00 00 77 [22:48:09]Write i2c OK [22:48:09]MH_I2C_Read... [22:48:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:48:09]Read from MH i2c: E2 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 0E 00 [22:48:09]MH_I2C_Read... [22:48:09]Read from MH i2c: E2 0E 00 F4 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 0F [22:48:09]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:48:09]wFMCommunicate OK [22:48:09]SAM_PROTO_GetShiftState done [22:48:09]FM_GetShiftState done [22:48:09]req_shift_opened done [22:48:09]requested_item shift.open_date is exist - process it [22:48:09]req_shift_open_date [22:48:09]req_shift_open_date done [22:48:09]produce_requested_data done [22:48:09]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112482,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:48:09]process_action_free close_receipt [22:48:09]json_value_free [22:48:09]json_value_free done [22:48:09]process_json_proto returns [22:48:09]Send response to host [22:48:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112482,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:48:09]free response buf [22:48:09]execute_script done [22:48:09]execute_script returns [22:48:09]free content buf [22:48:09]Sock 7.Close socket [22:48:09]Sock 7.Thread stoped [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:31]accept exits with 9 [22:54:31]New connection [22:54:31]New thread 3067317604 created [22:54:31]Thread 3067174244 joined [22:54:31]Waiting for new connection... [22:54:31] Sock 9.Parse request [22:54:31]Sock 9.Check first char [22:54:31]Sock 9.First char is OK [22:54:31]request: POST /json_proto HTTP/1.0 [22:54:31]Method: POST [22:54:31]URL: /json_proto [22:54:31]Method is POST - this is cgi request [22:54:31]url: /json_proto [22:54:31]query_string will be loaded in cgi processing [22:54:31]execute_cgi json_proto POST (null) [22:54:31]execute_cgi path=json_proto method=POST [22:54:31]POST find Content-Length [22:54:31]Host: 172.17.96.197:8080 [22:54:31]Content-Length: 805 [22:54:31]Content-Type: application/json [22:54:31] [22:54:31]POST finish read [22:54:31]Found Content-Length = 805 [22:54:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48771", "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.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:31]execute_script... [22:54: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)48771", "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.30, "quantity" : 12.450, "sum" : 800.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:54:31]POST & json_proto [22:54:31]process_json_proto [22:54:31]json parsed OK: [22:54:31]protocol is kg_v1.0 [22:54:31]action value=close_receipt [22:54:31]process_action close_receipt [22:54:31]cmd_close_receipt [22:54:31]MH_GetDate [22:54:31]Write to MH i2c: F0 00 00 F5 06 EA [22:54:31]Write i2c OK [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: F0 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: F0 09 00 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: F0 09 00 F5 06 00 A8 5E 1C 66 E0 85 7F 64 C3 [22:54:31]GetLastDocTimeStamp 1713134886 [22:54:31]current date 1713135272 [22:54:31]FM_GetShiftState [22:54:31]SAM_PROTO_GetShiftState [22:54:31]wFMCommunicate request_size=4 [22:54:31]MH_SAM_APDU [22:54:31]CAPDU: 80 13 01 00 [22:54:31]Write to MH i2c: E2 08 00 F6 06 80 13 01 00 00 00 00 00 79 [22:54:31]Write i2c OK [22:54:31]MH_I2C_Read... [22:54:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:31]Read from MH i2c: E2 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: E2 0E 00 [22:54:31]MH_I2C_Read... [22:54:31]Read from MH i2c: E2 0E 00 F6 06 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 11 [22:54:31]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:54:31]wFMCommunicate OK [22:54:31]SAM_PROTO_GetShiftState done [22:54:31]FM_GetShiftState done [22:54:31]opened in 1713054696 [22:54:31]opened+sec_in_day 1713141096 [22:54:31]quantity*price = 80053 [22:54:31]sum+1 = 80055 [22:54:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.54 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.54 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 382 14.04.2024 22:54 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112483 ФПД: 56167353593081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225432&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112483&fm=56167353593081&tin=02508201610067®Number=0000000000094237&sum=80054 [22:54:32]StoreToDocumentArchive [22:54:32]shift 357 fd 112483 [22:54:32]save to /storage/0357/doc_00112483 [22:54:32]save last doc name /storage/0357/doc_00112483 to /storage/kkm_last_doc_name [22:54:32]save OK [22:54:32]Clear old archive folders... [22:54:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:54:32]tlvbuf is 01A0E780 [22:54:32]SAM_PROTO_ClearQueue [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 09 00 00 [22:54:32]Write to MH i2c: E2 08 00 03 07 80 09 00 00 00 00 00 00 7C [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:54:32]Read from MH i2c: E2 03 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 03 00 03 07 00 90 00 7E [22:54:32]RAPDU: 90 00 [22:54:32]wFMCommunicate OK [22:54:32]SAM_PROTO_ClearQueue done [22:54:32]KKMCreateOFDPacket [22:54:32]OFDProtocolAddRootSTLVToBuf [22:54:32]FM_MakeSignedData [22:54:32]FM_MakeSignedData [22:54:32]SAM_PROTO_SignData [22:54:32]wFMCommunicate request_size=4 [22:54:32]MH_SAM_APDU [22:54:32]CAPDU: 80 0D 01 02 [22:54:32]Write to MH i2c: E2 08 00 04 07 80 0D 01 02 00 00 00 00 84 [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:54:32]Read from MH i2c: E2 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 03 00 [22:54:32]MH_I2C_Read... [22:54:32]Read from MH i2c: E2 03 00 04 07 00 90 00 7F [22:54:32]RAPDU: 90 00 [22:54:32]wFMCommunicate OK [22:54:32]wFMCommunicate request_size=255 [22:54:32]MH_SAM_APDU [22:54:32]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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A8 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B7 01 00 35 04 06 00 33 [22:54:32]Write to MH i2c: E2 02 01 05 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A8 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B7 01 00 35 04 06 00 33 00 00 39 [22:54:32]Write i2c OK [22:54:32]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 05 07 00 90 00 80 [22:54:33]RAPDU: 90 00 [22:54:33]wFMCommunicate OK [22:54:33]wFMCommunicate request_size=10 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 0D 02 02 05 15 7B 28 AC F9 [22:54:33]Write to MH i2c: E2 0D 00 06 07 80 0D 02 02 05 00 15 7B 28 AC F9 00 00 EE [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 03 00 06 07 00 90 00 81 [22:54:33]RAPDU: 90 00 [22:54:33]wFMCommunicate OK [22:54:33]wFMCommunicate request_size=4 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 0D 03 02 [22:54:33]Write to MH i2c: E2 08 00 07 07 80 0D 03 02 00 00 00 00 89 [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 0B 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 0B 00 07 07 00 47 B6 22 4A D6 1D A3 E1 90 00 6A [22:54:33]RAPDU: 47 B6 22 4A D6 1D A3 E1 90 00 [22:54:33]wFMCommunicate OK [22:54:33]SAM_PROTO_SignData done [22:54:33]FM_MakeSignedData done [22:54:33]CreateOFDProtocolMessage [22:54:33]wFMCommunicate request_size=4 [22:54:33]MH_SAM_APDU [22:54:33]CAPDU: 80 11 00 00 [22:54:33]Write to MH i2c: E2 08 00 08 07 80 11 00 00 00 00 00 00 89 [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:33]Read from MH i2c: E2 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 17 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: E2 17 00 08 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DA [22:54:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:54:33]wFMCommunicate OK [22:54:33]CreateOFDProtocolMessage done [22:54:33]OFDSenderStorePacket 112483 [22:54:33]StoreOFDPacket docnum=112483 [22:54:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AF F1 07 01 A2 00 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A8 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B7 01 00 35 04 06 00 33 15 7B 28 AC F9 47 B6 22 4A D6 1D A3 E1 [22:54:33]CheckFolder [22:54:33]dirname=/storage/ofd_packets [22:54:33]CheckFolder done [22:54:33]ProducePacketName [22:54:33]name=ofd_packets/00112483 [22:54:33]NVStorageSaveData ofd_packets/00112483 [22:54:33]File name is /storage/ofd_packets/00112483 [22:54:33]Write 301 bytes [22:54:33]NVStorageSaveData done [22:54:33]OFDSenderStorePacket done [22:54:33]KKMCreateOFDPacket done [22:54:33]NVStorageSaveData kkm_last_timestamp [22:54:33]File name is /storage/kkm_last_timestamp [22:54:33]Write 4 bytes [22:54:33]NVStorageSaveData done [22:54:33]ExternCall_PrintAddStr [22:54:33]wPrintStart [22:54:33]Write to MH i2c: 01 00 00 09 07 10 [22:54:33]Write i2c OK [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: 01 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: 01 07 00 [22:54:33]MH_I2C_Read... [22:54:33]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 FF 0F 25 [22:54:33]RasterBufferAndPrint [22:54:33]line Счет N : (1)48771 [22:54:33]line ИНН: 02508201610067 [22:54:33]line Контрольно-Кассовый Чек [22:54:33]line ПРОДАЖА [22:54:33]line ТРК (МРК, ГНК) : 32 [22:54:33]line Товар: 2710124130 [22:54:33]line Аи-92-К-5 [22:54:33]line 12.450 * 64.30 [22:54:33]line = 800.54 [22:54:33]line НДС 12% НСП 1% [22:54:33]line > о реализуемом товаре [22:54:33]line ИТОГО: 800.54 [22:54:33]line НСП 1% : 7.08 [22:54:33]line НДС 12% : 85.01 [22:54:33]line Наличными: 0.00 [22:54:33]line Безнал.: 800.54 [22:54:33]line Место: АЗС № 47 "Партнер Нефть" [22:54:33]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:54:33]line СНО: Общий режим [22:54:33]line Чек 382 14.04.2024 22:54 [22:54:33]line Смена: 357 ФФД: 1.0 [22:54:33]line ЗНМ: 0300000138 [22:54:33]line РНМ: 0000000000094237 [22:54:33]line Версия ККМ: 001 [22:54:33]line Платежная система: О! деньги [22:54:33]line ФМ: 0000000000875019 [22:54:33]line ФД: 112483 [22:54:33]line ФПД: 56167353593081 [22:54:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225432&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112483&fm=56167353593081&tin=02508201610067®Number=0000000000094237&sum=80054 [22:54:33]OFD Sender: Processing packet 112483 [packets to send 71, broken 70] [22:54:33]ProducePacketName [22:54:33]name=ofd_packets/00112483 [22:54:33]OFD Sender: To server: pG, [22:54:33]CommunicateWithHost lk.salyk.kg:30040 [22:54:33]ConnectInit lk.salyk.kg [22:54:33]written 0, free lines is 4095 [22:54:33]Connected sock=10 [22:54:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AF F1 07 01 A2 00 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 A2 30 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 B6 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 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 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 A8 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 63 B7 01 00 35 04 06 00 33 15 7B 28 AC F9 47 B6 22 4A D6 1D A3 E1 [22:54:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E4 BF 47 00 A4 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 38 37 35 30 31 39 10 04 04 00 63 B7 01 00 F4 03 04 00 32 06 1C 66 B6 04 01 00 00 1C F3 7C 6F 82 6C F7 50 [22:54:34]CommunicateWithHost err = 0 [22:54:34]CheckOFDResponse [22:54:34]1017 (14) - 77093643461234 [22:54:34]1041 (16) - 0000000000875019 [22:54:34]1040 (4) - 112483 [22:54:34]1012 (4) - 14.04.2024 16:37 [22:54:34]1206 (1) - 0 [22:54:34]OFD Sender: Remove packet 112483 [22:54:34]ProducePacketName [22:54:34]name=ofd_packets/00112483 [22:54:34]NVStorageDeleteData [22:54:34]Write to MH i2c: 01 00 00 33 07 3A [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: 01 07 00 33 07 00 00 00 00 00 0A 0D 58 [22:54:34]RasterBufferAndPrint [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]line [22:54:34]written 0, free lines is 3344 [22:54:34]MH_Cut [22:54:34]Write to MH i2c: D1 01 00 3A 07 01 13 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 01 00 [22:54:34]MH_I2C_Read... [22:54:34]Read from MH i2c: D1 01 00 3A 07 00 12 [22:54:34]Write to MH i2c: 01 00 00 3B 07 42 [22:54:34]Write i2c OK [22:54:34]MH_I2C_Read... [22:54:34]OFD Sender: No OFD packet to send [22:54:34]*** Cut start [22:54:34]*** Partial cut [22:54:34]*** CUTSNS_PIN = 1 [22:54:34]*** CUTSNS_PIN = 0 [22:54:35]*** Brake cut motor [22:54:35]Read from MH i2c: 01 [22:54:35]MH_I2C_Read... [22:54:35]*** Stop cut motor [22:54:35]*** Cut end [22:54:35]Read from MH i2c: 01 07 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: 01 07 00 3B 07 00 00 00 00 00 FF 0F 57 [22:54:35]process_action close_receipt done [22:54:35]requested_data is exist [22:54:35]produce_requested_data [22:54:35]requested_item fm.sn is exist - process it [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 11 00 00 [22:54:35]Write to MH i2c: E2 08 00 3C 07 80 11 00 00 00 00 00 00 BD [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 17 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 17 00 3C 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0E [22:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:54:35]wFMCommunicate OK [22:54:35]requested_item fd.num is exist - process it [22:54:35]SAM_PROTO_GetFieldsCounters [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 13 00 00 [22:54:35]Write to MH i2c: E2 08 00 3D 07 80 13 00 00 00 00 00 00 C0 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 62 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 62 00 3D 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 63 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 DD [22:54:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 63 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:54:35]wFMCommunicate OK [22:54:35]SAM_PROTO_GetFieldsCounters done [22:54:35]requested_item shift.num is exist - process it [22:54:35]requested_item shift.opened is exist - process it [22:54:35]req_shift_opened [22:54:35]FM_GetShiftState [22:54:35]SAM_PROTO_GetShiftState [22:54:35]wFMCommunicate request_size=4 [22:54:35]MH_SAM_APDU [22:54:35]CAPDU: 80 13 01 00 [22:54:35]Write to MH i2c: E2 08 00 3E 07 80 13 01 00 00 00 00 00 C2 [22:54:35]Write i2c OK [22:54:35]MH_I2C_Read... [22:54:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:54:35]Read from MH i2c: E2 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 0E 00 [22:54:35]MH_I2C_Read... [22:54:35]Read from MH i2c: E2 0E 00 3E 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5A [22:54:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:54:35]wFMCommunicate OK [22:54:35]SAM_PROTO_GetShiftState done [22:54:35]FM_GetShiftState done [22:54:35]req_shift_opened done [22:54:35]requested_item shift.open_date is exist - process it [22:54:35]req_shift_open_date [22:54:35]req_shift_open_date done [22:54:35]produce_requested_data done [22:54:35]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112483,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:54:35]process_action_free close_receipt [22:54:35]json_value_free [22:54:35]json_value_free done [22:54:35]process_json_proto returns [22:54:35]Send response to host [22:54:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112483,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:54:35]free response buf [22:54:35]execute_script done [22:54:35]execute_script returns [22:54:35]free content buf [22:54:35]Sock 9.Close socket [22:54:35]Sock 9.Thread stoped [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:38]accept exits with 7 [22:55:38]New connection [22:55:38]New thread 3067174244 created [22:55:38]Thread 3067317604 joined [22:55:38]Waiting for new connection... [22:55:38] Sock 7.Parse request [22:55:38]Sock 7.Check first char [22:55:38]Sock 7.First char is OK [22:55:38]request: POST /json_proto HTTP/1.0 [22:55:38]Method: POST [22:55:38]URL: /json_proto [22:55:38]Method is POST - this is cgi request [22:55:38]url: /json_proto [22:55:38]query_string will be loaded in cgi processing [22:55:38]execute_cgi json_proto POST (null) [22:55:38]execute_cgi path=json_proto method=POST [22:55:38]POST find Content-Length [22:55:38]Host: 172.17.96.197:8080 [22:55:38]Content-Length: 826 [22:55:38]Content-Type: application/json [22:55:38] [22:55:38]POST finish read [22:55:38]Found Content-Length = 826 [22:55:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10458", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:38]execute_script... [22:55:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10458", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:55:38]POST & json_proto [22:55:38]process_json_proto [22:55:38]json parsed OK: [22:55:38]protocol is kg_v1.0 [22:55:38]action value=close_receipt [22:55:38]process_action close_receipt [22:55:38]cmd_close_receipt [22:55:38]MH_GetDate [22:55:38]Write to MH i2c: F0 00 00 3F 07 35 [22:55:38]Write i2c OK [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 09 00 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: F0 09 00 3F 07 00 EB 5E 1C 66 E0 85 7F 64 51 [22:55:38]GetLastDocTimeStamp 1713135272 [22:55:38]current date 1713135339 [22:55:38]FM_GetShiftState [22:55:38]SAM_PROTO_GetShiftState [22:55:38]wFMCommunicate request_size=4 [22:55:38]MH_SAM_APDU [22:55:38]CAPDU: 80 13 01 00 [22:55:38]Write to MH i2c: E2 08 00 40 07 80 13 01 00 00 00 00 00 C4 [22:55:38]Write i2c OK [22:55:38]MH_I2C_Read... [22:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:38]Read from MH i2c: E2 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: E2 0E 00 [22:55:38]MH_I2C_Read... [22:55:38]Read from MH i2c: E2 0E 00 40 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 5C [22:55:38]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:55:38]wFMCommunicate OK [22:55:38]SAM_PROTO_GetShiftState done [22:55:38]FM_GetShiftState done [22:55:38]opened in 1713054696 [22:55:38]opened+sec_in_day 1713141096 [22:55:38]quantity*price = 10500 [22:55:38]sum+1 = 10501 [22:55:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 0.00 Безнал.: 105.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 383 14.04.2024 22:55 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112484 ФПД: 47211080638862 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225539&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112484&fm=47211080638862&tin=02508201610067®Number=0000000000094237&sum=10500 0 [22:55:39]StoreToDocumentArchive [22:55:39]shift 357 fd 112484 [22:55:39]save to /storage/0357/doc_00112484 [22:55:39]save last doc name /storage/0357/doc_00112484 to /storage/kkm_last_doc_name [22:55:39]save OK [22:55:39]Clear old archive folders... [22:55:39]ProcessDocumentItem done err = 0, tmpTLVsize=282 [22:55:39]tlvbuf is 01A1A400 [22:55:39]SAM_PROTO_ClearQueue [22:55:39]wFMCommunicate request_size=4 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 09 00 00 [22:55:39]Write to MH i2c: E2 08 00 4D 07 80 09 00 00 00 00 00 00 C6 [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:55:39]Read from MH i2c: E2 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 4D 07 00 90 00 C8 [22:55:39]RAPDU: 90 00 [22:55:39]wFMCommunicate OK [22:55:39]SAM_PROTO_ClearQueue done [22:55:39]KKMCreateOFDPacket [22:55:39]OFDProtocolAddRootSTLVToBuf [22:55:39]FM_MakeSignedData [22:55:39]FM_MakeSignedData [22:55:39]SAM_PROTO_SignData [22:55:39]wFMCommunicate request_size=4 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 0D 01 02 [22:55:39]Write to MH i2c: E2 08 00 4E 07 80 0D 01 02 00 00 00 00 CE [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:55:39]Read from MH i2c: E2 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 [22:55:39]MH_I2C_Read... [22:55:39]Read from MH i2c: E2 03 00 4E 07 00 90 00 C9 [22:55:39]RAPDU: 90 00 [22:55:39]wFMCommunicate OK [22:55:39]wFMCommunicate request_size=255 [22:55:39]MH_SAM_APDU [22:55:39]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 EB 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [22:55:39]Write to MH i2c: E2 02 01 4F 07 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 EB 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 47 [22:55:39]Write i2c OK [22:55:39]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 4F 07 00 90 00 CA [22:55:40]RAPDU: 90 00 [22:55:40]wFMCommunicate OK [22:55:40]wFMCommunicate request_size=41 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B7 01 00 35 04 06 00 2A F0 2F B0 E1 8E [22:55:40]Write to MH i2c: E2 2C 00 50 07 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B7 01 00 35 04 06 00 2A F0 2F B0 E1 8E 00 00 22 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 03 00 50 07 00 90 00 CB [22:55:40]RAPDU: 90 00 [22:55:40]wFMCommunicate OK [22:55:40]wFMCommunicate request_size=4 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 0D 03 02 [22:55:40]Write to MH i2c: E2 08 00 51 07 80 0D 03 02 00 00 00 00 D3 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 0B 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 0B 00 51 07 00 8B 6B 55 91 CB D3 AA D2 90 00 CA [22:55:40]RAPDU: 8B 6B 55 91 CB D3 AA D2 90 00 [22:55:40]wFMCommunicate OK [22:55:40]SAM_PROTO_SignData done [22:55:40]FM_MakeSignedData done [22:55:40]CreateOFDProtocolMessage [22:55:40]wFMCommunicate request_size=4 [22:55:40]MH_SAM_APDU [22:55:40]CAPDU: 80 11 00 00 [22:55:40]Write to MH i2c: E2 08 00 52 07 80 11 00 00 00 00 00 00 D3 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:40]Read from MH i2c: E2 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 17 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: E2 17 00 52 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 24 [22:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:55:40]wFMCommunicate OK [22:55:40]CreateOFDProtocolMessage done [22:55:40]OFDSenderStorePacket 112484 [22:55:40]StoreOFDPacket docnum=112484 [22:55:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 27 92 26 01 8E 0E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 EB 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B7 01 00 35 04 06 00 2A F0 2F B0 E1 8E 8B 6B 55 91 CB D3 AA D2 [22:55:40]CheckFolder [22:55:40]dirname=/storage/ofd_packets [22:55:40]CheckFolder done [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00112484 [22:55:40]NVStorageSaveData ofd_packets/00112484 [22:55:40]File name is /storage/ofd_packets/00112484 [22:55:40]Write 332 bytes [22:55:40]NVStorageSaveData done [22:55:40]OFDSenderStorePacket done [22:55:40]KKMCreateOFDPacket done [22:55:40]NVStorageSaveData kkm_last_timestamp [22:55:40]File name is /storage/kkm_last_timestamp [22:55:40]Write 4 bytes [22:55:40]NVStorageSaveData done [22:55:40]ExternCall_PrintAddStr [22:55:40]wPrintStart [22:55:40]Write to MH i2c: 01 00 00 53 07 5A [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 53 07 00 00 00 00 00 FF 0F 6F [22:55:40]RasterBufferAndPrint [22:55:40]line Счет N : (3)10458 [22:55:40]line ИНН: 02508201610067 [22:55:40]line Контрольно-Кассовый Чек [22:55:40]line ПРОДАЖА [22:55:40]line Товар: 2000034730018 [22:55:40]line Кофе Американо (GABB TRADE) [22:55:40]line 1.000 * 105.00 [22:55:40]line = 105.00 [22:55:40]line НДС 12% НСП 1% [22:55:40]line > о реализуемом товаре [22:55:40]line ИТОГО: 105.00 [22:55:40]line НСП 1% : 0.93 [22:55:40]line НДС 12% : 11.15 [22:55:40]line Наличными: 0.00 [22:55:40]line Безнал.: 105.00 [22:55:40]line Место: АЗС № 47 "Партнер Нефть" [22:55:40]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:55:40]line СНО: Общий режим [22:55:40]line Чек 383 14.04.2024 22:55 [22:55:40]line Смена: 357 ФФД: 1.0 [22:55:40]line ЗНМ: 0300000138 [22:55:40]line РНМ: 0000000000094237 [22:55:40]line Версия ККМ: 001 [22:55:40]line Платежная система: Бакай Банк [22:55:40]line ФМ: 0000000000875019 [22:55:40]line ФД: 112484 [22:55:40]line ФПД: 47211080638862 [22:55:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225539&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112484&fm=47211080638862&tin=02508201610067®Number=0000000000094237&sum=10500 [22:55:40]line 0 [22:55:40]OFD Sender: Processing packet 112484 [packets to send 71, broken 70] [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00112484 [22:55:40]OFD Sender: To server: pG, [22:55:40]CommunicateWithHost lk.salyk.kg:30040 [22:55:40]ConnectInit lk.salyk.kg [22:55:40]written 0, free lines is 4095 [22:55:40]Connected sock=10 [22:55:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 27 92 26 01 8E 0E 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 04 29 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 01 00 00 F4 03 04 00 EB 5E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B7 01 00 35 04 06 00 2A F0 2F B0 E1 8E 8B 6B 55 91 CB D3 AA D2 [22:55:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 18 EF 47 00 A4 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 64 B7 01 00 F4 03 04 00 75 06 1C 66 B6 04 01 00 00 EE 2B 02 4A 77 81 1F 9C [22:55:40]CommunicateWithHost err = 0 [22:55:40]CheckOFDResponse [22:55:40]1017 (14) - 77093643461234 [22:55:40]1041 (16) - 0000000000875019 [22:55:40]1040 (4) - 112484 [22:55:40]1012 (4) - 14.04.2024 16:38 [22:55:40]1206 (1) - 0 [22:55:40]OFD Sender: Remove packet 112484 [22:55:40]ProducePacketName [22:55:40]name=ofd_packets/00112484 [22:55:40]NVStorageDeleteData [22:55:40]Write to MH i2c: 01 00 00 7E 07 85 [22:55:40]Write i2c OK [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 [22:55:40]MH_I2C_Read... [22:55:40]Read from MH i2c: 01 07 00 7E 07 00 00 00 00 00 C7 0C 5F [22:55:40]RasterBufferAndPrint [22:55:40]line [22:55:40]line [22:55:40]line [22:55:40]line [22:55:40]line [22:55:40]written 0, free lines is 3277 [22:55:41]MH_Cut [22:55:41]Write to MH i2c: D1 01 00 85 07 01 5E [22:55:41]Write i2c OK [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 01 00 [22:55:41]MH_I2C_Read... [22:55:41]Read from MH i2c: D1 01 00 85 07 00 5D [22:55:41]Write to MH i2c: 01 00 00 86 07 8D [22:55:41]Write i2c OK [22:55:41]MH_I2C_Read... [22:55:41]OFD Sender: No OFD packet to send [22:55:41]*** Cut start [22:55:41]*** Partial cut [22:55:41]*** CUTSNS_PIN = 1 [22:55:41]*** CUTSNS_PIN = 0 [22:55:42]*** Brake cut motor [22:55:42]Read from MH i2c: 01 [22:55:42]MH_I2C_Read... [22:55:42]*** Stop cut motor [22:55:42]*** Cut end [22:55:42]Read from MH i2c: 01 07 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: 01 07 00 86 07 00 00 00 00 00 FF 0F A2 [22:55:42]process_action close_receipt done [22:55:42]requested_data is exist [22:55:42]produce_requested_data [22:55:42]requested_item fm.sn is exist - process it [22:55:42]wFMCommunicate request_size=4 [22:55:42]MH_SAM_APDU [22:55:42]CAPDU: 80 11 00 00 [22:55:42]Write to MH i2c: E2 08 00 87 07 80 11 00 00 00 00 00 00 08 [22:55:42]Write i2c OK [22:55:42]MH_I2C_Read... [22:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:55:42]Read from MH i2c: E2 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 17 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 17 00 87 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [22:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:55:42]wFMCommunicate OK [22:55:42]requested_item fd.num is exist - process it [22:55:42]SAM_PROTO_GetFieldsCounters [22:55:42]wFMCommunicate request_size=4 [22:55:42]MH_SAM_APDU [22:55:42]CAPDU: 80 13 00 00 [22:55:42]Write to MH i2c: E2 08 00 88 07 80 13 00 00 00 00 00 00 0B [22:55:42]Write i2c OK [22:55:42]MH_I2C_Read... [22:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:55:42]Read from MH i2c: E2 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 62 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 62 00 88 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 64 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [22:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 64 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:55:42]wFMCommunicate OK [22:55:42]SAM_PROTO_GetFieldsCounters done [22:55:42]requested_item shift.num is exist - process it [22:55:42]requested_item shift.opened is exist - process it [22:55:42]req_shift_opened [22:55:42]FM_GetShiftState [22:55:42]SAM_PROTO_GetShiftState [22:55:42]wFMCommunicate request_size=4 [22:55:42]MH_SAM_APDU [22:55:42]CAPDU: 80 13 01 00 [22:55:42]Write to MH i2c: E2 08 00 89 07 80 13 01 00 00 00 00 00 0D [22:55:42]Write i2c OK [22:55:42]MH_I2C_Read... [22:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:55:42]Read from MH i2c: E2 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 0E 00 [22:55:42]MH_I2C_Read... [22:55:42]Read from MH i2c: E2 0E 00 89 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A5 [22:55:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:55:42]wFMCommunicate OK [22:55:42]SAM_PROTO_GetShiftState done [22:55:42]FM_GetShiftState done [22:55:42]req_shift_opened done [22:55:42]requested_item shift.open_date is exist - process it [22:55:42]req_shift_open_date [22:55:42]req_shift_open_date done [22:55:42]produce_requested_data done [22:55:42]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112484,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:55:42]process_action_free close_receipt [22:55:42]json_value_free [22:55:42]json_value_free done [22:55:42]process_json_proto returns [22:55:42]Send response to host [22:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112484,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:55:42]free response buf [22:55:42]execute_script done [22:55:42]execute_script returns [22:55:42]free content buf [22:55:42]Sock 7.Close socket [22:55:42]Sock 7.Thread stoped [22:55:46]OFD Sender: No OFD packet to send [22:55:51]OFD Sender: No OFD packet to send [22:55:56]OFD Sender: No OFD packet to send [22:56:01]OFD Sender: No OFD packet to send [22:56:06]OFD Sender: No OFD packet to send [22:56:11]OFD Sender: No OFD packet to send [22:56:16]OFD Sender: No OFD packet to send [22:56:21]OFD Sender: No OFD packet to send [22:56:26]OFD Sender: No OFD packet to send [22:56:31]OFD Sender: No OFD packet to send [22:56:36]OFD Sender: No OFD packet to send [22:56:41]OFD Sender: No OFD packet to send [22:56:46]OFD Sender: No OFD packet to send [22:56:51]OFD Sender: No OFD packet to send [22:56:56]OFD Sender: No OFD packet to send [22:57:01]OFD Sender: No OFD packet to send [22:57:06]OFD Sender: No OFD packet to send [22:57:11]OFD Sender: No OFD packet to send [22:57:16]OFD Sender: No OFD packet to send [22:57:21]OFD Sender: No OFD packet to send [22:57:26]OFD Sender: No OFD packet to send [22:57:31]OFD Sender: No OFD packet to send [22:57:36]OFD Sender: No OFD packet to send [22:57:41]OFD Sender: No OFD packet to send [22:57:46]OFD Sender: No OFD packet to send [22:57:51]OFD Sender: No OFD packet to send [22:57:56]OFD Sender: No OFD packet to send [22:58:01]OFD Sender: No OFD packet to send [22:58:06]OFD Sender: No OFD packet to send [22:58:11]OFD Sender: No OFD packet to send [22:58:16]OFD Sender: No OFD packet to send [22:58:21]OFD Sender: No OFD packet to send [22:58:26]OFD Sender: No OFD packet to send [22:58:31]OFD Sender: No OFD packet to send [22:58:36]OFD Sender: No OFD packet to send [22:58:41]OFD Sender: No OFD packet to send [22:58:46]OFD Sender: No OFD packet to send [22:58:51]OFD Sender: No OFD packet to send [22:58:56]OFD Sender: No OFD packet to send [22:59:01]OFD Sender: No OFD packet to send [22:59:06]OFD Sender: No OFD packet to send [22:59:11]OFD Sender: No OFD packet to send [22:59:16]OFD Sender: No OFD packet to send [22:59:21]OFD Sender: No OFD packet to send [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:39]accept exits with 9 [22:59:39]New connection [22:59:39]New thread 3067317604 created [22:59:39]Thread 3067174244 joined [22:59:39]Waiting for new connection... [22:59:39] Sock 9.Parse request [22:59:39]Sock 9.Check first char [22:59:39]Sock 9.First char is OK [22:59:39]request: POST /json_proto HTTP/1.0 [22:59:39]Method: POST [22:59:39]URL: /json_proto [22:59:39]Method is POST - this is cgi request [22:59:39]url: /json_proto [22:59:39]query_string will be loaded in cgi processing [22:59:39]execute_cgi json_proto POST (null) [22:59:39]execute_cgi path=json_proto method=POST [22:59:39]POST find Content-Length [22:59:39]Host: 172.17.96.197:8080 [22:59:39]Content-Length: 680 [22:59:39]Content-Type: application/json [22:59:39] [22:59:39]POST finish read [22:59:39]Found Content-Length = 680 [22:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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" ] } } [22:59:39]execute_script... [22:59: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)48772", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 15.300, "sum" : 500.31, "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" ] } } [22:59:39]POST & json_proto [22:59:39]process_json_proto [22:59:39]json parsed OK: [22:59:39]protocol is kg_v1.0 [22:59:39]action value=close_receipt [22:59:39]process_action close_receipt [22:59:39]cmd_close_receipt [22:59:39]MH_GetDate [22:59:39]Write to MH i2c: F0 00 00 8A 07 80 [22:59:39]Write i2c OK [22:59:39]MH_I2C_Read... [22:59:39]Read from MH i2c: F0 [22:59:39]MH_I2C_Read... [22:59:39]Read from MH i2c: F0 09 00 [22:59:39]MH_I2C_Read... [22:59:39]Read from MH i2c: F0 09 00 8A 07 00 DD 5F 1C 66 E0 85 7F 64 8F [22:59:39]GetLastDocTimeStamp 1713135339 [22:59:39]current date 1713135581 [22:59:39]FM_GetShiftState [22:59:39]SAM_PROTO_GetShiftState [22:59:39]wFMCommunicate request_size=4 [22:59:39]MH_SAM_APDU [22:59:39]CAPDU: 80 13 01 00 [22:59:39]Write to MH i2c: E2 08 00 8B 07 80 13 01 00 00 00 00 00 0F [22:59:39]Write i2c OK [22:59:39]MH_I2C_Read... [22:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:40]Read from MH i2c: E2 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 0E 00 [22:59:40]MH_I2C_Read... [22:59:40]Read from MH i2c: E2 0E 00 8B 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 A7 [22:59:40]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:59:40]wFMCommunicate OK [22:59:40]SAM_PROTO_GetShiftState done [22:59:40]FM_GetShiftState done [22:59:40]opened in 1713054696 [22:59:40]opened+sec_in_day 1713141096 [22:59:40]quantity*price = 50031 [22:59:40]sum+1 = 50032 [22:59:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 384 14.04.2024 22:59 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112485 ФПД: 81262530498006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225941&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112485&fm=81262530498006&tin=02508201610067®Number=0000000000094237&sum=50000 [22:59:41]StoreToDocumentArchive [22:59:41]shift 357 fd 112485 [22:59:41]save to /storage/0357/doc_00112485 [22:59:41]save last doc name /storage/0357/doc_00112485 to /storage/kkm_last_doc_name [22:59:41]save OK [22:59:41]Clear old archive folders... [22:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [22:59:41]tlvbuf is 019D8BE0 [22:59:41]SAM_PROTO_ClearQueue [22:59:41]wFMCommunicate request_size=4 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 09 00 00 [22:59:41]Write to MH i2c: E2 08 00 98 07 80 09 00 00 00 00 00 00 11 [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 98 07 00 90 00 13 [22:59:41]RAPDU: 90 00 [22:59:41]wFMCommunicate OK [22:59:41]SAM_PROTO_ClearQueue done [22:59:41]KKMCreateOFDPacket [22:59:41]OFDProtocolAddRootSTLVToBuf [22:59:41]FM_MakeSignedData [22:59:41]FM_MakeSignedData [22:59:41]SAM_PROTO_SignData [22:59:41]wFMCommunicate request_size=4 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 0D 01 02 [22:59:41]Write to MH i2c: E2 08 00 99 07 80 0D 01 02 00 00 00 00 19 [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 99 07 00 90 00 14 [22:59:41]RAPDU: 90 00 [22:59:41]wFMCommunicate OK [22:59:41]wFMCommunicate request_size=255 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 DD 5F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B7 01 00 35 04 06 00 49 E8 [22:59:41]Write to MH i2c: E2 02 01 9A 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 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 DD 5F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B7 01 00 35 04 06 00 49 E8 00 00 75 [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 9A 07 00 90 00 15 [22:59:41]RAPDU: 90 00 [22:59:41]wFMCommunicate OK [22:59:41]wFMCommunicate request_size=9 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 0D 02 02 04 68 43 8D D6 [22:59:41]Write to MH i2c: E2 0C 00 9B 07 80 0D 02 02 04 00 68 43 8D D6 00 00 32 [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 03 00 9B 07 00 90 00 16 [22:59:41]RAPDU: 90 00 [22:59:41]wFMCommunicate OK [22:59:41]wFMCommunicate request_size=4 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 0D 03 02 [22:59:41]Write to MH i2c: E2 08 00 9C 07 80 0D 03 02 00 00 00 00 1E [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 0B 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 0B 00 9C 07 00 59 DE B0 D9 B7 7D 76 42 90 00 CB [22:59:41]RAPDU: 59 DE B0 D9 B7 7D 76 42 90 00 [22:59:41]wFMCommunicate OK [22:59:41]SAM_PROTO_SignData done [22:59:41]FM_MakeSignedData done [22:59:41]CreateOFDProtocolMessage [22:59:41]wFMCommunicate request_size=4 [22:59:41]MH_SAM_APDU [22:59:41]CAPDU: 80 11 00 00 [22:59:41]Write to MH i2c: E2 08 00 9D 07 80 11 00 00 00 00 00 00 1E [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:41]Read from MH i2c: E2 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 17 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: E2 17 00 9D 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [22:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:59:41]wFMCommunicate OK [22:59:41]CreateOFDProtocolMessage done [22:59:41]OFDSenderStorePacket 112485 [22:59:41]StoreOFDPacket docnum=112485 [22:59:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 FD 7F 06 01 A5 C8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 DD 5F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B7 01 00 35 04 06 00 49 E8 68 43 8D D6 59 DE B0 D9 B7 7D 76 42 [22:59:41]CheckFolder [22:59:41]dirname=/storage/ofd_packets [22:59:41]CheckFolder done [22:59:41]ProducePacketName [22:59:41]name=ofd_packets/00112485 [22:59:41]NVStorageSaveData ofd_packets/00112485 [22:59:41]File name is /storage/ofd_packets/00112485 [22:59:41]Write 300 bytes [22:59:41]NVStorageSaveData done [22:59:41]OFDSenderStorePacket done [22:59:41]KKMCreateOFDPacket done [22:59:41]NVStorageSaveData kkm_last_timestamp [22:59:41]File name is /storage/kkm_last_timestamp [22:59:41]Write 4 bytes [22:59:41]NVStorageSaveData done [22:59:41]ExternCall_PrintAddStr [22:59:41]wPrintStart [22:59:41]Write to MH i2c: 01 00 00 9E 07 A5 [22:59:41]Write i2c OK [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: 01 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: 01 07 00 [22:59:41]MH_I2C_Read... [22:59:41]Read from MH i2c: 01 07 00 9E 07 00 00 00 00 00 FF 0F BA [22:59:41]RasterBufferAndPrint [22:59:41]line Счет N : (1)48772 [22:59:41]line ИНН: 02508201610067 [22:59:41]line Контрольно-Кассовый Чек [22:59:41]line ПРОДАЖА [22:59:41]line ТРК (МРК, ГНК) : 71 [22:59:41]line Товар: 2711190000 [22:59:41]line ГАЗ-К-5 [22:59:41]line 15.300 * 32.70 [22:59:41]line = 500.31 [22:59:41]line НДС 12% НСП 1% [22:59:41]line > о реализуемом товаре [22:59:41]line ОКРУГЛЕНИЕ: -0.31 [22:59:41]line ИТОГО: 500.00 [22:59:41]line Внесено: 500.00 [22:59:41]line СДАЧА: 0.00 [22:59:41]line НСП 1% : 4.43 [22:59:41]line НДС 12% : 53.13 [22:59:41]line Наличными: 500.00 [22:59:41]line Безнал.: 0.00 [22:59:41]line Место: АЗС № 47 "Партнер Нефть" [22:59:41]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [22:59:41]line СНО: Общий режим [22:59:41]line Чек 384 14.04.2024 22:59 [22:59:41]line Смена: 357 ФФД: 1.0 [22:59:41]line ЗНМ: 0300000138 [22:59:41]line РНМ: 0000000000094237 [22:59:41]line Версия ККМ: 001 [22:59:41]line ФМ: 0000000000875019 [22:59:41]line ФД: 112485 [22:59:41]line ФПД: 81262530498006 [22:59:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T225941&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112485&fm=81262530498006&tin=02508201610067®Number=0000000000094237&sum=50000 [22:59:41]OFD Sender: Processing packet 112485 [packets to send 71, broken 70] [22:59:41]ProducePacketName [22:59:41]name=ofd_packets/00112485 [22:59:41]OFD Sender: To server: pG, [22:59:41]CommunicateWithHost lk.salyk.kg:30040 [22:59:41]ConnectInit lk.salyk.kg [22:59:41]written 0, free lines is 4095 [22:59:42]Connected sock=10 [22:59:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 FD 7F 06 01 A5 C8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 C4 3B 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 6F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 DD 5F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 65 B7 01 00 35 04 06 00 49 E8 68 43 8D D6 59 DE B0 D9 B7 7D 76 42 [22:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 27 9B 47 00 5F 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 38 37 35 30 31 39 10 04 04 00 65 B7 01 00 F4 03 04 00 67 07 1C 66 B6 04 01 00 00 6B E7 66 0B DE 77 DB 18 [22:59:42]CommunicateWithHost err = 0 [22:59:42]CheckOFDResponse [22:59:42]1017 (14) - 77093643461234 [22:59:42]1041 (16) - 0000000000875019 [22:59:42]1040 (4) - 112485 [22:59:42]1012 (4) - 14.04.2024 16:42 [22:59:42]1206 (1) - 0 [22:59:42]OFD Sender: Remove packet 112485 [22:59:42]ProducePacketName [22:59:42]name=ofd_packets/00112485 [22:59:42]NVStorageDeleteData [22:59:42]Write to MH i2c: 01 00 00 C9 07 D0 [22:59:42]Write i2c OK [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: 01 [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: 01 07 00 [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: 01 07 00 C9 07 00 00 00 00 00 E1 0C C4 [22:59:42]RasterBufferAndPrint [22:59:42]line [22:59:42]line [22:59:42]line [22:59:42]line [22:59:42]line [22:59:42]written 0, free lines is 3303 [22:59:42]MH_Cut [22:59:42]Write to MH i2c: D1 01 00 D0 07 01 A9 [22:59:42]Write i2c OK [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: D1 [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: D1 01 00 [22:59:42]MH_I2C_Read... [22:59:42]Read from MH i2c: D1 01 00 D0 07 00 A8 [22:59:42]Write to MH i2c: 01 00 00 D1 07 D8 [22:59:42]Write i2c OK [22:59:42]MH_I2C_Read... [22:59:42]OFD Sender: No OFD packet to send [22:59:43]*** Cut start [22:59:43]*** Partial cut [22:59:43]*** CUTSNS_PIN = 1 [22:59:43]*** CUTSNS_PIN = 0 [22:59:43]*** Brake cut motor [22:59:43]Read from MH i2c: 01 [22:59:43]MH_I2C_Read... [22:59:43]*** Stop cut motor [22:59:43]*** Cut end [22:59:43]Read from MH i2c: 01 07 00 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: 01 07 00 D1 07 00 00 00 00 00 FF 0F ED [22:59:43]process_action close_receipt done [22:59:43]requested_data is exist [22:59:43]produce_requested_data [22:59:43]requested_item fm.sn is exist - process it [22:59:43]wFMCommunicate request_size=4 [22:59:43]MH_SAM_APDU [22:59:43]CAPDU: 80 11 00 00 [22:59:43]Write to MH i2c: E2 08 00 D2 07 80 11 00 00 00 00 00 00 53 [22:59:43]Write i2c OK [22:59:43]MH_I2C_Read... [22:59:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:43]Read from MH i2c: E2 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: E2 17 00 [22:59:43]MH_I2C_Read... [22:59:43]Read from MH i2c: E2 17 00 D2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A4 [22:59:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [22:59:43]wFMCommunicate OK [22:59:43]requested_item fd.num is exist - process it [22:59:43]SAM_PROTO_GetFieldsCounters [22:59:43]wFMCommunicate request_size=4 [22:59:43]MH_SAM_APDU [22:59:43]CAPDU: 80 13 00 00 [22:59:43]Write to MH i2c: E2 08 00 D3 07 80 13 00 00 00 00 00 00 56 [22:59:43]Write i2c OK [22:59:43]MH_I2C_Read... [22:59:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:44]Read from MH i2c: E2 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 62 00 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 62 00 D3 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 65 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 7B [22:59:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 65 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:44]wFMCommunicate OK [22:59:44]SAM_PROTO_GetFieldsCounters done [22:59:44]requested_item shift.num is exist - process it [22:59:44]requested_item shift.opened is exist - process it [22:59:44]req_shift_opened [22:59:44]FM_GetShiftState [22:59:44]SAM_PROTO_GetShiftState [22:59:44]wFMCommunicate request_size=4 [22:59:44]MH_SAM_APDU [22:59:44]CAPDU: 80 13 01 00 [22:59:44]Write to MH i2c: E2 08 00 D4 07 80 13 01 00 00 00 00 00 58 [22:59:44]Write i2c OK [22:59:44]MH_I2C_Read... [22:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:44]Read from MH i2c: E2 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 0E 00 [22:59:44]MH_I2C_Read... [22:59:44]Read from MH i2c: E2 0E 00 D4 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F0 [22:59:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [22:59:44]wFMCommunicate OK [22:59:44]SAM_PROTO_GetShiftState done [22:59:44]FM_GetShiftState done [22:59:44]req_shift_opened done [22:59:44]requested_item shift.open_date is exist - process it [22:59:44]req_shift_open_date [22:59:44]req_shift_open_date done [22:59:44]produce_requested_data done [22:59:44]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112485,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [22:59:44]process_action_free close_receipt [22:59:44]json_value_free [22:59:44]json_value_free done [22:59:44]process_json_proto returns [22:59:44]Send response to host [22:59:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112485,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [22:59:44]free response buf [22:59:44]execute_script done [22:59:44]execute_script returns [22:59:44]free content buf [22:59:44]Sock 9.Close socket [22:59:44]Sock 9.Thread stoped [22:59:47]OFD Sender: No OFD packet to send [22:59:52]OFD Sender: No OFD packet to send [22:59:57]OFD Sender: No OFD packet to send [23:00:02]OFD Sender: No OFD packet to send [23:00:07]OFD Sender: No OFD packet to send [23:00:12]OFD Sender: No OFD packet to send [23:00:17]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:16]accept exits with 7 [23:04:16]New connection [23:04:16]New thread 3067174244 created [23:04:16]Thread 3067317604 joined [23:04:16]Waiting for new connection... [23:04:16] Sock 7.Parse request [23:04:16]Sock 7.Check first char [23:04:16]Sock 7.First char is OK [23:04:16]request: POST /json_proto HTTP/1.0 [23:04:16]Method: POST [23:04:16]URL: /json_proto [23:04:16]Method is POST - this is cgi request [23:04:16]url: /json_proto [23:04:16]query_string will be loaded in cgi processing [23:04:16]execute_cgi json_proto POST (null) [23:04:16]execute_cgi path=json_proto method=POST [23:04:16]POST find Content-Length [23:04:16]Host: 172.17.96.197:8080 [23:04:16]Content-Length: 673 [23:04:16]Content-Type: application/json [23:04:16] [23:04:16]POST finish read [23:04:16]Found Content-Length = 673 [23:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48773", "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.40, "quantity" : 5.740, "sum" : 415.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 415.00, "total" : 415.00, "payments": [ { "type": 0, "sum" : 415.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:16]execute_script... [23:04: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)48773", "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.40, "quantity" : 5.740, "sum" : 415.58, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 415.00, "total" : 415.00, "payments": [ { "type": 0, "sum" : 415.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:04:16]POST & json_proto [23:04:16]process_json_proto [23:04:16]json parsed OK: [23:04:16]protocol is kg_v1.0 [23:04:16]action value=close_receipt [23:04:16]process_action close_receipt [23:04:16]cmd_close_receipt [23:04:16]MH_GetDate [23:04:16]Write to MH i2c: F0 00 00 D5 07 CB [23:04:16]Write i2c OK [23:04:16]MH_I2C_Read... [23:04:16]Read from MH i2c: F0 [23:04:16]MH_I2C_Read... [23:04:16]Read from MH i2c: F0 09 00 [23:04:16]MH_I2C_Read... [23:04:16]Read from MH i2c: F0 09 00 D5 07 00 F1 60 1C 66 E0 85 7F 64 EF [23:04:16]GetLastDocTimeStamp 1713135581 [23:04:16]current date 1713135857 [23:04:16]FM_GetShiftState [23:04:16]SAM_PROTO_GetShiftState [23:04:16]wFMCommunicate request_size=4 [23:04:16]MH_SAM_APDU [23:04:16]CAPDU: 80 13 01 00 [23:04:16]Write to MH i2c: E2 08 00 D6 07 80 13 01 00 00 00 00 00 5A [23:04:16]Write i2c OK [23:04:16]MH_I2C_Read... [23:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:16]Read from MH i2c: E2 [23:04:16]MH_I2C_Read... [23:04:16]Read from MH i2c: E2 0E 00 [23:04:16]MH_I2C_Read... [23:04:16]Read from MH i2c: E2 0E 00 D6 07 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 F2 [23:04:16]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:04:16]wFMCommunicate OK [23:04:16]SAM_PROTO_GetShiftState done [23:04:16]FM_GetShiftState done [23:04:16]opened in 1713054696 [23:04:16]opened+sec_in_day 1713141096 [23:04:16]quantity*price = 41557 [23:04:16]sum+1 = 41559 [23:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.58 ИТОГО: 415.00 Внесено: 415.00 СДАЧА: 0.00 НСП 1% : 3.68 НДС 12% : 44.13 Наличными: 415.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 385 14.04.2024 23:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112486 ФПД: 128749432281969 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T230417&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112486&fm=128749432281969&tin=02508201610067®Number=0000000000094237&sum=41500 [23:04:17]StoreToDocumentArchive [23:04:17]shift 357 fd 112486 [23:04:17]save to /storage/0357/doc_00112486 [23:04:17]save last doc name /storage/0357/doc_00112486 to /storage/kkm_last_doc_name [23:04:17]save OK [23:04:17]Clear old archive folders... [23:04:17]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:04:17]tlvbuf is 019EF4C0 [23:04:17]SAM_PROTO_ClearQueue [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 09 00 00 [23:04:17]Write to MH i2c: E2 08 00 E3 07 80 09 00 00 00 00 00 00 5C [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 03 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 03 00 E3 07 00 90 00 5E [23:04:17]RAPDU: 90 00 [23:04:17]wFMCommunicate OK [23:04:17]SAM_PROTO_ClearQueue done [23:04:17]KKMCreateOFDPacket [23:04:17]OFDProtocolAddRootSTLVToBuf [23:04:17]FM_MakeSignedData [23:04:17]FM_MakeSignedData [23:04:17]SAM_PROTO_SignData [23:04:17]wFMCommunicate request_size=4 [23:04:17]MH_SAM_APDU [23:04:17]CAPDU: 80 0D 01 02 [23:04:17]Write to MH i2c: E2 08 00 E4 07 80 0D 01 02 00 00 00 00 64 [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:04:17]Read from MH i2c: E2 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 03 00 [23:04:17]MH_I2C_Read... [23:04:17]Read from MH i2c: E2 03 00 E4 07 00 90 00 5F [23:04:17]RAPDU: 90 00 [23:04:17]wFMCommunicate OK [23:04:17]wFMCommunicate request_size=255 [23:04:17]MH_SAM_APDU [23:04:17]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 6C 16 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 56 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 F1 60 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B7 01 00 35 04 06 00 75 18 D0 2D [23:04:17]Write to MH i2c: E2 02 01 E5 07 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 6C 16 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 56 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 F1 60 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B7 01 00 35 04 06 00 75 18 D0 2D 00 00 3B [23:04:17]Write i2c OK [23:04:17]MH_I2C_Read... [23:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:18]OFD Sender: No OFD packet to send [23:04:18]Read from MH i2c: E2 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 03 00 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 03 00 E5 07 00 90 00 60 [23:04:18]RAPDU: 90 00 [23:04:18]wFMCommunicate OK [23:04:18]wFMCommunicate request_size=7 [23:04:18]MH_SAM_APDU [23:04:18]CAPDU: 80 0D 02 02 02 1B 71 [23:04:18]Write to MH i2c: E2 0A 00 E6 07 80 0D 02 02 02 00 1B 71 00 00 F7 [23:04:18]Write i2c OK [23:04:18]MH_I2C_Read... [23:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:04:18]Read from MH i2c: E2 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 03 00 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 03 00 E6 07 00 90 00 61 [23:04:18]RAPDU: 90 00 [23:04:18]wFMCommunicate OK [23:04:18]wFMCommunicate request_size=4 [23:04:18]MH_SAM_APDU [23:04:18]CAPDU: 80 0D 03 02 [23:04:18]Write to MH i2c: E2 08 00 E7 07 80 0D 03 02 00 00 00 00 69 [23:04:18]Write i2c OK [23:04:18]MH_I2C_Read... [23:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:04:18]Read from MH i2c: E2 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 0B 00 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 0B 00 E7 07 00 F2 26 67 FA AC EC 9E 5C 90 00 75 [23:04:18]RAPDU: F2 26 67 FA AC EC 9E 5C 90 00 [23:04:18]wFMCommunicate OK [23:04:18]SAM_PROTO_SignData done [23:04:18]FM_MakeSignedData done [23:04:18]CreateOFDProtocolMessage [23:04:18]wFMCommunicate request_size=4 [23:04:18]MH_SAM_APDU [23:04:18]CAPDU: 80 11 00 00 [23:04:18]Write to MH i2c: E2 08 00 E8 07 80 11 00 00 00 00 00 00 69 [23:04:18]Write i2c OK [23:04:18]MH_I2C_Read... [23:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:18]Read from MH i2c: E2 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 17 00 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: E2 17 00 E8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 BA [23:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:04:18]wFMCommunicate OK [23:04:18]CreateOFDProtocolMessage done [23:04:18]OFDSenderStorePacket 112486 [23:04:18]StoreOFDPacket docnum=112486 [23:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 8C F0 04 01 D7 A6 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 6C 16 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 56 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 F1 60 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B7 01 00 35 04 06 00 75 18 D0 2D 1B 71 F2 26 67 FA AC EC 9E 5C [23:04:18]CheckFolder [23:04:18]dirname=/storage/ofd_packets [23:04:18]CheckFolder done [23:04:18]ProducePacketName [23:04:18]name=ofd_packets/00112486 [23:04:18]NVStorageSaveData ofd_packets/00112486 [23:04:18]File name is /storage/ofd_packets/00112486 [23:04:18]Write 298 bytes [23:04:18]NVStorageSaveData done [23:04:18]OFDSenderStorePacket done [23:04:18]KKMCreateOFDPacket done [23:04:18]NVStorageSaveData kkm_last_timestamp [23:04:18]File name is /storage/kkm_last_timestamp [23:04:18]Write 4 bytes [23:04:18]NVStorageSaveData done [23:04:18]ExternCall_PrintAddStr [23:04:18]wPrintStart [23:04:18]Write to MH i2c: 01 00 00 E9 07 F0 [23:04:18]Write i2c OK [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: 01 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: 01 07 00 [23:04:18]MH_I2C_Read... [23:04:18]Read from MH i2c: 01 07 00 E9 07 00 00 00 00 00 FF 0F 05 [23:04:18]RasterBufferAndPrint [23:04:18]line Счет N : (1)48773 [23:04:18]line ИНН: 02508201610067 [23:04:18]line Контрольно-Кассовый Чек [23:04:18]line ПРОДАЖА [23:04:18]line ТРК (МРК, ГНК) : 51 [23:04:18]line Товар: 2710194210 [23:04:18]line ДТ-К-5 [23:04:18]line 5.740 * 72.40 [23:04:18]line = 415.58 [23:04:18]line НДС 12% НСП 1% [23:04:18]line > о реализуемом товаре [23:04:18]line ОКРУГЛЕНИЕ: -0.58 [23:04:18]line ИТОГО: 415.00 [23:04:18]line Внесено: 415.00 [23:04:18]line СДАЧА: 0.00 [23:04:18]line НСП 1% : 3.68 [23:04:18]line НДС 12% : 44.13 [23:04:18]line Наличными: 415.00 [23:04:18]line Безнал.: 0.00 [23:04:18]line Место: АЗС № 47 "Партнер Нефть" [23:04:18]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:04:18]line СНО: Общий режим [23:04:18]line Чек 385 14.04.2024 23:04 [23:04:18]line Смена: 357 ФФД: 1.0 [23:04:18]line ЗНМ: 0300000138 [23:04:18]line РНМ: 0000000000094237 [23:04:18]line Версия ККМ: 001 [23:04:18]line ФМ: 0000000000875019 [23:04:18]line ФД: 112486 [23:04:18]line ФПД: 128749432281969 [23:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T230417&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112486&fm=128749432281969&tin=02508201610067®Number=0000000000094237&sum=41500 [23:04:18]OFD Sender: Processing packet 112486 [packets to send 71, broken 70] [23:04:18]ProducePacketName [23:04:18]name=ofd_packets/00112486 [23:04:18]OFD Sender: To server: pG, [23:04:18]CommunicateWithHost lk.salyk.kg:30040 [23:04:18]ConnectInit lk.salyk.kg [23:04:18]written 0, free lines is 4095 [23:04:18]Connected sock=11 [23:04:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 8C F0 04 01 D7 A6 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 6C 16 00 00 00 00 00 37 04 06 00 48 1C 00 00 00 00 13 04 06 00 56 A2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 70 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 11 00 00 00 00 07 04 06 00 1C A2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 01 00 00 F4 03 04 00 F1 60 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B7 01 00 35 04 06 00 75 18 D0 2D 1B 71 F2 26 67 FA AC EC 9E 5C [23:04:19]Write to MH i2c: 01 00 00 14 08 1C [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 07 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: 01 07 00 14 08 00 00 00 00 00 D8 0C 07 [23:04:19]RasterBufferAndPrint [23:04:19]line [23:04:19]line [23:04:19]line [23:04:19]line [23:04:19]line [23:04:19]written 0, free lines is 3292 [23:04:19]MH_Cut [23:04:19]Write to MH i2c: D1 01 00 1B 08 01 F5 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: D1 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: D1 01 00 [23:04:19]MH_I2C_Read... [23:04:19]Read from MH i2c: D1 01 00 1B 08 00 F4 [23:04:19]Write to MH i2c: 01 00 00 1C 08 24 [23:04:19]Write i2c OK [23:04:19]MH_I2C_Read... [23:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D1 DF 47 00 ED 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 66 B7 01 00 F4 03 04 00 7B 08 1C 66 B6 04 01 00 00 32 CB 28 32 E2 15 31 2E [23:04:19]CommunicateWithHost err = 0 [23:04:19]CheckOFDResponse [23:04:19]1017 (14) - 77093643461234 [23:04:19]1041 (16) - 0000000000875019 [23:04:19]1040 (4) - 112486 [23:04:19]1012 (4) - 14.04.2024 16:46 [23:04:19]1206 (1) - 0 [23:04:19]OFD Sender: Remove packet 112486 [23:04:19]ProducePacketName [23:04:19]name=ofd_packets/00112486 [23:04:19]NVStorageDeleteData [23:04:19]OFD Sender: No OFD packet to send [23:04:19]*** Cut start [23:04:19]*** Partial cut [23:04:19]*** CUTSNS_PIN = 1 [23:04:19]*** CUTSNS_PIN = 0 [23:04:20]*** Brake cut motor [23:04:20]Read from MH i2c: 01 [23:04:20]MH_I2C_Read... [23:04:20]*** Stop cut motor [23:04:20]*** Cut end [23:04:20]Read from MH i2c: 01 07 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: 01 07 00 1C 08 00 00 00 00 00 FF 0F 39 [23:04:20]process_action close_receipt done [23:04:20]requested_data is exist [23:04:20]produce_requested_data [23:04:20]requested_item fm.sn is exist - process it [23:04:20]wFMCommunicate request_size=4 [23:04:20]MH_SAM_APDU [23:04:20]CAPDU: 80 11 00 00 [23:04:20]Write to MH i2c: E2 08 00 1D 08 80 11 00 00 00 00 00 00 9F [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:04:20]Read from MH i2c: E2 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 17 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 17 00 1D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [23:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:04:20]wFMCommunicate OK [23:04:20]requested_item fd.num is exist - process it [23:04:20]SAM_PROTO_GetFieldsCounters [23:04:20]wFMCommunicate request_size=4 [23:04:20]MH_SAM_APDU [23:04:20]CAPDU: 80 13 00 00 [23:04:20]Write to MH i2c: E2 08 00 1E 08 80 13 00 00 00 00 00 00 A2 [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:04:20]Read from MH i2c: E2 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 62 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 62 00 1E 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 66 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 CB [23:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 66 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:04:20]wFMCommunicate OK [23:04:20]SAM_PROTO_GetFieldsCounters done [23:04:20]requested_item shift.num is exist - process it [23:04:20]requested_item shift.opened is exist - process it [23:04:20]req_shift_opened [23:04:20]FM_GetShiftState [23:04:20]SAM_PROTO_GetShiftState [23:04:20]wFMCommunicate request_size=4 [23:04:20]MH_SAM_APDU [23:04:20]CAPDU: 80 13 01 00 [23:04:20]Write to MH i2c: E2 08 00 1F 08 80 13 01 00 00 00 00 00 A4 [23:04:20]Write i2c OK [23:04:20]MH_I2C_Read... [23:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:04:20]Read from MH i2c: E2 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 0E 00 [23:04:20]MH_I2C_Read... [23:04:20]Read from MH i2c: E2 0E 00 1F 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3C [23:04:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:04:20]wFMCommunicate OK [23:04:20]SAM_PROTO_GetShiftState done [23:04:20]FM_GetShiftState done [23:04:20]req_shift_opened done [23:04:20]requested_item shift.open_date is exist - process it [23:04:20]req_shift_open_date [23:04:20]req_shift_open_date done [23:04:20]produce_requested_data done [23:04:20]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112486,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:04:20]process_action_free close_receipt [23:04:20]json_value_free [23:04:20]json_value_free done [23:04:20]process_json_proto returns [23:04:20]Send response to host [23:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112486,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:04:20]free response buf [23:04:20]execute_script done [23:04:20]execute_script returns [23:04:20]free content buf [23:04:20]Sock 7.Close socket [23:04:20]Sock 7.Thread stoped [23:04:24]OFD Sender: No OFD packet to send [23:04:29]OFD Sender: No OFD packet to send [23:04:34]OFD Sender: No OFD packet to send [23:04:39]OFD Sender: No OFD packet to send [23:04:44]OFD Sender: No OFD packet to send [23:04:49]OFD Sender: No OFD packet to send [23:04:54]OFD Sender: No OFD packet to send [23:04:59]OFD Sender: No OFD packet to send [23:05:04]OFD Sender: No OFD packet to send [23:05:09]OFD Sender: No OFD packet to send [23:05:14]OFD Sender: No OFD packet to send [23:05:19]OFD Sender: No OFD packet to send [23:05:24]OFD Sender: No OFD packet to send [23:05:29]OFD Sender: No OFD packet to send [23:05:34]OFD Sender: No OFD packet to send [23:05:39]OFD Sender: No OFD packet to send [23:05:44]OFD Sender: No OFD packet to send [23:05:49]OFD Sender: No OFD packet to send [23:05:54]OFD Sender: No OFD packet to send [23:05:59]OFD Sender: No OFD packet to send [23:06:04]OFD Sender: No OFD packet to send [23:06:09]OFD Sender: No OFD packet to send [23:06:14]OFD Sender: No OFD packet to send [23:06:19]OFD Sender: No OFD packet to send [23:06:24]OFD Sender: No OFD packet to send [23:06:29]OFD Sender: No OFD packet to send [23:06:34]OFD Sender: No OFD packet to send [23:06:39]OFD Sender: No OFD packet to send [23:06:44]OFD Sender: No OFD packet to send [23:06:49]OFD Sender: No OFD packet to send [23:06:54]OFD Sender: No OFD packet to send [23:06:59]OFD Sender: No OFD packet to send [23:07:04]OFD Sender: No OFD packet to send [23:07:09]OFD Sender: No OFD packet to send [23:07:14]OFD Sender: No OFD packet to send [23:07:19]OFD Sender: No OFD packet to send [23:07:24]OFD Sender: No OFD packet to send [23:07:29]OFD Sender: No OFD packet to send [23:07:34]OFD Sender: No OFD packet to send [23:07:39]OFD Sender: No OFD packet to send [23:07:44]OFD Sender: No OFD packet to send [23:07:49]OFD Sender: No OFD packet to send [23:07:54]OFD Sender: No OFD packet to send [23:07:59]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:02]accept exits with 9 [23:10:02]New connection [23:10:02]New thread 3067317604 created [23:10:02]Thread 3067174244 joined [23:10:02]Waiting for new connection... [23:10:02] Sock 9.Parse request [23:10:02]Sock 9.Check first char [23:10:02]Sock 9.First char is OK [23:10:02]request: POST /json_proto HTTP/1.0 [23:10:02]Method: POST [23:10:02]URL: /json_proto [23:10:02]Method is POST - this is cgi request [23:10:02]url: /json_proto [23:10:02]query_string will be loaded in cgi processing [23:10:02]execute_cgi json_proto POST (null) [23:10:02]execute_cgi path=json_proto method=POST [23:10:02]POST find Content-Length [23:10:02]Host: 172.17.96.197:8080 [23:10:02]Content-Length: 684 [23:10:02]Content-Type: application/json [23:10:02] [23:10:02]POST finish read [23:10:02]Found Content-Length = 684 [23:10:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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" ] } } [23:10:02]execute_script... [23:10: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)48774", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 32.70, "quantity" : 30.590, "sum" : 1000.29, "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" ] } } [23:10:02]POST & json_proto [23:10:02]process_json_proto [23:10:02]json parsed OK: [23:10:02]protocol is kg_v1.0 [23:10:02]action value=close_receipt [23:10:02]process_action close_receipt [23:10:02]cmd_close_receipt [23:10:02]MH_GetDate [23:10:02]Write to MH i2c: F0 00 00 20 08 17 [23:10:02]Write i2c OK [23:10:02]MH_I2C_Read... [23:10:02]Read from MH i2c: F0 [23:10:02]MH_I2C_Read... [23:10:02]Read from MH i2c: F0 09 00 [23:10:02]MH_I2C_Read... [23:10:02]Read from MH i2c: F0 09 00 20 08 00 4C 62 1C 66 E0 85 7F 64 98 [23:10:02]GetLastDocTimeStamp 1713135857 [23:10:02]current date 1713136204 [23:10:02]FM_GetShiftState [23:10:02]SAM_PROTO_GetShiftState [23:10:02]wFMCommunicate request_size=4 [23:10:02]MH_SAM_APDU [23:10:02]CAPDU: 80 13 01 00 [23:10:02]Write to MH i2c: E2 08 00 21 08 80 13 01 00 00 00 00 00 A6 [23:10:02]Write i2c OK [23:10:02]MH_I2C_Read... [23:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:02]Read from MH i2c: E2 [23:10:02]MH_I2C_Read... [23:10:02]Read from MH i2c: E2 0E 00 [23:10:02]MH_I2C_Read... [23:10:02]Read from MH i2c: E2 0E 00 21 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3E [23:10:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:10:02]wFMCommunicate OK [23:10:02]SAM_PROTO_GetShiftState done [23:10:02]FM_GetShiftState done [23:10:02]opened in 1713054696 [23:10:02]opened+sec_in_day 1713141096 [23:10:02]quantity*price = 100029 [23:10:02]sum+1 = 100030 [23:10:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 386 14.04.2024 23:10 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112487 ФПД: 269868186029953 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T231004&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112487&fm=269868186029953&tin=02508201610067®Number=0000000000094237&sum=100000 [23:10:04]StoreToDocumentArchive [23:10:04]shift 357 fd 112487 [23:10:04]save to /storage/0357/doc_00112487 [23:10:04]save last doc name /storage/0357/doc_00112487 to /storage/kkm_last_doc_name [23:10:04]save OK [23:10:04]Clear old archive folders... [23:10:04]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:10:04]tlvbuf is 01A0B9F0 [23:10:04]SAM_PROTO_ClearQueue [23:10:04]wFMCommunicate request_size=4 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 09 00 00 [23:10:04]Write to MH i2c: E2 08 00 2E 08 80 09 00 00 00 00 00 00 A8 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:04]Read from MH i2c: E2 03 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 2E 08 00 90 00 AA [23:10:04]RAPDU: 90 00 [23:10:04]wFMCommunicate OK [23:10:04]SAM_PROTO_ClearQueue done [23:10:04]KKMCreateOFDPacket [23:10:04]OFDProtocolAddRootSTLVToBuf [23:10:04]FM_MakeSignedData [23:10:04]FM_MakeSignedData [23:10:04]SAM_PROTO_SignData [23:10:04]wFMCommunicate request_size=4 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 0D 01 02 [23:10:04]Write to MH i2c: E2 08 00 2F 08 80 0D 01 02 00 00 00 00 B0 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 2F 08 00 90 00 AB [23:10:04]RAPDU: 90 00 [23:10:04]wFMCommunicate OK [23:10:04]wFMCommunicate request_size=255 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 4C 62 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B7 01 00 35 04 06 00 F5 71 [23:10:04]Write to MH i2c: E2 02 01 30 08 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 4C 62 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B7 01 00 35 04 06 00 F5 71 00 00 75 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 30 08 00 90 00 AC [23:10:04]RAPDU: 90 00 [23:10:04]wFMCommunicate OK [23:10:04]wFMCommunicate request_size=9 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 0D 02 02 04 95 5D 4F 81 [23:10:04]Write to MH i2c: E2 0C 00 31 08 80 0D 02 02 04 00 95 5D 4F 81 00 00 7D [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 03 00 31 08 00 90 00 AD [23:10:04]RAPDU: 90 00 [23:10:04]wFMCommunicate OK [23:10:04]wFMCommunicate request_size=4 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 0D 03 02 [23:10:04]Write to MH i2c: E2 08 00 32 08 80 0D 03 02 00 00 00 00 B5 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 0B 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 0B 00 32 08 00 D2 2C 07 8F 3B 58 FA F2 90 00 C9 [23:10:04]RAPDU: D2 2C 07 8F 3B 58 FA F2 90 00 [23:10:04]wFMCommunicate OK [23:10:04]SAM_PROTO_SignData done [23:10:04]FM_MakeSignedData done [23:10:04]CreateOFDProtocolMessage [23:10:04]wFMCommunicate request_size=4 [23:10:04]MH_SAM_APDU [23:10:04]CAPDU: 80 11 00 00 [23:10:04]Write to MH i2c: E2 08 00 33 08 80 11 00 00 00 00 00 00 B5 [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:04]Read from MH i2c: E2 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 17 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: E2 17 00 33 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 06 [23:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:10:04]wFMCommunicate OK [23:10:04]CreateOFDProtocolMessage done [23:10:04]OFDSenderStorePacket 112487 [23:10:04]StoreOFDPacket docnum=112487 [23:10:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 31 68 06 01 A3 81 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 4C 62 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B7 01 00 35 04 06 00 F5 71 95 5D 4F 81 D2 2C 07 8F 3B 58 FA F2 [23:10:04]CheckFolder [23:10:04]dirname=/storage/ofd_packets [23:10:04]CheckFolder done [23:10:04]ProducePacketName [23:10:04]name=ofd_packets/00112487 [23:10:04]NVStorageSaveData ofd_packets/00112487 [23:10:04]File name is /storage/ofd_packets/00112487 [23:10:04]Write 300 bytes [23:10:04]NVStorageSaveData done [23:10:04]OFDSenderStorePacket done [23:10:04]KKMCreateOFDPacket done [23:10:04]NVStorageSaveData kkm_last_timestamp [23:10:04]File name is /storage/kkm_last_timestamp [23:10:04]Write 4 bytes [23:10:04]NVStorageSaveData done [23:10:04]ExternCall_PrintAddStr [23:10:04]wPrintStart [23:10:04]Write to MH i2c: 01 00 00 34 08 3C [23:10:04]Write i2c OK [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 07 00 [23:10:04]MH_I2C_Read... [23:10:04]Read from MH i2c: 01 07 00 34 08 00 00 00 00 00 FF 0F 51 [23:10:04]RasterBufferAndPrint [23:10:04]line Счет N : (1)48774 [23:10:04]line ИНН: 02508201610067 [23:10:04]line Контрольно-Кассовый Чек [23:10:04]line ПРОДАЖА [23:10:04]line ТРК (МРК, ГНК) : 71 [23:10:04]line Товар: 2711190000 [23:10:04]line ГАЗ-К-5 [23:10:04]line 30.590 * 32.70 [23:10:04]line = 1000.29 [23:10:04]line НДС 12% НСП 1% [23:10:04]line > о реализуемом товаре [23:10:04]line ОКРУГЛЕНИЕ: -0.29 [23:10:04]line ИТОГО: 1000.00 [23:10:04]line Внесено: 1000.00 [23:10:04]line СДАЧА: 0.00 [23:10:04]line НСП 1% : 8.85 [23:10:04]line НДС 12% : 106.22 [23:10:04]line Наличными: 1000.00 [23:10:04]line Безнал.: 0.00 [23:10:04]line Место: АЗС № 47 "Партнер Нефть" [23:10:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:10:04]line СНО: Общий режим [23:10:04]line Чек 386 14.04.2024 23:10 [23:10:04]line Смена: 357 ФФД: 1.0 [23:10:04]line ЗНМ: 0300000138 [23:10:04]line РНМ: 0000000000094237 [23:10:04]line Версия ККМ: 001 [23:10:04]line ФМ: 0000000000875019 [23:10:04]line ФД: 112487 [23:10:04]line ФПД: 269868186029953 [23:10:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T231004&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112487&fm=269868186029953&tin=02508201610067®Number=0000000000094237&sum=100000 [23:10:04]OFD Sender: Processing packet 112487 [packets to send 71, broken 70] [23:10:04]ProducePacketName [23:10:04]name=ofd_packets/00112487 [23:10:04]OFD Sender: To server: pG, [23:10:04]CommunicateWithHost lk.salyk.kg:30040 [23:10:04]ConnectInit lk.salyk.kg [23:10:04]written 0, free lines is 4095 [23:10:05]Connected sock=6 [23:10:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 31 68 06 01 A3 81 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 7E 77 00 00 00 00 00 37 04 06 00 C6 0C 00 00 00 00 13 04 06 00 BD 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 4C 62 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B7 01 00 35 04 06 00 F5 71 95 5D 4F 81 D2 2C 07 8F 3B 58 FA F2 [23:10:05]Write to MH i2c: 01 00 00 5F 08 67 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: 01 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: 01 07 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: 01 07 00 5F 08 00 00 00 00 00 E4 0C 5E [23:10:05]RasterBufferAndPrint [23:10:05]line [23:10:05]line [23:10:05]line [23:10:05]line [23:10:05]line [23:10:05]written 0, free lines is 3306 [23:10:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 30 91 47 00 53 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 67 B7 01 00 F4 03 04 00 D6 09 1C 66 B6 04 01 00 00 F1 6D 23 D0 6A 3B 8F 0F [23:10:05]CommunicateWithHost err = 0 [23:10:05]CheckOFDResponse [23:10:05]1017 (14) - 77093643461234 [23:10:05]1041 (16) - 0000000000875019 [23:10:05]1040 (4) - 112487 [23:10:05]1012 (4) - 14.04.2024 16:52 [23:10:05]1206 (1) - 0 [23:10:05]OFD Sender: Remove packet 112487 [23:10:05]ProducePacketName [23:10:05]name=ofd_packets/00112487 [23:10:05]NVStorageDeleteData [23:10:05]MH_Cut [23:10:05]Write to MH i2c: D1 01 00 66 08 01 40 [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: D1 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: D1 01 00 [23:10:05]MH_I2C_Read... [23:10:05]Read from MH i2c: D1 01 00 66 08 00 3F [23:10:05]Write to MH i2c: 01 00 00 67 08 6F [23:10:05]Write i2c OK [23:10:05]MH_I2C_Read... [23:10:05]OFD Sender: No OFD packet to send [23:10:06]*** Cut start [23:10:06]*** Partial cut [23:10:06]*** CUTSNS_PIN = 1 [23:10:06]*** CUTSNS_PIN = 0 [23:10:06]*** Brake cut motor [23:10:06]Read from MH i2c: 01 [23:10:06]MH_I2C_Read... [23:10:06]*** Stop cut motor [23:10:06]*** Cut end [23:10:06]Read from MH i2c: 01 07 00 [23:10:06]MH_I2C_Read... [23:10:06]Read from MH i2c: 01 07 00 67 08 00 00 00 00 00 FF 0F 84 [23:10:06]process_action close_receipt done [23:10:06]requested_data is exist [23:10:06]produce_requested_data [23:10:06]requested_item fm.sn is exist - process it [23:10:06]wFMCommunicate request_size=4 [23:10:06]MH_SAM_APDU [23:10:06]CAPDU: 80 11 00 00 [23:10:06]Write to MH i2c: E2 08 00 68 08 80 11 00 00 00 00 00 00 EA [23:10:06]Write i2c OK [23:10:06]MH_I2C_Read... [23:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:06]Read from MH i2c: E2 [23:10:06]MH_I2C_Read... [23:10:06]Read from MH i2c: E2 17 00 [23:10:06]MH_I2C_Read... [23:10:06]Read from MH i2c: E2 17 00 68 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3B [23:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:10:06]wFMCommunicate OK [23:10:06]requested_item fd.num is exist - process it [23:10:06]SAM_PROTO_GetFieldsCounters [23:10:06]wFMCommunicate request_size=4 [23:10:06]MH_SAM_APDU [23:10:06]CAPDU: 80 13 00 00 [23:10:06]Write to MH i2c: E2 08 00 69 08 80 13 00 00 00 00 00 00 ED [23:10:06]Write i2c OK [23:10:06]MH_I2C_Read... [23:10:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:06]Read from MH i2c: E2 [23:10:06]MH_I2C_Read... [23:10:06]Read from MH i2c: E2 62 00 [23:10:06]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 62 00 69 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 67 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 1A [23:10:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 67 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:07]wFMCommunicate OK [23:10:07]SAM_PROTO_GetFieldsCounters done [23:10:07]requested_item shift.num is exist - process it [23:10:07]requested_item shift.opened is exist - process it [23:10:07]req_shift_opened [23:10:07]FM_GetShiftState [23:10:07]SAM_PROTO_GetShiftState [23:10:07]wFMCommunicate request_size=4 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 13 01 00 [23:10:07]Write to MH i2c: E2 08 00 6A 08 80 13 01 00 00 00 00 00 EF [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0E 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0E 00 6A 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 87 [23:10:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:10:07]wFMCommunicate OK [23:10:07]SAM_PROTO_GetShiftState done [23:10:07]FM_GetShiftState done [23:10:07]req_shift_opened done [23:10:07]requested_item shift.open_date is exist - process it [23:10:07]req_shift_open_date [23:10:07]req_shift_open_date done [23:10:07]produce_requested_data done [23:10:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112487,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:10:07]process_action_free close_receipt [23:10:07]json_value_free [23:10:07]json_value_free done [23:10:07]process_json_proto returns [23:10:07]Send response to host [23:10:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112487,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:10:07]free response buf [23:10:07]execute_script done [23:10:07]execute_script returns [23:10:07]free content buf [23:10:07]Sock 9.Close socket [23:10:07]Sock 9.Thread stoped [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:09]ConnectInit Can't connect to host [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:40]recv_with_timeout no data received [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18:51]OFD Sender: No OFD packet to send [23:18:56]OFD Sender: No OFD packet to send [23:19:01]OFD Sender: No OFD packet to send [23:19:06]OFD Sender: No OFD packet to send [23:19:11]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:26:57]accept exits with 7 [23:26:57]New connection [23:26:57]New thread 3067174244 created [23:26:57]Thread 3067317604 joined [23:26:57]Waiting for new connection... [23:26:57] Sock 7.Parse request [23:26:57]Sock 7.Check first char [23:26:57]Sock 7.First char is OK [23:26:57]request: POST /json_proto HTTP/1.0 [23:26:57]Method: POST [23:26:57]URL: /json_proto [23:26:57]Method is POST - this is cgi request [23:26:57]url: /json_proto [23:26:57]query_string will be loaded in cgi processing [23:26:57]execute_cgi json_proto POST (null) [23:26:57]execute_cgi path=json_proto method=POST [23:26:57]POST find Content-Length [23:26:57]Host: 172.17.96.197:8080 [23:26:57]Content-Length: 676 [23:26:57]Content-Type: application/json [23:26:57] [23:26:57]POST finish read [23:26:57]Found Content-Length = 676 [23:26:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48775", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [23:26:57]execute_script... [23:26: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)48775", "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.30, "quantity" : 6.230, "sum" : 400.59, "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" ] } } [23:26:57]POST & json_proto [23:26:57]process_json_proto [23:26:57]json parsed OK: [23:26:57]protocol is kg_v1.0 [23:26:57]action value=close_receipt [23:26:57]process_action close_receipt [23:26:57]cmd_close_receipt [23:26:57]MH_GetDate [23:26:57]Write to MH i2c: F0 00 00 6B 08 62 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: F0 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: F0 09 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: F0 09 00 6B 08 00 42 66 1C 66 E0 85 7F 64 DD [23:26:57]GetLastDocTimeStamp 1713136204 [23:26:57]current date 1713137218 [23:26:57]FM_GetShiftState [23:26:57]SAM_PROTO_GetShiftState [23:26:57]wFMCommunicate request_size=4 [23:26:57]MH_SAM_APDU [23:26:57]CAPDU: 80 13 01 00 [23:26:57]Write to MH i2c: E2 08 00 6C 08 80 13 01 00 00 00 00 00 F1 [23:26:57]Write i2c OK [23:26:57]MH_I2C_Read... [23:26:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:26:57]Read from MH i2c: E2 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: E2 0E 00 [23:26:57]MH_I2C_Read... [23:26:57]Read from MH i2c: E2 0E 00 6C 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 89 [23:26:57]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:26:57]wFMCommunicate OK [23:26:57]SAM_PROTO_GetShiftState done [23:26:57]FM_GetShiftState done [23:26:57]opened in 1713054696 [23:26:57]opened+sec_in_day 1713141096 [23:26:57]quantity*price = 40058 [23:26:57]sum+1 = 40060 [23:26:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.59 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.54 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 387 14.04.2024 23:26 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112488 ФПД: 260471689317673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T232658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112488&fm=260471689317673&tin=02508201610067®Number=0000000000094237&sum=40000 [23:26:58]StoreToDocumentArchive [23:26:58]shift 357 fd 112488 [23:26:58]save to /storage/0357/doc_00112488 [23:26:58]save last doc name /storage/0357/doc_00112488 to /storage/kkm_last_doc_name [23:26:58]save OK [23:26:58]Clear old archive folders... [23:26:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:26:58]tlvbuf is 01A13630 [23:26:58]SAM_PROTO_ClearQueue [23:26:58]wFMCommunicate request_size=4 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 09 00 00 [23:26:58]Write to MH i2c: E2 08 00 79 08 80 09 00 00 00 00 00 00 F3 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 79 08 00 90 00 F5 [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]SAM_PROTO_ClearQueue done [23:26:58]KKMCreateOFDPacket [23:26:58]OFDProtocolAddRootSTLVToBuf [23:26:58]FM_MakeSignedData [23:26:58]FM_MakeSignedData [23:26:58]SAM_PROTO_SignData [23:26:58]wFMCommunicate request_size=4 [23:26:58]MH_SAM_APDU [23:26:58]CAPDU: 80 0D 01 02 [23:26:58]Write to MH i2c: E2 08 00 7A 08 80 0D 01 02 00 00 00 00 FB [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:26:58]Read from MH i2c: E2 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 [23:26:58]MH_I2C_Read... [23:26:58]Read from MH i2c: E2 03 00 7A 08 00 90 00 F6 [23:26:58]RAPDU: 90 00 [23:26:58]wFMCommunicate OK [23:26:58]wFMCommunicate request_size=255 [23:26:58]MH_SAM_APDU [23:26: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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 83 01 00 00 F4 03 04 00 42 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B7 01 00 35 04 06 00 EC [23:26:58]Write to MH i2c: E2 02 01 7B 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 83 01 00 00 F4 03 04 00 42 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B7 01 00 35 04 06 00 EC 00 00 A8 [23:26:58]Write i2c OK [23:26:58]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 03 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 03 00 7B 08 00 90 00 F7 [23:26:59]RAPDU: 90 00 [23:26:59]wFMCommunicate OK [23:26:59]wFMCommunicate request_size=10 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 0D 02 02 05 E5 CA 84 0D 29 [23:26:59]Write to MH i2c: E2 0D 00 7C 08 80 0D 02 02 05 00 E5 CA 84 0D 29 00 00 71 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 03 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 03 00 7C 08 00 90 00 F8 [23:26:59]RAPDU: 90 00 [23:26:59]wFMCommunicate OK [23:26:59]wFMCommunicate request_size=4 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 0D 03 02 [23:26:59]Write to MH i2c: E2 08 00 7D 08 80 0D 03 02 00 00 00 00 00 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 0B 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 0B 00 7D 08 00 C7 C6 C1 0B C4 32 E8 5F 90 00 97 [23:26:59]RAPDU: C7 C6 C1 0B C4 32 E8 5F 90 00 [23:26:59]wFMCommunicate OK [23:26:59]SAM_PROTO_SignData done [23:26:59]FM_MakeSignedData done [23:26:59]CreateOFDProtocolMessage [23:26:59]wFMCommunicate request_size=4 [23:26:59]MH_SAM_APDU [23:26:59]CAPDU: 80 11 00 00 [23:26:59]Write to MH i2c: E2 08 00 7E 08 80 11 00 00 00 00 00 00 00 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:26:59]Read from MH i2c: E2 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 17 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: E2 17 00 7E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 51 [23:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:26:59]wFMCommunicate OK [23:26:59]CreateOFDProtocolMessage done [23:26:59]OFDSenderStorePacket 112488 [23:26:59]StoreOFDPacket docnum=112488 [23:26:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7B 94 07 01 16 67 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 83 01 00 00 F4 03 04 00 42 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B7 01 00 35 04 06 00 EC E5 CA 84 0D 29 C7 C6 C1 0B C4 32 E8 5F [23:26:59]CheckFolder [23:26:59]dirname=/storage/ofd_packets [23:26:59]CheckFolder done [23:26:59]ProducePacketName [23:26:59]name=ofd_packets/00112488 [23:26:59]NVStorageSaveData ofd_packets/00112488 [23:26:59]File name is /storage/ofd_packets/00112488 [23:26:59]Write 301 bytes [23:26:59]NVStorageSaveData done [23:26:59]OFDSenderStorePacket done [23:26:59]KKMCreateOFDPacket done [23:26:59]NVStorageSaveData kkm_last_timestamp [23:26:59]File name is /storage/kkm_last_timestamp [23:26:59]Write 4 bytes [23:26:59]NVStorageSaveData done [23:26:59]ExternCall_PrintAddStr [23:26:59]wPrintStart [23:26:59]Write to MH i2c: 01 00 00 7F 08 87 [23:26:59]Write i2c OK [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: 01 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: 01 07 00 [23:26:59]MH_I2C_Read... [23:26:59]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [23:26:59]RasterBufferAndPrint [23:26:59]line Счет N : (1)48775 [23:26:59]line ИНН: 02508201610067 [23:26:59]line Контрольно-Кассовый Чек [23:26:59]line ПРОДАЖА [23:26:59]line ТРК (МРК, ГНК) : 32 [23:26:59]line Товар: 2710124130 [23:26:59]line Аи-92-К-5 [23:26:59]line 6.230 * 64.30 [23:26:59]line = 400.59 [23:26:59]line НДС 12% НСП 1% [23:26:59]line > о реализуемом товаре [23:26:59]line ОКРУГЛЕНИЕ: -0.59 [23:26:59]line ИТОГО: 400.00 [23:26:59]line Внесено: 400.00 [23:26:59]line СДАЧА: 0.00 [23:26:59]line НСП 1% : 3.54 [23:26:59]line НДС 12% : 42.54 [23:26:59]line Наличными: 400.00 [23:26:59]line Безнал.: 0.00 [23:26:59]line Место: АЗС № 47 "Партнер Нефть" [23:26:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:26:59]line СНО: Общий режим [23:26:59]line Чек 387 14.04.2024 23:26 [23:26:59]line Смена: 357 ФФД: 1.0 [23:26:59]line ЗНМ: 0300000138 [23:26:59]line РНМ: 0000000000094237 [23:26:59]line Версия ККМ: 001 [23:26:59]line ФМ: 0000000000875019 [23:26:59]line ФД: 112488 [23:26:59]line ФПД: 260471689317673 [23:26:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T232658&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112488&fm=260471689317673&tin=02508201610067®Number=0000000000094237&sum=40000 [23:26:59]OFD Sender: Processing packet 112488 [packets to send 71, broken 70] [23:26:59]ProducePacketName [23:26:59]name=ofd_packets/00112488 [23:26:59]OFD Sender: To server: pG, [23:26:59]CommunicateWithHost lk.salyk.kg:30040 [23:26:59]ConnectInit lk.salyk.kg [23:26:59]written 0, free lines is 4095 [23:26:59]Connected sock=10 [23:26:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 7B 94 07 01 16 67 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 56 18 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 7B 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 9E 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 83 01 00 00 F4 03 04 00 42 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B7 01 00 35 04 06 00 EC E5 CA 84 0D 29 C7 C6 C1 0B C4 32 E8 5F [23:26:59]Write to MH i2c: 01 00 00 AA 08 B2 [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: 01 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: 01 07 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: 01 07 00 AA 08 00 00 00 00 00 DD 0C A2 [23:27:00]RasterBufferAndPrint [23:27:00]line [23:27:00]line [23:27:00]line [23:27:00]line [23:27:00]line [23:27:00]written 0, free lines is 3299 [23:27:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A3 3B 47 00 91 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 68 B7 01 00 F4 03 04 00 CC 0D 1C 66 B6 04 01 00 00 F4 A7 CD 47 6D A9 85 39 [23:27:00]CommunicateWithHost err = 0 [23:27:00]CheckOFDResponse [23:27:00]1017 (14) - 77093643461234 [23:27:00]1041 (16) - 0000000000875019 [23:27:00]1040 (4) - 112488 [23:27:00]1012 (4) - 14.04.2024 17:09 [23:27:00]1206 (1) - 0 [23:27:00]OFD Sender: Remove packet 112488 [23:27:00]ProducePacketName [23:27:00]name=ofd_packets/00112488 [23:27:00]NVStorageDeleteData [23:27:00]MH_Cut [23:27:00]Write to MH i2c: D1 01 00 B1 08 01 8B [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: D1 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: D1 01 00 [23:27:00]MH_I2C_Read... [23:27:00]Read from MH i2c: D1 01 00 B1 08 00 8A [23:27:00]Write to MH i2c: 01 00 00 B2 08 BA [23:27:00]Write i2c OK [23:27:00]MH_I2C_Read... [23:27:00]OFD Sender: No OFD packet to send [23:27:00]*** Cut start [23:27:00]*** Partial cut [23:27:00]*** CUTSNS_PIN = 1 [23:27:00]*** CUTSNS_PIN = 0 [23:27:01]*** Brake cut motor [23:27:01]Read from MH i2c: 01 [23:27:01]MH_I2C_Read... [23:27:01]*** Stop cut motor [23:27:01]*** Cut end [23:27:01]Read from MH i2c: 01 07 00 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: 01 07 00 B2 08 00 00 00 00 00 FF 0F CF [23:27:01]process_action close_receipt done [23:27:01]requested_data is exist [23:27:01]produce_requested_data [23:27:01]requested_item fm.sn is exist - process it [23:27:01]wFMCommunicate request_size=4 [23:27:01]MH_SAM_APDU [23:27:01]CAPDU: 80 11 00 00 [23:27:01]Write to MH i2c: E2 08 00 B3 08 80 11 00 00 00 00 00 00 35 [23:27:01]Write i2c OK [23:27:01]MH_I2C_Read... [23:27:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:01]Read from MH i2c: E2 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 17 00 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 17 00 B3 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 86 [23:27:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:27:01]wFMCommunicate OK [23:27:01]requested_item fd.num is exist - process it [23:27:01]SAM_PROTO_GetFieldsCounters [23:27:01]wFMCommunicate request_size=4 [23:27:01]MH_SAM_APDU [23:27:01]CAPDU: 80 13 00 00 [23:27:01]Write to MH i2c: E2 08 00 B4 08 80 13 00 00 00 00 00 00 38 [23:27:01]Write i2c OK [23:27:01]MH_I2C_Read... [23:27:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:01]Read from MH i2c: E2 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 62 00 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 62 00 B4 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 68 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 69 [23:27:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 68 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:01]wFMCommunicate OK [23:27:01]SAM_PROTO_GetFieldsCounters done [23:27:01]requested_item shift.num is exist - process it [23:27:01]requested_item shift.opened is exist - process it [23:27:01]req_shift_opened [23:27:01]FM_GetShiftState [23:27:01]SAM_PROTO_GetShiftState [23:27:01]wFMCommunicate request_size=4 [23:27:01]MH_SAM_APDU [23:27:01]CAPDU: 80 13 01 00 [23:27:01]Write to MH i2c: E2 08 00 B5 08 80 13 01 00 00 00 00 00 3A [23:27:01]Write i2c OK [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 [23:27:01]MH_I2C_Read... [23:27:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:01]Read from MH i2c: E2 0E 00 [23:27:01]MH_I2C_Read... [23:27:01]Read from MH i2c: E2 0E 00 B5 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D2 [23:27:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:27:01]wFMCommunicate OK [23:27:01]SAM_PROTO_GetShiftState done [23:27:01]FM_GetShiftState done [23:27:01]req_shift_opened done [23:27:01]requested_item shift.open_date is exist - process it [23:27:01]req_shift_open_date [23:27:01]req_shift_open_date done [23:27:01]produce_requested_data done [23:27:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112488,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:27:01]process_action_free close_receipt [23:27:01]json_value_free [23:27:01]json_value_free done [23:27:01]process_json_proto returns [23:27:01]Send response to host [23:27:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112488,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:27:01]free response buf [23:27:01]execute_script done [23:27:01]execute_script returns [23:27:01]free content buf [23:27:01]Sock 7.Close socket [23:27:01]Sock 7.Thread stoped [23:27:05]OFD Sender: No OFD packet to send [23:27:07]accept exits with 9 [23:27:07]New connection [23:27:07]New thread 3067317604 created [23:27:07]Thread 3067174244 joined [23:27:07]Waiting for new connection... [23:27:07] Sock 9.Parse request [23:27:07]Sock 9.Check first char [23:27:07]Sock 9.First char is OK [23:27:07]request: POST /json_proto HTTP/1.0 [23:27:07]Method: POST [23:27:07]URL: /json_proto [23:27:07]Method is POST - this is cgi request [23:27:07]url: /json_proto [23:27:07]query_string will be loaded in cgi processing [23:27:07]execute_cgi json_proto POST (null) [23:27:07]execute_cgi path=json_proto method=POST [23:27:07]POST find Content-Length [23:27:07]Host: 172.17.96.197:8080 [23:27:07]Content-Length: 670 [23:27:07]Content-Type: application/json [23:27:07] [23:27:07]POST finish read [23:27:07]Found Content-Length = 670 [23:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48776", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [23:27:07]execute_script... [23:27: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)48776", "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.30, "quantity" : 10.720, "sum" : 700.02, "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" ] } } [23:27:07]POST & json_proto [23:27:07]process_json_proto [23:27:07]json parsed OK: [23:27:07]protocol is kg_v1.0 [23:27:07]action value=close_receipt [23:27:07]process_action close_receipt [23:27:07]cmd_close_receipt [23:27:07]MH_GetDate [23:27:07]Write to MH i2c: F0 00 00 B6 08 AD [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: F0 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: F0 09 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: F0 09 00 B6 08 00 4C 66 1C 66 E0 85 7F 64 32 [23:27:07]GetLastDocTimeStamp 1713137218 [23:27:07]current date 1713137228 [23:27:07]FM_GetShiftState [23:27:07]SAM_PROTO_GetShiftState [23:27:07]wFMCommunicate request_size=4 [23:27:07]MH_SAM_APDU [23:27:07]CAPDU: 80 13 01 00 [23:27:07]Write to MH i2c: E2 08 00 B7 08 80 13 01 00 00 00 00 00 3C [23:27:07]Write i2c OK [23:27:07]MH_I2C_Read... [23:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:07]Read from MH i2c: E2 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0E 00 [23:27:07]MH_I2C_Read... [23:27:07]Read from MH i2c: E2 0E 00 B7 08 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D4 [23:27:07]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:27:07]wFMCommunicate OK [23:27:07]SAM_PROTO_GetShiftState done [23:27:07]FM_GetShiftState done [23:27:07]opened in 1713054696 [23:27:07]opened+sec_in_day 1713141096 [23:27:07]quantity*price = 70001 [23:27:07]sum+1 = 70003 [23:27:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.19 НДС 12% : 74.34 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 388 14.04.2024 23:27 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112489 ФПД: 160665414308335 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T232708&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112489&fm=160665414308335&tin=02508201610067®Number=0000000000094237&sum=70000 [23:27:08]StoreToDocumentArchive [23:27:08]shift 357 fd 112489 [23:27:08]save to /storage/0357/doc_00112489 [23:27:08]save last doc name /storage/0357/doc_00112489 to /storage/kkm_last_doc_name [23:27:08]save OK [23:27:08]Clear old archive folders... [23:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:27:08]tlvbuf is 01A1CC30 [23:27:08]SAM_PROTO_ClearQueue [23:27:08]wFMCommunicate request_size=4 [23:27:08]MH_SAM_APDU [23:27:08]CAPDU: 80 09 00 00 [23:27:08]Write to MH i2c: E2 08 00 C4 08 80 09 00 00 00 00 00 00 3E [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 C4 08 00 90 00 40 [23:27:08]RAPDU: 90 00 [23:27:08]wFMCommunicate OK [23:27:08]SAM_PROTO_ClearQueue done [23:27:08]KKMCreateOFDPacket [23:27:08]OFDProtocolAddRootSTLVToBuf [23:27:08]FM_MakeSignedData [23:27:08]FM_MakeSignedData [23:27:08]SAM_PROTO_SignData [23:27:08]wFMCommunicate request_size=4 [23:27:08]MH_SAM_APDU [23:27:08]CAPDU: 80 0D 01 02 [23:27:08]Write to MH i2c: E2 08 00 C5 08 80 0D 01 02 00 00 00 00 46 [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 C5 08 00 90 00 41 [23:27:08]RAPDU: 90 00 [23:27:08]wFMCommunicate OK [23:27:08]wFMCommunicate request_size=255 [23:27:08]MH_SAM_APDU [23:27:08]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 84 01 00 00 F4 03 04 00 4C 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B7 01 00 35 04 06 00 [23:27:08]Write to MH i2c: E2 02 01 C6 08 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 84 01 00 00 F4 03 04 00 4C 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B7 01 00 35 04 06 00 00 00 EB [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 C6 08 00 90 00 42 [23:27:08]RAPDU: 90 00 [23:27:08]wFMCommunicate OK [23:27:08]wFMCommunicate request_size=11 [23:27:08]MH_SAM_APDU [23:27:08]CAPDU: 80 0D 02 02 06 92 1F D4 F2 91 EF [23:27:08]Write to MH i2c: E2 0E 00 C7 08 80 0D 02 02 06 00 92 1F D4 F2 91 EF 00 00 4C [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:08]Read from MH i2c: E2 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 [23:27:08]MH_I2C_Read... [23:27:08]Read from MH i2c: E2 03 00 C7 08 00 90 00 43 [23:27:08]RAPDU: 90 00 [23:27:08]wFMCommunicate OK [23:27:08]wFMCommunicate request_size=4 [23:27:08]MH_SAM_APDU [23:27:08]CAPDU: 80 0D 03 02 [23:27:08]Write to MH i2c: E2 08 00 C8 08 80 0D 03 02 00 00 00 00 4B [23:27:08]Write i2c OK [23:27:08]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 0B 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 0B 00 C8 08 00 A0 DE E9 70 4F 66 9A A9 90 00 1B [23:27:09]RAPDU: A0 DE E9 70 4F 66 9A A9 90 00 [23:27:09]wFMCommunicate OK [23:27:09]SAM_PROTO_SignData done [23:27:09]FM_MakeSignedData done [23:27:09]CreateOFDProtocolMessage [23:27:09]wFMCommunicate request_size=4 [23:27:09]MH_SAM_APDU [23:27:09]CAPDU: 80 11 00 00 [23:27:09]Write to MH i2c: E2 08 00 C9 08 80 11 00 00 00 00 00 00 4B [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:09]Read from MH i2c: E2 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: E2 17 00 C9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9C [23:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:27:09]wFMCommunicate OK [23:27:09]CreateOFDProtocolMessage done [23:27:09]OFDSenderStorePacket 112489 [23:27:09]StoreOFDPacket docnum=112489 [23:27:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F9 35 08 01 1D 00 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 84 01 00 00 F4 03 04 00 4C 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B7 01 00 35 04 06 00 92 1F D4 F2 91 EF A0 DE E9 70 4F 66 9A A9 [23:27:09]CheckFolder [23:27:09]dirname=/storage/ofd_packets [23:27:09]CheckFolder done [23:27:09]ProducePacketName [23:27:09]name=ofd_packets/00112489 [23:27:09]NVStorageSaveData ofd_packets/00112489 [23:27:09]File name is /storage/ofd_packets/00112489 [23:27:09]Write 302 bytes [23:27:09]NVStorageSaveData done [23:27:09]OFDSenderStorePacket done [23:27:09]KKMCreateOFDPacket done [23:27:09]NVStorageSaveData kkm_last_timestamp [23:27:09]File name is /storage/kkm_last_timestamp [23:27:09]Write 4 bytes [23:27:09]NVStorageSaveData done [23:27:09]ExternCall_PrintAddStr [23:27:09]wPrintStart [23:27:09]Write to MH i2c: 01 00 00 CA 08 D2 [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 FF 0F E7 [23:27:09]RasterBufferAndPrint [23:27:09]line Счет N : (1)48776 [23:27:09]line ИНН: 02508201610067 [23:27:09]line Контрольно-Кассовый Чек [23:27:09]line ПРОДАЖА [23:27:09]line ТРК (МРК, ГНК) : 41 [23:27:09]line Товар: 2710124130 [23:27:09]line SUPER 92-К-5 [23:27:09]line 10.720 * 65.30 [23:27:09]line = 700.02 [23:27:09]line НДС 12% НСП 1% [23:27:09]line > о реализуемом товаре [23:27:09]line ОКРУГЛЕНИЕ: -0.02 [23:27:09]line ИТОГО: 700.00 [23:27:09]line Внесено: 700.00 [23:27:09]line СДАЧА: 0.00 [23:27:09]line НСП 1% : 6.19 [23:27:09]line НДС 12% : 74.34 [23:27:09]line Наличными: 700.00 [23:27:09]line Безнал.: 0.00 [23:27:09]line Место: АЗС № 47 "Партнер Нефть" [23:27:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:27:09]line СНО: Общий режим [23:27:09]line Чек 388 14.04.2024 23:27 [23:27:09]line Смена: 357 ФФД: 1.0 [23:27:09]line ЗНМ: 0300000138 [23:27:09]line РНМ: 0000000000094237 [23:27:09]line Версия ККМ: 001 [23:27:09]line ФМ: 0000000000875019 [23:27:09]line ФД: 112489 [23:27:09]line ФПД: 160665414308335 [23:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T232708&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112489&fm=160665414308335&tin=02508201610067®Number=0000000000094237&sum=70000 [23:27:09]OFD Sender: Processing packet 112489 [packets to send 71, broken 70] [23:27:09]ProducePacketName [23:27:09]name=ofd_packets/00112489 [23:27:09]OFD Sender: To server: pG, [23:27:09]CommunicateWithHost lk.salyk.kg:30040 [23:27:09]ConnectInit lk.salyk.kg [23:27:09]written 0, free lines is 4095 [23:27:09]Connected sock=10 [23:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 F9 35 08 01 1D 00 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E0 29 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 72 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 6B 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 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 84 01 00 00 F4 03 04 00 4C 66 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 69 B7 01 00 35 04 06 00 92 1F D4 F2 91 EF A0 DE E9 70 4F 66 9A A9 [23:27:09]Write to MH i2c: 01 00 00 F5 08 FD [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: 01 07 00 F5 08 00 00 00 00 00 D4 0C E4 [23:27:09]RasterBufferAndPrint [23:27:09]line [23:27:09]line [23:27:09]line [23:27:09]line [23:27:09]line [23:27:09]written 0, free lines is 3292 [23:27:09]MH_Cut [23:27:09]Write to MH i2c: D1 01 00 FC 08 01 D6 [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: D1 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: D1 01 00 [23:27:09]MH_I2C_Read... [23:27:09]Read from MH i2c: D1 01 00 FC 08 00 D5 [23:27:09]Write to MH i2c: 01 00 00 FD 08 05 [23:27:09]Write i2c OK [23:27:09]MH_I2C_Read... [23:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EE D3 47 00 F8 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 38 37 35 30 31 39 10 04 04 00 69 B7 01 00 F4 03 04 00 D6 0D 1C 66 B6 04 01 00 00 F3 36 FB 43 B6 AA 7E 36 [23:27:09]CommunicateWithHost err = 0 [23:27:09]CheckOFDResponse [23:27:09]1017 (14) - 77093643461234 [23:27:09]1041 (16) - 0000000000875019 [23:27:09]1040 (4) - 112489 [23:27:09]1012 (4) - 14.04.2024 17:09 [23:27:09]1206 (1) - 0 [23:27:09]OFD Sender: Remove packet 112489 [23:27:09]ProducePacketName [23:27:09]name=ofd_packets/00112489 [23:27:09]NVStorageDeleteData [23:27:10]OFD Sender: No OFD packet to send [23:27:10]*** Cut start [23:27:10]*** Partial cut [23:27:10]*** CUTSNS_PIN = 1 [23:27:10]*** CUTSNS_PIN = 0 [23:27:10]*** Brake cut motor [23:27:11]Read from MH i2c: 01 [23:27:11]MH_I2C_Read... [23:27:11]*** Stop cut motor [23:27:11]Read from MH i2c: 01 07 00 [23:27:11]MH_I2C_Read... [23:27:11]*** Cut end [23:27:11]Read from MH i2c: 01 07 00 FD 08 00 00 00 00 00 FF 0F 1A [23:27:11]process_action close_receipt done [23:27:11]requested_data is exist [23:27:11]produce_requested_data [23:27:11]requested_item fm.sn is exist - process it [23:27:11]wFMCommunicate request_size=4 [23:27:11]MH_SAM_APDU [23:27:11]CAPDU: 80 11 00 00 [23:27:11]Write to MH i2c: E2 08 00 FE 08 80 11 00 00 00 00 00 00 80 [23:27:11]Write i2c OK [23:27:11]MH_I2C_Read... [23:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:11]Read from MH i2c: E2 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 17 00 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 17 00 FE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D1 [23:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:27:11]wFMCommunicate OK [23:27:11]requested_item fd.num is exist - process it [23:27:11]SAM_PROTO_GetFieldsCounters [23:27:11]wFMCommunicate request_size=4 [23:27:11]MH_SAM_APDU [23:27:11]CAPDU: 80 13 00 00 [23:27:11]Write to MH i2c: E2 08 00 FF 08 80 13 00 00 00 00 00 00 83 [23:27:11]Write i2c OK [23:27:11]MH_I2C_Read... [23:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:11]Read from MH i2c: E2 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 62 00 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 62 00 FF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 69 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [23:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 69 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:11]wFMCommunicate OK [23:27:11]SAM_PROTO_GetFieldsCounters done [23:27:11]requested_item shift.num is exist - process it [23:27:11]requested_item shift.opened is exist - process it [23:27:11]req_shift_opened [23:27:11]FM_GetShiftState [23:27:11]SAM_PROTO_GetShiftState [23:27:11]wFMCommunicate request_size=4 [23:27:11]MH_SAM_APDU [23:27:11]CAPDU: 80 13 01 00 [23:27:11]Write to MH i2c: E2 08 00 00 09 80 13 01 00 00 00 00 00 86 [23:27:11]Write i2c OK [23:27:11]MH_I2C_Read... [23:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:11]Read from MH i2c: E2 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 0E 00 [23:27:11]MH_I2C_Read... [23:27:11]Read from MH i2c: E2 0E 00 00 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 1E [23:27:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:27:11]wFMCommunicate OK [23:27:11]SAM_PROTO_GetShiftState done [23:27:11]FM_GetShiftState done [23:27:11]req_shift_opened done [23:27:11]requested_item shift.open_date is exist - process it [23:27:11]req_shift_open_date [23:27:11]req_shift_open_date done [23:27:11]produce_requested_data done [23:27:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112489,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:27:11]process_action_free close_receipt [23:27:11]json_value_free [23:27:11]json_value_free done [23:27:11]process_json_proto returns [23:27:11]Send response to host [23:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112489,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:27:11]free response buf [23:27:11]execute_script done [23:27:11]execute_script returns [23:27:11]free content buf [23:27:11]Sock 9.Close socket [23:27:11]Sock 9.Thread stoped [23:27:15]OFD Sender: No OFD packet to send [23:27:20]OFD Sender: No OFD packet to send [23:27:25]OFD Sender: No OFD packet to send [23:27:30]OFD Sender: No OFD packet to send [23:27:35]OFD Sender: No OFD packet to send [23:27:40]OFD Sender: No OFD packet to send [23:27:45]OFD Sender: No OFD packet to send [23:27:50]OFD Sender: No OFD packet to send [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:44]accept exits with 7 [23:30:44]New connection [23:30:44]New thread 3067174244 created [23:30:44]Thread 3067317604 joined [23:30:44]Waiting for new connection... [23:30:44] Sock 7.Parse request [23:30:44]Sock 7.Check first char [23:30:44]Sock 7.First char is OK [23:30:44]request: POST /json_proto HTTP/1.0 [23:30:44]Method: POST [23:30:44]URL: /json_proto [23:30:44]Method is POST - this is cgi request [23:30:44]url: /json_proto [23:30:44]query_string will be loaded in cgi processing [23:30:44]execute_cgi json_proto POST (null) [23:30:44]execute_cgi path=json_proto method=POST [23:30:44]POST find Content-Length [23:30:44]Host: 172.17.96.197:8080 [23:30:44]Content-Length: 867 [23:30:44]Content-Type: application/json [23:30:44] [23:30:44]POST finish read [23:30:44]Found Content-Length = 867 [23:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10459", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:44]execute_script... [23:30:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10459", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:30:44]POST & json_proto [23:30:44]process_json_proto [23:30:44]json parsed OK: [23:30:44]protocol is kg_v1.0 [23:30:44]action value=close_receipt [23:30:44]process_action close_receipt [23:30:44]cmd_close_receipt [23:30:44]MH_GetDate [23:30:44]Write to MH i2c: F0 00 00 01 09 F9 [23:30:44]Write i2c OK [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: F0 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: F0 09 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: F0 09 00 01 09 00 25 67 1C 66 E0 85 7F 64 58 [23:30:44]GetLastDocTimeStamp 1713137228 [23:30:44]current date 1713137445 [23:30:44]FM_GetShiftState [23:30:44]SAM_PROTO_GetShiftState [23:30:44]wFMCommunicate request_size=4 [23:30:44]MH_SAM_APDU [23:30:44]CAPDU: 80 13 01 00 [23:30:44]Write to MH i2c: E2 08 00 02 09 80 13 01 00 00 00 00 00 88 [23:30:44]Write i2c OK [23:30:44]MH_I2C_Read... [23:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:44]Read from MH i2c: E2 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 0E 00 [23:30:44]MH_I2C_Read... [23:30:44]Read from MH i2c: E2 0E 00 02 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 20 [23:30:44]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:30:44]wFMCommunicate OK [23:30:44]SAM_PROTO_GetShiftState done [23:30:44]FM_GetShiftState done [23:30:44]opened in 1713054696 [23:30:44]opened+sec_in_day 1713141096 [23:30:44]quantity*price = 13500 [23:30:44]sum+1 = 13501 [23:30:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 389 14.04.2024 23:30 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112490 ФПД: 217748205528726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233045&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112490&fm=217748205528726&tin=02508201610067®Number=0000000000094237&sum=18500 0 [23:30:45]StoreToDocumentArchive [23:30:45]shift 357 fd 112490 [23:30:45]save to /storage/0357/doc_00112490 [23:30:45]save last doc name /storage/0357/doc_00112490 to /storage/kkm_last_doc_name [23:30:45]save OK [23:30:45]Clear old archive folders... [23:30:45]ProcessDocumentItem done err = 0, tmpTLVsize=372 [23:30:45]tlvbuf is 019DEF50 [23:30:45]SAM_PROTO_ClearQueue [23:30:45]wFMCommunicate request_size=4 [23:30:45]MH_SAM_APDU [23:30:45]CAPDU: 80 09 00 00 [23:30:45]Write to MH i2c: E2 08 00 0F 09 80 09 00 00 00 00 00 00 8A [23:30:45]Write i2c OK [23:30:45]MH_I2C_Read... [23:30:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:30:45]Read from MH i2c: E2 [23:30:45]MH_I2C_Read... [23:30:45]Read from MH i2c: E2 03 00 [23:30:45]MH_I2C_Read... [23:30:45]Read from MH i2c: E2 03 00 0F 09 00 90 00 8C [23:30:45]RAPDU: 90 00 [23:30:45]wFMCommunicate OK [23:30:45]SAM_PROTO_ClearQueue done [23:30:45]KKMCreateOFDPacket [23:30:45]OFDProtocolAddRootSTLVToBuf [23:30:45]FM_MakeSignedData [23:30:45]FM_MakeSignedData [23:30:45]SAM_PROTO_SignData [23:30:45]wFMCommunicate request_size=4 [23:30:45]MH_SAM_APDU [23:30:45]CAPDU: 80 0D 01 02 [23:30:45]Write to MH i2c: E2 08 00 10 09 80 0D 01 02 00 00 00 00 92 [23:30:45]Write i2c OK [23:30:45]MH_I2C_Read... [23:30:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:30:45]Read from MH i2c: E2 [23:30:45]MH_I2C_Read... [23:30:45]Read from MH i2c: E2 03 00 [23:30:45]MH_I2C_Read... [23:30:45]Read from MH i2c: E2 03 00 10 09 00 90 00 8D [23:30:45]RAPDU: 90 00 [23:30:45]wFMCommunicate OK [23:30:45]wFMCommunicate request_size=255 [23:30:45]MH_SAM_APDU [23:30:45]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 [23:30:45]Write to MH i2c: E2 02 01 11 09 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 7D [23:30:45]Write i2c OK [23:30:45]MH_I2C_Read... [23:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:46]Read from MH i2c: E2 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 03 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 03 00 11 09 00 90 00 8E [23:30:46]RAPDU: 90 00 [23:30:46]wFMCommunicate OK [23:30:46]wFMCommunicate request_size=131 [23:30:46]MH_SAM_APDU [23:30:46]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 25 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B7 01 00 35 04 06 00 C6 0A 74 70 E6 96 [23:30:46]Write to MH i2c: E2 86 00 12 09 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 25 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B7 01 00 35 04 06 00 C6 0A 74 70 E6 96 00 00 53 [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:30:46]Read from MH i2c: E2 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 03 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 03 00 12 09 00 90 00 8F [23:30:46]RAPDU: 90 00 [23:30:46]wFMCommunicate OK [23:30:46]wFMCommunicate request_size=4 [23:30:46]MH_SAM_APDU [23:30:46]CAPDU: 80 0D 03 02 [23:30:46]Write to MH i2c: E2 08 00 13 09 80 0D 03 02 00 00 00 00 97 [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:30:46]Read from MH i2c: E2 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 0B 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 0B 00 13 09 00 C7 EC 4A 53 78 69 53 B9 90 00 D5 [23:30:46]RAPDU: C7 EC 4A 53 78 69 53 B9 90 00 [23:30:46]wFMCommunicate OK [23:30:46]SAM_PROTO_SignData done [23:30:46]FM_MakeSignedData done [23:30:46]CreateOFDProtocolMessage [23:30:46]wFMCommunicate request_size=4 [23:30:46]MH_SAM_APDU [23:30:46]CAPDU: 80 11 00 00 [23:30:46]Write to MH i2c: E2 08 00 14 09 80 11 00 00 00 00 00 00 97 [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:46]Read from MH i2c: E2 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 17 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: E2 17 00 14 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E8 [23:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:30:46]wFMCommunicate OK [23:30:46]CreateOFDProtocolMessage done [23:30:46]OFDSenderStorePacket 112490 [23:30:46]StoreOFDPacket docnum=112490 [23:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 88 01 00 00 D0 7B 80 01 75 32 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 25 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B7 01 00 35 04 06 00 C6 0A 74 70 E6 96 C7 EC 4A 53 78 69 53 B9 [23:30:46]CheckFolder [23:30:46]dirname=/storage/ofd_packets [23:30:46]CheckFolder done [23:30:46]ProducePacketName [23:30:46]name=ofd_packets/00112490 [23:30:46]NVStorageSaveData ofd_packets/00112490 [23:30:46]File name is /storage/ofd_packets/00112490 [23:30:46]Write 422 bytes [23:30:46]NVStorageSaveData done [23:30:46]OFDSenderStorePacket done [23:30:46]KKMCreateOFDPacket done [23:30:46]NVStorageSaveData kkm_last_timestamp [23:30:46]File name is /storage/kkm_last_timestamp [23:30:46]Write 4 bytes [23:30:46]NVStorageSaveData done [23:30:46]ExternCall_PrintAddStr [23:30:46]wPrintStart [23:30:46]Write to MH i2c: 01 00 00 15 09 1E [23:30:46]Write i2c OK [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: 01 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: 01 07 00 [23:30:46]MH_I2C_Read... [23:30:46]Read from MH i2c: 01 07 00 15 09 00 00 00 00 00 FF 0F 33 [23:30:46]RasterBufferAndPrint [23:30:46]line Счет N : (3)10459 [23:30:46]line ИНН: 02508201610067 [23:30:46]line Контрольно-Кассовый Чек [23:30:46]line ПРОДАЖА [23:30:46]line Товар: 48747059 [23:30:46]line Сигареты Winston Legend Blue [23:30:46]line 1.000 * 135.00 [23:30:46]line = 135.00 [23:30:46]line НДС 12% НСП 1% [23:30:46]line > о реализуемом товаре [23:30:46]line Товар: 4700000160358 [23:30:46]line Вода Легенда 1л [23:30:46]line 1.000 * 50.00 [23:30:46]line = 50.00 [23:30:46]line НДС 12% НСП 1% [23:30:46]line > о реализуемом товаре [23:30:46]line ИТОГО: 185.00 [23:30:46]line НСП 1% : 1.63 [23:30:46]line НДС 12% : 19.65 [23:30:46]line Наличными: 185.00 [23:30:46]line Безнал.: 0.00 [23:30:46]line Место: АЗС № 47 "Партнер Нефть" [23:30:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:30:46]line СНО: Общий режим [23:30:46]line Чек 389 14.04.2024 23:30 [23:30:46]line Смена: 357 ФФД: 1.0 [23:30:46]line ЗНМ: 0300000138 [23:30:46]line РНМ: 0000000000094237 [23:30:46]line Версия ККМ: 001 [23:30:46]line ФМ: 0000000000875019 [23:30:46]line ФД: 112490 [23:30:46]line ФПД: 217748205528726 [23:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233045&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112490&fm=217748205528726&tin=02508201610067®Number=0000000000094237&sum=18500 [23:30:46]line 0 [23:30:46]OFD Sender: Processing packet 112490 [packets to send 71, broken 70] [23:30:46]ProducePacketName [23:30:46]name=ofd_packets/00112490 [23:30:46]OFD Sender: To server: pG, [23:30:46]CommunicateWithHost lk.salyk.kg:30040 [23:30:46]ConnectInit lk.salyk.kg [23:30:46]written 0, free lines is 4095 [23:30:46]Connected sock=10 [23:30:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 88 01 00 00 D0 7B 80 01 75 32 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 01 00 00 F4 03 04 00 25 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B7 01 00 35 04 06 00 C6 0A 74 70 E6 96 C7 EC 4A 53 78 69 53 B9 [23:30:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2E 29 47 00 AC 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6A B7 01 00 F4 03 04 00 AF 0E 1C 66 B6 04 01 00 00 49 AE EB 89 EC C0 32 EC [23:30:47]CommunicateWithHost err = 0 [23:30:47]CheckOFDResponse [23:30:47]1017 (14) - 77093643461234 [23:30:47]1041 (16) - 0000000000875019 [23:30:47]1040 (4) - 112490 [23:30:47]1012 (4) - 14.04.2024 17:13 [23:30:47]1206 (1) - 0 [23:30:47]OFD Sender: Remove packet 112490 [23:30:47]ProducePacketName [23:30:47]name=ofd_packets/00112490 [23:30:47]NVStorageDeleteData [23:30:47]Write to MH i2c: 01 00 00 44 09 4D [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: 01 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: 01 07 00 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 88 0C E8 [23:30:47]RasterBufferAndPrint [23:30:47]line [23:30:47]line [23:30:47]line [23:30:47]line [23:30:47]line [23:30:47]written 0, free lines is 3214 [23:30:47]MH_Cut [23:30:47]Write to MH i2c: D1 01 00 4B 09 01 26 [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: D1 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: D1 01 00 [23:30:47]MH_I2C_Read... [23:30:47]Read from MH i2c: D1 01 00 4B 09 00 25 [23:30:47]Write to MH i2c: 01 00 00 4C 09 55 [23:30:47]Write i2c OK [23:30:47]MH_I2C_Read... [23:30:47]OFD Sender: No OFD packet to send [23:30:47]*** Cut start [23:30:47]*** Partial cut [23:30:47]*** CUTSNS_PIN = 1 [23:30:47]*** CUTSNS_PIN = 0 [23:30:48]*** Brake cut motor [23:30:48]Read from MH i2c: 01 [23:30:48]MH_I2C_Read... [23:30:48]*** Stop cut motor [23:30:48]*** Cut end [23:30:48]Read from MH i2c: 01 07 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: 01 07 00 4C 09 00 00 00 00 00 FF 0F 6A [23:30:48]process_action close_receipt done [23:30:48]requested_data is exist [23:30:48]produce_requested_data [23:30:48]requested_item fm.sn is exist - process it [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 11 00 00 [23:30:48]Write to MH i2c: E2 08 00 4D 09 80 11 00 00 00 00 00 00 D0 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 17 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 17 00 4D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 21 [23:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:30:48]wFMCommunicate OK [23:30:48]requested_item fd.num is exist - process it [23:30:48]SAM_PROTO_GetFieldsCounters [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 13 00 00 [23:30:48]Write to MH i2c: E2 08 00 4E 09 80 13 00 00 00 00 00 00 D3 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 62 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 62 00 4E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:30:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6A B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:30:48]wFMCommunicate OK [23:30:48]SAM_PROTO_GetFieldsCounters done [23:30:48]requested_item shift.num is exist - process it [23:30:48]requested_item shift.opened is exist - process it [23:30:48]req_shift_opened [23:30:48]FM_GetShiftState [23:30:48]SAM_PROTO_GetShiftState [23:30:48]wFMCommunicate request_size=4 [23:30:48]MH_SAM_APDU [23:30:48]CAPDU: 80 13 01 00 [23:30:48]Write to MH i2c: E2 08 00 4F 09 80 13 01 00 00 00 00 00 D5 [23:30:48]Write i2c OK [23:30:48]MH_I2C_Read... [23:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:30:48]Read from MH i2c: E2 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0E 00 [23:30:48]MH_I2C_Read... [23:30:48]Read from MH i2c: E2 0E 00 4F 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6D [23:30:48]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:30:48]wFMCommunicate OK [23:30:48]SAM_PROTO_GetShiftState done [23:30:48]FM_GetShiftState done [23:30:48]req_shift_opened done [23:30:48]requested_item shift.open_date is exist - process it [23:30:48]req_shift_open_date [23:30:48]req_shift_open_date done [23:30:48]produce_requested_data done [23:30:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112490,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:30:48]process_action_free close_receipt [23:30:48]json_value_free [23:30:48]json_value_free done [23:30:48]process_json_proto returns [23:30:48]Send response to host [23:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112490,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:30:48]free response buf [23:30:48]execute_script done [23:30:48]execute_script returns [23:30:48]free content buf [23:30:48]Sock 7.Close socket [23:30:48]Sock 7.Thread stoped [23:30:52]OFD Sender: No OFD packet to send [23:30:57]OFD Sender: No OFD packet to send [23:31:02]OFD Sender: No OFD packet to send [23:31:07]OFD Sender: No OFD packet to send [23:31:12]OFD Sender: No OFD packet to send [23:31:17]OFD Sender: No OFD packet to send [23:31:22]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:45]accept exits with 9 [23:31:45]New connection [23:31:45]New thread 3067317604 created [23:31:45]Thread 3067174244 joined [23:31:45]Waiting for new connection... [23:31:45] Sock 9.Parse request [23:31:45]Sock 9.Check first char [23:31:45]Sock 9.First char is OK [23:31:45]request: POST /json_proto HTTP/1.0 [23:31:45]Method: POST [23:31:45]URL: /json_proto [23:31:45]Method is POST - this is cgi request [23:31:45]url: /json_proto [23:31:45]query_string will be loaded in cgi processing [23:31:45]execute_cgi json_proto POST (null) [23:31:45]execute_cgi path=json_proto method=POST [23:31:45]POST find Content-Length [23:31:45]Host: 172.17.96.197:8080 [23:31:45]Content-Length: 811 [23:31:45]Content-Type: application/json [23:31:45] [23:31:45]POST finish read [23:31:45]Found Content-Length = 811 [23:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48777", "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.30, "quantity" : 15.320, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:45]execute_script... [23:31: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)48777", "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.30, "quantity" : 15.320, "sum" : 1000.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.40 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:45]POST & json_proto [23:31:45]process_json_proto [23:31:45]json parsed OK: [23:31:45]protocol is kg_v1.0 [23:31:45]action value=close_receipt [23:31:45]process_action close_receipt [23:31:45]cmd_close_receipt [23:31:45]MH_GetDate [23:31:45]Write to MH i2c: F0 00 00 50 09 48 [23:31:45]Write i2c OK [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: F0 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: F0 09 00 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: F0 09 00 50 09 00 62 67 1C 66 E0 85 7F 64 E4 [23:31:45]GetLastDocTimeStamp 1713137445 [23:31:45]current date 1713137506 [23:31:45]FM_GetShiftState [23:31:45]SAM_PROTO_GetShiftState [23:31:45]wFMCommunicate request_size=4 [23:31:45]MH_SAM_APDU [23:31:45]CAPDU: 80 13 01 00 [23:31:45]Write to MH i2c: E2 08 00 51 09 80 13 01 00 00 00 00 00 D7 [23:31:45]Write i2c OK [23:31:45]MH_I2C_Read... [23:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:45]Read from MH i2c: E2 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 0E 00 [23:31:45]MH_I2C_Read... [23:31:45]Read from MH i2c: E2 0E 00 51 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 6F [23:31:45]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:31:45]wFMCommunicate OK [23:31:45]SAM_PROTO_GetShiftState done [23:31:45]FM_GetShiftState done [23:31:45]opened in 1713054696 [23:31:45]opened+sec_in_day 1713141096 [23:31:45]quantity*price = 100039 [23:31:45]sum+1 = 100041 [23:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.40 НСП 1% : 8.85 НДС 12% : 106.24 Наличными: 0.00 Безнал.: 1000.40 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 390 14.04.2024 23:31 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112491 ФПД: 32629599812846 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233146&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112491&fm=32629599812846&tin=02508201610067®Number=0000000000094237&sum=100040 [23:31:46]StoreToDocumentArchive [23:31:46]shift 357 fd 112491 [23:31:46]save to /storage/0357/doc_00112491 [23:31:46]save last doc name /storage/0357/doc_00112491 to /storage/kkm_last_doc_name [23:31:46]save OK [23:31:46]Clear old archive folders... [23:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:31:46]tlvbuf is 019EF210 [23:31:46]SAM_PROTO_ClearQueue [23:31:46]wFMCommunicate request_size=4 [23:31:46]MH_SAM_APDU [23:31:46]CAPDU: 80 09 00 00 [23:31:46]Write to MH i2c: E2 08 00 5E 09 80 09 00 00 00 00 00 00 D9 [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:46]Read from MH i2c: E2 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: E2 03 00 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: E2 03 00 5E 09 00 90 00 DB [23:31:46]RAPDU: 90 00 [23:31:46]wFMCommunicate OK [23:31:46]SAM_PROTO_ClearQueue done [23:31:46]KKMCreateOFDPacket [23:31:46]OFDProtocolAddRootSTLVToBuf [23:31:46]FM_MakeSignedData [23:31:46]FM_MakeSignedData [23:31:46]SAM_PROTO_SignData [23:31:46]wFMCommunicate request_size=4 [23:31:46]MH_SAM_APDU [23:31:46]CAPDU: 80 0D 01 02 [23:31:46]Write to MH i2c: E2 08 00 5F 09 80 0D 01 02 00 00 00 00 E1 [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:46]Read from MH i2c: E2 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: E2 03 00 [23:31:46]MH_I2C_Read... [23:31:46]Read from MH i2c: E2 03 00 5F 09 00 90 00 DC [23:31:46]RAPDU: 90 00 [23:31:46]wFMCommunicate OK [23:31:46]wFMCommunicate request_size=255 [23:31:46]MH_SAM_APDU [23:31:46]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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 62 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B7 01 00 35 04 06 00 [23:31:46]Write to MH i2c: E2 02 01 60 09 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 62 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B7 01 00 35 04 06 00 00 00 9D [23:31:46]Write i2c OK [23:31:46]MH_I2C_Read... [23:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:47]Read from MH i2c: E2 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 03 00 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 03 00 60 09 00 90 00 DD [23:31:47]RAPDU: 90 00 [23:31:47]wFMCommunicate OK [23:31:47]wFMCommunicate request_size=11 [23:31:47]MH_SAM_APDU [23:31:47]CAPDU: 80 0D 02 02 06 1D AD 2B B4 BC EE [23:31:47]Write to MH i2c: E2 0E 00 61 09 80 0D 02 02 06 00 1D AD 2B B4 BC EE 00 00 43 [23:31:47]Write i2c OK [23:31:47]MH_I2C_Read... [23:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:47]Read from MH i2c: E2 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 03 00 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 03 00 61 09 00 90 00 DE [23:31:47]RAPDU: 90 00 [23:31:47]wFMCommunicate OK [23:31:47]wFMCommunicate request_size=4 [23:31:47]MH_SAM_APDU [23:31:47]CAPDU: 80 0D 03 02 [23:31:47]Write to MH i2c: E2 08 00 62 09 80 0D 03 02 00 00 00 00 E6 [23:31:47]Write i2c OK [23:31:47]MH_I2C_Read... [23:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:47]Read from MH i2c: E2 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 0B 00 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 0B 00 62 09 00 7A 29 FC BD 30 A8 21 92 90 00 CE [23:31:47]RAPDU: 7A 29 FC BD 30 A8 21 92 90 00 [23:31:47]wFMCommunicate OK [23:31:47]SAM_PROTO_SignData done [23:31:47]FM_MakeSignedData done [23:31:47]CreateOFDProtocolMessage [23:31:47]wFMCommunicate request_size=4 [23:31:47]MH_SAM_APDU [23:31:47]CAPDU: 80 11 00 00 [23:31:47]Write to MH i2c: E2 08 00 63 09 80 11 00 00 00 00 00 00 E6 [23:31:47]Write i2c OK [23:31:47]MH_I2C_Read... [23:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:47]Read from MH i2c: E2 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 17 00 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: E2 17 00 63 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 37 [23:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:31:47]wFMCommunicate OK [23:31:47]CreateOFDProtocolMessage done [23:31:47]OFDSenderStorePacket 112491 [23:31:47]StoreOFDPacket docnum=112491 [23:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 A2 2A 08 01 BC 7E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 62 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B7 01 00 35 04 06 00 1D AD 2B B4 BC EE 7A 29 FC BD 30 A8 21 92 [23:31:47]CheckFolder [23:31:47]dirname=/storage/ofd_packets [23:31:47]CheckFolder done [23:31:47]ProducePacketName [23:31:47]name=ofd_packets/00112491 [23:31:47]NVStorageSaveData ofd_packets/00112491 [23:31:47]File name is /storage/ofd_packets/00112491 [23:31:47]Write 302 bytes [23:31:47]NVStorageSaveData done [23:31:47]OFDSenderStorePacket done [23:31:47]KKMCreateOFDPacket done [23:31:47]NVStorageSaveData kkm_last_timestamp [23:31:47]File name is /storage/kkm_last_timestamp [23:31:47]Write 4 bytes [23:31:47]NVStorageSaveData done [23:31:47]ExternCall_PrintAddStr [23:31:47]wPrintStart [23:31:47]Write to MH i2c: 01 00 00 64 09 6D [23:31:47]Write i2c OK [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: 01 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: 01 07 00 [23:31:47]MH_I2C_Read... [23:31:47]Read from MH i2c: 01 07 00 64 09 00 00 00 00 00 FF 0F 82 [23:31:47]RasterBufferAndPrint [23:31:47]line Счет N : (1)48777 [23:31:47]line ИНН: 02508201610067 [23:31:47]line Контрольно-Кассовый Чек [23:31:47]line ПРОДАЖА [23:31:47]line ТРК (МРК, ГНК) : 41 [23:31:47]line Товар: 2710124130 [23:31:47]line SUPER 92-К-5 [23:31:47]line 15.320 * 65.30 [23:31:47]line = 1000.40 [23:31:47]line НДС 12% НСП 1% [23:31:47]line > о реализуемом товаре [23:31:47]line ИТОГО: 1000.40 [23:31:47]line НСП 1% : 8.85 [23:31:47]line НДС 12% : 106.24 [23:31:47]line Наличными: 0.00 [23:31:47]line Безнал.: 1000.40 [23:31:47]line Место: АЗС № 47 "Партнер Нефть" [23:31:47]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:31:47]line СНО: Общий режим [23:31:47]line Чек 390 14.04.2024 23:31 [23:31:47]line Смена: 357 ФФД: 1.0 [23:31:47]line ЗНМ: 0300000138 [23:31:47]line РНМ: 0000000000094237 [23:31:47]line Версия ККМ: 001 [23:31:47]line Платежная система: Бакай Банк [23:31:47]line ФМ: 0000000000875019 [23:31:47]line ФД: 112491 [23:31:47]line ФПД: 32629599812846 [23:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233146&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112491&fm=32629599812846&tin=02508201610067®Number=0000000000094237&sum=100040 [23:31:47]written 0, free lines is 4095 [23:31:47]OFD Sender: Processing packet 112491 [packets to send 71, broken 70] [23:31:47]ProducePacketName [23:31:47]name=ofd_packets/00112491 [23:31:47]OFD Sender: To server: pG, [23:31:47]CommunicateWithHost lk.salyk.kg:30040 [23:31:47]ConnectInit lk.salyk.kg [23:31:47]Connected sock=10 [23:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 A2 2A 08 01 BC 7E 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 20 39 32 2D D0 9A 2D 35 FF 03 08 00 03 D8 3B 00 00 00 00 00 37 04 06 00 82 19 00 00 00 00 13 04 06 00 C8 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 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 80 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 01 00 00 F4 03 04 00 62 67 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6B B7 01 00 35 04 06 00 1D AD 2B B4 BC EE 7A 29 FC BD 30 A8 21 92 [23:31:48]Write to MH i2c: 01 00 00 8E 09 97 [23:31:48]Write i2c OK [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: 01 [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: 01 07 00 [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: 01 07 00 8E 09 00 00 00 00 00 E8 0C 92 [23:31:48]RasterBufferAndPrint [23:31:48]line [23:31:48]line [23:31:48]line [23:31:48]line [23:31:48]line [23:31:48]written 0, free lines is 3311 [23:31:48]MH_Cut [23:31:48]Write to MH i2c: D1 01 00 95 09 01 70 [23:31:48]Write i2c OK [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: D1 [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: D1 01 00 [23:31:48]MH_I2C_Read... [23:31:48]Read from MH i2c: D1 01 00 95 09 00 6F [23:31:48]Write to MH i2c: 01 00 00 96 09 9F [23:31:48]Write i2c OK [23:31:48]MH_I2C_Read... [23:31:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 CF CD 47 00 89 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 38 37 35 30 31 39 10 04 04 00 6B B7 01 00 F4 03 04 00 EC 0E 1C 66 B6 04 01 00 00 0F A3 AB 69 51 D3 21 5D [23:31:48]CommunicateWithHost err = 0 [23:31:48]CheckOFDResponse [23:31:48]1017 (14) - 77093643461234 [23:31:48]1041 (16) - 0000000000875019 [23:31:48]1040 (4) - 112491 [23:31:48]1012 (4) - 14.04.2024 17:14 [23:31:48]1206 (1) - 0 [23:31:48]OFD Sender: Remove packet 112491 [23:31:48]ProducePacketName [23:31:48]name=ofd_packets/00112491 [23:31:48]NVStorageDeleteData [23:31:48]OFD Sender: No OFD packet to send [23:31:48]*** Cut start [23:31:48]*** Partial cut [23:31:48]*** CUTSNS_PIN = 1 [23:31:48]*** CUTSNS_PIN = 0 [23:31:49]*** Brake cut motor [23:31:49]Read from MH i2c: 01 [23:31:49]MH_I2C_Read... [23:31:49]*** Stop cut motor [23:31:49]*** Cut end [23:31:49]Read from MH i2c: 01 07 00 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [23:31:49]process_action close_receipt done [23:31:49]requested_data is exist [23:31:49]produce_requested_data [23:31:49]requested_item fm.sn is exist - process it [23:31:49]wFMCommunicate request_size=4 [23:31:49]MH_SAM_APDU [23:31:49]CAPDU: 80 11 00 00 [23:31:49]Write to MH i2c: E2 08 00 97 09 80 11 00 00 00 00 00 00 1A [23:31:49]Write i2c OK [23:31:49]MH_I2C_Read... [23:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:49]Read from MH i2c: E2 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 17 00 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 17 00 97 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6B [23:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:31:49]wFMCommunicate OK [23:31:49]requested_item fd.num is exist - process it [23:31:49]SAM_PROTO_GetFieldsCounters [23:31:49]wFMCommunicate request_size=4 [23:31:49]MH_SAM_APDU [23:31:49]CAPDU: 80 13 00 00 [23:31:49]Write to MH i2c: E2 08 00 98 09 80 13 00 00 00 00 00 00 1D [23:31:49]Write i2c OK [23:31:49]MH_I2C_Read... [23:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:49]Read from MH i2c: E2 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 62 00 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 62 00 98 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [23:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6B B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:31:49]wFMCommunicate OK [23:31:49]SAM_PROTO_GetFieldsCounters done [23:31:49]requested_item shift.num is exist - process it [23:31:49]requested_item shift.opened is exist - process it [23:31:49]req_shift_opened [23:31:49]FM_GetShiftState [23:31:49]SAM_PROTO_GetShiftState [23:31:49]wFMCommunicate request_size=4 [23:31:49]MH_SAM_APDU [23:31:49]CAPDU: 80 13 01 00 [23:31:49]Write to MH i2c: E2 08 00 99 09 80 13 01 00 00 00 00 00 1F [23:31:49]Write i2c OK [23:31:49]MH_I2C_Read... [23:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:49]Read from MH i2c: E2 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 0E 00 [23:31:49]MH_I2C_Read... [23:31:49]Read from MH i2c: E2 0E 00 99 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B7 [23:31:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:31:49]wFMCommunicate OK [23:31:49]SAM_PROTO_GetShiftState done [23:31:49]FM_GetShiftState done [23:31:49]req_shift_opened done [23:31:49]requested_item shift.open_date is exist - process it [23:31:49]req_shift_open_date [23:31:49]req_shift_open_date done [23:31:49]produce_requested_data done [23:31:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112491,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:31:49]process_action_free close_receipt [23:31:49]json_value_free [23:31:49]json_value_free done [23:31:49]process_json_proto returns [23:31:49]Send response to host [23:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112491,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:31:49]free response buf [23:31:49]execute_script done [23:31:49]execute_script returns [23:31:49]free content buf [23:31:49]Sock 9.Close socket [23:31:49]Sock 9.Thread stoped [23:31:53]OFD Sender: No OFD packet to send [23:31:58]OFD Sender: No OFD packet to send [23:32:03]OFD Sender: No OFD packet to send [23:32:08]OFD Sender: No OFD packet to send [23:32:13]OFD Sender: No OFD packet to send [23:32:18]OFD Sender: No OFD packet to send [23:32:23]OFD Sender: No OFD packet to send [23:32:28]OFD Sender: No OFD packet to send [23:32:33]OFD Sender: No OFD packet to send [23:32:38]OFD Sender: No OFD packet to send [23:32:43]OFD Sender: No OFD packet to send [23:32:48]OFD Sender: No OFD packet to send [23:32:53]OFD Sender: No OFD packet to send [23:32:58]OFD Sender: No OFD packet to send [23:33:03]OFD Sender: No OFD packet to send [23:33:08]OFD Sender: No OFD packet to send [23:33:13]OFD Sender: No OFD packet to send [23:33:18]OFD Sender: No OFD packet to send [23:33:23]OFD Sender: No OFD packet to send [23:33:28]OFD Sender: No OFD packet to send [23:33:33]OFD Sender: No OFD packet to send [23:33:38]OFD Sender: No OFD packet to send [23:33:43]OFD Sender: No OFD packet to send [23:33:48]OFD Sender: No OFD packet to send [23:33:53]OFD Sender: No OFD packet to send [23:33:58]OFD Sender: No OFD packet to send [23:34:03]OFD Sender: No OFD packet to send [23:34:08]OFD Sender: No OFD packet to send [23:34:13]OFD Sender: No OFD packet to send [23:34:18]OFD Sender: No OFD packet to send [23:34:23]OFD Sender: No OFD packet to send [23:34:28]OFD Sender: No OFD packet to send [23:34:33]OFD Sender: No OFD packet to send [23:34:38]OFD Sender: No OFD packet to send [23:34:43]OFD Sender: No OFD packet to send [23:34:48]OFD Sender: No OFD packet to send [23:34:53]OFD Sender: No OFD packet to send [23:34:58]OFD Sender: No OFD packet to send [23:35:03]OFD Sender: No OFD packet to send [23:35:08]OFD Sender: No OFD packet to send [23:35:13]OFD Sender: No OFD packet to send [23:35:18]OFD Sender: No OFD packet to send [23:35:23]OFD Sender: No OFD packet to send [23:35:28]OFD Sender: No OFD packet to send [23:35:33]OFD Sender: No OFD packet to send [23:35:38]OFD Sender: No OFD packet to send [23:35:43]OFD Sender: No OFD packet to send [23:35:48]OFD Sender: No OFD packet to send [23:35:53]OFD Sender: No OFD packet to send [23:35:58]OFD Sender: No OFD packet to send [23:36:03]OFD Sender: No OFD packet to send [23:36:08]OFD Sender: No OFD packet to send [23:36:13]OFD Sender: No OFD packet to send [23:36:18]OFD Sender: No OFD packet to send [23:36:23]OFD Sender: No OFD packet to send [23:36:28]OFD Sender: No OFD packet to send [23:36:33]OFD Sender: No OFD packet to send [23:36:38]OFD Sender: No OFD packet to send [23:36:43]OFD Sender: No OFD packet to send [23:36:48]OFD Sender: No OFD packet to send [23:36:53]OFD Sender: No OFD packet to send [23:36:58]OFD Sender: No OFD packet to send [23:37:03]OFD Sender: No OFD packet to send [23:37:06]accept exits with 7 [23:37:06]New connection [23:37:06]New thread 3067174244 created [23:37:06]Thread 3067317604 joined [23:37:06]Waiting for new connection... [23:37:06] Sock 7.Parse request [23:37:06]Sock 7.Check first char [23:37:06]Sock 7.First char is OK [23:37:06]request: POST /json_proto HTTP/1.0 [23:37:06]Method: POST [23:37:06]URL: /json_proto [23:37:06]Method is POST - this is cgi request [23:37:06]url: /json_proto [23:37:06]query_string will be loaded in cgi processing [23:37:06]execute_cgi json_proto POST (null) [23:37:06]execute_cgi path=json_proto method=POST [23:37:06]POST find Content-Length [23:37:06]Host: 172.17.96.197:8080 [23:37:06]Content-Length: 804 [23:37:06]Content-Type: application/json [23:37:06] [23:37:06]POST finish read [23:37:06]Found Content-Length = 804 [23:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48778", "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.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:06]execute_script... [23:37: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)48778", "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.30, "quantity" : 7.780, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 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.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:06]POST & json_proto [23:37:06]process_json_proto [23:37:06]json parsed OK: [23:37:06]protocol is kg_v1.0 [23:37:06]action value=close_receipt [23:37:06]process_action close_receipt [23:37:06]cmd_close_receipt [23:37:06]MH_GetDate [23:37:06]Write to MH i2c: F0 00 00 9A 09 92 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: F0 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: F0 09 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: F0 09 00 9A 09 00 A3 68 1C 66 E0 85 7F 64 70 [23:37:06]GetLastDocTimeStamp 1713137506 [23:37:06]current date 1713137827 [23:37:06]FM_GetShiftState [23:37:06]SAM_PROTO_GetShiftState [23:37:06]wFMCommunicate request_size=4 [23:37:06]MH_SAM_APDU [23:37:06]CAPDU: 80 13 01 00 [23:37:06]Write to MH i2c: E2 08 00 9B 09 80 13 01 00 00 00 00 00 21 [23:37:06]Write i2c OK [23:37:06]MH_I2C_Read... [23:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:06]Read from MH i2c: E2 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0E 00 [23:37:06]MH_I2C_Read... [23:37:06]Read from MH i2c: E2 0E 00 9B 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 B9 [23:37:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:37:06]wFMCommunicate OK [23:37:06]SAM_PROTO_GetShiftState done [23:37:06]FM_GetShiftState done [23:37:06]opened in 1713054696 [23:37:06]opened+sec_in_day 1713141096 [23:37:06]quantity*price = 50025 [23:37:06]sum+1 = 50026 [23:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.25 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.25 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 391 14.04.2024 23:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112492 ФПД: 155167246899625 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233707&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112492&fm=155167246899625&tin=02508201610067®Number=0000000000094237&sum=50025 [23:37:07]StoreToDocumentArchive [23:37:07]shift 357 fd 112492 [23:37:07]save to /storage/0357/doc_00112492 [23:37:07]save last doc name /storage/0357/doc_00112492 to /storage/kkm_last_doc_name [23:37:07]save OK [23:37:07]Clear old archive folders... [23:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:07]tlvbuf is 01A0B670 [23:37:07]SAM_PROTO_ClearQueue [23:37:07]wFMCommunicate request_size=4 [23:37:07]MH_SAM_APDU [23:37:07]CAPDU: 80 09 00 00 [23:37:07]Write to MH i2c: E2 08 00 A8 09 80 09 00 00 00 00 00 00 23 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:07]Read from MH i2c: E2 03 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 A8 09 00 90 00 25 [23:37:07]RAPDU: 90 00 [23:37:07]wFMCommunicate OK [23:37:07]SAM_PROTO_ClearQueue done [23:37:07]KKMCreateOFDPacket [23:37:07]OFDProtocolAddRootSTLVToBuf [23:37:07]FM_MakeSignedData [23:37:07]FM_MakeSignedData [23:37:07]SAM_PROTO_SignData [23:37:07]wFMCommunicate request_size=4 [23:37:07]MH_SAM_APDU [23:37:07]CAPDU: 80 0D 01 02 [23:37:07]Write to MH i2c: E2 08 00 A9 09 80 0D 01 02 00 00 00 00 2B [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 A9 09 00 90 00 26 [23:37:07]RAPDU: 90 00 [23:37:07]wFMCommunicate OK [23:37:07]wFMCommunicate request_size=255 [23:37:07]MH_SAM_APDU [23:37: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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A3 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B7 01 00 35 04 06 00 8D [23:37:07]Write to MH i2c: E2 02 01 AA 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A3 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B7 01 00 35 04 06 00 8D 00 00 2C [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 AA 09 00 90 00 27 [23:37:07]RAPDU: 90 00 [23:37:07]wFMCommunicate OK [23:37:07]wFMCommunicate request_size=10 [23:37:07]MH_SAM_APDU [23:37:07]CAPDU: 80 0D 02 02 05 1F B0 A1 D9 A9 [23:37:07]Write to MH i2c: E2 0D 00 AB 09 80 0D 02 02 05 00 1F B0 A1 D9 A9 00 00 2A [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 03 00 AB 09 00 90 00 28 [23:37:07]RAPDU: 90 00 [23:37:07]wFMCommunicate OK [23:37:07]wFMCommunicate request_size=4 [23:37:07]MH_SAM_APDU [23:37:07]CAPDU: 80 0D 03 02 [23:37:07]Write to MH i2c: E2 08 00 AC 09 80 0D 03 02 00 00 00 00 30 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 0B 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 0B 00 AC 09 00 32 22 D3 79 3E F9 D0 5E 90 00 36 [23:37:07]RAPDU: 32 22 D3 79 3E F9 D0 5E 90 00 [23:37:07]wFMCommunicate OK [23:37:07]SAM_PROTO_SignData done [23:37:07]FM_MakeSignedData done [23:37:07]CreateOFDProtocolMessage [23:37:07]wFMCommunicate request_size=4 [23:37:07]MH_SAM_APDU [23:37:07]CAPDU: 80 11 00 00 [23:37:07]Write to MH i2c: E2 08 00 AD 09 80 11 00 00 00 00 00 00 30 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:07]Read from MH i2c: E2 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 17 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: E2 17 00 AD 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 81 [23:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:37:07]wFMCommunicate OK [23:37:07]CreateOFDProtocolMessage done [23:37:07]OFDSenderStorePacket 112492 [23:37:07]StoreOFDPacket docnum=112492 [23:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EA 53 07 01 1F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A3 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B7 01 00 35 04 06 00 8D 1F B0 A1 D9 A9 32 22 D3 79 3E F9 D0 5E [23:37:07]CheckFolder [23:37:07]dirname=/storage/ofd_packets [23:37:07]CheckFolder done [23:37:07]ProducePacketName [23:37:07]name=ofd_packets/00112492 [23:37:07]NVStorageSaveData ofd_packets/00112492 [23:37:07]File name is /storage/ofd_packets/00112492 [23:37:07]Write 301 bytes [23:37:07]NVStorageSaveData done [23:37:07]OFDSenderStorePacket done [23:37:07]KKMCreateOFDPacket done [23:37:07]NVStorageSaveData kkm_last_timestamp [23:37:07]File name is /storage/kkm_last_timestamp [23:37:07]Write 4 bytes [23:37:07]NVStorageSaveData done [23:37:07]ExternCall_PrintAddStr [23:37:07]wPrintStart [23:37:07]Write to MH i2c: 01 00 00 AE 09 B7 [23:37:07]Write i2c OK [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 07 00 [23:37:07]MH_I2C_Read... [23:37:07]Read from MH i2c: 01 07 00 AE 09 00 00 00 00 00 FF 0F CC [23:37:07]RasterBufferAndPrint [23:37:07]line Счет N : (1)48778 [23:37:07]line ИНН: 02508201610067 [23:37:07]line Контрольно-Кассовый Чек [23:37:07]line ПРОДАЖА [23:37:07]line ТРК (МРК, ГНК) : 42 [23:37:07]line Товар: 2710124130 [23:37:07]line Аи-92-К-5 [23:37:07]line 7.780 * 64.30 [23:37:07]line = 500.25 [23:37:07]line НДС 12% НСП 1% [23:37:07]line > о реализуемом товаре [23:37:07]line ИТОГО: 500.25 [23:37:07]line НСП 1% : 4.43 [23:37:07]line НДС 12% : 53.12 [23:37:07]line Наличными: 0.00 [23:37:07]line Безнал.: 500.25 [23:37:07]line Место: АЗС № 47 "Партнер Нефть" [23:37:07]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:37:07]line СНО: Общий режим [23:37:07]line Чек 391 14.04.2024 23:37 [23:37:07]line Смена: 357 ФФД: 1.0 [23:37:07]line ЗНМ: 0300000138 [23:37:07]line РНМ: 0000000000094237 [23:37:07]line Версия ККМ: 001 [23:37:07]line Платежная система: О! деньги [23:37:07]line ФМ: 0000000000875019 [23:37:07]line ФД: 112492 [23:37:07]line ФПД: 155167246899625 [23:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233707&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112492&fm=155167246899625&tin=02508201610067®Number=0000000000094237&sum=50025 [23:37:08]OFD Sender: Processing packet 112492 [packets to send 71, broken 70] [23:37:08]ProducePacketName [23:37:08]name=ofd_packets/00112492 [23:37:08]OFD Sender: To server: pG, [23:37:08]CommunicateWithHost lk.salyk.kg:30040 [23:37:08]ConnectInit lk.salyk.kg [23:37:08]written 0, free lines is 4095 [23:37:08]Connected sock=10 [23:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EA 53 07 01 1F 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 69 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 A3 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B7 01 00 35 04 06 00 8D 1F B0 A1 D9 A9 32 22 D3 79 3E F9 D0 5E [23:37:08]Write to MH i2c: 01 00 00 D8 09 E1 [23:37:08]Write i2c OK [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: 01 [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: 01 07 00 [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 EA 0C DE [23:37:08]RasterBufferAndPrint [23:37:08]line [23:37:08]line [23:37:08]line [23:37:08]line [23:37:08]line [23:37:08]written 0, free lines is 3315 [23:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 26 C9 47 00 4A 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6C B7 01 00 F4 03 04 00 2D 10 1C 66 B6 04 01 00 00 7A 55 D4 A4 41 57 66 5D [23:37:08]CommunicateWithHost err = 0 [23:37:08]CheckOFDResponse [23:37:08]1017 (14) - 77093643461234 [23:37:08]1041 (16) - 0000000000875019 [23:37:08]1040 (4) - 112492 [23:37:08]1012 (4) - 14.04.2024 17:19 [23:37:08]1206 (1) - 0 [23:37:08]OFD Sender: Remove packet 112492 [23:37:08]ProducePacketName [23:37:08]name=ofd_packets/00112492 [23:37:08]NVStorageDeleteData [23:37:08]MH_Cut [23:37:08]Write to MH i2c: D1 01 00 DF 09 01 BA [23:37:08]Write i2c OK [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: D1 [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: D1 01 00 [23:37:08]MH_I2C_Read... [23:37:08]Read from MH i2c: D1 01 00 DF 09 00 B9 [23:37:08]Write to MH i2c: 01 00 00 E0 09 E9 [23:37:08]Write i2c OK [23:37:08]MH_I2C_Read... [23:37:09]OFD Sender: No OFD packet to send [23:37:09]*** Cut start [23:37:09]*** Partial cut [23:37:09]*** CUTSNS_PIN = 1 [23:37:09]*** CUTSNS_PIN = 0 [23:37:09]*** Brake cut motor [23:37:10]Read from MH i2c: 01 [23:37:10]MH_I2C_Read... [23:37:10]*** Stop cut motor [23:37:10]*** Cut end [23:37:10]Read from MH i2c: 01 07 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: 01 07 00 E0 09 00 00 00 00 00 FF 0F FE [23:37:10]process_action close_receipt done [23:37:10]requested_data is exist [23:37:10]produce_requested_data [23:37:10]requested_item fm.sn is exist - process it [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 11 00 00 [23:37:10]Write to MH i2c: E2 08 00 E1 09 80 11 00 00 00 00 00 00 64 [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 17 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 17 00 E1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B5 [23:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:37:10]wFMCommunicate OK [23:37:10]requested_item fd.num is exist - process it [23:37:10]SAM_PROTO_GetFieldsCounters [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 13 00 00 [23:37:10]Write to MH i2c: E2 08 00 E2 09 80 13 00 00 00 00 00 00 67 [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 62 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 62 00 E2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [23:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6C B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:10]wFMCommunicate OK [23:37:10]SAM_PROTO_GetFieldsCounters done [23:37:10]requested_item shift.num is exist - process it [23:37:10]requested_item shift.opened is exist - process it [23:37:10]req_shift_opened [23:37:10]FM_GetShiftState [23:37:10]SAM_PROTO_GetShiftState [23:37:10]wFMCommunicate request_size=4 [23:37:10]MH_SAM_APDU [23:37:10]CAPDU: 80 13 01 00 [23:37:10]Write to MH i2c: E2 08 00 E3 09 80 13 01 00 00 00 00 00 69 [23:37:10]Write i2c OK [23:37:10]MH_I2C_Read... [23:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:10]Read from MH i2c: E2 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 [23:37:10]MH_I2C_Read... [23:37:10]Read from MH i2c: E2 0E 00 E3 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 01 [23:37:10]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:37:10]wFMCommunicate OK [23:37:10]SAM_PROTO_GetShiftState done [23:37:10]FM_GetShiftState done [23:37:10]req_shift_opened done [23:37:10]requested_item shift.open_date is exist - process it [23:37:10]req_shift_open_date [23:37:10]req_shift_open_date done [23:37:10]produce_requested_data done [23:37:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112492,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:37:10]process_action_free close_receipt [23:37:10]json_value_free [23:37:10]json_value_free done [23:37:10]process_json_proto returns [23:37:10]Send response to host [23:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112492,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:37:10]free response buf [23:37:10]execute_script done [23:37:10]execute_script returns [23:37:10]free content buf [23:37:10]Sock 7.Close socket [23:37:10]Sock 7.Thread stoped [23:37:14]OFD Sender: No OFD packet to send [23:37:19]OFD Sender: No OFD packet to send [23:37:24]OFD Sender: No OFD packet to send [23:37:29]OFD Sender: No OFD packet to send [23:37:34]OFD Sender: No OFD packet to send [23:37:35]accept exits with 9 [23:37:35]New connection [23:37:35]New thread 3067317604 created [23:37:35]Thread 3067174244 joined [23:37:35]Waiting for new connection... [23:37:35] Sock 9.Parse request [23:37:35]Sock 9.Check first char [23:37:35]Sock 9.First char is OK [23:37:35]request: POST /json_proto HTTP/1.0 [23:37:35]Method: POST [23:37:35]URL: /json_proto [23:37:35]Method is POST - this is cgi request [23:37:35]url: /json_proto [23:37:35]query_string will be loaded in cgi processing [23:37:35]execute_cgi json_proto POST (null) [23:37:35]execute_cgi path=json_proto method=POST [23:37:35]POST find Content-Length [23:37:35]Host: 172.17.96.197:8080 [23:37:35]Content-Length: 816 [23:37:35]Content-Type: application/json [23:37:35] [23:37:35]POST finish read [23:37:35]Found Content-Length = 816 [23:37:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48779", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:35]execute_script... [23: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)48779", "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.30, "quantity" : 10.000, "sum" : 643.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" : 643.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:37:35]POST & json_proto [23:37:35]process_json_proto [23:37:35]json parsed OK: [23:37:35]protocol is kg_v1.0 [23:37:35]action value=close_receipt [23:37:35]process_action close_receipt [23:37:35]cmd_close_receipt [23:37:35]MH_GetDate [23:37:35]Write to MH i2c: F0 00 00 E4 09 DC [23:37:35]Write i2c OK [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 09 00 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: F0 09 00 E4 09 00 C1 68 1C 66 E0 85 7F 64 D8 [23:37:35]GetLastDocTimeStamp 1713137827 [23:37:35]current date 1713137857 [23:37:35]FM_GetShiftState [23:37:35]SAM_PROTO_GetShiftState [23:37:35]wFMCommunicate request_size=4 [23:37:35]MH_SAM_APDU [23:37:35]CAPDU: 80 13 01 00 [23:37:35]Write to MH i2c: E2 08 00 E5 09 80 13 01 00 00 00 00 00 6B [23:37:35]Write i2c OK [23:37:35]MH_I2C_Read... [23:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:35]Read from MH i2c: E2 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: E2 0E 00 [23:37:35]MH_I2C_Read... [23:37:35]Read from MH i2c: E2 0E 00 E5 09 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 03 [23:37:35]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:37:35]wFMCommunicate OK [23:37:35]SAM_PROTO_GetShiftState done [23:37:35]FM_GetShiftState done [23:37:35]opened in 1713054696 [23:37:35]opened+sec_in_day 1713141096 [23:37:35]quantity*price = 64300 [23:37:35]sum+1 = 64301 [23:37:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 643.00 НСП 1% : 5.69 НДС 12% : 68.28 Наличными: 0.00 Безнал.: 643.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 392 14.04.2024 23:37 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112493 ФПД: 40928550242536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233737&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112493&fm=40928550242536&tin=02508201610067®Number=0000000000094237&sum=64300 [23:37:36]StoreToDocumentArchive [23:37:36]shift 357 fd 112493 [23:37:36]save to /storage/0357/doc_00112493 [23:37:36]save last doc name /storage/0357/doc_00112493 to /storage/kkm_last_doc_name [23:37:36]save OK [23:37:36]Clear old archive folders... [23:37:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:37:36]tlvbuf is 01A1CEF0 [23:37:36]SAM_PROTO_ClearQueue [23:37:36]wFMCommunicate request_size=4 [23:37:36]MH_SAM_APDU [23:37:36]CAPDU: 80 09 00 00 [23:37:36]Write to MH i2c: E2 08 00 F2 09 80 09 00 00 00 00 00 00 6D [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 F2 09 00 90 00 6F [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]SAM_PROTO_ClearQueue done [23:37:37]KKMCreateOFDPacket [23:37:37]OFDProtocolAddRootSTLVToBuf [23:37:37]FM_MakeSignedData [23:37:37]FM_MakeSignedData [23:37:37]SAM_PROTO_SignData [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 01 02 [23:37:37]Write to MH i2c: E2 08 00 F3 09 80 0D 01 02 00 00 00 00 75 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 F3 09 00 90 00 70 [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]wFMCommunicate request_size=255 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B7 01 00 35 04 06 00 25 [23:37:37]Write to MH i2c: E2 02 01 F4 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 10 27 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B7 01 00 35 04 06 00 25 00 00 45 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 F4 09 00 90 00 71 [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]wFMCommunicate request_size=10 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 02 02 05 39 6B B2 C8 E8 [23:37:37]Write to MH i2c: E2 0D 00 F5 09 80 0D 02 02 05 00 39 6B B2 C8 E8 00 00 88 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 03 00 F5 09 00 90 00 72 [23:37:37]RAPDU: 90 00 [23:37:37]wFMCommunicate OK [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 0D 03 02 [23:37:37]Write to MH i2c: E2 08 00 F6 09 80 0D 03 02 00 00 00 00 7A [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0B 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 0B 00 F6 09 00 1A 8B 70 1B FB 6F B8 25 90 00 F2 [23:37:37]RAPDU: 1A 8B 70 1B FB 6F B8 25 90 00 [23:37:37]wFMCommunicate OK [23:37:37]SAM_PROTO_SignData done [23:37:37]FM_MakeSignedData done [23:37:37]CreateOFDProtocolMessage [23:37:37]wFMCommunicate request_size=4 [23:37:37]MH_SAM_APDU [23:37:37]CAPDU: 80 11 00 00 [23:37:37]Write to MH i2c: E2 08 00 F7 09 80 11 00 00 00 00 00 00 7A [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:37]Read from MH i2c: E2 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 17 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: E2 17 00 F7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CB [23:37:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:37:37]wFMCommunicate OK [23:37:37]CreateOFDProtocolMessage done [23:37:37]OFDSenderStorePacket 112493 [23:37:37]StoreOFDPacket docnum=112493 [23:37:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0D D8 07 01 C2 3D 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B7 01 00 35 04 06 00 25 39 6B B2 C8 E8 1A 8B 70 1B FB 6F B8 25 [23:37:37]CheckFolder [23:37:37]dirname=/storage/ofd_packets [23:37:37]CheckFolder done [23:37:37]ProducePacketName [23:37:37]name=ofd_packets/00112493 [23:37:37]NVStorageSaveData ofd_packets/00112493 [23:37:37]File name is /storage/ofd_packets/00112493 [23:37:37]Write 301 bytes [23:37:37]NVStorageSaveData done [23:37:37]OFDSenderStorePacket done [23:37:37]KKMCreateOFDPacket done [23:37:37]NVStorageSaveData kkm_last_timestamp [23:37:37]File name is /storage/kkm_last_timestamp [23:37:37]Write 4 bytes [23:37:37]NVStorageSaveData done [23:37:37]ExternCall_PrintAddStr [23:37:37]wPrintStart [23:37:37]Write to MH i2c: 01 00 00 F8 09 01 [23:37:37]Write i2c OK [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 07 00 [23:37:37]MH_I2C_Read... [23:37:37]Read from MH i2c: 01 07 00 F8 09 00 00 00 00 00 FF 0F 16 [23:37:37]RasterBufferAndPrint [23:37:37]line Счет N : (1)48779 [23:37:37]line ИНН: 02508201610067 [23:37:37]line Контрольно-Кассовый Чек [23:37:37]line ПРОДАЖА [23:37:37]line ТРК (МРК, ГНК) : 32 [23:37:37]line Товар: 2710124130 [23:37:37]line Аи-92-К-5 [23:37:37]line 10.000 * 64.30 [23:37:37]line = 643.00 [23:37:37]line НДС 12% НСП 1% [23:37:37]line > о реализуемом товаре [23:37:37]line ИТОГО: 643.00 [23:37:37]line НСП 1% : 5.69 [23:37:37]line НДС 12% : 68.28 [23:37:37]line Наличными: 0.00 [23:37:37]line Безнал.: 643.00 [23:37:37]line Место: АЗС № 47 "Партнер Нефть" [23:37:37]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:37:37]line СНО: Общий режим [23:37:37]line Чек 392 14.04.2024 23:37 [23:37:37]line Смена: 357 ФФД: 1.0 [23:37:37]line ЗНМ: 0300000138 [23:37:37]line РНМ: 0000000000094237 [23:37:37]line Версия ККМ: 001 [23:37:37]line Платежная система: Бакай Банк [23:37:37]line ФМ: 0000000000875019 [23:37:37]line ФД: 112493 [23:37:37]line ФПД: 40928550242536 [23:37:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T233737&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112493&fm=40928550242536&tin=02508201610067®Number=0000000000094237&sum=64300 [23:37:37]OFD Sender: Processing packet 112493 [packets to send 71, broken 70] [23:37:37]ProducePacketName [23:37:37]name=ofd_packets/00112493 [23:37:37]OFD Sender: To server: pG, [23:37:37]CommunicateWithHost lk.salyk.kg:30040 [23:37:37]ConnectInit lk.salyk.kg [23:37:37]written 0, free lines is 4095 [23:37:37]Connected sock=10 [23:37:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 0D D8 07 01 C2 3D 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 1E 19 00 00 00 00 13 04 06 00 2C FB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C FB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 01 00 00 F4 03 04 00 C1 68 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B7 01 00 35 04 06 00 25 39 6B B2 C8 E8 1A 8B 70 1B FB 6F B8 25 [23:37:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 99 C4 47 00 40 CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6D B7 01 00 F4 03 04 00 4B 10 1C 66 B6 04 01 00 00 F8 34 C9 41 51 6D C4 DE [23:37:38]CommunicateWithHost err = 0 [23:37:38]CheckOFDResponse [23:37:38]1017 (14) - 77093643461234 [23:37:38]1041 (16) - 0000000000875019 [23:37:38]1040 (4) - 112493 [23:37:38]1012 (4) - 14.04.2024 17:20 [23:37:38]1206 (1) - 0 [23:37:38]OFD Sender: Remove packet 112493 [23:37:38]ProducePacketName [23:37:38]name=ofd_packets/00112493 [23:37:38]NVStorageDeleteData [23:37:38]Write to MH i2c: 01 00 00 22 0A 2C [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 07 00 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: 01 07 00 22 0A 00 00 00 00 00 ED 0C 2C [23:37:38]RasterBufferAndPrint [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]line [23:37:38]written 0, free lines is 3317 [23:37:38]MH_Cut [23:37:38]Write to MH i2c: D1 01 00 29 0A 01 05 [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 01 00 [23:37:38]MH_I2C_Read... [23:37:38]Read from MH i2c: D1 01 00 29 0A 00 04 [23:37:38]Write to MH i2c: 01 00 00 2A 0A 34 [23:37:38]Write i2c OK [23:37:38]MH_I2C_Read... [23:37:38]OFD Sender: No OFD packet to send [23:37:39]*** Cut start [23:37:39]*** Partial cut [23:37:39]*** CUTSNS_PIN = 1 [23:37:39]*** CUTSNS_PIN = 0 [23:37:39]*** Brake cut motor [23:37:39]Read from MH i2c: 01 [23:37:39]MH_I2C_Read... [23:37:39]*** Stop cut motor [23:37:39]*** Cut end [23:37:39]Read from MH i2c: 01 07 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: 01 07 00 2A 0A 00 00 00 00 00 FF 0F 49 [23:37:39]process_action close_receipt done [23:37:39]requested_data is exist [23:37:39]produce_requested_data [23:37:39]requested_item fm.sn is exist - process it [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 11 00 00 [23:37:39]Write to MH i2c: E2 08 00 2B 0A 80 11 00 00 00 00 00 00 AF [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:37:39]Read from MH i2c: E2 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 17 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 17 00 2B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 00 [23:37:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:37:39]wFMCommunicate OK [23:37:39]requested_item fd.num is exist - process it [23:37:39]SAM_PROTO_GetFieldsCounters [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 13 00 00 [23:37:39]Write to MH i2c: E2 08 00 2C 0A 80 13 00 00 00 00 00 00 B2 [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:37:39]Read from MH i2c: E2 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 62 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 62 00 2C 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [23:37:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6D B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:37:39]wFMCommunicate OK [23:37:39]SAM_PROTO_GetFieldsCounters done [23:37:39]requested_item shift.num is exist - process it [23:37:39]requested_item shift.opened is exist - process it [23:37:39]req_shift_opened [23:37:39]FM_GetShiftState [23:37:39]SAM_PROTO_GetShiftState [23:37:39]wFMCommunicate request_size=4 [23:37:39]MH_SAM_APDU [23:37:39]CAPDU: 80 13 01 00 [23:37:39]Write to MH i2c: E2 08 00 2D 0A 80 13 01 00 00 00 00 00 B4 [23:37:39]Write i2c OK [23:37:39]MH_I2C_Read... [23:37:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:37:39]Read from MH i2c: E2 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 0E 00 [23:37:39]MH_I2C_Read... [23:37:39]Read from MH i2c: E2 0E 00 2D 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4C [23:37:39]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:37:39]wFMCommunicate OK [23:37:39]SAM_PROTO_GetShiftState done [23:37:39]FM_GetShiftState done [23:37:39]req_shift_opened done [23:37:39]requested_item shift.open_date is exist - process it [23:37:39]req_shift_open_date [23:37:39]req_shift_open_date done [23:37:39]produce_requested_data done [23:37:39]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112493,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:37:39]process_action_free close_receipt [23:37:39]json_value_free [23:37:39]json_value_free done [23:37:39]process_json_proto returns [23:37:39]Send response to host [23:37:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112493,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:37:39]free response buf [23:37:39]execute_script done [23:37:39]execute_script returns [23:37:39]free content buf [23:37:39]Sock 9.Close socket [23:37:39]Sock 9.Thread stoped [23:37:43]OFD Sender: No OFD packet to send [23:37:48]OFD Sender: No OFD packet to send [23:37:53]OFD Sender: No OFD packet to send [23:37:58]OFD Sender: No OFD packet to send [23:38:03]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:58]OFD Sender: No OFD packet to send [23:41:04]OFD Sender: No OFD packet to send [23:41:09]OFD Sender: No OFD packet to send [23:41:14]OFD Sender: No OFD packet to send [23:41:19]OFD Sender: No OFD packet to send [23:41:24]OFD Sender: No OFD packet to send [23:41:29]OFD Sender: No OFD packet to send [23:41:34]OFD Sender: No OFD packet to send [23:41:39]OFD Sender: No OFD packet to send [23:41:44]OFD Sender: No OFD packet to send [23:41:49]OFD Sender: No OFD packet to send [23:41:54]OFD Sender: No OFD packet to send [23:41:59]OFD Sender: No OFD packet to send [23:42:04]OFD Sender: No OFD packet to send [23:42:09]OFD Sender: No OFD packet to send [23:42:14]OFD Sender: No OFD packet to send [23:42:19]OFD Sender: No OFD packet to send [23:42:24]OFD Sender: No OFD packet to send [23:42:29]OFD Sender: No OFD packet to send [23:42:34]OFD Sender: No OFD packet to send [23:42:39]OFD Sender: No OFD packet to send [23:42:44]OFD Sender: No OFD packet to send [23:42:49]OFD Sender: No OFD packet to send [23:42:54]OFD Sender: No OFD packet to send [23:42:59]OFD Sender: No OFD packet to send [23:43:04]OFD Sender: No OFD packet to send [23:43:09]OFD Sender: No OFD packet to send [23:43:14]OFD Sender: No OFD packet to send [23:43:19]OFD Sender: No OFD packet to send [23:43:24]OFD Sender: No OFD packet to send [23:43:29]OFD Sender: No OFD packet to send [23:43:34]OFD Sender: No OFD packet to send [23:43:39]OFD Sender: No OFD packet to send [23:43:44]OFD Sender: No OFD packet to send [23:43:49]OFD Sender: No OFD packet to send [23:43:54]OFD Sender: No OFD packet to send [23:43:59]OFD Sender: No OFD packet to send [23:44:04]OFD Sender: No OFD packet to send [23:44:09]OFD Sender: No OFD packet to send [23:44:14]OFD Sender: No OFD packet to send [23:44:19]OFD Sender: No OFD packet to send [23:44:24]OFD Sender: No OFD packet to send [23:44:29]OFD Sender: No OFD packet to send [23:44:34]OFD Sender: No OFD packet to send [23:44:39]OFD Sender: No OFD packet to send [23:44:44]OFD Sender: No OFD packet to send [23:44:49]OFD Sender: No OFD packet to send [23:44:54]OFD Sender: No OFD packet to send [23:44:59]OFD Sender: No OFD packet to send [23:45:04]OFD Sender: No OFD packet to send [23:45:09]OFD Sender: No OFD packet to send [23:45:14]OFD Sender: No OFD packet to send [23:45:19]OFD Sender: No OFD packet to send [23:45:24]OFD Sender: No OFD packet to send [23:45:29]OFD Sender: No OFD packet to send [23:45:34]OFD Sender: No OFD packet to send [23:45:39]OFD Sender: No OFD packet to send [23:45:44]OFD Sender: No OFD packet to send [23:45:49]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:15]accept exits with 7 [23:52:15]New connection [23:52:15]New thread 3067174244 created [23:52:15]Thread 3067317604 joined [23:52:15]Waiting for new connection... [23:52:15] Sock 7.Parse request [23:52:15]Sock 7.Check first char [23:52:15]Sock 7.First char is OK [23:52:15]request: POST /json_proto HTTP/1.0 [23:52:15]Method: POST [23:52:15]URL: /json_proto [23:52:15]Method is POST - this is cgi request [23:52:15]url: /json_proto [23:52:15]query_string will be loaded in cgi processing [23:52:15]execute_cgi json_proto POST (null) [23:52:15]execute_cgi path=json_proto method=POST [23:52:15]POST find Content-Length [23:52:15]Host: 172.17.96.197:8080 [23:52:15]Content-Length: 608 [23:52:15]Content-Type: application/json [23:52:15] [23:52:15]POST finish read [23:52:15]Found Content-Length = 608 [23:52:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10460", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:15]execute_script... [23:52:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10460", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:15]POST & json_proto [23:52:15]process_json_proto [23:52:15]json parsed OK: [23:52:15]protocol is kg_v1.0 [23:52:15]action value=close_receipt [23:52:15]process_action close_receipt [23:52:15]cmd_close_receipt [23:52:15]MH_GetDate [23:52:15]Write to MH i2c: F0 00 00 2E 0A 27 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: F0 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: F0 09 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: F0 09 00 2E 0A 00 30 6C 1C 66 E0 85 7F 64 96 [23:52:15]GetLastDocTimeStamp 1713137857 [23:52:15]current date 1713138736 [23:52:15]FM_GetShiftState [23:52:15]SAM_PROTO_GetShiftState [23:52:15]wFMCommunicate request_size=4 [23:52:15]MH_SAM_APDU [23:52:15]CAPDU: 80 13 01 00 [23:52:15]Write to MH i2c: E2 08 00 2F 0A 80 13 01 00 00 00 00 00 B6 [23:52:15]Write i2c OK [23:52:15]MH_I2C_Read... [23:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:15]Read from MH i2c: E2 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 0E 00 [23:52:15]MH_I2C_Read... [23:52:15]Read from MH i2c: E2 0E 00 2F 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 4E [23:52:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:52:15]wFMCommunicate OK [23:52:15]SAM_PROTO_GetShiftState done [23:52:15]FM_GetShiftState done [23:52:15]opened in 1713054696 [23:52:15]opened+sec_in_day 1713141096 [23:52:15]quantity*price = 12500 [23:52:15]sum+1 = 12501 [23:52:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 393 14.04.2024 23:52 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112494 ФПД: 216037813996779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T235216&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112494&fm=216037813996779&tin=02508201610067®Number=0000000000094237&sum=12500 0 [23:52:16]StoreToDocumentArchive [23:52:16]shift 357 fd 112494 [23:52:16]save to /storage/0357/doc_00112494 [23:52:16]save last doc name /storage/0357/doc_00112494 to /storage/kkm_last_doc_name [23:52:16]save OK [23:52:16]Clear old archive folders... [23:52:16]ProcessDocumentItem done err = 0, tmpTLVsize=261 [23:52:16]tlvbuf is 019B50C0 [23:52:16]SAM_PROTO_ClearQueue [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 09 00 00 [23:52:16]Write to MH i2c: E2 08 00 3C 0A 80 09 00 00 00 00 00 00 B8 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:52:16]Read from MH i2c: E2 03 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 3C 0A 00 90 00 BA [23:52:16]RAPDU: 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_ClearQueue done [23:52:16]KKMCreateOFDPacket [23:52:16]OFDProtocolAddRootSTLVToBuf [23:52:16]FM_MakeSignedData [23:52:16]FM_MakeSignedData [23:52:16]SAM_PROTO_SignData [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 0D 01 02 [23:52:16]Write to MH i2c: E2 08 00 3D 0A 80 0D 01 02 00 00 00 00 C0 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 3D 0A 00 90 00 BB [23:52:16]RAPDU: 90 00 [23:52:16]wFMCommunicate OK [23:52:16]wFMCommunicate request_size=255 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 0D 02 02 FA 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 30 6C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 [23:52:16]Write to MH i2c: E2 02 01 3E 0A 80 0D 02 02 FA 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 30 6C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 00 63 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 3E 0A 00 90 00 BC [23:52:16]RAPDU: 90 00 [23:52:16]wFMCommunicate OK [23:52:16]wFMCommunicate request_size=20 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 0D 02 02 0F 00 6E B7 01 00 35 04 06 00 C4 7C 39 29 4C EB [23:52:16]Write to MH i2c: E2 17 00 3F 0A 80 0D 02 02 0F 00 00 6E B7 01 00 35 04 06 00 C4 7C 39 29 4C EB 00 00 1F [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 03 00 3F 0A 00 90 00 BD [23:52:16]RAPDU: 90 00 [23:52:16]wFMCommunicate OK [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 0D 03 02 [23:52:16]Write to MH i2c: E2 08 00 40 0A 80 0D 03 02 00 00 00 00 C5 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0B 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 0B 00 40 0A 00 3F B6 D0 B5 20 EF A5 7E 90 00 72 [23:52:16]RAPDU: 3F B6 D0 B5 20 EF A5 7E 90 00 [23:52:16]wFMCommunicate OK [23:52:16]SAM_PROTO_SignData done [23:52:16]FM_MakeSignedData done [23:52:16]CreateOFDProtocolMessage [23:52:16]wFMCommunicate request_size=4 [23:52:16]MH_SAM_APDU [23:52:16]CAPDU: 80 11 00 00 [23:52:16]Write to MH i2c: E2 08 00 41 0A 80 11 00 00 00 00 00 00 C5 [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:16]Read from MH i2c: E2 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: E2 17 00 41 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 16 [23:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:52:16]wFMCommunicate OK [23:52:16]CreateOFDProtocolMessage done [23:52:16]OFDSenderStorePacket 112494 [23:52:16]StoreOFDPacket docnum=112494 [23:52:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 19 01 00 00 6B 94 11 01 2B 3C 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 30 6C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B7 01 00 35 04 06 00 C4 7C 39 29 4C EB 3F B6 D0 B5 20 EF A5 7E [23:52:16]CheckFolder [23:52:16]dirname=/storage/ofd_packets [23:52:16]CheckFolder done [23:52:16]ProducePacketName [23:52:16]name=ofd_packets/00112494 [23:52:16]NVStorageSaveData ofd_packets/00112494 [23:52:16]File name is /storage/ofd_packets/00112494 [23:52:16]Write 311 bytes [23:52:16]NVStorageSaveData done [23:52:16]OFDSenderStorePacket done [23:52:16]KKMCreateOFDPacket done [23:52:16]NVStorageSaveData kkm_last_timestamp [23:52:16]File name is /storage/kkm_last_timestamp [23:52:16]Write 4 bytes [23:52:16]NVStorageSaveData done [23:52:16]ExternCall_PrintAddStr [23:52:16]wPrintStart [23:52:16]Write to MH i2c: 01 00 00 42 0A 4C [23:52:16]Write i2c OK [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 [23:52:16]MH_I2C_Read... [23:52:16]Read from MH i2c: 01 07 00 42 0A 00 00 00 00 00 FF 0F 61 [23:52:16]RasterBufferAndPrint [23:52:16]line Счет N : (3)10460 [23:52:16]line ИНН: 02508201610067 [23:52:16]line Контрольно-Кассовый Чек [23:52:16]line ПРОДАЖА [23:52:16]line Товар: 48741156 [23:52:16]line Сигареты LD Blue [23:52:16]line 1.000 * 125.00 [23:52:16]line = 125.00 [23:52:16]line НДС 12% НСП 1% [23:52:16]line > о реализуемом товаре [23:52:16]line ИТОГО: 125.00 [23:52:16]line НСП 1% : 1.11 [23:52:16]line НДС 12% : 13.27 [23:52:16]line Наличными: 125.00 [23:52:16]line Безнал.: 0.00 [23:52:16]line Место: АЗС № 47 "Партнер Нефть" [23:52:16]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [23:52:16]line СНО: Общий режим [23:52:16]line Чек 393 14.04.2024 23:52 [23:52:16]line Смена: 357 ФФД: 1.0 [23:52:16]line ЗНМ: 0300000138 [23:52:16]line РНМ: 0000000000094237 [23:52:16]line Версия ККМ: 001 [23:52:16]line ФМ: 0000000000875019 [23:52:16]line ФД: 112494 [23:52:16]line ФПД: 216037813996779 [23:52:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240414T235216&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112494&fm=216037813996779&tin=02508201610067®Number=0000000000094237&sum=12500 [23:52:16]line 0 [23:52:17]written 0, free lines is 4095 [23:52:17]OFD Sender: Processing packet 112494 [packets to send 71, broken 70] [23:52:17]ProducePacketName [23:52:17]name=ofd_packets/00112494 [23:52:17]OFD Sender: To server: pG, [23:52:17]CommunicateWithHost lk.salyk.kg:30040 [23:52:17]ConnectInit lk.salyk.kg [23:52:17]Connected sock=10 [23:52:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 19 01 00 00 6B 94 11 01 2B 3C 5A 03 01 00 03 00 05 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 30 6C 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B7 01 00 35 04 06 00 C4 7C 39 29 4C EB 3F B6 D0 B5 20 EF A5 7E [23:52:17]Write to MH i2c: 01 00 00 6A 0A 74 [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: 01 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: 01 07 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: 01 07 00 6A 0A 00 00 00 00 00 0F 0D 97 [23:52:17]RasterBufferAndPrint [23:52:17]line [23:52:17]line [23:52:17]line [23:52:17]line [23:52:17]line [23:52:17]written 0, free lines is 3349 [23:52:17]MH_Cut [23:52:17]Write to MH i2c: D1 01 00 71 0A 01 4D [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: D1 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: D1 01 00 [23:52:17]MH_I2C_Read... [23:52:17]Read from MH i2c: D1 01 00 71 0A 00 4C [23:52:17]Write to MH i2c: 01 00 00 72 0A 7C [23:52:17]Write i2c OK [23:52:17]MH_I2C_Read... [23:52:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F1 87 47 00 E2 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6E B7 01 00 F4 03 04 00 BA 13 1C 66 B6 04 01 00 00 A0 D4 0E 39 85 15 DB 7B [23:52:17]CommunicateWithHost err = 0 [23:52:17]CheckOFDResponse [23:52:17]1017 (14) - 77093643461234 [23:52:17]1041 (16) - 0000000000875019 [23:52:17]1040 (4) - 112494 [23:52:17]1012 (4) - 14.04.2024 17:34 [23:52:17]1206 (1) - 0 [23:52:17]OFD Sender: Remove packet 112494 [23:52:17]ProducePacketName [23:52:17]name=ofd_packets/00112494 [23:52:17]NVStorageDeleteData [23:52:18]OFD Sender: No OFD packet to send [23:52:18]*** Cut start [23:52:18]*** Partial cut [23:52:18]*** CUTSNS_PIN = 1 [23:52:18]*** CUTSNS_PIN = 0 [23:52:18]*** Brake cut motor [23:52:18]Read from MH i2c: 01 [23:52:18]MH_I2C_Read... [23:52:18]*** Stop cut motor [23:52:18]*** Cut end [23:52:18]Read from MH i2c: 01 07 00 [23:52:18]MH_I2C_Read... [23:52:18]Read from MH i2c: 01 07 00 72 0A 00 00 00 00 00 FF 0F 91 [23:52:18]process_action close_receipt done [23:52:18]requested_data is exist [23:52:18]produce_requested_data [23:52:18]requested_item fm.sn is exist - process it [23:52:18]wFMCommunicate request_size=4 [23:52:18]MH_SAM_APDU [23:52:18]CAPDU: 80 11 00 00 [23:52:18]Write to MH i2c: E2 08 00 73 0A 80 11 00 00 00 00 00 00 F7 [23:52:18]Write i2c OK [23:52:18]MH_I2C_Read... [23:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:19]Read from MH i2c: E2 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 17 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 17 00 73 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 48 [23:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [23:52:19]wFMCommunicate OK [23:52:19]requested_item fd.num is exist - process it [23:52:19]SAM_PROTO_GetFieldsCounters [23:52:19]wFMCommunicate request_size=4 [23:52:19]MH_SAM_APDU [23:52:19]CAPDU: 80 13 00 00 [23:52:19]Write to MH i2c: E2 08 00 74 0A 80 13 00 00 00 00 00 00 FA [23:52:19]Write i2c OK [23:52:19]MH_I2C_Read... [23:52:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:19]Read from MH i2c: E2 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 62 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 62 00 74 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [23:52:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6E B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:19]wFMCommunicate OK [23:52:19]SAM_PROTO_GetFieldsCounters done [23:52:19]requested_item shift.num is exist - process it [23:52:19]requested_item shift.opened is exist - process it [23:52:19]req_shift_opened [23:52:19]FM_GetShiftState [23:52:19]SAM_PROTO_GetShiftState [23:52:19]wFMCommunicate request_size=4 [23:52:19]MH_SAM_APDU [23:52:19]CAPDU: 80 13 01 00 [23:52:19]Write to MH i2c: E2 08 00 75 0A 80 13 01 00 00 00 00 00 FC [23:52:19]Write i2c OK [23:52:19]MH_I2C_Read... [23:52:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:19]Read from MH i2c: E2 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 0E 00 [23:52:19]MH_I2C_Read... [23:52:19]Read from MH i2c: E2 0E 00 75 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 94 [23:52:19]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [23:52:19]wFMCommunicate OK [23:52:19]SAM_PROTO_GetShiftState done [23:52:19]FM_GetShiftState done [23:52:19]req_shift_opened done [23:52:19]requested_item shift.open_date is exist - process it [23:52:19]req_shift_open_date [23:52:19]req_shift_open_date done [23:52:19]produce_requested_data done [23:52:19]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112494,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [23:52:19]process_action_free close_receipt [23:52:19]json_value_free [23:52:19]json_value_free done [23:52:19]process_json_proto returns [23:52:19]Send response to host [23:52:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112494,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [23:52:19]free response buf [23:52:19]execute_script done [23:52:19]execute_script returns [23:52:19]free content buf [23:52:19]Sock 7.Close socket [23:52:19]Sock 7.Thread stoped [23:52:23]OFD Sender: No OFD packet to send [23:52:28]OFD Sender: No OFD packet to send [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:11]accept exits with 9 [00:00:11]New connection [00:00:11]New thread 3067317604 created [00:00:11]Thread 3067174244 joined [00:00:11]Waiting for new connection... [00:00:11] Sock 9.Parse request [00:00:11]Sock 9.Check first char [00:00:11]Sock 9.First char is OK [00:00:11]request: POST /json_proto HTTP/1.0 [00:00:11]Method: POST [00:00:11]URL: /json_proto [00:00:11]Method is POST - this is cgi request [00:00:11]url: /json_proto [00:00:11]query_string will be loaded in cgi processing [00:00:11]execute_cgi json_proto POST (null) [00:00:11]execute_cgi path=json_proto method=POST [00:00:11]POST find Content-Length [00:00:11]Host: 172.17.96.197:8080 [00:00:11]Content-Length: 676 [00:00:11]Content-Type: application/json [00:00:11] [00:00:11]POST finish read [00:00:11]Found Content-Length = 676 [00:00:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48780", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [00:00:11]execute_script... [00:00: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)48780", "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.30, "quantity" : 7.780, "sum" : 500.25, "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" ] } } [00:00:11]POST & json_proto [00:00:11]process_json_proto [00:00:11]json parsed OK: [00:00:11]protocol is kg_v1.0 [00:00:11]action value=close_receipt [00:00:11]process_action close_receipt [00:00:11]cmd_close_receipt [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 76 0A 6F [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 76 0A 00 0C 6E 1C 66 E0 85 7F 64 BC [00:00:11]GetLastDocTimeStamp 1713138736 [00:00:11]current date 1713139212 [00:00:11]FM_GetShiftState [00:00:11]SAM_PROTO_GetShiftState [00:00:11]wFMCommunicate request_size=4 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 13 01 00 [00:00:11]Write to MH i2c: E2 08 00 77 0A 80 13 01 00 00 00 00 00 FE [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 0E 00 77 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 96 [00:00:11]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:00:11]wFMCommunicate OK [00:00:11]SAM_PROTO_GetShiftState done [00:00:11]FM_GetShiftState done [00:00:11]opened in 1713054696 [00:00:11]opened+sec_in_day 1713141096 [00:00:11]quantity*price = 50025 [00:00:11]sum+1 = 50026 [00:00:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 394 15.04.2024 00:00 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112495 ФПД: 76563555458645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000012&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112495&fm=76563555458645&tin=02508201610067®Number=0000000000094237&sum=50000 [00:00:12]StoreToDocumentArchive [00:00:12]shift 357 fd 112495 [00:00:12]save to /storage/0357/doc_00112495 [00:00:12]save last doc name /storage/0357/doc_00112495 to /storage/kkm_last_doc_name [00:00:12]save OK [00:00:12]Clear old archive folders... [00:00:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:00:12]tlvbuf is 01A0BD20 [00:00:12]SAM_PROTO_ClearQueue [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 09 00 00 [00:00:12]Write to MH i2c: E2 08 00 84 0A 80 09 00 00 00 00 00 00 00 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 84 0A 00 90 00 02 [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]SAM_PROTO_ClearQueue done [00:00:12]KKMCreateOFDPacket [00:00:12]OFDProtocolAddRootSTLVToBuf [00:00:12]FM_MakeSignedData [00:00:12]FM_MakeSignedData [00:00:12]SAM_PROTO_SignData [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 0D 01 02 [00:00:12]Write to MH i2c: E2 08 00 85 0A 80 0D 01 02 00 00 00 00 08 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 85 0A 00 90 00 03 [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=255 [00:00:12]MH_SAM_APDU [00:00: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8A 01 00 00 F4 03 04 00 0C 6E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B7 01 00 35 04 06 00 45 [00:00:12]Write to MH i2c: E2 02 01 86 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8A 01 00 00 F4 03 04 00 0C 6E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B7 01 00 35 04 06 00 45 00 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 86 0A 00 90 00 04 [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=10 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 0D 02 02 05 A2 57 86 9E 55 [00:00:12]Write to MH i2c: E2 0D 00 87 0A 80 0D 02 02 05 00 A2 57 86 9E 55 00 00 87 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 87 0A 00 90 00 05 [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 0D 03 02 [00:00:12]Write to MH i2c: E2 08 00 88 0A 80 0D 03 02 00 00 00 00 0D [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 0B 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 0B 00 88 0A 00 3A 69 FA E3 BF 28 57 0B 90 00 D7 [00:00:12]RAPDU: 3A 69 FA E3 BF 28 57 0B 90 00 [00:00:12]wFMCommunicate OK [00:00:12]SAM_PROTO_SignData done [00:00:12]FM_MakeSignedData done [00:00:12]CreateOFDProtocolMessage [00:00:12]wFMCommunicate request_size=4 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 11 00 00 [00:00:12]Write to MH i2c: E2 08 00 89 0A 80 11 00 00 00 00 00 00 0D [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 17 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 17 00 89 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5E [00:00:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:00:12]wFMCommunicate OK [00:00:12]CreateOFDProtocolMessage done [00:00:12]OFDSenderStorePacket 112495 [00:00:12]StoreOFDPacket docnum=112495 [00:00:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AA BF 07 01 8F 57 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8A 01 00 00 F4 03 04 00 0C 6E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B7 01 00 35 04 06 00 45 A2 57 86 9E 55 3A 69 FA E3 BF 28 57 0B [00:00:12]CheckFolder [00:00:12]dirname=/storage/ofd_packets [00:00:12]CheckFolder done [00:00:12]ProducePacketName [00:00:12]name=ofd_packets/00112495 [00:00:12]NVStorageSaveData ofd_packets/00112495 [00:00:12]File name is /storage/ofd_packets/00112495 [00:00:12]Write 301 bytes [00:00:12]NVStorageSaveData done [00:00:12]OFDSenderStorePacket done [00:00:12]KKMCreateOFDPacket done [00:00:12]NVStorageSaveData kkm_last_timestamp [00:00:12]File name is /storage/kkm_last_timestamp [00:00:12]Write 4 bytes [00:00:12]NVStorageSaveData done [00:00:12]ExternCall_PrintAddStr [00:00:12]wPrintStart [00:00:12]Write to MH i2c: 01 00 00 8A 0A 94 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 FF 0F A9 [00:00:12]RasterBufferAndPrint [00:00:12]line Счет N : (1)48780 [00:00:12]line ИНН: 02508201610067 [00:00:12]line Контрольно-Кассовый Чек [00:00:12]line ПРОДАЖА [00:00:12]line ТРК (МРК, ГНК) : 42 [00:00:12]line Товар: 2710124130 [00:00:12]line Аи-92-К-5 [00:00:12]line 7.780 * 64.30 [00:00:12]line = 500.25 [00:00:12]line НДС 12% НСП 1% [00:00:12]line > о реализуемом товаре [00:00:12]line ОКРУГЛЕНИЕ: -0.25 [00:00:12]line ИТОГО: 500.00 [00:00:12]line Внесено: 500.00 [00:00:12]line СДАЧА: 0.00 [00:00:12]line НСП 1% : 4.43 [00:00:12]line НДС 12% : 53.12 [00:00:12]line Наличными: 500.00 [00:00:12]line Безнал.: 0.00 [00:00:12]line Место: АЗС № 47 "Партнер Нефть" [00:00:12]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:00:12]line СНО: Общий режим [00:00:12]line Чек 394 15.04.2024 00:00 [00:00:12]line Смена: 357 ФФД: 1.0 [00:00:12]line ЗНМ: 0300000138 [00:00:12]line РНМ: 0000000000094237 [00:00:12]line Версия ККМ: 001 [00:00:12]line ФМ: 0000000000875019 [00:00:12]line ФД: 112495 [00:00:12]line ФПД: 76563555458645 [00:00:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000012&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112495&fm=76563555458645&tin=02508201610067®Number=0000000000094237&sum=50000 [00:00:13]written 0, free lines is 4095 [00:00:13]OFD Sender: Processing packet 112495 [packets to send 71, broken 70] [00:00:13]ProducePacketName [00:00:13]name=ofd_packets/00112495 [00:00:13]OFD Sender: To server: pG, [00:00:13]CommunicateWithHost lk.salyk.kg:30040 [00:00:13]ConnectInit lk.salyk.kg [00:00:13]Connected sock=10 [00:00:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 AA BF 07 01 8F 57 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 64 1E 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 69 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 8A 01 00 00 F4 03 04 00 0C 6E 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B7 01 00 35 04 06 00 45 A2 57 86 9E 55 3A 69 FA E3 BF 28 57 0B [00:00:13]Write to MH i2c: 01 00 00 B5 0A BF [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 07 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: 01 07 00 B5 0A 00 00 00 00 00 E0 0C B2 [00:00:13]RasterBufferAndPrint [00:00:13]line [00:00:13]line [00:00:13]line [00:00:13]line [00:00:13]line [00:00:13]written 0, free lines is 3302 [00:00:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 A7 0F 47 00 1E BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 6F B7 01 00 F4 03 04 00 96 15 1C 66 B6 04 01 00 00 15 B7 2F FB 5F 09 11 4C [00:00:13]CommunicateWithHost err = 0 [00:00:13]CheckOFDResponse [00:00:13]1017 (14) - 77093643461234 [00:00:13]1041 (16) - 0000000000875019 [00:00:13]1040 (4) - 112495 [00:00:13]1012 (4) - 14.04.2024 17:42 [00:00:13]1206 (1) - 0 [00:00:13]OFD Sender: Remove packet 112495 [00:00:13]ProducePacketName [00:00:13]name=ofd_packets/00112495 [00:00:13]NVStorageDeleteData [00:00:13]MH_Cut [00:00:13]Write to MH i2c: D1 01 00 BC 0A 01 98 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: D1 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: D1 01 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: D1 01 00 BC 0A 00 97 [00:00:13]Write to MH i2c: 01 00 00 BD 0A C7 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:14]OFD Sender: No OFD packet to send [00:00:14]*** Cut start [00:00:14]*** Partial cut [00:00:14]*** CUTSNS_PIN = 1 [00:00:14]*** CUTSNS_PIN = 0 [00:00:14]*** Brake cut motor [00:00:15]Read from MH i2c: 01 [00:00:15]MH_I2C_Read... [00:00:15]*** Stop cut motor [00:00:15]*** Cut end [00:00:15]Read from MH i2c: 01 07 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: 01 07 00 BD 0A 00 00 00 00 00 FF 0F DC [00:00:15]process_action close_receipt done [00:00:15]requested_data is exist [00:00:15]produce_requested_data [00:00:15]requested_item fm.sn is exist - process it [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 11 00 00 [00:00:15]Write to MH i2c: E2 08 00 BE 0A 80 11 00 00 00 00 00 00 42 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 17 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 17 00 BE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [00:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:00:15]wFMCommunicate OK [00:00:15]requested_item fd.num is exist - process it [00:00:15]SAM_PROTO_GetFieldsCounters [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 13 00 00 [00:00:15]Write to MH i2c: E2 08 00 BF 0A 80 13 00 00 00 00 00 00 45 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 62 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 62 00 BF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [00:00:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 6F B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]SAM_PROTO_GetFieldsCounters done [00:00:15]requested_item shift.num is exist - process it [00:00:15]requested_item shift.opened is exist - process it [00:00:15]req_shift_opened [00:00:15]FM_GetShiftState [00:00:15]SAM_PROTO_GetShiftState [00:00:15]wFMCommunicate request_size=4 [00:00:15]MH_SAM_APDU [00:00:15]CAPDU: 80 13 01 00 [00:00:15]Write to MH i2c: E2 08 00 C0 0A 80 13 01 00 00 00 00 00 47 [00:00:15]Write i2c OK [00:00:15]MH_I2C_Read... [00:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:15]Read from MH i2c: E2 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 0E 00 [00:00:15]MH_I2C_Read... [00:00:15]Read from MH i2c: E2 0E 00 C0 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 DF [00:00:15]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:00:15]wFMCommunicate OK [00:00:15]SAM_PROTO_GetShiftState done [00:00:15]FM_GetShiftState done [00:00:15]req_shift_opened done [00:00:15]requested_item shift.open_date is exist - process it [00:00:15]req_shift_open_date [00:00:15]req_shift_open_date done [00:00:15]produce_requested_data done [00:00:15]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112495,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:00:15]process_action_free close_receipt [00:00:15]json_value_free [00:00:15]json_value_free done [00:00:15]process_json_proto returns [00:00:15]Send response to host [00:00:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112495,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:00:15]free response buf [00:00:15]execute_script done [00:00:15]execute_script returns [00:00:15]free content buf [00:00:15]Sock 9.Close socket [00:00:15]Sock 9.Thread stoped [00:00:19]OFD Sender: No OFD packet to send [00:00:24]OFD Sender: No OFD packet to send [00:00:29]OFD Sender: No OFD packet to send [00:00:34]OFD Sender: No OFD packet to send [00:00:39]OFD Sender: No OFD packet to send [00:00:44]OFD Sender: No OFD packet to send [00:00:49]OFD Sender: No OFD packet to send [00:00:54]OFD Sender: No OFD packet to send [00:00:59]OFD Sender: No OFD packet to send [00:01:04]OFD Sender: No OFD packet to send [00:01:09]OFD Sender: No OFD packet to send [00:01:14]OFD Sender: No OFD packet to send [00:01:19]OFD Sender: No OFD packet to send [00:01:24]OFD Sender: No OFD packet to send [00:01:29]OFD Sender: No OFD packet to send [00:01:34]OFD Sender: No OFD packet to send [00:01:39]OFD Sender: No OFD packet to send [00:01:44]OFD Sender: No OFD packet to send [00:01:49]OFD Sender: No OFD packet to send [00:01:54]OFD Sender: No OFD packet to send [00:01:59]OFD Sender: No OFD packet to send [00:02:04]OFD Sender: No OFD packet to send [00:02:09]OFD Sender: No OFD packet to send [00:02:14]OFD Sender: No OFD packet to send [00:02:19]OFD Sender: No OFD packet to send [00:02:24]OFD Sender: No OFD packet to send [00:02:29]OFD Sender: No OFD packet to send [00:02:34]OFD Sender: No OFD packet to send [00:02:39]OFD Sender: No OFD packet to send [00:02:44]OFD Sender: No OFD packet to send [00:02:49]OFD Sender: No OFD packet to send [00:02:54]OFD Sender: No OFD packet to send [00:02:59]OFD Sender: No OFD packet to send [00:03:04]OFD Sender: No OFD packet to send [00:03:09]OFD Sender: No OFD packet to send [00:03:14]OFD Sender: No OFD packet to send [00:03:19]OFD Sender: No OFD packet to send [00:03:24]OFD Sender: No OFD packet to send [00:03:29]OFD Sender: No OFD packet to send [00:03:34]OFD Sender: No OFD packet to send [00:03:39]OFD Sender: No OFD packet to send [00:03:44]OFD Sender: No OFD packet to send [00:03:49]OFD Sender: No OFD packet to send [00:03:54]OFD Sender: No OFD packet to send [00:03:59]OFD Sender: No OFD packet to send [00:04:04]OFD Sender: No OFD packet to send [00:04:09]OFD Sender: No OFD packet to send [00:04:14]OFD Sender: No OFD packet to send [00:04:19]OFD Sender: No OFD packet to send [00:04:24]OFD Sender: No OFD packet to send [00:04:29]OFD Sender: No OFD packet to send [00:04:34]OFD Sender: No OFD packet to send [00:04:39]OFD Sender: No OFD packet to send [00:04:44]OFD Sender: No OFD packet to send [00:04:49]accept exits with 7 [00:04:49]New connection [00:04:49]New thread 3067174244 created [00:04:49]Thread 3067317604 joined [00:04:49]Waiting for new connection... [00:04:49] Sock 7.Parse request [00:04:49]Sock 7.Check first char [00:04:49]Sock 7.First char is OK [00:04:49]request: POST /json_proto HTTP/1.0 [00:04:49]Method: POST [00:04:49]URL: /json_proto [00:04:49]Method is POST - this is cgi request [00:04:49]url: /json_proto [00:04:49]query_string will be loaded in cgi processing [00:04:49]execute_cgi json_proto POST (null) [00:04:49]execute_cgi path=json_proto method=POST [00:04:49]POST find Content-Length [00:04:49]Host: 172.17.96.197:8080 [00:04:49]Content-Length: 695 [00:04:49]Content-Type: application/json [00:04:49] [00:04:49]POST finish read [00:04:49]Found Content-Length = 695 [00:04:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10461", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:49]execute_script... [00:04:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10461", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:49]POST & json_proto [00:04:49]process_json_proto [00:04:49]json parsed OK: [00:04:49]protocol is kg_v1.0 [00:04:49]action value=close_receipt [00:04:49]process_action close_receipt [00:04:49]cmd_close_receipt [00:04:49]MH_GetDate [00:04:49]Write to MH i2c: F0 00 00 C1 0A BA [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 09 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: F0 09 00 C1 0A 00 22 6F 1C 66 E0 85 7F 64 1E [00:04:49]GetLastDocTimeStamp 1713139212 [00:04:49]current date 1713139490 [00:04:49]FM_GetShiftState [00:04:49]SAM_PROTO_GetShiftState [00:04:49]wFMCommunicate request_size=4 [00:04:49]MH_SAM_APDU [00:04:49]CAPDU: 80 13 01 00 [00:04:49]Write to MH i2c: E2 08 00 C2 0A 80 13 01 00 00 00 00 00 49 [00:04:49]Write i2c OK [00:04:49]MH_I2C_Read... [00:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:49]Read from MH i2c: E2 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 0E 00 [00:04:49]MH_I2C_Read... [00:04:49]Read from MH i2c: E2 0E 00 C2 0A 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 E1 [00:04:49]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:04:49]wFMCommunicate OK [00:04:49]SAM_PROTO_GetShiftState done [00:04:49]FM_GetShiftState done [00:04:49]opened in 1713054696 [00:04:49]opened+sec_in_day 1713141096 [00:04:49]quantity*price = 11500 [00:04:49]sum+1 = 11501 [00:04:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 395 15.04.2024 00:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112496 ФПД: 100767565491620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112496&fm=100767565491620&tin=02508201610067®Number=0000000000094237&sum=11500 0 [00:04:50]StoreToDocumentArchive [00:04:50]shift 357 fd 112496 [00:04:50]save to /storage/0357/doc_00112496 [00:04:50]save last doc name /storage/0357/doc_00112496 to /storage/kkm_last_doc_name [00:04:50]save OK [00:04:50]Clear old archive folders... [00:04:50]ProcessDocumentItem done err = 0, tmpTLVsize=296 [00:04:50]tlvbuf is 019FF970 [00:04:50]SAM_PROTO_ClearQueue [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 09 00 00 [00:04:50]Write to MH i2c: E2 08 00 CF 0A 80 09 00 00 00 00 00 00 4B [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 CF 0A 00 90 00 4D [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_ClearQueue done [00:04:50]KKMCreateOFDPacket [00:04:50]OFDProtocolAddRootSTLVToBuf [00:04:50]FM_MakeSignedData [00:04:50]FM_MakeSignedData [00:04:50]SAM_PROTO_SignData [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 01 02 [00:04:50]Write to MH i2c: E2 08 00 D0 0A 80 0D 01 02 00 00 00 00 53 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 D0 0A 00 90 00 4E [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=255 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [00:04:50]Write to MH i2c: E2 02 01 D1 0A 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 E8 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 D1 0A 00 90 00 4F [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=55 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B7 01 00 35 04 06 00 5B A5 C6 F2 2D A4 [00:04:50]Write to MH i2c: E2 3A 00 D2 0A 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B7 01 00 35 04 06 00 5B A5 C6 F2 2D A4 00 00 5E [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 03 00 D2 0A 00 90 00 50 [00:04:50]RAPDU: 90 00 [00:04:50]wFMCommunicate OK [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 0D 03 02 [00:04:50]Write to MH i2c: E2 08 00 D3 0A 80 0D 03 02 00 00 00 00 58 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0B 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 0B 00 D3 0A 00 E2 22 60 18 B2 4C 66 5E 90 00 97 [00:04:50]RAPDU: E2 22 60 18 B2 4C 66 5E 90 00 [00:04:50]wFMCommunicate OK [00:04:50]SAM_PROTO_SignData done [00:04:50]FM_MakeSignedData done [00:04:50]CreateOFDProtocolMessage [00:04:50]wFMCommunicate request_size=4 [00:04:50]MH_SAM_APDU [00:04:50]CAPDU: 80 11 00 00 [00:04:50]Write to MH i2c: E2 08 00 D4 0A 80 11 00 00 00 00 00 00 58 [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:50]Read from MH i2c: E2 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 17 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: E2 17 00 D4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A9 [00:04:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:04:50]wFMCommunicate OK [00:04:50]CreateOFDProtocolMessage done [00:04:50]OFDSenderStorePacket 112496 [00:04:50]StoreOFDPacket docnum=112496 [00:04:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3C 01 00 00 18 D6 34 01 04 C1 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B7 01 00 35 04 06 00 5B A5 C6 F2 2D A4 E2 22 60 18 B2 4C 66 5E [00:04:50]CheckFolder [00:04:50]dirname=/storage/ofd_packets [00:04:50]CheckFolder done [00:04:50]ProducePacketName [00:04:50]name=ofd_packets/00112496 [00:04:50]NVStorageSaveData ofd_packets/00112496 [00:04:50]File name is /storage/ofd_packets/00112496 [00:04:50]Write 346 bytes [00:04:50]NVStorageSaveData done [00:04:50]OFDSenderStorePacket done [00:04:50]KKMCreateOFDPacket done [00:04:50]NVStorageSaveData kkm_last_timestamp [00:04:50]File name is /storage/kkm_last_timestamp [00:04:50]Write 4 bytes [00:04:50]NVStorageSaveData done [00:04:50]ExternCall_PrintAddStr [00:04:50]wPrintStart [00:04:50]Write to MH i2c: 01 00 00 D5 0A DF [00:04:50]Write i2c OK [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 07 00 [00:04:50]MH_I2C_Read... [00:04:50]Read from MH i2c: 01 07 00 D5 0A 00 00 00 00 00 FF 0F F4 [00:04:50]RasterBufferAndPrint [00:04:50]line Счет N : (3)10461 [00:04:50]line ИНН: 02508201610067 [00:04:50]line Контрольно-Кассовый Чек [00:04:50]line ПРОДАЖА [00:04:50]line Товар: 4870202521261 [00:04:50]line Напиток MAXI чай 1,2 лесные ягоды [00:04:50]line 1.000 * 115.00 [00:04:50]line = 115.00 [00:04:50]line НДС 12% НСП 1% [00:04:50]line > о реализуемом товаре [00:04:50]line ИТОГО: 115.00 [00:04:50]line НСП 1% : 1.02 [00:04:50]line НДС 12% : 12.21 [00:04:50]line Наличными: 115.00 [00:04:50]line Безнал.: 0.00 [00:04:50]line Место: АЗС № 47 "Партнер Нефть" [00:04:50]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:04:50]line СНО: Общий режим [00:04:50]line Чек 395 15.04.2024 00:04 [00:04:50]line Смена: 357 ФФД: 1.0 [00:04:50]line ЗНМ: 0300000138 [00:04:50]line РНМ: 0000000000094237 [00:04:51]line Версия ККМ: 001 [00:04:51]line ФМ: 0000000000875019 [00:04:51]line ФД: 112496 [00:04:51]line ФПД: 100767565491620 [00:04:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000450&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112496&fm=100767565491620&tin=02508201610067®Number=0000000000094237&sum=11500 [00:04:51]line 0 [00:04:51]OFD Sender: Processing packet 112496 [packets to send 71, broken 70] [00:04:51]ProducePacketName [00:04:51]name=ofd_packets/00112496 [00:04:51]OFD Sender: To server: pG, [00:04:51]CommunicateWithHost lk.salyk.kg:30040 [00:04:51]ConnectInit lk.salyk.kg [00:04:51]written 0, free lines is 4095 [00:04:51]Connected sock=10 [00:04:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 3C 01 00 00 18 D6 34 01 04 C1 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 22 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 70 B7 01 00 35 04 06 00 5B A5 C6 F2 2D A4 E2 22 60 18 B2 4C 66 5E [00:04:51]Write to MH i2c: 01 00 00 FE 0A 08 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: 01 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: 01 07 00 [00:04:51]MH_I2C_Read... [00:04:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 92 95 47 00 5B 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 38 37 35 30 31 39 10 04 04 00 70 B7 01 00 F4 03 04 00 AC 16 1C 66 B6 04 01 00 00 47 C8 7F 10 31 01 8E E3 [00:04:51]CommunicateWithHost err = 0 [00:04:51]CheckOFDResponse [00:04:51]1017 (14) - 77093643461234 [00:04:51]1041 (16) - 0000000000875019 [00:04:51]1040 (4) - 112496 [00:04:51]1012 (4) - 14.04.2024 17:47 [00:04:51]1206 (1) - 0 [00:04:51]OFD Sender: Remove packet 112496 [00:04:51]ProducePacketName [00:04:51]name=ofd_packets/00112496 [00:04:51]NVStorageDeleteData [00:04:51]Read from MH i2c: 01 07 00 FE 0A 00 00 00 00 00 F1 0C 0C [00:04:51]RasterBufferAndPrint [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]line [00:04:51]written 0, free lines is 3358 [00:04:51]MH_Cut [00:04:51]Write to MH i2c: D1 01 00 05 0B 01 E2 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 01 00 [00:04:51]MH_I2C_Read... [00:04:51]Read from MH i2c: D1 01 00 05 0B 00 E1 [00:04:51]Write to MH i2c: 01 00 00 06 0B 11 [00:04:51]Write i2c OK [00:04:51]MH_I2C_Read... [00:04:52]OFD Sender: No OFD packet to send [00:04:52]*** Cut start [00:04:52]*** Partial cut [00:04:52]*** CUTSNS_PIN = 1 [00:04:52]*** CUTSNS_PIN = 0 [00:04:52]*** Brake cut motor [00:04:53]Read from MH i2c: 01 [00:04:53]MH_I2C_Read... [00:04:53]*** Stop cut motor [00:04:53]*** Cut end [00:04:53]Read from MH i2c: 01 07 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: 01 07 00 06 0B 00 00 00 00 00 FF 0F 26 [00:04:53]process_action close_receipt done [00:04:53]requested_data is exist [00:04:53]produce_requested_data [00:04:53]requested_item fm.sn is exist - process it [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 11 00 00 [00:04:53]Write to MH i2c: E2 08 00 07 0B 80 11 00 00 00 00 00 00 8C [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 17 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 17 00 07 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DD [00:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:04:53]wFMCommunicate OK [00:04:53]requested_item fd.num is exist - process it [00:04:53]SAM_PROTO_GetFieldsCounters [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 13 00 00 [00:04:53]Write to MH i2c: E2 08 00 08 0B 80 13 00 00 00 00 00 00 8F [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 62 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 62 00 08 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 70 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 E0 [00:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 70 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:04:53]wFMCommunicate OK [00:04:53]SAM_PROTO_GetFieldsCounters done [00:04:53]requested_item shift.num is exist - process it [00:04:53]requested_item shift.opened is exist - process it [00:04:53]req_shift_opened [00:04:53]FM_GetShiftState [00:04:53]SAM_PROTO_GetShiftState [00:04:53]wFMCommunicate request_size=4 [00:04:53]MH_SAM_APDU [00:04:53]CAPDU: 80 13 01 00 [00:04:53]Write to MH i2c: E2 08 00 09 0B 80 13 01 00 00 00 00 00 91 [00:04:53]Write i2c OK [00:04:53]MH_I2C_Read... [00:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:53]Read from MH i2c: E2 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 0E 00 [00:04:53]MH_I2C_Read... [00:04:53]Read from MH i2c: E2 0E 00 09 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 29 [00:04:53]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:04:53]wFMCommunicate OK [00:04:53]SAM_PROTO_GetShiftState done [00:04:53]FM_GetShiftState done [00:04:53]req_shift_opened done [00:04:53]requested_item shift.open_date is exist - process it [00:04:53]req_shift_open_date [00:04:53]req_shift_open_date done [00:04:53]produce_requested_data done [00:04:53]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112496,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:04:53]process_action_free close_receipt [00:04:53]json_value_free [00:04:53]json_value_free done [00:04:53]process_json_proto returns [00:04:53]Send response to host [00:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112496,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:04:53]free response buf [00:04:53]execute_script done [00:04:53]execute_script returns [00:04:53]free content buf [00:04:53]Sock 7.Close socket [00:04:53]Sock 7.Thread stoped [00:04:57]OFD Sender: No OFD packet to send [00:04:58]accept exits with 9 [00:04:58]New connection [00:04:58]New thread 3067317604 created [00:04:58]Thread 3067174244 joined [00:04:58]Waiting for new connection... [00:04:58] Sock 9.Parse request [00:04:58]Sock 9.Check first char [00:04:58]Sock 9.First char is OK [00:04:58]request: POST /json_proto HTTP/1.0 [00:04:58]Method: POST [00:04:58]URL: /json_proto [00:04:58]Method is POST - this is cgi request [00:04:58]url: /json_proto [00:04:58]query_string will be loaded in cgi processing [00:04:58]execute_cgi json_proto POST (null) [00:04:58]execute_cgi path=json_proto method=POST [00:04:58]POST find Content-Length [00:04:58]Host: 172.17.96.197:8080 [00:04:58]Content-Length: 677 [00:04:58]Content-Type: application/json [00:04:58] [00:04:58]POST finish read [00:04:58]Found Content-Length = 677 [00:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.770, "sum" : 885.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 885.00, "total" : 885.00, "payments": [ { "type": 0, "sum" : 885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:58]execute_script... [00:04:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48781", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.30, "quantity" : 13.770, "sum" : 885.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 885.00, "total" : 885.00, "payments": [ { "type": 0, "sum" : 885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:04:58]POST & json_proto [00:04:58]process_json_proto [00:04:58]json parsed OK: [00:04:58]protocol is kg_v1.0 [00:04:58]action value=close_receipt [00:04:58]process_action close_receipt [00:04:58]cmd_close_receipt [00:04:58]MH_GetDate [00:04:58]Write to MH i2c: F0 00 00 0A 0B 04 [00:04:58]Write i2c OK [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: F0 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: F0 09 00 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: F0 09 00 0A 0B 00 2B 6F 1C 66 E0 85 7F 64 71 [00:04:58]GetLastDocTimeStamp 1713139490 [00:04:58]current date 1713139499 [00:04:58]FM_GetShiftState [00:04:58]SAM_PROTO_GetShiftState [00:04:58]wFMCommunicate request_size=4 [00:04:58]MH_SAM_APDU [00:04:58]CAPDU: 80 13 01 00 [00:04:58]Write to MH i2c: E2 08 00 0B 0B 80 13 01 00 00 00 00 00 93 [00:04:58]Write i2c OK [00:04:58]MH_I2C_Read... [00:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:04:58]Read from MH i2c: E2 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: E2 0E 00 [00:04:58]MH_I2C_Read... [00:04:58]Read from MH i2c: E2 0E 00 0B 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 2B [00:04:58]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:04:58]wFMCommunicate OK [00:04:58]SAM_PROTO_GetShiftState done [00:04:58]FM_GetShiftState done [00:04:58]opened in 1713054696 [00:04:58]opened+sec_in_day 1713141096 [00:04:58]quantity*price = 88541 [00:04:58]sum+1 = 88542 [00:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 885.00 Внесено: 885.00 СДАЧА: 0.00 НСП 1% : 7.83 НДС 12% : 94.03 Наличными: 885.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 396 15.04.2024 00:04 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112497 ФПД: 222579884634908 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000459&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112497&fm=222579884634908&tin=02508201610067®Number=0000000000094237&sum=88500 [00:04:59]StoreToDocumentArchive [00:04:59]shift 357 fd 112497 [00:04:59]save to /storage/0357/doc_00112497 [00:04:59]save last doc name /storage/0357/doc_00112497 to /storage/kkm_last_doc_name [00:04:59]save OK [00:04:59]Clear old archive folders... [00:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:04:59]tlvbuf is 019D38E0 [00:04:59]SAM_PROTO_ClearQueue [00:04:59]wFMCommunicate request_size=4 [00:04:59]MH_SAM_APDU [00:04:59]CAPDU: 80 09 00 00 [00:04:59]Write to MH i2c: E2 08 00 18 0B 80 09 00 00 00 00 00 00 95 [00:04:59]Write i2c OK [00:04:59]MH_I2C_Read... [00:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:04:59]Read from MH i2c: E2 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 18 0B 00 90 00 97 [00:04:59]RAPDU: 90 00 [00:04:59]wFMCommunicate OK [00:04:59]SAM_PROTO_ClearQueue done [00:04:59]KKMCreateOFDPacket [00:04:59]OFDProtocolAddRootSTLVToBuf [00:04:59]FM_MakeSignedData [00:04:59]FM_MakeSignedData [00:04:59]SAM_PROTO_SignData [00:04:59]wFMCommunicate request_size=4 [00:04:59]MH_SAM_APDU [00:04:59]CAPDU: 80 0D 01 02 [00:04:59]Write to MH i2c: E2 08 00 19 0B 80 0D 01 02 00 00 00 00 9D [00:04:59]Write i2c OK [00:04:59]MH_I2C_Read... [00:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:04:59]Read from MH i2c: E2 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 19 0B 00 90 00 98 [00:04:59]RAPDU: 90 00 [00:04:59]wFMCommunicate OK [00:04:59]wFMCommunicate request_size=255 [00:04:59]MH_SAM_APDU [00:04:59]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 CA 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DD 59 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 59 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 24 00 00 00 00 07 04 06 00 B4 59 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 2B 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B7 01 00 35 04 06 00 CA [00:04:59]Write to MH i2c: E2 02 01 1A 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 CA 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DD 59 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 59 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 24 00 00 00 00 07 04 06 00 B4 59 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 2B 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B7 01 00 35 04 06 00 CA 00 00 21 [00:04:59]Write i2c OK [00:04:59]MH_I2C_Read... [00:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:04:59]Read from MH i2c: E2 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 [00:04:59]MH_I2C_Read... [00:04:59]Read from MH i2c: E2 03 00 1A 0B 00 90 00 99 [00:04:59]RAPDU: 90 00 [00:04:59]wFMCommunicate OK [00:04:59]wFMCommunicate request_size=10 [00:04:59]MH_SAM_APDU [00:04:59]CAPDU: 80 0D 02 02 05 6F 6A F5 33 1C [00:04:59]Write to MH i2c: E2 0D 00 1B 0B 80 0D 02 02 05 00 6F 6A F5 33 1C 00 00 C7 [00:04:59]Write i2c OK [00:04:59]MH_I2C_Read... [00:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:00]Read from MH i2c: E2 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 03 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 03 00 1B 0B 00 90 00 9A [00:05:00]RAPDU: 90 00 [00:05:00]wFMCommunicate OK [00:05:00]wFMCommunicate request_size=4 [00:05:00]MH_SAM_APDU [00:05:00]CAPDU: 80 0D 03 02 [00:05:00]Write to MH i2c: E2 08 00 1C 0B 80 0D 03 02 00 00 00 00 A2 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:00]Read from MH i2c: E2 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 0B 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 0B 00 1C 0B 00 17 8A CA 52 AD EA A9 D2 90 00 72 [00:05:00]RAPDU: 17 8A CA 52 AD EA A9 D2 90 00 [00:05:00]wFMCommunicate OK [00:05:00]SAM_PROTO_SignData done [00:05:00]FM_MakeSignedData done [00:05:00]CreateOFDProtocolMessage [00:05:00]wFMCommunicate request_size=4 [00:05:00]MH_SAM_APDU [00:05:00]CAPDU: 80 11 00 00 [00:05:00]Write to MH i2c: E2 08 00 1D 0B 80 11 00 00 00 00 00 00 A2 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:00]Read from MH i2c: E2 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 17 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: E2 17 00 1D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F3 [00:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:05:00]wFMCommunicate OK [00:05:00]CreateOFDProtocolMessage done [00:05:00]OFDSenderStorePacket 112497 [00:05:00]StoreOFDPacket docnum=112497 [00:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 43 EE 07 01 EE 5C 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 CA 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DD 59 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 59 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 24 00 00 00 00 07 04 06 00 B4 59 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 2B 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B7 01 00 35 04 06 00 CA 6F 6A F5 33 1C 17 8A CA 52 AD EA A9 D2 [00:05:00]CheckFolder [00:05:00]dirname=/storage/ofd_packets [00:05:00]CheckFolder done [00:05:00]ProducePacketName [00:05:00]name=ofd_packets/00112497 [00:05:00]NVStorageSaveData ofd_packets/00112497 [00:05:00]File name is /storage/ofd_packets/00112497 [00:05:00]Write 301 bytes [00:05:00]NVStorageSaveData done [00:05:00]OFDSenderStorePacket done [00:05:00]KKMCreateOFDPacket done [00:05:00]NVStorageSaveData kkm_last_timestamp [00:05:00]File name is /storage/kkm_last_timestamp [00:05:00]Write 4 bytes [00:05:00]NVStorageSaveData done [00:05:00]ExternCall_PrintAddStr [00:05:00]wPrintStart [00:05:00]Write to MH i2c: 01 00 00 1E 0B 29 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 07 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 07 00 1E 0B 00 00 00 00 00 FF 0F 3E [00:05:00]RasterBufferAndPrint [00:05:00]line Счет N : (1)48781 [00:05:00]line ИНН: 02508201610067 [00:05:00]line Контрольно-Кассовый Чек [00:05:00]line ПРОДАЖА [00:05:00]line ТРК (МРК, ГНК) : 21 [00:05:00]line Товар: 2710124130 [00:05:00]line Аи-92-К-5 [00:05:00]line 13.770 * 64.30 [00:05:00]line = 885.41 [00:05:00]line НДС 12% НСП 1% [00:05:00]line > о реализуемом товаре [00:05:00]line ОКРУГЛЕНИЕ: -0.41 [00:05:00]line ИТОГО: 885.00 [00:05:00]line Внесено: 885.00 [00:05:00]line СДАЧА: 0.00 [00:05:00]line НСП 1% : 7.83 [00:05:00]line НДС 12% : 94.03 [00:05:00]line Наличными: 885.00 [00:05:00]line Безнал.: 0.00 [00:05:00]line Место: АЗС № 47 "Партнер Нефть" [00:05:00]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:05:00]line СНО: Общий режим [00:05:00]line Чек 396 15.04.2024 00:04 [00:05:00]line Смена: 357 ФФД: 1.0 [00:05:00]line ЗНМ: 0300000138 [00:05:00]line РНМ: 0000000000094237 [00:05:00]line Версия ККМ: 001 [00:05:00]line ФМ: 0000000000875019 [00:05:00]line ФД: 112497 [00:05:00]line ФПД: 222579884634908 [00:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000459&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112497&fm=222579884634908&tin=02508201610067®Number=0000000000094237&sum=88500 [00:05:00]written 0, free lines is 4095 [00:05:00]OFD Sender: Processing packet 112497 [packets to send 71, broken 70] [00:05:00]ProducePacketName [00:05:00]name=ofd_packets/00112497 [00:05:00]OFD Sender: To server: pG, [00:05:00]CommunicateWithHost lk.salyk.kg:30040 [00:05:00]ConnectInit lk.salyk.kg [00:05:00]Connected sock=10 [00:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 43 EE 07 01 EE 5C 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 CA 35 00 00 00 00 00 37 04 06 00 1E 19 00 00 00 00 13 04 06 00 DD 59 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 59 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0F 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BB 24 00 00 00 00 07 04 06 00 B4 59 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 2B 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B7 01 00 35 04 06 00 CA 6F 6A F5 33 1C 17 8A CA 52 AD EA A9 D2 [00:05:00]Write to MH i2c: 01 00 00 49 0B 54 [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 07 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: 01 07 00 49 0B 00 00 00 00 00 E2 0C 49 [00:05:00]RasterBufferAndPrint [00:05:00]line [00:05:00]line [00:05:00]line [00:05:00]line [00:05:00]line [00:05:00]written 0, free lines is 3307 [00:05:00]MH_Cut [00:05:00]Write to MH i2c: D1 01 00 50 0B 01 2D [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: D1 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: D1 01 00 [00:05:00]MH_I2C_Read... [00:05:00]Read from MH i2c: D1 01 00 50 0B 00 2C [00:05:00]Write to MH i2c: 01 00 00 51 0B 5C [00:05:00]Write i2c OK [00:05:00]MH_I2C_Read... [00:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 18 76 47 00 C2 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 71 B7 01 00 F4 03 04 00 B5 16 1C 66 B6 04 01 00 00 79 AA C0 23 84 6F 50 A8 [00:05:00]CommunicateWithHost err = 0 [00:05:00]CheckOFDResponse [00:05:00]1017 (14) - 77093643461234 [00:05:00]1041 (16) - 0000000000875019 [00:05:00]1040 (4) - 112497 [00:05:00]1012 (4) - 14.04.2024 17:47 [00:05:00]1206 (1) - 0 [00:05:00]OFD Sender: Remove packet 112497 [00:05:00]ProducePacketName [00:05:00]name=ofd_packets/00112497 [00:05:00]NVStorageDeleteData [00:05:01]OFD Sender: No OFD packet to send [00:05:01]*** Cut start [00:05:01]*** Partial cut [00:05:01]*** CUTSNS_PIN = 1 [00:05:01]*** CUTSNS_PIN = 0 [00:05:01]*** Brake cut motor [00:05:01]Read from MH i2c: 01 [00:05:01]MH_I2C_Read... [00:05:01]*** Stop cut motor [00:05:01]*** Cut end [00:05:01]Read from MH i2c: 01 07 00 [00:05:01]MH_I2C_Read... [00:05:01]Read from MH i2c: 01 07 00 51 0B 00 00 00 00 00 FF 0F 71 [00:05:01]process_action close_receipt done [00:05:01]requested_data is exist [00:05:01]produce_requested_data [00:05:01]requested_item fm.sn is exist - process it [00:05:01]wFMCommunicate request_size=4 [00:05:01]MH_SAM_APDU [00:05:01]CAPDU: 80 11 00 00 [00:05:01]Write to MH i2c: E2 08 00 52 0B 80 11 00 00 00 00 00 00 D7 [00:05:01]Write i2c OK [00:05:01]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 17 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 17 00 52 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 28 [00:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:05:02]wFMCommunicate OK [00:05:02]requested_item fd.num is exist - process it [00:05:02]SAM_PROTO_GetFieldsCounters [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 13 00 00 [00:05:02]Write to MH i2c: E2 08 00 53 0B 80 13 00 00 00 00 00 00 DA [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 62 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 62 00 53 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 71 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 2F [00:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 71 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:02]wFMCommunicate OK [00:05:02]SAM_PROTO_GetFieldsCounters done [00:05:02]requested_item shift.num is exist - process it [00:05:02]requested_item shift.opened is exist - process it [00:05:02]req_shift_opened [00:05:02]FM_GetShiftState [00:05:02]SAM_PROTO_GetShiftState [00:05:02]wFMCommunicate request_size=4 [00:05:02]MH_SAM_APDU [00:05:02]CAPDU: 80 13 01 00 [00:05:02]Write to MH i2c: E2 08 00 54 0B 80 13 01 00 00 00 00 00 DC [00:05:02]Write i2c OK [00:05:02]MH_I2C_Read... [00:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:02]Read from MH i2c: E2 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 0E 00 [00:05:02]MH_I2C_Read... [00:05:02]Read from MH i2c: E2 0E 00 54 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 74 [00:05:02]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:05:02]wFMCommunicate OK [00:05:02]SAM_PROTO_GetShiftState done [00:05:02]FM_GetShiftState done [00:05:02]req_shift_opened done [00:05:02]requested_item shift.open_date is exist - process it [00:05:02]req_shift_open_date [00:05:02]req_shift_open_date done [00:05:02]produce_requested_data done [00:05:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112497,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:05:02]process_action_free close_receipt [00:05:02]json_value_free [00:05:02]json_value_free done [00:05:02]process_json_proto returns [00:05:02]Send response to host [00:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112497,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:05:02]free response buf [00:05:02]execute_script done [00:05:02]execute_script returns [00:05:02]free content buf [00:05:02]Sock 9.Close socket [00:05:02]Sock 9.Thread stoped [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:28]accept exits with 7 [00:05:28]New connection [00:05:28]New thread 3067174244 created [00:05:28]Thread 3067317604 joined [00:05:28]Waiting for new connection... [00:05:28] Sock 7.Parse request [00:05:28]Sock 7.Check first char [00:05:28]Sock 7.First char is OK [00:05:28]request: POST /json_proto HTTP/1.0 [00:05:28]Method: POST [00:05:28]URL: /json_proto [00:05:28]Method is POST - this is cgi request [00:05:28]url: /json_proto [00:05:28]query_string will be loaded in cgi processing [00:05:28]execute_cgi json_proto POST (null) [00:05:28]execute_cgi path=json_proto method=POST [00:05:28]POST find Content-Length [00:05:28]Host: 172.17.96.197:8080 [00:05:28]Content-Length: 649 [00:05:28]Content-Type: application/json [00:05:28] [00:05:28]POST finish read [00:05:28]Found Content-Length = 649 [00:05:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10462", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 5.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:28]execute_script... [00:05:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10462", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 5.000, "sum" : 525.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 525.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:05:28]POST & json_proto [00:05:28]process_json_proto [00:05:28]json parsed OK: [00:05:28]protocol is kg_v1.0 [00:05:28]action value=close_receipt [00:05:28]process_action close_receipt [00:05:28]cmd_close_receipt [00:05:28]MH_GetDate [00:05:28]Write to MH i2c: F0 00 00 55 0B 4F [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 09 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: F0 09 00 55 0B 00 49 6F 1C 66 E0 85 7F 64 DA [00:05:28]GetLastDocTimeStamp 1713139499 [00:05:28]current date 1713139529 [00:05:28]FM_GetShiftState [00:05:28]SAM_PROTO_GetShiftState [00:05:28]wFMCommunicate request_size=4 [00:05:28]MH_SAM_APDU [00:05:28]CAPDU: 80 13 01 00 [00:05:28]Write to MH i2c: E2 08 00 56 0B 80 13 01 00 00 00 00 00 DE [00:05:28]Write i2c OK [00:05:28]MH_I2C_Read... [00:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:28]Read from MH i2c: E2 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 [00:05:28]MH_I2C_Read... [00:05:28]Read from MH i2c: E2 0E 00 56 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 76 [00:05:28]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:05:28]wFMCommunicate OK [00:05:28]SAM_PROTO_GetShiftState done [00:05:28]FM_GetShiftState done [00:05:28]opened in 1713054696 [00:05:28]opened+sec_in_day 1713141096 [00:05:28]quantity*price = 52500 [00:05:28]sum+1 = 52501 [00:05:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 525.00 НСП 1% : 4.65 НДС 12% : 55.75 Наличными: 525.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 397 15.04.2024 00:05 Смена: 357 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112498 ФПД: 167021485279645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000529&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112498&fm=167021485279645&tin=02508201610067®Number=0000000000094237&sum=52500 0 [00:05:29]StoreToDocumentArchive [00:05:29]shift 357 fd 112498 [00:05:29]save to /storage/0357/doc_00112498 [00:05:29]save last doc name /storage/0357/doc_00112498 to /storage/kkm_last_doc_name [00:05:29]save OK [00:05:29]Clear old archive folders... [00:05:29]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:05:29]tlvbuf is 019FD1E0 [00:05:29]SAM_PROTO_ClearQueue [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 09 00 00 [00:05:29]Write to MH i2c: E2 08 00 63 0B 80 09 00 00 00 00 00 00 E0 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 63 0B 00 90 00 E2 [00:05:29]RAPDU: 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_ClearQueue done [00:05:29]KKMCreateOFDPacket [00:05:29]OFDProtocolAddRootSTLVToBuf [00:05:29]FM_MakeSignedData [00:05:29]FM_MakeSignedData [00:05:29]SAM_PROTO_SignData [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 0D 01 02 [00:05:29]Write to MH i2c: E2 08 00 64 0B 80 0D 01 02 00 00 00 00 E8 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 64 0B 00 90 00 E3 [00:05:29]RAPDU: 90 00 [00:05:29]wFMCommunicate OK [00:05:29]wFMCommunicate request_size=255 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 49 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 [00:05:29]Write to MH i2c: E2 02 01 65 0B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 49 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 00 00 9C [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 65 0B 00 90 00 E4 [00:05:29]RAPDU: 90 00 [00:05:29]wFMCommunicate OK [00:05:29]wFMCommunicate request_size=41 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B7 01 00 35 04 06 00 97 E7 B8 4C C9 9D [00:05:29]Write to MH i2c: E2 2C 00 66 0B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B7 01 00 35 04 06 00 97 E7 B8 4C C9 9D 00 00 CA [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 03 00 66 0B 00 90 00 E5 [00:05:29]RAPDU: 90 00 [00:05:29]wFMCommunicate OK [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 0D 03 02 [00:05:29]Write to MH i2c: E2 08 00 67 0B 80 0D 03 02 00 00 00 00 ED [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0B 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 0B 00 67 0B 00 7B 89 B2 60 A8 F7 54 6E 90 00 65 [00:05:29]RAPDU: 7B 89 B2 60 A8 F7 54 6E 90 00 [00:05:29]wFMCommunicate OK [00:05:29]SAM_PROTO_SignData done [00:05:29]FM_MakeSignedData done [00:05:29]CreateOFDProtocolMessage [00:05:29]wFMCommunicate request_size=4 [00:05:29]MH_SAM_APDU [00:05:29]CAPDU: 80 11 00 00 [00:05:29]Write to MH i2c: E2 08 00 68 0B 80 11 00 00 00 00 00 00 ED [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:29]Read from MH i2c: E2 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 17 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: E2 17 00 68 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3E [00:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:05:29]wFMCommunicate OK [00:05:29]CreateOFDProtocolMessage done [00:05:29]OFDSenderStorePacket 112498 [00:05:29]StoreOFDPacket docnum=112498 [00:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 9C F2 26 01 85 52 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 49 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B7 01 00 35 04 06 00 97 E7 B8 4C C9 9D 7B 89 B2 60 A8 F7 54 6E [00:05:29]CheckFolder [00:05:29]dirname=/storage/ofd_packets [00:05:29]CheckFolder done [00:05:29]ProducePacketName [00:05:29]name=ofd_packets/00112498 [00:05:29]NVStorageSaveData ofd_packets/00112498 [00:05:29]File name is /storage/ofd_packets/00112498 [00:05:29]Write 332 bytes [00:05:29]NVStorageSaveData done [00:05:29]OFDSenderStorePacket done [00:05:29]KKMCreateOFDPacket done [00:05:29]NVStorageSaveData kkm_last_timestamp [00:05:29]File name is /storage/kkm_last_timestamp [00:05:29]Write 4 bytes [00:05:29]NVStorageSaveData done [00:05:29]ExternCall_PrintAddStr [00:05:29]wPrintStart [00:05:29]Write to MH i2c: 01 00 00 69 0B 74 [00:05:29]Write i2c OK [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 [00:05:29]MH_I2C_Read... [00:05:29]Read from MH i2c: 01 07 00 69 0B 00 00 00 00 00 FF 0F 89 [00:05:29]RasterBufferAndPrint [00:05:29]line Счет N : (3)10462 [00:05:29]line ИНН: 02508201610067 [00:05:29]line Контрольно-Кассовый Чек [00:05:29]line ПРОДАЖА [00:05:29]line Товар: 2000034730018 [00:05:29]line Кофе Американо (GABB TRADE) [00:05:29]line 5.000 * 105.00 [00:05:29]line = 525.00 [00:05:29]line НДС 12% НСП 1% [00:05:29]line > о реализуемом товаре [00:05:29]line ИТОГО: 525.00 [00:05:29]line НСП 1% : 4.65 [00:05:29]line НДС 12% : 55.75 [00:05:29]line Наличными: 525.00 [00:05:29]line Безнал.: 0.00 [00:05:29]line Место: АЗС № 47 "Партнер Нефть" [00:05:29]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:05:29]line СНО: Общий режим [00:05:29]line Чек 397 15.04.2024 00:05 [00:05:29]line Смена: 357 ФФД: 1.0 [00:05:29]line ЗНМ: 0300000138 [00:05:29]line РНМ: 0000000000094237 [00:05:29]line Версия ККМ: 001 [00:05:29]line ФМ: 0000000000875019 [00:05:29]line ФД: 112498 [00:05:29]line ФПД: 167021485279645 [00:05:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T000529&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112498&fm=167021485279645&tin=02508201610067®Number=0000000000094237&sum=52500 [00:05:30]line 0 [00:05:30]OFD Sender: Processing packet 112498 [packets to send 71, broken 70] [00:05:30]ProducePacketName [00:05:30]name=ofd_packets/00112498 [00:05:30]OFD Sender: To server: pG, [00:05:30]CommunicateWithHost lk.salyk.kg:30040 [00:05:30]ConnectInit lk.salyk.kg [00:05:30]written 0, free lines is 4095 [00:05:30]Connected sock=10 [00:05:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 2E 01 00 00 9C F2 26 01 85 52 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 14 CD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 CD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 15 00 00 00 00 07 04 06 00 14 CD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 49 6F 1C 66 0E 04 04 00 65 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B7 01 00 35 04 06 00 97 E7 B8 4C C9 9D 7B 89 B2 60 A8 F7 54 6E [00:05:30]Write to MH i2c: 01 00 00 92 0B 9D [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: 01 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: 01 07 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: 01 07 00 92 0B 00 00 00 00 00 F2 0C A2 [00:05:30]RasterBufferAndPrint [00:05:30]line [00:05:30]line [00:05:30]line [00:05:30]line [00:05:30]line [00:05:30]written 0, free lines is 3320 [00:05:30]MH_Cut [00:05:30]Write to MH i2c: D1 01 00 99 0B 01 76 [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: D1 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: D1 01 00 [00:05:30]MH_I2C_Read... [00:05:30]Read from MH i2c: D1 01 00 99 0B 00 75 [00:05:30]Write to MH i2c: 01 00 00 9A 0B A5 [00:05:30]Write i2c OK [00:05:30]MH_I2C_Read... [00:05:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 7B EA 47 00 A1 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 72 B7 01 00 F4 03 04 00 D3 16 1C 66 B6 04 01 00 00 A7 6E 5E D2 C4 6D A4 E7 [00:05:30]CommunicateWithHost err = 0 [00:05:30]CheckOFDResponse [00:05:30]1017 (14) - 77093643461234 [00:05:30]1041 (16) - 0000000000875019 [00:05:30]1040 (4) - 112498 [00:05:30]1012 (4) - 14.04.2024 17:48 [00:05:30]1206 (1) - 0 [00:05:30]OFD Sender: Remove packet 112498 [00:05:30]ProducePacketName [00:05:30]name=ofd_packets/00112498 [00:05:30]NVStorageDeleteData [00:05:31]OFD Sender: No OFD packet to send [00:05:31]*** Cut start [00:05:31]*** Partial cut [00:05:31]*** CUTSNS_PIN = 1 [00:05:31]*** CUTSNS_PIN = 0 [00:05:31]*** Brake cut motor [00:05:32]Read from MH i2c: 01 [00:05:32]MH_I2C_Read... [00:05:32]*** Stop cut motor [00:05:32]*** Cut end [00:05:32]Read from MH i2c: 01 07 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: 01 07 00 9A 0B 00 00 00 00 00 FF 0F BA [00:05:32]process_action close_receipt done [00:05:32]requested_data is exist [00:05:32]produce_requested_data [00:05:32]requested_item fm.sn is exist - process it [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 11 00 00 [00:05:32]Write to MH i2c: E2 08 00 9B 0B 80 11 00 00 00 00 00 00 20 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 17 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 17 00 9B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 71 [00:05:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:05:32]wFMCommunicate OK [00:05:32]requested_item fd.num is exist - process it [00:05:32]SAM_PROTO_GetFieldsCounters [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 00 00 [00:05:32]Write to MH i2c: E2 08 00 9C 0B 80 13 00 00 00 00 00 00 23 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 62 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 62 00 9C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 7C [00:05:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:05:32]wFMCommunicate OK [00:05:32]SAM_PROTO_GetFieldsCounters done [00:05:32]requested_item shift.num is exist - process it [00:05:32]requested_item shift.opened is exist - process it [00:05:32]req_shift_opened [00:05:32]FM_GetShiftState [00:05:32]SAM_PROTO_GetShiftState [00:05:32]wFMCommunicate request_size=4 [00:05:32]MH_SAM_APDU [00:05:32]CAPDU: 80 13 01 00 [00:05:32]Write to MH i2c: E2 08 00 9D 0B 80 13 01 00 00 00 00 00 25 [00:05:32]Write i2c OK [00:05:32]MH_I2C_Read... [00:05:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:05:32]Read from MH i2c: E2 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 0E 00 [00:05:32]MH_I2C_Read... [00:05:32]Read from MH i2c: E2 0E 00 9D 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 BD [00:05:32]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:05:32]wFMCommunicate OK [00:05:32]SAM_PROTO_GetShiftState done [00:05:32]FM_GetShiftState done [00:05:32]req_shift_opened done [00:05:32]requested_item shift.open_date is exist - process it [00:05:32]req_shift_open_date [00:05:32]req_shift_open_date done [00:05:32]produce_requested_data done [00:05:32]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:05:32]process_action_free close_receipt [00:05:32]json_value_free [00:05:32]json_value_free done [00:05:32]process_json_proto returns [00:05:32]Send response to host [00:05:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:05:32]free response buf [00:05:32]execute_script done [00:05:32]execute_script returns [00:05:32]free content buf [00:05:32]Sock 7.Close socket [00:05:32]Sock 7.Thread stoped [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:41]OFD Sender: No OFD packet to send [00:06:46]OFD Sender: No OFD packet to send [00:06:51]OFD Sender: No OFD packet to send [00:06:56]OFD Sender: No OFD packet to send [00:07:01]OFD Sender: No OFD packet to send [00:07:06]OFD Sender: No OFD packet to send [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]OFD Sender: No OFD packet to send [00:07:36]OFD Sender: No OFD packet to send [00:07:41]OFD Sender: No OFD packet to send [00:07:42]accept exits with 9 [00:07:42]New connection [00:07:42]New thread 3067317604 created [00:07:42]Thread 3067174244 joined [00:07:42]Waiting for new connection... [00:07:42] Sock 9.Parse request [00:07:42]Sock 9.Check first char [00:07:42]Sock 9.First char is OK [00:07:42]request: POST /json_proto HTTP/1.0 [00:07:42]Method: POST [00:07:42]URL: /json_proto [00:07:42]Method is POST - this is cgi request [00:07:42]url: /json_proto [00:07:42]query_string will be loaded in cgi processing [00:07:42]execute_cgi json_proto POST (null) [00:07:42]execute_cgi path=json_proto method=POST [00:07:42]POST find Content-Length [00:07:42]Host: 172.17.96.197:8080 [00:07:42]Content-Length: 215 [00:07:42]Content-Type: application/json [00:07:42] [00:07:42]POST finish read [00:07:42]Found Content-Length = 215 [00:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:42]execute_script... [00:07:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:42]POST & json_proto [00:07:42]process_json_proto [00:07:42]json parsed OK: [00:07:42]protocol is kg_v1.0 [00:07:42]action value=get_value [00:07:42]process_action get_value [00:07:42]cmd_get_value [00:07:42]process_action get_value done [00:07:42]requested_data is exist [00:07:42]produce_requested_data [00:07:42]requested_item kkm.sn is exist - process it [00:07:42]requested_item kkm.ver is exist - process it [00:07:42]requested_item fm.sn is exist - process it [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 11 00 00 [00:07:42]Write to MH i2c: E2 08 00 9E 0B 80 11 00 00 00 00 00 00 23 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 17 00 9E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 74 [00:07:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:07:42]wFMCommunicate OK [00:07:42]requested_item fd.num is exist - process it [00:07:42]SAM_PROTO_GetFieldsCounters [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 00 00 [00:07:42]Write to MH i2c: E2 08 00 9F 0B 80 13 00 00 00 00 00 00 26 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 62 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 62 00 9F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [00:07:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetFieldsCounters done [00:07:42]requested_item shift.num is exist - process it [00:07:42]requested_item shift.opened is exist - process it [00:07:42]req_shift_opened [00:07:42]FM_GetShiftState [00:07:42]SAM_PROTO_GetShiftState [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 01 00 [00:07:42]Write to MH i2c: E2 08 00 A0 0B 80 13 01 00 00 00 00 00 28 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 0E 00 A0 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 C0 [00:07:42]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetShiftState done [00:07:42]FM_GetShiftState done [00:07:42]req_shift_opened done [00:07:42]requested_item shift.open_date is exist - process it [00:07:42]req_shift_open_date [00:07:42]req_shift_open_date done [00:07:42]produce_requested_data done [00:07:42]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:07:42]process_action_free get_value [00:07:42]json_value_free [00:07:42]json_value_free done [00:07:42]process_json_proto returns [00:07:42]Send response to host [00:07:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:07:42]free response buf [00:07:42]execute_script done [00:07:42]execute_script returns [00:07:42]free content buf [00:07:42]Sock 9.Close socket [00:07:42]Sock 9.Thread stoped [00:07:42]accept exits with 10 [00:07:42]New connection [00:07:42]New thread 3067174244 created [00:07:42]Thread 3067317604 joined [00:07:42]Waiting for new connection... [00:07:42] Sock 10.Parse request [00:07:42]Sock 10.Check first char [00:07:42]Sock 10.First char is OK [00:07:42]request: POST /json_proto HTTP/1.0 [00:07:42]Method: POST [00:07:42]URL: /json_proto [00:07:42]Method is POST - this is cgi request [00:07:42]url: /json_proto [00:07:42]query_string will be loaded in cgi processing [00:07:42]execute_cgi json_proto POST (null) [00:07:42]execute_cgi path=json_proto method=POST [00:07:42]POST find Content-Length [00:07:42]Host: 172.17.96.197:8080 [00:07:42]Content-Length: 331 [00:07:42]Content-Type: application/json [00:07:42] [00:07:42]POST finish read [00:07:42]Found Content-Length = 331 [00:07:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:42]execute_script... [00:07:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:43]POST & json_proto [00:07:43]process_json_proto [00:07:43]json parsed OK: [00:07:43]protocol is kg_v1.0 [00:07:43]action value=get_value [00:07:43]process_action get_value [00:07:43]cmd_get_value [00:07:43]process_action get_value done [00:07:43]requested_data is exist [00:07:43]produce_requested_data [00:07:43]requested_item fm.sale.total is exist - process it [00:07:43]SAM_PROTO_GetFMData [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 13 03 00 [00:07:43]Write to MH i2c: E2 08 00 A1 0B 80 13 03 00 00 00 00 00 2B [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 A1 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 2F [00:07:43]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 A2 0B 80 17 00 00 00 00 00 00 2D [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 A2 0B 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 04 [00:07:43]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 A3 0B 80 17 00 00 00 00 00 00 2E [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 A3 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:07:44]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 A4 0B 80 17 00 00 00 00 00 00 2F [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 A4 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A7 [00:07:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 A5 0B 80 17 00 00 00 00 00 00 30 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E5 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 E5 00 A5 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:44]wFMCommunicate OK [00:07:44]SAM_PROTO_GetFMData done [00:07:44]requested_item fm.sale_refund.total is exist - process it [00:07:44]requested_item fm.buy.total is exist - process it [00:07:44]requested_item shift.sale.total is exist - process it [00:07:44]SAM_PROTO_GetShiftData [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 13 02 00 [00:07:44]Write to MH i2c: E2 08 00 A6 0B 80 13 02 00 00 00 00 00 2F [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 A6 0B 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 C0 [00:07:45]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 A7 0B 80 17 00 00 00 00 00 00 32 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 A7 0B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [00:07:45]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 A8 0B 80 17 00 00 00 00 00 00 33 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 A8 0B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5F [00:07:45]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 A9 0B 80 17 00 00 00 00 00 00 34 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 A9 0B 00 00 00 EF 03 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 90 00 A9 [00:07:46]RAPDU: 00 00 EF 03 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 90 00 [00:07:46]wFMCommunicate OK [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 17 00 00 [00:07:46]Write to MH i2c: E2 08 00 AA 0B 80 17 00 00 00 00 00 00 35 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 D8 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 D8 00 AA 0B 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 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 1C [00:07:46]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 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:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetShiftData done [00:07:46]requested_item shift.sale.total_cash is exist - process it [00:07:46]requested_item shift.sale_refund.total is exist - process it [00:07:46]requested_item shift.sale_refund.total_cash is exist - process it [00:07:46]requested_item shift.buy.total is exist - process it [00:07:46]requested_item shift.buy.total_cash is exist - process it [00:07:46]produce_requested_data done [00:07:46]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:46]process_action_free get_value [00:07:46]json_value_free [00:07:46]json_value_free done [00:07:46]process_json_proto returns [00:07:46]Send response to host [00:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:46]free response buf [00:07:46]execute_script done [00:07:46]execute_script returns [00:07:46]free content buf [00:07:46]Sock 10.Close socket [00:07:46]Sock 10.Thread stoped [00:07:46]OFD Sender: No OFD packet to send [00:07:46]accept exits with 9 [00:07:46]New connection [00:07:46]New thread 3067317604 created [00:07:46]Thread 3067174244 joined [00:07:46]Waiting for new connection... [00:07:46] Sock 9.Parse request [00:07:46]Sock 9.Check first char [00:07:46]Sock 9.First char is OK [00:07:46]request: POST /json_proto HTTP/1.0 [00:07:46]Method: POST [00:07:46]URL: /json_proto [00:07:46]Method is POST - this is cgi request [00:07:46]url: /json_proto [00:07:46]query_string will be loaded in cgi processing [00:07:46]execute_cgi json_proto POST (null) [00:07:46]execute_cgi path=json_proto method=POST [00:07:46]POST find Content-Length [00:07:46]Host: 172.17.96.197:8080 [00:07:46]Content-Length: 331 [00:07:46]Content-Type: application/json [00:07:46] [00:07:46]POST finish read [00:07:46]Found Content-Length = 331 [00:07:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:46]execute_script... [00:07:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:46]POST & json_proto [00:07:46]process_json_proto [00:07:46]json parsed OK: [00:07:46]protocol is kg_v1.0 [00:07:46]action value=get_value [00:07:46]process_action get_value [00:07:46]cmd_get_value [00:07:46]process_action get_value done [00:07:46]requested_data is exist [00:07:46]produce_requested_data [00:07:46]requested_item fm.sale.total is exist - process it [00:07:46]SAM_PROTO_GetFMData [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 03 00 [00:07:46]Write to MH i2c: E2 08 00 AB 0B 80 13 03 00 00 00 00 00 35 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 AB 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 39 [00:07:47]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 AC 0B 80 17 00 00 00 00 00 00 37 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 AC 0B 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 0E [00:07:47]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 AD 0B 80 17 00 00 00 00 00 00 38 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 AD 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:07:47]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 AE 0B 80 17 00 00 00 00 00 00 39 [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 FD 00 AE 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B1 [00:07:48]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:48]wFMCommunicate OK [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 17 00 00 [00:07:48]Write to MH i2c: E2 08 00 AF 0B 80 17 00 00 00 00 00 00 3A [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 E5 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 E5 00 AF 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetFMData done [00:07:48]requested_item fm.sale_refund.total is exist - process it [00:07:48]requested_item fm.buy.total is exist - process it [00:07:48]requested_item shift.sale.total is exist - process it [00:07:48]SAM_PROTO_GetShiftData [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 02 00 [00:07:48]Write to MH i2c: E2 08 00 B0 0B 80 13 02 00 00 00 00 00 39 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 B0 0B 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CA [00:07:49]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 B1 0B 80 17 00 00 00 00 00 00 3C [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 B1 0B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D1 [00:07:49]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 B2 0B 80 17 00 00 00 00 00 00 3D [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 B2 0B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [00:07:49]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 B3 0B 80 17 00 00 00 00 00 00 3E [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 B3 0B 00 00 00 EF 03 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 90 00 B3 [00:07:50]RAPDU: 00 00 EF 03 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 90 00 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 B4 0B 80 17 00 00 00 00 00 00 3F [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 D8 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 D8 00 B4 0B 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 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 26 [00:07:50]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 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:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetShiftData done [00:07:50]requested_item shift.sale.total_cash is exist - process it [00:07:50]requested_item shift.sale_refund.total is exist - process it [00:07:50]requested_item shift.sale_refund.total_cash is exist - process it [00:07:50]requested_item shift.buy.total is exist - process it [00:07:50]requested_item shift.buy.total_cash is exist - process it [00:07:50]produce_requested_data done [00:07:50]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:50]process_action_free get_value [00:07:50]json_value_free [00:07:50]json_value_free done [00:07:50]process_json_proto returns [00:07:50]Send response to host [00:07:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:50]free response buf [00:07:50]execute_script done [00:07:50]execute_script returns [00:07:50]free content buf [00:07:50]Sock 9.Close socket [00:07:50]Sock 9.Thread stoped [00:07:50]accept exits with 7 [00:07:50]New connection [00:07:50]New thread 3067174244 created [00:07:50]Thread 3067317604 joined [00:07:50]Waiting for new connection... [00:07:50] Sock 7.Parse request [00:07:50]Sock 7.Check first char [00:07:50]Sock 7.First char is OK [00:07:50]request: POST /json_proto HTTP/1.0 [00:07:50]Method: POST [00:07:50]URL: /json_proto [00:07:50]Method is POST - this is cgi request [00:07:50]url: /json_proto [00:07:50]query_string will be loaded in cgi processing [00:07:50]execute_cgi json_proto POST (null) [00:07:50]execute_cgi path=json_proto method=POST [00:07:50]POST find Content-Length [00:07:50]Host: 172.17.96.197:8080 [00:07:50]Content-Length: 271 [00:07:50]Content-Type: application/json [00:07:50] [00:07:50]POST finish read [00:07:50]Found Content-Length = 271 [00:07:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:50]execute_script... [00:07:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:50]POST & json_proto [00:07:50]process_json_proto [00:07:50]json parsed OK: [00:07:50]protocol is kg_v1.0 [00:07:50]action value=x_report [00:07:50]process_action x_report [00:07:50]cmd_x_report [00:07:50]MH_GetDate [00:07:50]Write to MH i2c: F0 00 00 B5 0B AF [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 09 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 09 00 B5 0B 00 D8 6F 1C 66 E0 85 7F 64 C9 [00:07:50]GetLastDocTimeStamp 1713139529 [00:07:50]current date 1713139672 [00:07:50]FM_GetShiftState [00:07:50]SAM_PROTO_GetShiftState [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 13 01 00 [00:07:50]Write to MH i2c: E2 08 00 B6 0B 80 13 01 00 00 00 00 00 3E [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 0E 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 0E 00 B6 0B 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 D6 [00:07:50]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetShiftState done [00:07:50]FM_GetShiftState done [00:07:50]KKMCreateXReportDocument [00:07:50]Load OK [00:07:50]Malloc new data [00:07:50]MH_GetDate [00:07:50]Write to MH i2c: F0 00 00 B7 0B B1 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 09 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: F0 09 00 B7 0B 00 D8 6F 1C 66 E0 85 7F 64 CB [00:07:50]Malloc new data [00:07:50]Malloc new data [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 11 00 00 [00:07:50]Write to MH i2c: E2 08 00 B8 0B 80 11 00 00 00 00 00 00 3D [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 17 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 17 00 B8 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8E [00:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:07:51]wFMCommunicate OK [00:07:51]SAM_PROTO_GetFieldsCounters [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 13 00 00 [00:07:51]Write to MH i2c: E2 08 00 B9 0B 80 13 00 00 00 00 00 00 40 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 62 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 62 00 B9 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [00:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:51]wFMCommunicate OK [00:07:51]SAM_PROTO_GetFieldsCounters done [00:07:51]Malloc new data [00:07:51]Malloc new data [00:07:51]Malloc new data [00:07:51]KKMCreateXReportDocument OK [00:07:51]KKMSetXReportData OK [00:07:51]KKMPrepareXReportFMData [00:07:51]SAM_PROTO_GetShiftData [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 13 02 00 [00:07:51]Write to MH i2c: E2 08 00 BA 0B 80 13 02 00 00 00 00 00 43 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:51]OFD Sender: No OFD packet to send [00:07:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:51]Read from MH i2c: E2 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 [00:07:51]MH_I2C_Read... [00:07:51]Read from MH i2c: E2 FD 00 BA 0B 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 D4 [00:07:51]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:07:51]wFMCommunicate OK [00:07:51]wFMCommunicate request_size=4 [00:07:51]MH_SAM_APDU [00:07:51]CAPDU: 80 17 00 00 [00:07:51]Write to MH i2c: E2 08 00 BB 0B 80 17 00 00 00 00 00 00 46 [00:07:51]Write i2c OK [00:07:51]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 BB 0B 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [00:07:52]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 BC 0B 80 17 00 00 00 00 00 00 47 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 BC 0B 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 73 [00:07:52]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 BD 0B 80 17 00 00 00 00 00 00 48 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 BD 0B 00 00 00 EF 03 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 90 00 BD [00:07:53]RAPDU: 00 00 EF 03 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 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 BE 0B 80 17 00 00 00 00 00 00 49 [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 D8 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 D8 00 BE 0B 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 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 30 [00:07:53]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 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:07:53]wFMCommunicate OK [00:07:53]SAM_PROTO_GetShiftData done [00:07:53]1194 (1207) - счетчики итогов смены [00:07:53] 1134 (4) - 397 - количество чеков со всеми признаками расчетов [00:07:53] 1129 (158) - счетчики операций «приход» [00:07:53] 1135 (4) - 395 - количество чеков по признаку расчетов [00:07:53] 1201 (4) - 273661.76 - общая итоговая сумма в чеках [00:07:53] 1136 (4) - 231234.00 - итоговая сумма в чеках наличными [00:07:53] 1138 (3) - 42427.76 - итоговая сумма в чеках безналичными [00:07:53] 1024 (123) - суммы налогов [00:07:53] 1006 (9) - суммы НДС [00:07:53] 1010 (1) - 0% - код ставки НДС [00:07:53] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:53] 1006 (12) - суммы НДС [00:07:53] 1010 (1) - 12% - код ставки НДС [00:07:53] 1011 (3) - 29071.29 - сумма НДС по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 0% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (12) - суммы НСП [00:07:53] 1014 (1) - 1% - код ставки НСП [00:07:53] 1015 (3) - 2422.27 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 2% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 3% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 5% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 0,50% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 1,50% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1130 (151) - счетчики операций «возврат прихода» [00:07:53] 1135 (4) - 2 - количество чеков по признаку расчетов [00:07:53] 1201 (3) - 1130.00 - общая итоговая сумма в чеках [00:07:53] 1136 (3) - 1130.00 - итоговая сумма в чеках наличными [00:07:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:53] 1024 (121) - суммы налогов [00:07:53] 1006 (9) - суммы НДС [00:07:53] 1010 (1) - 0% - код ставки НДС [00:07:53] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:53] 1006 (11) - суммы НДС [00:07:53] 1010 (1) - 12% - код ставки НДС [00:07:53] 1011 (2) - 120.05 - сумма НДС по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 0% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (11) - суммы НСП [00:07:53] 1014 (1) - 1% - код ставки НСП [00:07:53] 1015 (2) - 10.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 2% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 3% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 5% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 0,50% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 1,50% - код ставки НСП [00:07:53] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:53] 1131 (141) - счетчики операций «расход» [00:07:53] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:53] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:53] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:53] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:53] 1024 (117) - суммы налогов [00:07:53] 1006 (9) - суммы НДС [00:07:53] 1010 (1) - 0% - код ставки НДС [00:07:53] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:53] 1006 (9) - суммы НДС [00:07:53] 1010 (1) - 12% - код ставки НДС [00:07:53] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:53] 1007 (9) - суммы НСП [00:07:53] 1014 (1) - 0% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 1% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 2% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 3% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 5% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 0,50% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 1,50% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1132 (141) - счетчики операций «возврат расхода» [00:07:54] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:54] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:54] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:54] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:54] 1024 (117) - суммы налогов [00:07:54] 1006 (9) - суммы НДС [00:07:54] 1010 (1) - 0% - код ставки НДС [00:07:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:54] 1006 (9) - суммы НДС [00:07:54] 1010 (1) - 12% - код ставки НДС [00:07:54] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 0% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 1% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 2% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 3% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 5% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 0,50% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1007 (9) - суммы НСП [00:07:54] 1014 (1) - 1,50% - код ставки НСП [00:07:54] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:54] 1133 (588) - - счетчики коррекции - не используются [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1194 (04AA) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1134 (046E) [00:07:54]Malloc new data [00:07:54]Processing tag 1129 (0469) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1135 (046F) [00:07:54]Malloc new data [00:07:54]Processing tag 1201 (04B1) [00:07:54]Malloc new data [00:07:54]Processing tag 1136 (0470) [00:07:54]Malloc new data [00:07:54]Processing tag 1138 (0472) [00:07:54]Malloc new data [00:07:54]Processing tag 1024 (0400) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1130 (046A) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1135 (046F) [00:07:54]Malloc new data [00:07:54]Processing tag 1201 (04B1) [00:07:54]Malloc new data [00:07:54]Processing tag 1136 (0470) [00:07:54]Malloc new data [00:07:54]Processing tag 1138 (0472) [00:07:54]Malloc new data [00:07:54]Processing tag 1024 (0400) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1131 (046B) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1135 (046F) [00:07:54]Malloc new data [00:07:54]Processing tag 1201 (04B1) [00:07:54]Malloc new data [00:07:54]Processing tag 1136 (0470) [00:07:54]Malloc new data [00:07:54]Processing tag 1138 (0472) [00:07:54]Malloc new data [00:07:54]Processing tag 1024 (0400) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1132 (046C) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1135 (046F) [00:07:54]Malloc new data [00:07:54]Processing tag 1201 (04B1) [00:07:54]Malloc new data [00:07:54]Processing tag 1136 (0470) [00:07:54]Malloc new data [00:07:54]Processing tag 1138 (0472) [00:07:54]Malloc new data [00:07:54]Processing tag 1024 (0400) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1006 (03EE) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1010 (03F2) [00:07:54]Malloc new data [00:07:54]Processing tag 1011 (03F3) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1007 (03EF) [00:07:54]Load OK [00:07:54]SetTLVBufToDocument [00:07:54]Processing tag 1014 (03F6) [00:07:54]Malloc new data [00:07:54]Processing tag 1015 (03F7) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Processing tag 1133 (046D) [00:07:54]Malloc new data [00:07:54]SetTLVBufToDocument err=0 [00:07:54]SetTLVBufToDocument err=0 [00:07:54]Malloc new data [00:07:54]SAM_PROTO_GetFMData [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 13 03 00 [00:07:54]Write to MH i2c: E2 08 00 BF 0B 80 13 03 00 00 00 00 00 49 [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 BF 0B 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 4D [00:07:55]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:07:55]wFMCommunicate OK [00:07:55]wFMCommunicate request_size=4 [00:07:55]MH_SAM_APDU [00:07:55]CAPDU: 80 17 00 00 [00:07:55]Write to MH i2c: E2 08 00 C0 0B 80 17 00 00 00 00 00 00 4B [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:55]Read from MH i2c: E2 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: E2 FD 00 C0 0B 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:07:56]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 C1 0B 80 17 00 00 00 00 00 00 4C [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:56]Read from MH i2c: E2 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: E2 FD 00 C1 0B 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [00:07:56]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:07:56]00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:07:56]wFMCommunicate OK [00:07:56]wFMCommunicate request_size=4 [00:07:56]MH_SAM_APDU [00:07:56]CAPDU: 80 17 00 00 [00:07:56]Write to MH i2c: E2 08 00 C2 0B 80 17 00 00 00 00 00 00 4D [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 FD 00 C2 0B 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C5 [00:07:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:57]wFMCommunicate OK [00:07:57]wFMCommunicate request_size=4 [00:07:57]MH_SAM_APDU [00:07:57]CAPDU: 80 17 00 00 [00:07:57]Write to MH i2c: E2 08 00 C3 0B 80 17 00 00 00 00 00 00 4E [00:07:57]Write i2c OK [00:07:57]MH_I2C_Read... [00:07:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:07:57]Read from MH i2c: E2 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 E5 00 [00:07:57]MH_I2C_Read... [00:07:57]Read from MH i2c: E2 E5 00 C3 0B 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 32 [00:07:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:57]wFMCommunicate OK [00:07:57]SAM_PROTO_GetFMData done [00:07:57]FM_GetFMData:85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:58]oper:6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:58]total:D4 6C 41 C9 01 [00:07:58]Malloc new data [00:07:58]oper:6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:58]total:98 1D 6A 0D [00:07:58]Malloc new data [00:07:58]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:58]total: [00:07:58]Malloc new data [00:07:58]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:58]total: [00:07:58]Malloc new data [00:07:58]KKMPrepareXReportFMData err=0 [00:07:58]Х отчет ИНН: 02508201610067 Кассир: Таалайбек к. П. 15.04.2024 00:07 Смена: 266 РНМ: 0000000000094237 ЗНМ: 0300000138 СНО: Общий режим Всего чеков: 397 ИТОГИ ПРИХОД Чеков: 395 Общий итог: 273661.76 Итого наличными: 231234.00 Итого безнал.: 42427.76 НДС 0% : 0.00 НДС 12% : 29071.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2422.27 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1130.00 Итого наличными: 1130.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 120.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 10.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 Нал. в кассе: 230104.00 НС Приход: 76714754.12 НС Возвр.Прихода: 2250582.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000875019 [00:07:58]StoreToDocumentArchive [00:07:58]MH_GetDate [00:07:58]Write to MH i2c: F0 00 00 C4 0B BE [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: F0 09 00 C4 0B 00 E0 6F 1C 66 E0 85 7F 64 E0 [00:07:58]shift 266 fd 1713139680 [00:07:58]Create dir for shift 0266 [00:07:58]save to /storage/0266/doc_1713139680 [00:07:58]save last doc name /storage/0266/doc_1713139680 to /storage/kkm_last_doc_name [00:07:58]save OK [00:07:58]Clear old archive folders... [00:07:58]NVStorageSaveData kkm_last_timestamp [00:07:58]File name is /storage/kkm_last_timestamp [00:07:58]Write 4 bytes [00:07:58]NVStorageSaveData done [00:07:58]ExternCall_PrintAddStr [00:07:58]wPrintStart [00:07:58]Write to MH i2c: 01 00 00 C5 0B D0 [00:07:58]Write i2c OK [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: 01 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: 01 07 00 [00:07:58]MH_I2C_Read... [00:07:58]Read from MH i2c: 01 07 00 C5 0B 00 00 00 00 00 FF 0F E5 [00:07:58]RasterBufferAndPrint [00:07:58]line Х отчет [00:07:58]line ИНН: 02508201610067 [00:07:58]line Кассир: Таалайбек к. П. [00:07:58]line 15.04.2024 00:07 [00:07:58]line Смена: 266 [00:07:58]line РНМ: 0000000000094237 [00:07:58]line ЗНМ: 0300000138 [00:07:58]line СНО: Общий режим [00:07:58]line Всего чеков: 397 [00:07:58]line ИТОГИ ПРИХОД [00:07:58]line Чеков: 395 [00:07:58]line Общий итог: 273661.76 [00:07:58]line Итого наличными: 231234.00 [00:07:58]line Итого безнал.: 42427.76 [00:07:58]line НДС 0% : 0.00 [00:07:58]line НДС 12% : 29071.29 [00:07:58]line НСП 0% : 0.00 [00:07:58]line НСП 1,50% : 0.00 [00:07:58]line НСП 0,50% : 0.00 [00:07:58]line НСП 5% : 0.00 [00:07:58]line НСП 3% : 0.00 [00:07:58]line НСП 2% : 0.00 [00:07:58]line НСП 1% : 2422.27 [00:07:58]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:58]line Чеков: 2 [00:07:58]line Общий итог: 1130.00 [00:07:58]line Итого наличными: 1130.00 [00:07:58]line Итого безнал.: 0.00 [00:07:58]line НДС 0% : 0.00 [00:07:58]line НДС 12% : 120.05 [00:07:58]line НСП 0% : 0.00 [00:07:59]line НСП 1,50% : 0.00 [00:07:59]line НСП 0,50% : 0.00 [00:07:59]line НСП 5% : 0.00 [00:07:59]line НСП 3% : 0.00 [00:07:59]line НСП 2% : 0.00 [00:07:59]line НСП 1% : 10.00 [00:07:59]line ИТОГИ РАСХОД [00:07:59]line Чеков: 0 [00:07:59]line Общий итог: 0.00 [00:07:59]line Итого наличными: 0.00 [00:07:59]line Итого безнал.: 0.00 [00:07:59]line НДС 0% : 0.00 [00:07:59]line НДС 12% : 0.00 [00:07:59]line НСП 0% : 0.00 [00:07:59]line НСП 1,50% : 0.00 [00:07:59]line НСП 0,50% : 0.00 [00:07:59]line НСП 5% : 0.00 [00:07:59]line НСП 3% : 0.00 [00:07:59]line НСП 2% : 0.00 [00:07:59]line НСП 1% : 0.00 [00:07:59]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:59]line Чеков: 0 [00:07:59]line Общий итог: 0.00 [00:07:59]line Итого наличными: 0.00 [00:07:59]line Итого безнал.: 0.00 [00:07:59]line НДС 0% : 0.00 [00:07:59]line НДС 12% : 0.00 [00:07:59]line НСП 0% : 0.00 [00:07:59]line НСП 1,50% : 0.00 [00:07:59]line НСП 0,50% : 0.00 [00:07:59]line НСП 5% : 0.00 [00:07:59]line НСП 3% : 0.00 [00:07:59]line НСП 2% : 0.00 [00:07:59]line НСП 1% : 0.00 [00:07:59]line Сумма внесений: 0.00 [00:07:59]line Сумма выплат: 0.00 [00:07:59]line Нал. в кассе: 230104.00 [00:07:59]line НС Приход: 76714754.12 [00:07:59]line НС Возвр.Прихода: 2250582.00 [00:07:59]line НС Расход: 0.00 [00:07:59]line НС Возвр.Расхода: 0.00 [00:07:59]line ФМ: 0000000000875019 [00:07:59]written 0, free lines is 4095 [00:07:59]Write to MH i2c: 01 00 00 10 0C 1C [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: 01 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: 01 07 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 C1 0A EE [00:07:59]RasterBufferAndPrint [00:07:59]line [00:07:59]line [00:07:59]line [00:07:59]line [00:07:59]line [00:07:59]written 0, free lines is 2790 [00:07:59]MH_Cut [00:07:59]Write to MH i2c: D1 01 00 17 0C 01 F5 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: D1 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: D1 01 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: D1 01 00 17 0C 00 F4 [00:07:59]Write to MH i2c: 01 00 00 18 0C 24 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:08:00]*** Cut start [00:08:00]*** Partial cut [00:08:00]*** CUTSNS_PIN = 1 [00:08:00]*** CUTSNS_PIN = 0 [00:08:01]*** Brake cut motor [00:08:01]Read from MH i2c: 01 [00:08:01]MH_I2C_Read... [00:08:01]*** Stop cut motor [00:08:01]*** Cut end [00:08:01]Read from MH i2c: 01 07 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: 01 07 00 18 0C 00 00 00 00 00 FF 0F 39 [00:08:01]process_action x_report done [00:08:01]requested_data is exist [00:08:01]produce_requested_data [00:08:01]requested_item fd.num is exist - process it [00:08:01]SAM_PROTO_GetFieldsCounters [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 00 00 [00:08:01]Write to MH i2c: E2 08 00 19 0C 80 13 00 00 00 00 00 00 A1 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 62 00 19 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [00:08:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 OFD Sender: No OFD packet to send [00:08:01]5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetFieldsCounters done [00:08:01]requested_item shift.num is exist - process it [00:08:01]requested_item shift.opened is exist - process it [00:08:01]req_shift_opened [00:08:01]FM_GetShiftState [00:08:01]SAM_PROTO_GetShiftState [00:08:01]wFMCommunicate request_size=4 [00:08:01]MH_SAM_APDU [00:08:01]CAPDU: 80 13 01 00 [00:08:01]Write to MH i2c: E2 08 00 1A 0C 80 13 01 00 00 00 00 00 A3 [00:08:01]Write i2c OK [00:08:01]MH_I2C_Read... [00:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:01]Read from MH i2c: E2 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 [00:08:01]MH_I2C_Read... [00:08:01]Read from MH i2c: E2 0E 00 1A 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3B [00:08:01]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:08:01]wFMCommunicate OK [00:08:01]SAM_PROTO_GetShiftState done [00:08:01]FM_GetShiftState done [00:08:01]req_shift_opened done [00:08:01]requested_item shift.open_date is exist - process it [00:08:01]req_shift_open_date [00:08:01]req_shift_open_date done [00:08:01]produce_requested_data done [00:08:01]produce_requested_data return {"fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:08:01]process_action_free x_report [00:08:01]json_value_free [00:08:01]json_value_free done [00:08:01]process_json_proto returns [00:08:01]Send response to host [00:08:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:08:01]free response buf [00:08:01]execute_script done [00:08:01]execute_script returns [00:08:01]free content buf [00:08:01]Sock 7.Close socket [00:08:01]Sock 7.Thread stoped [00:08:06]accept exits with 9 [00:08:06]New connection [00:08:06]New thread 3067317604 created [00:08:06]Thread 3067174244 joined [00:08:06]Waiting for new connection... [00:08:06] Sock 9.Parse request [00:08:06]Sock 9.Check first char [00:08:06]Sock 9.First char is OK [00:08:06]request: POST /json_proto HTTP/1.0 [00:08:06]Method: POST [00:08:06]URL: /json_proto [00:08:06]Method is POST - this is cgi request [00:08:06]url: /json_proto [00:08:06]query_string will be loaded in cgi processing [00:08:06]execute_cgi json_proto POST (null) [00:08:06]execute_cgi path=json_proto method=POST [00:08:06]POST find Content-Length [00:08:06]Host: 172.17.96.197:8080 [00:08:06]Content-Length: 215 [00:08:06]Content-Type: application/json [00:08:06] [00:08:06]POST finish read [00:08:06]Found Content-Length = 215 [00:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:06]execute_script... [00:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:06]POST & json_proto [00:08:06]process_json_proto [00:08:06]json parsed OK: [00:08:06]protocol is kg_v1.0 [00:08:06]action value=get_value [00:08:06]process_action get_value [00:08:06]cmd_get_value [00:08:06]process_action get_value done [00:08:06]requested_data is exist [00:08:06]produce_requested_data [00:08:06]requested_item kkm.sn is exist - process it [00:08:06]requested_item kkm.ver is exist - process it [00:08:06]requested_item fm.sn is exist - process it [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 11 00 00 [00:08:06]Write to MH i2c: E2 08 00 1B 0C 80 11 00 00 00 00 00 00 A1 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 17 00 1B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F2 [00:08:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:08:06]wFMCommunicate OK [00:08:06]requested_item fd.num is exist - process it [00:08:06]SAM_PROTO_GetFieldsCounters [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 00 00 [00:08:06]Write to MH i2c: E2 08 00 1C 0C 80 13 00 00 00 00 00 00 A4 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 62 00 [00:08:06]MH_I2C_Read... [00:08:06]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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 FD [00:08:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 72 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetFieldsCounters done [00:08:06]requested_item shift.num is exist - process it [00:08:06]requested_item shift.opened is exist - process it [00:08:06]req_shift_opened [00:08:06]FM_GetShiftState [00:08:06]SAM_PROTO_GetShiftState [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 01 00 [00:08:06]Write to MH i2c: E2 08 00 1D 0C 80 13 01 00 00 00 00 00 A6 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:06]OFD Sender: No OFD packet to send [00:08:06]Read from MH i2c: E2 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0E 00 [00:08:06]MH_I2C_Read... [00:08:06]Read from MH i2c: E2 0E 00 1D 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 3E [00:08:06]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:08:06]wFMCommunicate OK [00:08:06]SAM_PROTO_GetShiftState done [00:08:06]FM_GetShiftState done [00:08:06]req_shift_opened done [00:08:06]requested_item shift.open_date is exist - process it [00:08:06]req_shift_open_date [00:08:06]req_shift_open_date done [00:08:06]produce_requested_data done [00:08:06]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696} [00:08:06]process_action_free get_value [00:08:06]json_value_free [00:08:06]json_value_free done [00:08:06]process_json_proto returns [00:08:06]Send response to host [00:08:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112498,"shift.num":357,"shift.opened":1,"shift.open_date":1713054696}}} [00:08:06]free response buf [00:08:06]execute_script done [00:08:06]execute_script returns [00:08:06]free content buf [00:08:06]Sock 9.Close socket [00:08:06]Sock 9.Thread stoped [00:08:06]accept exits with 7 [00:08:06]New connection [00:08:06]New thread 3067174244 created [00:08:06]Thread 3067317604 joined [00:08:06]Waiting for new connection... [00:08:06] Sock 7.Parse request [00:08:06]Sock 7.Check first char [00:08:06]Sock 7.First char is OK [00:08:06]request: POST /json_proto HTTP/1.0 [00:08:06]Method: POST [00:08:06]URL: /json_proto [00:08:06]Method is POST - this is cgi request [00:08:06]url: /json_proto [00:08:06]query_string will be loaded in cgi processing [00:08:06]execute_cgi json_proto POST (null) [00:08:06]execute_cgi path=json_proto method=POST [00:08:06]POST find Content-Length [00:08:06]Host: 172.17.96.197:8080 [00:08:06]Content-Length: 331 [00:08:06]Content-Type: application/json [00:08:06] [00:08:06]POST finish read [00:08:06]Found Content-Length = 331 [00:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:06]execute_script... [00:08:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:06]POST & json_proto [00:08:06]process_json_proto [00:08:06]json parsed OK: [00:08:06]protocol is kg_v1.0 [00:08:06]action value=get_value [00:08:06]process_action get_value [00:08:06]cmd_get_value [00:08:06]process_action get_value done [00:08:06]requested_data is exist [00:08:06]produce_requested_data [00:08:06]requested_item fm.sale.total is exist - process it [00:08:06]SAM_PROTO_GetFMData [00:08:06]wFMCommunicate request_size=4 [00:08:06]MH_SAM_APDU [00:08:06]CAPDU: 80 13 03 00 [00:08:06]Write to MH i2c: E2 08 00 1E 0C 80 13 03 00 00 00 00 00 A9 [00:08:06]Write i2c OK [00:08:06]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 1E 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 AD [00:08:07]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:08:07]wFMCommunicate OK [00:08:07]wFMCommunicate request_size=4 [00:08:07]MH_SAM_APDU [00:08:07]CAPDU: 80 17 00 00 [00:08:07]Write to MH i2c: E2 08 00 1F 0C 80 17 00 00 00 00 00 00 AB [00:08:07]Write i2c OK [00:08:07]MH_I2C_Read... [00:08:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:07]Read from MH i2c: E2 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 [00:08:07]MH_I2C_Read... [00:08:07]Read from MH i2c: E2 FD 00 1F 0C 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 82 [00:08:08]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 20 0C 80 17 00 00 00 00 00 00 AC [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 20 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 84 [00:08:08]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:08]wFMCommunicate OK [00:08:08]wFMCommunicate request_size=4 [00:08:08]MH_SAM_APDU [00:08:08]CAPDU: 80 17 00 00 [00:08:08]Write to MH i2c: E2 08 00 21 0C 80 17 00 00 00 00 00 00 AD [00:08:08]Write i2c OK [00:08:08]MH_I2C_Read... [00:08:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:08]Read from MH i2c: E2 [00:08:08]MH_I2C_Read... [00:08:08]Read from MH i2c: E2 FD 00 [00:08:08]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 FD 00 21 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 25 [00:08:09]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:09]wFMCommunicate OK [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 17 00 00 [00:08:09]Write to MH i2c: E2 08 00 22 0C 80 17 00 00 00 00 00 00 AE [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:09]Read from MH i2c: E2 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 E5 00 [00:08:09]MH_I2C_Read... [00:08:09]Read from MH i2c: E2 E5 00 22 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 92 [00:08:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:09]wFMCommunicate OK [00:08:09]SAM_PROTO_GetFMData done [00:08:09]requested_item fm.sale_refund.total is exist - process it [00:08:09]requested_item fm.buy.total is exist - process it [00:08:09]requested_item shift.sale.total is exist - process it [00:08:09]SAM_PROTO_GetShiftData [00:08:09]wFMCommunicate request_size=4 [00:08:09]MH_SAM_APDU [00:08:09]CAPDU: 80 13 02 00 [00:08:09]Write to MH i2c: E2 08 00 23 0C 80 13 02 00 00 00 00 00 AD [00:08:09]Write i2c OK [00:08:09]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 23 0C 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 3E [00:08:10]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:08:10]wFMCommunicate OK [00:08:10]wFMCommunicate request_size=4 [00:08:10]MH_SAM_APDU [00:08:10]CAPDU: 80 17 00 00 [00:08:10]Write to MH i2c: E2 08 00 24 0C 80 17 00 00 00 00 00 00 B0 [00:08:10]Write i2c OK [00:08:10]MH_I2C_Read... [00:08:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:10]Read from MH i2c: E2 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 [00:08:10]MH_I2C_Read... [00:08:10]Read from MH i2c: E2 FD 00 24 0C 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [00:08:11]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 17 00 00 [00:08:11]Write to MH i2c: E2 08 00 25 0C 80 17 00 00 00 00 00 00 B1 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:11]Read from MH i2c: E2 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 [00:08:11]MH_I2C_Read... [00:08:11]Read from MH i2c: E2 FD 00 25 0C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DD [00:08:11]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:08:11]00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 90 00 [00:08:11]wFMCommunicate OK [00:08:11]wFMCommunicate request_size=4 [00:08:11]MH_SAM_APDU [00:08:11]CAPDU: 80 17 00 00 [00:08:11]Write to MH i2c: E2 08 00 26 0C 80 17 00 00 00 00 00 00 B2 [00:08:11]Write i2c OK [00:08:11]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 FD 00 26 0C 00 00 00 EF 03 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 90 00 27 [00:08:12]RAPDU: 00 00 EF 03 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 90 00 [00:08:12]wFMCommunicate OK [00:08:12]wFMCommunicate request_size=4 [00:08:12]MH_SAM_APDU [00:08:12]CAPDU: 80 17 00 00 [00:08:12]Write to MH i2c: E2 08 00 27 0C 80 17 00 00 00 00 00 00 B3 [00:08:12]Write i2c OK [00:08:12]MH_I2C_Read... [00:08:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:08:12]Read from MH i2c: E2 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 D8 00 [00:08:12]MH_I2C_Read... [00:08:12]Read from MH i2c: E2 D8 00 27 0C 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 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 9A [00:08:12]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 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:08:13]wFMCommunicate OK [00:08:13]SAM_PROTO_GetShiftData done [00:08:13]requested_item shift.sale.total_cash is exist - process it [00:08:13]requested_item shift.sale_refund.total is exist - process it [00:08:13]requested_item shift.sale_refund.total_cash is exist - process it [00:08:13]requested_item shift.buy.total is exist - process it [00:08:13]requested_item shift.buy.total_cash is exist - process it [00:08:13]produce_requested_data done [00:08:13]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:13]process_action_free get_value [00:08:13]json_value_free [00:08:13]json_value_free done [00:08:13]process_json_proto returns [00:08:13]Send response to host [00:08:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:13]free response buf [00:08:13]execute_script done [00:08:13]execute_script returns [00:08:13]free content buf [00:08:13]Sock 7.Close socket [00:08:13]Sock 7.Thread stoped [00:08:13]accept exits with 9 [00:08:13]New connection [00:08:13]New thread 3067317604 created [00:08:13]Thread 3067174244 joined [00:08:13]Waiting for new connection... [00:08:13] Sock 9.Parse request [00:08:13]Sock 9.Check first char [00:08:13]Sock 9.First char is OK [00:08:13]request: POST /json_proto HTTP/1.0 [00:08:13]Method: POST [00:08:13]URL: /json_proto [00:08:13]Method is POST - this is cgi request [00:08:13]url: /json_proto [00:08:13]query_string will be loaded in cgi processing [00:08:13]execute_cgi json_proto POST (null) [00:08:13]execute_cgi path=json_proto method=POST [00:08:13]POST find Content-Length [00:08:13]Host: 172.17.96.197:8080 [00:08:13]Content-Length: 331 [00:08:13]Content-Type: application/json [00:08:13] [00:08:13]POST finish read [00:08:13]Found Content-Length = 331 [00:08:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:13]execute_script... [00:08:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:13]POST & json_proto [00:08:13]process_json_proto [00:08:13]json parsed OK: [00:08:13]protocol is kg_v1.0 [00:08:13]action value=get_value [00:08:13]process_action get_value [00:08:13]cmd_get_value [00:08:13]process_action get_value done [00:08:13]requested_data is exist [00:08:13]produce_requested_data [00:08:13]requested_item fm.sale.total is exist - process it [00:08:13]SAM_PROTO_GetFMData [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 13 03 00 [00:08:13]Write to MH i2c: E2 08 00 28 0C 80 13 03 00 00 00 00 00 B3 [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 [00:08:13]MH_I2C_Read... [00:08:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:13]Read from MH i2c: E2 FD 00 [00:08:13]MH_I2C_Read... [00:08:13]Read from MH i2c: E2 FD 00 28 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 B7 [00:08:13]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:08:13]wFMCommunicate OK [00:08:13]wFMCommunicate request_size=4 [00:08:13]MH_SAM_APDU [00:08:13]CAPDU: 80 17 00 00 [00:08:13]Write to MH i2c: E2 08 00 29 0C 80 17 00 00 00 00 00 00 B5 [00:08:13]Write i2c OK [00:08:13]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 29 0C 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8C [00:08:14]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:14]wFMCommunicate OK [00:08:14]wFMCommunicate request_size=4 [00:08:14]MH_SAM_APDU [00:08:14]CAPDU: 80 17 00 00 [00:08:14]Write to MH i2c: E2 08 00 2A 0C 80 17 00 00 00 00 00 00 B6 [00:08:14]Write i2c OK [00:08:14]MH_I2C_Read... [00:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:14]Read from MH i2c: E2 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 [00:08:14]MH_I2C_Read... [00:08:14]Read from MH i2c: E2 FD 00 2A 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 8E [00:08:14]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 2B 0C 80 17 00 00 00 00 00 00 B7 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:15]Read from MH i2c: E2 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 [00:08:15]MH_I2C_Read... [00:08:15]Read from MH i2c: E2 FD 00 2B 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2F [00:08:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:15]wFMCommunicate OK [00:08:15]wFMCommunicate request_size=4 [00:08:15]MH_SAM_APDU [00:08:15]CAPDU: 80 17 00 00 [00:08:15]Write to MH i2c: E2 08 00 2C 0C 80 17 00 00 00 00 00 00 B8 [00:08:15]Write i2c OK [00:08:15]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 E5 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 E5 00 2C 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9C [00:08:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:16]wFMCommunicate OK [00:08:16]SAM_PROTO_GetFMData done [00:08:16]requested_item fm.sale_refund.total is exist - process it [00:08:16]requested_item fm.buy.total is exist - process it [00:08:16]requested_item shift.sale.total is exist - process it [00:08:16]SAM_PROTO_GetShiftData [00:08:16]wFMCommunicate request_size=4 [00:08:16]MH_SAM_APDU [00:08:16]CAPDU: 80 13 02 00 [00:08:16]Write to MH i2c: E2 08 00 2D 0C 80 13 02 00 00 00 00 00 B7 [00:08:16]Write i2c OK [00:08:16]MH_I2C_Read... [00:08:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:16]Read from MH i2c: E2 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 [00:08:16]MH_I2C_Read... [00:08:16]Read from MH i2c: E2 FD 00 2D 0C 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 48 [00:08:17]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E OFD Sender: No OFD packet to send [00:08:17]00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:08:17]wFMCommunicate OK [00:08:17]wFMCommunicate request_size=4 [00:08:17]MH_SAM_APDU [00:08:17]CAPDU: 80 17 00 00 [00:08:17]Write to MH i2c: E2 08 00 2E 0C 80 17 00 00 00 00 00 00 BA [00:08:17]Write i2c OK [00:08:17]MH_I2C_Read... [00:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:17]Read from MH i2c: E2 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 [00:08:17]MH_I2C_Read... [00:08:17]Read from MH i2c: E2 FD 00 2E 0C 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4F [00:08:17]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 2F 0C 80 17 00 00 00 00 00 00 BB [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 2F 0C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [00:08:18]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:18]wFMCommunicate OK [00:08:18]wFMCommunicate request_size=4 [00:08:18]MH_SAM_APDU [00:08:18]CAPDU: 80 17 00 00 [00:08:18]Write to MH i2c: E2 08 00 30 0C 80 17 00 00 00 00 00 00 BC [00:08:18]Write i2c OK [00:08:18]MH_I2C_Read... [00:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:18]Read from MH i2c: E2 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 [00:08:18]MH_I2C_Read... [00:08:18]Read from MH i2c: E2 FD 00 30 0C 00 00 00 EF 03 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 90 00 31 [00:08:19]RAPDU: 00 00 EF 03 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 90 00 [00:08:19]wFMCommunicate OK [00:08:19]wFMCommunicate request_size=4 [00:08:19]MH_SAM_APDU [00:08:19]CAPDU: 80 17 00 00 [00:08:19]Write to MH i2c: E2 08 00 31 0C 80 17 00 00 00 00 00 00 BD [00:08:19]Write i2c OK [00:08:19]MH_I2C_Read... [00:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:08:19]Read from MH i2c: E2 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 D8 00 [00:08:19]MH_I2C_Read... [00:08:19]Read from MH i2c: E2 D8 00 31 0C 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 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 A4 [00:08:19]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 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:08:19]wFMCommunicate OK [00:08:19]SAM_PROTO_GetShiftData done [00:08:19]requested_item shift.sale.total_cash is exist - process it [00:08:19]requested_item shift.sale_refund.total is exist - process it [00:08:19]requested_item shift.sale_refund.total_cash is exist - process it [00:08:19]requested_item shift.buy.total is exist - process it [00:08:19]requested_item shift.buy.total_cash is exist - process it [00:08:19]produce_requested_data done [00:08:19]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:19]process_action_free get_value [00:08:19]json_value_free [00:08:19]json_value_free done [00:08:19]process_json_proto returns [00:08:19]Send response to host [00:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:19]free response buf [00:08:19]execute_script done [00:08:19]execute_script returns [00:08:19]free content buf [00:08:19]Sock 9.Close socket [00:08:19]Sock 9.Thread stoped [00:08:19]accept exits with 7 [00:08:19]New connection [00:08:19]New thread 3067174244 created [00:08:19]Thread 3067317604 joined [00:08:19]Waiting for new connection... [00:08:19] Sock 7.Parse request [00:08:19]Sock 7.Check first char [00:08:19]Sock 7.First char is OK [00:08:19]request: POST /json_proto HTTP/1.0 [00:08:19]Method: POST [00:08:19]URL: /json_proto [00:08:19]Method is POST - this is cgi request [00:08:19]url: /json_proto [00:08:19]query_string will be loaded in cgi processing [00:08:19]execute_cgi json_proto POST (null) [00:08:19]execute_cgi path=json_proto method=POST [00:08:19]POST find Content-Length [00:08:19]Host: 172.17.96.197:8080 [00:08:19]Content-Length: 274 [00:08:19]Content-Type: application/json [00:08:19] [00:08:19]POST finish read [00:08:19]Found Content-Length = 274 [00:08:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:19]execute_script... [00:08:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0422\u0430\u0430\u043B\u0430\u0439\u0431\u0435\u043A \u043A. \u041F. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:19]POST & json_proto [00:08:19]process_json_proto [00:08:19]json parsed OK: [00:08:19]protocol is kg_v1.0 [00:08:19]action value=close_shift [00:08:19]process_action close_shift [00:08:19]cmd_close_shift [00:08:19]MH_GetDate [00:08:19]Write to MH i2c: F0 00 00 32 0C 2D [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 09 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 09 00 32 0C 00 F5 6F 1C 66 E0 85 7F 64 64 [00:08:20]GetLastDocTimeStamp 1713139672 [00:08:20]current date 1713139701 [00:08:20]FM_GetShiftState [00:08:20]SAM_PROTO_GetShiftState [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 13 01 00 [00:08:20]Write to MH i2c: E2 08 00 33 0C 80 13 01 00 00 00 00 00 BC [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 0E 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 0E 00 33 0C 00 09 00 01 E8 23 1B 66 00 00 00 00 90 00 54 [00:08:20]RAPDU: 09 00 01 E8 23 1B 66 00 00 00 00 90 00 [00:08:20]wFMCommunicate OK [00:08:20]SAM_PROTO_GetShiftState done [00:08:20]FM_GetShiftState done [00:08:20]KKMCreateCloseShiftDocument [00:08:20]Load OK [00:08:20]Malloc new data [00:08:20]MH_GetDate [00:08:20]Write to MH i2c: F0 00 00 34 0C 2F [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 09 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: F0 09 00 34 0C 00 F5 6F 1C 66 E0 85 7F 64 66 [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]Malloc new data [00:08:20]KKMCreateCloseShiftDocument OK [00:08:20]KKMSetCloseShiftData OK [00:08:20]ProcessDocumentItem done err = 0, tmpTLVsize=77 [00:08:20]tlvbuf is 01B11210 [00:08:20]KKMLoadAndSignCloseShiftData [00:08:20]SAM_PROTO_ProcessDocument [00:08:20]wFMCommunicate request_size=9 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 01 00 04 05 00 4D 00 [00:08:20]Write to MH i2c: E2 0C 00 35 0C 80 15 01 00 04 00 05 00 4D 00 00 00 1A [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 35 0C 00 90 00 B5 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=23 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:08:20]Write to MH i2c: E2 1A 00 36 0C 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 B7 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=36 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 [00:08:20]Write to MH i2c: E2 27 00 37 0C 80 15 02 00 1F 00 FD 03 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 00 00 67 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=13 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 02 00 08 F4 03 04 00 F5 6F 1C 66 [00:08:20]Write to MH i2c: E2 10 00 38 0C 80 15 02 00 08 00 F4 03 04 00 F5 6F 1C 66 00 00 B5 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=25 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 [00:08:20]Write to MH i2c: E2 1C 00 39 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 00 00 27 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:20]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:20]Read from MH i2c: E2 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 [00:08:20]MH_I2C_Read... [00:08:20]Read from MH i2c: E2 03 00 39 0C 00 90 00 B9 [00:08:20]RAPDU: 90 00 [00:08:20]wFMCommunicate OK [00:08:20]wFMCommunicate request_size=4 [00:08:20]MH_SAM_APDU [00:08:20]CAPDU: 80 15 03 00 [00:08:20]Write to MH i2c: E2 08 00 3A 0C 80 15 03 00 00 00 00 00 C7 [00:08:20]Write i2c OK [00:08:20]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 FD 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 FD 00 3A 0C 00 FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 90 00 23 [00:08:21]RAPDU: FE 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 90 00 [00:08:21]wFMCommunicate OK [00:08:21]SAM_PROTO_ProcessDocument answer len = 1278 [00:08:21]SAM_PROTO_ProcessDocument remain to read = 1030 [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 17 00 00 [00:08:21]Write to MH i2c: E2 08 00 3B 0C 80 17 00 00 00 00 00 00 C7 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 3B 0C 00 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E 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 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [00:08:22]RAPDU: B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 OFD Sender: No OFD packet to send [00:08:22]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E 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 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:22]wFMCommunicate OK [00:08:22]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:22]SAM_PROTO_ProcessDocument remain to read = 780 [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 17 00 00 [00:08:22]Write to MH i2c: E2 08 00 3C 0C 80 17 00 00 00 00 00 00 C8 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 3C 0C 00 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2E [00:08:22]RAPDU: 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:23]SAM_PROTO_ProcessDocument remain to read = 530 [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 17 00 00 [00:08:23]Write to MH i2c: E2 08 00 3D 0C 80 17 00 00 00 00 00 00 C9 [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 3D 0C 00 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 67 [00:08:23]RAPDU: 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:23]wFMCommunicate OK [00:08:23]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:23]SAM_PROTO_ProcessDocument remain to read = 280 [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 17 00 00 [00:08:23]Write to MH i2c: E2 08 00 3E 0C 80 17 00 00 00 00 00 00 CA [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 3E 0C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [00:08:24]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:24]wFMCommunicate OK [00:08:24]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:24]SAM_PROTO_ProcessDocument remain to read = 30 [00:08:24]wFMCommunicate request_size=4 [00:08:24]MH_SAM_APDU [00:08:24]CAPDU: 80 17 00 00 [00:08:24]Write to MH i2c: E2 08 00 3F 0C 80 17 00 00 00 00 00 00 CB [00:08:24]Write i2c OK [00:08:24]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 30! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 21 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 21 00 3F 0C 00 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 13 4A CD A2 47 E6 90 00 0A [00:08:24]RAPDU: 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 13 4A CD A2 47 E6 90 00 [00:08:24]wFMCommunicate OK [00:08:24]SAM_PROTO_ProcessDocument received (without SW) 30 bytes [00:08:24]SAM_PROTO_ProcessDocument done [00:08:24]1209 (1) - 1.0 - номер версии ФФД [00:08:24]1041 (16) - 0000000000875019 - номер ФМ [00:08:24]1040 (4) - 112499 - номер ФД [00:08:24]1038 (4) - 357 - номер смены [00:08:24]1118 (4) - 397 - количество кассовых чеков за смену [00:08:24]1111 (4) - 399 - общее количество ФД за смену [00:08:24]1194 (1207) - счетчики итогов смены [00:08:24] 1134 (4) - 397 - количество чеков со всеми признаками расчетов [00:08:24] 1129 (158) - счетчики операций «приход» [00:08:24] 1135 (4) - 395 - количество чеков по признаку расчетов [00:08:24] 1201 (4) - 273661.76 - общая итоговая сумма в чеках [00:08:24] 1136 (4) - 231234.00 - итоговая сумма в чеках наличными [00:08:24] 1138 (3) - 42427.76 - итоговая сумма в чеках безналичными [00:08:24] 1024 (123) - суммы налогов [00:08:24] 1006 (9) - суммы НДС [00:08:24] 1010 (1) - 0% - код ставки НДС [00:08:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:24] 1006 (12) - суммы НДС [00:08:24] 1010 (1) - 12% - код ставки НДС [00:08:24] 1011 (3) - 29071.29 - сумма НДС по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 0% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (12) - суммы НСП [00:08:24] 1014 (1) - 1% - код ставки НСП [00:08:24] 1015 (3) - 2422.27 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 2% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 3% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 5% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 0,50% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 1,50% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1130 (151) - счетчики операций «возврат прихода» [00:08:24] 1135 (4) - 2 - количество чеков по признаку расчетов [00:08:24] 1201 (3) - 1130.00 - общая итоговая сумма в чеках [00:08:24] 1136 (3) - 1130.00 - итоговая сумма в чеках наличными [00:08:24] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:24] 1024 (121) - суммы налогов [00:08:24] 1006 (9) - суммы НДС [00:08:24] 1010 (1) - 0% - код ставки НДС [00:08:24] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:24] 1006 (11) - суммы НДС [00:08:24] 1010 (1) - 12% - код ставки НДС [00:08:24] 1011 (2) - 120.05 - сумма НДС по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 0% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (11) - суммы НСП [00:08:24] 1014 (1) - 1% - код ставки НСП [00:08:24] 1015 (2) - 10.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 2% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 3% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 5% - код ставки НСП [00:08:24] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:24] 1007 (9) - суммы НСП [00:08:24] 1014 (1) - 0,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 1,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1131 (141) - счетчики операций «расход» [00:08:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:25] 1024 (117) - суммы налогов [00:08:25] 1006 (9) - суммы НДС [00:08:25] 1010 (1) - 0% - код ставки НДС [00:08:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:25] 1006 (9) - суммы НДС [00:08:25] 1010 (1) - 12% - код ставки НДС [00:08:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 0% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 1% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 2% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 3% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 5% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 0,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 1,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1132 (141) - счетчики операций «возврат расхода» [00:08:25] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:25] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:25] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:25] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:25] 1024 (117) - суммы налогов [00:08:25] 1006 (9) - суммы НДС [00:08:25] 1010 (1) - 0% - код ставки НДС [00:08:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:25] 1006 (9) - суммы НДС [00:08:25] 1010 (1) - 12% - код ставки НДС [00:08:25] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 0% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 1% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 2% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 3% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 5% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 0,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1007 (9) - суммы НСП [00:08:25] 1014 (1) - 1,50% - код ставки НСП [00:08:25] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:25] 1133 (588) - - счетчики коррекции - не используются [00:08:25]1077 (6) - 21211998472166 - ФПД [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1209 (04B9) [00:08:25]Malloc new data [00:08:25]Processing tag 1041 (0411) [00:08:25]Processing tag 1040 (0410) [00:08:25]Malloc new data [00:08:25]Processing tag 1038 (040E) [00:08:25]Malloc new data [00:08:25]Processing tag 1118 (045E) [00:08:25]Malloc new data [00:08:25]Processing tag 1111 (0457) [00:08:25]Malloc new data [00:08:25]Processing tag 1194 (04AA) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1134 (046E) [00:08:25]Malloc new data [00:08:25]Processing tag 1129 (0469) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1135 (046F) [00:08:25]Malloc new data [00:08:25]Processing tag 1201 (04B1) [00:08:25]Malloc new data [00:08:25]Processing tag 1136 (0470) [00:08:25]Malloc new data [00:08:25]Processing tag 1138 (0472) [00:08:25]Malloc new data [00:08:25]Processing tag 1024 (0400) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1130 (046A) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1135 (046F) [00:08:25]Malloc new data [00:08:25]Processing tag 1201 (04B1) [00:08:25]Malloc new data [00:08:25]Processing tag 1136 (0470) [00:08:25]Malloc new data [00:08:25]Processing tag 1138 (0472) [00:08:25]Malloc new data [00:08:25]Processing tag 1024 (0400) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1131 (046B) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1135 (046F) [00:08:25]Malloc new data [00:08:25]Processing tag 1201 (04B1) [00:08:25]Malloc new data [00:08:25]Processing tag 1136 (0470) [00:08:25]Malloc new data [00:08:25]Processing tag 1138 (0472) [00:08:25]Malloc new data [00:08:25]Processing tag 1024 (0400) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1132 (046C) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1135 (046F) [00:08:25]Malloc new data [00:08:25]Processing tag 1201 (04B1) [00:08:25]Malloc new data [00:08:25]Processing tag 1136 (0470) [00:08:25]Malloc new data [00:08:25]Processing tag 1138 (0472) [00:08:25]Malloc new data [00:08:25]Processing tag 1024 (0400) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1006 (03EE) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1010 (03F2) [00:08:25]Malloc new data [00:08:25]Processing tag 1011 (03F3) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1007 (03EF) [00:08:25]Load OK [00:08:25]SetTLVBufToDocument [00:08:25]Processing tag 1014 (03F6) [00:08:25]Malloc new data [00:08:25]Processing tag 1015 (03F7) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1133 (046D) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Processing tag 1077 (0435) [00:08:25]Malloc new data [00:08:25]SetTLVBufToDocument err=0 [00:08:25]Malloc new data [00:08:25]SAM_PROTO_GetFMData [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 13 03 00 [00:08:25]Write to MH i2c: E2 08 00 40 0C 80 13 03 00 00 00 00 00 CB [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 40 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 CF [00:08:26]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:08:26]wFMCommunicate OK [00:08:26]wFMCommunicate request_size=4 [00:08:26]MH_SAM_APDU [00:08:26]CAPDU: 80 17 00 00 [00:08:26]Write to MH i2c: E2 08 00 41 0C 80 17 00 00 00 00 00 00 CD [00:08:26]Write i2c OK [00:08:26]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 41 0C 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:08:27]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [00:08:27]04 04 00 00 00 00 90 00 [00:08:27]wFMCommunicate OK [00:08:27]wFMCommunicate request_size=4 [00:08:27]MH_SAM_APDU [00:08:27]CAPDU: 80 17 00 00 [00:08:27]Write to MH i2c: E2 08 00 42 0C 80 17 00 00 00 00 00 00 CE [00:08:27]Write i2c OK [00:08:27]MH_I2C_Read... [00:08:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:27]Read from MH i2c: E2 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 FD 00 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 FD 00 42 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [00:08:28]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:28]wFMCommunicate OK [00:08:28]wFMCommunicate request_size=4 [00:08:28]MH_SAM_APDU [00:08:28]CAPDU: 80 17 00 00 [00:08:28]Write to MH i2c: E2 08 00 43 0C 80 17 00 00 00 00 00 00 CF [00:08:28]Write i2c OK [00:08:28]MH_I2C_Read... [00:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:28]Read from MH i2c: E2 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 43 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 47 [00:08:28]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:29]wFMCommunicate OK [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 17 00 00 [00:08:29]Write to MH i2c: E2 08 00 44 0C 80 17 00 00 00 00 00 00 D0 [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 E5 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 E5 00 44 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B4 [00:08:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_GetFMData done [00:08:29]Malloc new data [00:08:29]Malloc new data [00:08:29]Malloc new data [00:08:29]Malloc new data [00:08:29]KKMLoadAndSignCloseShiftData err=0 [00:08:29]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Таалайбек к. П. 15.04.2024 00:08 Смена: 357 РНМ: 0000000000094237 ЗНМ: 0300000138 СНО: Общий режим Чеков за смену: 397 ФД за смену: 399 Всего чеков: 397 ИТОГИ ПРИХОД Чеков: 395 Общий итог: 273661.76 Итого наличными: 231234.00 Итого безнал.: 42427.76 НДС 0% : 0.00 НДС 12% : 29071.29 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 2422.27 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 2 Общий итог: 1130.00 Итого наличными: 1130.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 120.05 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 10.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 Нал. в кассе: 230104.00 НС Приход: 76714754.12 НС Возвр.Прихода: 2250582.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 112499 ФМ: 0000000000875019 ФПД: 21211998472166 [00:08:29]StoreToDocumentArchive [00:08:29]shift 357 fd 112499 [00:08:29]save to /storage/0357/doc_00112499 [00:08:29]save last doc name /storage/0357/doc_00112499 to /storage/kkm_last_doc_name [00:08:29]save OK [00:08:29]Clear old archive folders... [00:08:29]Remove dir /storage/0266 [00:08:29]opendir ok [00:08:29]file . [00:08:29]file .. [00:08:29]file doc_1713139680 [00:08:29]remove file /storage/0266/doc_1713139680 [00:08:29]remove dir /storage/0266 [00:08:29]NVStorageSaveData kkm_registers [00:08:29]File name is /storage/kkm_registers [00:08:29]Write 24 bytes [00:08:29]NVStorageSaveData done [00:08:29]NVStorageSaveData kkm_registers [00:08:29]File name is /storage/kkm_registers [00:08:29]Write 24 bytes [00:08:29]NVStorageSaveData done [00:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=1394 [00:08:29]tlvbuf is 01B68C70 [00:08:29]SAM_PROTO_ClearQueue [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 09 00 00 [00:08:29]Write to MH i2c: E2 08 00 45 0C 80 09 00 00 00 00 00 00 C3 [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 03 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 03 00 45 0C 00 90 00 C5 [00:08:29]RAPDU: 90 00 [00:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_ClearQueue done [00:08:29]KKMCreateOFDPacket [00:08:29]OFDProtocolAddRootSTLVToBuf [00:08:29]FM_MakeSignedData [00:08:29]FM_MakeSignedData [00:08:29]SAM_PROTO_SignData [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 0D 01 02 [00:08:29]Write to MH i2c: E2 08 00 46 0C 80 0D 01 02 00 00 00 00 CB [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 03 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 03 00 46 0C 00 90 00 C6 [00:08:30]RAPDU: 90 00 [00:08:30]wFMCommunicate OK [00:08:30]wFMCommunicate request_size=255 [00:08:30]MH_SAM_APDU [00:08:30]CAPDU: 80 0D 02 02 FA 05 00 72 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 F4 03 04 00 F5 6F 1C 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 DE 04 6E 04 04 00 8D 01 00 00 69 04 A5 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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:08:30]Write to MH i2c: E2 02 01 47 0C 80 0D 02 02 FA 00 05 00 72 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 F4 03 04 00 F5 6F 1C 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 DE 04 6E 04 04 00 8D 01 00 00 69 04 A5 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 00 53 [00:08:30]Write i2c OK [00:08:30]MH_I2C_Read... [00:08:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 03 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 03 00 47 0C 00 90 00 C7 [00:08:30]RAPDU: 90 00 [00:08:30]wFMCommunicate OK [00:08:30]wFMCommunicate request_size=255 [00:08:30]MH_SAM_APDU [00:08:30]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 B2 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 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 [00:08:31]Write to MH i2c: E2 02 01 48 0C 80 0D 02 02 FA 00 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 33 B2 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 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 00 00 78 [00:08:31]Write i2c OK [00:08:31]MH_I2C_Read... [00:08:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:31]Read from MH i2c: E2 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 03 00 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 03 00 48 0C 00 90 00 C8 [00:08:31]RAPDU: 90 00 [00:08:31]wFMCommunicate OK [00:08:31]wFMCommunicate request_size=255 [00:08:31]MH_SAM_APDU [00:08:31]CAPDU: 80 0D 02 02 FA 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 [00:08:31]Write to MH i2c: E2 02 01 49 0C 80 0D 02 02 FA 00 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 00 00 96 [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 49 0C 00 90 00 C9 [00:08:32]RAPDU: 90 00 [00:08:32]wFMCommunicate OK [00:08:32]wFMCommunicate request_size=255 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 0D 02 02 FA 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 OFD Sender: No OFD packet to send [00:08:32]F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:08:32]Write to MH i2c: E2 02 01 4A 0C 80 0D 02 02 FA 00 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 00 00 9F [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 4A 0C 00 90 00 CA [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=255 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 0D 02 02 FA 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:08:33]Write to MH i2c: E2 02 01 4B 0C 80 0D 02 02 FA 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:34]Read from MH i2c: E2 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 03 00 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 03 00 4B 0C 00 90 00 CB [00:08:34]RAPDU: 90 00 [00:08:34]wFMCommunicate OK [00:08:34]wFMCommunicate request_size=153 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 0D 02 02 94 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 13 4A CD A2 47 E6 [00:08:34]Write to MH i2c: E2 9C 00 4C 0C 80 0D 02 02 94 00 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 13 4A CD A2 47 E6 00 00 33 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:34]Read from MH i2c: E2 03 00 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 03 00 4C 0C 00 90 00 CC [00:08:34]RAPDU: 90 00 [00:08:34]wFMCommunicate OK [00:08:34]wFMCommunicate request_size=4 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 0D 03 02 [00:08:34]Write to MH i2c: E2 08 00 4D 0C 80 0D 03 02 00 00 00 00 D4 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:34]Read from MH i2c: E2 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 0B 00 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 0B 00 4D 0C 00 22 33 90 9E 0D 3E A1 F8 90 00 3C [00:08:34]RAPDU: 22 33 90 9E 0D 3E A1 F8 90 00 [00:08:34]wFMCommunicate OK [00:08:34]SAM_PROTO_SignData done [00:08:34]FM_MakeSignedData done [00:08:34]CreateOFDProtocolMessage [00:08:34]wFMCommunicate request_size=4 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 11 00 00 [00:08:34]Write to MH i2c: E2 08 00 4E 0C 80 11 00 00 00 00 00 00 D4 [00:08:35]Write i2c OK [00:08:35]MH_I2C_Read... [00:08:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:35]Read from MH i2c: E2 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 17 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 17 00 4E 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [00:08:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:08:35]wFMCommunicate OK [00:08:35]CreateOFDProtocolMessage done [00:08:35]OFDSenderStorePacket 112499 [00:08:35]StoreOFDPacket docnum=112499 [00:08:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 86 05 00 00 8D E3 7E 05 EC 1D 5A 05 01 00 05 00 72 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 F4 03 04 00 F5 6F 1C 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 DE 04 6E 04 04 00 8D 01 00 00 69 04 A5 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 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 73 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 13 4A CD A2 47 E6 22 33 90 9E 0D 3E A1 F8 [00:08:35]CheckFolder [00:08:35]dirname=/storage/ofd_packets [00:08:35]CheckFolder done [00:08:35]ProducePacketName [00:08:35]name=ofd_packets/00112499 [00:08:35]NVStorageSaveData ofd_packets/00112499 [00:08:35]File name is /storage/ofd_packets/00112499 [00:08:35]Write 1444 bytes [00:08:35]NVStorageSaveData done [00:08:35]OFDSenderStorePacket done [00:08:35]KKMCreateOFDPacket done [00:08:35]NVStorageSaveData kkm_last_timestamp [00:08:35]File name is /storage/kkm_last_timestamp [00:08:35]Write 4 bytes [00:08:35]NVStorageSaveData done [00:08:35]ExternCall_PrintAddStr [00:08:35]wPrintStart [00:08:35]Write to MH i2c: 01 00 00 4F 0C 5B [00:08:35]Write i2c OK [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: 01 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: 01 07 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: 01 07 00 4F 0C 00 00 00 00 00 FF 0F 70 [00:08:35]RasterBufferAndPrint [00:08:35]line Отчет о закрытии смены [00:08:35]line ФФД: 1.0 [00:08:35]line ИНН: 02508201610067 [00:08:35]line Кассир: Таалайбек к. П. [00:08:35]line 15.04.2024 00:08 [00:08:35]line Смена: 357 [00:08:35]line РНМ: 0000000000094237 [00:08:35]line ЗНМ: 0300000138 [00:08:35]line СНО: Общий режим [00:08:35]line Чеков за смену: 397 [00:08:35]line ФД за смену: 399 [00:08:35]line Всего чеков: 397 [00:08:35]line ИТОГИ ПРИХОД [00:08:35]line Чеков: 395 [00:08:35]line Общий итог: 273661.76 [00:08:35]line Итого наличными: 231234.00 [00:08:35]line Итого безнал.: 42427.76 [00:08:35]line НДС 0% : 0.00 [00:08:35]line НДС 12% : 29071.29 [00:08:35]line НСП 0% : 0.00 [00:08:35]line НСП 1,50% : 0.00 [00:08:35]line НСП 0,50% : 0.00 [00:08:35]line НСП 5% : 0.00 [00:08:35]line НСП 3% : 0.00 [00:08:35]line НСП 2% : 0.00 [00:08:35]line НСП 1% : 2422.27 [00:08:35]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:35]line Чеков: 2 [00:08:35]line Общий итог: 1130.00 [00:08:35]line Итого наличными: 1130.00 [00:08:35]line Итого безнал.: 0.00 [00:08:35]line НДС 0% : 0.00 [00:08:35]line НДС 12% : 120.05 [00:08:35]line НСП 0% : 0.00 [00:08:35]line НСП 1,50% : 0.00 [00:08:35]line НСП 0,50% : 0.00 [00:08:35]line НСП 5% : 0.00 [00:08:35]line НСП 3% : 0.00 [00:08:35]line НСП 2% : 0.00 [00:08:35]OFD Sender: Processing packet 112499 [packets to send 71, broken 70] [00:08:35]ProducePacketName [00:08:35]name=ofd_packets/00112499 [00:08:35]OFD Sender: To server: pG, [00:08:35]CommunicateWithHost lk.salyk.kg:30040 [00:08:35]ConnectInit lk.salyk.kg [00:08:35]line НСП 1% : 10.00 [00:08:35]line ИТОГИ РАСХОД [00:08:35]line Чеков: 0 [00:08:35]line Общий итог: 0.00 [00:08:35]line Итого наличными: 0.00 [00:08:35]line Итого безнал.: 0.00 [00:08:35]line НДС 0% : 0.00 [00:08:35]line НДС 12% : 0.00 [00:08:35]line НСП 0% : 0.00 [00:08:35]line НСП 1,50% : 0.00 [00:08:35]line НСП 0,50% : 0.00 [00:08:35]line НСП 5% : 0.00 [00:08:35]line НСП 3% : 0.00 [00:08:35]line НСП 2% : 0.00 [00:08:35]line НСП 1% : 0.00 [00:08:35]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:35]line Чеков: 0 [00:08:35]line Общий итог: 0.00 [00:08:35]line Итого наличными: 0.00 [00:08:35]line Итого безнал.: 0.00 [00:08:35]line НДС 0% : 0.00 [00:08:35]line НДС 12% : 0.00 [00:08:35]line НСП 0% : 0.00 [00:08:35]line НСП 1,50% : 0.00 [00:08:35]line НСП 0,50% : 0.00 [00:08:35]line НСП 5% : 0.00 [00:08:35]line НСП 3% : 0.00 [00:08:35]line НСП 2% : 0.00 [00:08:35]line НСП 1% : 0.00 [00:08:35]line Сумма внесений: 0.00 [00:08:35]line Сумма выплат: 0.00 [00:08:35]line Нал. в кассе: 230104.00 [00:08:35]line НС Приход: 76714754.12 [00:08:35]line НС Возвр.Прихода: 2250582.00 [00:08:35]line НС Расход: 0.00 [00:08:35]line НС Возвр.Расхода: 0.00 [00:08:35]line ФД: 112499 [00:08:35]line ФМ: 0000000000875019 [00:08:35]line ФПД: 21211998472166 [00:08:35]written 0, free lines is 4095 [00:08:35]Connected sock=10 [00:08:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 86 05 00 00 8D E3 7E 05 EC 1D 5A 05 01 00 05 00 72 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 1B 00 D0 A2 D0 B0 D0 B0 D0 BB D0 B0 D0 B9 D0 B1 D0 B5 D0 BA 20 D0 BA 2E 20 D0 9F 2E 20 F4 03 04 00 F5 6F 1C 66 0E 04 04 00 65 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 AA 04 DE 04 6E 04 04 00 8D 01 00 00 69 04 A5 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 6A 04 9F 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 01 00 00 00 04 80 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 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 Write to MH i2c: F6 01 03 00 01 00 00 9F 00 0C F7 AB 03 [00:08:36]01 Write i2c OK [00:08:36]00 MH_I2C_Read... [00:08:36]00 EF 03 0A 00 F6 03 01 Read from MH i2c: 00 01 06 [00:08:36]F7 MH_I2C_Read... [00:08:36]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 Read from MH i2c: 0A 01 00 07 F6 00 03 [00:08:36]01 MH_I2C_Read... [00:08:36]00 Read from MH i2c: 01 01 F7 07 03 00 01 9F 00 0C 00 00 6C 00 00 00 00 C8 0B 85 [00:08:36]RasterBufferAndPrint [00:08:36]line [00:08:36]line [00:08:36]line [00:08:36]line [00:08:36]line [00:08:36]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 written 0, free lines is 3386 [00:08:37]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 MH_Cut [00:08:37]00 Write to MH i2c: 00 D1 EF 01 03 00 0A 00 F6 03 01 00 05 F7 03 01 A6 00 0C 00 01 EF 84 03 [00:08:37]0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 Write i2c OK [00:08:37]00 MH_I2C_Read... [00:08:37]03 Read from MH i2c: F7 D1 03 [00:08:37]01 00 00 EF 03 0A 00 F6 03 01 MH_I2C_Read... [00:08:37]00 Read from MH i2c: 02 D1 F7 01 03 00 01 00 00 EF 03 0A 00 F6 03 01 [00:08:37]00 MH_I2C_Read... [00:08:37]01 Read from MH i2c: F7 D1 03 01 01 00 00 A6 00 0C 6D 00 04 83 4C [00:08:37]02 Write to MH i2c: 78 01 04 00 04 00 00 00 A7 00 0C 00 B3 00 [00:08:37]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 Write i2c OK [00:08:37]EF MH_I2C_Read... [00:08:37]03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Cut start [00:08:37]00 *** Partial cut [00:08:37]00 *** CUTSNS_PIN = 1 [00:08:37]EF *** CUTSNS_PIN = 0 [00:08:37]03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 *** Brake cut motor [00:08:37]04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 Read from MH i2c: 00 01 00 [00:08:38]F7 MH_I2C_Read... [00:08:38]03 *** Stop cut motor [00:08:38]00 *** Cut end [00:08:38]00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 Read from MH i2c: F7 01 03 07 00 00 00 [00:08:38]EF MH_I2C_Read... [00:08:38]03 Read from MH i2c: 09 01 00 07 F6 00 03 A7 01 0C 00 00 05 00 F7 03 00 00 EF 03 09 00 F6 03 00 01 00 00 00 06 FF F7 0F 03 C8 00 [00:08:38]00 process_action close_shift done [00:08:38]10 requested_data is exist [00:08:38]04 produce_requested_data [00:08:38]04 requested_item fd.num is exist - process it [00:08:38]00 SAM_PROTO_GetFieldsCounters [00:08:38]73 wFMCommunicate request_size=4 [00:08:38]B7 MH_SAM_APDU [00:08:38]CAPDU: 80 13 00 00 [00:08:38]Write to MH i2c: E2 08 01 00 00 A8 11 0C 04 80 10 13 00 00 00 00 00 00 30 [00:08:38]00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 13 4A CD A2 47 E6 22 33 90 9E 0D 3E A1 F8 [00:08:38]Write i2c OK [00:08:38]MH_I2C_Read... [00:08:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:38]Read from MH i2c: E2 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 62 00 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 62 00 A8 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [00:08:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:38]wFMCommunicate OK [00:08:38]SAM_PROTO_GetFieldsCounters done [00:08:38]requested_item shift.num is exist - process it [00:08:38]requested_item shift.opened is exist - process it [00:08:38]req_shift_opened [00:08:38]FM_GetShiftState [00:08:38]SAM_PROTO_GetShiftState [00:08:38]wFMCommunicate request_size=4 [00:08:38]MH_SAM_APDU [00:08:38]CAPDU: 80 13 01 00 [00:08:38]Write to MH i2c: E2 08 Received data: 00 87 A9 95 0C F6 80 70 13 47 01 2C 00 01 00 00 00 00 00 32 [00:08:38]30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B5 14 47 00 89 CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:38]37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 Write i2c OK [00:08:39]30 MH_I2C_Read... [00:08:39]30 Read from MH i2c: 38 E2 37 [00:08:39]35 MH_I2C_Read... [00:08:39]30 Read from MH i2c: 31 E2 39 0E 10 04 04 00 73 B7 01 00 F4 03 04 00 00 [00:08:39]8F MH_I2C_Read... [00:08:39]17 Read from MH i2c: 1C E2 66 B6 04 01 00 00 73 11 95 0E 15 00 5C A9 A4 0C 81 00 5E 09 [00:08:39]00 CommunicateWithHost err = 0 [00:08:39]00 CheckOFDResponse [00:08:39]00 1017 (14) - 77093643461234 [00:08:39]1041 (16) - 0000000000875019 [00:08:39]1040 (4) - 112499 [00:08:39]1012 (4) - 14.04.2024 17:51 [00:08:39]1206 (1) - 0 [00:08:39]OFD Sender: Remove packet 112499 [00:08:39]ProducePacketName [00:08:39]name=ofd_packets/00112499 [00:08:39]NVStorageDeleteData [00:08:39]00 00 00 00 00 00 00 90 00 3D [00:08:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:39]wFMCommunicate OK [00:08:39]SAM_PROTO_GetShiftState done [00:08:39]FM_GetShiftState done [00:08:39]req_shift_opened done [00:08:39]requested_item shift.open_date is exist - process it [00:08:39]req_shift_open_date [00:08:39]FM_GetShiftState [00:08:39]SAM_PROTO_GetShiftState [00:08:39]wFMCommunicate request_size=4 [00:08:39]MH_SAM_APDU [00:08:39]CAPDU: 80 13 01 00 [00:08:39]Write to MH i2c: E2 08 00 AA 0C 80 13 01 00 00 00 00 00 33 [00:08:39]Write i2c OK [00:08:39]MH_I2C_Read... [00:08:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:39]Read from MH i2c: E2 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 0E 00 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 0E 00 AA 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 3E [00:08:39]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:39]wFMCommunicate OK [00:08:39]SAM_PROTO_GetShiftState done [00:08:39]FM_GetShiftState done [00:08:39]req_shift_open_date done [00:08:39]produce_requested_data done [00:08:39]produce_requested_data return {"fd.num":112499,"shift.num":357,"shift.opened":0,"shift.open_date":0} [00:08:39]process_action_free close_shift [00:08:39]json_value_free [00:08:39]json_value_free done [00:08:39]process_json_proto returns [00:08:39]Send response to host [00:08:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112499,"shift.num":357,"shift.opened":0,"shift.open_date":0}}} [00:08:39]free response buf [00:08:39]execute_script done [00:08:39]execute_script returns [00:08:39]free content buf [00:08:39]Sock 7.Close socket [00:08:39]Sock 7.Thread stoped [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:19:00]OFD Sender: No OFD packet to send [00:19:05]OFD Sender: No OFD packet to send [00:19:10]OFD Sender: No OFD packet to send [00:19:15]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:45]accept exits with 9 [00:32:45]New connection [00:32:45]New thread 3067317604 created [00:32:45]Thread 3067174244 joined [00:32:45]Waiting for new connection... [00:32:45] Sock 9.Parse request [00:32:45]Sock 9.Check first char [00:32:45]Sock 9.First char is OK [00:32:45]request: POST /json_proto HTTP/1.0 [00:32:45]Method: POST [00:32:45]URL: /json_proto [00:32:45]Method is POST - this is cgi request [00:32:45]url: /json_proto [00:32:45]query_string will be loaded in cgi processing [00:32:45]execute_cgi json_proto POST (null) [00:32:45]execute_cgi path=json_proto method=POST [00:32:45]POST find Content-Length [00:32:45]Host: 172.17.96.197:8080 [00:32:45]Content-Length: 215 [00:32:45]Content-Type: application/json [00:32:45] [00:32:45]POST finish read [00:32:45]Found Content-Length = 215 [00:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:45]execute_script... [00:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:45]POST & json_proto [00:32:45]process_json_proto [00:32:45]json parsed OK: [00:32:45]protocol is kg_v1.0 [00:32:45]action value=get_value [00:32:45]process_action get_value [00:32:45]cmd_get_value [00:32:45]process_action get_value done [00:32:45]requested_data is exist [00:32:45]produce_requested_data [00:32:45]requested_item kkm.sn is exist - process it [00:32:45]requested_item kkm.ver is exist - process it [00:32:45]requested_item fm.sn is exist - process it [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 11 00 00 [00:32:45]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 17 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 82 [00:32:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:32:45]wFMCommunicate OK [00:32:45]requested_item fd.num is exist - process it [00:32:45]SAM_PROTO_GetFieldsCounters [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 13 00 00 [00:32:45]Write to MH i2c: E2 08 00 AC 0C 80 13 00 00 00 00 00 00 34 [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 62 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 62 00 AC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 8F [00:32:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 73 B7 01 00 0E 04 04 00 65 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:45]wFMCommunicate OK [00:32:45]SAM_PROTO_GetFieldsCounters done [00:32:45]requested_item shift.num is exist - process it [00:32:45]requested_item shift.opened is exist - process it [00:32:45]req_shift_opened [00:32:45]FM_GetShiftState [00:32:45]SAM_PROTO_GetShiftState [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 13 01 00 [00:32:45]Write to MH i2c: E2 08 00 AD 0C 80 13 01 00 00 00 00 00 36 [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 0E 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 0E 00 AD 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 41 [00:32:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:45]wFMCommunicate OK [00:32:45]SAM_PROTO_GetShiftState done [00:32:45]FM_GetShiftState done [00:32:45]req_shift_opened done [00:32:45]requested_item shift.open_date is exist - process it [00:32:45]req_shift_open_date [00:32:45]FM_GetShiftState [00:32:45]SAM_PROTO_GetShiftState [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 13 01 00 [00:32:45]Write to MH i2c: E2 08 00 AE 0C 80 13 01 00 00 00 00 00 37 [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:45]Read from MH i2c: E2 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 0E 00 [00:32:45]MH_I2C_Read... [00:32:45]Read from MH i2c: E2 0E 00 AE 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 42 [00:32:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:45]wFMCommunicate OK [00:32:45]SAM_PROTO_GetShiftState done [00:32:45]FM_GetShiftState done [00:32:45]req_shift_open_date done [00:32:45]produce_requested_data done [00:32:45]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112499,"shift.num":357,"shift.opened":0,"shift.open_date":0} [00:32:45]process_action_free get_value [00:32:45]json_value_free [00:32:45]json_value_free done [00:32:45]process_json_proto returns [00:32:45]Send response to host [00:32:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112499,"shift.num":357,"shift.opened":0,"shift.open_date":0}}} [00:32:45]free response buf [00:32:45]execute_script done [00:32:45]execute_script returns [00:32:45]free content buf [00:32:45]Sock 9.Close socket [00:32:45]Sock 9.Thread stoped [00:32:45]accept exits with 7 [00:32:45]New connection [00:32:45]New thread 3067174244 created [00:32:45]Thread 3067317604 joined [00:32:45]Waiting for new connection... [00:32:45] Sock 7.Parse request [00:32:45]Sock 7.Check first char [00:32:45]Sock 7.First char is OK [00:32:45]request: POST /json_proto HTTP/1.0 [00:32:45]Method: POST [00:32:45]URL: /json_proto [00:32:45]Method is POST - this is cgi request [00:32:45]url: /json_proto [00:32:45]query_string will be loaded in cgi processing [00:32:45]execute_cgi json_proto POST (null) [00:32:45]execute_cgi path=json_proto method=POST [00:32:45]POST find Content-Length [00:32:45]Host: 172.17.96.197:8080 [00:32:45]Content-Length: 331 [00:32:45]Content-Type: application/json [00:32:45] [00:32:45]POST finish read [00:32:45]Found Content-Length = 331 [00:32:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:45]execute_script... [00:32:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:32:45]POST & json_proto [00:32:45]process_json_proto [00:32:45]json parsed OK: [00:32:45]protocol is kg_v1.0 [00:32:45]action value=get_value [00:32:45]process_action get_value [00:32:45]cmd_get_value [00:32:45]process_action get_value done [00:32:45]requested_data is exist [00:32:45]produce_requested_data [00:32:45]requested_item fm.sale.total is exist - process it [00:32:45]SAM_PROTO_GetFMData [00:32:45]wFMCommunicate request_size=4 [00:32:45]MH_SAM_APDU [00:32:45]CAPDU: 80 13 03 00 [00:32:45]Write to MH i2c: E2 08 00 AF 0C 80 13 03 00 00 00 00 00 3A [00:32:45]Write i2c OK [00:32:45]MH_I2C_Read... [00:32:46]OFD Sender: No OFD packet to send [00:32:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 AF 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 3E [00:32:46]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:32:46]wFMCommunicate OK [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 17 00 00 [00:32:46]Write to MH i2c: E2 08 00 B0 0C 80 17 00 00 00 00 00 00 3C [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 B0 0C 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [00:32:46]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:46]wFMCommunicate OK [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 17 00 00 [00:32:46]Write to MH i2c: E2 08 00 B1 0C 80 17 00 00 00 00 00 00 3D [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 B1 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 15 [00:32:46]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:46]wFMCommunicate OK [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 17 00 00 [00:32:46]Write to MH i2c: E2 08 00 B2 0C 80 17 00 00 00 00 00 00 3E [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:46]Read from MH i2c: E2 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 [00:32:46]MH_I2C_Read... [00:32:46]Read from MH i2c: E2 FD 00 B2 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B6 [00:32:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:32:46]wFMCommunicate OK [00:32:46]wFMCommunicate request_size=4 [00:32:46]MH_SAM_APDU [00:32:46]CAPDU: 80 17 00 00 [00:32:46]Write to MH i2c: E2 08 00 B3 0C 80 17 00 00 00 00 00 00 3F [00:32:46]Write i2c OK [00:32:46]MH_I2C_Read... [00:32:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:32:47]Read from MH i2c: E2 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 E5 00 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 E5 00 B3 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [00:32:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:47]wFMCommunicate OK [00:32:47]SAM_PROTO_GetFMData done [00:32:47]requested_item fm.sale_refund.total is exist - process it [00:32:47]requested_item fm.buy.total is exist - process it [00:32:47]requested_item shift.sale.total is exist - process it [00:32:47]SAM_PROTO_GetShiftData [00:32:47]wFMCommunicate request_size=4 [00:32:47]MH_SAM_APDU [00:32:47]CAPDU: 80 13 02 00 [00:32:47]Write to MH i2c: E2 08 00 B4 0C 80 13 02 00 00 00 00 00 3E [00:32:47]Write i2c OK [00:32:47]MH_I2C_Read... [00:32:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:47]Read from MH i2c: E2 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 B4 0C 00 BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 CF [00:32:47]RAPDU: BB 04 AA 04 B7 04 6E 04 04 00 8D 01 00 00 69 04 9E 00 6F 04 04 00 8B 01 00 00 B1 04 04 00 20 93 A1 01 70 04 04 00 C8 D5 60 01 72 04 03 00 58 BD 40 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 F9 5B 2C 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 33 B2 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 97 00 6F 04 04 00 02 00 00 00 B1 04 03 00 68 B9 01 70 04 03 00 68 B9 01 72 04 00 00 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 E5 2E EF 03 09 00 F6 03 01 00 00 F7 03 00 90 00 [00:32:47]wFMCommunicate OK [00:32:47]wFMCommunicate request_size=4 [00:32:47]MH_SAM_APDU [00:32:47]CAPDU: 80 17 00 00 [00:32:47]Write to MH i2c: E2 08 00 B5 0C 80 17 00 00 00 00 00 00 41 [00:32:47]Write i2c OK [00:32:47]MH_I2C_Read... [00:32:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:47]Read from MH i2c: E2 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 [00:32:47]MH_I2C_Read... [00:32:47]Read from MH i2c: E2 FD 00 B5 0C 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D6 [00:32:47]RAPDU: 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 E8 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:47]wFMCommunicate OK [00:32:47]wFMCommunicate request_size=4 [00:32:47]MH_SAM_APDU [00:32:47]CAPDU: 80 17 00 00 [00:32:47]Write to MH i2c: E2 08 00 B6 0C 80 17 00 00 00 00 00 00 42 [00:32:47]Write i2c OK [00:32:47]MH_I2C_Read... [00:32:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:48]Read from MH i2c: E2 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 B6 0C 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6E [00:32:48]RAPDU: 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:48]wFMCommunicate OK [00:32:48]wFMCommunicate request_size=4 [00:32:48]MH_SAM_APDU [00:32:48]CAPDU: 80 17 00 00 [00:32:48]Write to MH i2c: E2 08 00 B7 0C 80 17 00 00 00 00 00 00 43 [00:32:48]Write i2c OK [00:32:48]MH_I2C_Read... [00:32:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:48]Read from MH i2c: E2 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 FD 00 B7 0C 00 00 00 EF 03 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 90 00 B8 [00:32:48]RAPDU: 00 00 EF 03 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 90 00 [00:32:48]wFMCommunicate OK [00:32:48]wFMCommunicate request_size=4 [00:32:48]MH_SAM_APDU [00:32:48]CAPDU: 80 17 00 00 [00:32:48]Write to MH i2c: E2 08 00 B8 0C 80 17 00 00 00 00 00 00 44 [00:32:48]Write i2c OK [00:32:48]MH_I2C_Read... [00:32:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 213! [00:32:48]Read from MH i2c: E2 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 D8 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: E2 D8 00 B8 0C 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 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 2B [00:32:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:32:48]wFMCommunicate OK [00:32:48]SAM_PROTO_GetShiftData done [00:32:48]requested_item shift.sale.total_cash is exist - process it [00:32:48]requested_item shift.sale_refund.total is exist - process it [00:32:48]requested_item shift.sale_refund.total_cash is exist - process it [00:32:48]requested_item shift.buy.total is exist - process it [00:32:48]requested_item shift.buy.total_cash is exist - process it [00:32:48]produce_requested_data done [00:32:48]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:48]process_action_free get_value [00:32:48]json_value_free [00:32:48]json_value_free done [00:32:48]process_json_proto returns [00:32:48]Send response to host [00:32:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":273661.76,"shift.sale.total_cash":231234.00,"shift.sale_refund.total":1130.00,"shift.sale_refund.total_cash":1130.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:48]free response buf [00:32:48]execute_script done [00:32:48]execute_script returns [00:32:48]free content buf [00:32:48]Sock 7.Close socket [00:32:48]Sock 7.Thread stoped [00:32:48]accept exits with 9 [00:32:48]New connection [00:32:48]New thread 3067317604 created [00:32:48]Thread 3067174244 joined [00:32:48]Waiting for new connection... [00:32:48] Sock 9.Parse request [00:32:48]Sock 9.Check first char [00:32:48]Sock 9.First char is OK [00:32:48]request: POST /json_proto HTTP/1.0 [00:32:48]Method: POST [00:32:48]URL: /json_proto [00:32:48]Method is POST - this is cgi request [00:32:48]url: /json_proto [00:32:48]query_string will be loaded in cgi processing [00:32:48]execute_cgi json_proto POST (null) [00:32:48]execute_cgi path=json_proto method=POST [00:32:48]POST find Content-Length [00:32:48]Host: 172.17.96.197:8080 [00:32:48]Content-Length: 272 [00:32:48]Content-Type: application/json [00:32:48] [00:32:48]POST finish read [00:32:48]Found Content-Length = 272 [00:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0435\u043A \u0443 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:48]execute_script... [00:32:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0422\u043E\u043A\u0442\u043E\u0440\u0431\u0435\u043A \u0443 \u0421. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:32:48]POST & json_proto [00:32:48]process_json_proto [00:32:48]json parsed OK: [00:32:48]protocol is kg_v1.0 [00:32:48]action value=open_shift [00:32:48]process_action open_shift [00:32:48]cmd_open_shift [00:32:48]MH_GetDate [00:32:48]Write to MH i2c: F0 00 00 B9 0C B4 [00:32:48]Write i2c OK [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: F0 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: F0 09 00 [00:32:48]MH_I2C_Read... [00:32:48]Read from MH i2c: F0 09 00 B9 0C 00 B2 75 1C 66 E0 85 7F 64 AE [00:32:48]GetLastDocTimeStamp 1713139701 [00:32:48]current date 1713141170 [00:32:48]FM_GetShiftState [00:32:48]SAM_PROTO_GetShiftState [00:32:48]wFMCommunicate request_size=4 [00:32:48]MH_SAM_APDU [00:32:48]CAPDU: 80 13 01 00 [00:32:48]Write to MH i2c: E2 08 00 BA 0C 80 13 01 00 00 00 00 00 43 [00:32:48]Write i2c OK [00:32:48]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 0E 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 0E 00 BA 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 4E [00:32:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:32:49]wFMCommunicate OK [00:32:49]SAM_PROTO_GetShiftState done [00:32:49]FM_GetShiftState done [00:32:49]KKMCreateOpenShiftDocument [00:32:49]Load OK [00:32:49]Malloc new data [00:32:49]MH_GetDate [00:32:49]Write to MH i2c: F0 00 00 BB 0C B6 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 09 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: F0 09 00 BB 0C 00 B2 75 1C 66 E0 85 7F 64 B0 [00:32:49]Malloc new data [00:32:49]KKMCreateOpenShiftDocument OK [00:32:49]KKMSetOpenShiftData OK [00:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=198 [00:32:49]tlvbuf is 01A424D0 [00:32:49]KKMLoadAndSignOpenShiftData [00:32:49]SAM_PROTO_ProcessDocument [00:32:49]wFMCommunicate request_size=9 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 01 00 04 02 00 C6 00 [00:32:49]Write to MH i2c: E2 0C 00 BC 0C 80 15 01 00 04 00 02 00 C6 00 00 00 17 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=23 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:32:49]Write to MH i2c: E2 1A 00 BD 0C 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 3E [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=35 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 [00:32:49]Write to MH i2c: E2 26 00 BE 0C 80 15 02 00 1E 00 FD 03 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 00 00 3F [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=82 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 4D F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 [00:32:49]Write to MH i2c: E2 55 00 BF 0C 80 15 02 00 4D 00 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 00 00 64 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=50 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:32:49]Write to MH i2c: E2 35 00 C0 0C 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 C6 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=13 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 08 F4 03 04 00 B2 75 1C 66 [00:32:49]Write to MH i2c: E2 10 00 C1 0C 80 15 02 00 08 00 F4 03 04 00 B2 75 1C 66 00 00 01 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=25 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 [00:32:49]Write to MH i2c: E2 1C 00 C2 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 00 00 B0 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [00:32:49]RAPDU: 90 00 [00:32:49]wFMCommunicate OK [00:32:49]wFMCommunicate request_size=4 [00:32:49]MH_SAM_APDU [00:32:49]CAPDU: 80 15 03 00 [00:32:49]Write to MH i2c: E2 08 00 C3 0C 80 15 03 00 00 00 00 00 50 [00:32:49]Write i2c OK [00:32:49]MH_I2C_Read... [00:32:49]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:32:49]Read from MH i2c: E2 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 38 00 [00:32:49]MH_I2C_Read... [00:32:49]Read from MH i2c: E2 38 00 C3 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B7 01 00 0E 04 04 00 66 01 00 00 35 04 06 00 87 2C 01 FB 98 56 90 00 4A [00:32:49]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B7 01 00 0E 04 04 00 66 01 00 00 35 04 06 00 87 2C 01 FB 98 56 90 00 [00:32:49]wFMCommunicate OK [00:32:49]SAM_PROTO_ProcessDocument answer len = 51 [00:32:49]SAM_PROTO_ProcessDocument done [00:32:49]SetTLVBufToDocument [00:32:49]Processing tag 1209 (04B9) [00:32:49]Malloc new data [00:32:49]Processing tag 1041 (0411) [00:32:49]Processing tag 1040 (0410) [00:32:49]Malloc new data [00:32:49]Processing tag 1038 (040E) [00:32:49]Malloc new data [00:32:49]Processing tag 1077 (0435) [00:32:49]Malloc new data [00:32:49]SetTLVBufToDocument err=0 [00:32:49]KKMLoadAndSignOpenShiftData store KKM data [00:32:49]KKMLoadAndSignOpenShiftData err=0 [00:32:49]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Токторбек у С. Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 Место: АЗС № 47 "Партнер Нефть" 15.04.2024 00:32 Смена: 358 РНМ: 0000000000094237 ЗНМ: 0300000138 ФД: 112500 ФМ: 0000000000875019 ФПД: 148623081576534 [00:32:49]StoreToDocumentArchive [00:32:49]shift 358 fd 112500 [00:32:49]Create dir for shift 0358 [00:32:49]save to /storage/0358/doc_00112500 [00:32:49]save last doc name /storage/0358/doc_00112500 to /storage/kkm_last_doc_name [00:32:49]save OK [00:32:49]Clear old archive folders... [00:32:49]Remove dir /storage/0357 [00:32:49]opendir ok [00:32:49]file . [00:32:49]file .. [00:32:49]file doc_00112101 [00:32:49]remove file /storage/0357/doc_00112101 [00:32:49]file doc_00112102 [00:32:49]remove file /storage/0357/doc_00112102 [00:32:49]file doc_00112103 [00:32:49]remove file /storage/0357/doc_00112103 [00:32:49]file doc_00112104 [00:32:49]remove file /storage/0357/doc_00112104 [00:32:49]file doc_00112105 [00:32:49]remove file /storage/0357/doc_00112105 [00:32:49]file doc_00112106 [00:32:49]remove file /storage/0357/doc_00112106 [00:32:49]file doc_00112107 [00:32:49]remove file /storage/0357/doc_00112107 [00:32:49]file doc_00112108 [00:32:49]remove file /storage/0357/doc_00112108 [00:32:49]file doc_00112109 [00:32:49]remove file /storage/0357/doc_00112109 [00:32:49]file doc_00112110 [00:32:49]remove file /storage/0357/doc_00112110 [00:32:49]file doc_00112111 [00:32:49]remove file /storage/0357/doc_00112111 [00:32:49]file doc_00112112 [00:32:49]remove file /storage/0357/doc_00112112 [00:32:49]file doc_00112113 [00:32:49]remove file /storage/0357/doc_00112113 [00:32:49]file doc_00112114 [00:32:49]remove file /storage/0357/doc_00112114 [00:32:49]file doc_00112115 [00:32:49]remove file /storage/0357/doc_00112115 [00:32:49]file doc_00112116 [00:32:49]remove file /storage/0357/doc_00112116 [00:32:49]file doc_00112117 [00:32:49]remove file /storage/0357/doc_00112117 [00:32:49]file doc_00112118 [00:32:49]remove file /storage/0357/doc_00112118 [00:32:49]file doc_00112119 [00:32:49]remove file /storage/0357/doc_00112119 [00:32:49]file doc_00112120 [00:32:49]remove file /storage/0357/doc_00112120 [00:32:50]file doc_00112121 [00:32:50]remove file /storage/0357/doc_00112121 [00:32:50]file doc_00112122 [00:32:50]remove file /storage/0357/doc_00112122 [00:32:50]file doc_00112123 [00:32:50]remove file /storage/0357/doc_00112123 [00:32:50]file doc_00112124 [00:32:50]remove file /storage/0357/doc_00112124 [00:32:50]file doc_00112125 [00:32:50]remove file /storage/0357/doc_00112125 [00:32:50]file doc_00112126 [00:32:50]remove file /storage/0357/doc_00112126 [00:32:50]file doc_00112127 [00:32:50]remove file /storage/0357/doc_00112127 [00:32:50]file doc_00112128 [00:32:50]remove file /storage/0357/doc_00112128 [00:32:50]file doc_00112129 [00:32:50]remove file /storage/0357/doc_00112129 [00:32:50]file doc_00112130 [00:32:50]remove file /storage/0357/doc_00112130 [00:32:50]file doc_00112131 [00:32:50]remove file /storage/0357/doc_00112131 [00:32:50]file doc_00112132 [00:32:50]remove file /storage/0357/doc_00112132 [00:32:50]file doc_00112133 [00:32:50]remove file /storage/0357/doc_00112133 [00:32:50]file doc_00112134 [00:32:50]remove file /storage/0357/doc_00112134 [00:32:50]file doc_00112135 [00:32:50]remove file /storage/0357/doc_00112135 [00:32:50]file doc_00112136 [00:32:50]remove file /storage/0357/doc_00112136 [00:32:50]file doc_00112137 [00:32:50]remove file /storage/0357/doc_00112137 [00:32:50]file doc_00112138 [00:32:50]remove file /storage/0357/doc_00112138 [00:32:50]file doc_00112139 [00:32:50]remove file /storage/0357/doc_00112139 [00:32:50]file doc_00112140 [00:32:50]remove file /storage/0357/doc_00112140 [00:32:50]file doc_00112141 [00:32:50]remove file /storage/0357/doc_00112141 [00:32:50]file doc_00112142 [00:32:50]remove file /storage/0357/doc_00112142 [00:32:50]file doc_00112143 [00:32:50]remove file /storage/0357/doc_00112143 [00:32:50]file doc_00112144 [00:32:50]remove file /storage/0357/doc_00112144 [00:32:50]file doc_00112145 [00:32:50]remove file /storage/0357/doc_00112145 [00:32:50]file doc_00112146 [00:32:50]remove file /storage/0357/doc_00112146 [00:32:50]file doc_00112147 [00:32:50]remove file /storage/0357/doc_00112147 [00:32:50]file doc_00112148 [00:32:50]remove file /storage/0357/doc_00112148 [00:32:50]file doc_00112149 [00:32:50]remove file /storage/0357/doc_00112149 [00:32:50]file doc_00112150 [00:32:50]remove file /storage/0357/doc_00112150 [00:32:50]file doc_00112151 [00:32:50]remove file /storage/0357/doc_00112151 [00:32:50]file doc_00112152 [00:32:50]remove file /storage/0357/doc_00112152 [00:32:50]file doc_00112153 [00:32:50]remove file /storage/0357/doc_00112153 [00:32:50]file doc_00112154 [00:32:50]remove file /storage/0357/doc_00112154 [00:32:50]file doc_00112155 [00:32:50]remove file /storage/0357/doc_00112155 [00:32:50]file doc_00112156 [00:32:50]remove file /storage/0357/doc_00112156 [00:32:50]file doc_00112157 [00:32:50]remove file /storage/0357/doc_00112157 [00:32:50]file doc_00112158 [00:32:50]remove file /storage/0357/doc_00112158 [00:32:50]file doc_00112159 [00:32:50]remove file /storage/0357/doc_00112159 [00:32:50]file doc_00112160 [00:32:50]remove file /storage/0357/doc_00112160 [00:32:50]file doc_00112161 [00:32:50]remove file /storage/0357/doc_00112161 [00:32:50]file doc_00112162 [00:32:50]remove file /storage/0357/doc_00112162 [00:32:50]file doc_00112163 [00:32:50]remove file /storage/0357/doc_00112163 [00:32:50]file doc_00112164 [00:32:50]remove file /storage/0357/doc_00112164 [00:32:50]file doc_00112165 [00:32:50]remove file /storage/0357/doc_00112165 [00:32:50]file doc_00112166 [00:32:50]remove file /storage/0357/doc_00112166 [00:32:50]file doc_00112167 [00:32:50]remove file /storage/0357/doc_00112167 [00:32:50]file doc_00112168 [00:32:50]remove file /storage/0357/doc_00112168 [00:32:50]file doc_00112169 [00:32:50]remove file /storage/0357/doc_00112169 [00:32:50]file doc_00112170 [00:32:50]remove file /storage/0357/doc_00112170 [00:32:50]file doc_00112171 [00:32:50]remove file /storage/0357/doc_00112171 [00:32:50]file doc_00112172 [00:32:50]remove file /storage/0357/doc_00112172 [00:32:50]file doc_00112173 [00:32:50]remove file /storage/0357/doc_00112173 [00:32:50]file doc_00112174 [00:32:50]remove file /storage/0357/doc_00112174 [00:32:50]file doc_00112175 [00:32:50]remove file /storage/0357/doc_00112175 [00:32:50]file doc_00112176 [00:32:50]remove file /storage/0357/doc_00112176 [00:32:50]file doc_00112177 [00:32:50]remove file /storage/0357/doc_00112177 [00:32:50]file doc_00112178 [00:32:50]remove file /storage/0357/doc_00112178 [00:32:50]file doc_00112179 [00:32:50]remove file /storage/0357/doc_00112179 [00:32:50]file doc_00112180 [00:32:50]remove file /storage/0357/doc_00112180 [00:32:50]file doc_00112181 [00:32:50]remove file /storage/0357/doc_00112181 [00:32:50]file doc_00112182 [00:32:50]remove file /storage/0357/doc_00112182 [00:32:50]file doc_00112183 [00:32:50]remove file /storage/0357/doc_00112183 [00:32:50]file doc_00112184 [00:32:50]remove file /storage/0357/doc_00112184 [00:32:50]file doc_00112185 [00:32:50]remove file /storage/0357/doc_00112185 [00:32:50]file doc_00112186 [00:32:50]remove file /storage/0357/doc_00112186 [00:32:50]file doc_00112187 [00:32:50]remove file /storage/0357/doc_00112187 [00:32:50]file doc_00112188 [00:32:50]remove file /storage/0357/doc_00112188 [00:32:50]file doc_00112189 [00:32:50]remove file /storage/0357/doc_00112189 [00:32:50]file doc_00112190 [00:32:50]remove file /storage/0357/doc_00112190 [00:32:50]file doc_00112191 [00:32:50]remove file /storage/0357/doc_00112191 [00:32:50]file doc_00112192 [00:32:50]remove file /storage/0357/doc_00112192 [00:32:50]file doc_00112193 [00:32:50]remove file /storage/0357/doc_00112193 [00:32:50]file doc_00112194 [00:32:50]remove file /storage/0357/doc_00112194 [00:32:50]file doc_00112195 [00:32:50]remove file /storage/0357/doc_00112195 [00:32:50]file doc_00112196 [00:32:50]remove file /storage/0357/doc_00112196 [00:32:50]file doc_00112197 [00:32:50]remove file /storage/0357/doc_00112197 [00:32:50]file doc_00112198 [00:32:50]remove file /storage/0357/doc_00112198 [00:32:50]file doc_00112199 [00:32:50]remove file /storage/0357/doc_00112199 [00:32:50]file doc_00112200 [00:32:50]remove file /storage/0357/doc_00112200 [00:32:50]file doc_00112201 [00:32:50]remove file /storage/0357/doc_00112201 [00:32:50]file doc_00112202 [00:32:50]remove file /storage/0357/doc_00112202 [00:32:50]file doc_00112203 [00:32:50]remove file /storage/0357/doc_00112203 [00:32:50]file doc_00112204 [00:32:50]remove file /storage/0357/doc_00112204 [00:32:50]file doc_00112205 [00:32:50]remove file /storage/0357/doc_00112205 [00:32:50]file doc_00112206 [00:32:50]remove file /storage/0357/doc_00112206 [00:32:50]file doc_00112207 [00:32:50]remove file /storage/0357/doc_00112207 [00:32:50]file doc_00112208 [00:32:50]remove file /storage/0357/doc_00112208 [00:32:50]file doc_00112209 [00:32:50]remove file /storage/0357/doc_00112209 [00:32:50]file doc_00112210 [00:32:50]remove file /storage/0357/doc_00112210 [00:32:50]file doc_00112211 [00:32:50]remove file /storage/0357/doc_00112211 [00:32:50]file doc_00112212 [00:32:50]remove file /storage/0357/doc_00112212 [00:32:50]file doc_00112213 [00:32:50]remove file /storage/0357/doc_00112213 [00:32:50]file doc_00112214 [00:32:50]remove file /storage/0357/doc_00112214 [00:32:50]file doc_00112215 [00:32:50]remove file /storage/0357/doc_00112215 [00:32:50]file doc_00112216 [00:32:50]remove file /storage/0357/doc_00112216 [00:32:50]file doc_00112217 [00:32:50]remove file /storage/0357/doc_00112217 [00:32:50]file doc_00112218 [00:32:50]remove file /storage/0357/doc_00112218 [00:32:50]file doc_00112219 [00:32:50]remove file /storage/0357/doc_00112219 [00:32:50]file doc_00112220 [00:32:50]remove file /storage/0357/doc_00112220 [00:32:50]file doc_00112221 [00:32:50]remove file /storage/0357/doc_00112221 [00:32:50]file doc_00112222 [00:32:50]remove file /storage/0357/doc_00112222 [00:32:50]file doc_00112223 [00:32:50]remove file /storage/0357/doc_00112223 [00:32:50]file doc_00112224 [00:32:50]remove file /storage/0357/doc_00112224 [00:32:50]file doc_00112225 [00:32:50]remove file /storage/0357/doc_00112225 [00:32:50]file doc_00112226 [00:32:50]remove file /storage/0357/doc_00112226 [00:32:50]file doc_00112227 [00:32:50]remove file /storage/0357/doc_00112227 [00:32:50]file doc_00112228 [00:32:50]remove file /storage/0357/doc_00112228 [00:32:50]file doc_00112229 [00:32:50]remove file /storage/0357/doc_00112229 [00:32:50]file doc_00112230 [00:32:50]remove file /storage/0357/doc_00112230 [00:32:50]file doc_00112231 [00:32:50]remove file /storage/0357/doc_00112231 [00:32:50]file doc_00112232 [00:32:50]remove file /storage/0357/doc_00112232 [00:32:50]file doc_00112233 [00:32:50]remove file /storage/0357/doc_00112233 [00:32:50]file doc_00112234 [00:32:50]remove file /storage/0357/doc_00112234 [00:32:50]file doc_00112235 [00:32:50]remove file /storage/0357/doc_00112235 [00:32:50]file doc_00112236 [00:32:50]remove file /storage/0357/doc_00112236 [00:32:50]file doc_00112237 [00:32:50]remove file /storage/0357/doc_00112237 [00:32:50]file doc_00112238 [00:32:50]remove file /storage/0357/doc_00112238 [00:32:50]file doc_00112239 [00:32:50]remove file /storage/0357/doc_00112239 [00:32:50]file doc_00112240 [00:32:50]remove file /storage/0357/doc_00112240 [00:32:50]file doc_00112241 [00:32:50]remove file /storage/0357/doc_00112241 [00:32:50]file doc_00112242 [00:32:50]remove file /storage/0357/doc_00112242 [00:32:50]file doc_00112243 [00:32:50]remove file /storage/0357/doc_00112243 [00:32:50]file doc_00112244 [00:32:50]remove file /storage/0357/doc_00112244 [00:32:50]file doc_00112245 [00:32:50]remove file /storage/0357/doc_00112245 [00:32:50]file doc_00112246 [00:32:50]remove file /storage/0357/doc_00112246 [00:32:50]file doc_00112247 [00:32:50]remove file /storage/0357/doc_00112247 [00:32:50]file doc_00112248 [00:32:50]remove file /storage/0357/doc_00112248 [00:32:50]file doc_00112249 [00:32:50]remove file /storage/0357/doc_00112249 [00:32:50]file doc_00112250 [00:32:50]remove file /storage/0357/doc_00112250 [00:32:50]file doc_00112251 [00:32:50]remove file /storage/0357/doc_00112251 [00:32:50]file doc_00112252 [00:32:50]remove file /storage/0357/doc_00112252 [00:32:50]file doc_00112253 [00:32:50]remove file /storage/0357/doc_00112253 [00:32:50]file doc_00112254 [00:32:50]remove file /storage/0357/doc_00112254 [00:32:50]file doc_00112255 [00:32:50]remove file /storage/0357/doc_00112255 [00:32:50]file doc_00112256 [00:32:50]remove file /storage/0357/doc_00112256 [00:32:50]file doc_00112257 [00:32:50]remove file /storage/0357/doc_00112257 [00:32:50]file doc_00112258 [00:32:50]remove file /storage/0357/doc_00112258 [00:32:50]file doc_00112259 [00:32:50]remove file /storage/0357/doc_00112259 [00:32:50]file doc_00112260 [00:32:50]remove file /storage/0357/doc_00112260 [00:32:50]file doc_00112261 [00:32:50]remove file /storage/0357/doc_00112261 [00:32:50]file doc_00112262 [00:32:50]remove file /storage/0357/doc_00112262 [00:32:50]file doc_00112263 [00:32:50]remove file /storage/0357/doc_00112263 [00:32:50]file doc_00112264 [00:32:50]remove file /storage/0357/doc_00112264 [00:32:50]file doc_00112265 [00:32:50]remove file /storage/0357/doc_00112265 [00:32:50]file doc_00112266 [00:32:50]remove file /storage/0357/doc_00112266 [00:32:51]file doc_00112267 [00:32:51]remove file /storage/0357/doc_00112267 [00:32:51]file doc_00112268 [00:32:51]remove file /storage/0357/doc_00112268 [00:32:51]file doc_00112269 [00:32:51]remove file /storage/0357/doc_00112269 [00:32:51]file doc_00112270 [00:32:51]remove file /storage/0357/doc_00112270 [00:32:51]file doc_00112271 [00:32:51]remove file /storage/0357/doc_00112271 [00:32:51]file doc_00112272 [00:32:51]remove file /storage/0357/doc_00112272 [00:32:51]file doc_00112273 [00:32:51]remove file /storage/0357/doc_00112273 [00:32:51]file doc_00112274 [00:32:51]remove file /storage/0357/doc_00112274 [00:32:51]file doc_00112275 [00:32:51]remove file /storage/0357/doc_00112275 [00:32:51]file doc_00112276 [00:32:51]remove file /storage/0357/doc_00112276 [00:32:51]file doc_00112277 [00:32:51]remove file /storage/0357/doc_00112277 [00:32:51]file doc_00112278 [00:32:51]remove file /storage/0357/doc_00112278 [00:32:51]file doc_00112279 [00:32:51]remove file /storage/0357/doc_00112279 [00:32:51]file doc_00112280 [00:32:51]remove file /storage/0357/doc_00112280 [00:32:51]file doc_00112281 [00:32:51]remove file /storage/0357/doc_00112281 [00:32:51]file doc_00112282 [00:32:51]remove file /storage/0357/doc_00112282 [00:32:51]file doc_00112283 [00:32:51]remove file /storage/0357/doc_00112283 [00:32:51]file doc_00112284 [00:32:51]remove file /storage/0357/doc_00112284 [00:32:51]file doc_00112285 [00:32:51]remove file /storage/0357/doc_00112285 [00:32:51]file doc_00112286 [00:32:51]remove file /storage/0357/doc_00112286 [00:32:51]file doc_00112287 [00:32:51]remove file /storage/0357/doc_00112287 [00:32:51]file doc_00112288 [00:32:51]remove file /storage/0357/doc_00112288 [00:32:51]file doc_00112289 [00:32:51]remove file /storage/0357/doc_00112289 [00:32:51]file doc_00112290 [00:32:51]remove file /storage/0357/doc_00112290 [00:32:51]file doc_00112291 [00:32:51]remove file /storage/0357/doc_00112291 [00:32:51]file doc_00112292 [00:32:51]remove file /storage/0357/doc_00112292 [00:32:51]file doc_00112293 [00:32:51]remove file /storage/0357/doc_00112293 [00:32:51]file doc_00112294 [00:32:51]remove file /storage/0357/doc_00112294 [00:32:51]file doc_00112295 [00:32:51]remove file /storage/0357/doc_00112295 [00:32:51]file doc_00112296 [00:32:51]remove file /storage/0357/doc_00112296 [00:32:51]file doc_00112297 [00:32:51]remove file /storage/0357/doc_00112297 [00:32:51]file doc_00112298 [00:32:51]remove file /storage/0357/doc_00112298 [00:32:51]file doc_00112299 [00:32:51]remove file /storage/0357/doc_00112299 [00:32:51]file doc_00112300 [00:32:51]remove file /storage/0357/doc_00112300 [00:32:51]file doc_00112301 [00:32:51]remove file /storage/0357/doc_00112301 [00:32:51]file doc_00112302 [00:32:51]remove file /storage/0357/doc_00112302 [00:32:51]file doc_00112303 [00:32:51]remove file /storage/0357/doc_00112303 [00:32:51]file doc_00112304 [00:32:51]remove file /storage/0357/doc_00112304 [00:32:51]file doc_00112305 [00:32:51]remove file /storage/0357/doc_00112305 [00:32:51]file doc_00112306 [00:32:51]remove file /storage/0357/doc_00112306 [00:32:51]file doc_00112307 [00:32:51]remove file /storage/0357/doc_00112307 [00:32:51]file doc_00112308 [00:32:51]remove file /storage/0357/doc_00112308 [00:32:51]file doc_00112309 [00:32:51]remove file /storage/0357/doc_00112309 [00:32:51]file doc_00112310 [00:32:51]remove file /storage/0357/doc_00112310 [00:32:51]file doc_00112311 [00:32:51]remove file /storage/0357/doc_00112311 [00:32:51]file doc_00112312 [00:32:51]remove file /storage/0357/doc_00112312 [00:32:51]file doc_00112313 [00:32:51]remove file /storage/0357/doc_00112313 [00:32:51]file doc_00112314 [00:32:51]remove file /storage/0357/doc_00112314 [00:32:51]file doc_00112315 [00:32:51]remove file /storage/0357/doc_00112315 [00:32:51]file doc_00112316 [00:32:51]remove file /storage/0357/doc_00112316 [00:32:51]file doc_00112317 [00:32:51]remove file /storage/0357/doc_00112317 [00:32:51]file doc_00112318 [00:32:51]remove file /storage/0357/doc_00112318 [00:32:51]file doc_00112319 [00:32:51]remove file /storage/0357/doc_00112319 [00:32:51]file doc_00112320 [00:32:51]remove file /storage/0357/doc_00112320 [00:32:51]file doc_00112321 [00:32:51]remove file /storage/0357/doc_00112321 [00:32:51]file doc_00112322 [00:32:51]remove file /storage/0357/doc_00112322 [00:32:51]file doc_00112323 [00:32:51]remove file /storage/0357/doc_00112323 [00:32:51]file doc_00112324 [00:32:51]remove file /storage/0357/doc_00112324 [00:32:51]file doc_00112325 [00:32:51]remove file /storage/0357/doc_00112325 [00:32:51]file doc_00112326 [00:32:51]remove file /storage/0357/doc_00112326 [00:32:51]file doc_00112327 [00:32:51]remove file /storage/0357/doc_00112327 [00:32:51]file doc_00112328 [00:32:51]remove file /storage/0357/doc_00112328 [00:32:51]file doc_00112329 [00:32:51]remove file /storage/0357/doc_00112329 [00:32:51]file doc_00112330 [00:32:51]remove file /storage/0357/doc_00112330 [00:32:51]file doc_00112331 [00:32:51]remove file /storage/0357/doc_00112331 [00:32:51]file doc_00112332 [00:32:51]remove file /storage/0357/doc_00112332 [00:32:51]file doc_00112333 [00:32:51]remove file /storage/0357/doc_00112333 [00:32:51]file doc_00112334 [00:32:51]remove file /storage/0357/doc_00112334 [00:32:51]file doc_00112335 [00:32:51]remove file /storage/0357/doc_00112335 [00:32:51]file doc_00112336 [00:32:51]remove file /storage/0357/doc_00112336 [00:32:51]file doc_00112337 [00:32:51]remove file /storage/0357/doc_00112337 [00:32:51]file doc_00112338 [00:32:51]remove file /storage/0357/doc_00112338 [00:32:51]file doc_00112339 [00:32:51]remove file /storage/0357/doc_00112339 [00:32:51]file doc_00112340 [00:32:51]remove file /storage/0357/doc_00112340 [00:32:51]file doc_00112341 [00:32:51]remove file /storage/0357/doc_00112341 [00:32:51]file doc_00112342 [00:32:51]remove file /storage/0357/doc_00112342 [00:32:51]file doc_00112343 [00:32:51]remove file /storage/0357/doc_00112343 [00:32:51]file doc_00112344 [00:32:51]remove file /storage/0357/doc_00112344 [00:32:51]file doc_00112345 [00:32:51]remove file /storage/0357/doc_00112345 [00:32:51]file doc_00112346 [00:32:51]remove file /storage/0357/doc_00112346 [00:32:51]file doc_00112347 [00:32:51]remove file /storage/0357/doc_00112347 [00:32:51]file doc_00112348 [00:32:51]remove file /storage/0357/doc_00112348 [00:32:51]file doc_00112349 [00:32:51]remove file /storage/0357/doc_00112349 [00:32:51]file doc_00112350 [00:32:51]remove file /storage/0357/doc_00112350 [00:32:51]file doc_00112351 [00:32:51]remove file /storage/0357/doc_00112351 [00:32:51]file doc_00112352 [00:32:51]remove file /storage/0357/doc_00112352 [00:32:51]file doc_00112353 [00:32:51]remove file /storage/0357/doc_00112353 [00:32:51]OFD Sender: No OFD packet to send [00:32:51]file doc_00112354 [00:32:51]remove file /storage/0357/doc_00112354 [00:32:51]file doc_00112355 [00:32:51]remove file /storage/0357/doc_00112355 [00:32:51]file doc_00112356 [00:32:51]remove file /storage/0357/doc_00112356 [00:32:51]file doc_00112357 [00:32:51]remove file /storage/0357/doc_00112357 [00:32:51]file doc_00112358 [00:32:51]remove file /storage/0357/doc_00112358 [00:32:51]file doc_00112359 [00:32:51]remove file /storage/0357/doc_00112359 [00:32:51]file doc_00112360 [00:32:51]remove file /storage/0357/doc_00112360 [00:32:51]file doc_00112361 [00:32:51]remove file /storage/0357/doc_00112361 [00:32:51]file doc_00112362 [00:32:51]remove file /storage/0357/doc_00112362 [00:32:51]file doc_00112363 [00:32:51]remove file /storage/0357/doc_00112363 [00:32:51]file doc_00112364 [00:32:51]remove file /storage/0357/doc_00112364 [00:32:51]file doc_00112365 [00:32:51]remove file /storage/0357/doc_00112365 [00:32:51]file doc_00112366 [00:32:51]remove file /storage/0357/doc_00112366 [00:32:51]file doc_00112367 [00:32:51]remove file /storage/0357/doc_00112367 [00:32:51]file doc_00112368 [00:32:51]remove file /storage/0357/doc_00112368 [00:32:51]file doc_00112369 [00:32:51]remove file /storage/0357/doc_00112369 [00:32:51]file doc_00112370 [00:32:51]remove file /storage/0357/doc_00112370 [00:32:51]file doc_00112371 [00:32:51]remove file /storage/0357/doc_00112371 [00:32:51]file doc_00112372 [00:32:51]remove file /storage/0357/doc_00112372 [00:32:51]file doc_00112373 [00:32:51]remove file /storage/0357/doc_00112373 [00:32:51]file doc_00112374 [00:32:51]remove file /storage/0357/doc_00112374 [00:32:51]file doc_00112375 [00:32:51]remove file /storage/0357/doc_00112375 [00:32:51]file doc_00112376 [00:32:51]remove file /storage/0357/doc_00112376 [00:32:51]file doc_00112377 [00:32:51]remove file /storage/0357/doc_00112377 [00:32:51]file doc_00112378 [00:32:51]remove file /storage/0357/doc_00112378 [00:32:51]file doc_00112379 [00:32:51]remove file /storage/0357/doc_00112379 [00:32:51]file doc_00112380 [00:32:51]remove file /storage/0357/doc_00112380 [00:32:51]file doc_00112381 [00:32:51]remove file /storage/0357/doc_00112381 [00:32:51]file doc_00112382 [00:32:51]remove file /storage/0357/doc_00112382 [00:32:51]file doc_00112383 [00:32:51]remove file /storage/0357/doc_00112383 [00:32:51]file doc_00112384 [00:32:51]remove file /storage/0357/doc_00112384 [00:32:51]file doc_00112385 [00:32:51]remove file /storage/0357/doc_00112385 [00:32:51]file doc_00112386 [00:32:51]remove file /storage/0357/doc_00112386 [00:32:51]file doc_00112387 [00:32:51]remove file /storage/0357/doc_00112387 [00:32:51]file doc_00112388 [00:32:51]remove file /storage/0357/doc_00112388 [00:32:51]file doc_00112389 [00:32:51]remove file /storage/0357/doc_00112389 [00:32:51]file doc_00112390 [00:32:51]remove file /storage/0357/doc_00112390 [00:32:51]file doc_00112391 [00:32:51]remove file /storage/0357/doc_00112391 [00:32:51]file doc_00112392 [00:32:51]remove file /storage/0357/doc_00112392 [00:32:51]file doc_00112393 [00:32:51]remove file /storage/0357/doc_00112393 [00:32:51]file doc_00112394 [00:32:51]remove file /storage/0357/doc_00112394 [00:32:51]file doc_00112395 [00:32:51]remove file /storage/0357/doc_00112395 [00:32:51]file doc_00112396 [00:32:51]remove file /storage/0357/doc_00112396 [00:32:51]file doc_00112397 [00:32:51]remove file /storage/0357/doc_00112397 [00:32:51]file doc_00112398 [00:32:51]remove file /storage/0357/doc_00112398 [00:32:51]file doc_00112399 [00:32:51]remove file /storage/0357/doc_00112399 [00:32:51]file doc_00112400 [00:32:51]remove file /storage/0357/doc_00112400 [00:32:51]file doc_00112401 [00:32:51]remove file /storage/0357/doc_00112401 [00:32:51]file doc_00112402 [00:32:51]remove file /storage/0357/doc_00112402 [00:32:51]file doc_00112403 [00:32:51]remove file /storage/0357/doc_00112403 [00:32:51]file doc_00112404 [00:32:51]remove file /storage/0357/doc_00112404 [00:32:51]file doc_00112405 [00:32:51]remove file /storage/0357/doc_00112405 [00:32:51]file doc_00112406 [00:32:51]remove file /storage/0357/doc_00112406 [00:32:51]file doc_00112407 [00:32:51]remove file /storage/0357/doc_00112407 [00:32:51]file doc_00112408 [00:32:51]remove file /storage/0357/doc_00112408 [00:32:51]file doc_00112409 [00:32:51]remove file /storage/0357/doc_00112409 [00:32:51]file doc_00112410 [00:32:51]remove file /storage/0357/doc_00112410 [00:32:51]file doc_00112411 [00:32:51]remove file /storage/0357/doc_00112411 [00:32:51]file doc_00112412 [00:32:51]remove file /storage/0357/doc_00112412 [00:32:51]file doc_00112413 [00:32:51]remove file /storage/0357/doc_00112413 [00:32:51]file doc_00112414 [00:32:51]remove file /storage/0357/doc_00112414 [00:32:51]file doc_00112415 [00:32:51]remove file /storage/0357/doc_00112415 [00:32:51]file doc_00112416 [00:32:51]remove file /storage/0357/doc_00112416 [00:32:51]file doc_00112417 [00:32:51]remove file /storage/0357/doc_00112417 [00:32:51]file doc_00112418 [00:32:51]remove file /storage/0357/doc_00112418 [00:32:51]file doc_00112419 [00:32:51]remove file /storage/0357/doc_00112419 [00:32:51]file doc_00112420 [00:32:51]remove file /storage/0357/doc_00112420 [00:32:51]file doc_00112421 [00:32:51]remove file /storage/0357/doc_00112421 [00:32:51]file doc_00112422 [00:32:51]remove file /storage/0357/doc_00112422 [00:32:51]file doc_00112423 [00:32:51]remove file /storage/0357/doc_00112423 [00:32:51]file doc_00112424 [00:32:51]remove file /storage/0357/doc_00112424 [00:32:51]file doc_00112425 [00:32:51]remove file /storage/0357/doc_00112425 [00:32:51]file doc_00112426 [00:32:51]remove file /storage/0357/doc_00112426 [00:32:51]file doc_00112427 [00:32:51]remove file /storage/0357/doc_00112427 [00:32:51]file doc_00112428 [00:32:51]remove file /storage/0357/doc_00112428 [00:32:51]file doc_00112429 [00:32:51]remove file /storage/0357/doc_00112429 [00:32:51]file doc_00112430 [00:32:51]remove file /storage/0357/doc_00112430 [00:32:51]file doc_00112431 [00:32:51]remove file /storage/0357/doc_00112431 [00:32:51]file doc_00112432 [00:32:51]remove file /storage/0357/doc_00112432 [00:32:51]file doc_00112433 [00:32:51]remove file /storage/0357/doc_00112433 [00:32:51]file doc_00112434 [00:32:51]remove file /storage/0357/doc_00112434 [00:32:51]file doc_00112435 [00:32:51]remove file /storage/0357/doc_00112435 [00:32:51]file doc_00112436 [00:32:51]remove file /storage/0357/doc_00112436 [00:32:51]file doc_00112437 [00:32:51]remove file /storage/0357/doc_00112437 [00:32:51]file doc_00112438 [00:32:51]remove file /storage/0357/doc_00112438 [00:32:51]file doc_00112439 [00:32:51]remove file /storage/0357/doc_00112439 [00:32:51]file doc_00112440 [00:32:51]remove file /storage/0357/doc_00112440 [00:32:51]file doc_00112441 [00:32:51]remove file /storage/0357/doc_00112441 [00:32:51]file doc_00112442 [00:32:51]remove file /storage/0357/doc_00112442 [00:32:51]file doc_00112443 [00:32:51]remove file /storage/0357/doc_00112443 [00:32:51]file doc_00112444 [00:32:51]remove file /storage/0357/doc_00112444 [00:32:51]file doc_00112445 [00:32:51]remove file /storage/0357/doc_00112445 [00:32:51]file doc_00112446 [00:32:51]remove file /storage/0357/doc_00112446 [00:32:51]file doc_00112447 [00:32:51]remove file /storage/0357/doc_00112447 [00:32:51]file doc_00112448 [00:32:51]remove file /storage/0357/doc_00112448 [00:32:51]file doc_00112449 [00:32:51]remove file /storage/0357/doc_00112449 [00:32:51]file doc_00112450 [00:32:51]remove file /storage/0357/doc_00112450 [00:32:51]file doc_00112451 [00:32:51]remove file /storage/0357/doc_00112451 [00:32:51]file doc_00112452 [00:32:51]remove file /storage/0357/doc_00112452 [00:32:51]file doc_00112453 [00:32:51]remove file /storage/0357/doc_00112453 [00:32:51]file doc_00112454 [00:32:51]remove file /storage/0357/doc_00112454 [00:32:51]file doc_00112455 [00:32:51]remove file /storage/0357/doc_00112455 [00:32:51]file doc_00112456 [00:32:51]remove file /storage/0357/doc_00112456 [00:32:51]file doc_00112457 [00:32:51]remove file /storage/0357/doc_00112457 [00:32:51]file doc_00112458 [00:32:51]remove file /storage/0357/doc_00112458 [00:32:51]file doc_00112459 [00:32:51]remove file /storage/0357/doc_00112459 [00:32:51]file doc_00112460 [00:32:51]remove file /storage/0357/doc_00112460 [00:32:51]file doc_00112461 [00:32:51]remove file /storage/0357/doc_00112461 [00:32:51]file doc_00112462 [00:32:51]remove file /storage/0357/doc_00112462 [00:32:51]file doc_00112463 [00:32:51]remove file /storage/0357/doc_00112463 [00:32:51]file doc_00112464 [00:32:51]remove file /storage/0357/doc_00112464 [00:32:51]file doc_00112465 [00:32:51]remove file /storage/0357/doc_00112465 [00:32:51]file doc_00112466 [00:32:51]remove file /storage/0357/doc_00112466 [00:32:51]file doc_00112467 [00:32:51]remove file /storage/0357/doc_00112467 [00:32:51]file doc_00112468 [00:32:51]remove file /storage/0357/doc_00112468 [00:32:51]file doc_00112469 [00:32:51]remove file /storage/0357/doc_00112469 [00:32:51]file doc_00112470 [00:32:51]remove file /storage/0357/doc_00112470 [00:32:51]file doc_00112471 [00:32:51]remove file /storage/0357/doc_00112471 [00:32:51]file doc_00112472 [00:32:51]remove file /storage/0357/doc_00112472 [00:32:51]file doc_00112473 [00:32:51]remove file /storage/0357/doc_00112473 [00:32:51]file doc_00112474 [00:32:51]remove file /storage/0357/doc_00112474 [00:32:51]file doc_00112475 [00:32:51]remove file /storage/0357/doc_00112475 [00:32:51]file doc_00112476 [00:32:51]remove file /storage/0357/doc_00112476 [00:32:51]file doc_00112477 [00:32:51]remove file /storage/0357/doc_00112477 [00:32:51]file doc_00112478 [00:32:51]remove file /storage/0357/doc_00112478 [00:32:51]file doc_00112479 [00:32:51]remove file /storage/0357/doc_00112479 [00:32:51]file doc_00112480 [00:32:51]remove file /storage/0357/doc_00112480 [00:32:51]file doc_00112481 [00:32:51]remove file /storage/0357/doc_00112481 [00:32:51]file doc_00112482 [00:32:51]remove file /storage/0357/doc_00112482 [00:32:51]file doc_00112483 [00:32:51]remove file /storage/0357/doc_00112483 [00:32:51]file doc_00112484 [00:32:51]remove file /storage/0357/doc_00112484 [00:32:51]file doc_00112485 [00:32:51]remove file /storage/0357/doc_00112485 [00:32:51]file doc_00112486 [00:32:51]remove file /storage/0357/doc_00112486 [00:32:51]file doc_00112487 [00:32:51]remove file /storage/0357/doc_00112487 [00:32:51]file doc_00112488 [00:32:51]remove file /storage/0357/doc_00112488 [00:32:51]file doc_00112489 [00:32:52]remove file /storage/0357/doc_00112489 [00:32:52]file doc_00112490 [00:32:52]remove file /storage/0357/doc_00112490 [00:32:52]file doc_00112491 [00:32:52]remove file /storage/0357/doc_00112491 [00:32:52]file doc_00112492 [00:32:52]remove file /storage/0357/doc_00112492 [00:32:52]file doc_00112493 [00:32:52]remove file /storage/0357/doc_00112493 [00:32:52]file doc_00112494 [00:32:52]remove file /storage/0357/doc_00112494 [00:32:52]file doc_00112495 [00:32:52]remove file /storage/0357/doc_00112495 [00:32:52]file doc_00112496 [00:32:52]remove file /storage/0357/doc_00112496 [00:32:52]file doc_00112497 [00:32:52]remove file /storage/0357/doc_00112497 [00:32:52]file doc_00112498 [00:32:52]remove file /storage/0357/doc_00112498 [00:32:52]file doc_00112499 [00:32:52]remove file /storage/0357/doc_00112499 [00:32:52]remove dir /storage/0357 [00:32:52]ProcessDocumentItem done err = 0, tmpTLVsize=249 [00:32:52]tlvbuf is 019E8A50 [00:32:52]SAM_PROTO_ClearQueue [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 09 00 00 [00:32:52]Write to MH i2c: E2 08 00 C4 0C 80 09 00 00 00 00 00 00 42 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 C4 0C 00 90 00 44 [00:32:52]RAPDU: 90 00 [00:32:52]wFMCommunicate OK [00:32:52]SAM_PROTO_ClearQueue done [00:32:52]KKMCreateOFDPacket [00:32:52]OFDProtocolAddRootSTLVToBuf [00:32:52]FM_MakeSignedData [00:32:52]FM_MakeSignedData [00:32:52]SAM_PROTO_SignData [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 0D 01 02 [00:32:52]Write to MH i2c: E2 08 00 C5 0C 80 0D 01 02 00 00 00 00 4A [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 C5 0C 00 90 00 45 [00:32:52]RAPDU: 90 00 [00:32:52]wFMCommunicate OK [00:32:52]wFMCommunicate request_size=255 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 0D 02 02 FA 02 00 F9 00 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 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 B2 75 1C 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 87 2C 01 [00:32:52]Write to MH i2c: E2 02 01 C6 0C 80 0D 02 02 FA 00 02 00 F9 00 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 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 B2 75 1C 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 87 2C 01 00 00 F9 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 C6 0C 00 90 00 46 [00:32:52]RAPDU: 90 00 [00:32:52]wFMCommunicate OK [00:32:52]wFMCommunicate request_size=8 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 0D 02 02 03 FB 98 56 [00:32:52]Write to MH i2c: E2 0B 00 C7 0C 80 0D 02 02 03 00 FB 98 56 00 00 3C [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 03 00 C7 0C 00 90 00 47 [00:32:52]RAPDU: 90 00 [00:32:52]wFMCommunicate OK [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 0D 03 02 [00:32:52]Write to MH i2c: E2 08 00 C8 0C 80 0D 03 02 00 00 00 00 4F [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 0B 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 0B 00 C8 0C 00 4D 8D 20 38 28 20 D5 9A 90 00 39 [00:32:52]RAPDU: 4D 8D 20 38 28 20 D5 9A 90 00 [00:32:52]wFMCommunicate OK [00:32:52]SAM_PROTO_SignData done [00:32:52]FM_MakeSignedData done [00:32:52]CreateOFDProtocolMessage [00:32:52]wFMCommunicate request_size=4 [00:32:52]MH_SAM_APDU [00:32:52]CAPDU: 80 11 00 00 [00:32:52]Write to MH i2c: E2 08 00 C9 0C 80 11 00 00 00 00 00 00 4F [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:32:52]Read from MH i2c: E2 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 17 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: E2 17 00 C9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A0 [00:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:32:52]wFMCommunicate OK [00:32:52]CreateOFDProtocolMessage done [00:32:52]OFDSenderStorePacket 112500 [00:32:52]StoreOFDPacket docnum=112500 [00:32:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 01 00 00 08 A1 05 01 43 D8 5A 02 01 00 02 00 F9 00 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 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 B2 75 1C 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 87 2C 01 FB 98 56 4D 8D 20 38 28 20 D5 9A [00:32:52]CheckFolder [00:32:52]dirname=/storage/ofd_packets [00:32:52]CheckFolder done [00:32:52]ProducePacketName [00:32:52]name=ofd_packets/00112500 [00:32:52]NVStorageSaveData ofd_packets/00112500 [00:32:52]File name is /storage/ofd_packets/00112500 [00:32:52]Write 299 bytes [00:32:52]NVStorageSaveData done [00:32:52]OFDSenderStorePacket done [00:32:52]KKMCreateOFDPacket done [00:32:52]NVStorageSaveData kkm_last_timestamp [00:32:52]File name is /storage/kkm_last_timestamp [00:32:52]Write 4 bytes [00:32:52]NVStorageSaveData done [00:32:52]ExternCall_PrintAddStr [00:32:52]wPrintStart [00:32:52]Write to MH i2c: 01 00 00 CA 0C D6 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 07 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 07 00 CA 0C 00 00 00 00 00 FF 0F EB [00:32:52]RasterBufferAndPrint [00:32:52]line Отчет об открытии смены [00:32:52]line ФФД: 1.0 [00:32:52]line ИНН: 02508201610067 [00:32:52]line Кассир: Токторбек у С. [00:32:52]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:32:52]line Место: АЗС № 47 "Партнер Нефть" [00:32:52]line 15.04.2024 00:32 [00:32:52]line Смена: 358 [00:32:52]line РНМ: 0000000000094237 [00:32:52]line ЗНМ: 0300000138 [00:32:52]line ФД: 112500 [00:32:52]line ФМ: 0000000000875019 [00:32:52]line ФПД: 148623081576534 [00:32:52]written 0, free lines is 4095 [00:32:52]OFD Sender: Processing packet 112500 [packets to send 71, broken 70] [00:32:52]ProducePacketName [00:32:52]name=ofd_packets/00112500 [00:32:52]OFD Sender: To server: pG, [00:32:52]CommunicateWithHost lk.salyk.kg:30040 [00:32:52]ConnectInit lk.salyk.kg [00:32:52]Write to MH i2c: 01 00 00 DC 0C E8 [00:32:52]Write i2c OK [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 07 00 [00:32:52]MH_I2C_Read... [00:32:52]Read from MH i2c: 01 07 00 DC 0C 00 00 00 00 00 54 0E 51 [00:32:52]RasterBufferAndPrint [00:32:52]line [00:32:52]line [00:32:52]line [00:32:52]line [00:32:52]line [00:32:52]written 0, free lines is 3676 [00:32:53]MH_Cut [00:32:53]Write to MH i2c: D1 01 00 E3 0C 01 C1 [00:32:53]Write i2c OK [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: D1 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: D1 01 00 [00:32:53]MH_I2C_Read... [00:32:53]Read from MH i2c: D1 01 00 E3 0C 00 C0 [00:32:53]Write to MH i2c: 01 00 00 E4 0C F0 [00:32:53]Write i2c OK [00:32:53]MH_I2C_Read... [00:32:53]Connected sock=10 [00:32:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 01 00 00 08 A1 05 01 43 D8 5A 02 01 00 02 00 F9 00 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 1A 00 D0 A2 D0 BE D0 BA D1 82 D0 BE D1 80 D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 A1 2E 20 F1 03 49 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A8 D0 BE D0 BF D0 BE D0 BA D0 BE D0 B2 2C 20 D1 83 D0 BB 2E 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 32 20 D0 90 2C 20 34 32 2E 38 36 34 34 39 30 2C 20 37 34 2E 33 34 33 33 37 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 34 37 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 B2 75 1C 66 0E 04 04 00 66 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 35 04 06 00 87 2C 01 FB 98 56 4D 8D 20 38 28 20 D5 9A [00:32:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 18 BC 47 00 E4 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 74 B7 01 00 F4 03 04 00 3E 1D 1C 66 B6 04 01 00 00 B6 B8 8B EB 56 62 E6 82 [00:32:53]CommunicateWithHost err = 0 [00:32:53]CheckOFDResponse [00:32:53]1017 (14) - 77093643461234 [00:32:53]1041 (16) - 0000000000875019 [00:32:53]1040 (4) - 112500 [00:32:53]1012 (4) - 14.04.2024 18:15 [00:32:53]1206 (1) - 0 [00:32:53]OFD Sender: Remove packet 112500 [00:32:53]ProducePacketName [00:32:53]name=ofd_packets/00112500 [00:32:53]NVStorageDeleteData [00:32:53]*** Cut start [00:32:53]*** Partial cut [00:32:53]*** CUTSNS_PIN = 1 [00:32:53]*** CUTSNS_PIN = 0 [00:32:53]*** Brake cut motor [00:32:53]OFD Sender: No OFD packet to send [00:32:54]Read from MH i2c: 01 [00:32:54]MH_I2C_Read... [00:32:54]*** Stop cut motor [00:32:54]*** Cut end [00:32:54]Read from MH i2c: 01 07 00 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: 01 07 00 E4 0C 00 00 00 00 00 FF 0F 05 [00:32:54]process_action open_shift done [00:32:54]requested_data is exist [00:32:54]produce_requested_data [00:32:54]requested_item fd.num is exist - process it [00:32:54]SAM_PROTO_GetFieldsCounters [00:32:54]wFMCommunicate request_size=4 [00:32:54]MH_SAM_APDU [00:32:54]CAPDU: 80 13 00 00 [00:32:54]Write to MH i2c: E2 08 00 E5 0C 80 13 00 00 00 00 00 00 6D [00:32:54]Write i2c OK [00:32:54]MH_I2C_Read... [00:32:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:32:54]Read from MH i2c: E2 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 62 00 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 62 00 E5 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [00:32:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 74 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:32:54]wFMCommunicate OK [00:32:54]SAM_PROTO_GetFieldsCounters done [00:32:54]requested_item shift.num is exist - process it [00:32:54]requested_item shift.opened is exist - process it [00:32:54]req_shift_opened [00:32:54]FM_GetShiftState [00:32:54]SAM_PROTO_GetShiftState [00:32:54]wFMCommunicate request_size=4 [00:32:54]MH_SAM_APDU [00:32:54]CAPDU: 80 13 01 00 [00:32:54]Write to MH i2c: E2 08 00 E6 0C 80 13 01 00 00 00 00 00 6F [00:32:54]Write i2c OK [00:32:54]MH_I2C_Read... [00:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:32:54]Read from MH i2c: E2 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 0E 00 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 0E 00 E6 0C 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 24 [00:32:54]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:32:54]wFMCommunicate OK [00:32:54]SAM_PROTO_GetShiftState done [00:32:54]FM_GetShiftState done [00:32:54]req_shift_opened done [00:32:54]requested_item shift.open_date is exist - process it [00:32:54]req_shift_open_date [00:32:54]req_shift_open_date done [00:32:54]produce_requested_data done [00:32:54]produce_requested_data return {"fd.num":112500,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:32:54]process_action_free open_shift [00:32:54]json_value_free [00:32:54]json_value_free done [00:32:54]process_json_proto returns [00:32:54]Send response to host [00:32:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":112500,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:32:54]free response buf [00:32:54]execute_script done [00:32:54]execute_script returns [00:32:54]free content buf [00:32:54]Sock 9.Close socket [00:32:54]Sock 9.Thread stoped [00:32:54]accept exits with 7 [00:32:54]New connection [00:32:54]New thread 3067174244 created [00:32:54]Thread 3067317604 joined [00:32:54]Waiting for new connection... [00:32:54] Sock 7.Parse request [00:32:54]Sock 7.Check first char [00:32:54]Sock 7.First char is OK [00:32:54]request: POST /json_proto HTTP/1.0 [00:32:54]Method: POST [00:32:54]URL: /json_proto [00:32:54]Method is POST - this is cgi request [00:32:54]url: /json_proto [00:32:54]query_string will be loaded in cgi processing [00:32:54]execute_cgi json_proto POST (null) [00:32:54]execute_cgi path=json_proto method=POST [00:32:54]POST find Content-Length [00:32:54]Host: 172.17.96.197:8080 [00:32:54]Content-Length: 331 [00:32:54]Content-Type: application/json [00:32:54] [00:32:54]POST finish read [00:32:54]Found Content-Length = 331 [00:32: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" ] } } [00:32:54]execute_script... [00:32: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" ] } } [00:32:54]POST & json_proto [00:32:54]process_json_proto [00:32:54]json parsed OK: [00:32:54]protocol is kg_v1.0 [00:32:54]action value=get_value [00:32:54]process_action get_value [00:32:54]cmd_get_value [00:32:54]process_action get_value done [00:32:54]requested_data is exist [00:32:54]produce_requested_data [00:32:54]requested_item fm.sale.total is exist - process it [00:32:54]SAM_PROTO_GetFMData [00:32:54]wFMCommunicate request_size=4 [00:32:54]MH_SAM_APDU [00:32:54]CAPDU: 80 13 03 00 [00:32:54]Write to MH i2c: E2 08 00 E7 0C 80 13 03 00 00 00 00 00 72 [00:32:54]Write i2c OK [00:32:54]MH_I2C_Read... [00:32:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:32:54]Read from MH i2c: E2 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 FD 00 [00:32:54]MH_I2C_Read... [00:32:54]Read from MH i2c: E2 FD 00 E7 0C 00 C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 76 [00:32:54]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 A8 B4 01 00 69 04 A3 00 6F 04 04 00 30 AF 01 00 B1 04 05 00 D4 6C 41 C9 01 70 04 05 00 32 F1 40 88 01 72 04 04 00 A2 7B 00 41 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 38 68 92 30 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 40 10 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [00:32:54]wFMCommunicate OK [00:32:54]wFMCommunicate request_size=4 [00:32:54]MH_SAM_APDU [00:32:54]CAPDU: 80 17 00 00 [00:32:54]Write to MH i2c: E2 08 00 E8 0C 80 17 00 00 00 00 00 00 74 [00:32:54]Write i2c OK [00:32:54]MH_I2C_Read... [00:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:55]Read from MH i2c: E2 [00:32:55]MH_I2C_Read... [00:32:55]Read from MH i2c: E2 FD 00 [00:32:55]MH_I2C_Read... [00:32:55]Read from MH i2c: E2 FD 00 E8 0C 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [00:32:55]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:55]wFMCommunicate OK [00:32:55]wFMCommunicate request_size=4 [00:32:55]MH_SAM_APDU [00:32:55]CAPDU: 80 17 00 00 [00:32:55]Write to MH i2c: E2 08 00 E9 0C 80 17 00 00 00 00 00 00 75 [00:32:55]Write i2c OK [00:32:55]MH_I2C_Read... [00:32:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:55]Read from MH i2c: E2 [00:32:55]MH_I2C_Read... [00:32:55]Read from MH i2c: E2 FD 00 [00:32:55]MH_I2C_Read... [00:32:55]Read from MH i2c: E2 FD 00 E9 0C 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:32:55]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:32:55]wFMCommunicate OK [00:32:55]wFMCommunicate request_size=4 [00:32:55]MH_SAM_APDU [00:32:55]CAPDU: 80 17 00 00 [00:32:55]Write to MH i2c: E2 08 00 EA 0C 80 17 00 00 00 00 00 00 76 [00:32:55]Write i2c OK [00:32:55]MH_I2C_Read... [00:32:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:56]Read from MH i2c: E2 [00:32:56]MH_I2C_Read... [00:32:56]Read from MH i2c: E2 FD 00 [00:32:56]MH_I2C_Read... [00:32:56]Read from MH i2c: E2 FD 00 EA 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EE [00:32:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:32:56]wFMCommunicate OK [00:32:56]wFMCommunicate request_size=4 [00:32:56]MH_SAM_APDU [00:32:56]CAPDU: 80 17 00 00 [00:32:56]Write to MH i2c: E2 08 00 EB 0C 80 17 00 00 00 00 00 00 77 [00:32:56]Write i2c OK [00:32:56]MH_I2C_Read... [00:32:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [00:32:56]Read from MH i2c: E2 [00:32:56]MH_I2C_Read... [00:32:56]Read from MH i2c: E2 E5 00 [00:32:56]MH_I2C_Read... [00:32:56]Read from MH i2c: E2 E5 00 EB 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5B [00:32:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:32:56]wFMCommunicate OK [00:32:56]SAM_PROTO_GetFMData done [00:32:56]requested_item fm.sale_refund.total is exist - process it [00:32:56]requested_item fm.buy.total is exist - process it [00:32:56]requested_item shift.sale.total is exist - process it [00:32:56]SAM_PROTO_GetShiftData [00:32:56]wFMCommunicate request_size=4 [00:32:56]MH_SAM_APDU [00:32:56]CAPDU: 80 13 02 00 [00:32:56]Write to MH i2c: E2 08 00 EC 0C 80 13 02 00 00 00 00 00 76 [00:32:56]Write i2c OK [00:32:56]MH_I2C_Read... [00:32:57]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:32:57]Read from MH i2c: E2 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 EC 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 E9 [00:32:57]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:32:57]wFMCommunicate OK [00:32:57]wFMCommunicate request_size=4 [00:32:57]MH_SAM_APDU [00:32:57]CAPDU: 80 17 00 00 [00:32:57]Write to MH i2c: E2 08 00 ED 0C 80 17 00 00 00 00 00 00 79 [00:32:57]Write i2c OK [00:32:57]MH_I2C_Read... [00:32:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:57]Read from MH i2c: E2 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 ED 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 81 [00:32:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:32:57]wFMCommunicate OK [00:32:57]wFMCommunicate request_size=4 [00:32:57]MH_SAM_APDU [00:32:57]CAPDU: 80 17 00 00 [00:32:57]Write to MH i2c: E2 08 00 EE 0C 80 17 00 00 00 00 00 00 7A [00:32:57]Write i2c OK [00:32:57]MH_I2C_Read... [00:32:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:57]Read from MH i2c: E2 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 [00:32:57]MH_I2C_Read... [00:32:57]Read from MH i2c: E2 FD 00 EE 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 4C [00:32:58]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:32:58]wFMCommunicate OK [00:32:58]wFMCommunicate request_size=4 [00:32:58]MH_SAM_APDU [00:32:58]CAPDU: 80 17 00 00 [00:32:58]Write to MH i2c: E2 08 00 EF 0C 80 17 00 00 00 00 00 00 7B [00:32:58]Write i2c OK [00:32:58]MH_I2C_Read... [00:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:32:58]Read from MH i2c: E2 [00:32:58]MH_I2C_Read... [00:32:58]Read from MH i2c: E2 FD 00 [00:32:58]MH_I2C_Read... [00:32:58]Read from MH i2c: E2 FD 00 EF 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 ED [00:32:58]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:32:58]wFMCommunicate OK [00:32:58]wFMCommunicate request_size=4 [00:32:58]MH_SAM_APDU [00:32:58]CAPDU: 80 17 00 00 [00:32:58]Write to MH i2c: E2 08 00 F0 0C 80 17 00 00 00 00 00 00 7C [00:32:58]Write i2c OK [00:32:58]MH_I2C_Read... [00:32:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:32:58]Read from MH i2c: E2 [00:32:58]MH_I2C_Read... [00:32:58]Read from MH i2c: E2 BD 00 [00:32:58]MH_I2C_Read... [00:32:58]Read from MH i2c: E2 BD 00 F0 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 62 [00:32:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:32:58]wFMCommunicate OK [00:32:58]SAM_PROTO_GetShiftData done [00:32:58]requested_item shift.sale.total_cash is exist - process it [00:32:58]requested_item shift.sale_refund.total is exist - process it [00:32:58]requested_item shift.sale_refund.total_cash is exist - process it [00:32:58]requested_item shift.buy.total is exist - process it [00:32:58]requested_item shift.buy.total_cash is exist - process it [00:32:58]produce_requested_data done [00:32:58]produce_requested_data return {"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:32:58]process_action_free get_value [00:32:58]json_value_free [00:32:58]json_value_free done [00:32:58]process_json_proto returns [00:32:58]Send response to host [00:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76714754.12,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:32:58]free response buf [00:32:58]execute_script done [00:32:58]execute_script returns [00:32:58]free content buf [00:32:58]Sock 7.Close socket [00:32:58]Sock 7.Thread stoped [00:32:59]OFD Sender: No OFD packet to send [00:33:04]OFD Sender: No OFD packet to send [00:33:09]OFD Sender: No OFD packet to send [00:33:14]OFD Sender: No OFD packet to send [00:33:19]OFD Sender: No OFD packet to send [00:33:24]OFD Sender: No OFD packet to send [00:33:29]OFD Sender: No OFD packet to send [00:33:34]OFD Sender: No OFD packet to send [00:33:39]OFD Sender: No OFD packet to send [00:33:44]OFD Sender: No OFD packet to send [00:33:49]OFD Sender: No OFD packet to send [00:33:54]OFD Sender: No OFD packet to send [00:33:59]OFD Sender: No OFD packet to send [00:34:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:14]OFD Sender: No OFD packet to send [00:35:19]OFD Sender: No OFD packet to send [00:35:24]OFD Sender: No OFD packet to send [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:44]OFD Sender: No OFD packet to send [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:04]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:57]accept exits with 9 [00:36:57]New connection [00:36:57]New thread 3067317604 created [00:36:57]Thread 3067174244 joined [00:36:57]Waiting for new connection... [00:36:57] Sock 9.Parse request [00:36:57]Sock 9.Check first char [00:36:57]Sock 9.First char is OK [00:36:57]request: POST /json_proto HTTP/1.0 [00:36:57]Method: POST [00:36:57]URL: /json_proto [00:36:57]Method is POST - this is cgi request [00:36:57]url: /json_proto [00:36:57]query_string will be loaded in cgi processing [00:36:57]execute_cgi json_proto POST (null) [00:36:57]execute_cgi path=json_proto method=POST [00:36:57]POST find Content-Length [00:36:57]Host: 172.17.96.197:8080 [00:36:57]Content-Length: 676 [00:36:57]Content-Type: application/json [00:36:57] [00:36:57]POST finish read [00:36:57]Found Content-Length = 676 [00:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:36:57]execute_script... [00:36: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)48782", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:36:57]POST & json_proto [00:36:57]process_json_proto [00:36:57]json parsed OK: [00:36:57]protocol is kg_v1.0 [00:36:57]action value=close_receipt [00:36:57]process_action close_receipt [00:36:57]cmd_close_receipt [00:36:57]MH_GetDate [00:36:57]Write to MH i2c: F0 00 00 F1 0C EC [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: F0 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: F0 09 00 [00:36:57]MH_I2C_Read... [00:36:57]Read from MH i2c: F0 09 00 F1 0C 00 AB 76 1C 66 E0 85 7F 64 E0 [00:36:57]GetLastDocTimeStamp 1713141170 [00:36:57]current date 1713141419 [00:36:57]FM_GetShiftState [00:36:57]SAM_PROTO_GetShiftState [00:36:57]wFMCommunicate request_size=4 [00:36:57]MH_SAM_APDU [00:36:57]CAPDU: 80 13 01 00 [00:36:57]Write to MH i2c: E2 08 00 F2 0C 80 13 01 00 00 00 00 00 7B [00:36:57]Write i2c OK [00:36:57]MH_I2C_Read... [00:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:58]Read from MH i2c: E2 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 0E 00 [00:36:58]MH_I2C_Read... [00:36:58]Read from MH i2c: E2 0E 00 F2 0C 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 30 [00:36:58]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:36:58]wFMCommunicate OK [00:36:58]SAM_PROTO_GetShiftState done [00:36:58]FM_GetShiftState done [00:36:58]opened in 1713141170 [00:36:58]opened+sec_in_day 1713227570 [00:36:58]quantity*price = 50025 [00:36:58]sum+1 = 50027 [00:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 1 15.04.2024 00:36 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112501 ФПД: 235642163396832 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112501&fm=235642163396832&tin=02508201610067®Number=0000000000094237&sum=50000 [00:36:59]StoreToDocumentArchive [00:36:59]shift 358 fd 112501 [00:36:59]save to /storage/0358/doc_00112501 [00:36:59]save last doc name /storage/0358/doc_00112501 to /storage/kkm_last_doc_name [00:36:59]save OK [00:36:59]Clear old archive folders... [00:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:36:59]tlvbuf is 019EF750 [00:36:59]SAM_PROTO_ClearQueue [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 09 00 00 [00:36:59]Write to MH i2c: E2 08 00 FF 0C 80 09 00 00 00 00 00 00 7D [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 FF 0C 00 90 00 7F [00:36:59]RAPDU: 90 00 [00:36:59]wFMCommunicate OK [00:36:59]SAM_PROTO_ClearQueue done [00:36:59]KKMCreateOFDPacket [00:36:59]OFDProtocolAddRootSTLVToBuf [00:36:59]FM_MakeSignedData [00:36:59]FM_MakeSignedData [00:36:59]SAM_PROTO_SignData [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 0D 01 02 [00:36:59]Write to MH i2c: E2 08 00 00 0D 80 0D 01 02 00 00 00 00 86 [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 00 0D 00 90 00 81 [00:36:59]RAPDU: 90 00 [00:36:59]wFMCommunicate OK [00:36:59]wFMCommunicate request_size=255 [00:36:59]MH_SAM_APDU [00:36:59]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 01 00 00 00 F4 03 04 00 AB 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B7 01 00 35 04 06 00 D6 [00:36:59]Write to MH i2c: E2 02 01 01 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 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 01 00 00 00 F4 03 04 00 AB 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B7 01 00 35 04 06 00 D6 00 00 2E [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]OFD Sender: No OFD packet to send [00:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 01 0D 00 90 00 82 [00:36:59]RAPDU: 90 00 [00:36:59]wFMCommunicate OK [00:36:59]wFMCommunicate request_size=10 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 0D 02 02 05 50 B7 71 80 E0 [00:36:59]Write to MH i2c: E2 0D 00 02 0D 80 0D 02 02 05 00 50 B7 71 80 E0 00 00 6B [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 03 00 02 0D 00 90 00 83 [00:36:59]RAPDU: 90 00 [00:36:59]wFMCommunicate OK [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 0D 03 02 [00:36:59]Write to MH i2c: E2 08 00 03 0D 80 0D 03 02 00 00 00 00 8B [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0B 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 0B 00 03 0D 00 99 CB 12 02 CC 4E 8E 90 90 00 3C [00:36:59]RAPDU: 99 CB 12 02 CC 4E 8E 90 90 00 [00:36:59]wFMCommunicate OK [00:36:59]SAM_PROTO_SignData done [00:36:59]FM_MakeSignedData done [00:36:59]CreateOFDProtocolMessage [00:36:59]wFMCommunicate request_size=4 [00:36:59]MH_SAM_APDU [00:36:59]CAPDU: 80 11 00 00 [00:36:59]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:59]Read from MH i2c: E2 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 17 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DC [00:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:36:59]wFMCommunicate OK [00:36:59]CreateOFDProtocolMessage done [00:36:59]OFDSenderStorePacket 112501 [00:36:59]StoreOFDPacket docnum=112501 [00:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D6 44 07 01 42 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 AB 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B7 01 00 35 04 06 00 D6 50 B7 71 80 E0 99 CB 12 02 CC 4E 8E 90 [00:36:59]CheckFolder [00:36:59]dirname=/storage/ofd_packets [00:36:59]CheckFolder done [00:36:59]ProducePacketName [00:36:59]name=ofd_packets/00112501 [00:36:59]NVStorageSaveData ofd_packets/00112501 [00:36:59]File name is /storage/ofd_packets/00112501 [00:36:59]Write 301 bytes [00:36:59]NVStorageSaveData done [00:36:59]OFDSenderStorePacket done [00:36:59]KKMCreateOFDPacket done [00:36:59]NVStorageSaveData kkm_last_timestamp [00:36:59]File name is /storage/kkm_last_timestamp [00:36:59]Write 4 bytes [00:36:59]NVStorageSaveData done [00:36:59]ExternCall_PrintAddStr [00:36:59]wPrintStart [00:36:59]Write to MH i2c: 01 00 00 05 0D 12 [00:36:59]Write i2c OK [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 07 00 [00:36:59]MH_I2C_Read... [00:36:59]Read from MH i2c: 01 07 00 05 0D 00 00 00 00 00 FF 0F 27 [00:36:59]RasterBufferAndPrint [00:36:59]line Счет N : (1)48782 [00:36:59]line ИНН: 02508201610067 [00:36:59]line Контрольно-Кассовый Чек [00:36:59]line ПРОДАЖА [00:36:59]line ТРК (МРК, ГНК) : 21 [00:36:59]line Товар: 2710124130 [00:36:59]line Аи-92-К-5 [00:36:59]line 7.720 * 64.80 [00:36:59]line = 500.26 [00:36:59]line НДС 12% НСП 1% [00:36:59]line > о реализуемом товаре [00:36:59]line ОКРУГЛЕНИЕ: -0.26 [00:36:59]line ИТОГО: 500.00 [00:36:59]line Внесено: 500.00 [00:36:59]line СДАЧА: 0.00 [00:36:59]line НСП 1% : 4.43 [00:36:59]line НДС 12% : 53.12 [00:36:59]line Наличными: 500.00 [00:36:59]line Безнал.: 0.00 [00:36:59]line Место: АЗС № 47 "Партнер Нефть" [00:36:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:36:59]line СНО: Общий режим [00:36:59]line Чек 1 15.04.2024 00:36 [00:36:59]line Смена: 358 ФФД: 1.0 [00:36:59]line ЗНМ: 0300000138 [00:36:59]line РНМ: 0000000000094237 [00:36:59]line Версия ККМ: 001 [00:36:59]line ФМ: 0000000000875019 [00:36:59]line ФД: 112501 [00:36:59]line ФПД: 235642163396832 [00:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003659&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112501&fm=235642163396832&tin=02508201610067®Number=0000000000094237&sum=50000 [00:37:00]OFD Sender: Processing packet 112501 [packets to send 71, broken 70] [00:37:00]ProducePacketName [00:37:00]name=ofd_packets/00112501 [00:37:00]OFD Sender: To server: pG, [00:37:00]CommunicateWithHost lk.salyk.kg:30040 [00:37:00]ConnectInit lk.salyk.kg [00:37:00]written 0, free lines is 4095 [00:37:00]Connected sock=10 [00:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 D6 44 07 01 42 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 01 00 00 00 F4 03 04 00 AB 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B7 01 00 35 04 06 00 D6 50 B7 71 80 E0 99 CB 12 02 CC 4E 8E 90 [00:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1D 4F 47 00 66 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 75 B7 01 00 F4 03 04 00 35 1E 1C 66 B6 04 01 00 00 99 3E A3 C6 5D 9E 5E 58 [00:37:00]CommunicateWithHost err = 0 [00:37:00]CheckOFDResponse [00:37:00]1017 (14) - 77093643461234 [00:37:00]1041 (16) - 0000000000875019 [00:37:00]1040 (4) - 112501 [00:37:00]1012 (4) - 14.04.2024 18:19 [00:37:00]1206 (1) - 0 [00:37:00]OFD Sender: Remove packet 112501 [00:37:00]ProducePacketName [00:37:00]name=ofd_packets/00112501 [00:37:00]NVStorageDeleteData [00:37:00]Write to MH i2c: 01 00 00 30 0D 3D [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 07 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: 01 07 00 30 0D 00 00 00 00 00 F4 0C 44 [00:37:00]RasterBufferAndPrint [00:37:00]line [00:37:00]line [00:37:00]line [00:37:00]line [00:37:00]line [00:37:00]written 0, free lines is 3323 [00:37:00]MH_Cut [00:37:00]Write to MH i2c: D1 01 00 37 0D 01 16 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: D1 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: D1 01 00 [00:37:00]MH_I2C_Read... [00:37:00]Read from MH i2c: D1 01 00 37 0D 00 15 [00:37:00]Write to MH i2c: 01 00 00 38 0D 45 [00:37:00]Write i2c OK [00:37:00]MH_I2C_Read... [00:37:00]OFD Sender: No OFD packet to send [00:37:01]*** Cut start [00:37:01]*** Partial cut [00:37:01]*** CUTSNS_PIN = 1 [00:37:01]*** CUTSNS_PIN = 0 [00:37:01]*** Brake cut motor [00:37:01]Read from MH i2c: 01 [00:37:01]MH_I2C_Read... [00:37:01]*** Stop cut motor [00:37:01]*** Cut end [00:37:01]Read from MH i2c: 01 07 00 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 FF 0F 5A [00:37:01]process_action close_receipt done [00:37:01]requested_data is exist [00:37:01]produce_requested_data [00:37:01]requested_item fm.sn is exist - process it [00:37:01]wFMCommunicate request_size=4 [00:37:01]MH_SAM_APDU [00:37:01]CAPDU: 80 11 00 00 [00:37:01]Write to MH i2c: E2 08 00 39 0D 80 11 00 00 00 00 00 00 C0 [00:37:01]Write i2c OK [00:37:01]MH_I2C_Read... [00:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:01]Read from MH i2c: E2 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: E2 17 00 [00:37:01]MH_I2C_Read... [00:37:01]Read from MH i2c: E2 17 00 39 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 11 [00:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:37:01]wFMCommunicate OK [00:37:01]requested_item fd.num is exist - process it [00:37:01]SAM_PROTO_GetFieldsCounters [00:37:01]wFMCommunicate request_size=4 [00:37:01]MH_SAM_APDU [00:37:01]CAPDU: 80 13 00 00 [00:37:01]Write to MH i2c: E2 08 00 3A 0D 80 13 00 00 00 00 00 00 C3 [00:37:01]Write i2c OK [00:37:01]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 62 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 62 00 3A 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 75 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [00:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 75 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:02]wFMCommunicate OK [00:37:02]SAM_PROTO_GetFieldsCounters done [00:37:02]requested_item shift.num is exist - process it [00:37:02]requested_item shift.opened is exist - process it [00:37:02]req_shift_opened [00:37:02]FM_GetShiftState [00:37:02]SAM_PROTO_GetShiftState [00:37:02]wFMCommunicate request_size=4 [00:37:02]MH_SAM_APDU [00:37:02]CAPDU: 80 13 01 00 [00:37:02]Write to MH i2c: E2 08 00 3B 0D 80 13 01 00 00 00 00 00 C5 [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 3B 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 7A [00:37:02]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:37:02]wFMCommunicate OK [00:37:02]SAM_PROTO_GetShiftState done [00:37:02]FM_GetShiftState done [00:37:02]req_shift_opened done [00:37:02]requested_item shift.open_date is exist - process it [00:37:02]req_shift_open_date [00:37:02]req_shift_open_date done [00:37:02]produce_requested_data done [00:37:02]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112501,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:37:02]process_action_free close_receipt [00:37:02]json_value_free [00:37:02]json_value_free done [00:37:02]process_json_proto returns [00:37:02]Send response to host [00:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112501,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:37:02]free response buf [00:37:02]execute_script done [00:37:02]execute_script returns [00:37:02]free content buf [00:37:02]Sock 9.Close socket [00:37:02]Sock 9.Thread stoped [00:37:02]accept exits with 7 [00:37:02]New connection [00:37:02]New thread 3067174244 created [00:37:02]Thread 3067317604 joined [00:37:02]Waiting for new connection... [00:37:02] Sock 7.Parse request [00:37:02]Sock 7.Check first char [00:37:02]Sock 7.First char is OK [00:37:02]request: POST /json_proto HTTP/1.0 [00:37:02]Method: POST [00:37:02]URL: /json_proto [00:37:02]Method is POST - this is cgi request [00:37:02]url: /json_proto [00:37:02]query_string will be loaded in cgi processing [00:37:02]execute_cgi json_proto POST (null) [00:37:02]execute_cgi path=json_proto method=POST [00:37:02]POST find Content-Length [00:37:02]Host: 172.17.96.197:8080 [00:37:02]Content-Length: 619 [00:37:02]Content-Type: application/json [00:37:02] [00:37:02]POST finish read [00:37:02]Found Content-Length = 619 [00:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10464", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:02]execute_script... [00:37:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10464", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:37:02]POST & json_proto [00:37:02]process_json_proto [00:37:02]json parsed OK: [00:37:02]protocol is kg_v1.0 [00:37:02]action value=close_receipt [00:37:02]process_action close_receipt [00:37:02]cmd_close_receipt [00:37:02]MH_GetDate [00:37:02]Write to MH i2c: F0 00 00 3C 0D 38 [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: F0 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: F0 09 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: F0 09 00 3C 0D 00 B0 76 1C 66 E0 85 7F 64 31 [00:37:02]GetLastDocTimeStamp 1713141419 [00:37:02]current date 1713141424 [00:37:02]FM_GetShiftState [00:37:02]SAM_PROTO_GetShiftState [00:37:02]wFMCommunicate request_size=4 [00:37:02]MH_SAM_APDU [00:37:02]CAPDU: 80 13 01 00 [00:37:02]Write to MH i2c: E2 08 00 3D 0D 80 13 01 00 00 00 00 00 C7 [00:37:02]Write i2c OK [00:37:02]MH_I2C_Read... [00:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:02]Read from MH i2c: E2 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 [00:37:02]MH_I2C_Read... [00:37:02]Read from MH i2c: E2 0E 00 3D 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 7C [00:37:02]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:37:02]wFMCommunicate OK [00:37:02]SAM_PROTO_GetShiftState done [00:37:02]FM_GetShiftState done [00:37:02]opened in 1713141170 [00:37:02]opened+sec_in_day 1713227570 [00:37:02]quantity*price = 13000 [00:37:02]sum+1 = 13001 [00:37:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 2 15.04.2024 00:37 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112502 ФПД: 159345050305972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003704&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112502&fm=159345050305972&tin=02508201610067®Number=0000000000094237&sum=13000 0 [00:37:04]StoreToDocumentArchive [00:37:04]shift 358 fd 112502 [00:37:04]save to /storage/0358/doc_00112502 [00:37:04]save last doc name /storage/0358/doc_00112502 to /storage/kkm_last_doc_name [00:37:04]save OK [00:37:04]Clear old archive folders... [00:37:04]ProcessDocumentItem done err = 0, tmpTLVsize=272 [00:37:04]tlvbuf is 01A38940 [00:37:04]SAM_PROTO_ClearQueue [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 09 00 00 [00:37:04]Write to MH i2c: E2 08 00 4A 0D 80 09 00 00 00 00 00 00 C9 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 4A 0D 00 90 00 CB [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]SAM_PROTO_ClearQueue done [00:37:04]KKMCreateOFDPacket [00:37:04]OFDProtocolAddRootSTLVToBuf [00:37:04]FM_MakeSignedData [00:37:04]FM_MakeSignedData [00:37:04]SAM_PROTO_SignData [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 01 02 [00:37:04]Write to MH i2c: E2 08 00 4B 0D 80 0D 01 02 00 00 00 00 D1 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 4B 0D 00 90 00 CC [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]wFMCommunicate request_size=255 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B0 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 [00:37:04]Write to MH i2c: E2 02 01 4C 0D 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B0 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 00 00 8B [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 4C 0D 00 90 00 CD [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]wFMCommunicate request_size=31 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 02 02 1A 30 30 38 37 35 30 31 39 10 04 04 00 76 B7 01 00 35 04 06 00 90 EC 69 1E C5 B4 [00:37:04]Write to MH i2c: E2 22 00 4D 0D 80 0D 02 02 1A 00 30 30 38 37 35 30 31 39 10 04 04 00 76 B7 01 00 35 04 06 00 90 EC 69 1E C5 B4 00 00 A7 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:37:04]Read from MH i2c: E2 03 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 03 00 4D 0D 00 90 00 CE [00:37:04]RAPDU: 90 00 [00:37:04]wFMCommunicate OK [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 0D 03 02 [00:37:04]Write to MH i2c: E2 08 00 4E 0D 80 0D 03 02 00 00 00 00 D6 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 0B 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 0B 00 4E 0D 00 3E 45 03 C3 5F 7F 74 A6 90 00 18 [00:37:04]RAPDU: 3E 45 03 C3 5F 7F 74 A6 90 00 [00:37:04]wFMCommunicate OK [00:37:04]SAM_PROTO_SignData done [00:37:04]FM_MakeSignedData done [00:37:04]CreateOFDProtocolMessage [00:37:04]wFMCommunicate request_size=4 [00:37:04]MH_SAM_APDU [00:37:04]CAPDU: 80 11 00 00 [00:37:04]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:04]Read from MH i2c: E2 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 17 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 27 [00:37:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:37:04]wFMCommunicate OK [00:37:04]CreateOFDProtocolMessage done [00:37:04]OFDSenderStorePacket 112502 [00:37:04]StoreOFDPacket docnum=112502 [00:37:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 74 AD 1C 01 22 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B0 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B7 01 00 35 04 06 00 90 EC 69 1E C5 B4 3E 45 03 C3 5F 7F 74 A6 [00:37:04]CheckFolder [00:37:04]dirname=/storage/ofd_packets [00:37:04]CheckFolder done [00:37:04]ProducePacketName [00:37:04]name=ofd_packets/00112502 [00:37:04]NVStorageSaveData ofd_packets/00112502 [00:37:04]File name is /storage/ofd_packets/00112502 [00:37:04]Write 322 bytes [00:37:04]NVStorageSaveData done [00:37:04]OFDSenderStorePacket done [00:37:04]KKMCreateOFDPacket done [00:37:04]NVStorageSaveData kkm_last_timestamp [00:37:04]File name is /storage/kkm_last_timestamp [00:37:04]Write 4 bytes [00:37:04]NVStorageSaveData done [00:37:04]ExternCall_PrintAddStr [00:37:04]wPrintStart [00:37:04]Write to MH i2c: 01 00 00 50 0D 5D [00:37:04]Write i2c OK [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: 01 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: 01 07 00 [00:37:04]MH_I2C_Read... [00:37:04]Read from MH i2c: 01 07 00 50 0D 00 00 00 00 00 FF 0F 72 [00:37:04]RasterBufferAndPrint [00:37:04]line Счет N : (3)10464 [00:37:04]line ИНН: 02508201610067 [00:37:04]line Контрольно-Кассовый Чек [00:37:04]line ПРОДАЖА [00:37:04]line Товар: 48745000 [00:37:04]line Сигареты Winston Purple Mix [00:37:04]line 1.000 * 130.00 [00:37:04]line = 130.00 [00:37:04]line НДС 12% НСП 1% [00:37:04]line > о реализуемом товаре [00:37:04]line ИТОГО: 130.00 [00:37:04]line НСП 1% : 1.15 [00:37:04]line НДС 12% : 13.80 [00:37:04]line Наличными: 130.00 [00:37:04]line Безнал.: 0.00 [00:37:04]line Место: АЗС № 47 "Партнер Нефть" [00:37:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:37:04]line СНО: Общий режим [00:37:04]line Чек 2 15.04.2024 00:37 [00:37:04]line Смена: 358 ФФД: 1.0 [00:37:04]line ЗНМ: 0300000138 [00:37:04]line РНМ: 0000000000094237 [00:37:04]line Версия ККМ: 001 [00:37:04]line ФМ: 0000000000875019 [00:37:04]line ФД: 112502 [00:37:04]line ФПД: 159345050305972 [00:37:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003704&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112502&fm=159345050305972&tin=02508201610067®Number=0000000000094237&sum=13000 [00:37:04]line 0 [00:37:04]written 0, free lines is 4095 [00:37:04]OFD Sender: Processing packet 112502 [packets to send 71, broken 70] [00:37:04]ProducePacketName [00:37:04]name=ofd_packets/00112502 [00:37:04]OFD Sender: To server: pG, [00:37:04]CommunicateWithHost lk.salyk.kg:30040 [00:37:04]ConnectInit lk.salyk.kg [00:37:05]Connected sock=10 [00:37:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 24 01 00 00 74 AD 1C 01 22 4C 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 B0 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B7 01 00 35 04 06 00 90 EC 69 1E C5 B4 3E 45 03 C3 5F 7F 74 A6 [00:37:05]Write to MH i2c: 01 00 00 78 0D 85 [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 07 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: 01 07 00 78 0D 00 00 00 00 00 F2 0C 8A [00:37:05]RasterBufferAndPrint [00:37:05]line [00:37:05]line [00:37:05]line [00:37:05]line [00:37:05]line [00:37:05]written 0, free lines is 3327 [00:37:05]MH_Cut [00:37:05]Write to MH i2c: D1 01 00 7F 0D 01 5E [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: D1 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: D1 01 00 [00:37:05]MH_I2C_Read... [00:37:05]Read from MH i2c: D1 01 00 7F 0D 00 5D [00:37:05]Write to MH i2c: 01 00 00 80 0D 8D [00:37:05]Write i2c OK [00:37:05]MH_I2C_Read... [00:37:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 91 24 47 00 C3 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 76 B7 01 00 F4 03 04 00 3A 1E 1C 66 B6 04 01 00 00 2A E9 08 19 26 CB 25 97 [00:37:05]CommunicateWithHost err = 0 [00:37:05]CheckOFDResponse [00:37:05]1017 (14) - 77093643461234 [00:37:05]1041 (16) - 0000000000875019 [00:37:05]1040 (4) - 112502 [00:37:05]1012 (4) - 14.04.2024 18:19 [00:37:05]1206 (1) - 0 [00:37:05]OFD Sender: Remove packet 112502 [00:37:05]ProducePacketName [00:37:05]name=ofd_packets/00112502 [00:37:05]NVStorageDeleteData [00:37:06]OFD Sender: No OFD packet to send [00:37:06]*** Cut start [00:37:06]*** Partial cut [00:37:06]*** CUTSNS_PIN = 1 [00:37:06]*** CUTSNS_PIN = 0 [00:37:06]*** Brake cut motor [00:37:06]Read from MH i2c: 01 [00:37:06]MH_I2C_Read... [00:37:06]*** Stop cut motor [00:37:06]*** Cut end [00:37:06]Read from MH i2c: 01 07 00 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: 01 07 00 80 0D 00 00 00 00 00 FF 0F A2 [00:37:06]process_action close_receipt done [00:37:06]requested_data is exist [00:37:06]produce_requested_data [00:37:06]requested_item fm.sn is exist - process it [00:37:06]wFMCommunicate request_size=4 [00:37:06]MH_SAM_APDU [00:37:06]CAPDU: 80 11 00 00 [00:37:06]Write to MH i2c: E2 08 00 81 0D 80 11 00 00 00 00 00 00 08 [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:37:06]Read from MH i2c: E2 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: E2 17 00 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: E2 17 00 81 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 59 [00:37:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:37:06]wFMCommunicate OK [00:37:06]requested_item fd.num is exist - process it [00:37:06]SAM_PROTO_GetFieldsCounters [00:37:06]wFMCommunicate request_size=4 [00:37:06]MH_SAM_APDU [00:37:06]CAPDU: 80 13 00 00 [00:37:06]Write to MH i2c: E2 08 00 82 0D 80 13 00 00 00 00 00 00 0B [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:37:06]Read from MH i2c: E2 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: E2 62 00 [00:37:06]MH_I2C_Read... [00:37:06]Read from MH i2c: E2 62 00 82 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 76 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [00:37:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 76 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:37:06]wFMCommunicate OK [00:37:06]SAM_PROTO_GetFieldsCounters done [00:37:06]requested_item shift.num is exist - process it [00:37:06]requested_item shift.opened is exist - process it [00:37:06]req_shift_opened [00:37:06]FM_GetShiftState [00:37:06]SAM_PROTO_GetShiftState [00:37:06]wFMCommunicate request_size=4 [00:37:06]MH_SAM_APDU [00:37:06]CAPDU: 80 13 01 00 [00:37:06]Write to MH i2c: E2 08 00 83 0D 80 13 01 00 00 00 00 00 0D [00:37:06]Write i2c OK [00:37:06]MH_I2C_Read... [00:37:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:37:07]Read from MH i2c: E2 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 0E 00 [00:37:07]MH_I2C_Read... [00:37:07]Read from MH i2c: E2 0E 00 83 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 C2 [00:37:07]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:37:07]wFMCommunicate OK [00:37:07]SAM_PROTO_GetShiftState done [00:37:07]FM_GetShiftState done [00:37:07]req_shift_opened done [00:37:07]requested_item shift.open_date is exist - process it [00:37:07]req_shift_open_date [00:37:07]req_shift_open_date done [00:37:07]produce_requested_data done [00:37:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112502,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:37:07]process_action_free close_receipt [00:37:07]json_value_free [00:37:07]json_value_free done [00:37:07]process_json_proto returns [00:37:07]Send response to host [00:37:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112502,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:37:07]free response buf [00:37:07]execute_script done [00:37:07]execute_script returns [00:37:07]free content buf [00:37:07]Sock 7.Close socket [00:37:07]Sock 7.Thread stoped [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:07]accept exits with 9 [00:38:07]New connection [00:38:07]New thread 3067317604 created [00:38:07]Thread 3067174244 joined [00:38:07]Waiting for new connection... [00:38:07] Sock 9.Parse request [00:38:07]Sock 9.Check first char [00:38:07]Sock 9.First char is OK [00:38:07]request: POST /json_proto HTTP/1.0 [00:38:07]Method: POST [00:38:07]URL: /json_proto [00:38:07]Method is POST - this is cgi request [00:38:07]url: /json_proto [00:38:07]query_string will be loaded in cgi processing [00:38:07]execute_cgi json_proto POST (null) [00:38:07]execute_cgi path=json_proto method=POST [00:38:07]POST find Content-Length [00:38:07]Host: 172.17.96.197:8080 [00:38:07]Content-Length: 613 [00:38:07]Content-Type: application/json [00:38:07] [00:38:07]POST finish read [00:38:07]Found Content-Length = 613 [00:38:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10465", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:07]execute_script... [00:38:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10465", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:07]POST & json_proto [00:38:07]process_json_proto [00:38:07]json parsed OK: [00:38:07]protocol is kg_v1.0 [00:38:07]action value=close_receipt [00:38:07]process_action close_receipt [00:38:07]cmd_close_receipt [00:38:07]MH_GetDate [00:38:07]Write to MH i2c: F0 00 00 84 0D 80 [00:38:07]Write i2c OK [00:38:07]MH_I2C_Read... [00:38:07]Read from MH i2c: F0 [00:38:07]MH_I2C_Read... [00:38:07]Read from MH i2c: F0 09 00 [00:38:07]MH_I2C_Read... [00:38:07]Read from MH i2c: F0 09 00 84 0D 00 F1 76 1C 66 E0 85 7F 64 BA [00:38:07]GetLastDocTimeStamp 1713141424 [00:38:07]current date 1713141489 [00:38:07]FM_GetShiftState [00:38:07]SAM_PROTO_GetShiftState [00:38:07]wFMCommunicate request_size=4 [00:38:07]MH_SAM_APDU [00:38:07]CAPDU: 80 13 01 00 [00:38:07]Write to MH i2c: E2 08 00 85 0D 80 13 01 00 00 00 00 00 0F [00:38:07]Write i2c OK [00:38:07]MH_I2C_Read... [00:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:07]Read from MH i2c: E2 [00:38:07]MH_I2C_Read... [00:38:07]Read from MH i2c: E2 0E 00 [00:38:07]MH_I2C_Read... [00:38:07]Read from MH i2c: E2 0E 00 85 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 C4 [00:38:07]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:07]wFMCommunicate OK [00:38:07]SAM_PROTO_GetShiftState done [00:38:07]FM_GetShiftState done [00:38:07]opened in 1713141170 [00:38:07]opened+sec_in_day 1713227570 [00:38:07]quantity*price = 11000 [00:38:07]sum+1 = 11001 [00:38:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 3 15.04.2024 00:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112503 ФПД: 228170796927358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003809&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112503&fm=228170796927358&tin=02508201610067®Number=0000000000094237&sum=11000 0 [00:38:09]StoreToDocumentArchive [00:38:09]shift 358 fd 112503 [00:38:09]save to /storage/0358/doc_00112503 [00:38:09]save last doc name /storage/0358/doc_00112503 to /storage/kkm_last_doc_name [00:38:09]save OK [00:38:09]Clear old archive folders... [00:38:09]ProcessDocumentItem done err = 0, tmpTLVsize=266 [00:38:09]tlvbuf is 019E8AE0 [00:38:09]SAM_PROTO_ClearQueue [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 09 00 00 [00:38:09]Write to MH i2c: E2 08 00 92 0D 80 09 00 00 00 00 00 00 11 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]SAM_PROTO_ClearQueue done [00:38:09]KKMCreateOFDPacket [00:38:09]OFDProtocolAddRootSTLVToBuf [00:38:09]FM_MakeSignedData [00:38:09]FM_MakeSignedData [00:38:09]SAM_PROTO_SignData [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 01 02 [00:38:09]Write to MH i2c: E2 08 00 93 0D 80 0D 01 02 00 00 00 00 19 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 93 0D 00 90 00 14 [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]wFMCommunicate request_size=255 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 F1 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 [00:38:09]Write to MH i2c: E2 02 01 94 0D 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 F1 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 00 00 DF [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 94 0D 00 90 00 15 [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]wFMCommunicate request_size=25 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 02 02 14 31 39 10 04 04 00 77 B7 01 00 35 04 06 00 CF 85 27 4C 89 7E [00:38:09]Write to MH i2c: E2 1C 00 95 0D 80 0D 02 02 14 00 31 39 10 04 04 00 77 B7 01 00 35 04 06 00 CF 85 27 4C 89 7E 00 00 02 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 03 00 95 0D 00 90 00 16 [00:38:09]RAPDU: 90 00 [00:38:09]wFMCommunicate OK [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 0D 03 02 [00:38:09]Write to MH i2c: E2 08 00 96 0D 80 0D 03 02 00 00 00 00 1E [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 0B 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 0B 00 96 0D 00 8B 74 3D 07 E1 0D C9 03 90 00 1C [00:38:09]RAPDU: 8B 74 3D 07 E1 0D C9 03 90 00 [00:38:09]wFMCommunicate OK [00:38:09]SAM_PROTO_SignData done [00:38:09]FM_MakeSignedData done [00:38:09]CreateOFDProtocolMessage [00:38:09]wFMCommunicate request_size=4 [00:38:09]MH_SAM_APDU [00:38:09]CAPDU: 80 11 00 00 [00:38:09]Write to MH i2c: E2 08 00 97 0D 80 11 00 00 00 00 00 00 1E [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:09]Read from MH i2c: E2 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 17 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: E2 17 00 97 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [00:38:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:09]wFMCommunicate OK [00:38:09]CreateOFDProtocolMessage done [00:38:09]OFDSenderStorePacket 112503 [00:38:09]StoreOFDPacket docnum=112503 [00:38:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 1E 01 00 00 5E 8E 16 01 79 9E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 F1 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B7 01 00 35 04 06 00 CF 85 27 4C 89 7E 8B 74 3D 07 E1 0D C9 03 [00:38:09]CheckFolder [00:38:09]dirname=/storage/ofd_packets [00:38:09]CheckFolder done [00:38:09]ProducePacketName [00:38:09]name=ofd_packets/00112503 [00:38:09]NVStorageSaveData ofd_packets/00112503 [00:38:09]File name is /storage/ofd_packets/00112503 [00:38:09]Write 316 bytes [00:38:09]NVStorageSaveData done [00:38:09]OFDSenderStorePacket done [00:38:09]KKMCreateOFDPacket done [00:38:09]NVStorageSaveData kkm_last_timestamp [00:38:09]File name is /storage/kkm_last_timestamp [00:38:09]Write 4 bytes [00:38:09]NVStorageSaveData done [00:38:09]ExternCall_PrintAddStr [00:38:09]wPrintStart [00:38:09]Write to MH i2c: 01 00 00 98 0D A5 [00:38:09]Write i2c OK [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: 01 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: 01 07 00 [00:38:09]MH_I2C_Read... [00:38:09]Read from MH i2c: 01 07 00 98 0D 00 00 00 00 00 FF 0F BA [00:38:09]RasterBufferAndPrint [00:38:09]line Счет N : (3)10465 [00:38:09]line ИНН: 02508201610067 [00:38:09]line Контрольно-Кассовый Чек [00:38:09]line ПРОДАЖА [00:38:09]line Товар: 4870001570071 [00:38:09]line Напиток Pepsi 1л [00:38:09]line 1.000 * 110.00 [00:38:09]line = 110.00 [00:38:09]line НДС 12% НСП 1% [00:38:09]line > о реализуемом товаре [00:38:09]line ИТОГО: 110.00 [00:38:09]line НСП 1% : 0.97 [00:38:09]line НДС 12% : 11.68 [00:38:09]line Наличными: 110.00 [00:38:09]line Безнал.: 0.00 [00:38:09]line Место: АЗС № 47 "Партнер Нефть" [00:38:09]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:38:09]line СНО: Общий режим [00:38:09]line Чек 3 15.04.2024 00:38 [00:38:09]line Смена: 358 ФФД: 1.0 [00:38:09]line ЗНМ: 0300000138 [00:38:09]line РНМ: 0000000000094237 [00:38:09]line Версия ККМ: 001 [00:38:09]line ФМ: 0000000000875019 [00:38:09]line ФД: 112503 [00:38:09]line ФПД: 228170796927358 [00:38:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003809&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112503&fm=228170796927358&tin=02508201610067®Number=0000000000094237&sum=11000 [00:38:09]line 0 [00:38:09]OFD Sender: Processing packet 112503 [packets to send 71, broken 70] [00:38:09]ProducePacketName [00:38:09]name=ofd_packets/00112503 [00:38:09]OFD Sender: To server: pG, [00:38:09]CommunicateWithHost lk.salyk.kg:30040 [00:38:09]ConnectInit lk.salyk.kg [00:38:09]written 0, free lines is 4095 [00:38:10]Connected sock=10 [00:38:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 1E 01 00 00 5E 8E 16 01 79 9E 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F8 2A 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 61 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 90 04 00 00 00 00 07 04 06 00 F8 2A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 F1 76 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B7 01 00 35 04 06 00 CF 85 27 4C 89 7E 8B 74 3D 07 E1 0D C9 03 [00:38:10]Write to MH i2c: 01 00 00 C0 0D CD [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 07 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 F8 0C D8 [00:38:10]RasterBufferAndPrint [00:38:10]line [00:38:10]line [00:38:10]line [00:38:10]line [00:38:10]line [00:38:10]written 0, free lines is 3326 [00:38:10]MH_Cut [00:38:10]Write to MH i2c: D1 01 00 C7 0D 01 A6 [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: D1 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: D1 01 00 [00:38:10]MH_I2C_Read... [00:38:10]Read from MH i2c: D1 01 00 C7 0D 00 A5 [00:38:10]Write to MH i2c: 01 00 00 C8 0D D5 [00:38:10]Write i2c OK [00:38:10]MH_I2C_Read... [00:38:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 AA A1 47 00 7E 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 77 B7 01 00 F4 03 04 00 7B 1E 1C 66 B6 04 01 00 00 B9 86 52 0E 7C E2 92 AD [00:38:10]CommunicateWithHost err = 0 [00:38:10]CheckOFDResponse [00:38:10]1017 (14) - 77093643461234 [00:38:10]1041 (16) - 0000000000875019 [00:38:10]1040 (4) - 112503 [00:38:10]1012 (4) - 14.04.2024 18:20 [00:38:10]1206 (1) - 0 [00:38:10]OFD Sender: Remove packet 112503 [00:38:10]ProducePacketName [00:38:10]name=ofd_packets/00112503 [00:38:10]NVStorageDeleteData [00:38:10]OFD Sender: No OFD packet to send [00:38:11]*** Cut start [00:38:11]*** Partial cut [00:38:11]*** CUTSNS_PIN = 1 [00:38:11]*** CUTSNS_PIN = 0 [00:38:11]*** Brake cut motor [00:38:11]Read from MH i2c: 01 [00:38:11]MH_I2C_Read... [00:38:11]*** Stop cut motor [00:38:11]*** Cut end [00:38:11]Read from MH i2c: 01 07 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 FF 0F EA [00:38:11]process_action close_receipt done [00:38:11]requested_data is exist [00:38:11]produce_requested_data [00:38:11]requested_item fm.sn is exist - process it [00:38:11]wFMCommunicate request_size=4 [00:38:11]MH_SAM_APDU [00:38:11]CAPDU: 80 11 00 00 [00:38:11]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:11]Read from MH i2c: E2 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 17 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A1 [00:38:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:11]wFMCommunicate OK [00:38:11]requested_item fd.num is exist - process it [00:38:11]SAM_PROTO_GetFieldsCounters [00:38:11]wFMCommunicate request_size=4 [00:38:11]MH_SAM_APDU [00:38:11]CAPDU: 80 13 00 00 [00:38:11]Write to MH i2c: E2 08 00 CA 0D 80 13 00 00 00 00 00 00 53 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:11]Read from MH i2c: E2 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 62 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 62 00 CA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 77 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [00:38:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 77 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:11]wFMCommunicate OK [00:38:11]SAM_PROTO_GetFieldsCounters done [00:38:11]requested_item shift.num is exist - process it [00:38:11]requested_item shift.opened is exist - process it [00:38:11]req_shift_opened [00:38:11]FM_GetShiftState [00:38:11]SAM_PROTO_GetShiftState [00:38:11]wFMCommunicate request_size=4 [00:38:11]MH_SAM_APDU [00:38:11]CAPDU: 80 13 01 00 [00:38:11]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [00:38:11]Write i2c OK [00:38:11]MH_I2C_Read... [00:38:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:11]Read from MH i2c: E2 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 0E 00 [00:38:11]MH_I2C_Read... [00:38:11]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 0A [00:38:11]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:11]wFMCommunicate OK [00:38:11]SAM_PROTO_GetShiftState done [00:38:11]FM_GetShiftState done [00:38:11]req_shift_opened done [00:38:11]requested_item shift.open_date is exist - process it [00:38:11]req_shift_open_date [00:38:11]req_shift_open_date done [00:38:11]produce_requested_data done [00:38:11]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112503,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:38:11]process_action_free close_receipt [00:38:11]json_value_free [00:38:11]json_value_free done [00:38:11]process_json_proto returns [00:38:11]Send response to host [00:38:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112503,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:38:11]free response buf [00:38:11]execute_script done [00:38:11]execute_script returns [00:38:11]free content buf [00:38:11]Sock 9.Close socket [00:38:11]Sock 9.Thread stoped [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:27]accept exits with 7 [00:38:27]New connection [00:38:27]New thread 3067174244 created [00:38:27]Thread 3067317604 joined [00:38:27]Waiting for new connection... [00:38:27] Sock 7.Parse request [00:38:27]Sock 7.Check first char [00:38:27]Sock 7.First char is OK [00:38:27]request: POST /json_proto HTTP/1.0 [00:38:27]Method: POST [00:38:27]URL: /json_proto [00:38:27]Method is POST - this is cgi request [00:38:27]url: /json_proto [00:38:27]query_string will be loaded in cgi processing [00:38:27]execute_cgi json_proto POST (null) [00:38:27]execute_cgi path=json_proto method=POST [00:38:27]POST find Content-Length [00:38:27]Host: 172.17.96.197:8080 [00:38:27]Content-Length: 676 [00:38:27]Content-Type: application/json [00:38:27] [00:38:27]POST finish read [00:38:27]Found Content-Length = 676 [00:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48785", "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" ] } } [00:38:27]execute_script... [00:38:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48785", "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" ] } } [00:38:27]POST & json_proto [00:38:27]process_json_proto [00:38:27]json parsed OK: [00:38:27]protocol is kg_v1.0 [00:38:27]action value=close_receipt [00:38:27]process_action close_receipt [00:38:27]cmd_close_receipt [00:38:27]MH_GetDate [00:38:27]Write to MH i2c: F0 00 00 CC 0D C8 [00:38:27]Write i2c OK [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 09 00 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: F0 09 00 CC 0D 00 04 77 1C 66 E0 85 7F 64 16 [00:38:27]GetLastDocTimeStamp 1713141489 [00:38:27]current date 1713141508 [00:38:27]FM_GetShiftState [00:38:27]SAM_PROTO_GetShiftState [00:38:27]wFMCommunicate request_size=4 [00:38:27]MH_SAM_APDU [00:38:27]CAPDU: 80 13 01 00 [00:38:27]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [00:38:27]Write i2c OK [00:38:27]MH_I2C_Read... [00:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:27]Read from MH i2c: E2 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: E2 0E 00 [00:38:27]MH_I2C_Read... [00:38:27]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 0C [00:38:27]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:27]wFMCommunicate OK [00:38:27]SAM_PROTO_GetShiftState done [00:38:27]FM_GetShiftState done [00:38:27]opened in 1713141170 [00:38:27]opened+sec_in_day 1713227570 [00:38:27]quantity*price = 50025 [00:38:27]sum+1 = 50027 [00:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 4 15.04.2024 00:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112504 ФПД: 17090646172205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003828&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112504&fm=17090646172205&tin=02508201610067®Number=0000000000094237&sum=50000 [00:38:28]StoreToDocumentArchive [00:38:28]shift 358 fd 112504 [00:38:28]save to /storage/0358/doc_00112504 [00:38:28]save last doc name /storage/0358/doc_00112504 to /storage/kkm_last_doc_name [00:38:28]save OK [00:38:28]Clear old archive folders... [00:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:28]tlvbuf is 01A13AE0 [00:38:28]SAM_PROTO_ClearQueue [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 09 00 00 [00:38:28]Write to MH i2c: E2 08 00 DA 0D 80 09 00 00 00 00 00 00 59 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]SAM_PROTO_ClearQueue done [00:38:28]KKMCreateOFDPacket [00:38:28]OFDProtocolAddRootSTLVToBuf [00:38:28]FM_MakeSignedData [00:38:28]FM_MakeSignedData [00:38:28]SAM_PROTO_SignData [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 01 02 [00:38:28]Write to MH i2c: E2 08 00 DB 0D 80 0D 01 02 00 00 00 00 61 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=255 [00:38:28]MH_SAM_APDU [00:38:28]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 04 00 00 00 F4 03 04 00 04 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B7 01 00 35 04 06 00 0F [00:38:28]Write to MH i2c: E2 02 01 DC 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 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 04 00 00 00 F4 03 04 00 04 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B7 01 00 35 04 06 00 0F 00 00 A2 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=10 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 02 02 05 8B 39 E4 E2 2D [00:38:28]Write to MH i2c: E2 0D 00 DD 0D 80 0D 02 02 05 00 8B 39 E4 E2 2D 00 00 25 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [00:38:28]RAPDU: 90 00 [00:38:28]wFMCommunicate OK [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 0D 03 02 [00:38:28]Write to MH i2c: E2 08 00 DE 0D 80 0D 03 02 00 00 00 00 66 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 0B 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 0B 00 DE 0D 00 69 C2 49 79 C7 CC F4 FB 90 00 D6 [00:38:28]RAPDU: 69 C2 49 79 C7 CC F4 FB 90 00 [00:38:28]wFMCommunicate OK [00:38:28]SAM_PROTO_SignData done [00:38:28]FM_MakeSignedData done [00:38:28]CreateOFDProtocolMessage [00:38:28]wFMCommunicate request_size=4 [00:38:28]MH_SAM_APDU [00:38:28]CAPDU: 80 11 00 00 [00:38:28]Write to MH i2c: E2 08 00 DF 0D 80 11 00 00 00 00 00 00 66 [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:28]Read from MH i2c: E2 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 17 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: E2 17 00 DF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B7 [00:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:28]wFMCommunicate OK [00:38:28]CreateOFDProtocolMessage done [00:38:28]OFDSenderStorePacket 112504 [00:38:28]StoreOFDPacket docnum=112504 [00:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BD A2 07 01 75 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 04 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B7 01 00 35 04 06 00 0F 8B 39 E4 E2 2D 69 C2 49 79 C7 CC F4 FB [00:38:28]CheckFolder [00:38:28]dirname=/storage/ofd_packets [00:38:28]CheckFolder done [00:38:28]ProducePacketName [00:38:28]name=ofd_packets/00112504 [00:38:28]NVStorageSaveData ofd_packets/00112504 [00:38:28]File name is /storage/ofd_packets/00112504 [00:38:28]Write 301 bytes [00:38:28]NVStorageSaveData done [00:38:28]OFDSenderStorePacket done [00:38:28]KKMCreateOFDPacket done [00:38:28]NVStorageSaveData kkm_last_timestamp [00:38:28]File name is /storage/kkm_last_timestamp [00:38:28]Write 4 bytes [00:38:28]NVStorageSaveData done [00:38:28]ExternCall_PrintAddStr [00:38:28]wPrintStart [00:38:28]Write to MH i2c: 01 00 00 E0 0D ED [00:38:28]Write i2c OK [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 07 00 [00:38:28]MH_I2C_Read... [00:38:28]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [00:38:28]RasterBufferAndPrint [00:38:28]line Счет N : (1)48785 [00:38:28]line ИНН: 02508201610067 [00:38:28]line Контрольно-Кассовый Чек [00:38:28]line ПРОДАЖА [00:38:28]line ТРК (МРК, ГНК) : 32 [00:38:28]line Товар: 2710124130 [00:38:28]line Аи-92-К-5 [00:38:28]line 7.720 * 64.80 [00:38:28]line = 500.26 [00:38:28]line НДС 12% НСП 1% [00:38:28]line > о реализуемом товаре [00:38:28]line ОКРУГЛЕНИЕ: -0.26 [00:38:28]line ИТОГО: 500.00 [00:38:28]line Внесено: 500.00 [00:38:28]line СДАЧА: 0.00 [00:38:28]line НСП 1% : 4.43 [00:38:28]line НДС 12% : 53.12 [00:38:28]line Наличными: 500.00 [00:38:28]line Безнал.: 0.00 [00:38:28]line Место: АЗС № 47 "Партнер Нефть" [00:38:28]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:38:28]line СНО: Общий режим [00:38:28]line Чек 4 15.04.2024 00:38 [00:38:28]line Смена: 358 ФФД: 1.0 [00:38:28]line ЗНМ: 0300000138 [00:38:28]line РНМ: 0000000000094237 [00:38:28]line Версия ККМ: 001 [00:38:28]line ФМ: 0000000000875019 [00:38:28]line ФД: 112504 [00:38:28]line ФПД: 17090646172205 [00:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003828&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112504&fm=17090646172205&tin=02508201610067®Number=0000000000094237&sum=50000 [00:38:29]written 0, free lines is 4095 [00:38:29]OFD Sender: Processing packet 112504 [packets to send 71, broken 70] [00:38:29]ProducePacketName [00:38:29]name=ofd_packets/00112504 [00:38:29]OFD Sender: To server: pG, [00:38:29]CommunicateWithHost lk.salyk.kg:30040 [00:38:29]ConnectInit lk.salyk.kg [00:38:29]Connected sock=9 [00:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 BD A2 07 01 75 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 04 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 78 B7 01 00 35 04 06 00 0F 8B 39 E4 E2 2D 69 C2 49 79 C7 CC F4 FB [00:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 02 50 47 00 29 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 38 37 35 30 31 39 10 04 04 00 78 B7 01 00 F4 03 04 00 8E 1E 1C 66 B6 04 01 00 00 25 7D 44 72 F6 11 F7 2B [00:38:29]CommunicateWithHost err = 0 [00:38:29]CheckOFDResponse [00:38:29]1017 (14) - 77093643461234 [00:38:29]1041 (16) - 0000000000875019 [00:38:29]1040 (4) - 112504 [00:38:29]1012 (4) - 14.04.2024 18:21 [00:38:29]1206 (1) - 0 [00:38:29]OFD Sender: Remove packet 112504 [00:38:29]ProducePacketName [00:38:29]name=ofd_packets/00112504 [00:38:29]NVStorageDeleteData [00:38:29]Write to MH i2c: 01 00 00 0B 0E 19 [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 07 00 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: 01 07 00 0B 0E 00 00 00 00 00 E0 0C 0C [00:38:29]RasterBufferAndPrint [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]line [00:38:29]written 0, free lines is 3302 [00:38:29]MH_Cut [00:38:29]Write to MH i2c: D1 01 00 12 0E 01 F2 [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 01 00 [00:38:29]MH_I2C_Read... [00:38:29]Read from MH i2c: D1 01 00 12 0E 00 F1 [00:38:29]Write to MH i2c: 01 00 00 13 0E 21 [00:38:29]Write i2c OK [00:38:29]MH_I2C_Read... [00:38:30]OFD Sender: No OFD packet to send [00:38:30]*** Cut start [00:38:30]*** Partial cut [00:38:30]*** CUTSNS_PIN = 1 [00:38:30]*** CUTSNS_PIN = 0 [00:38:30]*** Brake cut motor [00:38:30]Read from MH i2c: 01 [00:38:30]MH_I2C_Read... [00:38:30]*** Stop cut motor [00:38:30]*** Cut end [00:38:30]Read from MH i2c: 01 07 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: 01 07 00 13 0E 00 00 00 00 00 FF 0F 36 [00:38:30]process_action close_receipt done [00:38:30]requested_data is exist [00:38:30]produce_requested_data [00:38:30]requested_item fm.sn is exist - process it [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 11 00 00 [00:38:30]Write to MH i2c: E2 08 00 14 0E 80 11 00 00 00 00 00 00 9C [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:30]Read from MH i2c: E2 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 17 00 [00:38:30]MH_I2C_Read... [00:38:30]Read from MH i2c: E2 17 00 14 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 ED [00:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:30]wFMCommunicate OK [00:38:30]requested_item fd.num is exist - process it [00:38:30]SAM_PROTO_GetFieldsCounters [00:38:30]wFMCommunicate request_size=4 [00:38:30]MH_SAM_APDU [00:38:30]CAPDU: 80 13 00 00 [00:38:30]Write to MH i2c: E2 08 00 15 0E 80 13 00 00 00 00 00 00 9F [00:38:30]Write i2c OK [00:38:30]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 62 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 62 00 15 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 78 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [00:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 78 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:31]wFMCommunicate OK [00:38:31]SAM_PROTO_GetFieldsCounters done [00:38:31]requested_item shift.num is exist - process it [00:38:31]requested_item shift.opened is exist - process it [00:38:31]req_shift_opened [00:38:31]FM_GetShiftState [00:38:31]SAM_PROTO_GetShiftState [00:38:31]wFMCommunicate request_size=4 [00:38:31]MH_SAM_APDU [00:38:31]CAPDU: 80 13 01 00 [00:38:31]Write to MH i2c: E2 08 00 16 0E 80 13 01 00 00 00 00 00 A1 [00:38:31]Write i2c OK [00:38:31]MH_I2C_Read... [00:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:31]Read from MH i2c: E2 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0E 00 [00:38:31]MH_I2C_Read... [00:38:31]Read from MH i2c: E2 0E 00 16 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 56 [00:38:31]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:31]wFMCommunicate OK [00:38:31]SAM_PROTO_GetShiftState done [00:38:31]FM_GetShiftState done [00:38:31]req_shift_opened done [00:38:31]requested_item shift.open_date is exist - process it [00:38:31]req_shift_open_date [00:38:31]req_shift_open_date done [00:38:31]produce_requested_data done [00:38:31]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112504,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:38:31]process_action_free close_receipt [00:38:31]json_value_free [00:38:31]json_value_free done [00:38:31]process_json_proto returns [00:38:31]Send response to host [00:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112504,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:38:31]free response buf [00:38:31]execute_script done [00:38:31]execute_script returns [00:38:31]free content buf [00:38:31]Sock 7.Close socket [00:38:31]Sock 7.Thread stoped [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:38:55]accept exits with 10 [00:38:55]New connection [00:38:55]New thread 3067317604 created [00:38:55]Thread 3067174244 joined [00:38:55]Waiting for new connection... [00:38:55] Sock 10.Parse request [00:38:55]Sock 10.Check first char [00:38:55]Sock 10.First char is OK [00:38:55]request: POST /json_proto HTTP/1.0 [00:38:55]Method: POST [00:38:55]URL: /json_proto [00:38:55]Method is POST - this is cgi request [00:38:55]url: /json_proto [00:38:55]query_string will be loaded in cgi processing [00:38:55]execute_cgi json_proto POST (null) [00:38:55]execute_cgi path=json_proto method=POST [00:38:55]POST find Content-Length [00:38:55]Host: 172.17.96.197:8080 [00:38:55]Content-Length: 676 [00:38:55]Content-Type: application/json [00:38:55] [00:38:55]POST finish read [00:38:55]Found Content-Length = 676 [00:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [00:38:55]execute_script... [00:38: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)48786", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [00:38:55]POST & json_proto [00:38:55]process_json_proto [00:38:55]json parsed OK: [00:38:55]protocol is kg_v1.0 [00:38:55]action value=close_receipt [00:38:55]process_action close_receipt [00:38:55]cmd_close_receipt [00:38:55]MH_GetDate [00:38:55]Write to MH i2c: F0 00 00 17 0E 14 [00:38:55]Write i2c OK [00:38:55]MH_I2C_Read... [00:38:55]Read from MH i2c: F0 [00:38:55]MH_I2C_Read... [00:38:55]Read from MH i2c: F0 09 00 [00:38:55]MH_I2C_Read... [00:38:55]Read from MH i2c: F0 09 00 17 0E 00 21 77 1C 66 E0 85 7F 64 7F [00:38:55]GetLastDocTimeStamp 1713141508 [00:38:55]current date 1713141537 [00:38:55]FM_GetShiftState [00:38:55]SAM_PROTO_GetShiftState [00:38:55]wFMCommunicate request_size=4 [00:38:55]MH_SAM_APDU [00:38:55]CAPDU: 80 13 01 00 [00:38:55]Write to MH i2c: E2 08 00 18 0E 80 13 01 00 00 00 00 00 A3 [00:38:55]Write i2c OK [00:38:55]MH_I2C_Read... [00:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:55]Read from MH i2c: E2 [00:38:55]MH_I2C_Read... [00:38:55]Read from MH i2c: E2 0E 00 [00:38:55]MH_I2C_Read... [00:38:55]Read from MH i2c: E2 0E 00 18 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 58 [00:38:55]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:55]wFMCommunicate OK [00:38:55]SAM_PROTO_GetShiftState done [00:38:55]FM_GetShiftState done [00:38:55]opened in 1713141170 [00:38:55]opened+sec_in_day 1713227570 [00:38:55]quantity*price = 20023 [00:38:55]sum+1 = 20024 [00:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.26 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 5 15.04.2024 00:38 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112505 ФПД: 232413786864796 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003857&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112505&fm=232413786864796&tin=02508201610067®Number=0000000000094237&sum=20000 [00:38:56]StoreToDocumentArchive [00:38:56]shift 358 fd 112505 [00:38:56]save to /storage/0358/doc_00112505 [00:38:56]save last doc name /storage/0358/doc_00112505 to /storage/kkm_last_doc_name [00:38:56]save OK [00:38:56]Clear old archive folders... [00:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:38:56]tlvbuf is 019FDE80 [00:38:56]SAM_PROTO_ClearQueue [00:38:56]wFMCommunicate request_size=4 [00:38:56]MH_SAM_APDU [00:38:56]CAPDU: 80 09 00 00 [00:38:56]Write to MH i2c: E2 08 00 25 0E 80 09 00 00 00 00 00 00 A5 [00:38:56]Write i2c OK [00:38:56]MH_I2C_Read... [00:38:56]Read from MH i2c: E2 [00:38:56]MH_I2C_Read... [00:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:56]Read from MH i2c: E2 03 00 [00:38:56]MH_I2C_Read... [00:38:56]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [00:38:56]RAPDU: 90 00 [00:38:56]wFMCommunicate OK [00:38:56]SAM_PROTO_ClearQueue done [00:38:56]KKMCreateOFDPacket [00:38:56]OFDProtocolAddRootSTLVToBuf [00:38:56]FM_MakeSignedData [00:38:56]FM_MakeSignedData [00:38:56]SAM_PROTO_SignData [00:38:56]wFMCommunicate request_size=4 [00:38:56]MH_SAM_APDU [00:38:56]CAPDU: 80 0D 01 02 [00:38:56]Write to MH i2c: E2 08 00 26 0E 80 0D 01 02 00 00 00 00 AD [00:38:56]Write i2c OK [00:38:56]MH_I2C_Read... [00:38:56]Read from MH i2c: E2 [00:38:56]MH_I2C_Read... [00:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:56]Read from MH i2c: E2 03 00 [00:38:56]MH_I2C_Read... [00:38:56]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [00:38:56]RAPDU: 90 00 [00:38:56]wFMCommunicate OK [00:38:56]wFMCommunicate request_size=255 [00:38:56]MH_SAM_APDU [00:38: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 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 05 00 00 00 F4 03 04 00 21 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B7 01 00 35 04 06 00 D3 [00:38:56]Write to MH i2c: E2 02 01 27 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 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 05 00 00 00 F4 03 04 00 21 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B7 01 00 35 04 06 00 D3 00 00 2E [00:38:56]Write i2c OK [00:38:56]MH_I2C_Read... [00:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:57]Read from MH i2c: E2 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 03 00 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [00:38:57]RAPDU: 90 00 [00:38:57]wFMCommunicate OK [00:38:57]wFMCommunicate request_size=10 [00:38:57]MH_SAM_APDU [00:38:57]CAPDU: 80 0D 02 02 05 61 0D 34 FC 9C [00:38:57]Write to MH i2c: E2 0D 00 28 0E 80 0D 02 02 05 00 61 0D 34 FC 9C 00 00 F4 [00:38:57]Write i2c OK [00:38:57]MH_I2C_Read... [00:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:57]Read from MH i2c: E2 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 03 00 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 03 00 28 0E 00 90 00 AA [00:38:57]RAPDU: 90 00 [00:38:57]wFMCommunicate OK [00:38:57]wFMCommunicate request_size=4 [00:38:57]MH_SAM_APDU [00:38:57]CAPDU: 80 0D 03 02 [00:38:57]Write to MH i2c: E2 08 00 29 0E 80 0D 03 02 00 00 00 00 B2 [00:38:57]Write i2c OK [00:38:57]MH_I2C_Read... [00:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:57]Read from MH i2c: E2 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 0B 00 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 0B 00 29 0E 00 31 F1 4A FC 75 ED BD 98 90 00 D2 [00:38:57]RAPDU: 31 F1 4A FC 75 ED BD 98 90 00 [00:38:57]wFMCommunicate OK [00:38:57]SAM_PROTO_SignData done [00:38:57]FM_MakeSignedData done [00:38:57]CreateOFDProtocolMessage [00:38:57]wFMCommunicate request_size=4 [00:38:57]MH_SAM_APDU [00:38:57]CAPDU: 80 11 00 00 [00:38:57]Write to MH i2c: E2 08 00 2A 0E 80 11 00 00 00 00 00 00 B2 [00:38:57]Write i2c OK [00:38:57]MH_I2C_Read... [00:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:57]Read from MH i2c: E2 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 17 00 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: E2 17 00 2A 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 03 [00:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:57]wFMCommunicate OK [00:38:57]CreateOFDProtocolMessage done [00:38:57]OFDSenderStorePacket 112505 [00:38:57]StoreOFDPacket docnum=112505 [00:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F3 01 07 01 73 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 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 05 00 00 00 F4 03 04 00 21 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B7 01 00 35 04 06 00 D3 61 0D 34 FC 9C 31 F1 4A FC 75 ED BD 98 [00:38:57]CheckFolder [00:38:57]dirname=/storage/ofd_packets [00:38:57]CheckFolder done [00:38:57]ProducePacketName [00:38:57]name=ofd_packets/00112505 [00:38:57]NVStorageSaveData ofd_packets/00112505 [00:38:57]File name is /storage/ofd_packets/00112505 [00:38:57]Write 301 bytes [00:38:57]NVStorageSaveData done [00:38:57]OFDSenderStorePacket done [00:38:57]KKMCreateOFDPacket done [00:38:57]NVStorageSaveData kkm_last_timestamp [00:38:57]File name is /storage/kkm_last_timestamp [00:38:57]Write 4 bytes [00:38:57]NVStorageSaveData done [00:38:57]ExternCall_PrintAddStr [00:38:57]wPrintStart [00:38:57]Write to MH i2c: 01 00 00 2B 0E 39 [00:38:57]Write i2c OK [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: 01 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: 01 07 00 [00:38:57]MH_I2C_Read... [00:38:57]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [00:38:57]RasterBufferAndPrint [00:38:57]line Счет N : (1)48786 [00:38:57]line ИНН: 02508201610067 [00:38:57]line Контрольно-Кассовый Чек [00:38:57]line ПРОДАЖА [00:38:57]line ТРК (МРК, ГНК) : 11 [00:38:57]line Товар: 2710124130 [00:38:57]line Аи-92-К-5 [00:38:57]line 3.090 * 64.80 [00:38:57]line = 200.23 [00:38:57]line НДС 12% НСП 1% [00:38:57]line > о реализуемом товаре [00:38:57]line ОКРУГЛЕНИЕ: -0.23 [00:38:57]line ИТОГО: 200.00 [00:38:57]line Внесено: 200.00 [00:38:57]line СДАЧА: 0.00 [00:38:57]line НСП 1% : 1.77 [00:38:57]line НДС 12% : 21.26 [00:38:57]line Наличными: 200.00 [00:38:57]line Безнал.: 0.00 [00:38:57]line Место: АЗС № 47 "Партнер Нефть" [00:38:57]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:38:57]line СНО: Общий режим [00:38:57]line Чек 5 15.04.2024 00:38 [00:38:57]line Смена: 358 ФФД: 1.0 [00:38:57]line ЗНМ: 0300000138 [00:38:57]line РНМ: 0000000000094237 [00:38:57]line Версия ККМ: 001 [00:38:57]line ФМ: 0000000000875019 [00:38:57]line ФД: 112505 [00:38:57]line ФПД: 232413786864796 [00:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003857&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112505&fm=232413786864796&tin=02508201610067®Number=0000000000094237&sum=20000 [00:38:57]written 0, free lines is 4095 [00:38:57]OFD Sender: Processing packet 112505 [packets to send 71, broken 70] [00:38:57]ProducePacketName [00:38:57]name=ofd_packets/00112505 [00:38:57]OFD Sender: To server: pG, [00:38:57]CommunicateWithHost lk.salyk.kg:30040 [00:38:57]ConnectInit lk.salyk.kg [00:38:57]Connected sock=9 [00:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 F3 01 07 01 73 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 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 05 00 00 00 F4 03 04 00 21 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B7 01 00 35 04 06 00 D3 61 0D 34 FC 9C 31 F1 4A FC 75 ED BD 98 [00:38:58]Write to MH i2c: 01 00 00 56 0E 64 [00:38:58]Write i2c OK [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: 01 [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: 01 07 00 [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: 01 07 00 56 0E 00 00 00 00 00 D8 0C 4F [00:38:58]RasterBufferAndPrint [00:38:58]line [00:38:58]line [00:38:58]line [00:38:58]line [00:38:58]line [00:38:58]written 0, free lines is 3295 [00:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C9 CB 47 00 6F BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 79 B7 01 00 F4 03 04 00 AA 1E 1C 66 B6 04 01 00 00 26 B9 15 B7 09 CC 35 D1 [00:38:58]CommunicateWithHost err = 0 [00:38:58]CheckOFDResponse [00:38:58]1017 (14) - 77093643461234 [00:38:58]1041 (16) - 0000000000875019 [00:38:58]1040 (4) - 112505 [00:38:58]1012 (4) - 14.04.2024 18:21 [00:38:58]1206 (1) - 0 [00:38:58]OFD Sender: Remove packet 112505 [00:38:58]ProducePacketName [00:38:58]name=ofd_packets/00112505 [00:38:58]NVStorageDeleteData [00:38:58]MH_Cut [00:38:58]Write to MH i2c: D1 01 00 5D 0E 01 3D [00:38:58]Write i2c OK [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: D1 [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: D1 01 00 [00:38:58]MH_I2C_Read... [00:38:58]Read from MH i2c: D1 01 00 5D 0E 00 3C [00:38:58]Write to MH i2c: 01 00 00 5E 0E 6C [00:38:58]Write i2c OK [00:38:58]MH_I2C_Read... [00:38:58]OFD Sender: No OFD packet to send [00:38:58]*** Cut start [00:38:58]*** Partial cut [00:38:58]*** CUTSNS_PIN = 1 [00:38:58]*** CUTSNS_PIN = 0 [00:38:59]*** Brake cut motor [00:38:59]Read from MH i2c: 01 [00:38:59]MH_I2C_Read... [00:38:59]*** Stop cut motor [00:38:59]*** Cut end [00:38:59]Read from MH i2c: 01 07 00 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: 01 07 00 5E 0E 00 00 00 00 00 FF 0F 81 [00:38:59]process_action close_receipt done [00:38:59]requested_data is exist [00:38:59]produce_requested_data [00:38:59]requested_item fm.sn is exist - process it [00:38:59]wFMCommunicate request_size=4 [00:38:59]MH_SAM_APDU [00:38:59]CAPDU: 80 11 00 00 [00:38:59]Write to MH i2c: E2 08 00 5F 0E 80 11 00 00 00 00 00 00 E7 [00:38:59]Write i2c OK [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 [00:38:59]MH_I2C_Read... [00:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:59]Read from MH i2c: E2 17 00 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 17 00 5F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 38 [00:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:38:59]wFMCommunicate OK [00:38:59]requested_item fd.num is exist - process it [00:38:59]SAM_PROTO_GetFieldsCounters [00:38:59]wFMCommunicate request_size=4 [00:38:59]MH_SAM_APDU [00:38:59]CAPDU: 80 13 00 00 [00:38:59]Write to MH i2c: E2 08 00 60 0E 80 13 00 00 00 00 00 00 EA [00:38:59]Write i2c OK [00:38:59]MH_I2C_Read... [00:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:59]Read from MH i2c: E2 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 62 00 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 62 00 60 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 79 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [00:38:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 79 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:38:59]wFMCommunicate OK [00:38:59]SAM_PROTO_GetFieldsCounters done [00:38:59]requested_item shift.num is exist - process it [00:38:59]requested_item shift.opened is exist - process it [00:38:59]req_shift_opened [00:38:59]FM_GetShiftState [00:38:59]SAM_PROTO_GetShiftState [00:38:59]wFMCommunicate request_size=4 [00:38:59]MH_SAM_APDU [00:38:59]CAPDU: 80 13 01 00 [00:38:59]Write to MH i2c: E2 08 00 61 0E 80 13 01 00 00 00 00 00 EC [00:38:59]Write i2c OK [00:38:59]MH_I2C_Read... [00:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:59]Read from MH i2c: E2 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 0E 00 [00:38:59]MH_I2C_Read... [00:38:59]Read from MH i2c: E2 0E 00 61 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 A1 [00:38:59]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:38:59]wFMCommunicate OK [00:38:59]SAM_PROTO_GetShiftState done [00:38:59]FM_GetShiftState done [00:38:59]req_shift_opened done [00:38:59]requested_item shift.open_date is exist - process it [00:38:59]req_shift_open_date [00:38:59]req_shift_open_date done [00:38:59]produce_requested_data done [00:38:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112505,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:38:59]process_action_free close_receipt [00:38:59]json_value_free [00:38:59]json_value_free done [00:38:59]process_json_proto returns [00:38:59]Send response to host [00:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112505,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:38:59]free response buf [00:38:59]execute_script done [00:38:59]execute_script returns [00:38:59]free content buf [00:38:59]Sock 10.Close socket [00:38:59]Sock 10.Thread stoped [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:20]accept exits with 7 [00:39:20]New connection [00:39:20]New thread 3067174244 created [00:39:20]Thread 3067317604 joined [00:39:20]Waiting for new connection... [00:39:20] Sock 7.Parse request [00:39:20]Sock 7.Check first char [00:39:20]Sock 7.First char is OK [00:39:20]request: POST /json_proto HTTP/1.0 [00:39:20]Method: POST [00:39:20]URL: /json_proto [00:39:20]Method is POST - this is cgi request [00:39:20]url: /json_proto [00:39:20]query_string will be loaded in cgi processing [00:39:20]execute_cgi json_proto POST (null) [00:39:20]execute_cgi path=json_proto method=POST [00:39:20]POST find Content-Length [00:39:20]Host: 172.17.96.197:8080 [00:39:20]Content-Length: 684 [00:39:20]Content-Type: application/json [00:39:20] [00:39:20]POST finish read [00:39:20]Found Content-Length = 684 [00:39:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 29.680, "sum" : 1000.22, "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" ] } } [00:39:20]execute_script... [00:39:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48784", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 29.680, "sum" : 1000.22, "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" ] } } [00:39:20]POST & json_proto [00:39:20]process_json_proto [00:39:20]json parsed OK: [00:39:20]protocol is kg_v1.0 [00:39:20]action value=close_receipt [00:39:20]process_action close_receipt [00:39:20]cmd_close_receipt [00:39:20]MH_GetDate [00:39:20]Write to MH i2c: F0 00 00 62 0E 5F [00:39:20]Write i2c OK [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 09 00 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: F0 09 00 62 0E 00 39 77 1C 66 E0 85 7F 64 E2 [00:39:20]GetLastDocTimeStamp 1713141537 [00:39:20]current date 1713141561 [00:39:20]FM_GetShiftState [00:39:20]SAM_PROTO_GetShiftState [00:39:20]wFMCommunicate request_size=4 [00:39:20]MH_SAM_APDU [00:39:20]CAPDU: 80 13 01 00 [00:39:20]Write to MH i2c: E2 08 00 63 0E 80 13 01 00 00 00 00 00 EE [00:39:20]Write i2c OK [00:39:20]MH_I2C_Read... [00:39:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:20]Read from MH i2c: E2 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: E2 0E 00 [00:39:20]MH_I2C_Read... [00:39:20]Read from MH i2c: E2 0E 00 63 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 A3 [00:39:20]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:39:20]wFMCommunicate OK [00:39:20]SAM_PROTO_GetShiftState done [00:39:20]FM_GetShiftState done [00:39:20]opened in 1713141170 [00:39:20]opened+sec_in_day 1713227570 [00:39:20]quantity*price = 100021 [00:39:20]sum+1 = 100023 [00:39:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 6 15.04.2024 00:39 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112506 ФПД: 111874368116122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003921&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112506&fm=111874368116122&tin=02508201610067®Number=0000000000094237&sum=100000 [00:39:21]StoreToDocumentArchive [00:39:21]shift 358 fd 112506 [00:39:21]save to /storage/0358/doc_00112506 [00:39:21]save last doc name /storage/0358/doc_00112506 to /storage/kkm_last_doc_name [00:39:21]save OK [00:39:21]Clear old archive folders... [00:39:21]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:39:21]tlvbuf is B6F1A330 [00:39:21]SAM_PROTO_ClearQueue [00:39:21]wFMCommunicate request_size=4 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 09 00 00 [00:39:21]Write to MH i2c: E2 08 00 70 0E 80 09 00 00 00 00 00 00 F0 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [00:39:21]RAPDU: 90 00 [00:39:21]wFMCommunicate OK [00:39:21]SAM_PROTO_ClearQueue done [00:39:21]KKMCreateOFDPacket [00:39:21]OFDProtocolAddRootSTLVToBuf [00:39:21]FM_MakeSignedData [00:39:21]FM_MakeSignedData [00:39:21]SAM_PROTO_SignData [00:39:21]wFMCommunicate request_size=4 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 0D 01 02 [00:39:21]Write to MH i2c: E2 08 00 71 0E 80 0D 01 02 00 00 00 00 F8 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [00:39:21]RAPDU: 90 00 [00:39:21]wFMCommunicate OK [00:39:21]wFMCommunicate request_size=255 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 39 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B7 01 00 35 04 06 00 65 BF [00:39:21]Write to MH i2c: E2 02 01 72 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 39 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B7 01 00 35 04 06 00 65 BF 00 00 E0 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [00:39:21]RAPDU: 90 00 [00:39:21]wFMCommunicate OK [00:39:21]wFMCommunicate request_size=9 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 0D 02 02 04 C7 F8 95 9A [00:39:21]Write to MH i2c: E2 0C 00 73 0E 80 0D 02 02 04 00 C7 F8 95 9A 00 00 F1 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 03 00 73 0E 00 90 00 F5 [00:39:21]RAPDU: 90 00 [00:39:21]wFMCommunicate OK [00:39:21]wFMCommunicate request_size=4 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 0D 03 02 [00:39:21]Write to MH i2c: E2 08 00 74 0E 80 0D 03 02 00 00 00 00 FD [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 0B 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 0B 00 74 0E 00 8F A4 32 48 79 16 16 F8 90 00 48 [00:39:21]RAPDU: 8F A4 32 48 79 16 16 F8 90 00 [00:39:21]wFMCommunicate OK [00:39:21]SAM_PROTO_SignData done [00:39:21]FM_MakeSignedData done [00:39:21]CreateOFDProtocolMessage [00:39:21]wFMCommunicate request_size=4 [00:39:21]MH_SAM_APDU [00:39:21]CAPDU: 80 11 00 00 [00:39:21]Write to MH i2c: E2 08 00 75 0E 80 11 00 00 00 00 00 00 FD [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:21]Read from MH i2c: E2 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 17 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: E2 17 00 75 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4E [00:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:39:21]wFMCommunicate OK [00:39:21]CreateOFDProtocolMessage done [00:39:21]OFDSenderStorePacket 112506 [00:39:21]StoreOFDPacket docnum=112506 [00:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 2B 6C 06 01 A9 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 39 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B7 01 00 35 04 06 00 65 BF C7 F8 95 9A 8F A4 32 48 79 16 16 F8 [00:39:21]CheckFolder [00:39:21]dirname=/storage/ofd_packets [00:39:21]CheckFolder done [00:39:21]ProducePacketName [00:39:21]name=ofd_packets/00112506 [00:39:21]NVStorageSaveData ofd_packets/00112506 [00:39:21]File name is /storage/ofd_packets/00112506 [00:39:21]Write 300 bytes [00:39:21]NVStorageSaveData done [00:39:21]OFDSenderStorePacket done [00:39:21]KKMCreateOFDPacket done [00:39:21]NVStorageSaveData kkm_last_timestamp [00:39:21]File name is /storage/kkm_last_timestamp [00:39:21]Write 4 bytes [00:39:21]NVStorageSaveData done [00:39:21]ExternCall_PrintAddStr [00:39:21]wPrintStart [00:39:21]Write to MH i2c: 01 00 00 76 0E 84 [00:39:21]Write i2c OK [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 07 00 [00:39:21]MH_I2C_Read... [00:39:21]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [00:39:21]RasterBufferAndPrint [00:39:21]line Счет N : (1)48784 [00:39:21]line ИНН: 02508201610067 [00:39:21]line Контрольно-Кассовый Чек [00:39:21]line ПРОДАЖА [00:39:21]line ТРК (МРК, ГНК) : 71 [00:39:21]line Товар: 2711190000 [00:39:21]line ГАЗ-К-5 [00:39:21]line 29.680 * 33.70 [00:39:21]line = 1000.22 [00:39:21]line НДС 12% НСП 1% [00:39:21]line > о реализуемом товаре [00:39:21]line ОКРУГЛЕНИЕ: -0.22 [00:39:21]line ИТОГО: 1000.00 [00:39:21]line Внесено: 1000.00 [00:39:21]line СДАЧА: 0.00 [00:39:21]line НСП 1% : 8.85 [00:39:21]line НДС 12% : 106.22 [00:39:21]line Наличными: 1000.00 [00:39:21]line Безнал.: 0.00 [00:39:21]line Место: АЗС № 47 "Партнер Нефть" [00:39:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:39:21]line СНО: Общий режим [00:39:21]line Чек 6 15.04.2024 00:39 [00:39:21]line Смена: 358 ФФД: 1.0 [00:39:22]line ЗНМ: 0300000138 [00:39:22]line РНМ: 0000000000094237 [00:39:22]line Версия ККМ: 001 [00:39:22]line ФМ: 0000000000875019 [00:39:22]line ФД: 112506 [00:39:22]line ФПД: 111874368116122 [00:39:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003921&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112506&fm=111874368116122&tin=02508201610067®Number=0000000000094237&sum=100000 [00:39:22]OFD Sender: Processing packet 112506 [packets to send 71, broken 70] [00:39:22]ProducePacketName [00:39:22]name=ofd_packets/00112506 [00:39:22]OFD Sender: To server: pG, [00:39:22]CommunicateWithHost lk.salyk.kg:30040 [00:39:22]ConnectInit lk.salyk.kg [00:39:22]written 0, free lines is 4095 [00:39:22]Connected sock=10 [00:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 2B 6C 06 01 A9 32 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 39 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B7 01 00 35 04 06 00 65 BF C7 F8 95 9A 8F A4 32 48 79 16 16 F8 [00:39:22]Write to MH i2c: 01 00 00 A1 0E AF [00:39:22]Write i2c OK [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: 01 [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: 01 07 00 [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: 01 07 00 A1 0E 00 00 00 00 00 DE 0C A0 [00:39:22]RasterBufferAndPrint [00:39:22]line [00:39:22]line [00:39:22]line [00:39:22]line [00:39:22]line [00:39:22]written 0, free lines is 3301 [00:39:22]MH_Cut [00:39:22]Write to MH i2c: D1 01 00 A8 0E 01 88 [00:39:22]Write i2c OK [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: D1 [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: D1 01 00 [00:39:22]MH_I2C_Read... [00:39:22]Read from MH i2c: D1 01 00 A8 0E 00 87 [00:39:22]Write to MH i2c: 01 00 00 A9 0E B7 [00:39:22]Write i2c OK [00:39:22]MH_I2C_Read... [00:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 48 E3 47 00 1A 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7A B7 01 00 F4 03 04 00 C3 1E 1C 66 B6 04 01 00 00 5D E6 86 16 74 C8 C8 65 [00:39:22]CommunicateWithHost err = 0 [00:39:22]CheckOFDResponse [00:39:22]1017 (14) - 77093643461234 [00:39:22]1041 (16) - 0000000000875019 [00:39:22]1040 (4) - 112506 [00:39:22]1012 (4) - 14.04.2024 18:21 [00:39:22]1206 (1) - 0 [00:39:22]OFD Sender: Remove packet 112506 [00:39:22]ProducePacketName [00:39:22]name=ofd_packets/00112506 [00:39:22]NVStorageDeleteData [00:39:23]OFD Sender: No OFD packet to send [00:39:23]*** Cut start [00:39:23]*** Partial cut [00:39:23]*** CUTSNS_PIN = 1 [00:39:23]*** CUTSNS_PIN = 0 [00:39:23]*** Brake cut motor [00:39:23]Read from MH i2c: 01 [00:39:23]MH_I2C_Read... [00:39:23]*** Stop cut motor [00:39:23]*** Cut end [00:39:23]Read from MH i2c: 01 07 00 [00:39:23]MH_I2C_Read... [00:39:23]Read from MH i2c: 01 07 00 A9 0E 00 00 00 00 00 FF 0F CC [00:39:23]process_action close_receipt done [00:39:23]requested_data is exist [00:39:23]produce_requested_data [00:39:23]requested_item fm.sn is exist - process it [00:39:23]wFMCommunicate request_size=4 [00:39:24]MH_SAM_APDU [00:39:24]CAPDU: 80 11 00 00 [00:39:24]Write to MH i2c: E2 08 00 AA 0E 80 11 00 00 00 00 00 00 32 [00:39:24]Write i2c OK [00:39:24]MH_I2C_Read... [00:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:24]Read from MH i2c: E2 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 17 00 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 17 00 AA 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 83 [00:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:39:24]wFMCommunicate OK [00:39:24]requested_item fd.num is exist - process it [00:39:24]SAM_PROTO_GetFieldsCounters [00:39:24]wFMCommunicate request_size=4 [00:39:24]MH_SAM_APDU [00:39:24]CAPDU: 80 13 00 00 [00:39:24]Write to MH i2c: E2 08 00 AB 0E 80 13 00 00 00 00 00 00 35 [00:39:24]Write i2c OK [00:39:24]MH_I2C_Read... [00:39:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:24]Read from MH i2c: E2 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 62 00 [00:39:24]MH_I2C_Read... [00:39:24]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 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7A B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [00:39:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7A B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:24]wFMCommunicate OK [00:39:24]SAM_PROTO_GetFieldsCounters done [00:39:24]requested_item shift.num is exist - process it [00:39:24]requested_item shift.opened is exist - process it [00:39:24]req_shift_opened [00:39:24]FM_GetShiftState [00:39:24]SAM_PROTO_GetShiftState [00:39:24]wFMCommunicate request_size=4 [00:39:24]MH_SAM_APDU [00:39:24]CAPDU: 80 13 01 00 [00:39:24]Write to MH i2c: E2 08 00 AC 0E 80 13 01 00 00 00 00 00 37 [00:39:24]Write i2c OK [00:39:24]MH_I2C_Read... [00:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:24]Read from MH i2c: E2 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 0E 00 [00:39:24]MH_I2C_Read... [00:39:24]Read from MH i2c: E2 0E 00 AC 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 EC [00:39:24]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:39:24]wFMCommunicate OK [00:39:24]SAM_PROTO_GetShiftState done [00:39:24]FM_GetShiftState done [00:39:24]req_shift_opened done [00:39:24]requested_item shift.open_date is exist - process it [00:39:24]req_shift_open_date [00:39:24]req_shift_open_date done [00:39:24]produce_requested_data done [00:39:24]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112506,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:39:24]process_action_free close_receipt [00:39:24]json_value_free [00:39:24]json_value_free done [00:39:24]process_json_proto returns [00:39:24]Send response to host [00:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112506,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:39:24]free response buf [00:39:24]execute_script done [00:39:24]execute_script returns [00:39:24]free content buf [00:39:24]Sock 7.Close socket [00:39:24]Sock 7.Thread stoped [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:44]accept exits with 9 [00:39:44]New connection [00:39:44]New thread 3067317604 created [00:39:44]Thread 3067174244 joined [00:39:44]Waiting for new connection... [00:39:44] Sock 9.Parse request [00:39:44]Sock 9.Check first char [00:39:44]Sock 9.First char is OK [00:39:44]request: POST /json_proto HTTP/1.0 [00:39:44]Method: POST [00:39:44]URL: /json_proto [00:39:44]Method is POST - this is cgi request [00:39:44]url: /json_proto [00:39:44]query_string will be loaded in cgi processing [00:39:44]execute_cgi json_proto POST (null) [00:39:44]execute_cgi path=json_proto method=POST [00:39:44]POST find Content-Length [00:39:44]Host: 172.17.96.197:8080 [00:39:44]Content-Length: 680 [00:39:44]Content-Type: application/json [00:39:44] [00:39:44]POST finish read [00:39:44]Found Content-Length = 680 [00:39:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 14.840, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:44]execute_script... [00:39:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48783", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 14.840, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:39:44]POST & json_proto [00:39:44]process_json_proto [00:39:44]json parsed OK: [00:39:44]protocol is kg_v1.0 [00:39:44]action value=close_receipt [00:39:44]process_action close_receipt [00:39:44]cmd_close_receipt [00:39:44]MH_GetDate [00:39:44]Write to MH i2c: F0 00 00 AD 0E AA [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 09 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: F0 09 00 AD 0E 00 51 77 1C 66 E0 85 7F 64 45 [00:39:44]GetLastDocTimeStamp 1713141561 [00:39:44]current date 1713141585 [00:39:44]FM_GetShiftState [00:39:44]SAM_PROTO_GetShiftState [00:39:44]wFMCommunicate request_size=4 [00:39:44]MH_SAM_APDU [00:39:44]CAPDU: 80 13 01 00 [00:39:44]Write to MH i2c: E2 08 00 AE 0E 80 13 01 00 00 00 00 00 39 [00:39:44]Write i2c OK [00:39:44]MH_I2C_Read... [00:39:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:44]Read from MH i2c: E2 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 0E 00 [00:39:44]MH_I2C_Read... [00:39:44]Read from MH i2c: E2 0E 00 AE 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 EE [00:39:44]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:39:44]wFMCommunicate OK [00:39:44]SAM_PROTO_GetShiftState done [00:39:44]FM_GetShiftState done [00:39:44]opened in 1713141170 [00:39:44]opened+sec_in_day 1713227570 [00:39:44]quantity*price = 50010 [00:39:44]sum+1 = 50012 [00:39:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 7 15.04.2024 00:39 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112507 ФПД: 56416488597609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003945&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112507&fm=56416488597609&tin=02508201610067®Number=0000000000094237&sum=50000 [00:39:45]StoreToDocumentArchive [00:39:45]shift 358 fd 112507 [00:39:45]save to /storage/0358/doc_00112507 [00:39:45]save last doc name /storage/0358/doc_00112507 to /storage/kkm_last_doc_name [00:39:45]save OK [00:39:45]Clear old archive folders... [00:39:45]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:39:45]tlvbuf is 019D6210 [00:39:45]SAM_PROTO_ClearQueue [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 09 00 00 [00:39:45]Write to MH i2c: E2 08 00 BB 0E 80 09 00 00 00 00 00 00 3B [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_ClearQueue done [00:39:45]KKMCreateOFDPacket [00:39:45]OFDProtocolAddRootSTLVToBuf [00:39:45]FM_MakeSignedData [00:39:45]FM_MakeSignedData [00:39:45]SAM_PROTO_SignData [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 01 02 [00:39:45]Write to MH i2c: E2 08 00 BC 0E 80 0D 01 02 00 00 00 00 43 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=255 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 51 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B7 01 00 35 04 06 00 33 4F [00:39:45]Write to MH i2c: E2 02 01 BD 0E 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 51 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B7 01 00 35 04 06 00 33 4F 00 00 9A [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=9 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 02 02 04 7C C3 28 69 [00:39:45]Write to MH i2c: E2 0C 00 BE 0E 80 0D 02 02 04 00 7C C3 28 69 00 00 1E [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 03 00 BE 0E 00 90 00 40 [00:39:45]RAPDU: 90 00 [00:39:45]wFMCommunicate OK [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 0D 03 02 [00:39:45]Write to MH i2c: E2 08 00 BF 0E 80 0D 03 02 00 00 00 00 48 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 0B 00 BF 0E 00 37 CE 2E CB 94 9F F7 DA 90 00 4B [00:39:45]RAPDU: 37 CE 2E CB 94 9F F7 DA 90 00 [00:39:45]wFMCommunicate OK [00:39:45]SAM_PROTO_SignData done [00:39:45]FM_MakeSignedData done [00:39:45]CreateOFDProtocolMessage [00:39:45]wFMCommunicate request_size=4 [00:39:45]MH_SAM_APDU [00:39:45]CAPDU: 80 11 00 00 [00:39:45]Write to MH i2c: E2 08 00 C0 0E 80 11 00 00 00 00 00 00 48 [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:45]Read from MH i2c: E2 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: E2 17 00 C0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 99 [00:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:39:45]wFMCommunicate OK [00:39:45]CreateOFDProtocolMessage done [00:39:45]OFDSenderStorePacket 112507 [00:39:45]StoreOFDPacket docnum=112507 [00:39:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 AA 93 06 01 B9 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 51 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B7 01 00 35 04 06 00 33 4F 7C C3 28 69 37 CE 2E CB 94 9F F7 DA [00:39:45]CheckFolder [00:39:45]dirname=/storage/ofd_packets [00:39:45]CheckFolder done [00:39:45]ProducePacketName [00:39:45]name=ofd_packets/00112507 [00:39:45]NVStorageSaveData ofd_packets/00112507 [00:39:45]File name is /storage/ofd_packets/00112507 [00:39:45]Write 300 bytes [00:39:45]NVStorageSaveData done [00:39:45]OFDSenderStorePacket done [00:39:45]KKMCreateOFDPacket done [00:39:45]NVStorageSaveData kkm_last_timestamp [00:39:45]File name is /storage/kkm_last_timestamp [00:39:45]Write 4 bytes [00:39:45]NVStorageSaveData done [00:39:45]ExternCall_PrintAddStr [00:39:45]wPrintStart [00:39:45]Write to MH i2c: 01 00 00 C1 0E CF [00:39:45]Write i2c OK [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 [00:39:45]MH_I2C_Read... [00:39:45]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [00:39:45]RasterBufferAndPrint [00:39:45]line Счет N : (1)48783 [00:39:45]line ИНН: 02508201610067 [00:39:45]line Контрольно-Кассовый Чек [00:39:45]line ПРОДАЖА [00:39:45]line ТРК (МРК, ГНК) : 72 [00:39:45]line Товар: 2711190000 [00:39:45]line ГАЗ-К-5 [00:39:45]line 14.840 * 33.70 [00:39:45]line = 500.11 [00:39:45]line НДС 12% НСП 1% [00:39:45]line > о реализуемом товаре [00:39:45]line ОКРУГЛЕНИЕ: -0.11 [00:39:45]line ИТОГО: 500.00 [00:39:45]line Внесено: 500.00 [00:39:45]line СДАЧА: 0.00 [00:39:45]line НСП 1% : 4.43 [00:39:45]line НДС 12% : 53.11 [00:39:45]line Наличными: 500.00 [00:39:45]line Безнал.: 0.00 [00:39:45]line Место: АЗС № 47 "Партнер Нефть" [00:39:45]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:39:45]line СНО: Общий режим [00:39:45]line Чек 7 15.04.2024 00:39 [00:39:45]line Смена: 358 ФФД: 1.0 [00:39:45]line ЗНМ: 0300000138 [00:39:45]line РНМ: 0000000000094237 [00:39:45]line Версия ККМ: 001 [00:39:45]line ФМ: 0000000000875019 [00:39:45]line ФД: 112507 [00:39:45]line ФПД: 56416488597609 [00:39:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T003945&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112507&fm=56416488597609&tin=02508201610067®Number=0000000000094237&sum=50000 [00:39:46]OFD Sender: Processing packet 112507 [packets to send 71, broken 70] [00:39:46]ProducePacketName [00:39:46]name=ofd_packets/00112507 [00:39:46]OFD Sender: To server: pG, [00:39:46]CommunicateWithHost lk.salyk.kg:30040 [00:39:46]ConnectInit lk.salyk.kg [00:39:46]written 0, free lines is 4095 [00:39:46]Connected sock=10 [00:39:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 AA 93 06 01 B9 A4 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F8 39 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 51 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B7 01 00 35 04 06 00 33 4F 7C C3 28 69 37 CE 2E CB 94 9F F7 DA [00:39:46]Write to MH i2c: 01 00 00 EC 0E FA [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: 01 07 00 EC 0E 00 00 00 00 00 CC 0C D9 [00:39:46]RasterBufferAndPrint [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]line [00:39:46]written 0, free lines is 3283 [00:39:46]MH_Cut [00:39:46]Write to MH i2c: D1 01 00 F3 0E 01 D3 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 01 00 [00:39:46]MH_I2C_Read... [00:39:46]Read from MH i2c: D1 01 00 F3 0E 00 D2 [00:39:46]Write to MH i2c: 01 00 00 F4 0E 02 [00:39:46]Write i2c OK [00:39:46]MH_I2C_Read... [00:39:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B7 E0 47 00 DD DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7B B7 01 00 F4 03 04 00 DB 1E 1C 66 B6 04 01 00 00 81 A7 66 90 33 D9 23 5C [00:39:46]CommunicateWithHost err = 0 [00:39:46]CheckOFDResponse [00:39:46]1017 (14) - 77093643461234 [00:39:46]1041 (16) - 0000000000875019 [00:39:46]1040 (4) - 112507 [00:39:46]1012 (4) - 14.04.2024 18:22 [00:39:46]1206 (1) - 0 [00:39:46]OFD Sender: Remove packet 112507 [00:39:46]ProducePacketName [00:39:46]name=ofd_packets/00112507 [00:39:46]NVStorageDeleteData [00:39:47]OFD Sender: No OFD packet to send [00:39:47]*** Cut start [00:39:47]*** Partial cut [00:39:47]*** CUTSNS_PIN = 1 [00:39:47]*** CUTSNS_PIN = 0 [00:39:47]*** Brake cut motor [00:39:47]Read from MH i2c: 01 [00:39:47]MH_I2C_Read... [00:39:47]*** Stop cut motor [00:39:47]*** Cut end [00:39:47]Read from MH i2c: 01 07 00 [00:39:47]MH_I2C_Read... [00:39:47]Read from MH i2c: 01 07 00 F4 0E 00 00 00 00 00 FF 0F 17 [00:39:47]process_action close_receipt done [00:39:47]requested_data is exist [00:39:47]produce_requested_data [00:39:47]requested_item fm.sn is exist - process it [00:39:47]wFMCommunicate request_size=4 [00:39:47]MH_SAM_APDU [00:39:47]CAPDU: 80 11 00 00 [00:39:47]Write to MH i2c: E2 08 00 F5 0E 80 11 00 00 00 00 00 00 7D [00:39:47]Write i2c OK [00:39:47]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 17 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 17 00 F5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CE [00:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:39:48]wFMCommunicate OK [00:39:48]requested_item fd.num is exist - process it [00:39:48]SAM_PROTO_GetFieldsCounters [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 13 00 00 [00:39:48]Write to MH i2c: E2 08 00 F6 0E 80 13 00 00 00 00 00 00 80 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 62 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 62 00 F6 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7B B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [00:39:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7B B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:39:48]wFMCommunicate OK [00:39:48]SAM_PROTO_GetFieldsCounters done [00:39:48]requested_item shift.num is exist - process it [00:39:48]requested_item shift.opened is exist - process it [00:39:48]req_shift_opened [00:39:48]FM_GetShiftState [00:39:48]SAM_PROTO_GetShiftState [00:39:48]wFMCommunicate request_size=4 [00:39:48]MH_SAM_APDU [00:39:48]CAPDU: 80 13 01 00 [00:39:48]Write to MH i2c: E2 08 00 F7 0E 80 13 01 00 00 00 00 00 82 [00:39:48]Write i2c OK [00:39:48]MH_I2C_Read... [00:39:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:39:48]Read from MH i2c: E2 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 0E 00 [00:39:48]MH_I2C_Read... [00:39:48]Read from MH i2c: E2 0E 00 F7 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 37 [00:39:48]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:39:48]wFMCommunicate OK [00:39:48]SAM_PROTO_GetShiftState done [00:39:48]FM_GetShiftState done [00:39:48]req_shift_opened done [00:39:48]requested_item shift.open_date is exist - process it [00:39:48]req_shift_open_date [00:39:48]req_shift_open_date done [00:39:48]produce_requested_data done [00:39:48]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112507,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:39:48]process_action_free close_receipt [00:39:48]json_value_free [00:39:48]json_value_free done [00:39:48]process_json_proto returns [00:39:48]Send response to host [00:39:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112507,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:39:48]free response buf [00:39:48]execute_script done [00:39:48]execute_script returns [00:39:48]free content buf [00:39:48]Sock 9.Close socket [00:39:48]Sock 9.Thread stoped [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:55]accept exits with 7 [00:40:55]New connection [00:40:55]New thread 3067174244 created [00:40:55]Thread 3067317604 joined [00:40:55]Waiting for new connection... [00:40:55] Sock 7.Parse request [00:40:55]Sock 7.Check first char [00:40:55]Sock 7.First char is OK [00:40:55]request: POST /json_proto HTTP/1.0 [00:40:55]Method: POST [00:40:55]URL: /json_proto [00:40:55]Method is POST - this is cgi request [00:40:55]url: /json_proto [00:40:55]query_string will be loaded in cgi processing [00:40:55]execute_cgi json_proto POST (null) [00:40:55]execute_cgi path=json_proto method=POST [00:40:55]POST find Content-Length [00:40:55]Host: 172.17.96.197:8080 [00:40:55]Content-Length: 676 [00:40:55]Content-Type: application/json [00:40:55] [00:40:55]POST finish read [00:40:55]Found Content-Length = 676 [00:40:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [00:40:55]execute_script... [00:40: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)48787", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [00:40:55]POST & json_proto [00:40:55]process_json_proto [00:40:55]json parsed OK: [00:40:55]protocol is kg_v1.0 [00:40:55]action value=close_receipt [00:40:55]process_action close_receipt [00:40:55]cmd_close_receipt [00:40:55]MH_GetDate [00:40:55]Write to MH i2c: F0 00 00 F8 0E F5 [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: F0 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: F0 09 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: F0 09 00 F8 0E 00 98 77 1C 66 E0 85 7F 64 D7 [00:40:55]GetLastDocTimeStamp 1713141585 [00:40:55]current date 1713141656 [00:40:55]FM_GetShiftState [00:40:55]SAM_PROTO_GetShiftState [00:40:55]wFMCommunicate request_size=4 [00:40:55]MH_SAM_APDU [00:40:55]CAPDU: 80 13 01 00 [00:40:55]Write to MH i2c: E2 08 00 F9 0E 80 13 01 00 00 00 00 00 84 [00:40:55]Write i2c OK [00:40:55]MH_I2C_Read... [00:40:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:55]Read from MH i2c: E2 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 0E 00 [00:40:55]MH_I2C_Read... [00:40:55]Read from MH i2c: E2 0E 00 F9 0E 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 39 [00:40:55]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:40:55]wFMCommunicate OK [00:40:55]SAM_PROTO_GetShiftState done [00:40:55]FM_GetShiftState done [00:40:55]opened in 1713141170 [00:40:55]opened+sec_in_day 1713227570 [00:40:55]quantity*price = 50025 [00:40:55]sum+1 = 50027 [00:40: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 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 8 15.04.2024 00:40 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112508 ФПД: 254102004105138 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T004056&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112508&fm=254102004105138&tin=02508201610067®Number=0000000000094237&sum=50000 [00:40:56]StoreToDocumentArchive [00:40:56]shift 358 fd 112508 [00:40:56]save to /storage/0358/doc_00112508 [00:40:56]save last doc name /storage/0358/doc_00112508 to /storage/kkm_last_doc_name [00:40:56]save OK [00:40:56]Clear old archive folders... [00:40:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:40:56]tlvbuf is 01A13C90 [00:40:56]SAM_PROTO_ClearQueue [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 09 00 00 [00:40:56]Write to MH i2c: E2 08 00 06 0F 80 09 00 00 00 00 00 00 87 [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [00:40:56]RAPDU: 90 00 [00:40:56]wFMCommunicate OK [00:40:56]SAM_PROTO_ClearQueue done [00:40:56]KKMCreateOFDPacket [00:40:56]OFDProtocolAddRootSTLVToBuf [00:40:56]FM_MakeSignedData [00:40:56]FM_MakeSignedData [00:40:56]SAM_PROTO_SignData [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 0D 01 02 [00:40:56]Write to MH i2c: E2 08 00 07 0F 80 0D 01 02 00 00 00 00 8F [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [00:40:56]RAPDU: 90 00 [00:40:56]wFMCommunicate OK [00:40:56]wFMCommunicate request_size=255 [00:40:56]MH_SAM_APDU [00:40: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 08 00 00 00 F4 03 04 00 98 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B7 01 00 35 04 06 00 E7 [00:40:56]Write to MH i2c: E2 02 01 08 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 08 00 00 00 F4 03 04 00 98 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B7 01 00 35 04 06 00 E7 00 00 44 [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [00:40:56]RAPDU: 90 00 [00:40:56]wFMCommunicate OK [00:40:56]wFMCommunicate request_size=10 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 0D 02 02 05 1A BB B0 FF B2 [00:40:56]Write to MH i2c: E2 0D 00 09 0F 80 0D 02 02 05 00 1A BB B0 FF B2 00 00 D2 [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 03 00 09 0F 00 90 00 8C [00:40:56]RAPDU: 90 00 [00:40:56]wFMCommunicate OK [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 0D 03 02 [00:40:56]Write to MH i2c: E2 08 00 0A 0F 80 0D 03 02 00 00 00 00 94 [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 0B 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 0B 00 0A 0F 00 45 98 24 BF DF 43 32 8D 90 00 36 [00:40:56]RAPDU: 45 98 24 BF DF 43 32 8D 90 00 [00:40:56]wFMCommunicate OK [00:40:56]SAM_PROTO_SignData done [00:40:56]FM_MakeSignedData done [00:40:56]CreateOFDProtocolMessage [00:40:56]wFMCommunicate request_size=4 [00:40:56]MH_SAM_APDU [00:40:56]CAPDU: 80 11 00 00 [00:40:56]Write to MH i2c: E2 08 00 0B 0F 80 11 00 00 00 00 00 00 94 [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:56]Read from MH i2c: E2 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 17 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: E2 17 00 0B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E5 [00:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:40:56]wFMCommunicate OK [00:40:56]CreateOFDProtocolMessage done [00:40:56]OFDSenderStorePacket 112508 [00:40:56]StoreOFDPacket docnum=112508 [00:40:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 54 03 07 01 D4 87 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 08 00 00 00 F4 03 04 00 98 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B7 01 00 35 04 06 00 E7 1A BB B0 FF B2 45 98 24 BF DF 43 32 8D [00:40:56]CheckFolder [00:40:56]dirname=/storage/ofd_packets [00:40:56]CheckFolder done [00:40:56]ProducePacketName [00:40:56]name=ofd_packets/00112508 [00:40:56]NVStorageSaveData ofd_packets/00112508 [00:40:56]File name is /storage/ofd_packets/00112508 [00:40:56]Write 301 bytes [00:40:56]NVStorageSaveData done [00:40:56]OFDSenderStorePacket done [00:40:56]KKMCreateOFDPacket done [00:40:56]NVStorageSaveData kkm_last_timestamp [00:40:56]File name is /storage/kkm_last_timestamp [00:40:56]Write 4 bytes [00:40:56]NVStorageSaveData done [00:40:56]OFD Sender: Processing packet 112508 [packets to send 71, broken 70] [00:40:56]ProducePacketName [00:40:56]name=ofd_packets/00112508 [00:40:56]OFD Sender: To server: pG, [00:40:56]CommunicateWithHost lk.salyk.kg:30040 [00:40:56]ConnectInit lk.salyk.kg [00:40:56]ExternCall_PrintAddStr [00:40:56]wPrintStart [00:40:56]Write to MH i2c: 01 00 00 0C 0F 1B [00:40:56]Write i2c OK [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: 01 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: 01 07 00 [00:40:56]MH_I2C_Read... [00:40:56]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [00:40:56]RasterBufferAndPrint [00:40:56]line Счет N : (1)48787 [00:40:56]line ИНН: 02508201610067 [00:40:56]line Контрольно-Кассовый Чек [00:40:56]line ПРОДАЖА [00:40:56]line ТРК (МРК, ГНК) : 11 [00:40:56]line Товар: 2710124130 [00:40:56]line Аи-92-К-5 [00:40:56]line 7.720 * 64.80 [00:40:56]line = 500.26 [00:40:56]line НДС 12% НСП 1% [00:40:56]line > о реализуемом товаре [00:40:56]line ОКРУГЛЕНИЕ: -0.26 [00:40:56]line ИТОГО: 500.00 [00:40:56]line Внесено: 500.00 [00:40:56]line СДАЧА: 0.00 [00:40:56]line НСП 1% : 4.43 [00:40:56]line НДС 12% : 53.12 [00:40:56]line Наличными: 500.00 [00:40:56]line Безнал.: 0.00 [00:40:56]line Место: АЗС № 47 "Партнер Нефть" [00:40:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:40:56]line СНО: Общий режим [00:40:56]line Чек 8 15.04.2024 00:40 [00:40:56]line Смена: 358 ФФД: 1.0 [00:40:56]line ЗНМ: 0300000138 [00:40:56]line РНМ: 0000000000094237 [00:40:56]line Версия ККМ: 001 [00:40:56]line ФМ: 0000000000875019 [00:40:56]line ФД: 112508 [00:40:56]line ФПД: 254102004105138 [00:40:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T004056&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112508&fm=254102004105138&tin=02508201610067®Number=0000000000094237&sum=50000 [00:40:57]Connected sock=11 [00:40:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 54 03 07 01 D4 87 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 08 00 00 00 F4 03 04 00 98 77 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7C B7 01 00 35 04 06 00 E7 1A BB B0 FF B2 45 98 24 BF DF 43 32 8D [00:40:57]written 0, free lines is 4095 [00:40:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 0F CE 47 00 25 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 38 37 35 30 31 39 10 04 04 00 7C B7 01 00 F4 03 04 00 22 1F 1C 66 B6 04 01 00 00 4C 64 F7 9A 14 BB E5 07 [00:40:57]CommunicateWithHost err = 0 [00:40:57]CheckOFDResponse [00:40:57]1017 (14) - 77093643461234 [00:40:57]1041 (16) - 0000000000875019 [00:40:57]1040 (4) - 112508 [00:40:57]1012 (4) - 14.04.2024 18:23 [00:40:57]1206 (1) - 0 [00:40:57]OFD Sender: Remove packet 112508 [00:40:57]ProducePacketName [00:40:57]name=ofd_packets/00112508 [00:40:57]NVStorageDeleteData [00:40:57]Write to MH i2c: 01 00 00 37 0F 46 [00:40:57]Write i2c OK [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: 01 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: 01 07 00 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: 01 07 00 37 0F 00 00 00 00 00 D6 0C 2F [00:40:57]RasterBufferAndPrint [00:40:57]line [00:40:57]line [00:40:57]line [00:40:57]line [00:40:57]line [00:40:57]written 0, free lines is 3293 [00:40:57]MH_Cut [00:40:57]Write to MH i2c: D1 01 00 3E 0F 01 1F [00:40:57]Write i2c OK [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: D1 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: D1 01 00 [00:40:57]MH_I2C_Read... [00:40:57]Read from MH i2c: D1 01 00 3E 0F 00 1E [00:40:57]Write to MH i2c: 01 00 00 3F 0F 4E [00:40:57]Write i2c OK [00:40:57]MH_I2C_Read... [00:40:57]OFD Sender: No OFD packet to send [00:40:58]*** Cut start [00:40:58]*** Partial cut [00:40:58]*** CUTSNS_PIN = 1 [00:40:58]*** CUTSNS_PIN = 0 [00:40:58]*** Brake cut motor [00:40:58]Read from MH i2c: 01 [00:40:58]MH_I2C_Read... [00:40:58]*** Stop cut motor [00:40:58]*** Cut end [00:40:58]Read from MH i2c: 01 07 00 [00:40:58]MH_I2C_Read... [00:40:58]Read from MH i2c: 01 07 00 3F 0F 00 00 00 00 00 FF 0F 63 [00:40:58]process_action close_receipt done [00:40:58]requested_data is exist [00:40:58]produce_requested_data [00:40:58]requested_item fm.sn is exist - process it [00:40:58]wFMCommunicate request_size=4 [00:40:58]MH_SAM_APDU [00:40:58]CAPDU: 80 11 00 00 [00:40:58]Write to MH i2c: E2 08 00 40 0F 80 11 00 00 00 00 00 00 C9 [00:40:58]Write i2c OK [00:40:58]MH_I2C_Read... [00:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:59]Read from MH i2c: E2 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 17 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 17 00 40 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1A [00:40:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:40:59]wFMCommunicate OK [00:40:59]requested_item fd.num is exist - process it [00:40:59]SAM_PROTO_GetFieldsCounters [00:40:59]wFMCommunicate request_size=4 [00:40:59]MH_SAM_APDU [00:40:59]CAPDU: 80 13 00 00 [00:40:59]Write to MH i2c: E2 08 00 41 0F 80 13 00 00 00 00 00 00 CC [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:59]Read from MH i2c: E2 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 62 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 62 00 41 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7C B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [00:40:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7C B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:40:59]wFMCommunicate OK [00:40:59]SAM_PROTO_GetFieldsCounters done [00:40:59]requested_item shift.num is exist - process it [00:40:59]requested_item shift.opened is exist - process it [00:40:59]req_shift_opened [00:40:59]FM_GetShiftState [00:40:59]SAM_PROTO_GetShiftState [00:40:59]wFMCommunicate request_size=4 [00:40:59]MH_SAM_APDU [00:40:59]CAPDU: 80 13 01 00 [00:40:59]Write to MH i2c: E2 08 00 42 0F 80 13 01 00 00 00 00 00 CE [00:40:59]Write i2c OK [00:40:59]MH_I2C_Read... [00:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:59]Read from MH i2c: E2 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 [00:40:59]MH_I2C_Read... [00:40:59]Read from MH i2c: E2 0E 00 42 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 83 [00:40:59]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:40:59]wFMCommunicate OK [00:40:59]SAM_PROTO_GetShiftState done [00:40:59]FM_GetShiftState done [00:40:59]req_shift_opened done [00:40:59]requested_item shift.open_date is exist - process it [00:40:59]req_shift_open_date [00:40:59]req_shift_open_date done [00:40:59]produce_requested_data done [00:40:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112508,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:40:59]process_action_free close_receipt [00:40:59]json_value_free [00:40:59]json_value_free done [00:40:59]process_json_proto returns [00:40:59]Send response to host [00:40:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112508,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:40:59]free response buf [00:40:59]execute_script done [00:40:59]execute_script returns [00:40:59]free content buf [00:40:59]Sock 7.Close socket [00:40:59]Sock 7.Thread stoped [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]accept exits with 9 [00:43:32]New connection [00:43:32]New thread 3067317604 created [00:43:32]Thread 3067174244 joined [00:43:32]Waiting for new connection... [00:43:32] Sock 9.Parse request [00:43:32]Sock 9.Check first char [00:43:32]Sock 9.First char is OK [00:43:32]request: POST /json_proto HTTP/1.0 [00:43:32]Method: POST [00:43:32]URL: /json_proto [00:43:32]Method is POST - this is cgi request [00:43:32]url: /json_proto [00:43:32]query_string will be loaded in cgi processing [00:43:32]execute_cgi json_proto POST (null) [00:43:32]execute_cgi path=json_proto method=POST [00:43:32]POST find Content-Length [00:43:32]Host: 172.17.96.197:8080 [00:43:32]Content-Length: 670 [00:43:32]Content-Type: application/json [00:43:32] [00:43:32]POST finish read [00:43:32]Found Content-Length = 670 [00:43:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48788", "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" : 10.640, "sum" : 700.11, "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" ] } } [00:43:32]execute_script... [00:43: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)48788", "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" : 10.640, "sum" : 700.11, "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" ] } } [00:43:32]POST & json_proto [00:43:32]process_json_proto [00:43:32]json parsed OK: [00:43:32]protocol is kg_v1.0 [00:43:32]action value=close_receipt [00:43:32]process_action close_receipt [00:43:32]cmd_close_receipt [00:43:32]MH_GetDate [00:43:32]Write to MH i2c: F0 00 00 43 0F 41 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: F0 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: F0 09 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: F0 09 00 43 0F 00 36 78 1C 66 E0 85 7F 64 C2 [00:43:32]GetLastDocTimeStamp 1713141656 [00:43:32]current date 1713141814 [00:43:32]FM_GetShiftState [00:43:32]SAM_PROTO_GetShiftState [00:43:32]wFMCommunicate request_size=4 [00:43:32]MH_SAM_APDU [00:43:32]CAPDU: 80 13 01 00 [00:43:32]Write to MH i2c: E2 08 00 44 0F 80 13 01 00 00 00 00 00 D0 [00:43:32]Write i2c OK [00:43:32]MH_I2C_Read... [00:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:32]Read from MH i2c: E2 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 0E 00 [00:43:32]MH_I2C_Read... [00:43:32]Read from MH i2c: E2 0E 00 44 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 85 [00:43:32]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:43:32]wFMCommunicate OK [00:43:32]SAM_PROTO_GetShiftState done [00:43:32]FM_GetShiftState done [00:43:32]opened in 1713141170 [00:43:32]opened+sec_in_day 1713227570 [00:43:32]quantity*price = 70011 [00:43:32]sum+1 = 70012 [00:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 9 15.04.2024 00:43 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112509 ФПД: 22695178689925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T004334&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112509&fm=22695178689925&tin=02508201610067®Number=0000000000094237&sum=70000 [00:43:34]StoreToDocumentArchive [00:43:34]shift 358 fd 112509 [00:43:34]save to /storage/0358/doc_00112509 [00:43:34]save last doc name /storage/0358/doc_00112509 to /storage/kkm_last_doc_name [00:43:34]save OK [00:43:34]Clear old archive folders... [00:43:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:43:34]tlvbuf is 019EF5F0 [00:43:34]SAM_PROTO_ClearQueue [00:43:34]wFMCommunicate request_size=4 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 09 00 00 [00:43:34]Write to MH i2c: E2 08 00 51 0F 80 09 00 00 00 00 00 00 D2 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [00:43:34]RAPDU: 90 00 [00:43:34]wFMCommunicate OK [00:43:34]SAM_PROTO_ClearQueue done [00:43:34]KKMCreateOFDPacket [00:43:34]OFDProtocolAddRootSTLVToBuf [00:43:34]FM_MakeSignedData [00:43:34]FM_MakeSignedData [00:43:34]SAM_PROTO_SignData [00:43:34]wFMCommunicate request_size=4 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 0D 01 02 [00:43:34]Write to MH i2c: E2 08 00 52 0F 80 0D 01 02 00 00 00 00 DA [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [00:43:34]RAPDU: 90 00 [00:43:34]wFMCommunicate OK [00:43:34]wFMCommunicate request_size=255 [00:43:34]MH_SAM_APDU [00:43: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 20 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 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 0B 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 09 00 00 00 F4 03 04 00 36 78 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B7 01 00 35 04 06 00 [00:43:34]Write to MH i2c: E2 02 01 53 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 20 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 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 0B 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 09 00 00 00 F4 03 04 00 36 78 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B7 01 00 35 04 06 00 00 00 01 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [00:43:34]RAPDU: 90 00 [00:43:34]wFMCommunicate OK [00:43:34]wFMCommunicate request_size=11 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 0D 02 02 06 14 A4 22 10 5D 85 [00:43:34]Write to MH i2c: E2 0E 00 54 0F 80 0D 02 02 06 00 14 A4 22 10 5D 85 00 00 B5 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 03 00 54 0F 00 90 00 D7 [00:43:34]RAPDU: 90 00 [00:43:34]wFMCommunicate OK [00:43:34]wFMCommunicate request_size=4 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 0D 03 02 [00:43:34]Write to MH i2c: E2 08 00 55 0F 80 0D 03 02 00 00 00 00 DF [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 0B 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 0B 00 55 0F 00 3C 5B A2 44 BF ED B9 91 90 00 53 [00:43:34]RAPDU: 3C 5B A2 44 BF ED B9 91 90 00 [00:43:34]wFMCommunicate OK [00:43:34]SAM_PROTO_SignData done [00:43:34]FM_MakeSignedData done [00:43:34]CreateOFDProtocolMessage [00:43:34]wFMCommunicate request_size=4 [00:43:34]MH_SAM_APDU [00:43:34]CAPDU: 80 11 00 00 [00:43:34]Write to MH i2c: E2 08 00 56 0F 80 11 00 00 00 00 00 00 DF [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:34]Read from MH i2c: E2 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 17 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: E2 17 00 56 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 30 [00:43:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:43:34]wFMCommunicate OK [00:43:34]CreateOFDProtocolMessage done [00:43:34]OFDSenderStorePacket 112509 [00:43:34]StoreOFDPacket docnum=112509 [00:43:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 61 E9 08 01 96 C9 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 20 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 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 0B 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 09 00 00 00 F4 03 04 00 36 78 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B7 01 00 35 04 06 00 14 A4 22 10 5D 85 3C 5B A2 44 BF ED B9 91 [00:43:34]CheckFolder [00:43:34]dirname=/storage/ofd_packets [00:43:34]CheckFolder done [00:43:34]ProducePacketName [00:43:34]name=ofd_packets/00112509 [00:43:34]NVStorageSaveData ofd_packets/00112509 [00:43:34]File name is /storage/ofd_packets/00112509 [00:43:34]Write 302 bytes [00:43:34]NVStorageSaveData done [00:43:34]OFDSenderStorePacket done [00:43:34]KKMCreateOFDPacket done [00:43:34]NVStorageSaveData kkm_last_timestamp [00:43:34]File name is /storage/kkm_last_timestamp [00:43:34]Write 4 bytes [00:43:34]NVStorageSaveData done [00:43:34]ExternCall_PrintAddStr [00:43:34]wPrintStart [00:43:34]Write to MH i2c: 01 00 00 57 0F 66 [00:43:34]Write i2c OK [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: 01 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: 01 07 00 [00:43:34]MH_I2C_Read... [00:43:34]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 FF 0F 7B [00:43:34]RasterBufferAndPrint [00:43:34]line Счет N : (1)48788 [00:43:34]line ИНН: 02508201610067 [00:43:34]line Контрольно-Кассовый Чек [00:43:34]line ПРОДАЖА [00:43:34]line ТРК (МРК, ГНК) : 41 [00:43:34]line Товар: 2710124130 [00:43:34]line SUPER 92-К-5 [00:43:34]line 10.640 * 65.80 [00:43:34]line = 700.11 [00:43:34]line НДС 12% НСП 1% [00:43:34]line > о реализуемом товаре [00:43:34]line ОКРУГЛЕНИЕ: -0.11 [00:43:34]line ИТОГО: 700.00 [00:43:34]line Внесено: 700.00 [00:43:34]line СДАЧА: 0.00 [00:43:34]line НСП 1% : 6.20 [00:43:34]line НДС 12% : 74.35 [00:43:34]line Наличными: 700.00 [00:43:34]line Безнал.: 0.00 [00:43:34]line Место: АЗС № 47 "Партнер Нефть" [00:43:34]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:43:34]line СНО: Общий режим [00:43:34]line Чек 9 15.04.2024 00:43 [00:43:34]line Смена: 358 ФФД: 1.0 [00:43:34]line ЗНМ: 0300000138 [00:43:34]line РНМ: 0000000000094237 [00:43:34]line Версия ККМ: 001 [00:43:34]line ФМ: 0000000000875019 [00:43:34]line ФД: 112509 [00:43:34]line ФПД: 22695178689925 [00:43:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T004334&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112509&fm=22695178689925&tin=02508201610067®Number=0000000000094237&sum=70000 [00:43:34]OFD Sender: Processing packet 112509 [packets to send 71, broken 70] [00:43:34]ProducePacketName [00:43:34]name=ofd_packets/00112509 [00:43:34]OFD Sender: To server: pG, [00:43:34]CommunicateWithHost lk.salyk.kg:30040 [00:43:34]ConnectInit lk.salyk.kg [00:43:34]written 0, free lines is 4095 [00:43:35]Connected sock=11 [00:43:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 61 E9 08 01 96 C9 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 20 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 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 0B 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 09 00 00 00 F4 03 04 00 36 78 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B7 01 00 35 04 06 00 14 A4 22 10 5D 85 3C 5B A2 44 BF ED B9 91 [00:43:35]Write to MH i2c: 01 00 00 82 0F 91 [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: 01 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: 01 07 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: 01 07 00 82 0F 00 00 00 00 00 DC 0C 80 [00:43:35]RasterBufferAndPrint [00:43:35]line [00:43:35]line [00:43:35]line [00:43:35]line [00:43:35]line [00:43:35]written 0, free lines is 3299 [00:43:35]MH_Cut [00:43:35]Write to MH i2c: D1 01 00 89 0F 01 6A [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: D1 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: D1 01 00 [00:43:35]MH_I2C_Read... [00:43:35]Read from MH i2c: D1 01 00 89 0F 00 69 [00:43:35]Write to MH i2c: 01 00 00 8A 0F 99 [00:43:35]Write i2c OK [00:43:35]MH_I2C_Read... [00:43:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 6F E3 47 00 BB D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7D B7 01 00 F4 03 04 00 C0 1F 1C 66 B6 04 01 00 00 10 B8 5E 97 DA 2D 6E EA [00:43:35]CommunicateWithHost err = 0 [00:43:35]CheckOFDResponse [00:43:35]1017 (14) - 77093643461234 [00:43:35]1041 (16) - 0000000000875019 [00:43:35]1040 (4) - 112509 [00:43:35]1012 (4) - 14.04.2024 18:26 [00:43:35]1206 (1) - 0 [00:43:35]OFD Sender: Remove packet 112509 [00:43:35]ProducePacketName [00:43:35]name=ofd_packets/00112509 [00:43:35]NVStorageDeleteData [00:43:36]OFD Sender: No OFD packet to send [00:43:36]*** Cut start [00:43:36]*** Partial cut [00:43:36]*** CUTSNS_PIN = 1 [00:43:36]*** CUTSNS_PIN = 0 [00:43:36]*** Brake cut motor [00:43:36]Read from MH i2c: 01 [00:43:36]MH_I2C_Read... [00:43:36]*** Stop cut motor [00:43:36]*** Cut end [00:43:36]Read from MH i2c: 01 07 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: 01 07 00 8A 0F 00 00 00 00 00 FF 0F AE [00:43:36]process_action close_receipt done [00:43:36]requested_data is exist [00:43:36]produce_requested_data [00:43:36]requested_item fm.sn is exist - process it [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 11 00 00 [00:43:36]Write to MH i2c: E2 08 00 8B 0F 80 11 00 00 00 00 00 00 14 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:36]Read from MH i2c: E2 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 [00:43:36]MH_I2C_Read... [00:43:36]Read from MH i2c: E2 17 00 8B 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 65 [00:43:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:43:36]wFMCommunicate OK [00:43:36]requested_item fd.num is exist - process it [00:43:36]SAM_PROTO_GetFieldsCounters [00:43:36]wFMCommunicate request_size=4 [00:43:36]MH_SAM_APDU [00:43:36]CAPDU: 80 13 00 00 [00:43:36]Write to MH i2c: E2 08 00 8C 0F 80 13 00 00 00 00 00 00 17 [00:43:36]Write i2c OK [00:43:36]MH_I2C_Read... [00:43:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:37]Read from MH i2c: E2 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 62 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 62 00 8C 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7D B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [00:43:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7D B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:37]wFMCommunicate OK [00:43:37]SAM_PROTO_GetFieldsCounters done [00:43:37]requested_item shift.num is exist - process it [00:43:37]requested_item shift.opened is exist - process it [00:43:37]req_shift_opened [00:43:37]FM_GetShiftState [00:43:37]SAM_PROTO_GetShiftState [00:43:37]wFMCommunicate request_size=4 [00:43:37]MH_SAM_APDU [00:43:37]CAPDU: 80 13 01 00 [00:43:37]Write to MH i2c: E2 08 00 8D 0F 80 13 01 00 00 00 00 00 19 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:37]Read from MH i2c: E2 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 0E 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 0E 00 8D 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 CE [00:43:37]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:43:37]wFMCommunicate OK [00:43:37]SAM_PROTO_GetShiftState done [00:43:37]FM_GetShiftState done [00:43:37]req_shift_opened done [00:43:37]requested_item shift.open_date is exist - process it [00:43:37]req_shift_open_date [00:43:37]req_shift_open_date done [00:43:37]produce_requested_data done [00:43:37]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112509,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:43:37]process_action_free close_receipt [00:43:37]json_value_free [00:43:37]json_value_free done [00:43:37]process_json_proto returns [00:43:37]Send response to host [00:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112509,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:43:37]free response buf [00:43:37]execute_script done [00:43:37]execute_script returns [00:43:37]free content buf [00:43:37]Sock 9.Close socket [00:43:37]Sock 9.Thread stoped [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:47]accept exits with 7 [00:53:47]New connection [00:53:47]New thread 3067174244 created [00:53:47]Thread 3067317604 joined [00:53:47]Waiting for new connection... [00:53:47] Sock 7.Parse request [00:53:47]Sock 7.Check first char [00:53:47]Sock 7.First char is OK [00:53:47]request: POST /json_proto HTTP/1.0 [00:53:47]Method: POST [00:53:47]URL: /json_proto [00:53:47]Method is POST - this is cgi request [00:53:47]url: /json_proto [00:53:47]query_string will be loaded in cgi processing [00:53:47]execute_cgi json_proto POST (null) [00:53:47]execute_cgi path=json_proto method=POST [00:53:47]POST find Content-Length [00:53:47]Host: 172.17.96.197:8080 [00:53:47]Content-Length: 676 [00:53:47]Content-Type: application/json [00:53:47] [00:53:47]POST finish read [00:53:47]Found Content-Length = 676 [00:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:53:47]execute_script... [00:53: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)48789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [00:53:47]POST & json_proto [00:53:47]process_json_proto [00:53:47]json parsed OK: [00:53:47]protocol is kg_v1.0 [00:53:47]action value=close_receipt [00:53:47]process_action close_receipt [00:53:47]cmd_close_receipt [00:53:47]MH_GetDate [00:53:47]Write to MH i2c: F0 00 00 8E 0F 8C [00:53:47]Write i2c OK [00:53:47]MH_I2C_Read... [00:53:47]Read from MH i2c: F0 [00:53:47]MH_I2C_Read... [00:53:47]Read from MH i2c: F0 09 00 [00:53:47]MH_I2C_Read... [00:53:47]Read from MH i2c: F0 09 00 8E 0F 00 9D 7A 1C 66 E0 85 7F 64 76 [00:53:47]GetLastDocTimeStamp 1713141814 [00:53:47]current date 1713142429 [00:53:47]FM_GetShiftState [00:53:47]SAM_PROTO_GetShiftState [00:53:47]wFMCommunicate request_size=4 [00:53:47]MH_SAM_APDU [00:53:47]CAPDU: 80 13 01 00 [00:53:47]Write to MH i2c: E2 08 00 8F 0F 80 13 01 00 00 00 00 00 1B [00:53:47]Write i2c OK [00:53:47]MH_I2C_Read... [00:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:47]Read from MH i2c: E2 [00:53:47]MH_I2C_Read... [00:53:47]Read from MH i2c: E2 0E 00 [00:53:47]MH_I2C_Read... [00:53:47]Read from MH i2c: E2 0E 00 8F 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 D0 [00:53:47]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:53:47]wFMCommunicate OK [00:53:47]SAM_PROTO_GetShiftState done [00:53:47]FM_GetShiftState done [00:53:47]opened in 1713141170 [00:53:47]opened+sec_in_day 1713227570 [00:53:47]quantity*price = 50025 [00:53:47]sum+1 = 50027 [00:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 10 15.04.2024 00:53 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112510 ФПД: 133867837211354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005349&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112510&fm=133867837211354&tin=02508201610067®Number=0000000000094237&sum=50000 [00:53:48]StoreToDocumentArchive [00:53:48]shift 358 fd 112510 [00:53:48]save to /storage/0358/doc_00112510 [00:53:48]save last doc name /storage/0358/doc_00112510 to /storage/kkm_last_doc_name [00:53:48]save OK [00:53:48]Clear old archive folders... [00:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:53:48]tlvbuf is 01A13DD0 [00:53:48]SAM_PROTO_ClearQueue [00:53:48]wFMCommunicate request_size=4 [00:53:48]MH_SAM_APDU [00:53:48]CAPDU: 80 09 00 00 [00:53:48]Write to MH i2c: E2 08 00 9C 0F 80 09 00 00 00 00 00 00 1D [00:53:48]Write i2c OK [00:53:48]MH_I2C_Read... [00:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:53:48]Read from MH i2c: E2 [00:53:48]MH_I2C_Read... [00:53:48]Read from MH i2c: E2 03 00 [00:53:48]MH_I2C_Read... [00:53:48]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [00:53:48]RAPDU: 90 00 [00:53:48]wFMCommunicate OK [00:53:48]SAM_PROTO_ClearQueue done [00:53:48]KKMCreateOFDPacket [00:53:48]OFDProtocolAddRootSTLVToBuf [00:53:48]FM_MakeSignedData [00:53:48]FM_MakeSignedData [00:53:48]SAM_PROTO_SignData [00:53:48]wFMCommunicate request_size=4 [00:53:48]MH_SAM_APDU [00:53:48]CAPDU: 80 0D 01 02 [00:53:48]Write to MH i2c: E2 08 00 9D 0F 80 0D 01 02 00 00 00 00 25 [00:53:48]Write i2c OK [00:53:48]MH_I2C_Read... [00:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:53:48]Read from MH i2c: E2 [00:53:48]MH_I2C_Read... [00:53:48]Read from MH i2c: E2 03 00 [00:53:48]MH_I2C_Read... [00:53:48]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [00:53:48]RAPDU: 90 00 [00:53:48]wFMCommunicate OK [00:53:48]wFMCommunicate request_size=255 [00:53:48]MH_SAM_APDU [00:53: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 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 0A 00 00 00 F4 03 04 00 9D 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B7 01 00 35 04 06 00 79 [00:53:48]Write to MH i2c: E2 02 01 9E 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 0A 00 00 00 F4 03 04 00 9D 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B7 01 00 35 04 06 00 79 00 00 78 [00:53:48]Write i2c OK [00:53:48]MH_I2C_Read... [00:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:49]Read from MH i2c: E2 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 03 00 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [00:53:49]RAPDU: 90 00 [00:53:49]wFMCommunicate OK [00:53:49]wFMCommunicate request_size=10 [00:53:49]MH_SAM_APDU [00:53:49]CAPDU: 80 0D 02 02 05 C0 88 E2 42 DA [00:53:49]Write to MH i2c: E2 0D 00 9F 0F 80 0D 02 02 05 00 C0 88 E2 42 DA 00 00 78 [00:53:49]Write i2c OK [00:53:49]MH_I2C_Read... [00:53:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:53:49]Read from MH i2c: E2 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 03 00 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [00:53:49]RAPDU: 90 00 [00:53:49]wFMCommunicate OK [00:53:49]wFMCommunicate request_size=4 [00:53:49]MH_SAM_APDU [00:53:49]CAPDU: 80 0D 03 02 [00:53:49]Write to MH i2c: E2 08 00 A0 0F 80 0D 03 02 00 00 00 00 2A [00:53:49]Write i2c OK [00:53:49]MH_I2C_Read... [00:53:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:53:49]Read from MH i2c: E2 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 0B 00 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 0B 00 A0 0F 00 66 48 71 BA 0D AC 12 85 90 00 54 [00:53:49]RAPDU: 66 48 71 BA 0D AC 12 85 90 00 [00:53:49]wFMCommunicate OK [00:53:49]SAM_PROTO_SignData done [00:53:49]FM_MakeSignedData done [00:53:49]CreateOFDProtocolMessage [00:53:49]wFMCommunicate request_size=4 [00:53:49]MH_SAM_APDU [00:53:49]CAPDU: 80 11 00 00 [00:53:49]Write to MH i2c: E2 08 00 A1 0F 80 11 00 00 00 00 00 00 2A [00:53:49]Write i2c OK [00:53:49]MH_I2C_Read... [00:53:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:49]Read from MH i2c: E2 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 17 00 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: E2 17 00 A1 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7B [00:53:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:53:49]wFMCommunicate OK [00:53:49]CreateOFDProtocolMessage done [00:53:49]OFDSenderStorePacket 112510 [00:53:49]StoreOFDPacket docnum=112510 [00:53:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EB 7C 07 01 C3 FF 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 0A 00 00 00 F4 03 04 00 9D 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B7 01 00 35 04 06 00 79 C0 88 E2 42 DA 66 48 71 BA 0D AC 12 85 [00:53:49]CheckFolder [00:53:49]dirname=/storage/ofd_packets [00:53:49]CheckFolder done [00:53:49]ProducePacketName [00:53:49]name=ofd_packets/00112510 [00:53:49]NVStorageSaveData ofd_packets/00112510 [00:53:49]File name is /storage/ofd_packets/00112510 [00:53:49]Write 301 bytes [00:53:49]NVStorageSaveData done [00:53:49]OFDSenderStorePacket done [00:53:49]KKMCreateOFDPacket done [00:53:49]NVStorageSaveData kkm_last_timestamp [00:53:49]File name is /storage/kkm_last_timestamp [00:53:49]Write 4 bytes [00:53:49]NVStorageSaveData done [00:53:49]ExternCall_PrintAddStr [00:53:49]wPrintStart [00:53:49]Write to MH i2c: 01 00 00 A2 0F B1 [00:53:49]Write i2c OK [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: 01 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: 01 07 00 [00:53:49]MH_I2C_Read... [00:53:49]Read from MH i2c: 01 07 00 A2 0F 00 00 00 00 00 FF 0F C6 [00:53:49]RasterBufferAndPrint [00:53:49]line Счет N : (1)48789 [00:53:49]line ИНН: 02508201610067 [00:53:49]line Контрольно-Кассовый Чек [00:53:49]line ПРОДАЖА [00:53:49]line ТРК (МРК, ГНК) : 21 [00:53:49]line Товар: 2710124130 [00:53:49]line Аи-92-К-5 [00:53:49]line 7.720 * 64.80 [00:53:49]line = 500.26 [00:53:49]line НДС 12% НСП 1% [00:53:49]line > о реализуемом товаре [00:53:49]line ОКРУГЛЕНИЕ: -0.26 [00:53:49]line ИТОГО: 500.00 [00:53:49]line Внесено: 500.00 [00:53:49]line СДАЧА: 0.00 [00:53:49]line НСП 1% : 4.43 [00:53:49]line НДС 12% : 53.12 [00:53:49]line Наличными: 500.00 [00:53:49]line Безнал.: 0.00 [00:53:49]line Место: АЗС № 47 "Партнер Нефть" [00:53:49]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:53:49]line СНО: Общий режим [00:53:49]line Чек 10 15.04.2024 00:53 [00:53:49]line Смена: 358 ФФД: 1.0 [00:53:49]line ЗНМ: 0300000138 [00:53:49]line РНМ: 0000000000094237 [00:53:49]line Версия ККМ: 001 [00:53:49]line ФМ: 0000000000875019 [00:53:49]line ФД: 112510 [00:53:49]line ФПД: 133867837211354 [00:53:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005349&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112510&fm=133867837211354&tin=02508201610067®Number=0000000000094237&sum=50000 [00:53:49]OFD Sender: Processing packet 112510 [packets to send 71, broken 70] [00:53:49]ProducePacketName [00:53:49]name=ofd_packets/00112510 [00:53:49]OFD Sender: To server: pG, [00:53:49]CommunicateWithHost lk.salyk.kg:30040 [00:53:49]ConnectInit lk.salyk.kg [00:53:49]written 0, free lines is 4095 [00:53:49]Connected sock=10 [00:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 EB 7C 07 01 C3 FF 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 0A 00 00 00 F4 03 04 00 9D 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B7 01 00 35 04 06 00 79 C0 88 E2 42 DA 66 48 71 BA 0D AC 12 85 [00:53:50]Write to MH i2c: 01 00 00 CD 0F DC [00:53:50]Write i2c OK [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: 01 [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: 01 07 00 [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: 01 07 00 CD 0F 00 00 00 00 00 DC 0C CB [00:53:50]RasterBufferAndPrint [00:53:50]line [00:53:50]line [00:53:50]line [00:53:50]line [00:53:50]line [00:53:50]written 0, free lines is 3298 [00:53:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 D8 E0 47 00 55 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7E B7 01 00 F4 03 04 00 26 22 1C 66 B6 04 01 00 00 DA 5F 0E D3 C2 C4 F8 88 [00:53:50]CommunicateWithHost err = 0 [00:53:50]CheckOFDResponse [00:53:50]1017 (14) - 77093643461234 [00:53:50]1041 (16) - 0000000000875019 [00:53:50]1040 (4) - 112510 [00:53:50]1012 (4) - 14.04.2024 18:36 [00:53:50]1206 (1) - 0 [00:53:50]OFD Sender: Remove packet 112510 [00:53:50]ProducePacketName [00:53:50]name=ofd_packets/00112510 [00:53:50]NVStorageDeleteData [00:53:50]MH_Cut [00:53:50]Write to MH i2c: D1 01 00 D4 0F 01 B5 [00:53:50]Write i2c OK [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: D1 [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: D1 01 00 [00:53:50]MH_I2C_Read... [00:53:50]Read from MH i2c: D1 01 00 D4 0F 00 B4 [00:53:50]Write to MH i2c: 01 00 00 D5 0F E4 [00:53:50]Write i2c OK [00:53:50]MH_I2C_Read... [00:53:50]OFD Sender: No OFD packet to send [00:53:50]*** Cut start [00:53:50]*** Partial cut [00:53:50]*** CUTSNS_PIN = 1 [00:53:50]*** CUTSNS_PIN = 0 [00:53:51]*** Brake cut motor [00:53:51]Read from MH i2c: 01 [00:53:51]MH_I2C_Read... [00:53:51]*** Stop cut motor [00:53:51]*** Cut end [00:53:51]Read from MH i2c: 01 07 00 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: 01 07 00 D5 0F 00 00 00 00 00 FF 0F F9 [00:53:51]process_action close_receipt done [00:53:51]requested_data is exist [00:53:51]produce_requested_data [00:53:51]requested_item fm.sn is exist - process it [00:53:51]wFMCommunicate request_size=4 [00:53:51]MH_SAM_APDU [00:53:51]CAPDU: 80 11 00 00 [00:53:51]Write to MH i2c: E2 08 00 D6 0F 80 11 00 00 00 00 00 00 5F [00:53:51]Write i2c OK [00:53:51]MH_I2C_Read... [00:53:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:53:51]Read from MH i2c: E2 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 17 00 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 17 00 D6 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B0 [00:53:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:53:51]wFMCommunicate OK [00:53:51]requested_item fd.num is exist - process it [00:53:51]SAM_PROTO_GetFieldsCounters [00:53:51]wFMCommunicate request_size=4 [00:53:51]MH_SAM_APDU [00:53:51]CAPDU: 80 13 00 00 [00:53:51]Write to MH i2c: E2 08 00 D7 0F 80 13 00 00 00 00 00 00 62 [00:53:51]Write i2c OK [00:53:51]MH_I2C_Read... [00:53:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:53:51]Read from MH i2c: E2 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 62 00 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 62 00 D7 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7E B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [00:53:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7E B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:53:51]wFMCommunicate OK [00:53:51]SAM_PROTO_GetFieldsCounters done [00:53:51]requested_item shift.num is exist - process it [00:53:51]requested_item shift.opened is exist - process it [00:53:51]req_shift_opened [00:53:51]FM_GetShiftState [00:53:51]SAM_PROTO_GetShiftState [00:53:51]wFMCommunicate request_size=4 [00:53:51]MH_SAM_APDU [00:53:51]CAPDU: 80 13 01 00 [00:53:51]Write to MH i2c: E2 08 00 D8 0F 80 13 01 00 00 00 00 00 64 [00:53:51]Write i2c OK [00:53:51]MH_I2C_Read... [00:53:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:53:51]Read from MH i2c: E2 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 0E 00 [00:53:51]MH_I2C_Read... [00:53:51]Read from MH i2c: E2 0E 00 D8 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 19 [00:53:51]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:53:51]wFMCommunicate OK [00:53:51]SAM_PROTO_GetShiftState done [00:53:51]FM_GetShiftState done [00:53:51]req_shift_opened done [00:53:51]requested_item shift.open_date is exist - process it [00:53:51]req_shift_open_date [00:53:51]req_shift_open_date done [00:53:51]produce_requested_data done [00:53:51]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112510,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:53:51]process_action_free close_receipt [00:53:51]json_value_free [00:53:51]json_value_free done [00:53:51]process_json_proto returns [00:53:51]Send response to host [00:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112510,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:53:51]free response buf [00:53:51]execute_script done [00:53:51]execute_script returns [00:53:51]free content buf [00:53:51]Sock 7.Close socket [00:53:51]Sock 7.Thread stoped [00:53:55]OFD Sender: No OFD packet to send [00:54:00]OFD Sender: No OFD packet to send [00:54:05]OFD Sender: No OFD packet to send [00:54:10]OFD Sender: No OFD packet to send [00:54:15]OFD Sender: No OFD packet to send [00:54:20]OFD Sender: No OFD packet to send [00:54:25]OFD Sender: No OFD packet to send [00:54:30]OFD Sender: No OFD packet to send [00:54:35]OFD Sender: No OFD packet to send [00:54:40]OFD Sender: No OFD packet to send [00:54:45]OFD Sender: No OFD packet to send [00:54:50]OFD Sender: No OFD packet to send [00:54:55]OFD Sender: No OFD packet to send [00:55:00]OFD Sender: No OFD packet to send [00:55:02]accept exits with 9 [00:55:02]New connection [00:55:02]New thread 3067317604 created [00:55:02]Thread 3067174244 joined [00:55:02]Waiting for new connection... [00:55:02] Sock 9.Parse request [00:55:02]Sock 9.Check first char [00:55:02]Sock 9.First char is OK [00:55:02]request: POST /json_proto HTTP/1.0 [00:55:02]Method: POST [00:55:02]URL: /json_proto [00:55:02]Method is POST - this is cgi request [00:55:02]url: /json_proto [00:55:02]query_string will be loaded in cgi processing [00:55:02]execute_cgi json_proto POST (null) [00:55:02]execute_cgi path=json_proto method=POST [00:55:02]POST find Content-Length [00:55:02]Host: 172.17.96.197:8080 [00:55:02]Content-Length: 620 [00:55:02]Content-Type: application/json [00:55:02] [00:55:02]POST finish read [00:55:02]Found Content-Length = 620 [00:55:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10466", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:02]execute_script... [00:55:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10466", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:02]POST & json_proto [00:55:02]process_json_proto [00:55:02]json parsed OK: [00:55:02]protocol is kg_v1.0 [00:55:02]action value=close_receipt [00:55:02]process_action close_receipt [00:55:02]cmd_close_receipt [00:55:02]MH_GetDate [00:55:02]Write to MH i2c: F0 00 00 D9 0F D7 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: F0 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: F0 09 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: F0 09 00 D9 0F 00 E8 7A 1C 66 E0 85 7F 64 0C [00:55:02]GetLastDocTimeStamp 1713142429 [00:55:02]current date 1713142504 [00:55:02]FM_GetShiftState [00:55:02]SAM_PROTO_GetShiftState [00:55:02]wFMCommunicate request_size=4 [00:55:02]MH_SAM_APDU [00:55:02]CAPDU: 80 13 01 00 [00:55:02]Write to MH i2c: E2 08 00 DA 0F 80 13 01 00 00 00 00 00 66 [00:55:02]Write i2c OK [00:55:02]MH_I2C_Read... [00:55:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:02]Read from MH i2c: E2 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 0E 00 [00:55:02]MH_I2C_Read... [00:55:02]Read from MH i2c: E2 0E 00 DA 0F 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 1B [00:55:02]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:55:02]wFMCommunicate OK [00:55:02]SAM_PROTO_GetShiftState done [00:55:02]FM_GetShiftState done [00:55:02]opened in 1713141170 [00:55:02]opened+sec_in_day 1713227570 [00:55:02]quantity*price = 13500 [00:55:02]sum+1 = 13501 [00:55:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 11 15.04.2024 00:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112511 ФПД: 88011170457159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005504&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112511&fm=88011170457159&tin=02508201610067®Number=0000000000094237&sum=13500 0 [00:55:04]StoreToDocumentArchive [00:55:04]shift 358 fd 112511 [00:55:04]save to /storage/0358/doc_00112511 [00:55:04]save last doc name /storage/0358/doc_00112511 to /storage/kkm_last_doc_name [00:55:04]save OK [00:55:04]Clear old archive folders... [00:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:55:04]tlvbuf is 01A23F30 [00:55:04]SAM_PROTO_ClearQueue [00:55:04]wFMCommunicate request_size=4 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 09 00 00 [00:55:04]Write to MH i2c: E2 08 00 E7 0F 80 09 00 00 00 00 00 00 68 [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [00:55:04]RAPDU: 90 00 [00:55:04]wFMCommunicate OK [00:55:04]SAM_PROTO_ClearQueue done [00:55:04]KKMCreateOFDPacket [00:55:04]OFDProtocolAddRootSTLVToBuf [00:55:04]FM_MakeSignedData [00:55:04]FM_MakeSignedData [00:55:04]SAM_PROTO_SignData [00:55:04]wFMCommunicate request_size=4 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 0D 01 02 [00:55:04]Write to MH i2c: E2 08 00 E8 0F 80 0D 01 02 00 00 00 00 70 [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [00:55:04]RAPDU: 90 00 [00:55:04]wFMCommunicate OK [00:55:04]wFMCommunicate request_size=255 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 [00:55:04]Write to MH i2c: E2 02 01 E9 0F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 95 [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [00:55:04]RAPDU: 90 00 [00:55:04]wFMCommunicate OK [00:55:04]wFMCommunicate request_size=32 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B7 01 00 35 04 06 00 50 0B B2 8D 26 47 [00:55:04]Write to MH i2c: E2 23 00 EA 0F 80 0D 02 02 1B 00 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B7 01 00 35 04 06 00 50 0B B2 8D 26 47 00 00 0C [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [00:55:04]RAPDU: 90 00 [00:55:04]wFMCommunicate OK [00:55:04]wFMCommunicate request_size=4 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 0D 03 02 [00:55:04]Write to MH i2c: E2 08 00 EB 0F 80 0D 03 02 00 00 00 00 75 [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 0B 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 0B 00 EB 0F 00 CE 4F 09 62 72 15 CB 98 90 00 E8 [00:55:04]RAPDU: CE 4F 09 62 72 15 CB 98 90 00 [00:55:04]wFMCommunicate OK [00:55:04]SAM_PROTO_SignData done [00:55:04]FM_MakeSignedData done [00:55:04]CreateOFDProtocolMessage [00:55:04]wFMCommunicate request_size=4 [00:55:04]MH_SAM_APDU [00:55:04]CAPDU: 80 11 00 00 [00:55:04]Write to MH i2c: E2 08 00 EC 0F 80 11 00 00 00 00 00 00 75 [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:04]Read from MH i2c: E2 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 17 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: E2 17 00 EC 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C6 [00:55:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:55:04]wFMCommunicate OK [00:55:04]CreateOFDProtocolMessage done [00:55:04]OFDSenderStorePacket 112511 [00:55:04]StoreOFDPacket docnum=112511 [00:55:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 7A C8 1D 01 2F 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B7 01 00 35 04 06 00 50 0B B2 8D 26 47 CE 4F 09 62 72 15 CB 98 [00:55:04]CheckFolder [00:55:04]dirname=/storage/ofd_packets [00:55:04]CheckFolder done [00:55:04]ProducePacketName [00:55:04]name=ofd_packets/00112511 [00:55:04]NVStorageSaveData ofd_packets/00112511 [00:55:04]File name is /storage/ofd_packets/00112511 [00:55:04]Write 323 bytes [00:55:04]NVStorageSaveData done [00:55:04]OFDSenderStorePacket done [00:55:04]KKMCreateOFDPacket done [00:55:04]NVStorageSaveData kkm_last_timestamp [00:55:04]File name is /storage/kkm_last_timestamp [00:55:04]Write 4 bytes [00:55:04]NVStorageSaveData done [00:55:04]ExternCall_PrintAddStr [00:55:04]wPrintStart [00:55:04]Write to MH i2c: 01 00 00 ED 0F FC [00:55:04]Write i2c OK [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: 01 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: 01 07 00 [00:55:04]MH_I2C_Read... [00:55:04]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FF 0F 11 [00:55:04]RasterBufferAndPrint [00:55:04]line Счет N : (3)10466 [00:55:04]line ИНН: 02508201610067 [00:55:04]line Контрольно-Кассовый Чек [00:55:04]line ПРОДАЖА [00:55:04]line Товар: 48747059 [00:55:04]line Сигареты Winston Legend Blue [00:55:04]line 1.000 * 135.00 [00:55:04]line = 135.00 [00:55:04]line НДС 12% НСП 1% [00:55:04]line > о реализуемом товаре [00:55:04]line ИТОГО: 135.00 [00:55:04]line НСП 1% : 1.19 [00:55:04]line НДС 12% : 14.34 [00:55:04]line Наличными: 135.00 [00:55:04]line Безнал.: 0.00 [00:55:04]line Место: АЗС № 47 "Партнер Нефть" [00:55:04]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:55:04]line СНО: Общий режим [00:55:04]line Чек 11 15.04.2024 00:55 [00:55:04]line Смена: 358 ФФД: 1.0 [00:55:04]line ЗНМ: 0300000138 [00:55:04]line РНМ: 0000000000094237 [00:55:04]line Версия ККМ: 001 [00:55:04]line ФМ: 0000000000875019 [00:55:04]line ФД: 112511 [00:55:04]line ФПД: 88011170457159 [00:55:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005504&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112511&fm=88011170457159&tin=02508201610067®Number=0000000000094237&sum=13500 [00:55:04]line 0 [00:55:04]OFD Sender: Processing packet 112511 [packets to send 71, broken 70] [00:55:04]ProducePacketName [00:55:04]name=ofd_packets/00112511 [00:55:04]OFD Sender: To server: pG, [00:55:04]CommunicateWithHost lk.salyk.kg:30040 [00:55:04]ConnectInit lk.salyk.kg [00:55:04]written 0, free lines is 4095 [00:55:05]Connected sock=10 [00:55:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 7A C8 1D 01 2F 16 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 7A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B7 01 00 35 04 06 00 50 0B B2 8D 26 47 CE 4F 09 62 72 15 CB 98 [00:55:05]Write to MH i2c: 01 00 00 16 10 26 [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: 01 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: 01 07 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: 01 07 00 16 10 00 00 00 00 00 CD 0C 06 [00:55:05]RasterBufferAndPrint [00:55:05]line [00:55:05]line [00:55:05]line [00:55:05]line [00:55:05]line [00:55:05]written 0, free lines is 3284 [00:55:05]MH_Cut [00:55:05]Write to MH i2c: D1 01 00 1D 10 01 FF [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: D1 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: D1 01 00 [00:55:05]MH_I2C_Read... [00:55:05]Read from MH i2c: D1 01 00 1D 10 00 FE [00:55:05]Write to MH i2c: 01 00 00 1E 10 2E [00:55:05]Write i2c OK [00:55:05]MH_I2C_Read... [00:55:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 19 F6 47 00 E4 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 7F B7 01 00 F4 03 04 00 72 22 1C 66 B6 04 01 00 00 7F 2E 9B 9B E2 9B AB A8 [00:55:05]CommunicateWithHost err = 0 [00:55:05]CheckOFDResponse [00:55:05]1017 (14) - 77093643461234 [00:55:05]1041 (16) - 0000000000875019 [00:55:05]1040 (4) - 112511 [00:55:05]1012 (4) - 14.04.2024 18:37 [00:55:05]1206 (1) - 0 [00:55:05]OFD Sender: Remove packet 112511 [00:55:05]ProducePacketName [00:55:05]name=ofd_packets/00112511 [00:55:05]NVStorageDeleteData [00:55:05]OFD Sender: No OFD packet to send [00:55:06]*** Cut start [00:55:06]*** Partial cut [00:55:06]*** CUTSNS_PIN = 1 [00:55:06]*** CUTSNS_PIN = 0 [00:55:06]*** Brake cut motor [00:55:06]Read from MH i2c: 01 [00:55:06]MH_I2C_Read... [00:55:06]*** Stop cut motor [00:55:06]*** Cut end [00:55:06]Read from MH i2c: 01 07 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: 01 07 00 1E 10 00 00 00 00 00 FF 0F 43 [00:55:06]process_action close_receipt done [00:55:06]requested_data is exist [00:55:06]produce_requested_data [00:55:06]requested_item fm.sn is exist - process it [00:55:06]wFMCommunicate request_size=4 [00:55:06]MH_SAM_APDU [00:55:06]CAPDU: 80 11 00 00 [00:55:06]Write to MH i2c: E2 08 00 1F 10 80 11 00 00 00 00 00 00 A9 [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 [00:55:06]MH_I2C_Read... [00:55:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:06]Read from MH i2c: E2 17 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 17 00 1F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FA [00:55:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:55:06]wFMCommunicate OK [00:55:06]requested_item fd.num is exist - process it [00:55:06]SAM_PROTO_GetFieldsCounters [00:55:06]wFMCommunicate request_size=4 [00:55:06]MH_SAM_APDU [00:55:06]CAPDU: 80 13 00 00 [00:55:06]Write to MH i2c: E2 08 00 20 10 80 13 00 00 00 00 00 00 AC [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:06]Read from MH i2c: E2 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 62 00 [00:55:06]MH_I2C_Read... [00:55:06]Read from MH i2c: E2 62 00 20 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [00:55:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 7F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:06]wFMCommunicate OK [00:55:06]SAM_PROTO_GetFieldsCounters done [00:55:06]requested_item shift.num is exist - process it [00:55:06]requested_item shift.opened is exist - process it [00:55:06]req_shift_opened [00:55:06]FM_GetShiftState [00:55:06]SAM_PROTO_GetShiftState [00:55:06]wFMCommunicate request_size=4 [00:55:06]MH_SAM_APDU [00:55:06]CAPDU: 80 13 01 00 [00:55:06]Write to MH i2c: E2 08 00 21 10 80 13 01 00 00 00 00 00 AE [00:55:06]Write i2c OK [00:55:06]MH_I2C_Read... [00:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:07]Read from MH i2c: E2 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0E 00 [00:55:07]MH_I2C_Read... [00:55:07]Read from MH i2c: E2 0E 00 21 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 63 [00:55:07]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:55:07]wFMCommunicate OK [00:55:07]SAM_PROTO_GetShiftState done [00:55:07]FM_GetShiftState done [00:55:07]req_shift_opened done [00:55:07]requested_item shift.open_date is exist - process it [00:55:07]req_shift_open_date [00:55:07]req_shift_open_date done [00:55:07]produce_requested_data done [00:55:07]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112511,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:55:07]process_action_free close_receipt [00:55:07]json_value_free [00:55:07]json_value_free done [00:55:07]process_json_proto returns [00:55:07]Send response to host [00:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112511,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:55:07]free response buf [00:55:07]execute_script done [00:55:07]execute_script returns [00:55:07]free content buf [00:55:07]Sock 9.Close socket [00:55:07]Sock 9.Thread stoped [00:55:10]OFD Sender: No OFD packet to send [00:55:15]OFD Sender: No OFD packet to send [00:55:20]OFD Sender: No OFD packet to send [00:55:25]OFD Sender: No OFD packet to send [00:55:30]OFD Sender: No OFD packet to send [00:55:35]OFD Sender: No OFD packet to send [00:55:40]OFD Sender: No OFD packet to send [00:55:41]accept exits with 7 [00:55:41]New connection [00:55:41]New thread 3067174244 created [00:55:41]Thread 3067317604 joined [00:55:41]Waiting for new connection... [00:55:41] Sock 7.Parse request [00:55:41]Sock 7.Check first char [00:55:41]Sock 7.First char is OK [00:55:41]request: POST /json_proto HTTP/1.0 [00:55:41]Method: POST [00:55:41]URL: /json_proto [00:55:41]Method is POST - this is cgi request [00:55:41]url: /json_proto [00:55:41]query_string will be loaded in cgi processing [00:55:41]execute_cgi json_proto POST (null) [00:55:41]execute_cgi path=json_proto method=POST [00:55:41]POST find Content-Length [00:55:41]Host: 172.17.96.197:8080 [00:55:41]Content-Length: 819 [00:55:41]Content-Type: application/json [00:55:41] [00:55:41]POST finish read [00:55:41]Found Content-Length = 819 [00:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 11.870, "sum" : 400.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:41]execute_script... [00:55:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 11.870, "sum" : 400.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 400.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:41]POST & json_proto [00:55:41]process_json_proto [00:55:41]json parsed OK: [00:55:41]protocol is kg_v1.0 [00:55:41]action value=close_receipt [00:55:41]process_action close_receipt [00:55:41]cmd_close_receipt [00:55:41]MH_GetDate [00:55:41]Write to MH i2c: F0 00 00 22 10 21 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 09 00 [00:55:41]MH_I2C_Read... [00:55:41]Read from MH i2c: F0 09 00 22 10 00 0F 7B 1C 66 E0 85 7F 64 7E [00:55:41]GetLastDocTimeStamp 1713142504 [00:55:41]current date 1713142543 [00:55:41]FM_GetShiftState [00:55:41]SAM_PROTO_GetShiftState [00:55:41]wFMCommunicate request_size=4 [00:55:41]MH_SAM_APDU [00:55:41]CAPDU: 80 13 01 00 [00:55:41]Write to MH i2c: E2 08 00 23 10 80 13 01 00 00 00 00 00 B0 [00:55:41]Write i2c OK [00:55:41]MH_I2C_Read... [00:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:42]Read from MH i2c: E2 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 0E 00 [00:55:42]MH_I2C_Read... [00:55:42]Read from MH i2c: E2 0E 00 23 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 65 [00:55:42]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:55:42]wFMCommunicate OK [00:55:42]SAM_PROTO_GetShiftState done [00:55:42]FM_GetShiftState done [00:55:42]opened in 1713141170 [00:55:42]opened+sec_in_day 1713227570 [00:55:42]quantity*price = 40001 [00:55:42]sum+1 = 40003 [00:55:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.02 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.02 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 12 15.04.2024 00:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112512 ФПД: 72848729798468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112512&fm=72848729798468&tin=02508201610067®Number=0000000000094237&sum=40002 [00:55:43]StoreToDocumentArchive [00:55:43]shift 358 fd 112512 [00:55:43]save to /storage/0358/doc_00112512 [00:55:43]save last doc name /storage/0358/doc_00112512 to /storage/kkm_last_doc_name [00:55:43]save OK [00:55:43]Clear old archive folders... [00:55:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:55:43]tlvbuf is 01A1D200 [00:55:43]SAM_PROTO_ClearQueue [00:55:43]wFMCommunicate request_size=4 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 09 00 00 [00:55:43]Write to MH i2c: E2 08 00 30 10 80 09 00 00 00 00 00 00 B2 [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 30 10 00 90 00 B4 [00:55:43]RAPDU: 90 00 [00:55:43]wFMCommunicate OK [00:55:43]SAM_PROTO_ClearQueue done [00:55:43]KKMCreateOFDPacket [00:55:43]OFDProtocolAddRootSTLVToBuf [00:55:43]FM_MakeSignedData [00:55:43]FM_MakeSignedData [00:55:43]SAM_PROTO_SignData [00:55:43]wFMCommunicate request_size=4 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 0D 01 02 [00:55:43]Write to MH i2c: E2 08 00 31 10 80 0D 01 02 00 00 00 00 BA [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [00:55:43]RAPDU: 90 00 [00:55:43]wFMCommunicate OK [00:55:43]wFMCommunicate request_size=255 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 7B 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B7 01 00 35 04 06 00 42 41 [00:55:43]Write to MH i2c: E2 02 01 32 10 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 7B 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B7 01 00 35 04 06 00 42 41 00 00 0B [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [00:55:43]RAPDU: 90 00 [00:55:43]wFMCommunicate OK [00:55:43]wFMCommunicate request_size=9 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 0D 02 02 04 6A A9 77 44 [00:55:43]Write to MH i2c: E2 0C 00 33 10 80 0D 02 02 04 00 6A A9 77 44 00 00 93 [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [00:55:43]RAPDU: 90 00 [00:55:43]wFMCommunicate OK [00:55:43]wFMCommunicate request_size=4 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 0D 03 02 [00:55:43]Write to MH i2c: E2 08 00 34 10 80 0D 03 02 00 00 00 00 BF [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 0B 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 0B 00 34 10 00 36 4F AE 07 BF 67 D0 AB 90 00 9B [00:55:43]RAPDU: 36 4F AE 07 BF 67 D0 AB 90 00 [00:55:43]wFMCommunicate OK [00:55:43]SAM_PROTO_SignData done [00:55:43]FM_MakeSignedData done [00:55:43]CreateOFDProtocolMessage [00:55:43]wFMCommunicate request_size=4 [00:55:43]MH_SAM_APDU [00:55:43]CAPDU: 80 11 00 00 [00:55:43]Write to MH i2c: E2 08 00 35 10 80 11 00 00 00 00 00 00 BF [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:43]Read from MH i2c: E2 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 17 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: E2 17 00 35 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 10 [00:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:55:43]wFMCommunicate OK [00:55:43]CreateOFDProtocolMessage done [00:55:43]OFDSenderStorePacket 112512 [00:55:43]StoreOFDPacket docnum=112512 [00:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 73 D5 06 01 96 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 7B 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B7 01 00 35 04 06 00 42 41 6A A9 77 44 36 4F AE 07 BF 67 D0 AB [00:55:43]CheckFolder [00:55:43]dirname=/storage/ofd_packets [00:55:43]CheckFolder done [00:55:43]ProducePacketName [00:55:43]name=ofd_packets/00112512 [00:55:43]NVStorageSaveData ofd_packets/00112512 [00:55:43]File name is /storage/ofd_packets/00112512 [00:55:43]Write 300 bytes [00:55:43]NVStorageSaveData done [00:55:43]OFDSenderStorePacket done [00:55:43]KKMCreateOFDPacket done [00:55:43]NVStorageSaveData kkm_last_timestamp [00:55:43]File name is /storage/kkm_last_timestamp [00:55:43]Write 4 bytes [00:55:43]NVStorageSaveData done [00:55:43]ExternCall_PrintAddStr [00:55:43]wPrintStart [00:55:43]Write to MH i2c: 01 00 00 36 10 46 [00:55:43]Write i2c OK [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 [00:55:43]MH_I2C_Read... [00:55:43]Read from MH i2c: 01 07 00 36 10 00 00 00 00 00 FF 0F 5B [00:55:43]RasterBufferAndPrint [00:55:43]line Счет N : (1)48790 [00:55:43]line ИНН: 02508201610067 [00:55:43]line Контрольно-Кассовый Чек [00:55:43]line ПРОДАЖА [00:55:43]line ТРК (МРК, ГНК) : 72 [00:55:43]line Товар: 2711190000 [00:55:43]line ГАЗ-К-5 [00:55:43]line 11.870 * 33.70 [00:55:43]line = 400.02 [00:55:43]line НДС 12% НСП 1% [00:55:43]line > о реализуемом товаре [00:55:43]line ИТОГО: 400.02 [00:55:43]line НСП 1% : 3.54 [00:55:43]line НДС 12% : 42.48 [00:55:43]line Наличными: 0.00 [00:55:43]line Безнал.: 400.02 [00:55:43]line Место: АЗС № 47 "Партнер Нефть" [00:55:43]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:55:43]line СНО: Общий режим [00:55:43]line Чек 12 15.04.2024 00:55 [00:55:43]line Смена: 358 ФФД: 1.0 [00:55:43]line ЗНМ: 0300000138 [00:55:43]line РНМ: 0000000000094237 [00:55:43]line Версия ККМ: 001 [00:55:43]line Платежная система: Бакай Банк [00:55:43]line ФМ: 0000000000875019 [00:55:43]line ФД: 112512 [00:55:43]line ФПД: 72848729798468 [00:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005543&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112512&fm=72848729798468&tin=02508201610067®Number=0000000000094237&sum=40002 [00:55:43]OFD Sender: Processing packet 112512 [packets to send 71, broken 70] [00:55:43]ProducePacketName [00:55:43]name=ofd_packets/00112512 [00:55:43]OFD Sender: To server: pG, [00:55:43]CommunicateWithHost lk.salyk.kg:30040 [00:55:43]ConnectInit lk.salyk.kg [00:55:43]written 0, free lines is 4095 [00:55:44]Connected sock=10 [00:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 73 D5 06 01 96 19 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 5E 2E 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 42 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 0F 7B 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B7 01 00 35 04 06 00 42 41 6A A9 77 44 36 4F AE 07 BF 67 D0 AB [00:55:44]Write to MH i2c: 01 00 00 60 10 70 [00:55:44]Write i2c OK [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: 01 [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: 01 07 00 [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 E3 0C 66 [00:55:44]RasterBufferAndPrint [00:55:44]line [00:55:44]line [00:55:44]line [00:55:44]line [00:55:44]line [00:55:44]written 0, free lines is 3305 [00:55:44]MH_Cut [00:55:44]Write to MH i2c: D1 01 00 67 10 01 49 [00:55:44]Write i2c OK [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: D1 [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: D1 01 00 [00:55:44]MH_I2C_Read... [00:55:44]Read from MH i2c: D1 01 00 67 10 00 48 [00:55:44]Write to MH i2c: 01 00 00 68 10 78 [00:55:44]Write i2c OK [00:55:44]MH_I2C_Read... [00:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E9 87 47 00 0B 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 80 B7 01 00 F4 03 04 00 99 22 1C 66 B6 04 01 00 00 42 F9 31 98 F4 48 52 A5 [00:55:44]CommunicateWithHost err = 0 [00:55:44]CheckOFDResponse [00:55:44]1017 (14) - 77093643461234 [00:55:44]1041 (16) - 0000000000875019 [00:55:44]1040 (4) - 112512 [00:55:44]1012 (4) - 14.04.2024 18:38 [00:55:44]1206 (1) - 0 [00:55:44]OFD Sender: Remove packet 112512 [00:55:44]ProducePacketName [00:55:44]name=ofd_packets/00112512 [00:55:44]NVStorageDeleteData [00:55:44]OFD Sender: No OFD packet to send [00:55:45]*** Cut start [00:55:45]*** Partial cut [00:55:45]*** CUTSNS_PIN = 1 [00:55:45]*** CUTSNS_PIN = 0 [00:55:45]*** Brake cut motor [00:55:45]Read from MH i2c: 01 [00:55:45]MH_I2C_Read... [00:55:45]*** Stop cut motor [00:55:45]*** Cut end [00:55:45]Read from MH i2c: 01 07 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 FF 0F 8D [00:55:45]process_action close_receipt done [00:55:45]requested_data is exist [00:55:45]produce_requested_data [00:55:45]requested_item fm.sn is exist - process it [00:55:45]wFMCommunicate request_size=4 [00:55:45]MH_SAM_APDU [00:55:45]CAPDU: 80 11 00 00 [00:55:45]Write to MH i2c: E2 08 00 69 10 80 11 00 00 00 00 00 00 F3 [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:45]Read from MH i2c: E2 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 17 00 [00:55:45]MH_I2C_Read... [00:55:45]Read from MH i2c: E2 17 00 69 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 44 [00:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:55:45]wFMCommunicate OK [00:55:45]requested_item fd.num is exist - process it [00:55:45]SAM_PROTO_GetFieldsCounters [00:55:45]wFMCommunicate request_size=4 [00:55:45]MH_SAM_APDU [00:55:45]CAPDU: 80 13 00 00 [00:55:45]Write to MH i2c: E2 08 00 6A 10 80 13 00 00 00 00 00 00 F6 [00:55:45]Write i2c OK [00:55:45]MH_I2C_Read... [00:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:46]Read from MH i2c: E2 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 62 00 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 62 00 6A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 80 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [00:55:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 80 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:55:46]wFMCommunicate OK [00:55:46]SAM_PROTO_GetFieldsCounters done [00:55:46]requested_item shift.num is exist - process it [00:55:46]requested_item shift.opened is exist - process it [00:55:46]req_shift_opened [00:55:46]FM_GetShiftState [00:55:46]SAM_PROTO_GetShiftState [00:55:46]wFMCommunicate request_size=4 [00:55:46]MH_SAM_APDU [00:55:46]CAPDU: 80 13 01 00 [00:55:46]Write to MH i2c: E2 08 00 6B 10 80 13 01 00 00 00 00 00 F8 [00:55:46]Write i2c OK [00:55:46]MH_I2C_Read... [00:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:46]Read from MH i2c: E2 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 0E 00 [00:55:46]MH_I2C_Read... [00:55:46]Read from MH i2c: E2 0E 00 6B 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 AD [00:55:46]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:55:46]wFMCommunicate OK [00:55:46]SAM_PROTO_GetShiftState done [00:55:46]FM_GetShiftState done [00:55:46]req_shift_opened done [00:55:46]requested_item shift.open_date is exist - process it [00:55:46]req_shift_open_date [00:55:46]req_shift_open_date done [00:55:46]produce_requested_data done [00:55:46]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112512,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:55:46]process_action_free close_receipt [00:55:46]json_value_free [00:55:46]json_value_free done [00:55:46]process_json_proto returns [00:55:46]Send response to host [00:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112512,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:55:46]free response buf [00:55:46]execute_script done [00:55:46]execute_script returns [00:55:46]free content buf [00:55:46]Sock 7.Close socket [00:55:46]Sock 7.Thread stoped [00:55:49]OFD Sender: No OFD packet to send [00:55:55]OFD Sender: No OFD packet to send [00:56:00]OFD Sender: No OFD packet to send [00:56:05]OFD Sender: No OFD packet to send [00:56:10]OFD Sender: No OFD packet to send [00:56:15]OFD Sender: No OFD packet to send [00:56:20]OFD Sender: No OFD packet to send [00:56:25]OFD Sender: No OFD packet to send [00:56:30]OFD Sender: No OFD packet to send [00:56:35]OFD Sender: No OFD packet to send [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]OFD Sender: No OFD packet to send [00:57:05]OFD Sender: No OFD packet to send [00:57:10]OFD Sender: No OFD packet to send [00:57:15]OFD Sender: No OFD packet to send [00:57:20]OFD Sender: No OFD packet to send [00:57:25]OFD Sender: No OFD packet to send [00:57:30]OFD Sender: No OFD packet to send [00:57:35]OFD Sender: No OFD packet to send [00:57:40]OFD Sender: No OFD packet to send [00:57:45]OFD Sender: No OFD packet to send [00:57:50]OFD Sender: No OFD packet to send [00:57:55]OFD Sender: No OFD packet to send [00:58:00]OFD Sender: No OFD packet to send [00:58:05]OFD Sender: No OFD packet to send [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:52]accept exits with 9 [00:59:52]New connection [00:59:52]New thread 3067317604 created [00:59:52]Thread 3067174244 joined [00:59:52]Waiting for new connection... [00:59:52] Sock 9.Parse request [00:59:52]Sock 9.Check first char [00:59:52]Sock 9.First char is OK [00:59:52]request: POST /json_proto HTTP/1.0 [00:59:52]Method: POST [00:59:52]URL: /json_proto [00:59:52]Method is POST - this is cgi request [00:59:52]url: /json_proto [00:59:52]query_string will be loaded in cgi processing [00:59:52]execute_cgi json_proto POST (null) [00:59:52]execute_cgi path=json_proto method=POST [00:59:52]POST find Content-Length [00:59:52]Host: 172.17.96.197:8080 [00:59:52]Content-Length: 673 [00:59:52]Content-Type: application/json [00:59:52] [00:59:52]POST finish read [00:59:52]Found Content-Length = 673 [00:59:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48791", "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" ] } } [00:59:52]execute_script... [00:59:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48791", "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" ] } } [00:59:52]POST & json_proto [00:59:52]process_json_proto [00:59:52]json parsed OK: [00:59:52]protocol is kg_v1.0 [00:59:52]action value=close_receipt [00:59:52]process_action close_receipt [00:59:52]cmd_close_receipt [00:59:52]MH_GetDate [00:59:52]Write to MH i2c: F0 00 00 6C 10 6B [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: F0 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: F0 09 00 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: F0 09 00 6C 10 00 0A 7C 1C 66 E0 85 7F 64 C4 [00:59:52]GetLastDocTimeStamp 1713142543 [00:59:52]current date 1713142794 [00:59:52]FM_GetShiftState [00:59:52]SAM_PROTO_GetShiftState [00:59:52]wFMCommunicate request_size=4 [00:59:52]MH_SAM_APDU [00:59:52]CAPDU: 80 13 01 00 [00:59:52]Write to MH i2c: E2 08 00 6D 10 80 13 01 00 00 00 00 00 FA [00:59:52]Write i2c OK [00:59:52]MH_I2C_Read... [00:59:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:52]Read from MH i2c: E2 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 0E 00 [00:59:52]MH_I2C_Read... [00:59:52]Read from MH i2c: E2 0E 00 6D 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 AF [00:59:52]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:59:52]wFMCommunicate OK [00:59:52]SAM_PROTO_GetShiftState done [00:59:52]FM_GetShiftState done [00:59:52]opened in 1713141170 [00:59:52]opened+sec_in_day 1713227570 [00:59:52]quantity*price = 50009 [00:59:52]sum+1 = 50010 [00:59:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 13 15.04.2024 00:59 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112513 ФПД: 81500979078651 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005954&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112513&fm=81500979078651&tin=02508201610067®Number=0000000000094237&sum=50000 [00:59:53]StoreToDocumentArchive [00:59:53]shift 358 fd 112513 [00:59:53]save to /storage/0358/doc_00112513 [00:59:53]save last doc name /storage/0358/doc_00112513 to /storage/kkm_last_doc_name [00:59:53]save OK [00:59:53]Clear old archive folders... [00:59:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:59:53]tlvbuf is 01A08E00 [00:59:53]SAM_PROTO_ClearQueue [00:59:53]wFMCommunicate request_size=4 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 09 00 00 [00:59:53]Write to MH i2c: E2 08 00 7A 10 80 09 00 00 00 00 00 00 FC [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [00:59:53]RAPDU: 90 00 [00:59:53]wFMCommunicate OK [00:59:53]SAM_PROTO_ClearQueue done [00:59:53]KKMCreateOFDPacket [00:59:53]OFDProtocolAddRootSTLVToBuf [00:59:53]FM_MakeSignedData [00:59:53]FM_MakeSignedData [00:59:53]SAM_PROTO_SignData [00:59:53]wFMCommunicate request_size=4 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 0D 01 02 [00:59:53]Write to MH i2c: E2 08 00 7B 10 80 0D 01 02 00 00 00 00 04 [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [00:59:53]RAPDU: 90 00 [00:59:53]wFMCommunicate OK [00:59:53]wFMCommunicate request_size=255 [00:59:53]MH_SAM_APDU [00:59: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 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 0D 00 00 00 F4 03 04 00 0A 7C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B7 01 00 35 04 06 00 4A 1F EC E8 [00:59:53]Write to MH i2c: E2 02 01 7C 10 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 0D 00 00 00 F4 03 04 00 0A 7C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B7 01 00 35 04 06 00 4A 1F EC E8 00 00 9E [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:53]Read from MH i2c: E2 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 [00:59:53]MH_I2C_Read... [00:59:53]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [00:59:53]RAPDU: 90 00 [00:59:53]wFMCommunicate OK [00:59:53]wFMCommunicate request_size=7 [00:59:53]MH_SAM_APDU [00:59:53]CAPDU: 80 0D 02 02 02 25 FB [00:59:53]Write to MH i2c: E2 0A 00 7D 10 80 0D 02 02 02 00 25 FB 00 00 2B [00:59:53]Write i2c OK [00:59:53]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 03 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [00:59:54]RAPDU: 90 00 [00:59:54]wFMCommunicate OK [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 0D 03 02 [00:59:54]Write to MH i2c: E2 08 00 7E 10 80 0D 03 02 00 00 00 00 09 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0B 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 0B 00 7E 10 00 68 49 BC 54 8C 5C E9 AA 90 00 46 [00:59:54]RAPDU: 68 49 BC 54 8C 5C E9 AA 90 00 [00:59:54]wFMCommunicate OK [00:59:54]SAM_PROTO_SignData done [00:59:54]FM_MakeSignedData done [00:59:54]CreateOFDProtocolMessage [00:59:54]wFMCommunicate request_size=4 [00:59:54]MH_SAM_APDU [00:59:54]CAPDU: 80 11 00 00 [00:59:54]Write to MH i2c: E2 08 00 7F 10 80 11 00 00 00 00 00 00 09 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:54]Read from MH i2c: E2 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: E2 17 00 7F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5A [00:59:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:59:54]wFMCommunicate OK [00:59:54]CreateOFDProtocolMessage done [00:59:54]OFDSenderStorePacket 112513 [00:59:54]StoreOFDPacket docnum=112513 [00:59:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 91 24 04 01 5F 4A 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 0D 00 00 00 F4 03 04 00 0A 7C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B7 01 00 35 04 06 00 4A 1F EC E8 25 FB 68 49 BC 54 8C 5C E9 AA [00:59:54]CheckFolder [00:59:54]dirname=/storage/ofd_packets [00:59:54]CheckFolder done [00:59:54]ProducePacketName [00:59:54]name=ofd_packets/00112513 [00:59:54]NVStorageSaveData ofd_packets/00112513 [00:59:54]File name is /storage/ofd_packets/00112513 [00:59:54]Write 298 bytes [00:59:54]NVStorageSaveData done [00:59:54]OFDSenderStorePacket done [00:59:54]KKMCreateOFDPacket done [00:59:54]NVStorageSaveData kkm_last_timestamp [00:59:54]File name is /storage/kkm_last_timestamp [00:59:54]Write 4 bytes [00:59:54]NVStorageSaveData done [00:59:54]ExternCall_PrintAddStr [00:59:54]wPrintStart [00:59:54]Write to MH i2c: 01 00 00 80 10 90 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 07 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [00:59:54]RasterBufferAndPrint [00:59:54]line Счет N : (1)48791 [00:59:54]line ИНН: 02508201610067 [00:59:54]line Контрольно-Кассовый Чек [00:59:54]line ПРОДАЖА [00:59:54]line ТРК (МРК, ГНК) : 51 [00:59:54]line Товар: 2710194210 [00:59:54]line ДТ-К-5 [00:59:54]line 6.860 * 72.90 [00:59:54]line = 500.09 [00:59:54]line НДС 12% НСП 1% [00:59:54]line > о реализуемом товаре [00:59:54]line ОКРУГЛЕНИЕ: -0.09 [00:59:54]line ИТОГО: 500.00 [00:59:54]line Внесено: 500.00 [00:59:54]line СДАЧА: 0.00 [00:59:54]line НСП 1% : 4.43 [00:59:54]line НДС 12% : 53.11 [00:59:54]line Наличными: 500.00 [00:59:54]line Безнал.: 0.00 [00:59:54]line Место: АЗС № 47 "Партнер Нефть" [00:59:54]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [00:59:54]line СНО: Общий режим [00:59:54]line Чек 13 15.04.2024 00:59 [00:59:54]line Смена: 358 ФФД: 1.0 [00:59:54]line ЗНМ: 0300000138 [00:59:54]line РНМ: 0000000000094237 [00:59:54]line Версия ККМ: 001 [00:59:54]line ФМ: 0000000000875019 [00:59:54]line ФД: 112513 [00:59:54]line ФПД: 81500979078651 [00:59:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T005954&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112513&fm=81500979078651&tin=02508201610067®Number=0000000000094237&sum=50000 [00:59:54]OFD Sender: Processing packet 112513 [packets to send 71, broken 70] [00:59:54]ProducePacketName [00:59:54]name=ofd_packets/00112513 [00:59:54]OFD Sender: To server: pG, [00:59:54]CommunicateWithHost lk.salyk.kg:30040 [00:59:54]ConnectInit lk.salyk.kg [00:59:54]written 0, free lines is 4095 [00:59:54]Connected sock=10 [00:59:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0C 01 00 00 91 24 04 01 5F 4A 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 0D 00 00 00 F4 03 04 00 0A 7C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B7 01 00 35 04 06 00 4A 1F EC E8 25 FB 68 49 BC 54 8C 5C E9 AA [00:59:54]Write to MH i2c: 01 00 00 AB 10 BB [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 07 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 D8 0C A6 [00:59:54]RasterBufferAndPrint [00:59:54]line [00:59:54]line [00:59:54]line [00:59:54]line [00:59:54]line [00:59:54]written 0, free lines is 3295 [00:59:54]MH_Cut [00:59:54]Write to MH i2c: D1 01 00 B2 10 01 94 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: D1 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: D1 01 00 [00:59:54]MH_I2C_Read... [00:59:54]Read from MH i2c: D1 01 00 B2 10 00 93 [00:59:54]Write to MH i2c: 01 00 00 B3 10 C3 [00:59:54]Write i2c OK [00:59:54]MH_I2C_Read... [00:59:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F8 D8 47 00 E7 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 81 B7 01 00 F4 03 04 00 93 23 1C 66 B6 04 01 00 00 CB BC 49 C9 27 A4 37 E7 [00:59:54]CommunicateWithHost err = 0 [00:59:54]CheckOFDResponse [00:59:54]1017 (14) - 77093643461234 [00:59:54]1041 (16) - 0000000000875019 [00:59:54]1040 (4) - 112513 [00:59:54]1012 (4) - 14.04.2024 18:42 [00:59:54]1206 (1) - 0 [00:59:54]OFD Sender: Remove packet 112513 [00:59:54]ProducePacketName [00:59:54]name=ofd_packets/00112513 [00:59:54]NVStorageDeleteData [00:59:55]OFD Sender: No OFD packet to send [00:59:55]*** Cut start [00:59:55]*** Partial cut [00:59:55]*** CUTSNS_PIN = 1 [00:59:55]*** CUTSNS_PIN = 0 [00:59:55]*** Brake cut motor [00:59:56]Read from MH i2c: 01 [00:59:56]MH_I2C_Read... [00:59:56]*** Stop cut motor [00:59:56]*** Cut end [00:59:56]Read from MH i2c: 01 07 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: 01 07 00 B3 10 00 00 00 00 00 FF 0F D8 [00:59:56]process_action close_receipt done [00:59:56]requested_data is exist [00:59:56]produce_requested_data [00:59:56]requested_item fm.sn is exist - process it [00:59:56]wFMCommunicate request_size=4 [00:59:56]MH_SAM_APDU [00:59:56]CAPDU: 80 11 00 00 [00:59:56]Write to MH i2c: E2 08 00 B4 10 80 11 00 00 00 00 00 00 3E [00:59:56]Write i2c OK [00:59:56]MH_I2C_Read... [00:59:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:59:56]Read from MH i2c: E2 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 17 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 17 00 B4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 8F [00:59:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [00:59:56]wFMCommunicate OK [00:59:56]requested_item fd.num is exist - process it [00:59:56]SAM_PROTO_GetFieldsCounters [00:59:56]wFMCommunicate request_size=4 [00:59:56]MH_SAM_APDU [00:59:56]CAPDU: 80 13 00 00 [00:59:56]Write to MH i2c: E2 08 00 B5 10 80 13 00 00 00 00 00 00 41 [00:59:56]Write i2c OK [00:59:56]MH_I2C_Read... [00:59:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:59:56]Read from MH i2c: E2 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 62 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 62 00 B5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 81 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [00:59:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 81 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:59:56]wFMCommunicate OK [00:59:56]SAM_PROTO_GetFieldsCounters done [00:59:56]requested_item shift.num is exist - process it [00:59:56]requested_item shift.opened is exist - process it [00:59:56]req_shift_opened [00:59:56]FM_GetShiftState [00:59:56]SAM_PROTO_GetShiftState [00:59:56]wFMCommunicate request_size=4 [00:59:56]MH_SAM_APDU [00:59:56]CAPDU: 80 13 01 00 [00:59:56]Write to MH i2c: E2 08 00 B6 10 80 13 01 00 00 00 00 00 43 [00:59:56]Write i2c OK [00:59:56]MH_I2C_Read... [00:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:59:56]Read from MH i2c: E2 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 0E 00 [00:59:56]MH_I2C_Read... [00:59:56]Read from MH i2c: E2 0E 00 B6 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 F8 [00:59:56]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [00:59:56]wFMCommunicate OK [00:59:56]SAM_PROTO_GetShiftState done [00:59:56]FM_GetShiftState done [00:59:56]req_shift_opened done [00:59:56]requested_item shift.open_date is exist - process it [00:59:56]req_shift_open_date [00:59:56]req_shift_open_date done [00:59:56]produce_requested_data done [00:59:56]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112513,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [00:59:56]process_action_free close_receipt [00:59:56]json_value_free [00:59:56]json_value_free done [00:59:56]process_json_proto returns [00:59:56]Send response to host [00:59:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112513,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [00:59:56]free response buf [00:59:56]execute_script done [00:59:56]execute_script returns [00:59:56]free content buf [00:59:56]Sock 9.Close socket [00:59:56]Sock 9.Thread stoped [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:20]OFD Sender: No OFD packet to send [01:02:25]OFD Sender: No OFD packet to send [01:02:30]OFD Sender: No OFD packet to send [01:02:35]OFD Sender: No OFD packet to send [01:02:40]OFD Sender: No OFD packet to send [01:02:45]OFD Sender: No OFD packet to send [01:02:50]OFD Sender: No OFD packet to send [01:02:55]OFD Sender: No OFD packet to send [01:03:00]OFD Sender: No OFD packet to send [01:03:05]OFD Sender: No OFD packet to send [01:03:10]OFD Sender: No OFD packet to send [01:03:15]OFD Sender: No OFD packet to send [01:03:20]OFD Sender: No OFD packet to send [01:03:25]OFD Sender: No OFD packet to send [01:03:30]OFD Sender: No OFD packet to send [01:03:35]OFD Sender: No OFD packet to send [01:03:40]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:15:01]OFD Sender: No OFD packet to send [01:15:06]OFD Sender: No OFD packet to send [01:15:11]OFD Sender: No OFD packet to send [01:15:16]OFD Sender: No OFD packet to send [01:15:21]OFD Sender: No OFD packet to send [01:15:26]OFD Sender: No OFD packet to send [01:15:31]OFD Sender: No OFD packet to send [01:15:36]OFD Sender: No OFD packet to send [01:15:41]OFD Sender: No OFD packet to send [01:15:46]OFD Sender: No OFD packet to send [01:15:51]OFD Sender: No OFD packet to send [01:15:56]OFD Sender: No OFD packet to send [01:16:01]OFD Sender: No OFD packet to send [01:16:06]OFD Sender: No OFD packet to send [01:16:11]OFD Sender: No OFD packet to send [01:16:16]OFD Sender: No OFD packet to send [01:16:21]OFD Sender: No OFD packet to send [01:16:26]OFD Sender: No OFD packet to send [01:16:31]OFD Sender: No OFD packet to send [01:16:36]OFD Sender: No OFD packet to send [01:16:41]OFD Sender: No OFD packet to send [01:16:46]OFD Sender: No OFD packet to send [01:16:51]OFD Sender: No OFD packet to send [01:16:56]OFD Sender: No OFD packet to send [01:17:01]OFD Sender: No OFD packet to send [01:17:06]OFD Sender: No OFD packet to send [01:17:11]OFD Sender: No OFD packet to send [01:17:16]OFD Sender: No OFD packet to send [01:17:21]OFD Sender: No OFD packet to send [01:17:26]OFD Sender: No OFD packet to send [01:17:31]OFD Sender: No OFD packet to send [01:17:36]OFD Sender: No OFD packet to send [01:17:41]OFD Sender: No OFD packet to send [01:17:46]OFD Sender: No OFD packet to send [01:17:51]OFD Sender: No OFD packet to send [01:17:56]OFD Sender: No OFD packet to send [01:18:01]OFD Sender: No OFD packet to send [01:18:06]OFD Sender: No OFD packet to send [01:18:11]OFD Sender: No OFD packet to send [01:18:16]OFD Sender: No OFD packet to send [01:18:21]OFD Sender: No OFD packet to send [01:18:26]OFD Sender: No OFD packet to send [01:18:31]OFD Sender: No OFD packet to send [01:18:36]OFD Sender: No OFD packet to send [01:18:41]OFD Sender: No OFD packet to send [01:18:46]OFD Sender: No OFD packet to send [01:18:51]OFD Sender: No OFD packet to send [01:18:56]OFD Sender: No OFD packet to send [01:19:01]OFD Sender: No OFD packet to send [01:19:06]OFD Sender: No OFD packet to send [01:19:11]OFD Sender: No OFD packet to send [01:19:16]OFD Sender: No OFD packet to send [01:19:21]OFD Sender: No OFD packet to send [01:19:26]OFD Sender: No OFD packet to send [01:19:31]OFD Sender: No OFD packet to send [01:19:36]OFD Sender: No OFD packet to send [01:19:41]OFD Sender: No OFD packet to send [01:19:46]OFD Sender: No OFD packet to send [01:19:51]OFD Sender: No OFD packet to send [01:19:56]OFD Sender: No OFD packet to send [01:20:01]OFD Sender: No OFD packet to send [01:20:06]OFD Sender: No OFD packet to send [01:20:11]OFD Sender: No OFD packet to send [01:20:16]OFD Sender: No OFD packet to send [01:20:21]OFD Sender: No OFD packet to send [01:20:26]OFD Sender: No OFD packet to send [01:20:31]OFD Sender: No OFD packet to send [01:20:36]OFD Sender: No OFD packet to send [01:20:41]OFD Sender: No OFD packet to send [01:20:46]OFD Sender: No OFD packet to send [01:20:51]OFD Sender: No OFD packet to send [01:20:56]OFD Sender: No OFD packet to send [01:21:01]OFD Sender: No OFD packet to send [01:21:06]OFD Sender: No OFD packet to send [01:21:11]OFD Sender: No OFD packet to send [01:21:16]OFD Sender: No OFD packet to send [01:21:21]OFD Sender: No OFD packet to send [01:21:26]OFD Sender: No OFD packet to send [01:21:31]OFD Sender: No OFD packet to send [01:21:36]OFD Sender: No OFD packet to send [01:21:41]OFD Sender: No OFD packet to send [01:21:46]OFD Sender: No OFD packet to send [01:21:51]OFD Sender: No OFD packet to send [01:21:56]OFD Sender: No OFD packet to send [01:22:01]OFD Sender: No OFD packet to send [01:22:06]OFD Sender: No OFD packet to send [01:22:11]OFD Sender: No OFD packet to send [01:22:16]OFD Sender: No OFD packet to send [01:22:21]OFD Sender: No OFD packet to send [01:22:26]OFD Sender: No OFD packet to send [01:22:31]OFD Sender: No OFD packet to send [01:22:36]OFD Sender: No OFD packet to send [01:22:41]OFD Sender: No OFD packet to send [01:22:46]OFD Sender: No OFD packet to send [01:22:51]OFD Sender: No OFD packet to send [01:22:56]OFD Sender: No OFD packet to send [01:23:01]OFD Sender: No OFD packet to send [01:23:06]OFD Sender: No OFD packet to send [01:23:11]OFD Sender: No OFD packet to send [01:23:16]OFD Sender: No OFD packet to send [01:23:21]OFD Sender: No OFD packet to send [01:23:26]OFD Sender: No OFD packet to send [01:23:31]OFD Sender: No OFD packet to send [01:23:36]OFD Sender: No OFD packet to send [01:23:41]OFD Sender: No OFD packet to send [01:23:46]OFD Sender: No OFD packet to send [01:23:51]OFD Sender: No OFD packet to send [01:23:56]OFD Sender: No OFD packet to send [01:24:01]OFD Sender: No OFD packet to send [01:24:06]OFD Sender: No OFD packet to send [01:24:11]OFD Sender: No OFD packet to send [01:24:16]OFD Sender: No OFD packet to send [01:24:21]OFD Sender: No OFD packet to send [01:24:26]OFD Sender: No OFD packet to send [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]OFD Sender: No OFD packet to send [01:25:36]OFD Sender: No OFD packet to send [01:25:41]OFD Sender: No OFD packet to send [01:25:46]OFD Sender: No OFD packet to send [01:25:51]OFD Sender: No OFD packet to send [01:25:56]OFD Sender: No OFD packet to send [01:26:01]OFD Sender: No OFD packet to send [01:26:06]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:22]OFD Sender: No OFD packet to send [01:28:27]OFD Sender: No OFD packet to send [01:28:32]OFD Sender: No OFD packet to send [01:28:37]OFD Sender: No OFD packet to send [01:28:42]OFD Sender: No OFD packet to send [01:28:47]OFD Sender: No OFD packet to send [01:28:52]OFD Sender: No OFD packet to send [01:28:57]OFD Sender: No OFD packet to send [01:29:02]OFD Sender: No OFD packet to send [01:29:07]OFD Sender: No OFD packet to send [01:29:12]OFD Sender: No OFD packet to send [01:29:17]OFD Sender: No OFD packet to send [01:29:22]OFD Sender: No OFD packet to send [01:29:27]OFD Sender: No OFD packet to send [01:29:32]OFD Sender: No OFD packet to send [01:29:37]OFD Sender: No OFD packet to send [01:29:42]OFD Sender: No OFD packet to send [01:29:47]OFD Sender: No OFD packet to send [01:29:52]OFD Sender: No OFD packet to send [01:29:57]OFD Sender: No OFD packet to send [01:30:02]OFD Sender: No OFD packet to send [01:30:07]OFD Sender: No OFD packet to send [01:30:12]OFD Sender: No OFD packet to send [01:30:17]OFD Sender: No OFD packet to send [01:30:22]OFD Sender: No OFD packet to send [01:30:27]OFD Sender: No OFD packet to send [01:30:32]OFD Sender: No OFD packet to send [01:30:37]OFD Sender: No OFD packet to send [01:30:42]OFD Sender: No OFD packet to send [01:30:47]OFD Sender: No OFD packet to send [01:30:52]OFD Sender: No OFD packet to send [01:30:57]OFD Sender: No OFD packet to send [01:31:02]OFD Sender: No OFD packet to send [01:31:07]OFD Sender: No OFD packet to send [01:31:12]OFD Sender: No OFD packet to send [01:31:17]OFD Sender: No OFD packet to send [01:31:22]OFD Sender: No OFD packet to send [01:31:27]OFD Sender: No OFD packet to send [01:31:32]OFD Sender: No OFD packet to send [01:31:37]OFD Sender: No OFD packet to send [01:31:42]OFD Sender: No OFD packet to send [01:31:47]OFD Sender: No OFD packet to send [01:31:52]OFD Sender: No OFD packet to send [01:31:57]OFD Sender: No OFD packet to send [01:32:02]OFD Sender: No OFD packet to send [01:32:07]OFD Sender: No OFD packet to send [01:32:12]OFD Sender: No OFD packet to send [01:32:17]OFD Sender: No OFD packet to send [01:32:22]OFD Sender: No OFD packet to send [01:32:27]OFD Sender: No OFD packet to send [01:32:32]OFD Sender: No OFD packet to send [01:32:37]OFD Sender: No OFD packet to send [01:32:42]OFD Sender: No OFD packet to send [01:32:47]OFD Sender: No OFD packet to send [01:32:52]OFD Sender: No OFD packet to send [01:32:57]OFD Sender: No OFD packet to send [01:33:02]OFD Sender: No OFD packet to send [01:33:07]OFD Sender: No OFD packet to send [01:33:12]OFD Sender: No OFD packet to send [01:33:17]OFD Sender: No OFD packet to send [01:33:22]OFD Sender: No OFD packet to send [01:33:27]OFD Sender: No OFD packet to send [01:33:32]OFD Sender: No OFD packet to send [01:33:37]OFD Sender: No OFD packet to send [01:33:42]OFD Sender: No OFD packet to send [01:33:47]OFD Sender: No OFD packet to send [01:33:52]OFD Sender: No OFD packet to send [01:33:57]OFD Sender: No OFD packet to send [01:34:02]OFD Sender: No OFD packet to send [01:34:07]OFD Sender: No OFD packet to send [01:34:12]OFD Sender: No OFD packet to send [01:34:17]OFD Sender: No OFD packet to send [01:34:22]OFD Sender: No OFD packet to send [01:34:27]OFD Sender: No OFD packet to send [01:34:32]OFD Sender: No OFD packet to send [01:34:37]OFD Sender: No OFD packet to send [01:34:42]OFD Sender: No OFD packet to send [01:34:47]OFD Sender: No OFD packet to send [01:34:52]OFD Sender: No OFD packet to send [01:34:57]OFD Sender: No OFD packet to send [01:35:02]OFD Sender: No OFD packet to send [01:35:07]OFD Sender: No OFD packet to send [01:35:12]OFD Sender: No OFD packet to send [01:35:17]OFD Sender: No OFD packet to send [01:35:22]OFD Sender: No OFD packet to send [01:35:27]OFD Sender: No OFD packet to send [01:35:32]OFD Sender: No OFD packet to send [01:35:37]OFD Sender: No OFD packet to send [01:35:42]OFD Sender: No OFD packet to send [01:35:47]OFD Sender: No OFD packet to send [01:35:52]OFD Sender: No OFD packet to send [01:35:57]OFD Sender: No OFD packet to send [01:36:02]OFD Sender: No OFD packet to send [01:36:07]OFD Sender: No OFD packet to send [01:36:12]OFD Sender: No OFD packet to send [01:36:17]OFD Sender: No OFD packet to send [01:36:22]OFD Sender: No OFD packet to send [01:36:27]OFD Sender: No OFD packet to send [01:36:32]OFD Sender: No OFD packet to send [01:36:37]OFD Sender: No OFD packet to send [01:36:42]OFD Sender: No OFD packet to send [01:36:47]OFD Sender: No OFD packet to send [01:36:52]OFD Sender: No OFD packet to send [01:36:57]OFD Sender: No OFD packet to send [01:37:02]OFD Sender: No OFD packet to send [01:37:07]OFD Sender: No OFD packet to send [01:37:12]OFD Sender: No OFD packet to send [01:37:17]OFD Sender: No OFD packet to send [01:37:22]OFD Sender: No OFD packet to send [01:37:27]OFD Sender: No OFD packet to send [01:37:32]OFD Sender: No OFD packet to send [01:37:37]OFD Sender: No OFD packet to send [01:37:42]OFD Sender: No OFD packet to send [01:37:47]OFD Sender: No OFD packet to send [01:37:52]OFD Sender: No OFD packet to send [01:37:57]OFD Sender: No OFD packet to send [01:38:02]OFD Sender: No OFD packet to send [01:38:07]OFD Sender: No OFD packet to send [01:38:12]OFD Sender: No OFD packet to send [01:38:17]OFD Sender: No OFD packet to send [01:38:22]OFD Sender: No OFD packet to send [01:38:27]OFD Sender: No OFD packet to send [01:38:32]OFD Sender: No OFD packet to send [01:38:37]OFD Sender: No OFD packet to send [01:38:42]OFD Sender: No OFD packet to send [01:38:47]OFD Sender: No OFD packet to send [01:38:52]OFD Sender: No OFD packet to send [01:38:57]OFD Sender: No OFD packet to send [01:39:02]OFD Sender: No OFD packet to send [01:39:07]OFD Sender: No OFD packet to send [01:39:12]OFD Sender: No OFD packet to send [01:39:17]OFD Sender: No OFD packet to send [01:39:22]OFD Sender: No OFD packet to send [01:39:27]OFD Sender: No OFD packet to send [01:39:32]OFD Sender: No OFD packet to send [01:39:37]OFD Sender: No OFD packet to send [01:39:42]OFD Sender: No OFD packet to send [01:39:47]OFD Sender: No OFD packet to send [01:39:52]OFD Sender: No OFD packet to send [01:39:55]accept exits with 7 [01:39:55]New connection [01:39:55]New thread 3067174244 created [01:39:55]Thread 3067317604 joined [01:39:55]Waiting for new connection... [01:39:55] Sock 7.Parse request [01:39:55]Sock 7.Check first char [01:39:55]Sock 7.First char is OK [01:39:55]request: POST /json_proto HTTP/1.0 [01:39:55]Method: POST [01:39:55]URL: /json_proto [01:39:55]Method is POST - this is cgi request [01:39:55]url: /json_proto [01:39:55]query_string will be loaded in cgi processing [01:39:55]execute_cgi json_proto POST (null) [01:39:55]execute_cgi path=json_proto method=POST [01:39:55]POST find Content-Length [01:39:55]Host: 172.17.96.197:8080 [01:39:55]Content-Length: 807 [01:39:55]Content-Type: application/json [01:39:55] [01:39:55]POST finish read [01:39:55]Found Content-Length = 807 [01:39:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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: \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" ] } } [01:39:55]execute_script... [01:39: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)48792", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "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: \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" ] } } [01:39:55]POST & json_proto [01:39:55]process_json_proto [01:39:55]json parsed OK: [01:39:55]protocol is kg_v1.0 [01:39:55]action value=close_receipt [01:39:55]process_action close_receipt [01:39:55]cmd_close_receipt [01:39:55]MH_GetDate [01:39:55]Write to MH i2c: F0 00 00 B7 10 B6 [01:39:55]Write i2c OK [01:39:55]MH_I2C_Read... [01:39:55]Read from MH i2c: F0 [01:39:55]MH_I2C_Read... [01:39:55]Read from MH i2c: F0 09 00 [01:39:55]MH_I2C_Read... [01:39:55]Read from MH i2c: F0 09 00 B7 10 00 6C 85 1C 66 E0 85 7F 64 7A [01:39:55]GetLastDocTimeStamp 1713142794 [01:39:55]current date 1713145196 [01:39:55]FM_GetShiftState [01:39:55]SAM_PROTO_GetShiftState [01:39:55]wFMCommunicate request_size=4 [01:39:55]MH_SAM_APDU [01:39:55]CAPDU: 80 13 01 00 [01:39:55]Write to MH i2c: E2 08 00 B8 10 80 13 01 00 00 00 00 00 45 [01:39:55]Write i2c OK [01:39:55]MH_I2C_Read... [01:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:55]Read from MH i2c: E2 [01:39:55]MH_I2C_Read... [01:39:55]Read from MH i2c: E2 0E 00 [01:39:55]MH_I2C_Read... [01:39:55]Read from MH i2c: E2 0E 00 B8 10 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 FA [01:39:55]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:39:55]wFMCommunicate OK [01:39:55]SAM_PROTO_GetShiftState done [01:39:55]FM_GetShiftState done [01:39:55]opened in 1713141170 [01:39:55]opened+sec_in_day 1713227570 [01:39:55]quantity*price = 100018 [01:39:55]sum+1 = 100020 [01:39:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 14 15.04.2024 01:39 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112514 ФПД: 8400808036174 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T013956&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112514&fm=8400808036174&tin=02508201610067®Number=0000000000094237&sum=100019 [01:39:56]StoreToDocumentArchive [01:39:56]shift 358 fd 112514 [01:39:56]save to /storage/0358/doc_00112514 [01:39:56]save last doc name /storage/0358/doc_00112514 to /storage/kkm_last_doc_name [01:39:56]save OK [01:39:56]Clear old archive folders... [01:39:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:39:56]tlvbuf is 019EE8C0 [01:39:56]SAM_PROTO_ClearQueue [01:39:56]wFMCommunicate request_size=4 [01:39:56]MH_SAM_APDU [01:39:56]CAPDU: 80 09 00 00 [01:39:56]Write to MH i2c: E2 08 00 C5 10 80 09 00 00 00 00 00 00 47 [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [01:39:56]RAPDU: 90 00 [01:39:56]wFMCommunicate OK [01:39:56]SAM_PROTO_ClearQueue done [01:39:56]KKMCreateOFDPacket [01:39:56]OFDProtocolAddRootSTLVToBuf [01:39:56]FM_MakeSignedData [01:39:56]FM_MakeSignedData [01:39:56]SAM_PROTO_SignData [01:39:56]wFMCommunicate request_size=4 [01:39:56]MH_SAM_APDU [01:39:56]CAPDU: 80 0D 01 02 [01:39:56]Write to MH i2c: E2 08 00 C6 10 80 0D 01 02 00 00 00 00 4F [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [01:39:56]RAPDU: 90 00 [01:39:56]wFMCommunicate OK [01:39:56]wFMCommunicate request_size=255 [01:39:56]MH_SAM_APDU [01:39: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 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 0E 00 00 00 F4 03 04 00 6C 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B7 01 00 35 04 06 00 07 [01:39:56]Write to MH i2c: E2 02 01 C7 10 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 0E 00 00 00 F4 03 04 00 6C 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B7 01 00 35 04 06 00 07 00 00 B3 [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [01:39:56]RAPDU: 90 00 [01:39:56]wFMCommunicate OK [01:39:56]wFMCommunicate request_size=10 [01:39:56]MH_SAM_APDU [01:39:56]CAPDU: 80 0D 02 02 05 A3 F7 2D C7 4E [01:39:56]Write to MH i2c: E2 0D 00 C8 10 80 0D 02 02 05 00 A3 F7 2D C7 4E 00 00 38 [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [01:39:56]RAPDU: 90 00 [01:39:56]wFMCommunicate OK [01:39:56]wFMCommunicate request_size=4 [01:39:56]MH_SAM_APDU [01:39:56]CAPDU: 80 0D 03 02 [01:39:56]Write to MH i2c: E2 08 00 C9 10 80 0D 03 02 00 00 00 00 54 [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 0B 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 0B 00 C9 10 00 85 A8 F9 5D 3D 7E 85 41 90 00 59 [01:39:56]RAPDU: 85 A8 F9 5D 3D 7E 85 41 90 00 [01:39:56]wFMCommunicate OK [01:39:56]SAM_PROTO_SignData done [01:39:56]FM_MakeSignedData done [01:39:56]CreateOFDProtocolMessage [01:39:56]wFMCommunicate request_size=4 [01:39:56]MH_SAM_APDU [01:39:56]CAPDU: 80 11 00 00 [01:39:56]Write to MH i2c: E2 08 00 CA 10 80 11 00 00 00 00 00 00 54 [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:56]Read from MH i2c: E2 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 17 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: E2 17 00 CA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 A5 [01:39:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:39:56]wFMCommunicate OK [01:39:56]CreateOFDProtocolMessage done [01:39:56]OFDSenderStorePacket 112514 [01:39:56]StoreOFDPacket docnum=112514 [01:39:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FB 30 07 01 C6 80 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 0E 00 00 00 F4 03 04 00 6C 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B7 01 00 35 04 06 00 07 A3 F7 2D C7 4E 85 A8 F9 5D 3D 7E 85 41 [01:39:56]CheckFolder [01:39:56]dirname=/storage/ofd_packets [01:39:56]CheckFolder done [01:39:56]ProducePacketName [01:39:56]name=ofd_packets/00112514 [01:39:56]NVStorageSaveData ofd_packets/00112514 [01:39:56]File name is /storage/ofd_packets/00112514 [01:39:56]Write 301 bytes [01:39:56]NVStorageSaveData done [01:39:56]OFDSenderStorePacket done [01:39:56]KKMCreateOFDPacket done [01:39:56]NVStorageSaveData kkm_last_timestamp [01:39:56]File name is /storage/kkm_last_timestamp [01:39:56]Write 4 bytes [01:39:56]NVStorageSaveData done [01:39:56]ExternCall_PrintAddStr [01:39:56]wPrintStart [01:39:56]Write to MH i2c: 01 00 00 CB 10 DB [01:39:56]Write i2c OK [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: 01 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: 01 07 00 [01:39:56]MH_I2C_Read... [01:39:56]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 FF 0F F0 [01:39:56]RasterBufferAndPrint [01:39:56]line Счет N : (1)48792 [01:39:56]line ИНН: 02508201610067 [01:39:56]line Контрольно-Кассовый Чек [01:39:56]line ПРОДАЖА [01:39:56]line ТРК (МРК, ГНК) : 22 [01:39:56]line Товар: 2710124500 [01:39:56]line Аи-95-К-5 [01:39:56]line 13.720 * 72.90 [01:39:56]line = 1000.19 [01:39:56]line НДС 12% НСП 1% [01:39:56]line > о реализуемом товаре [01:39:56]line ИТОГО: 1000.19 [01:39:56]line НСП 1% : 8.85 [01:39:56]line НДС 12% : 106.21 [01:39:56]line Наличными: 0.00 [01:39:56]line Безнал.: 1000.19 [01:39:56]line Место: АЗС № 47 "Партнер Нефть" [01:39:56]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [01:39:56]line СНО: Общий режим [01:39:56]line Чек 14 15.04.2024 01:39 [01:39:56]line Смена: 358 ФФД: 1.0 [01:39:56]line ЗНМ: 0300000138 [01:39:56]line РНМ: 0000000000094237 [01:39:56]line Версия ККМ: 001 [01:39:56]line Платежная система: О! деньги [01:39:56]line ФМ: 0000000000875019 [01:39:56]line ФД: 112514 [01:39:56]line ФПД: 8400808036174 [01:39:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T013956&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112514&fm=8400808036174&tin=02508201610067®Number=0000000000094237&sum=100019 [01:39:57]OFD Sender: Processing packet 112514 [packets to send 71, broken 70] [01:39:57]ProducePacketName [01:39:57]name=ofd_packets/00112514 [01:39:57]OFD Sender: To server: pG, [01:39:57]CommunicateWithHost lk.salyk.kg:30040 [01:39:57]ConnectInit lk.salyk.kg [01:39:57]written 0, free lines is 4095 [01:39:57]Connected sock=10 [01:39:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 FB 30 07 01 C6 80 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 0E 00 00 00 F4 03 04 00 6C 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 82 B7 01 00 35 04 06 00 07 A3 F7 2D C7 4E 85 A8 F9 5D 3D 7E 85 41 [01:39:57]Write to MH i2c: 01 00 00 F5 10 05 [01:39:57]Write i2c OK [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: 01 [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: 01 07 00 [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: 01 07 00 F5 10 00 00 00 00 00 E1 0C F9 [01:39:57]RasterBufferAndPrint [01:39:57]line [01:39:57]line [01:39:57]line [01:39:57]line [01:39:57]line [01:39:57]written 0, free lines is 3303 [01:39:57]MH_Cut [01:39:57]Write to MH i2c: D1 01 00 FC 10 01 DE [01:39:57]Write i2c OK [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: D1 [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: D1 01 00 [01:39:57]MH_I2C_Read... [01:39:57]Read from MH i2c: D1 01 00 FC 10 00 DD [01:39:57]Write to MH i2c: 01 00 00 FD 10 0D [01:39:57]Write i2c OK [01:39:57]MH_I2C_Read... [01:39:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C3 0D 47 00 EE 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 38 37 35 30 31 39 10 04 04 00 82 B7 01 00 F4 03 04 00 F6 2C 1C 66 B6 04 01 00 00 CB B9 4E A6 65 31 1B F0 [01:39:57]CommunicateWithHost err = 0 [01:39:57]CheckOFDResponse [01:39:57]1017 (14) - 77093643461234 [01:39:57]1041 (16) - 0000000000875019 [01:39:57]1040 (4) - 112514 [01:39:57]1012 (4) - 14.04.2024 19:22 [01:39:57]1206 (1) - 0 [01:39:57]OFD Sender: Remove packet 112514 [01:39:57]ProducePacketName [01:39:57]name=ofd_packets/00112514 [01:39:57]NVStorageDeleteData [01:39:58]OFD Sender: No OFD packet to send [01:39:58]*** Cut start [01:39:58]*** Partial cut [01:39:58]*** CUTSNS_PIN = 1 [01:39:58]*** CUTSNS_PIN = 0 [01:39:58]*** Brake cut motor [01:39:58]Read from MH i2c: 01 [01:39:58]MH_I2C_Read... [01:39:58]*** Stop cut motor [01:39:58]*** Cut end [01:39:58]Read from MH i2c: 01 07 00 [01:39:58]MH_I2C_Read... [01:39:58]Read from MH i2c: 01 07 00 FD 10 00 00 00 00 00 FF 0F 22 [01:39:58]process_action close_receipt done [01:39:58]requested_data is exist [01:39:58]produce_requested_data [01:39:58]requested_item fm.sn is exist - process it [01:39:58]wFMCommunicate request_size=4 [01:39:58]MH_SAM_APDU [01:39:58]CAPDU: 80 11 00 00 [01:39:58]Write to MH i2c: E2 08 00 FE 10 80 11 00 00 00 00 00 00 88 [01:39:59]Write i2c OK [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 [01:39:59]MH_I2C_Read... [01:39:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:59]Read from MH i2c: E2 17 00 [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 17 00 FE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 D9 [01:39:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:39:59]wFMCommunicate OK [01:39:59]requested_item fd.num is exist - process it [01:39:59]SAM_PROTO_GetFieldsCounters [01:39:59]wFMCommunicate request_size=4 [01:39:59]MH_SAM_APDU [01:39:59]CAPDU: 80 13 00 00 [01:39:59]Write to MH i2c: E2 08 00 FF 10 80 13 00 00 00 00 00 00 8B [01:39:59]Write i2c OK [01:39:59]MH_I2C_Read... [01:39:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:59]Read from MH i2c: E2 [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 62 00 [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 62 00 FF 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 82 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [01:39:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 82 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:59]wFMCommunicate OK [01:39:59]SAM_PROTO_GetFieldsCounters done [01:39:59]requested_item shift.num is exist - process it [01:39:59]requested_item shift.opened is exist - process it [01:39:59]req_shift_opened [01:39:59]FM_GetShiftState [01:39:59]SAM_PROTO_GetShiftState [01:39:59]wFMCommunicate request_size=4 [01:39:59]MH_SAM_APDU [01:39:59]CAPDU: 80 13 01 00 [01:39:59]Write to MH i2c: E2 08 00 00 11 80 13 01 00 00 00 00 00 8E [01:39:59]Write i2c OK [01:39:59]MH_I2C_Read... [01:39:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:59]Read from MH i2c: E2 [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 0E 00 [01:39:59]MH_I2C_Read... [01:39:59]Read from MH i2c: E2 0E 00 00 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 43 [01:39:59]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:39:59]wFMCommunicate OK [01:39:59]SAM_PROTO_GetShiftState done [01:39:59]FM_GetShiftState done [01:39:59]req_shift_opened done [01:39:59]requested_item shift.open_date is exist - process it [01:39:59]req_shift_open_date [01:39:59]req_shift_open_date done [01:39:59]produce_requested_data done [01:39:59]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112514,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [01:39:59]process_action_free close_receipt [01:39:59]json_value_free [01:39:59]json_value_free done [01:39:59]process_json_proto returns [01:39:59]Send response to host [01:39:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112514,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [01:39:59]free response buf [01:39:59]execute_script done [01:39:59]execute_script returns [01:39:59]free content buf [01:39:59]Sock 7.Close socket [01:39:59]Sock 7.Thread stoped [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:13]accept exits with 9 [01:42:13]New connection [01:42:13]New thread 3067317604 created [01:42:13]Thread 3067174244 joined [01:42:13]Waiting for new connection... [01:42:13] Sock 9.Parse request [01:42:13]Sock 9.Check first char [01:42:13]Sock 9.First char is OK [01:42:13]request: POST /json_proto HTTP/1.0 [01:42:13]Method: POST [01:42:13]URL: /json_proto [01:42:13]Method is POST - this is cgi request [01:42:13]url: /json_proto [01:42:13]query_string will be loaded in cgi processing [01:42:13]execute_cgi json_proto POST (null) [01:42:13]execute_cgi path=json_proto method=POST [01:42:13]POST find Content-Length [01:42:13]Host: 172.17.96.197:8080 [01:42:13]Content-Length: 787 [01:42:13]Content-Type: application/json [01:42:13] [01:42:13]POST finish read [01:42:13]Found Content-Length = 787 [01:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10467", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:13]execute_script... [01:42:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10467", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:13]POST & json_proto [01:42:13]process_json_proto [01:42:13]json parsed OK: [01:42:13]protocol is kg_v1.0 [01:42:13]action value=close_receipt [01:42:13]process_action close_receipt [01:42:13]cmd_close_receipt [01:42:13]MH_GetDate [01:42:13]Write to MH i2c: F0 00 00 01 11 01 [01:42:13]Write i2c OK [01:42:13]MH_I2C_Read... [01:42:13]Read from MH i2c: F0 [01:42:13]MH_I2C_Read... [01:42:13]Read from MH i2c: F0 09 00 [01:42:13]MH_I2C_Read... [01:42:13]Read from MH i2c: F0 09 00 01 11 00 F7 85 1C 66 E0 85 7F 64 50 [01:42:13]GetLastDocTimeStamp 1713145196 [01:42:13]current date 1713145335 [01:42:13]FM_GetShiftState [01:42:13]SAM_PROTO_GetShiftState [01:42:13]wFMCommunicate request_size=4 [01:42:13]MH_SAM_APDU [01:42:13]CAPDU: 80 13 01 00 [01:42:13]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [01:42:13]Write i2c OK [01:42:13]MH_I2C_Read... [01:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:13]Read from MH i2c: E2 [01:42:13]MH_I2C_Read... [01:42:13]Read from MH i2c: E2 0E 00 [01:42:13]MH_I2C_Read... [01:42:13]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 45 [01:42:13]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:42:13]wFMCommunicate OK [01:42:13]SAM_PROTO_GetShiftState done [01:42:13]FM_GetShiftState done [01:42:13]opened in 1713141170 [01:42:13]opened+sec_in_day 1713227570 [01:42:13]quantity*price = 15100 [01:42:13]sum+1 = 15101 [01:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 15 15.04.2024 01:42 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112515 ФПД: 208108967511754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014215&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112515&fm=208108967511754&tin=02508201610067®Number=0000000000094237&sum=15100 0 [01:42:14]StoreToDocumentArchive [01:42:14]shift 358 fd 112515 [01:42:14]save to /storage/0358/doc_00112515 [01:42:14]save last doc name /storage/0358/doc_00112515 to /storage/kkm_last_doc_name [01:42:14]save OK [01:42:14]Clear old archive folders... [01:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:42:14]tlvbuf is 019EE870 [01:42:14]SAM_PROTO_ClearQueue [01:42:14]wFMCommunicate request_size=4 [01:42:14]MH_SAM_APDU [01:42:14]CAPDU: 80 09 00 00 [01:42:14]Write to MH i2c: E2 08 00 0F 11 80 09 00 00 00 00 00 00 92 [01:42:14]Write i2c OK [01:42:14]MH_I2C_Read... [01:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:14]Read from MH i2c: E2 [01:42:14]MH_I2C_Read... [01:42:14]Read from MH i2c: E2 03 00 [01:42:14]MH_I2C_Read... [01:42:14]Read from MH i2c: E2 03 00 0F 11 00 90 00 94 [01:42:14]RAPDU: 90 00 [01:42:14]wFMCommunicate OK [01:42:14]SAM_PROTO_ClearQueue done [01:42:14]KKMCreateOFDPacket [01:42:14]OFDProtocolAddRootSTLVToBuf [01:42:14]FM_MakeSignedData [01:42:14]FM_MakeSignedData [01:42:14]SAM_PROTO_SignData [01:42:14]wFMCommunicate request_size=4 [01:42:14]MH_SAM_APDU [01:42:14]CAPDU: 80 0D 01 02 [01:42:14]Write to MH i2c: E2 08 00 10 11 80 0D 01 02 00 00 00 00 9A [01:42:14]Write i2c OK [01:42:14]MH_I2C_Read... [01:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:14]Read from MH i2c: E2 [01:42:14]MH_I2C_Read... [01:42:14]Read from MH i2c: E2 03 00 [01:42:14]MH_I2C_Read... [01:42:14]Read from MH i2c: E2 03 00 10 11 00 90 00 95 [01:42:14]RAPDU: 90 00 [01:42:14]wFMCommunicate OK [01:42:14]wFMCommunicate request_size=255 [01:42:14]MH_SAM_APDU [01:42:14]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F7 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 [01:42:14]Write to MH i2c: E2 02 01 11 11 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F7 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 00 00 D7 [01:42:14]Write i2c OK [01:42:14]MH_I2C_Read... [01:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:15]Read from MH i2c: E2 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 03 00 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [01:42:15]RAPDU: 90 00 [01:42:15]wFMCommunicate OK [01:42:15]wFMCommunicate request_size=33 [01:42:15]MH_SAM_APDU [01:42:15]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B7 01 00 35 04 06 00 BD 46 25 15 46 CA [01:42:15]Write to MH i2c: E2 24 00 12 11 80 0D 02 02 1C 00 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B7 01 00 35 04 06 00 BD 46 25 15 46 CA 00 00 B2 [01:42:15]Write i2c OK [01:42:15]MH_I2C_Read... [01:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:15]Read from MH i2c: E2 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 03 00 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [01:42:15]RAPDU: 90 00 [01:42:15]wFMCommunicate OK [01:42:15]wFMCommunicate request_size=4 [01:42:15]MH_SAM_APDU [01:42:15]CAPDU: 80 0D 03 02 [01:42:15]Write to MH i2c: E2 08 00 13 11 80 0D 03 02 00 00 00 00 9F [01:42:15]Write i2c OK [01:42:15]MH_I2C_Read... [01:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:15]Read from MH i2c: E2 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 0B 00 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 0B 00 13 11 00 71 91 80 4A 15 63 FE C3 90 00 A5 [01:42:15]RAPDU: 71 91 80 4A 15 63 FE C3 90 00 [01:42:15]wFMCommunicate OK [01:42:15]SAM_PROTO_SignData done [01:42:15]FM_MakeSignedData done [01:42:15]CreateOFDProtocolMessage [01:42:15]wFMCommunicate request_size=4 [01:42:15]MH_SAM_APDU [01:42:15]CAPDU: 80 11 00 00 [01:42:15]Write to MH i2c: E2 08 00 14 11 80 11 00 00 00 00 00 00 9F [01:42:15]Write i2c OK [01:42:15]MH_I2C_Read... [01:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:15]Read from MH i2c: E2 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 17 00 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: E2 17 00 14 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 F0 [01:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:42:15]wFMCommunicate OK [01:42:15]CreateOFDProtocolMessage done [01:42:15]OFDSenderStorePacket 112515 [01:42:15]StoreOFDPacket docnum=112515 [01:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 26 01 00 00 0C DB 1E 01 D6 5E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F7 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B7 01 00 35 04 06 00 BD 46 25 15 46 CA 71 91 80 4A 15 63 FE C3 [01:42:15]CheckFolder [01:42:15]dirname=/storage/ofd_packets [01:42:15]CheckFolder done [01:42:15]ProducePacketName [01:42:15]name=ofd_packets/00112515 [01:42:15]NVStorageSaveData ofd_packets/00112515 [01:42:15]File name is /storage/ofd_packets/00112515 [01:42:15]Write 324 bytes [01:42:15]NVStorageSaveData done [01:42:15]OFDSenderStorePacket done [01:42:15]KKMCreateOFDPacket done [01:42:15]NVStorageSaveData kkm_last_timestamp [01:42:15]File name is /storage/kkm_last_timestamp [01:42:15]Write 4 bytes [01:42:15]NVStorageSaveData done [01:42:15]ExternCall_PrintAddStr [01:42:15]wPrintStart [01:42:15]Write to MH i2c: 01 00 00 15 11 26 [01:42:15]Write i2c OK [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: 01 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: 01 07 00 [01:42:15]MH_I2C_Read... [01:42:15]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 FF 0F 3B [01:42:15]RasterBufferAndPrint [01:42:15]line Счет N : (3)10467 [01:42:15]line ИНН: 02508201610067 [01:42:15]line Контрольно-Кассовый Чек [01:42:15]line ПРОДАЖА [01:42:15]line Товар: 48741958 [01:42:15]line Сигареты Parliament Aqua Blue [01:42:15]line 1.000 * 151.00 [01:42:15]line = 151.00 [01:42:15]line НДС 12% НСП 1% [01:42:15]line > о реализуемом товаре [01:42:15]line ИТОГО: 151.00 [01:42:15]line НСП 1% : 1.34 [01:42:15]line НДС 12% : 16.03 [01:42:15]line Наличными: 0.00 [01:42:15]line Безнал.: 151.00 [01:42:15]line Место: АЗС № 47 "Партнер Нефть" [01:42:15]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [01:42:15]line СНО: Общий режим [01:42:15]line Чек 15 15.04.2024 01:42 [01:42:15]line Смена: 358 ФФД: 1.0 [01:42:15]line ЗНМ: 0300000138 [01:42:15]line РНМ: 0000000000094237 [01:42:15]line Версия ККМ: 001 [01:42:15]line Платежная система: О! деньги [01:42:15]line ФМ: 0000000000875019 [01:42:15]line ФД: 112515 [01:42:15]line ФПД: 208108967511754 [01:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014215&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112515&fm=208108967511754&tin=02508201610067®Number=0000000000094237&sum=15100 [01:42:15]line 0 [01:42:15]OFD Sender: Processing packet 112515 [packets to send 71, broken 70] [01:42:15]ProducePacketName [01:42:15]name=ofd_packets/00112515 [01:42:15]OFD Sender: To server: pG, [01:42:15]CommunicateWithHost lk.salyk.kg:30040 [01:42:15]ConnectInit lk.salyk.kg [01:42:15]written 0, free lines is 4095 [01:42:16]Connected sock=10 [01:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 26 01 00 00 0C DB 1E 01 D6 5E 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 F7 85 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B7 01 00 35 04 06 00 BD 46 25 15 46 CA 71 91 80 4A 15 63 FE C3 [01:42:16]Write to MH i2c: 01 00 00 40 11 51 [01:42:16]Write i2c OK [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: 01 [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: 01 07 00 [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: 01 07 00 40 11 00 00 00 00 00 B5 0C 19 [01:42:16]RasterBufferAndPrint [01:42:16]line [01:42:16]line [01:42:16]line [01:42:16]line [01:42:16]line [01:42:16]written 0, free lines is 3259 [01:42:16]MH_Cut [01:42:16]Write to MH i2c: D1 01 00 47 11 01 2A [01:42:16]Write i2c OK [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: D1 [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: D1 01 00 [01:42:16]MH_I2C_Read... [01:42:16]Read from MH i2c: D1 01 00 47 11 00 29 [01:42:16]Write to MH i2c: 01 00 00 48 11 59 [01:42:16]Write i2c OK [01:42:16]MH_I2C_Read... [01:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 1A EE 47 00 30 E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 83 B7 01 00 F4 03 04 00 81 2D 1C 66 B6 04 01 00 00 58 71 F5 D6 0C 97 74 AF [01:42:16]CommunicateWithHost err = 0 [01:42:16]CheckOFDResponse [01:42:16]1017 (14) - 77093643461234 [01:42:16]1041 (16) - 0000000000875019 [01:42:16]1040 (4) - 112515 [01:42:16]1012 (4) - 14.04.2024 19:24 [01:42:16]1206 (1) - 0 [01:42:16]OFD Sender: Remove packet 112515 [01:42:16]ProducePacketName [01:42:16]name=ofd_packets/00112515 [01:42:16]NVStorageDeleteData [01:42:16]OFD Sender: No OFD packet to send [01:42:17]*** Cut start [01:42:17]*** Partial cut [01:42:17]*** CUTSNS_PIN = 1 [01:42:17]*** CUTSNS_PIN = 0 [01:42:17]*** Brake cut motor [01:42:17]Read from MH i2c: 01 [01:42:17]MH_I2C_Read... [01:42:17]*** Stop cut motor [01:42:17]*** Cut end [01:42:17]Read from MH i2c: 01 07 00 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: 01 07 00 48 11 00 00 00 00 00 FF 0F 6E [01:42:17]process_action close_receipt done [01:42:17]requested_data is exist [01:42:17]produce_requested_data [01:42:17]requested_item fm.sn is exist - process it [01:42:17]wFMCommunicate request_size=4 [01:42:17]MH_SAM_APDU [01:42:17]CAPDU: 80 11 00 00 [01:42:17]Write to MH i2c: E2 08 00 49 11 80 11 00 00 00 00 00 00 D4 [01:42:17]Write i2c OK [01:42:17]MH_I2C_Read... [01:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:17]Read from MH i2c: E2 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 17 00 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 17 00 49 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [01:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:42:17]wFMCommunicate OK [01:42:17]requested_item fd.num is exist - process it [01:42:17]SAM_PROTO_GetFieldsCounters [01:42:17]wFMCommunicate request_size=4 [01:42:17]MH_SAM_APDU [01:42:17]CAPDU: 80 13 00 00 [01:42:17]Write to MH i2c: E2 08 00 4A 11 80 13 00 00 00 00 00 00 D7 [01:42:17]Write i2c OK [01:42:17]MH_I2C_Read... [01:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:17]Read from MH i2c: E2 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 62 00 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 62 00 4A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 83 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [01:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 83 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:17]wFMCommunicate OK [01:42:17]SAM_PROTO_GetFieldsCounters done [01:42:17]requested_item shift.num is exist - process it [01:42:17]requested_item shift.opened is exist - process it [01:42:17]req_shift_opened [01:42:17]FM_GetShiftState [01:42:17]SAM_PROTO_GetShiftState [01:42:17]wFMCommunicate request_size=4 [01:42:17]MH_SAM_APDU [01:42:17]CAPDU: 80 13 01 00 [01:42:17]Write to MH i2c: E2 08 00 4B 11 80 13 01 00 00 00 00 00 D9 [01:42:17]Write i2c OK [01:42:17]MH_I2C_Read... [01:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:17]Read from MH i2c: E2 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 0E 00 [01:42:17]MH_I2C_Read... [01:42:17]Read from MH i2c: E2 0E 00 4B 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 8E [01:42:17]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:42:17]wFMCommunicate OK [01:42:17]SAM_PROTO_GetShiftState done [01:42:17]FM_GetShiftState done [01:42:17]req_shift_opened done [01:42:17]requested_item shift.open_date is exist - process it [01:42:17]req_shift_open_date [01:42:17]req_shift_open_date done [01:42:17]produce_requested_data done [01:42:17]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112515,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [01:42:17]process_action_free close_receipt [01:42:17]json_value_free [01:42:17]json_value_free done [01:42:17]process_json_proto returns [01:42:17]Send response to host [01:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112515,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [01:42:17]free response buf [01:42:17]execute_script done [01:42:17]execute_script returns [01:42:17]free content buf [01:42:17]Sock 9.Close socket [01:42:17]Sock 9.Thread stoped [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:37]accept exits with 7 [01:42:37]New connection [01:42:37]New thread 3067174244 created [01:42:37]Thread 3067317604 joined [01:42:37]Waiting for new connection... [01:42:37] Sock 7.Parse request [01:42:37]Sock 7.Check first char [01:42:37]Sock 7.First char is OK [01:42:37]request: POST /json_proto HTTP/1.0 [01:42:37]Method: POST [01:42:37]URL: /json_proto [01:42:37]Method is POST - this is cgi request [01:42:37]url: /json_proto [01:42:37]query_string will be loaded in cgi processing [01:42:37]execute_cgi json_proto POST (null) [01:42:37]execute_cgi path=json_proto method=POST [01:42:37]POST find Content-Length [01:42:37]Host: 172.17.96.197:8080 [01:42:37]Content-Length: 815 [01:42:37]Content-Type: application/json [01:42:37] [01:42:37]POST finish read [01:42:37]Found Content-Length = 815 [01:42:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48793", "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 }]} ], "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:37]execute_script... [01:42: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)48793", "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 }]} ], "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:37]POST & json_proto [01:42:37]process_json_proto [01:42:37]json parsed OK: [01:42:37]protocol is kg_v1.0 [01:42:37]action value=close_receipt [01:42:37]process_action close_receipt [01:42:37]cmd_close_receipt [01:42:37]MH_GetDate [01:42:37]Write to MH i2c: F0 00 00 4C 11 4C [01:42:37]Write i2c OK [01:42:37]MH_I2C_Read... [01:42:37]Read from MH i2c: F0 [01:42:37]MH_I2C_Read... [01:42:37]Read from MH i2c: F0 09 00 [01:42:37]MH_I2C_Read... [01:42:37]Read from MH i2c: F0 09 00 4C 11 00 0F 86 1C 66 E0 85 7F 64 B4 [01:42:37]GetLastDocTimeStamp 1713145335 [01:42:37]current date 1713145359 [01:42:37]FM_GetShiftState [01:42:37]SAM_PROTO_GetShiftState [01:42:37]wFMCommunicate request_size=4 [01:42:37]MH_SAM_APDU [01:42:37]CAPDU: 80 13 01 00 [01:42:37]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [01:42:37]Write i2c OK [01:42:37]MH_I2C_Read... [01:42:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:37]Read from MH i2c: E2 [01:42:37]MH_I2C_Read... [01:42:37]Read from MH i2c: E2 0E 00 [01:42:37]MH_I2C_Read... [01:42:37]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 90 [01:42:37]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:42:37]wFMCommunicate OK [01:42:37]SAM_PROTO_GetShiftState done [01:42:37]FM_GetShiftState done [01:42:37]opened in 1713141170 [01:42:37]opened+sec_in_day 1713227570 [01:42:37]quantity*price = 50025 [01:42:37]sum+1 = 50027 [01:42:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 16 15.04.2024 01:42 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112516 ФПД: 112651640084122 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014239&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112516&fm=112651640084122&tin=02508201610067®Number=0000000000094237&sum=50026 [01:42:38]StoreToDocumentArchive [01:42:38]shift 358 fd 112516 [01:42:38]save to /storage/0358/doc_00112516 [01:42:38]save last doc name /storage/0358/doc_00112516 to /storage/kkm_last_doc_name [01:42:38]save OK [01:42:38]Clear old archive folders... [01:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:42:38]tlvbuf is 01A554D0 [01:42:38]SAM_PROTO_ClearQueue [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 09 00 00 [01:42:38]Write to MH i2c: E2 08 00 5A 11 80 09 00 00 00 00 00 00 DD [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 5A 11 00 90 00 DF [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]SAM_PROTO_ClearQueue done [01:42:38]KKMCreateOFDPacket [01:42:38]OFDProtocolAddRootSTLVToBuf [01:42:38]FM_MakeSignedData [01:42:38]FM_MakeSignedData [01:42:38]SAM_PROTO_SignData [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 0D 01 02 [01:42:38]Write to MH i2c: E2 08 00 5B 11 80 0D 01 02 00 00 00 00 E5 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 5B 11 00 90 00 E0 [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]wFMCommunicate request_size=255 [01:42:38]MH_SAM_APDU [01:42: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 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 10 00 00 00 F4 03 04 00 0F 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B7 01 00 35 04 06 00 66 [01:42:38]Write to MH i2c: E2 02 01 5C 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 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 10 00 00 00 F4 03 04 00 0F 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B7 01 00 35 04 06 00 66 00 00 E3 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:39]Read from MH i2c: E2 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 03 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [01:42:39]RAPDU: 90 00 [01:42:39]wFMCommunicate OK [01:42:39]wFMCommunicate request_size=10 [01:42:39]MH_SAM_APDU [01:42:39]CAPDU: 80 0D 02 02 05 74 C0 FD 96 9A [01:42:39]Write to MH i2c: E2 0D 00 5D 11 80 0D 02 02 05 00 74 C0 FD 96 9A 00 00 53 [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:39]Read from MH i2c: E2 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 03 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [01:42:39]RAPDU: 90 00 [01:42:39]wFMCommunicate OK [01:42:39]wFMCommunicate request_size=4 [01:42:39]MH_SAM_APDU [01:42:39]CAPDU: 80 0D 03 02 [01:42:39]Write to MH i2c: E2 08 00 5E 11 80 0D 03 02 00 00 00 00 EA [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:39]Read from MH i2c: E2 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 0B 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 0B 00 5E 11 00 E8 0A 11 99 6F 81 62 94 90 00 6D [01:42:39]RAPDU: E8 0A 11 99 6F 81 62 94 90 00 [01:42:39]wFMCommunicate OK [01:42:39]SAM_PROTO_SignData done [01:42:39]FM_MakeSignedData done [01:42:39]CreateOFDProtocolMessage [01:42:39]wFMCommunicate request_size=4 [01:42:39]MH_SAM_APDU [01:42:39]CAPDU: 80 11 00 00 [01:42:39]Write to MH i2c: E2 08 00 5F 11 80 11 00 00 00 00 00 00 EA [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:39]Read from MH i2c: E2 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 17 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: E2 17 00 5F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 3B [01:42:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:42:39]wFMCommunicate OK [01:42:39]CreateOFDProtocolMessage done [01:42:39]OFDSenderStorePacket 112516 [01:42:39]StoreOFDPacket docnum=112516 [01:42:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B0 D1 07 01 B9 D0 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 10 00 00 00 F4 03 04 00 0F 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B7 01 00 35 04 06 00 66 74 C0 FD 96 9A E8 0A 11 99 6F 81 62 94 [01:42:39]CheckFolder [01:42:39]dirname=/storage/ofd_packets [01:42:39]CheckFolder done [01:42:39]ProducePacketName [01:42:39]name=ofd_packets/00112516 [01:42:39]NVStorageSaveData ofd_packets/00112516 [01:42:39]File name is /storage/ofd_packets/00112516 [01:42:39]Write 301 bytes [01:42:39]NVStorageSaveData done [01:42:39]OFDSenderStorePacket done [01:42:39]KKMCreateOFDPacket done [01:42:39]NVStorageSaveData kkm_last_timestamp [01:42:39]File name is /storage/kkm_last_timestamp [01:42:39]Write 4 bytes [01:42:39]NVStorageSaveData done [01:42:39]ExternCall_PrintAddStr [01:42:39]wPrintStart [01:42:39]Write to MH i2c: 01 00 00 60 11 71 [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 07 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 FF 0F 86 [01:42:39]RasterBufferAndPrint [01:42:39]line Счет N : (1)48793 [01:42:39]line ИНН: 02508201610067 [01:42:39]line Контрольно-Кассовый Чек [01:42:39]line ПРОДАЖА [01:42:39]line ТРК (МРК, ГНК) : 42 [01:42:39]line Товар: 2710124130 [01:42:39]line Аи-92-К-5 [01:42:39]line 7.720 * 64.80 [01:42:39]line = 500.26 [01:42:39]line НДС 12% НСП 1% [01:42:39]line > о реализуемом товаре [01:42:39]line ИТОГО: 500.26 [01:42:39]line НСП 1% : 4.43 [01:42:39]line НДС 12% : 53.12 [01:42:39]line Наличными: 0.00 [01:42:39]line Безнал.: 500.26 [01:42:39]line Место: АЗС № 47 "Партнер Нефть" [01:42:39]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [01:42:39]line СНО: Общий режим [01:42:39]line Чек 16 15.04.2024 01:42 [01:42:39]line Смена: 358 ФФД: 1.0 [01:42:39]line ЗНМ: 0300000138 [01:42:39]line РНМ: 0000000000094237 [01:42:39]line Версия ККМ: 001 [01:42:39]line Платежная система: Бакай Банк [01:42:39]line ФМ: 0000000000875019 [01:42:39]line ФД: 112516 [01:42:39]line ФПД: 112651640084122 [01:42:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014239&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112516&fm=112651640084122&tin=02508201610067®Number=0000000000094237&sum=50026 [01:42:39]OFD Sender: Processing packet 112516 [packets to send 71, broken 70] [01:42:39]ProducePacketName [01:42:39]name=ofd_packets/00112516 [01:42:39]OFD Sender: To server: pG, [01:42:39]CommunicateWithHost lk.salyk.kg:30040 [01:42:39]ConnectInit lk.salyk.kg [01:42:39]written 0, free lines is 4095 [01:42:40]Write to MH i2c: 01 00 00 8A 11 9B [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: 01 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: 01 07 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: 01 07 00 8A 11 00 00 00 00 00 E2 0C 90 [01:42:40]RasterBufferAndPrint [01:42:40]line [01:42:40]line [01:42:40]line [01:42:40]line [01:42:40]line [01:42:40]written 0, free lines is 3304 [01:42:40]MH_Cut [01:42:40]Write to MH i2c: D1 01 00 91 11 01 74 [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: D1 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: D1 01 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: D1 01 00 91 11 00 73 [01:42:40]Write to MH i2c: 01 00 00 92 11 A3 [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]Connected sock=11 [01:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 B0 D1 07 01 B9 D0 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 10 00 00 00 F4 03 04 00 0F 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B7 01 00 35 04 06 00 66 74 C0 FD 96 9A E8 0A 11 99 6F 81 62 94 [01:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 B8 AE 47 00 82 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 84 B7 01 00 F4 03 04 00 99 2D 1C 66 B6 04 01 00 00 FC 8D 54 58 B3 BE E5 79 [01:42:40]CommunicateWithHost err = 0 [01:42:40]CheckOFDResponse [01:42:40]1017 (14) - 77093643461234 [01:42:40]1041 (16) - 0000000000875019 [01:42:40]1040 (4) - 112516 [01:42:40]1012 (4) - 14.04.2024 19:25 [01:42:40]1206 (1) - 0 [01:42:40]OFD Sender: Remove packet 112516 [01:42:40]ProducePacketName [01:42:40]name=ofd_packets/00112516 [01:42:40]NVStorageDeleteData [01:42:40]*** Cut start [01:42:40]*** Partial cut [01:42:40]*** CUTSNS_PIN = 1 [01:42:40]*** CUTSNS_PIN = 0 [01:42:41]OFD Sender: No OFD packet to send [01:42:41]*** Brake cut motor [01:42:41]Read from MH i2c: 01 [01:42:41]MH_I2C_Read... [01:42:41]*** Stop cut motor [01:42:41]*** Cut end [01:42:41]Read from MH i2c: 01 07 00 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: 01 07 00 92 11 00 00 00 00 00 FF 0F B8 [01:42:41]process_action close_receipt done [01:42:41]requested_data is exist [01:42:41]produce_requested_data [01:42:41]requested_item fm.sn is exist - process it [01:42:41]wFMCommunicate request_size=4 [01:42:41]MH_SAM_APDU [01:42:41]CAPDU: 80 11 00 00 [01:42:41]Write to MH i2c: E2 08 00 93 11 80 11 00 00 00 00 00 00 1E [01:42:41]Write i2c OK [01:42:41]MH_I2C_Read... [01:42:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:41]Read from MH i2c: E2 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 17 00 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 17 00 93 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 6F [01:42:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:42:41]wFMCommunicate OK [01:42:41]requested_item fd.num is exist - process it [01:42:41]SAM_PROTO_GetFieldsCounters [01:42:41]wFMCommunicate request_size=4 [01:42:41]MH_SAM_APDU [01:42:41]CAPDU: 80 13 00 00 [01:42:41]Write to MH i2c: E2 08 00 94 11 80 13 00 00 00 00 00 00 21 [01:42:41]Write i2c OK [01:42:41]MH_I2C_Read... [01:42:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:41]Read from MH i2c: E2 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 62 00 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 62 00 94 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 84 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [01:42:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 84 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:41]wFMCommunicate OK [01:42:41]SAM_PROTO_GetFieldsCounters done [01:42:41]requested_item shift.num is exist - process it [01:42:41]requested_item shift.opened is exist - process it [01:42:41]req_shift_opened [01:42:41]FM_GetShiftState [01:42:41]SAM_PROTO_GetShiftState [01:42:41]wFMCommunicate request_size=4 [01:42:41]MH_SAM_APDU [01:42:41]CAPDU: 80 13 01 00 [01:42:41]Write to MH i2c: E2 08 00 95 11 80 13 01 00 00 00 00 00 23 [01:42:41]Write i2c OK [01:42:41]MH_I2C_Read... [01:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:41]Read from MH i2c: E2 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 0E 00 [01:42:41]MH_I2C_Read... [01:42:41]Read from MH i2c: E2 0E 00 95 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 D8 [01:42:41]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:42:41]wFMCommunicate OK [01:42:41]SAM_PROTO_GetShiftState done [01:42:41]FM_GetShiftState done [01:42:41]req_shift_opened done [01:42:41]requested_item shift.open_date is exist - process it [01:42:41]req_shift_open_date [01:42:41]req_shift_open_date done [01:42:41]produce_requested_data done [01:42:41]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112516,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [01:42:41]process_action_free close_receipt [01:42:41]json_value_free [01:42:41]json_value_free done [01:42:41]process_json_proto returns [01:42:41]Send response to host [01:42:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112516,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [01:42:41]free response buf [01:42:41]execute_script done [01:42:41]execute_script returns [01:42:41]free content buf [01:42:41]Sock 7.Close socket [01:42:41]Sock 7.Thread stoped [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:51]OFD Sender: No OFD packet to send [01:43:56]OFD Sender: No OFD packet to send [01:44:01]OFD Sender: No OFD packet to send [01:44:06]OFD Sender: No OFD packet to send [01:44:11]OFD Sender: No OFD packet to send [01:44:16]OFD Sender: No OFD packet to send [01:44:21]OFD Sender: No OFD packet to send [01:44:26]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:50]accept exits with 9 [01:45:50]New connection [01:45:50]New thread 3067317604 created [01:45:50]Thread 3067174244 joined [01:45:50]Waiting for new connection... [01:45:50] Sock 9.Parse request [01:45:50]Sock 9.Check first char [01:45:50]Sock 9.First char is OK [01:45:50]request: POST /json_proto HTTP/1.0 [01:45:50]Method: POST [01:45:50]URL: /json_proto [01:45:50]Method is POST - this is cgi request [01:45:50]url: /json_proto [01:45:50]query_string will be loaded in cgi processing [01:45:50]execute_cgi json_proto POST (null) [01:45:50]execute_cgi path=json_proto method=POST [01:45:50]POST find Content-Length [01:45:50]Host: 172.17.96.197:8080 [01:45:50]Content-Length: 807 [01:45:50]Content-Type: application/json [01:45:50] [01:45:50]POST finish read [01:45:50]Found Content-Length = 807 [01:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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: \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" ] } } [01:45:50]execute_script... [01:45: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)48794", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "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: \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" ] } } [01:45:50]POST & json_proto [01:45:50]process_json_proto [01:45:50]json parsed OK: [01:45:50]protocol is kg_v1.0 [01:45:50]action value=close_receipt [01:45:50]process_action close_receipt [01:45:50]cmd_close_receipt [01:45:50]MH_GetDate [01:45:50]Write to MH i2c: F0 00 00 96 11 96 [01:45:50]Write i2c OK [01:45:50]MH_I2C_Read... [01:45:50]Read from MH i2c: F0 [01:45:50]MH_I2C_Read... [01:45:50]Read from MH i2c: F0 09 00 [01:45:50]MH_I2C_Read... [01:45:50]Read from MH i2c: F0 09 00 96 11 00 CF 86 1C 66 E0 85 7F 64 BE [01:45:50]GetLastDocTimeStamp 1713145359 [01:45:50]current date 1713145551 [01:45:50]FM_GetShiftState [01:45:50]SAM_PROTO_GetShiftState [01:45:50]wFMCommunicate request_size=4 [01:45:50]MH_SAM_APDU [01:45:50]CAPDU: 80 13 01 00 [01:45:50]Write to MH i2c: E2 08 00 97 11 80 13 01 00 00 00 00 00 25 [01:45:50]Write i2c OK [01:45:50]MH_I2C_Read... [01:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:50]Read from MH i2c: E2 [01:45:50]MH_I2C_Read... [01:45:50]Read from MH i2c: E2 0E 00 [01:45:50]MH_I2C_Read... [01:45:50]Read from MH i2c: E2 0E 00 97 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 DA [01:45:50]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:45:50]wFMCommunicate OK [01:45:50]SAM_PROTO_GetShiftState done [01:45:50]FM_GetShiftState done [01:45:50]opened in 1713141170 [01:45:50]opened+sec_in_day 1713227570 [01:45:50]quantity*price = 100018 [01:45:50]sum+1 = 100020 [01:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.19 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.19 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 17 15.04.2024 01:45 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: О! деньги ФМ: 0000000000875019 ФД: 112517 ФПД: 268063589723692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014552&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112517&fm=268063589723692&tin=02508201610067®Number=0000000000094237&sum=100019 [01:45:51]StoreToDocumentArchive [01:45:51]shift 358 fd 112517 [01:45:51]save to /storage/0358/doc_00112517 [01:45:51]save last doc name /storage/0358/doc_00112517 to /storage/kkm_last_doc_name [01:45:51]save OK [01:45:51]Clear old archive folders... [01:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:45:51]tlvbuf is 019E8700 [01:45:51]SAM_PROTO_ClearQueue [01:45:51]wFMCommunicate request_size=4 [01:45:51]MH_SAM_APDU [01:45:51]CAPDU: 80 09 00 00 [01:45:51]Write to MH i2c: E2 08 00 A4 11 80 09 00 00 00 00 00 00 27 [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 A4 11 00 90 00 29 [01:45:51]RAPDU: 90 00 [01:45:51]wFMCommunicate OK [01:45:51]SAM_PROTO_ClearQueue done [01:45:51]KKMCreateOFDPacket [01:45:51]OFDProtocolAddRootSTLVToBuf [01:45:51]FM_MakeSignedData [01:45:51]FM_MakeSignedData [01:45:51]SAM_PROTO_SignData [01:45:51]wFMCommunicate request_size=4 [01:45:51]MH_SAM_APDU [01:45:51]CAPDU: 80 0D 01 02 [01:45:51]Write to MH i2c: E2 08 00 A5 11 80 0D 01 02 00 00 00 00 2F [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 A5 11 00 90 00 2A [01:45:51]RAPDU: 90 00 [01:45:51]wFMCommunicate OK [01:45:51]wFMCommunicate request_size=255 [01:45:51]MH_SAM_APDU [01:45:51]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 11 00 00 00 F4 03 04 00 D0 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B7 01 00 35 04 06 00 F3 [01:45:51]Write to MH i2c: E2 02 01 A6 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 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 11 00 00 00 F4 03 04 00 D0 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B7 01 00 35 04 06 00 F3 00 00 EA [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 A6 11 00 90 00 2B [01:45:51]RAPDU: 90 00 [01:45:51]wFMCommunicate OK [01:45:51]wFMCommunicate request_size=10 [01:45:51]MH_SAM_APDU [01:45:51]CAPDU: 80 0D 02 02 05 CD 6B 0A EE 2C [01:45:51]Write to MH i2c: E2 0D 00 A7 11 80 0D 02 02 05 00 CD 6B 0A EE 2C 00 00 98 [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [01:45:51]RAPDU: 90 00 [01:45:51]wFMCommunicate OK [01:45:51]wFMCommunicate request_size=4 [01:45:51]MH_SAM_APDU [01:45:51]CAPDU: 80 0D 03 02 [01:45:51]Write to MH i2c: E2 08 00 A8 11 80 0D 03 02 00 00 00 00 34 [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 0B 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 0B 00 A8 11 00 AE 28 F6 10 0D 51 31 26 90 00 C6 [01:45:51]RAPDU: AE 28 F6 10 0D 51 31 26 90 00 [01:45:51]wFMCommunicate OK [01:45:51]SAM_PROTO_SignData done [01:45:51]FM_MakeSignedData done [01:45:51]CreateOFDProtocolMessage [01:45:51]wFMCommunicate request_size=4 [01:45:51]MH_SAM_APDU [01:45:51]CAPDU: 80 11 00 00 [01:45:51]Write to MH i2c: E2 08 00 A9 11 80 11 00 00 00 00 00 00 34 [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:51]Read from MH i2c: E2 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 17 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: E2 17 00 A9 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 85 [01:45:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:45:51]wFMCommunicate OK [01:45:51]CreateOFDProtocolMessage done [01:45:51]OFDSenderStorePacket 112517 [01:45:51]StoreOFDPacket docnum=112517 [01:45:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C4 A5 07 01 A8 2B 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 11 00 00 00 F4 03 04 00 D0 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B7 01 00 35 04 06 00 F3 CD 6B 0A EE 2C AE 28 F6 10 0D 51 31 26 [01:45:51]CheckFolder [01:45:51]dirname=/storage/ofd_packets [01:45:51]CheckFolder done [01:45:51]ProducePacketName [01:45:51]name=ofd_packets/00112517 [01:45:51]NVStorageSaveData ofd_packets/00112517 [01:45:51]File name is /storage/ofd_packets/00112517 [01:45:51]Write 301 bytes [01:45:51]NVStorageSaveData done [01:45:51]OFDSenderStorePacket done [01:45:51]KKMCreateOFDPacket done [01:45:51]NVStorageSaveData kkm_last_timestamp [01:45:51]File name is /storage/kkm_last_timestamp [01:45:51]Write 4 bytes [01:45:51]NVStorageSaveData done [01:45:51]ExternCall_PrintAddStr [01:45:51]wPrintStart [01:45:51]Write to MH i2c: 01 00 00 AA 11 BB [01:45:51]Write i2c OK [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: 01 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: 01 07 00 [01:45:51]MH_I2C_Read... [01:45:51]Read from MH i2c: 01 07 00 AA 11 00 00 00 00 00 FF 0F D0 [01:45:51]RasterBufferAndPrint [01:45:51]line Счет N : (1)48794 [01:45:51]line ИНН: 02508201610067 [01:45:51]line Контрольно-Кассовый Чек [01:45:51]line ПРОДАЖА [01:45:51]line ТРК (МРК, ГНК) : 12 [01:45:51]line Товар: 2710124500 [01:45:51]line Аи-95-К-5 [01:45:51]line 13.720 * 72.90 [01:45:51]line = 1000.19 [01:45:51]line НДС 12% НСП 1% [01:45:51]line > о реализуемом товаре [01:45:51]line ИТОГО: 1000.19 [01:45:51]line НСП 1% : 8.85 [01:45:51]line НДС 12% : 106.21 [01:45:51]line Наличными: 0.00 [01:45:51]line Безнал.: 1000.19 [01:45:51]line Место: АЗС № 47 "Партнер Нефть" [01:45:51]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [01:45:51]line СНО: Общий режим [01:45:51]line Чек 17 15.04.2024 01:45 [01:45:51]line Смена: 358 ФФД: 1.0 [01:45:51]line ЗНМ: 0300000138 [01:45:51]line РНМ: 0000000000094237 [01:45:51]line Версия ККМ: 001 [01:45:51]line Платежная система: О! деньги [01:45:51]line ФМ: 0000000000875019 [01:45:51]line ФД: 112517 [01:45:51]line ФПД: 268063589723692 [01:45:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T014552&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112517&fm=268063589723692&tin=02508201610067®Number=0000000000094237&sum=100019 [01:45:52]OFD Sender: Processing packet 112517 [packets to send 71, broken 70] [01:45:52]ProducePacketName [01:45:52]name=ofd_packets/00112517 [01:45:52]OFD Sender: To server: pG, [01:45:52]CommunicateWithHost lk.salyk.kg:30040 [01:45:52]ConnectInit lk.salyk.kg [01:45:52]written 0, free lines is 4095 [01:45:52]Connected sock=10 [01:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C4 A5 07 01 A8 2B 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 11 00 00 00 F4 03 04 00 D0 86 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B7 01 00 35 04 06 00 F3 CD 6B 0A EE 2C AE 28 F6 10 0D 51 31 26 [01:45:52]Write to MH i2c: 01 00 00 D4 11 E5 [01:45:52]Write i2c OK [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: 01 [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: 01 07 00 [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: 01 07 00 D4 11 00 00 00 00 00 EE 0C E6 [01:45:52]RasterBufferAndPrint [01:45:52]line [01:45:52]line [01:45:52]line [01:45:52]line [01:45:52]line [01:45:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 32 B8 47 00 BE 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 85 B7 01 00 F4 03 04 00 59 2E 1C 66 B6 04 01 00 00 0E 9C 44 75 1D 63 F9 92 [01:45:52]CommunicateWithHost err = 0 [01:45:52]CheckOFDResponse [01:45:52]1017 (14) - 77093643461234 [01:45:52]1041 (16) - 0000000000875019 [01:45:52]1040 (4) - 112517 [01:45:52]1012 (4) - 14.04.2024 19:28 [01:45:52]1206 (1) - 0 [01:45:52]OFD Sender: Remove packet 112517 [01:45:52]ProducePacketName [01:45:52]name=ofd_packets/00112517 [01:45:52]NVStorageDeleteData [01:45:52]written 0, free lines is 3317 [01:45:52]MH_Cut [01:45:52]Write to MH i2c: D1 01 00 DB 11 01 BE [01:45:52]Write i2c OK [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: D1 [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: D1 01 00 [01:45:52]MH_I2C_Read... [01:45:52]Read from MH i2c: D1 01 00 DB 11 00 BD [01:45:52]Write to MH i2c: 01 00 00 DC 11 ED [01:45:52]Write i2c OK [01:45:52]MH_I2C_Read... [01:45:53]OFD Sender: No OFD packet to send [01:45:53]*** Cut start [01:45:53]*** Partial cut [01:45:53]*** CUTSNS_PIN = 1 [01:45:53]*** CUTSNS_PIN = 0 [01:45:53]*** Brake cut motor [01:45:54]Read from MH i2c: 01 [01:45:54]MH_I2C_Read... [01:45:54]*** Stop cut motor [01:45:54]*** Cut end [01:45:54]Read from MH i2c: 01 07 00 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: 01 07 00 DC 11 00 00 00 00 00 FF 0F 02 [01:45:54]process_action close_receipt done [01:45:54]requested_data is exist [01:45:54]produce_requested_data [01:45:54]requested_item fm.sn is exist - process it [01:45:54]wFMCommunicate request_size=4 [01:45:54]MH_SAM_APDU [01:45:54]CAPDU: 80 11 00 00 [01:45:54]Write to MH i2c: E2 08 00 DD 11 80 11 00 00 00 00 00 00 68 [01:45:54]Write i2c OK [01:45:54]MH_I2C_Read... [01:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:45:54]Read from MH i2c: E2 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 17 00 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 17 00 DD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B9 [01:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:45:54]wFMCommunicate OK [01:45:54]requested_item fd.num is exist - process it [01:45:54]SAM_PROTO_GetFieldsCounters [01:45:54]wFMCommunicate request_size=4 [01:45:54]MH_SAM_APDU [01:45:54]CAPDU: 80 13 00 00 [01:45:54]Write to MH i2c: E2 08 00 DE 11 80 13 00 00 00 00 00 00 6B [01:45:54]Write i2c OK [01:45:54]MH_I2C_Read... [01:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:45:54]Read from MH i2c: E2 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 62 00 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 62 00 DE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 85 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [01:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 85 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:45:54]wFMCommunicate OK [01:45:54]SAM_PROTO_GetFieldsCounters done [01:45:54]requested_item shift.num is exist - process it [01:45:54]requested_item shift.opened is exist - process it [01:45:54]req_shift_opened [01:45:54]FM_GetShiftState [01:45:54]SAM_PROTO_GetShiftState [01:45:54]wFMCommunicate request_size=4 [01:45:54]MH_SAM_APDU [01:45:54]CAPDU: 80 13 01 00 [01:45:54]Write to MH i2c: E2 08 00 DF 11 80 13 01 00 00 00 00 00 6D [01:45:54]Write i2c OK [01:45:54]MH_I2C_Read... [01:45:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:45:54]Read from MH i2c: E2 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 0E 00 [01:45:54]MH_I2C_Read... [01:45:54]Read from MH i2c: E2 0E 00 DF 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 22 [01:45:54]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:45:54]wFMCommunicate OK [01:45:54]SAM_PROTO_GetShiftState done [01:45:54]FM_GetShiftState done [01:45:54]req_shift_opened done [01:45:54]requested_item shift.open_date is exist - process it [01:45:54]req_shift_open_date [01:45:54]req_shift_open_date done [01:45:54]produce_requested_data done [01:45:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112517,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [01:45:54]process_action_free close_receipt [01:45:54]json_value_free [01:45:54]json_value_free done [01:45:54]process_json_proto returns [01:45:54]Send response to host [01:45:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112517,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [01:45:54]free response buf [01:45:54]execute_script done [01:45:54]execute_script returns [01:45:54]free content buf [01:45:54]Sock 9.Close socket [01:45:54]Sock 9.Thread stoped [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:19]accept exits with 7 [01:55:19]New connection [01:55:19]New thread 3067174244 created [01:55:19]Thread 3067317604 joined [01:55:19]Waiting for new connection... [01:55:19] Sock 7.Parse request [01:55:19]Sock 7.Check first char [01:55:19]Sock 7.First char is OK [01:55:19]request: POST /json_proto HTTP/1.0 [01:55:19]Method: POST [01:55:19]URL: /json_proto [01:55:19]Method is POST - this is cgi request [01:55:19]url: /json_proto [01:55:19]query_string will be loaded in cgi processing [01:55:19]execute_cgi json_proto POST (null) [01:55:19]execute_cgi path=json_proto method=POST [01:55:19]POST find Content-Length [01:55:19]Host: 172.17.96.197:8080 [01:55:19]Content-Length: 676 [01:55:19]Content-Type: application/json [01:55:19] [01:55:19]POST finish read [01:55:19]Found Content-Length = 676 [01:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48795", "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" ] } } [01:55:19]execute_script... [01:55: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)48795", "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" ] } } [01:55:19]POST & json_proto [01:55:19]process_json_proto [01:55:19]json parsed OK: [01:55:19]protocol is kg_v1.0 [01:55:19]action value=close_receipt [01:55:19]process_action close_receipt [01:55:19]cmd_close_receipt [01:55:19]MH_GetDate [01:55:19]Write to MH i2c: F0 00 00 E0 11 E0 [01:55:19]Write i2c OK [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: F0 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: F0 09 00 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: F0 09 00 E0 11 00 09 89 1C 66 E0 85 7F 64 45 [01:55:19]GetLastDocTimeStamp 1713145552 [01:55:19]current date 1713146121 [01:55:19]FM_GetShiftState [01:55:19]SAM_PROTO_GetShiftState [01:55:19]wFMCommunicate request_size=4 [01:55:19]MH_SAM_APDU [01:55:19]CAPDU: 80 13 01 00 [01:55:19]Write to MH i2c: E2 08 00 E1 11 80 13 01 00 00 00 00 00 6F [01:55:19]Write i2c OK [01:55:19]MH_I2C_Read... [01:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:19]Read from MH i2c: E2 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 0E 00 [01:55:19]MH_I2C_Read... [01:55:19]Read from MH i2c: E2 0E 00 E1 11 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 24 [01:55:19]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:55:19]wFMCommunicate OK [01:55:19]SAM_PROTO_GetShiftState done [01:55:19]FM_GetShiftState done [01:55:19]opened in 1713141170 [01:55:19]opened+sec_in_day 1713227570 [01:55:19]quantity*price = 60004 [01:55:19]sum+1 = 60006 [01:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 18 15.04.2024 01:55 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112518 ФПД: 36234118308944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T015521&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112518&fm=36234118308944&tin=02508201610067®Number=0000000000094237&sum=60000 [01:55:20]StoreToDocumentArchive [01:55:20]shift 358 fd 112518 [01:55:20]save to /storage/0358/doc_00112518 [01:55:20]save last doc name /storage/0358/doc_00112518 to /storage/kkm_last_doc_name [01:55:20]save OK [01:55:20]Clear old archive folders... [01:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:55:20]tlvbuf is 019D11E0 [01:55:20]SAM_PROTO_ClearQueue [01:55:20]wFMCommunicate request_size=4 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 09 00 00 [01:55:20]Write to MH i2c: E2 08 00 EE 11 80 09 00 00 00 00 00 00 71 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 EE 11 00 90 00 73 [01:55:20]RAPDU: 90 00 [01:55:20]wFMCommunicate OK [01:55:20]SAM_PROTO_ClearQueue done [01:55:20]KKMCreateOFDPacket [01:55:20]OFDProtocolAddRootSTLVToBuf [01:55:20]FM_MakeSignedData [01:55:20]FM_MakeSignedData [01:55:20]SAM_PROTO_SignData [01:55:20]wFMCommunicate request_size=4 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 0D 01 02 [01:55:20]Write to MH i2c: E2 08 00 EF 11 80 0D 01 02 00 00 00 00 79 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 EF 11 00 90 00 74 [01:55:20]RAPDU: 90 00 [01:55:20]wFMCommunicate OK [01:55:20]wFMCommunicate request_size=255 [01:55:20]MH_SAM_APDU [01:55:20]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 12 00 00 00 F4 03 04 00 09 89 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B7 01 00 35 04 06 00 20 [01:55:20]Write to MH i2c: E2 02 01 F0 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 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 12 00 00 00 F4 03 04 00 09 89 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B7 01 00 35 04 06 00 20 00 00 19 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:20]Read from MH i2c: E2 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 [01:55:20]MH_I2C_Read... [01:55:20]Read from MH i2c: E2 03 00 F0 11 00 90 00 75 [01:55:20]RAPDU: 90 00 [01:55:20]wFMCommunicate OK [01:55:20]wFMCommunicate request_size=10 [01:55:20]MH_SAM_APDU [01:55:20]CAPDU: 80 0D 02 02 05 F4 69 C0 24 50 [01:55:20]Write to MH i2c: E2 0D 00 F1 11 80 0D 02 02 05 00 F4 69 C0 24 50 00 00 17 [01:55:20]Write i2c OK [01:55:20]MH_I2C_Read... [01:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:55:21]Read from MH i2c: E2 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 03 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 03 00 F1 11 00 90 00 76 [01:55:21]RAPDU: 90 00 [01:55:21]wFMCommunicate OK [01:55:21]wFMCommunicate request_size=4 [01:55:21]MH_SAM_APDU [01:55:21]CAPDU: 80 0D 03 02 [01:55:21]Write to MH i2c: E2 08 00 F2 11 80 0D 03 02 00 00 00 00 7E [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:55:21]Read from MH i2c: E2 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 0B 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 0B 00 F2 11 00 A6 73 AB 05 69 60 A2 CB 90 00 7E [01:55:21]RAPDU: A6 73 AB 05 69 60 A2 CB 90 00 [01:55:21]wFMCommunicate OK [01:55:21]SAM_PROTO_SignData done [01:55:21]FM_MakeSignedData done [01:55:21]CreateOFDProtocolMessage [01:55:21]wFMCommunicate request_size=4 [01:55:21]MH_SAM_APDU [01:55:21]CAPDU: 80 11 00 00 [01:55:21]Write to MH i2c: E2 08 00 F3 11 80 11 00 00 00 00 00 00 7E [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:21]Read from MH i2c: E2 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 17 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: E2 17 00 F3 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CF [01:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:55:21]wFMCommunicate OK [01:55:21]CreateOFDProtocolMessage done [01:55:21]OFDSenderStorePacket 112518 [01:55:21]StoreOFDPacket docnum=112518 [01:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C3 79 07 01 52 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 09 89 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B7 01 00 35 04 06 00 20 F4 69 C0 24 50 A6 73 AB 05 69 60 A2 CB [01:55:21]CheckFolder [01:55:21]dirname=/storage/ofd_packets [01:55:21]CheckFolder done [01:55:21]ProducePacketName [01:55:21]name=ofd_packets/00112518 [01:55:21]NVStorageSaveData ofd_packets/00112518 [01:55:21]File name is /storage/ofd_packets/00112518 [01:55:21]Write 301 bytes [01:55:21]NVStorageSaveData done [01:55:21]OFDSenderStorePacket done [01:55:21]KKMCreateOFDPacket done [01:55:21]NVStorageSaveData kkm_last_timestamp [01:55:21]File name is /storage/kkm_last_timestamp [01:55:21]Write 4 bytes [01:55:21]NVStorageSaveData done [01:55:21]ExternCall_PrintAddStr [01:55:21]wPrintStart [01:55:21]Write to MH i2c: 01 00 00 F4 11 05 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 FF 0F 1A [01:55:21]RasterBufferAndPrint [01:55:21]line Счет N : (1)48795 [01:55:21]line ИНН: 02508201610067 [01:55:21]line Контрольно-Кассовый Чек [01:55:21]line ПРОДАЖА [01:55:21]line ТРК (МРК, ГНК) : 32 [01:55:21]line Товар: 2710124130 [01:55:21]line Аи-92-К-5 [01:55:21]line 9.260 * 64.80 [01:55:21]line = 600.05 [01:55:21]line НДС 12% НСП 1% [01:55:21]line > о реализуемом товаре [01:55:21]line ОКРУГЛЕНИЕ: -0.05 [01:55:21]line ИТОГО: 600.00 [01:55:21]line Внесено: 600.00 [01:55:21]line СДАЧА: 0.00 [01:55:21]line НСП 1% : 5.31 [01:55:21]line НДС 12% : 63.72 [01:55:21]line Наличными: 600.00 [01:55:21]line Безнал.: 0.00 [01:55:21]line Место: АЗС № 47 "Партнер Нефть" [01:55:21]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [01:55:21]line СНО: Общий режим [01:55:21]line Чек 18 15.04.2024 01:55 [01:55:21]line Смена: 358 ФФД: 1.0 [01:55:21]line ЗНМ: 0300000138 [01:55:21]line РНМ: 0000000000094237 [01:55:21]line Версия ККМ: 001 [01:55:21]line ФМ: 0000000000875019 [01:55:21]line ФД: 112518 [01:55:21]line ФПД: 36234118308944 [01:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T015521&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112518&fm=36234118308944&tin=02508201610067®Number=0000000000094237&sum=60000 [01:55:21]written 0, free lines is 4095 [01:55:21]OFD Sender: Processing packet 112518 [packets to send 71, broken 70] [01:55:21]ProducePacketName [01:55:21]name=ofd_packets/00112518 [01:55:21]OFD Sender: To server: pG, [01:55:21]CommunicateWithHost lk.salyk.kg:30040 [01:55:21]ConnectInit lk.salyk.kg [01:55:21]Connected sock=10 [01:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 C3 79 07 01 52 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 12 00 00 00 F4 03 04 00 09 89 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B7 01 00 35 04 06 00 20 F4 69 C0 24 50 A6 73 AB 05 69 60 A2 CB [01:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 72 D5 47 00 19 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 86 B7 01 00 F4 03 04 00 92 30 1C 66 B6 04 01 00 00 11 0C 1B 7D 20 C5 D4 09 [01:55:21]CommunicateWithHost err = 0 [01:55:21]CheckOFDResponse [01:55:21]1017 (14) - 77093643461234 [01:55:21]1041 (16) - 0000000000875019 [01:55:21]1040 (4) - 112518 [01:55:21]1012 (4) - 14.04.2024 19:37 [01:55:21]1206 (1) - 0 [01:55:21]OFD Sender: Remove packet 112518 [01:55:21]ProducePacketName [01:55:21]name=ofd_packets/00112518 [01:55:21]NVStorageDeleteData [01:55:21]Write to MH i2c: 01 00 00 1F 12 31 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: 01 07 00 1F 12 00 00 00 00 00 CD 0C 11 [01:55:21]RasterBufferAndPrint [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]line [01:55:21]written 0, free lines is 3284 [01:55:21]MH_Cut [01:55:21]Write to MH i2c: D1 01 00 26 12 01 0A [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 01 00 [01:55:21]MH_I2C_Read... [01:55:21]Read from MH i2c: D1 01 00 26 12 00 09 [01:55:21]Write to MH i2c: 01 00 00 27 12 39 [01:55:21]Write i2c OK [01:55:21]MH_I2C_Read... [01:55:22]OFD Sender: No OFD packet to send [01:55:22]*** Cut start [01:55:22]*** Partial cut [01:55:22]*** CUTSNS_PIN = 1 [01:55:22]*** CUTSNS_PIN = 0 [01:55:22]*** Brake cut motor [01:55:23]Read from MH i2c: 01 [01:55:23]MH_I2C_Read... [01:55:23]*** Stop cut motor [01:55:23]*** Cut end [01:55:23]Read from MH i2c: 01 07 00 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: 01 07 00 27 12 00 00 00 00 00 FF 0F 4E [01:55:23]process_action close_receipt done [01:55:23]requested_data is exist [01:55:23]produce_requested_data [01:55:23]requested_item fm.sn is exist - process it [01:55:23]wFMCommunicate request_size=4 [01:55:23]MH_SAM_APDU [01:55:23]CAPDU: 80 11 00 00 [01:55:23]Write to MH i2c: E2 08 00 28 12 80 11 00 00 00 00 00 00 B4 [01:55:23]Write i2c OK [01:55:23]MH_I2C_Read... [01:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:55:23]Read from MH i2c: E2 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 17 00 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 17 00 28 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 05 [01:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [01:55:23]wFMCommunicate OK [01:55:23]requested_item fd.num is exist - process it [01:55:23]SAM_PROTO_GetFieldsCounters [01:55:23]wFMCommunicate request_size=4 [01:55:23]MH_SAM_APDU [01:55:23]CAPDU: 80 13 00 00 [01:55:23]Write to MH i2c: E2 08 00 29 12 80 13 00 00 00 00 00 00 B7 [01:55:23]Write i2c OK [01:55:23]MH_I2C_Read... [01:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:55:23]Read from MH i2c: E2 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 62 00 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 62 00 29 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 86 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [01:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 86 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:55:23]wFMCommunicate OK [01:55:23]SAM_PROTO_GetFieldsCounters done [01:55:23]requested_item shift.num is exist - process it [01:55:23]requested_item shift.opened is exist - process it [01:55:23]req_shift_opened [01:55:23]FM_GetShiftState [01:55:23]SAM_PROTO_GetShiftState [01:55:23]wFMCommunicate request_size=4 [01:55:23]MH_SAM_APDU [01:55:23]CAPDU: 80 13 01 00 [01:55:23]Write to MH i2c: E2 08 00 2A 12 80 13 01 00 00 00 00 00 B9 [01:55:23]Write i2c OK [01:55:23]MH_I2C_Read... [01:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:55:23]Read from MH i2c: E2 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 0E 00 [01:55:23]MH_I2C_Read... [01:55:23]Read from MH i2c: E2 0E 00 2A 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 6E [01:55:23]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [01:55:23]wFMCommunicate OK [01:55:23]SAM_PROTO_GetShiftState done [01:55:23]FM_GetShiftState done [01:55:23]req_shift_opened done [01:55:23]requested_item shift.open_date is exist - process it [01:55:23]req_shift_open_date [01:55:23]req_shift_open_date done [01:55:23]produce_requested_data done [01:55:23]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112518,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [01:55:23]process_action_free close_receipt [01:55:23]json_value_free [01:55:23]json_value_free done [01:55:23]process_json_proto returns [01:55:23]Send response to host [01:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112518,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [01:55:23]free response buf [01:55:23]execute_script done [01:55:23]execute_script returns [01:55:23]free content buf [01:55:23]Sock 7.Close socket [01:55:23]Sock 7.Thread stoped [01:55:27]OFD Sender: No OFD packet to send [01:55:32]OFD Sender: No OFD packet to send [01:55:37]OFD Sender: No OFD packet to send [01:55:42]OFD Sender: No OFD packet to send [01:55:47]OFD Sender: No OFD packet to send [01:55:52]OFD Sender: No OFD packet to send [01:55:57]OFD Sender: No OFD packet to send [01:56:02]OFD Sender: No OFD packet to send [01:56:07]OFD Sender: No OFD packet to send [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:17]OFD Sender: No OFD packet to send [02:02:22]OFD Sender: No OFD packet to send [02:02:27]OFD Sender: No OFD packet to send [02:02:32]OFD Sender: No OFD packet to send [02:02:37]OFD Sender: No OFD packet to send [02:02:42]OFD Sender: No OFD packet to send [02:02:47]OFD Sender: No OFD packet to send [02:02:52]OFD Sender: No OFD packet to send [02:02:57]OFD Sender: No OFD packet to send [02:03:02]OFD Sender: No OFD packet to send [02:03:07]OFD Sender: No OFD packet to send [02:03:12]OFD Sender: No OFD packet to send [02:03:17]OFD Sender: No OFD packet to send [02:03:22]OFD Sender: No OFD packet to send [02:03:27]OFD Sender: No OFD packet to send [02:03:32]OFD Sender: No OFD packet to send [02:03:37]OFD Sender: No OFD packet to send [02:03:42]OFD Sender: No OFD packet to send [02:03:47]OFD Sender: No OFD packet to send [02:03:52]OFD Sender: No OFD packet to send [02:03:57]OFD Sender: No OFD packet to send [02:04:02]OFD Sender: No OFD packet to send [02:04:07]OFD Sender: No OFD packet to send [02:04:12]OFD Sender: No OFD packet to send [02:04:17]OFD Sender: No OFD packet to send [02:04:22]OFD Sender: No OFD packet to send [02:04:27]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:45]accept exits with 9 [02:09:45]New connection [02:09:45]New thread 3067317604 created [02:09:45]Thread 3067174244 joined [02:09:45]Waiting for new connection... [02:09:45] Sock 9.Parse request [02:09:45]Sock 9.Check first char [02:09:45]Sock 9.First char is OK [02:09:45]request: POST /json_proto HTTP/1.0 [02:09:45]Method: POST [02:09:45]URL: /json_proto [02:09:45]Method is POST - this is cgi request [02:09:45]url: /json_proto [02:09:45]query_string will be loaded in cgi processing [02:09:45]execute_cgi json_proto POST (null) [02:09:45]execute_cgi path=json_proto method=POST [02:09:45]POST find Content-Length [02:09:45]Host: 172.17.96.197:8080 [02:09:45]Content-Length: 676 [02:09:45]Content-Type: application/json [02:09:45] [02:09:45]POST finish read [02:09:45]Found Content-Length = 676 [02:09:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [02:09:45]execute_script... [02:09:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48796", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "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" ] } } [02:09:45]POST & json_proto [02:09:45]process_json_proto [02:09:45]json parsed OK: [02:09:45]protocol is kg_v1.0 [02:09:45]action value=close_receipt [02:09:45]process_action close_receipt [02:09:45]cmd_close_receipt [02:09:45]MH_GetDate [02:09:45]Write to MH i2c: F0 00 00 2B 12 2C [02:09:45]Write i2c OK [02:09:45]MH_I2C_Read... [02:09:45]Read from MH i2c: F0 [02:09:45]MH_I2C_Read... [02:09:45]Read from MH i2c: F0 09 00 [02:09:45]MH_I2C_Read... [02:09:45]Read from MH i2c: F0 09 00 2B 12 00 6B 8C 1C 66 E0 85 7F 64 F6 [02:09:45]GetLastDocTimeStamp 1713146121 [02:09:45]current date 1713146987 [02:09:45]FM_GetShiftState [02:09:45]SAM_PROTO_GetShiftState [02:09:45]wFMCommunicate request_size=4 [02:09:45]MH_SAM_APDU [02:09:45]CAPDU: 80 13 01 00 [02:09:45]Write to MH i2c: E2 08 00 2C 12 80 13 01 00 00 00 00 00 BB [02:09:45]Write i2c OK [02:09:45]MH_I2C_Read... [02:09:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:45]Read from MH i2c: E2 [02:09:45]MH_I2C_Read... [02:09:45]Read from MH i2c: E2 0E 00 [02:09:45]MH_I2C_Read... [02:09:45]Read from MH i2c: E2 0E 00 2C 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 70 [02:09:45]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:09:45]wFMCommunicate OK [02:09:45]SAM_PROTO_GetShiftState done [02:09:45]FM_GetShiftState done [02:09:45]opened in 1713141170 [02:09:45]opened+sec_in_day 1713227570 [02:09:45]quantity*price = 40046 [02:09:45]sum+1 = 40047 [02:09: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 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 19 15.04.2024 02:09 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112519 ФПД: 23728952617968 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T020947&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112519&fm=23728952617968&tin=02508201610067®Number=0000000000094237&sum=40000 [02:09:46]StoreToDocumentArchive [02:09:46]shift 358 fd 112519 [02:09:46]save to /storage/0358/doc_00112519 [02:09:46]save last doc name /storage/0358/doc_00112519 to /storage/kkm_last_doc_name [02:09:46]save OK [02:09:46]Clear old archive folders... [02:09:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:09:46]tlvbuf is 01A08E20 [02:09:46]SAM_PROTO_ClearQueue [02:09:46]wFMCommunicate request_size=4 [02:09:46]MH_SAM_APDU [02:09:46]CAPDU: 80 09 00 00 [02:09:46]Write to MH i2c: E2 08 00 39 12 80 09 00 00 00 00 00 00 BD [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 39 12 00 90 00 BF [02:09:46]RAPDU: 90 00 [02:09:46]wFMCommunicate OK [02:09:46]SAM_PROTO_ClearQueue done [02:09:46]KKMCreateOFDPacket [02:09:46]OFDProtocolAddRootSTLVToBuf [02:09:46]FM_MakeSignedData [02:09:46]FM_MakeSignedData [02:09:46]SAM_PROTO_SignData [02:09:46]wFMCommunicate request_size=4 [02:09:46]MH_SAM_APDU [02:09:46]CAPDU: 80 0D 01 02 [02:09:46]Write to MH i2c: E2 08 00 3A 12 80 0D 01 02 00 00 00 00 C5 [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 3A 12 00 90 00 C0 [02:09:46]RAPDU: 90 00 [02:09:46]wFMCommunicate OK [02:09:46]wFMCommunicate request_size=255 [02:09:46]MH_SAM_APDU [02:09: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 13 00 00 00 F4 03 04 00 6B 8C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B7 01 00 35 04 06 00 15 [02:09:46]Write to MH i2c: E2 02 01 3B 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 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 13 00 00 00 F4 03 04 00 6B 8C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B7 01 00 35 04 06 00 15 00 00 8B [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 3B 12 00 90 00 C1 [02:09:46]RAPDU: 90 00 [02:09:46]wFMCommunicate OK [02:09:46]wFMCommunicate request_size=10 [02:09:46]MH_SAM_APDU [02:09:46]CAPDU: 80 0D 02 02 05 94 D3 CA AB F0 [02:09:46]Write to MH i2c: E2 0D 00 3C 12 80 0D 02 02 05 00 94 D3 CA AB F0 00 00 9E [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 03 00 3C 12 00 90 00 C2 [02:09:46]RAPDU: 90 00 [02:09:46]wFMCommunicate OK [02:09:46]wFMCommunicate request_size=4 [02:09:46]MH_SAM_APDU [02:09:46]CAPDU: 80 0D 03 02 [02:09:46]Write to MH i2c: E2 08 00 3D 12 80 0D 03 02 00 00 00 00 CA [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 0B 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 0B 00 3D 12 00 9D 99 C7 4F 8E 7C BC A9 90 00 86 [02:09:46]RAPDU: 9D 99 C7 4F 8E 7C BC A9 90 00 [02:09:46]wFMCommunicate OK [02:09:46]SAM_PROTO_SignData done [02:09:46]FM_MakeSignedData done [02:09:46]CreateOFDProtocolMessage [02:09:46]wFMCommunicate request_size=4 [02:09:46]MH_SAM_APDU [02:09:46]CAPDU: 80 11 00 00 [02:09:46]Write to MH i2c: E2 08 00 3E 12 80 11 00 00 00 00 00 00 CA [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:46]Read from MH i2c: E2 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 17 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: E2 17 00 3E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 1B [02:09:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:09:46]wFMCommunicate OK [02:09:46]CreateOFDProtocolMessage done [02:09:46]OFDSenderStorePacket 112519 [02:09:46]StoreOFDPacket docnum=112519 [02:09:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 77 C1 07 01 F7 FF 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 13 00 00 00 F4 03 04 00 6B 8C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B7 01 00 35 04 06 00 15 94 D3 CA AB F0 9D 99 C7 4F 8E 7C BC A9 [02:09:46]CheckFolder [02:09:46]dirname=/storage/ofd_packets [02:09:46]CheckFolder done [02:09:46]ProducePacketName [02:09:46]name=ofd_packets/00112519 [02:09:46]NVStorageSaveData ofd_packets/00112519 [02:09:46]File name is /storage/ofd_packets/00112519 [02:09:46]Write 301 bytes [02:09:46]NVStorageSaveData done [02:09:46]OFDSenderStorePacket done [02:09:46]KKMCreateOFDPacket done [02:09:46]NVStorageSaveData kkm_last_timestamp [02:09:46]File name is /storage/kkm_last_timestamp [02:09:46]Write 4 bytes [02:09:46]NVStorageSaveData done [02:09:46]ExternCall_PrintAddStr [02:09:46]wPrintStart [02:09:46]Write to MH i2c: 01 00 00 3F 12 51 [02:09:46]Write i2c OK [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: 01 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: 01 07 00 [02:09:46]MH_I2C_Read... [02:09:46]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 FF 0F 66 [02:09:46]RasterBufferAndPrint [02:09:46]line Счет N : (1)48796 [02:09:46]line ИНН: 02508201610067 [02:09:46]line Контрольно-Кассовый Чек [02:09:46]line ПРОДАЖА [02:09:46]line ТРК (МРК, ГНК) : 21 [02:09:46]line Товар: 2710124130 [02:09:46]line Аи-92-К-5 [02:09:46]line 6.180 * 64.80 [02:09:46]line = 400.46 [02:09:46]line НДС 12% НСП 1% [02:09:46]line > о реализуемом товаре [02:09:46]line ОКРУГЛЕНИЕ: -0.46 [02:09:46]line ИТОГО: 400.00 [02:09:46]line Внесено: 400.00 [02:09:46]line СДАЧА: 0.00 [02:09:46]line НСП 1% : 3.54 [02:09:46]line НДС 12% : 42.53 [02:09:46]line Наличными: 400.00 [02:09:46]line Безнал.: 0.00 [02:09:46]line Место: АЗС № 47 "Партнер Нефть" [02:09:46]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [02:09:46]line СНО: Общий режим [02:09:46]line Чек 19 15.04.2024 02:09 [02:09:46]line Смена: 358 ФФД: 1.0 [02:09:46]line ЗНМ: 0300000138 [02:09:46]line РНМ: 0000000000094237 [02:09:46]line Версия ККМ: 001 [02:09:46]line ФМ: 0000000000875019 [02:09:46]line ФД: 112519 [02:09:46]line ФПД: 23728952617968 [02:09:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T020947&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112519&fm=23728952617968&tin=02508201610067®Number=0000000000094237&sum=40000 [02:09:47]written 0, free lines is 4095 [02:09:47]OFD Sender: Processing packet 112519 [packets to send 71, broken 70] [02:09:47]ProducePacketName [02:09:47]name=ofd_packets/00112519 [02:09:47]OFD Sender: To server: pG, [02:09:47]CommunicateWithHost lk.salyk.kg:30040 [02:09:47]ConnectInit lk.salyk.kg [02:09:47]Connected sock=10 [02:09:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 77 C1 07 01 F7 FF 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 13 00 00 00 F4 03 04 00 6B 8C 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B7 01 00 35 04 06 00 15 94 D3 CA AB F0 9D 99 C7 4F 8E 7C BC A9 [02:09:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 4D E5 47 00 3D F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 87 B7 01 00 F4 03 04 00 F4 33 1C 66 B6 04 01 00 00 53 B8 FE 8A A0 D5 73 12 [02:09:47]CommunicateWithHost err = 0 [02:09:47]CheckOFDResponse [02:09:47]1017 (14) - 77093643461234 [02:09:47]1041 (16) - 0000000000875019 [02:09:47]1040 (4) - 112519 [02:09:47]1012 (4) - 14.04.2024 19:52 [02:09:47]1206 (1) - 0 [02:09:47]OFD Sender: Remove packet 112519 [02:09:47]ProducePacketName [02:09:47]name=ofd_packets/00112519 [02:09:47]NVStorageDeleteData [02:09:47]Write to MH i2c: 01 00 00 6A 12 7C [02:09:47]Write i2c OK [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: 01 [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: 01 07 00 [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: 01 07 00 6A 12 00 00 00 00 00 D8 0C 67 [02:09:47]RasterBufferAndPrint [02:09:47]line [02:09:47]line [02:09:47]line [02:09:47]line [02:09:47]line [02:09:47]written 0, free lines is 3295 [02:09:47]MH_Cut [02:09:47]Write to MH i2c: D1 01 00 71 12 01 55 [02:09:47]Write i2c OK [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: D1 [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: D1 01 00 [02:09:47]MH_I2C_Read... [02:09:47]Read from MH i2c: D1 01 00 71 12 00 54 [02:09:47]Write to MH i2c: 01 00 00 72 12 84 [02:09:47]Write i2c OK [02:09:47]MH_I2C_Read... [02:09:48]OFD Sender: No OFD packet to send [02:09:48]*** Cut start [02:09:48]*** Partial cut [02:09:48]*** CUTSNS_PIN = 1 [02:09:48]*** CUTSNS_PIN = 0 [02:09:48]*** Brake cut motor [02:09:49]Read from MH i2c: 01 [02:09:49]MH_I2C_Read... [02:09:49]*** Stop cut motor [02:09:49]*** Cut end [02:09:49]Read from MH i2c: 01 07 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: 01 07 00 72 12 00 00 00 00 00 FF 0F 99 [02:09:49]process_action close_receipt done [02:09:49]requested_data is exist [02:09:49]produce_requested_data [02:09:49]requested_item fm.sn is exist - process it [02:09:49]wFMCommunicate request_size=4 [02:09:49]MH_SAM_APDU [02:09:49]CAPDU: 80 11 00 00 [02:09:49]Write to MH i2c: E2 08 00 73 12 80 11 00 00 00 00 00 00 FF [02:09:49]Write i2c OK [02:09:49]MH_I2C_Read... [02:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:09:49]Read from MH i2c: E2 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 17 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 17 00 73 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 50 [02:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:09:49]wFMCommunicate OK [02:09:49]requested_item fd.num is exist - process it [02:09:49]SAM_PROTO_GetFieldsCounters [02:09:49]wFMCommunicate request_size=4 [02:09:49]MH_SAM_APDU [02:09:49]CAPDU: 80 13 00 00 [02:09:49]Write to MH i2c: E2 08 00 74 12 80 13 00 00 00 00 00 00 02 [02:09:49]Write i2c OK [02:09:49]MH_I2C_Read... [02:09:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:09:49]Read from MH i2c: E2 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 62 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 62 00 74 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 87 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [02:09:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 87 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:09:49]wFMCommunicate OK [02:09:49]SAM_PROTO_GetFieldsCounters done [02:09:49]requested_item shift.num is exist - process it [02:09:49]requested_item shift.opened is exist - process it [02:09:49]req_shift_opened [02:09:49]FM_GetShiftState [02:09:49]SAM_PROTO_GetShiftState [02:09:49]wFMCommunicate request_size=4 [02:09:49]MH_SAM_APDU [02:09:49]CAPDU: 80 13 01 00 [02:09:49]Write to MH i2c: E2 08 00 75 12 80 13 01 00 00 00 00 00 04 [02:09:49]Write i2c OK [02:09:49]MH_I2C_Read... [02:09:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:09:49]Read from MH i2c: E2 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 0E 00 [02:09:49]MH_I2C_Read... [02:09:49]Read from MH i2c: E2 0E 00 75 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 B9 [02:09:49]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:09:49]wFMCommunicate OK [02:09:49]SAM_PROTO_GetShiftState done [02:09:49]FM_GetShiftState done [02:09:49]req_shift_opened done [02:09:49]requested_item shift.open_date is exist - process it [02:09:49]req_shift_open_date [02:09:49]req_shift_open_date done [02:09:49]produce_requested_data done [02:09:49]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112519,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [02:09:49]process_action_free close_receipt [02:09:49]json_value_free [02:09:49]json_value_free done [02:09:49]process_json_proto returns [02:09:49]Send response to host [02:09:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112519,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [02:09:49]free response buf [02:09:49]execute_script done [02:09:49]execute_script returns [02:09:49]free content buf [02:09:49]Sock 9.Close socket [02:09:49]Sock 9.Thread stoped [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:12]accept exits with 7 [02:14:12]New connection [02:14:12]New thread 3067174244 created [02:14:12]Thread 3067317604 joined [02:14:12]Waiting for new connection... [02:14:12] Sock 7.Parse request [02:14:12]Sock 7.Check first char [02:14:12]Sock 7.First char is OK [02:14:12]request: POST /json_proto HTTP/1.0 [02:14:12]Method: POST [02:14:12]URL: /json_proto [02:14:12]Method is POST - this is cgi request [02:14:12]url: /json_proto [02:14:12]query_string will be loaded in cgi processing [02:14:12]execute_cgi json_proto POST (null) [02:14:12]execute_cgi path=json_proto method=POST [02:14:12]POST find Content-Length [02:14:12]Host: 172.17.96.197:8080 [02:14:12]Content-Length: 967 [02:14:12]Content-Type: application/json [02:14:12] [02:14:12]POST finish read [02:14:12]Found Content-Length = 967 [02:14:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10468", "tax_sys" : 0, "items" : [ { "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682409458", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:12]execute_script... [02:14:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10468", "tax_sys" : 0, "items" : [ { "code": "4870145004302", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 7 \u044D\u043A\u0441\u043F 0,5\u043B \u0436/\u0431", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600682409458", "name": "\u041F\u0438\u0432\u043E \u0411\u0430\u043B\u0442\u0438\u043A\u0430 9 \u043A\u0440\u0435\u043F 0,5\u043B \u0436/\u0431", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 345.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:14:12]POST & json_proto [02:14:12]process_json_proto [02:14:12]json parsed OK: [02:14:12]protocol is kg_v1.0 [02:14:12]action value=close_receipt [02:14:12]process_action close_receipt [02:14:12]cmd_close_receipt [02:14:12]MH_GetDate [02:14:12]Write to MH i2c: F0 00 00 76 12 77 [02:14:12]Write i2c OK [02:14:12]MH_I2C_Read... [02:14:12]Read from MH i2c: F0 [02:14:12]MH_I2C_Read... [02:14:12]Read from MH i2c: F0 09 00 [02:14:12]MH_I2C_Read... [02:14:12]Read from MH i2c: F0 09 00 76 12 00 76 8D 1C 66 E0 85 7F 64 4D [02:14:12]GetLastDocTimeStamp 1713146987 [02:14:12]current date 1713147254 [02:14:12]FM_GetShiftState [02:14:12]SAM_PROTO_GetShiftState [02:14:12]wFMCommunicate request_size=4 [02:14:12]MH_SAM_APDU [02:14:12]CAPDU: 80 13 01 00 [02:14:12]Write to MH i2c: E2 08 00 77 12 80 13 01 00 00 00 00 00 06 [02:14:12]Write i2c OK [02:14:12]MH_I2C_Read... [02:14:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:12]Read from MH i2c: E2 [02:14:12]MH_I2C_Read... [02:14:12]Read from MH i2c: E2 0E 00 [02:14:12]MH_I2C_Read... [02:14:12]Read from MH i2c: E2 0E 00 77 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 BB [02:14:12]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:14:12]wFMCommunicate OK [02:14:12]SAM_PROTO_GetShiftState done [02:14:12]FM_GetShiftState done [02:14:12]opened in 1713141170 [02:14:12]opened+sec_in_day 1713227570 [02:14:12]quantity*price = 11500 [02:14:12]sum+1 = 11501 [02:14:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600682409458 Пиво Балтика 9 креп 0,5л ж/б 2.000 * 115.00 = 230.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 345.00 НСП 1% : 3.05 НДС 12% : 36.63 Наличными: 345.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 20 15.04.2024 02:14 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112520 ФПД: 91780193868144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T021414&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112520&fm=91780193868144&tin=02508201610067®Number=0000000000094237&sum=34500 0 [02:14:14]StoreToDocumentArchive [02:14:14]shift 358 fd 112520 [02:14:14]save to /storage/0358/doc_00112520 [02:14:14]save last doc name /storage/0358/doc_00112520 to /storage/kkm_last_doc_name [02:14:14]save OK [02:14:14]Clear old archive folders... [02:14:14]ProcessDocumentItem done err = 0, tmpTLVsize=406 [02:14:14]tlvbuf is 01A24810 [02:14:14]SAM_PROTO_ClearQueue [02:14:14]wFMCommunicate request_size=4 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 09 00 00 [02:14:14]Write to MH i2c: E2 08 00 84 12 80 09 00 00 00 00 00 00 08 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 84 12 00 90 00 0A [02:14:14]RAPDU: 90 00 [02:14:14]wFMCommunicate OK [02:14:14]SAM_PROTO_ClearQueue done [02:14:14]KKMCreateOFDPacket [02:14:14]OFDProtocolAddRootSTLVToBuf [02:14:14]FM_MakeSignedData [02:14:14]FM_MakeSignedData [02:14:14]SAM_PROTO_SignData [02:14:14]wFMCommunicate request_size=4 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 0D 01 02 [02:14:14]Write to MH i2c: E2 08 00 85 12 80 0D 01 02 00 00 00 00 10 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 85 12 00 90 00 0B [02:14:14]RAPDU: 90 00 [02:14:14]wFMCommunicate OK [02:14:14]wFMCommunicate request_size=255 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 30 36 38 32 34 30 39 34 35 38 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 [02:14:14]Write to MH i2c: E2 02 01 86 12 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 30 36 38 32 34 30 39 34 35 38 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 00 00 D9 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 86 12 00 90 00 0C [02:14:14]RAPDU: 90 00 [02:14:14]wFMCommunicate OK [02:14:14]wFMCommunicate request_size=165 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 0D 02 02 A0 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 76 8D 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B7 01 00 35 04 06 00 53 79 3D DA 59 70 [02:14:14]Write to MH i2c: E2 A8 00 87 12 80 0D 02 02 A0 00 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 76 8D 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B7 01 00 35 04 06 00 53 79 3D DA 59 70 00 00 D9 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [02:14:14]RAPDU: 90 00 [02:14:14]wFMCommunicate OK [02:14:14]wFMCommunicate request_size=4 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 0D 03 02 [02:14:14]Write to MH i2c: E2 08 00 88 12 80 0D 03 02 00 00 00 00 15 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 0B 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 0B 00 88 12 00 9B 1B 7A 09 5D 68 C9 E3 90 00 C0 [02:14:14]RAPDU: 9B 1B 7A 09 5D 68 C9 E3 90 00 [02:14:14]wFMCommunicate OK [02:14:14]SAM_PROTO_SignData done [02:14:14]FM_MakeSignedData done [02:14:14]CreateOFDProtocolMessage [02:14:14]wFMCommunicate request_size=4 [02:14:14]MH_SAM_APDU [02:14:14]CAPDU: 80 11 00 00 [02:14:14]Write to MH i2c: E2 08 00 89 12 80 11 00 00 00 00 00 00 15 [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:14]Read from MH i2c: E2 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 17 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: E2 17 00 89 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 66 [02:14:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:14:14]wFMCommunicate OK [02:14:14]CreateOFDProtocolMessage done [02:14:14]OFDSenderStorePacket 112520 [02:14:14]StoreOFDPacket docnum=112520 [02:14:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AA 01 00 00 A0 7C A2 01 B3 AB 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 30 36 38 32 34 30 39 34 35 38 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 76 8D 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B7 01 00 35 04 06 00 53 79 3D DA 59 70 9B 1B 7A 09 5D 68 C9 E3 [02:14:14]CheckFolder [02:14:14]dirname=/storage/ofd_packets [02:14:14]CheckFolder done [02:14:14]ProducePacketName [02:14:14]name=ofd_packets/00112520 [02:14:14]NVStorageSaveData ofd_packets/00112520 [02:14:14]File name is /storage/ofd_packets/00112520 [02:14:14]Write 456 bytes [02:14:14]NVStorageSaveData done [02:14:14]OFDSenderStorePacket done [02:14:14]KKMCreateOFDPacket done [02:14:14]NVStorageSaveData kkm_last_timestamp [02:14:14]File name is /storage/kkm_last_timestamp [02:14:14]Write 4 bytes [02:14:14]NVStorageSaveData done [02:14:14]ExternCall_PrintAddStr [02:14:14]wPrintStart [02:14:14]Write to MH i2c: 01 00 00 8A 12 9C [02:14:14]Write i2c OK [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: 01 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: 01 07 00 [02:14:14]MH_I2C_Read... [02:14:14]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 FF 0F B1 [02:14:14]RasterBufferAndPrint [02:14:14]line Счет N : (3)10468 [02:14:14]line ИНН: 02508201610067 [02:14:14]line Контрольно-Кассовый Чек [02:14:14]line ПРОДАЖА [02:14:14]line Товар: 4870145004302 [02:14:14]line Пиво Балтика 7 эксп 0,5л ж/б [02:14:14]line 1.000 * 115.00 [02:14:14]line = 115.00 [02:14:14]line НДС 12% НСП 1% [02:14:14]line > о реализуемом товаре [02:14:14]line Товар: 4600682409458 [02:14:14]line Пиво Балтика 9 креп 0,5л ж/б [02:14:14]line 2.000 * 115.00 [02:14:14]line = 230.00 [02:14:14]line НДС 12% НСП 1% [02:14:14]line > о реализуемом товаре [02:14:14]line ИТОГО: 345.00 [02:14:14]line НСП 1% : 3.05 [02:14:14]line НДС 12% : 36.63 [02:14:14]line Наличными: 345.00 [02:14:14]line Безнал.: 0.00 [02:14:14]line Место: АЗС № 47 "Партнер Нефть" [02:14:14]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [02:14:14]line СНО: Общий режим [02:14:14]line Чек 20 15.04.2024 02:14 [02:14:14]line Смена: 358 ФФД: 1.0 [02:14:14]line ЗНМ: 0300000138 [02:14:14]line РНМ: 0000000000094237 [02:14:14]line Версия ККМ: 001 [02:14:14]line ФМ: 0000000000875019 [02:14:14]line ФД: 112520 [02:14:14]line ФПД: 91780193868144 [02:14:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T021414&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112520&fm=91780193868144&tin=02508201610067®Number=0000000000094237&sum=34500 [02:14:14]line 0 [02:14:14]written 0, free lines is 4095 [02:14:14]OFD Sender: Processing packet 112520 [packets to send 71, broken 70] [02:14:14]ProducePacketName [02:14:14]name=ofd_packets/00112520 [02:14:14]OFD Sender: To server: pG, [02:14:14]CommunicateWithHost lk.salyk.kg:30040 [02:14:14]ConnectInit lk.salyk.kg [02:14:14]Connected sock=10 [02:14:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 AA 01 00 00 A0 7C A2 01 B3 AB 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 33 30 32 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 37 20 D1 8D D0 BA D1 81 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 30 36 38 32 34 30 39 34 35 38 06 04 2E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 B0 D0 BB D1 82 D0 B8 D0 BA D0 B0 20 39 20 D0 BA D1 80 D0 B5 D0 BF 20 30 2C 35 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4F 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 76 8D 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B7 01 00 35 04 06 00 53 79 3D DA 59 70 9B 1B 7A 09 5D 68 C9 E3 [02:14:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 01 F9 47 00 C1 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 88 B7 01 00 F4 03 04 00 00 35 1C 66 B6 04 01 00 00 1C 6B 4D 9B 60 3A A0 BE [02:14:15]CommunicateWithHost err = 0 [02:14:15]CheckOFDResponse [02:14:15]1017 (14) - 77093643461234 [02:14:15]1041 (16) - 0000000000875019 [02:14:15]1040 (4) - 112520 [02:14:15]1012 (4) - 14.04.2024 19:56 [02:14:15]1206 (1) - 0 [02:14:15]OFD Sender: Remove packet 112520 [02:14:15]ProducePacketName [02:14:15]name=ofd_packets/00112520 [02:14:15]NVStorageDeleteData [02:14:15]Write to MH i2c: 01 00 00 B8 12 CA [02:14:15]Write i2c OK [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: 01 [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: 01 07 00 [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: 01 07 00 B8 12 00 00 00 00 00 B3 0C 90 [02:14:15]RasterBufferAndPrint [02:14:15]line [02:14:15]line [02:14:15]line [02:14:15]line [02:14:15]line [02:14:15]written 0, free lines is 3257 [02:14:15]MH_Cut [02:14:15]Write to MH i2c: D1 01 00 BF 12 01 A3 [02:14:15]Write i2c OK [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: D1 [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: D1 01 00 [02:14:15]MH_I2C_Read... [02:14:15]Read from MH i2c: D1 01 00 BF 12 00 A2 [02:14:15]Write to MH i2c: 01 00 00 C0 12 D2 [02:14:15]Write i2c OK [02:14:15]MH_I2C_Read... [02:14:15]OFD Sender: No OFD packet to send [02:14:15]*** Cut start [02:14:15]*** Partial cut [02:14:15]*** CUTSNS_PIN = 1 [02:14:16]*** CUTSNS_PIN = 0 [02:14:16]*** Brake cut motor [02:14:16]Read from MH i2c: 01 [02:14:16]MH_I2C_Read... [02:14:16]*** Stop cut motor [02:14:16]*** Cut end [02:14:16]Read from MH i2c: 01 07 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 FF 0F E7 [02:14:16]process_action close_receipt done [02:14:16]requested_data is exist [02:14:16]produce_requested_data [02:14:16]requested_item fm.sn is exist - process it [02:14:16]wFMCommunicate request_size=4 [02:14:16]MH_SAM_APDU [02:14:16]CAPDU: 80 11 00 00 [02:14:16]Write to MH i2c: E2 08 00 C1 12 80 11 00 00 00 00 00 00 4D [02:14:16]Write i2c OK [02:14:16]MH_I2C_Read... [02:14:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:14:16]Read from MH i2c: E2 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 17 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 17 00 C1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 9E [02:14:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:14:16]wFMCommunicate OK [02:14:16]requested_item fd.num is exist - process it [02:14:16]SAM_PROTO_GetFieldsCounters [02:14:16]wFMCommunicate request_size=4 [02:14:16]MH_SAM_APDU [02:14:16]CAPDU: 80 13 00 00 [02:14:16]Write to MH i2c: E2 08 00 C2 12 80 13 00 00 00 00 00 00 50 [02:14:16]Write i2c OK [02:14:16]MH_I2C_Read... [02:14:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:14:16]Read from MH i2c: E2 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 62 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 62 00 C2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 88 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [02:14:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 88 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:14:16]wFMCommunicate OK [02:14:16]SAM_PROTO_GetFieldsCounters done [02:14:16]requested_item shift.num is exist - process it [02:14:16]requested_item shift.opened is exist - process it [02:14:16]req_shift_opened [02:14:16]FM_GetShiftState [02:14:16]SAM_PROTO_GetShiftState [02:14:16]wFMCommunicate request_size=4 [02:14:16]MH_SAM_APDU [02:14:16]CAPDU: 80 13 01 00 [02:14:16]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [02:14:16]Write i2c OK [02:14:16]MH_I2C_Read... [02:14:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:14:16]Read from MH i2c: E2 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 0E 00 [02:14:16]MH_I2C_Read... [02:14:16]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 07 [02:14:16]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:14:16]wFMCommunicate OK [02:14:16]SAM_PROTO_GetShiftState done [02:14:16]FM_GetShiftState done [02:14:16]req_shift_opened done [02:14:16]requested_item shift.open_date is exist - process it [02:14:16]req_shift_open_date [02:14:16]req_shift_open_date done [02:14:16]produce_requested_data done [02:14:16]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112520,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [02:14:16]process_action_free close_receipt [02:14:16]json_value_free [02:14:16]json_value_free done [02:14:16]process_json_proto returns [02:14:16]Send response to host [02:14:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112520,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [02:14:16]free response buf [02:14:16]execute_script done [02:14:16]execute_script returns [02:14:16]free content buf [02:14:16]Sock 7.Close socket [02:14:16]Sock 7.Thread stoped [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:31]OFD Sender: No OFD packet to send [02:20:36]OFD Sender: No OFD packet to send [02:20:41]OFD Sender: No OFD packet to send [02:20:46]OFD Sender: No OFD packet to send [02:20:51]OFD Sender: No OFD packet to send [02:20:56]OFD Sender: No OFD packet to send [02:21:01]OFD Sender: No OFD packet to send [02:21:06]OFD Sender: No OFD packet to send [02:21:11]OFD Sender: No OFD packet to send [02:21:16]OFD Sender: No OFD packet to send [02:21:21]OFD Sender: No OFD packet to send [02:21:26]OFD Sender: No OFD packet to send [02:21:31]OFD Sender: No OFD packet to send [02:21:36]OFD Sender: No OFD packet to send [02:21:41]OFD Sender: No OFD packet to send [02:21:46]OFD Sender: No OFD packet to send [02:21:51]OFD Sender: No OFD packet to send [02:21:56]OFD Sender: No OFD packet to send [02:22:01]OFD Sender: No OFD packet to send [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:27:57]accept exits with 9 [02:27:57]New connection [02:27:57]New thread 3067317604 created [02:27:57]Thread 3067174244 joined [02:27:57]Waiting for new connection... [02:27:57] Sock 9.Parse request [02:27:57]Sock 9.Check first char [02:27:57]Sock 9.First char is OK [02:27:57]request: POST /json_proto HTTP/1.0 [02:27:57]Method: POST [02:27:57]URL: /json_proto [02:27:57]Method is POST - this is cgi request [02:27:57]url: /json_proto [02:27:57]query_string will be loaded in cgi processing [02:27:57]execute_cgi json_proto POST (null) [02:27:57]execute_cgi path=json_proto method=POST [02:27:57]POST find Content-Length [02:27:57]Host: 172.17.96.197:8080 [02:27:57]Content-Length: 797 [02:27:57]Content-Type: application/json [02:27:57] [02:27:57]POST finish read [02:27:57]Found Content-Length = 797 [02:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10469", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:57]execute_script... [02:27:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10469", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:27:57]POST & json_proto [02:27:57]process_json_proto [02:27:57]json parsed OK: [02:27:57]protocol is kg_v1.0 [02:27:57]action value=close_receipt [02:27:57]process_action close_receipt [02:27:57]cmd_close_receipt [02:27:57]MH_GetDate [02:27:57]Write to MH i2c: F0 00 00 C4 12 C5 [02:27:57]Write i2c OK [02:27:57]MH_I2C_Read... [02:27:57]Read from MH i2c: F0 [02:27:57]MH_I2C_Read... [02:27:57]Read from MH i2c: F0 09 00 [02:27:57]MH_I2C_Read... [02:27:57]Read from MH i2c: F0 09 00 C4 12 00 AF 90 1C 66 E0 85 7F 64 D7 [02:27:57]GetLastDocTimeStamp 1713147254 [02:27:57]current date 1713148079 [02:27:57]FM_GetShiftState [02:27:57]SAM_PROTO_GetShiftState [02:27:57]wFMCommunicate request_size=4 [02:27:57]MH_SAM_APDU [02:27:57]CAPDU: 80 13 01 00 [02:27:57]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [02:27:57]Write i2c OK [02:27:57]MH_I2C_Read... [02:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:27:57]Read from MH i2c: E2 [02:27:57]MH_I2C_Read... [02:27:57]Read from MH i2c: E2 0E 00 [02:27:57]MH_I2C_Read... [02:27:57]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 09 [02:27:57]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:27:57]wFMCommunicate OK [02:27:57]SAM_PROTO_GetShiftState done [02:27:57]FM_GetShiftState done [02:27:57]opened in 1713141170 [02:27:57]opened+sec_in_day 1713227570 [02:27:57]quantity*price = 13500 [02:27:57]sum+1 = 13501 [02:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 21 15.04.2024 02:27 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000875019 ФД: 112521 ФПД: 164365055379496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T022759&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112521&fm=164365055379496&tin=02508201610067®Number=0000000000094237&sum=13500 0 [02:27:58]StoreToDocumentArchive [02:27:58]shift 358 fd 112521 [02:27:58]save to /storage/0358/doc_00112521 [02:27:58]save last doc name /storage/0358/doc_00112521 to /storage/kkm_last_doc_name [02:27:58]save OK [02:27:58]Clear old archive folders... [02:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [02:27:58]tlvbuf is 019F4EF0 [02:27:58]SAM_PROTO_ClearQueue [02:27:58]wFMCommunicate request_size=4 [02:27:58]MH_SAM_APDU [02:27:58]CAPDU: 80 09 00 00 [02:27:58]Write to MH i2c: E2 08 00 D2 12 80 09 00 00 00 00 00 00 56 [02:27:58]Write i2c OK [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 [02:27:58]MH_I2C_Read... [02:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:27:58]Read from MH i2c: E2 03 00 [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [02:27:58]RAPDU: 90 00 [02:27:58]wFMCommunicate OK [02:27:58]SAM_PROTO_ClearQueue done [02:27:58]KKMCreateOFDPacket [02:27:58]OFDProtocolAddRootSTLVToBuf [02:27:58]FM_MakeSignedData [02:27:58]FM_MakeSignedData [02:27:58]SAM_PROTO_SignData [02:27:58]wFMCommunicate request_size=4 [02:27:58]MH_SAM_APDU [02:27:58]CAPDU: 80 0D 01 02 [02:27:58]Write to MH i2c: E2 08 00 D3 12 80 0D 01 02 00 00 00 00 5E [02:27:58]Write i2c OK [02:27:58]MH_I2C_Read... [02:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:27:58]Read from MH i2c: E2 [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 03 00 [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [02:27:58]RAPDU: 90 00 [02:27:58]wFMCommunicate OK [02:27:58]wFMCommunicate request_size=255 [02:27:58]MH_SAM_APDU [02:27:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AF 90 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 [02:27:58]Write to MH i2c: E2 02 01 D4 12 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AF 90 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 00 00 7E [02:27:58]Write i2c OK [02:27:58]MH_I2C_Read... [02:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:58]Read from MH i2c: E2 [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 03 00 [02:27:58]MH_I2C_Read... [02:27:58]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [02:27:58]RAPDU: 90 00 [02:27:58]wFMCommunicate OK [02:27:58]wFMCommunicate request_size=32 [02:27:58]MH_SAM_APDU [02:27:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B7 01 00 35 04 06 00 95 7D 38 BD 48 28 [02:27:58]Write to MH i2c: E2 23 00 D5 12 80 0D 02 02 1B 00 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B7 01 00 35 04 06 00 95 7D 38 BD 48 28 00 00 74 [02:27:58]Write i2c OK [02:27:58]MH_I2C_Read... [02:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:27:59]Read from MH i2c: E2 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 03 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [02:27:59]RAPDU: 90 00 [02:27:59]wFMCommunicate OK [02:27:59]wFMCommunicate request_size=4 [02:27:59]MH_SAM_APDU [02:27:59]CAPDU: 80 0D 03 02 [02:27:59]Write to MH i2c: E2 08 00 D6 12 80 0D 03 02 00 00 00 00 63 [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:27:59]Read from MH i2c: E2 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 0B 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 0B 00 D6 12 00 DD A3 52 FB 8B F2 8D D8 90 00 13 [02:27:59]RAPDU: DD A3 52 FB 8B F2 8D D8 90 00 [02:27:59]wFMCommunicate OK [02:27:59]SAM_PROTO_SignData done [02:27:59]FM_MakeSignedData done [02:27:59]CreateOFDProtocolMessage [02:27:59]wFMCommunicate request_size=4 [02:27:59]MH_SAM_APDU [02:27:59]CAPDU: 80 11 00 00 [02:27:59]Write to MH i2c: E2 08 00 D7 12 80 11 00 00 00 00 00 00 63 [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:27:59]Read from MH i2c: E2 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 17 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: E2 17 00 D7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 B4 [02:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:27:59]wFMCommunicate OK [02:27:59]CreateOFDProtocolMessage done [02:27:59]OFDSenderStorePacket 112521 [02:27:59]StoreOFDPacket docnum=112521 [02:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 5F 74 1D 01 94 6F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AF 90 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B7 01 00 35 04 06 00 95 7D 38 BD 48 28 DD A3 52 FB 8B F2 8D D8 [02:27:59]CheckFolder [02:27:59]dirname=/storage/ofd_packets [02:27:59]CheckFolder done [02:27:59]ProducePacketName [02:27:59]name=ofd_packets/00112521 [02:27:59]NVStorageSaveData ofd_packets/00112521 [02:27:59]File name is /storage/ofd_packets/00112521 [02:27:59]Write 323 bytes [02:27:59]NVStorageSaveData done [02:27:59]OFDSenderStorePacket done [02:27:59]KKMCreateOFDPacket done [02:27:59]NVStorageSaveData kkm_last_timestamp [02:27:59]File name is /storage/kkm_last_timestamp [02:27:59]Write 4 bytes [02:27:59]NVStorageSaveData done [02:27:59]OFD Sender: Processing packet 112521 [packets to send 71, broken 70] [02:27:59]ProducePacketName [02:27:59]name=ofd_packets/00112521 [02:27:59]OFD Sender: To server: pG, [02:27:59]CommunicateWithHost lk.salyk.kg:30040 [02:27:59]ConnectInit lk.salyk.kg [02:27:59]ExternCall_PrintAddStr [02:27:59]wPrintStart [02:27:59]Write to MH i2c: 01 00 00 D8 12 EA [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 07 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 FF 0F FF [02:27:59]RasterBufferAndPrint [02:27:59]line Счет N : (3)10469 [02:27:59]line ИНН: 02508201610067 [02:27:59]line Контрольно-Кассовый Чек [02:27:59]line ПРОДАЖА [02:27:59]line Товар: 48743570 [02:27:59]line Сигареты Winston XStyle Blue [02:27:59]line 1.000 * 135.00 [02:27:59]line = 135.00 [02:27:59]line НДС 12% НСП 1% [02:27:59]line > о реализуемом товаре [02:27:59]line ИТОГО: 135.00 [02:27:59]line НСП 1% : 1.19 [02:27:59]line НДС 12% : 14.34 [02:27:59]line Наличными: 0.00 [02:27:59]line Безнал.: 135.00 [02:27:59]line Место: АЗС № 47 "Партнер Нефть" [02:27:59]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [02:27:59]line СНО: Общий режим [02:27:59]line Чек 21 15.04.2024 02:27 [02:27:59]line Смена: 358 ФФД: 1.0 [02:27:59]line ЗНМ: 0300000138 [02:27:59]line РНМ: 0000000000094237 [02:27:59]line Версия ККМ: 001 [02:27:59]line Платежная система: Бакай Банк [02:27:59]line ФМ: 0000000000875019 [02:27:59]line ФД: 112521 [02:27:59]line ФПД: 164365055379496 [02:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T022759&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112521&fm=164365055379496&tin=02508201610067®Number=0000000000094237&sum=13500 [02:27:59]line 0 [02:27:59]Connected sock=11 [02:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 25 01 00 00 5F 74 1D 01 94 6F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 AF 90 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B7 01 00 35 04 06 00 95 7D 38 BD 48 28 DD A3 52 FB 8B F2 8D D8 [02:27:59]written 0, free lines is 4095 [02:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 EA 41 47 00 F7 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 89 B7 01 00 F4 03 04 00 38 38 1C 66 B6 04 01 00 00 26 F5 8C A9 87 D2 BB B5 [02:27:59]CommunicateWithHost err = 0 [02:27:59]CheckOFDResponse [02:27:59]1017 (14) - 77093643461234 [02:27:59]1041 (16) - 0000000000875019 [02:27:59]1040 (4) - 112521 [02:27:59]1012 (4) - 14.04.2024 20:10 [02:27:59]1206 (1) - 0 [02:27:59]OFD Sender: Remove packet 112521 [02:27:59]ProducePacketName [02:27:59]name=ofd_packets/00112521 [02:27:59]NVStorageDeleteData [02:27:59]Write to MH i2c: 01 00 00 02 13 15 [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 07 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: 01 07 00 02 13 00 00 00 00 00 CF 0C F7 [02:27:59]RasterBufferAndPrint [02:27:59]line [02:27:59]line [02:27:59]line [02:27:59]line [02:27:59]line [02:27:59]written 0, free lines is 3286 [02:27:59]MH_Cut [02:27:59]Write to MH i2c: D1 01 00 09 13 01 EE [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: D1 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: D1 01 00 [02:27:59]MH_I2C_Read... [02:27:59]Read from MH i2c: D1 01 00 09 13 00 ED [02:27:59]Write to MH i2c: 01 00 00 0A 13 1D [02:27:59]Write i2c OK [02:27:59]MH_I2C_Read... [02:28:00]OFD Sender: No OFD packet to send [02:28:00]*** Cut start [02:28:00]*** Partial cut [02:28:00]*** CUTSNS_PIN = 1 [02:28:00]*** CUTSNS_PIN = 0 [02:28:01]*** Brake cut motor [02:28:01]Read from MH i2c: 01 [02:28:01]MH_I2C_Read... [02:28:01]*** Stop cut motor [02:28:01]*** Cut end [02:28:01]Read from MH i2c: 01 07 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: 01 07 00 0A 13 00 00 00 00 00 FF 0F 32 [02:28:01]process_action close_receipt done [02:28:01]requested_data is exist [02:28:01]produce_requested_data [02:28:01]requested_item fm.sn is exist - process it [02:28:01]wFMCommunicate request_size=4 [02:28:01]MH_SAM_APDU [02:28:01]CAPDU: 80 11 00 00 [02:28:01]Write to MH i2c: E2 08 00 0B 13 80 11 00 00 00 00 00 00 98 [02:28:01]Write i2c OK [02:28:01]MH_I2C_Read... [02:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:28:01]Read from MH i2c: E2 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 17 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 17 00 0B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 E9 [02:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:28:01]wFMCommunicate OK [02:28:01]requested_item fd.num is exist - process it [02:28:01]SAM_PROTO_GetFieldsCounters [02:28:01]wFMCommunicate request_size=4 [02:28:01]MH_SAM_APDU [02:28:01]CAPDU: 80 13 00 00 [02:28:01]Write to MH i2c: E2 08 00 0C 13 80 13 00 00 00 00 00 00 9B [02:28:01]Write i2c OK [02:28:01]MH_I2C_Read... [02:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:28:01]Read from MH i2c: E2 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 62 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 62 00 0C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 89 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 A1 [02:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 89 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:28:01]wFMCommunicate OK [02:28:01]SAM_PROTO_GetFieldsCounters done [02:28:01]requested_item shift.num is exist - process it [02:28:01]requested_item shift.opened is exist - process it [02:28:01]req_shift_opened [02:28:01]FM_GetShiftState [02:28:01]SAM_PROTO_GetShiftState [02:28:01]wFMCommunicate request_size=4 [02:28:01]MH_SAM_APDU [02:28:01]CAPDU: 80 13 01 00 [02:28:01]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [02:28:01]Write i2c OK [02:28:01]MH_I2C_Read... [02:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:28:01]Read from MH i2c: E2 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 0E 00 [02:28:01]MH_I2C_Read... [02:28:01]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 52 [02:28:01]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:28:01]wFMCommunicate OK [02:28:01]SAM_PROTO_GetShiftState done [02:28:01]FM_GetShiftState done [02:28:01]req_shift_opened done [02:28:01]requested_item shift.open_date is exist - process it [02:28:01]req_shift_open_date [02:28:01]req_shift_open_date done [02:28:01]produce_requested_data done [02:28:01]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112521,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [02:28:01]process_action_free close_receipt [02:28:01]json_value_free [02:28:01]json_value_free done [02:28:01]process_json_proto returns [02:28:01]Send response to host [02:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112521,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [02:28:01]free response buf [02:28:01]execute_script done [02:28:01]execute_script returns [02:28:01]free content buf [02:28:01]Sock 9.Close socket [02:28:01]Sock 9.Thread stoped [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:17]accept exits with 7 [02:33:17]New connection [02:33:17]New thread 3067174244 created [02:33:17]Thread 3067317604 joined [02:33:17]Waiting for new connection... [02:33:17] Sock 7.Parse request [02:33:17]Sock 7.Check first char [02:33:17]Sock 7.First char is OK [02:33:17]request: POST /json_proto HTTP/1.0 [02:33:17]Method: POST [02:33:17]URL: /json_proto [02:33:17]Method is POST - this is cgi request [02:33:17]url: /json_proto [02:33:17]query_string will be loaded in cgi processing [02:33:17]execute_cgi json_proto POST (null) [02:33:17]execute_cgi path=json_proto method=POST [02:33:17]POST find Content-Length [02:33:17]Host: 172.17.96.197:8080 [02:33:17]Content-Length: 656 [02:33:17]Content-Type: application/json [02:33:17] [02:33:17]POST finish read [02:33:17]Found Content-Length = 656 [02:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10470", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:17]execute_script... [02:33:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10470", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:33:17]POST & json_proto [02:33:17]process_json_proto [02:33:17]json parsed OK: [02:33:17]protocol is kg_v1.0 [02:33:17]action value=close_receipt [02:33:17]process_action close_receipt [02:33:17]cmd_close_receipt [02:33:17]MH_GetDate [02:33:17]Write to MH i2c: F0 00 00 0E 13 10 [02:33:17]Write i2c OK [02:33:17]MH_I2C_Read... [02:33:17]Read from MH i2c: F0 [02:33:17]MH_I2C_Read... [02:33:17]Read from MH i2c: F0 09 00 [02:33:17]MH_I2C_Read... [02:33:17]Read from MH i2c: F0 09 00 0E 13 00 EF 91 1C 66 E0 85 7F 64 63 [02:33:17]GetLastDocTimeStamp 1713148079 [02:33:17]current date 1713148399 [02:33:17]FM_GetShiftState [02:33:17]SAM_PROTO_GetShiftState [02:33:17]wFMCommunicate request_size=4 [02:33:17]MH_SAM_APDU [02:33:17]CAPDU: 80 13 01 00 [02:33:17]Write to MH i2c: E2 08 00 0F 13 80 13 01 00 00 00 00 00 9F [02:33:17]Write i2c OK [02:33:17]MH_I2C_Read... [02:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:17]Read from MH i2c: E2 [02:33:17]MH_I2C_Read... [02:33:17]Read from MH i2c: E2 0E 00 [02:33:17]MH_I2C_Read... [02:33:17]Read from MH i2c: E2 0E 00 0F 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 54 [02:33:17]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:33:17]wFMCommunicate OK [02:33:17]SAM_PROTO_GetShiftState done [02:33:17]FM_GetShiftState done [02:33:17]opened in 1713141170 [02:33:17]opened+sec_in_day 1713227570 [02:33:17]quantity*price = 9500 [02:33:17]sum+1 = 9501 [02:33:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 22 15.04.2024 02:33 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112522 ФПД: 184860689086453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T023319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112522&fm=184860689086453&tin=02508201610067®Number=0000000000094237&sum=9500 0 [02:33:18]StoreToDocumentArchive [02:33:18]shift 358 fd 112522 [02:33:18]save to /storage/0358/doc_00112522 [02:33:18]save last doc name /storage/0358/doc_00112522 to /storage/kkm_last_doc_name [02:33:18]save OK [02:33:18]Clear old archive folders... [02:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=288 [02:33:18]tlvbuf is 019F5B80 [02:33:18]SAM_PROTO_ClearQueue [02:33:18]wFMCommunicate request_size=4 [02:33:18]MH_SAM_APDU [02:33:18]CAPDU: 80 09 00 00 [02:33:18]Write to MH i2c: E2 08 00 1C 13 80 09 00 00 00 00 00 00 A1 [02:33:18]Write i2c OK [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 [02:33:18]MH_I2C_Read... [02:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:33:18]Read from MH i2c: E2 03 00 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [02:33:18]RAPDU: 90 00 [02:33:18]wFMCommunicate OK [02:33:18]SAM_PROTO_ClearQueue done [02:33:18]KKMCreateOFDPacket [02:33:18]OFDProtocolAddRootSTLVToBuf [02:33:18]FM_MakeSignedData [02:33:18]FM_MakeSignedData [02:33:18]SAM_PROTO_SignData [02:33:18]wFMCommunicate request_size=4 [02:33:18]MH_SAM_APDU [02:33:18]CAPDU: 80 0D 01 02 [02:33:18]Write to MH i2c: E2 08 00 1D 13 80 0D 01 02 00 00 00 00 A9 [02:33:18]Write i2c OK [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 [02:33:18]MH_I2C_Read... [02:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:33:18]Read from MH i2c: E2 03 00 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [02:33:18]RAPDU: 90 00 [02:33:18]wFMCommunicate OK [02:33:18]wFMCommunicate request_size=255 [02:33:18]MH_SAM_APDU [02:33:18]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 91 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [02:33:18]Write to MH i2c: E2 02 01 1E 13 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 91 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 13 [02:33:18]Write i2c OK [02:33:18]MH_I2C_Read... [02:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:18]Read from MH i2c: E2 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 1E 13 00 90 00 A5 [02:33:18]RAPDU: 90 00 [02:33:18]wFMCommunicate OK [02:33:18]wFMCommunicate request_size=47 [02:33:18]MH_SAM_APDU [02:33:18]CAPDU: 80 0D 02 02 2A 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B7 01 00 35 04 06 00 A8 21 3B B4 B7 F5 [02:33:18]Write to MH i2c: E2 32 00 1F 13 80 0D 02 02 2A 00 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B7 01 00 35 04 06 00 A8 21 3B B4 B7 F5 00 00 10 [02:33:18]Write i2c OK [02:33:18]MH_I2C_Read... [02:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:33:18]Read from MH i2c: E2 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 [02:33:18]MH_I2C_Read... [02:33:18]Read from MH i2c: E2 03 00 1F 13 00 90 00 A6 [02:33:18]RAPDU: 90 00 [02:33:18]wFMCommunicate OK [02:33:18]wFMCommunicate request_size=4 [02:33:18]MH_SAM_APDU [02:33:18]CAPDU: 80 0D 03 02 [02:33:18]Write to MH i2c: E2 08 00 20 13 80 0D 03 02 00 00 00 00 AE [02:33:18]Write i2c OK [02:33:18]MH_I2C_Read... [02:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:33:19]Read from MH i2c: E2 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: E2 0B 00 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: E2 0B 00 20 13 00 F3 05 BF 42 EB 34 83 32 90 00 7C [02:33:19]RAPDU: F3 05 BF 42 EB 34 83 32 90 00 [02:33:19]wFMCommunicate OK [02:33:19]SAM_PROTO_SignData done [02:33:19]FM_MakeSignedData done [02:33:19]CreateOFDProtocolMessage [02:33:19]wFMCommunicate request_size=4 [02:33:19]MH_SAM_APDU [02:33:19]CAPDU: 80 11 00 00 [02:33:19]Write to MH i2c: E2 08 00 21 13 80 11 00 00 00 00 00 00 AE [02:33:19]Write i2c OK [02:33:19]MH_I2C_Read... [02:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:19]Read from MH i2c: E2 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: E2 17 00 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: E2 17 00 21 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 FF [02:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:33:19]wFMCommunicate OK [02:33:19]CreateOFDProtocolMessage done [02:33:19]OFDSenderStorePacket 112522 [02:33:19]StoreOFDPacket docnum=112522 [02:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 34 01 00 00 1D E8 2C 01 17 BD 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 91 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B7 01 00 35 04 06 00 A8 21 3B B4 B7 F5 F3 05 BF 42 EB 34 83 32 [02:33:19]CheckFolder [02:33:19]dirname=/storage/ofd_packets [02:33:19]CheckFolder done [02:33:19]ProducePacketName [02:33:19]name=ofd_packets/00112522 [02:33:19]NVStorageSaveData ofd_packets/00112522 [02:33:19]File name is /storage/ofd_packets/00112522 [02:33:19]Write 338 bytes [02:33:19]NVStorageSaveData done [02:33:19]OFDSenderStorePacket done [02:33:19]KKMCreateOFDPacket done [02:33:19]NVStorageSaveData kkm_last_timestamp [02:33:19]File name is /storage/kkm_last_timestamp [02:33:19]Write 4 bytes [02:33:19]NVStorageSaveData done [02:33:19]ExternCall_PrintAddStr [02:33:19]wPrintStart [02:33:19]Write to MH i2c: 01 00 00 22 13 35 [02:33:19]Write i2c OK [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 07 00 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 07 00 22 13 00 00 00 00 00 FF 0F 4A [02:33:19]RasterBufferAndPrint [02:33:19]line Счет N : (3)10470 [02:33:19]line ИНН: 02508201610067 [02:33:19]line Контрольно-Кассовый Чек [02:33:19]line ПРОДАЖА [02:33:19]line Товар: 4700000481453 [02:33:19]line Напиток энерг Nitro Max 0,45 ж/б [02:33:19]line 1.000 * 95.00 [02:33:19]line = 95.00 [02:33:19]line НДС 12% НСП 1% [02:33:19]line > о реализуемом товаре [02:33:19]line ИТОГО: 95.00 [02:33:19]line НСП 1% : 0.84 [02:33:19]line НДС 12% : 10.09 [02:33:19]line Наличными: 95.00 [02:33:19]line Безнал.: 0.00 [02:33:19]line Место: АЗС № 47 "Партнер Нефть" [02:33:19]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [02:33:19]line СНО: Общий режим [02:33:19]line Чек 22 15.04.2024 02:33 [02:33:19]line Смена: 358 ФФД: 1.0 [02:33:19]line ЗНМ: 0300000138 [02:33:19]line РНМ: 0000000000094237 [02:33:19]line Версия ККМ: 001 [02:33:19]line ФМ: 0000000000875019 [02:33:19]line ФД: 112522 [02:33:19]line ФПД: 184860689086453 [02:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T023319&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112522&fm=184860689086453&tin=02508201610067®Number=0000000000094237&sum=9500 [02:33:19]line 0 [02:33:19]OFD Sender: Processing packet 112522 [packets to send 71, broken 70] [02:33:19]ProducePacketName [02:33:19]name=ofd_packets/00112522 [02:33:19]OFD Sender: To server: pG, [02:33:19]CommunicateWithHost lk.salyk.kg:30040 [02:33:19]ConnectInit lk.salyk.kg [02:33:19]written 0, free lines is 4095 [02:33:19]Connected sock=10 [02:33:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 34 01 00 00 1D E8 2C 01 17 BD 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 EF 91 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B7 01 00 35 04 06 00 A8 21 3B B4 B7 F5 F3 05 BF 42 EB 34 83 32 [02:33:19]Write to MH i2c: 01 00 00 4B 13 5E [02:33:19]Write i2c OK [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 07 00 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: 01 07 00 4B 13 00 00 00 00 00 E5 0C 56 [02:33:19]RasterBufferAndPrint [02:33:19]line [02:33:19]line [02:33:19]line [02:33:19]line [02:33:19]line [02:33:19]written 0, free lines is 3310 [02:33:19]MH_Cut [02:33:19]Write to MH i2c: D1 01 00 52 13 01 37 [02:33:19]Write i2c OK [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: D1 [02:33:19]MH_I2C_Read... [02:33:19]Read from MH i2c: D1 01 00 [02:33:19]MH_I2C_Read... [02:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 52 77 47 00 39 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8A B7 01 00 F4 03 04 00 78 39 1C 66 B6 04 01 00 00 5E 31 66 9C A6 6E 8A 4E [02:33:19]CommunicateWithHost err = 0 [02:33:19]CheckOFDResponse [02:33:19]1017 (14) - 77093643461234 [02:33:19]1041 (16) - 0000000000875019 [02:33:19]1040 (4) - 112522 [02:33:19]1012 (4) - 14.04.2024 20:15 [02:33:19]1206 (1) - 0 [02:33:19]OFD Sender: Remove packet 112522 [02:33:19]ProducePacketName [02:33:19]name=ofd_packets/00112522 [02:33:19]NVStorageDeleteData [02:33:19]Read from MH i2c: D1 01 00 52 13 00 36 [02:33:19]Write to MH i2c: 01 00 00 53 13 66 [02:33:19]Write i2c OK [02:33:19]MH_I2C_Read... [02:33:20]OFD Sender: No OFD packet to send [02:33:20]*** Cut start [02:33:20]*** Partial cut [02:33:20]*** CUTSNS_PIN = 1 [02:33:20]*** CUTSNS_PIN = 0 [02:33:20]*** Brake cut motor [02:33:21]Read from MH i2c: 01 [02:33:21]MH_I2C_Read... [02:33:21]*** Stop cut motor [02:33:21]*** Cut end [02:33:21]Read from MH i2c: 01 07 00 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: 01 07 00 53 13 00 00 00 00 00 FF 0F 7B [02:33:21]process_action close_receipt done [02:33:21]requested_data is exist [02:33:21]produce_requested_data [02:33:21]requested_item fm.sn is exist - process it [02:33:21]wFMCommunicate request_size=4 [02:33:21]MH_SAM_APDU [02:33:21]CAPDU: 80 11 00 00 [02:33:21]Write to MH i2c: E2 08 00 54 13 80 11 00 00 00 00 00 00 E1 [02:33:21]Write i2c OK [02:33:21]MH_I2C_Read... [02:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:33:21]Read from MH i2c: E2 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 17 00 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 17 00 54 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 32 [02:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:33:21]wFMCommunicate OK [02:33:21]requested_item fd.num is exist - process it [02:33:21]SAM_PROTO_GetFieldsCounters [02:33:21]wFMCommunicate request_size=4 [02:33:21]MH_SAM_APDU [02:33:21]CAPDU: 80 13 00 00 [02:33:21]Write to MH i2c: E2 08 00 55 13 80 13 00 00 00 00 00 00 E4 [02:33:21]Write i2c OK [02:33:21]MH_I2C_Read... [02:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:33:21]Read from MH i2c: E2 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 62 00 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 62 00 55 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8A B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 EE [02:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8A B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:33:21]wFMCommunicate OK [02:33:21]SAM_PROTO_GetFieldsCounters done [02:33:21]requested_item shift.num is exist - process it [02:33:21]requested_item shift.opened is exist - process it [02:33:21]req_shift_opened [02:33:21]FM_GetShiftState [02:33:21]SAM_PROTO_GetShiftState [02:33:21]wFMCommunicate request_size=4 [02:33:21]MH_SAM_APDU [02:33:21]CAPDU: 80 13 01 00 [02:33:21]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [02:33:21]Write i2c OK [02:33:21]MH_I2C_Read... [02:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:33:21]Read from MH i2c: E2 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 0E 00 [02:33:21]MH_I2C_Read... [02:33:21]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 9B [02:33:21]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:33:21]wFMCommunicate OK [02:33:21]SAM_PROTO_GetShiftState done [02:33:21]FM_GetShiftState done [02:33:21]req_shift_opened done [02:33:21]requested_item shift.open_date is exist - process it [02:33:21]req_shift_open_date [02:33:21]req_shift_open_date done [02:33:21]produce_requested_data done [02:33:21]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112522,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [02:33:21]process_action_free close_receipt [02:33:21]json_value_free [02:33:21]json_value_free done [02:33:21]process_json_proto returns [02:33:21]Send response to host [02:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112522,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [02:33:21]free response buf [02:33:21]execute_script done [02:33:21]execute_script returns [02:33:21]free content buf [02:33:21]Sock 7.Close socket [02:33:21]Sock 7.Thread stoped [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34:05]OFD Sender: No OFD packet to send [02:34:10]OFD Sender: No OFD packet to send [02:34:15]OFD Sender: No OFD packet to send [02:34:20]OFD Sender: No OFD packet to send [02:34:25]OFD Sender: No OFD packet to send [02:34:30]OFD Sender: No OFD packet to send [02:34:35]OFD Sender: No OFD packet to send [02:34:40]OFD Sender: No OFD packet to send [02:34:45]OFD Sender: No OFD packet to send [02:34:50]OFD Sender: No OFD packet to send [02:34:55]OFD Sender: No OFD packet to send [02:35:00]OFD Sender: No OFD packet to send [02:35:05]OFD Sender: No OFD packet to send [02:35:10]OFD Sender: No OFD packet to send [02:35:15]OFD Sender: No OFD packet to send [02:35:20]OFD Sender: No OFD packet to send [02:35:25]OFD Sender: No OFD packet to send [02:35:30]OFD Sender: No OFD packet to send [02:35:35]OFD Sender: No OFD packet to send [02:35:40]OFD Sender: No OFD packet to send [02:35:45]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:00]accept exits with 9 [02:50:00]New connection [02:50:00]New thread 3067317604 created [02:50:00]Thread 3067174244 joined [02:50:00]Waiting for new connection... [02:50:00] Sock 9.Parse request [02:50:00]Sock 9.Check first char [02:50:00]Sock 9.First char is OK [02:50:00]request: POST /json_proto HTTP/1.0 [02:50:00]Method: POST [02:50:00]URL: /json_proto [02:50:00]Method is POST - this is cgi request [02:50:00]url: /json_proto [02:50:00]query_string will be loaded in cgi processing [02:50:00]execute_cgi json_proto POST (null) [02:50:00]execute_cgi path=json_proto method=POST [02:50:00]POST find Content-Length [02:50:00]Host: 172.17.96.197:8080 [02:50:00]Content-Length: 670 [02:50:00]Content-Type: application/json [02:50:00] [02:50:00]POST finish read [02:50:00]Found Content-Length = 670 [02:50:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48797", "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 }]} ], "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" ] } } [02:50:00]execute_script... [02:50: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)48797", "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 }]} ], "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" ] } } [02:50:00]POST & json_proto [02:50:00]process_json_proto [02:50:00]json parsed OK: [02:50:00]protocol is kg_v1.0 [02:50:00]action value=close_receipt [02:50:00]process_action close_receipt [02:50:00]cmd_close_receipt [02:50:00]MH_GetDate [02:50:00]Write to MH i2c: F0 00 00 57 13 59 [02:50:00]Write i2c OK [02:50:00]MH_I2C_Read... [02:50:00]Read from MH i2c: F0 [02:50:00]MH_I2C_Read... [02:50:00]Read from MH i2c: F0 09 00 [02:50:00]MH_I2C_Read... [02:50:00]Read from MH i2c: F0 09 00 57 13 00 DA 95 1C 66 E0 85 7F 64 9B [02:50:00]GetLastDocTimeStamp 1713148399 [02:50:00]current date 1713149402 [02:50:00]FM_GetShiftState [02:50:00]SAM_PROTO_GetShiftState [02:50:00]wFMCommunicate request_size=4 [02:50:00]MH_SAM_APDU [02:50:00]CAPDU: 80 13 01 00 [02:50:00]Write to MH i2c: E2 08 00 58 13 80 13 01 00 00 00 00 00 E8 [02:50:00]Write i2c OK [02:50:00]MH_I2C_Read... [02:50:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:00]Read from MH i2c: E2 [02:50:00]MH_I2C_Read... [02:50:00]Read from MH i2c: E2 0E 00 [02:50:00]MH_I2C_Read... [02:50:00]Read from MH i2c: E2 0E 00 58 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 9D [02:50:00]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:50:00]wFMCommunicate OK [02:50:00]SAM_PROTO_GetShiftState done [02:50:00]FM_GetShiftState done [02:50:00]opened in 1713141170 [02:50:00]opened+sec_in_day 1713227570 [02:50:00]quantity*price = 70011 [02:50:00]sum+1 = 70012 [02:50:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.35 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 23 15.04.2024 02:50 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112523 ФПД: 11076877353944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T025002&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112523&fm=11076877353944&tin=02508201610067®Number=0000000000094237&sum=70000 [02:50:01]StoreToDocumentArchive [02:50:01]shift 358 fd 112523 [02:50:01]save to /storage/0358/doc_00112523 [02:50:01]save last doc name /storage/0358/doc_00112523 to /storage/kkm_last_doc_name [02:50:01]save OK [02:50:01]Clear old archive folders... [02:50:01]ProcessDocumentItem done err = 0, tmpTLVsize=252 [02:50:01]tlvbuf is 019FD140 [02:50:01]SAM_PROTO_ClearQueue [02:50:01]wFMCommunicate request_size=4 [02:50:01]MH_SAM_APDU [02:50:01]CAPDU: 80 09 00 00 [02:50:01]Write to MH i2c: E2 08 00 65 13 80 09 00 00 00 00 00 00 EA [02:50:01]Write i2c OK [02:50:01]MH_I2C_Read... [02:50:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:01]Read from MH i2c: E2 [02:50:01]MH_I2C_Read... [02:50:01]Read from MH i2c: E2 03 00 [02:50:01]MH_I2C_Read... [02:50:01]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [02:50:01]RAPDU: 90 00 [02:50:01]wFMCommunicate OK [02:50:01]SAM_PROTO_ClearQueue done [02:50:01]KKMCreateOFDPacket [02:50:01]OFDProtocolAddRootSTLVToBuf [02:50:01]FM_MakeSignedData [02:50:01]FM_MakeSignedData [02:50:01]SAM_PROTO_SignData [02:50:01]wFMCommunicate request_size=4 [02:50:01]MH_SAM_APDU [02:50:01]CAPDU: 80 0D 01 02 [02:50:01]Write to MH i2c: E2 08 00 66 13 80 0D 01 02 00 00 00 00 F2 [02:50:01]Write i2c OK [02:50:01]MH_I2C_Read... [02:50:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:01]Read from MH i2c: E2 [02:50:01]MH_I2C_Read... [02:50:01]Read from MH i2c: E2 03 00 [02:50:01]MH_I2C_Read... [02:50:01]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [02:50:01]RAPDU: 90 00 [02:50:01]wFMCommunicate OK [02:50:01]wFMCommunicate request_size=255 [02:50:01]MH_SAM_APDU [02:50: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 20 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 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 0B 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 17 00 00 00 F4 03 04 00 DA 95 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B7 01 00 35 04 06 00 [02:50:01]Write to MH i2c: E2 02 01 67 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 20 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 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 0B 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 17 00 00 00 F4 03 04 00 DA 95 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B7 01 00 35 04 06 00 00 00 F6 [02:50:01]Write i2c OK [02:50:01]MH_I2C_Read... [02:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:02]Read from MH i2c: E2 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 03 00 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 03 00 67 13 00 90 00 EE [02:50:02]RAPDU: 90 00 [02:50:02]wFMCommunicate OK [02:50:02]wFMCommunicate request_size=11 [02:50:02]MH_SAM_APDU [02:50:02]CAPDU: 80 0D 02 02 06 0A 13 09 57 03 D8 [02:50:02]Write to MH i2c: E2 0E 00 68 13 80 0D 02 02 06 00 0A 13 09 57 03 D8 00 00 59 [02:50:02]Write i2c OK [02:50:02]MH_I2C_Read... [02:50:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:02]Read from MH i2c: E2 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 03 00 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 03 00 68 13 00 90 00 EF [02:50:02]RAPDU: 90 00 [02:50:02]wFMCommunicate OK [02:50:02]wFMCommunicate request_size=4 [02:50:02]MH_SAM_APDU [02:50:02]CAPDU: 80 0D 03 02 [02:50:02]Write to MH i2c: E2 08 00 69 13 80 0D 03 02 00 00 00 00 F7 [02:50:02]Write i2c OK [02:50:02]MH_I2C_Read... [02:50:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:02]Read from MH i2c: E2 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 0B 00 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 0B 00 69 13 00 0C 7A 2E A2 5D 8E 7A 3D 90 00 F0 [02:50:02]RAPDU: 0C 7A 2E A2 5D 8E 7A 3D 90 00 [02:50:02]wFMCommunicate OK [02:50:02]SAM_PROTO_SignData done [02:50:02]FM_MakeSignedData done [02:50:02]CreateOFDProtocolMessage [02:50:02]wFMCommunicate request_size=4 [02:50:02]MH_SAM_APDU [02:50:02]CAPDU: 80 11 00 00 [02:50:02]Write to MH i2c: E2 08 00 6A 13 80 11 00 00 00 00 00 00 F7 [02:50:02]Write i2c OK [02:50:02]MH_I2C_Read... [02:50:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:02]Read from MH i2c: E2 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 17 00 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: E2 17 00 6A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 48 [02:50:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:50:02]wFMCommunicate OK [02:50:02]CreateOFDProtocolMessage done [02:50:02]OFDSenderStorePacket 112523 [02:50:02]StoreOFDPacket docnum=112523 [02:50:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 4D 3A 08 01 1D D3 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 20 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 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 0B 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 17 00 00 00 F4 03 04 00 DA 95 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B7 01 00 35 04 06 00 0A 13 09 57 03 D8 0C 7A 2E A2 5D 8E 7A 3D [02:50:02]CheckFolder [02:50:02]dirname=/storage/ofd_packets [02:50:02]CheckFolder done [02:50:02]ProducePacketName [02:50:02]name=ofd_packets/00112523 [02:50:02]NVStorageSaveData ofd_packets/00112523 [02:50:02]File name is /storage/ofd_packets/00112523 [02:50:02]Write 302 bytes [02:50:02]NVStorageSaveData done [02:50:02]OFDSenderStorePacket done [02:50:02]KKMCreateOFDPacket done [02:50:02]NVStorageSaveData kkm_last_timestamp [02:50:02]File name is /storage/kkm_last_timestamp [02:50:02]Write 4 bytes [02:50:02]NVStorageSaveData done [02:50:02]OFD Sender: Processing packet 112523 [packets to send 71, broken 70] [02:50:02]ProducePacketName [02:50:02]name=ofd_packets/00112523 [02:50:02]OFD Sender: To server: pG, [02:50:02]CommunicateWithHost lk.salyk.kg:30040 [02:50:02]ConnectInit lk.salyk.kg [02:50:02]ExternCall_PrintAddStr [02:50:02]wPrintStart [02:50:02]Write to MH i2c: 01 00 00 6B 13 7E [02:50:02]Write i2c OK [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: 01 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: 01 07 00 [02:50:02]MH_I2C_Read... [02:50:02]Read from MH i2c: 01 07 00 6B 13 00 00 00 00 00 FF 0F 93 [02:50:02]RasterBufferAndPrint [02:50:02]line Счет N : (1)48797 [02:50:02]line ИНН: 02508201610067 [02:50:02]line Контрольно-Кассовый Чек [02:50:02]line ПРОДАЖА [02:50:02]line ТРК (МРК, ГНК) : 31 [02:50:02]line Товар: 2710124130 [02:50:02]line SUPER 92-К-5 [02:50:02]line 10.640 * 65.80 [02:50:02]line = 700.11 [02:50:02]line НДС 12% НСП 1% [02:50:02]line > о реализуемом товаре [02:50:02]line ОКРУГЛЕНИЕ: -0.11 [02:50:02]line ИТОГО: 700.00 [02:50:02]line Внесено: 700.00 [02:50:02]line СДАЧА: 0.00 [02:50:02]line НСП 1% : 6.20 [02:50:02]line НДС 12% : 74.35 [02:50:02]line Наличными: 700.00 [02:50:02]line Безнал.: 0.00 [02:50:02]line Место: АЗС № 47 "Партнер Нефть" [02:50:02]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [02:50:02]line СНО: Общий режим [02:50:02]line Чек 23 15.04.2024 02:50 [02:50:02]line Смена: 358 ФФД: 1.0 [02:50:02]line ЗНМ: 0300000138 [02:50:02]line РНМ: 0000000000094237 [02:50:02]line Версия ККМ: 001 [02:50:02]line ФМ: 0000000000875019 [02:50:02]line ФД: 112523 [02:50:02]line ФПД: 11076877353944 [02:50:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T025002&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112523&fm=11076877353944&tin=02508201610067®Number=0000000000094237&sum=70000 [02:50:02]Connected sock=11 [02:50:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 01 00 00 4D 3A 08 01 1D D3 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 20 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 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 0B 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 17 00 00 00 F4 03 04 00 DA 95 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B7 01 00 35 04 06 00 0A 13 09 57 03 D8 0C 7A 2E A2 5D 8E 7A 3D [02:50:02]written 0, free lines is 4095 [02:50:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 82 52 47 00 C2 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8B B7 01 00 F4 03 04 00 64 3D 1C 66 B6 04 01 00 00 41 C1 EB E9 71 A8 2A FA [02:50:02]CommunicateWithHost err = 0 [02:50:02]CheckOFDResponse [02:50:02]1017 (14) - 77093643461234 [02:50:02]1041 (16) - 0000000000875019 [02:50:02]1040 (4) - 112523 [02:50:02]1012 (4) - 14.04.2024 20:32 [02:50:02]1206 (1) - 0 [02:50:02]OFD Sender: Remove packet 112523 [02:50:02]ProducePacketName [02:50:02]name=ofd_packets/00112523 [02:50:02]NVStorageDeleteData [02:50:03]Write to MH i2c: 01 00 00 96 13 A9 [02:50:03]Write i2c OK [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: 01 [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: 01 07 00 [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: 01 07 00 96 13 00 00 00 00 00 CF 0C 8B [02:50:03]RasterBufferAndPrint [02:50:03]line [02:50:03]line [02:50:03]line [02:50:03]line [02:50:03]line [02:50:03]written 0, free lines is 3286 [02:50:03]MH_Cut [02:50:03]Write to MH i2c: D1 01 00 9D 13 01 82 [02:50:03]Write i2c OK [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: D1 [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: D1 01 00 [02:50:03]MH_I2C_Read... [02:50:03]Read from MH i2c: D1 01 00 9D 13 00 81 [02:50:03]Write to MH i2c: 01 00 00 9E 13 B1 [02:50:03]Write i2c OK [02:50:03]MH_I2C_Read... [02:50:03]OFD Sender: No OFD packet to send [02:50:03]*** Cut start [02:50:03]*** Partial cut [02:50:03]*** CUTSNS_PIN = 1 [02:50:03]*** CUTSNS_PIN = 0 [02:50:04]*** Brake cut motor [02:50:04]Read from MH i2c: 01 [02:50:04]MH_I2C_Read... [02:50:04]*** Stop cut motor [02:50:04]*** Cut end [02:50:04]Read from MH i2c: 01 07 00 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: 01 07 00 9E 13 00 00 00 00 00 FF 0F C6 [02:50:04]process_action close_receipt done [02:50:04]requested_data is exist [02:50:04]produce_requested_data [02:50:04]requested_item fm.sn is exist - process it [02:50:04]wFMCommunicate request_size=4 [02:50:04]MH_SAM_APDU [02:50:04]CAPDU: 80 11 00 00 [02:50:04]Write to MH i2c: E2 08 00 9F 13 80 11 00 00 00 00 00 00 2C [02:50:04]Write i2c OK [02:50:04]MH_I2C_Read... [02:50:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:04]Read from MH i2c: E2 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 17 00 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 17 00 9F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 7D [02:50:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [02:50:04]wFMCommunicate OK [02:50:04]requested_item fd.num is exist - process it [02:50:04]SAM_PROTO_GetFieldsCounters [02:50:04]wFMCommunicate request_size=4 [02:50:04]MH_SAM_APDU [02:50:04]CAPDU: 80 13 00 00 [02:50:04]Write to MH i2c: E2 08 00 A0 13 80 13 00 00 00 00 00 00 2F [02:50:04]Write i2c OK [02:50:04]MH_I2C_Read... [02:50:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:04]Read from MH i2c: E2 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 62 00 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 62 00 A0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8B B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [02:50:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8B B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:04]wFMCommunicate OK [02:50:04]SAM_PROTO_GetFieldsCounters done [02:50:04]requested_item shift.num is exist - process it [02:50:04]requested_item shift.opened is exist - process it [02:50:04]req_shift_opened [02:50:04]FM_GetShiftState [02:50:04]SAM_PROTO_GetShiftState [02:50:04]wFMCommunicate request_size=4 [02:50:04]MH_SAM_APDU [02:50:04]CAPDU: 80 13 01 00 [02:50:04]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [02:50:04]Write i2c OK [02:50:04]MH_I2C_Read... [02:50:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:04]Read from MH i2c: E2 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 0E 00 [02:50:04]MH_I2C_Read... [02:50:04]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 E6 [02:50:04]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [02:50:04]wFMCommunicate OK [02:50:04]SAM_PROTO_GetShiftState done [02:50:04]FM_GetShiftState done [02:50:04]req_shift_opened done [02:50:04]requested_item shift.open_date is exist - process it [02:50:04]req_shift_open_date [02:50:04]req_shift_open_date done [02:50:04]produce_requested_data done [02:50:04]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112523,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [02:50:04]process_action_free close_receipt [02:50:04]json_value_free [02:50:04]json_value_free done [02:50:04]process_json_proto returns [02:50:04]Send response to host [02:50:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112523,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [02:50:04]free response buf [02:50:04]execute_script done [02:50:04]execute_script returns [02:50:04]free content buf [02:50:04]Sock 9.Close socket [02:50:04]Sock 9.Thread stoped [02:50:08]OFD Sender: No OFD packet to send [02:50:13]OFD Sender: No OFD packet to send [02:50:18]OFD Sender: No OFD packet to send [02:50:23]OFD Sender: No OFD packet to send [02:50:28]OFD Sender: No OFD packet to send [02:50:33]OFD Sender: No OFD packet to send [02:50:38]OFD Sender: No OFD packet to send [02:50:43]OFD Sender: No OFD packet to send [02:50:48]OFD Sender: No OFD packet to send [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send [02:59:38]OFD Sender: No OFD packet to send [02:59:43]OFD Sender: No OFD packet to send [02:59:48]OFD Sender: No OFD packet to send [02:59:53]OFD Sender: No OFD packet to send [02:59:58]OFD Sender: No OFD packet to send [03:00:03]OFD Sender: No OFD packet to send [03:00:08]OFD Sender: No OFD packet to send [03:00:13]OFD Sender: No OFD packet to send [03:00:18]OFD Sender: No OFD packet to send [03:00:23]OFD Sender: No OFD packet to send [03:00:28]OFD Sender: No OFD packet to send [03:00:33]OFD Sender: No OFD packet to send [03:00:38]OFD Sender: No OFD packet to send [03:00:43]OFD Sender: No OFD packet to send [03:00:48]OFD Sender: No OFD packet to send [03:00:54]OFD Sender: No OFD packet to send [03:00:59]OFD Sender: No OFD packet to send [03:01:04]OFD Sender: No OFD packet to send [03:01:09]OFD Sender: No OFD packet to send [03:01:14]OFD Sender: No OFD packet to send [03:01:19]OFD Sender: No OFD packet to send [03:01:24]OFD Sender: No OFD packet to send [03:01:29]OFD Sender: No OFD packet to send [03:01:34]OFD Sender: No OFD packet to send [03:01:39]OFD Sender: No OFD packet to send [03:01:44]OFD Sender: No OFD packet to send [03:01:49]OFD Sender: No OFD packet to send [03:01:54]OFD Sender: No OFD packet to send [03:01:59]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:36]accept exits with 7 [03:03:36]New connection [03:03:36]New thread 3067174244 created [03:03:36]Thread 3067317604 joined [03:03:36]Waiting for new connection... [03:03:36] Sock 7.Parse request [03:03:36]Sock 7.Check first char [03:03:36]Sock 7.First char is OK [03:03:36]request: POST /json_proto HTTP/1.0 [03:03:36]Method: POST [03:03:36]URL: /json_proto [03:03:36]Method is POST - this is cgi request [03:03:36]url: /json_proto [03:03:36]query_string will be loaded in cgi processing [03:03:36]execute_cgi json_proto POST (null) [03:03:36]execute_cgi path=json_proto method=POST [03:03:36]POST find Content-Length [03:03:36]Host: 172.17.96.197:8080 [03:03:36]Content-Length: 687 [03:03:36]Content-Type: application/json [03:03:36] [03:03:36]POST finish read [03:03:36]Found Content-Length = 687 [03:03:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10471", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:36]execute_script... [03:03:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10471", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:03:36]POST & json_proto [03:03:36]process_json_proto [03:03:36]json parsed OK: [03:03:36]protocol is kg_v1.0 [03:03:36]action value=close_receipt [03:03:36]process_action close_receipt [03:03:36]cmd_close_receipt [03:03:36]MH_GetDate [03:03:36]Write to MH i2c: F0 00 00 A2 13 A4 [03:03:36]Write i2c OK [03:03:36]MH_I2C_Read... [03:03:36]Read from MH i2c: F0 [03:03:36]MH_I2C_Read... [03:03:36]Read from MH i2c: F0 09 00 [03:03:36]MH_I2C_Read... [03:03:36]Read from MH i2c: F0 09 00 A2 13 00 0A 99 1C 66 E0 85 7F 64 1A [03:03:36]GetLastDocTimeStamp 1713149402 [03:03:36]current date 1713150218 [03:03:36]FM_GetShiftState [03:03:36]SAM_PROTO_GetShiftState [03:03:36]wFMCommunicate request_size=4 [03:03:36]MH_SAM_APDU [03:03:36]CAPDU: 80 13 01 00 [03:03:36]Write to MH i2c: E2 08 00 A3 13 80 13 01 00 00 00 00 00 33 [03:03:36]Write i2c OK [03:03:36]MH_I2C_Read... [03:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:36]Read from MH i2c: E2 [03:03:36]MH_I2C_Read... [03:03:36]Read from MH i2c: E2 0E 00 [03:03:36]MH_I2C_Read... [03:03:36]Read from MH i2c: E2 0E 00 A3 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 E8 [03:03:36]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:03:36]wFMCommunicate OK [03:03:36]SAM_PROTO_GetShiftState done [03:03:36]FM_GetShiftState done [03:03:36]opened in 1713141170 [03:03:36]opened+sec_in_day 1713227570 [03:03:36]quantity*price = 5000 [03:03:36]sum+1 = 5001 [03:03:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 24 15.04.2024 03:03 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112524 ФПД: 95610506987905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030338&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112524&fm=95610506987905&tin=02508201610067®Number=0000000000094237&sum=5000 0 [03:03:37]StoreToDocumentArchive [03:03:37]shift 358 fd 112524 [03:03:37]save to /storage/0358/doc_00112524 [03:03:37]save last doc name /storage/0358/doc_00112524 to /storage/kkm_last_doc_name [03:03:37]save OK [03:03:37]Clear old archive folders... [03:03:37]ProcessDocumentItem done err = 0, tmpTLVsize=291 [03:03:37]tlvbuf is 019EE7D0 [03:03:37]SAM_PROTO_ClearQueue [03:03:37]wFMCommunicate request_size=4 [03:03:37]MH_SAM_APDU [03:03:37]CAPDU: 80 09 00 00 [03:03:37]Write to MH i2c: E2 08 00 B0 13 80 09 00 00 00 00 00 00 35 [03:03:37]Write i2c OK [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 [03:03:37]MH_I2C_Read... [03:03:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:37]Read from MH i2c: E2 03 00 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [03:03:37]RAPDU: 90 00 [03:03:37]wFMCommunicate OK [03:03:37]SAM_PROTO_ClearQueue done [03:03:37]KKMCreateOFDPacket [03:03:37]OFDProtocolAddRootSTLVToBuf [03:03:37]FM_MakeSignedData [03:03:37]FM_MakeSignedData [03:03:37]SAM_PROTO_SignData [03:03:37]wFMCommunicate request_size=4 [03:03:37]MH_SAM_APDU [03:03:37]CAPDU: 80 0D 01 02 [03:03:37]Write to MH i2c: E2 08 00 B1 13 80 0D 01 02 00 00 00 00 3D [03:03:37]Write i2c OK [03:03:37]MH_I2C_Read... [03:03:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:37]Read from MH i2c: E2 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [03:03:37]RAPDU: 90 00 [03:03:37]wFMCommunicate OK [03:03:37]wFMCommunicate request_size=255 [03:03:37]MH_SAM_APDU [03:03:37]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [03:03:37]Write to MH i2c: E2 02 01 B2 13 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C9 [03:03:37]Write i2c OK [03:03:37]MH_I2C_Read... [03:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:37]Read from MH i2c: E2 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 B2 13 00 90 00 39 [03:03:37]RAPDU: 90 00 [03:03:37]wFMCommunicate OK [03:03:37]wFMCommunicate request_size=50 [03:03:37]MH_SAM_APDU [03:03:37]CAPDU: 80 0D 02 02 2D 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B7 01 00 35 04 06 00 56 F5 0E 4E 49 81 [03:03:37]Write to MH i2c: E2 35 00 B3 13 80 0D 02 02 2D 00 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B7 01 00 35 04 06 00 56 F5 0E 4E 49 81 00 00 52 [03:03:37]Write i2c OK [03:03:37]MH_I2C_Read... [03:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:37]Read from MH i2c: E2 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 [03:03:37]MH_I2C_Read... [03:03:37]Read from MH i2c: E2 03 00 B3 13 00 90 00 3A [03:03:37]RAPDU: 90 00 [03:03:37]wFMCommunicate OK [03:03:37]wFMCommunicate request_size=4 [03:03:37]MH_SAM_APDU [03:03:37]CAPDU: 80 0D 03 02 [03:03:37]Write to MH i2c: E2 08 00 B4 13 80 0D 03 02 00 00 00 00 42 [03:03:37]Write i2c OK [03:03:37]MH_I2C_Read... [03:03:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:38]Read from MH i2c: E2 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: E2 0B 00 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: E2 0B 00 B4 13 00 BE FE BB 76 1D 64 F2 78 90 00 1B [03:03:38]RAPDU: BE FE BB 76 1D 64 F2 78 90 00 [03:03:38]wFMCommunicate OK [03:03:38]SAM_PROTO_SignData done [03:03:38]FM_MakeSignedData done [03:03:38]CreateOFDProtocolMessage [03:03:38]wFMCommunicate request_size=4 [03:03:38]MH_SAM_APDU [03:03:38]CAPDU: 80 11 00 00 [03:03:38]Write to MH i2c: E2 08 00 B5 13 80 11 00 00 00 00 00 00 42 [03:03:38]Write i2c OK [03:03:38]MH_I2C_Read... [03:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:38]Read from MH i2c: E2 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: E2 17 00 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: E2 17 00 B5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 93 [03:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:03:38]wFMCommunicate OK [03:03:38]CreateOFDProtocolMessage done [03:03:38]OFDSenderStorePacket 112524 [03:03:38]StoreOFDPacket docnum=112524 [03:03:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 37 01 00 00 69 7D 2F 01 D6 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B7 01 00 35 04 06 00 56 F5 0E 4E 49 81 BE FE BB 76 1D 64 F2 78 [03:03:38]CheckFolder [03:03:38]dirname=/storage/ofd_packets [03:03:38]CheckFolder done [03:03:38]ProducePacketName [03:03:38]name=ofd_packets/00112524 [03:03:38]NVStorageSaveData ofd_packets/00112524 [03:03:38]File name is /storage/ofd_packets/00112524 [03:03:38]Write 341 bytes [03:03:38]NVStorageSaveData done [03:03:38]OFDSenderStorePacket done [03:03:38]KKMCreateOFDPacket done [03:03:38]NVStorageSaveData kkm_last_timestamp [03:03:38]File name is /storage/kkm_last_timestamp [03:03:38]Write 4 bytes [03:03:38]NVStorageSaveData done [03:03:38]OFD Sender: Processing packet 112524 [packets to send 71, broken 70] [03:03:38]ProducePacketName [03:03:38]name=ofd_packets/00112524 [03:03:38]OFD Sender: To server: pG, [03:03:38]CommunicateWithHost lk.salyk.kg:30040 [03:03:38]ConnectInit lk.salyk.kg [03:03:38]ExternCall_PrintAddStr [03:03:38]wPrintStart [03:03:38]Write to MH i2c: 01 00 00 B6 13 C9 [03:03:38]Write i2c OK [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 07 00 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 07 00 B6 13 00 00 00 00 00 FF 0F DE [03:03:38]RasterBufferAndPrint [03:03:38]line Счет N : (3)10471 [03:03:38]line ИНН: 02508201610067 [03:03:38]line Контрольно-Кассовый Чек [03:03:38]line ПРОДАЖА [03:03:38]line Товар: 4870209744564 [03:03:38]line Сухарики Флинт Шашлык 100 гр [03:03:38]line 1.000 * 50.00 [03:03:38]line = 50.00 [03:03:38]line НДС 12% НСП 1% [03:03:38]line > о реализуемом товаре [03:03:38]line ИТОГО: 50.00 [03:03:38]line НСП 1% : 0.44 [03:03:38]line НДС 12% : 5.31 [03:03:38]line Наличными: 50.00 [03:03:38]line Безнал.: 0.00 [03:03:38]line Место: АЗС № 47 "Партнер Нефть" [03:03:38]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:03:38]line СНО: Общий режим [03:03:38]line Чек 24 15.04.2024 03:03 [03:03:38]line Смена: 358 ФФД: 1.0 [03:03:38]line ЗНМ: 0300000138 [03:03:38]line РНМ: 0000000000094237 [03:03:38]line Версия ККМ: 001 [03:03:38]line ФМ: 0000000000875019 [03:03:38]line ФД: 112524 [03:03:38]line ФПД: 95610506987905 [03:03:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030338&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112524&fm=95610506987905&tin=02508201610067®Number=0000000000094237&sum=5000 [03:03:38]line 0 [03:03:38]Connected sock=11 [03:03:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 37 01 00 00 69 7D 2F 01 D6 8B 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 0A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B7 01 00 35 04 06 00 56 F5 0E 4E 49 81 BE FE BB 76 1D 64 F2 78 [03:03:38]written 0, free lines is 4095 [03:03:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 66 1A 47 00 5B 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8C B7 01 00 F4 03 04 00 93 40 1C 66 B6 04 01 00 00 C3 41 58 58 56 3D A1 33 [03:03:38]CommunicateWithHost err = 0 [03:03:38]CheckOFDResponse [03:03:38]1017 (14) - 77093643461234 [03:03:38]1041 (16) - 0000000000875019 [03:03:38]1040 (4) - 112524 [03:03:38]1012 (4) - 14.04.2024 20:46 [03:03:38]1206 (1) - 0 [03:03:38]OFD Sender: Remove packet 112524 [03:03:38]ProducePacketName [03:03:38]name=ofd_packets/00112524 [03:03:38]NVStorageDeleteData [03:03:38]Write to MH i2c: 01 00 00 DF 13 F2 [03:03:38]Write i2c OK [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 07 00 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: 01 07 00 DF 13 00 00 00 00 00 D5 0C DA [03:03:38]RasterBufferAndPrint [03:03:38]line [03:03:38]line [03:03:38]line [03:03:38]line [03:03:38]line [03:03:38]written 0, free lines is 3294 [03:03:38]MH_Cut [03:03:38]Write to MH i2c: D1 01 00 E6 13 01 CB [03:03:38]Write i2c OK [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: D1 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: D1 01 00 [03:03:38]MH_I2C_Read... [03:03:38]Read from MH i2c: D1 01 00 E6 13 00 CA [03:03:38]Write to MH i2c: 01 00 00 E7 13 FA [03:03:38]Write i2c OK [03:03:38]MH_I2C_Read... [03:03:39]OFD Sender: No OFD packet to send [03:03:39]*** Cut start [03:03:39]*** Partial cut [03:03:39]*** CUTSNS_PIN = 1 [03:03:39]*** CUTSNS_PIN = 0 [03:03:39]*** Brake cut motor [03:03:40]Read from MH i2c: 01 [03:03:40]MH_I2C_Read... [03:03:40]*** Stop cut motor [03:03:40]*** Cut end [03:03:40]Read from MH i2c: 01 07 00 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: 01 07 00 E7 13 00 00 00 00 00 FF 0F 0F [03:03:40]process_action close_receipt done [03:03:40]requested_data is exist [03:03:40]produce_requested_data [03:03:40]requested_item fm.sn is exist - process it [03:03:40]wFMCommunicate request_size=4 [03:03:40]MH_SAM_APDU [03:03:40]CAPDU: 80 11 00 00 [03:03:40]Write to MH i2c: E2 08 00 E8 13 80 11 00 00 00 00 00 00 75 [03:03:40]Write i2c OK [03:03:40]MH_I2C_Read... [03:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:40]Read from MH i2c: E2 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 17 00 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 17 00 E8 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 C6 [03:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:03:40]wFMCommunicate OK [03:03:40]requested_item fd.num is exist - process it [03:03:40]SAM_PROTO_GetFieldsCounters [03:03:40]wFMCommunicate request_size=4 [03:03:40]MH_SAM_APDU [03:03:40]CAPDU: 80 13 00 00 [03:03:40]Write to MH i2c: E2 08 00 E9 13 80 13 00 00 00 00 00 00 78 [03:03:40]Write i2c OK [03:03:40]MH_I2C_Read... [03:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:40]Read from MH i2c: E2 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 62 00 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 62 00 E9 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8C B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [03:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8C B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:03:40]wFMCommunicate OK [03:03:40]SAM_PROTO_GetFieldsCounters done [03:03:40]requested_item shift.num is exist - process it [03:03:40]requested_item shift.opened is exist - process it [03:03:40]req_shift_opened [03:03:40]FM_GetShiftState [03:03:40]SAM_PROTO_GetShiftState [03:03:40]wFMCommunicate request_size=4 [03:03:40]MH_SAM_APDU [03:03:40]CAPDU: 80 13 01 00 [03:03:40]Write to MH i2c: E2 08 00 EA 13 80 13 01 00 00 00 00 00 7A [03:03:40]Write i2c OK [03:03:40]MH_I2C_Read... [03:03:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:40]Read from MH i2c: E2 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 0E 00 [03:03:40]MH_I2C_Read... [03:03:40]Read from MH i2c: E2 0E 00 EA 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 2F [03:03:40]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:03:40]wFMCommunicate OK [03:03:40]SAM_PROTO_GetShiftState done [03:03:40]FM_GetShiftState done [03:03:40]req_shift_opened done [03:03:40]requested_item shift.open_date is exist - process it [03:03:40]req_shift_open_date [03:03:40]req_shift_open_date done [03:03:40]produce_requested_data done [03:03:40]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112524,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:03:40]process_action_free close_receipt [03:03:40]json_value_free [03:03:40]json_value_free done [03:03:40]process_json_proto returns [03:03:40]Send response to host [03:03:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112524,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:03:40]free response buf [03:03:40]execute_script done [03:03:40]execute_script returns [03:03:40]free content buf [03:03:40]Sock 7.Close socket [03:03:40]Sock 7.Thread stoped [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]accept exits with 9 [03:04:24]New connection [03:04:24]New thread 3067317604 created [03:04:24]Thread 3067174244 joined [03:04:24]Waiting for new connection... [03:04:24] Sock 9.Parse request [03:04:24]Sock 9.Check first char [03:04:24]Sock 9.First char is OK [03:04:24]request: POST /json_proto HTTP/1.0 [03:04:24]Method: POST [03:04:24]URL: /json_proto [03:04:24]Method is POST - this is cgi request [03:04:24]url: /json_proto [03:04:24]query_string will be loaded in cgi processing [03:04:24]execute_cgi json_proto POST (null) [03:04:24]execute_cgi path=json_proto method=POST [03:04:24]POST find Content-Length [03:04:24]Host: 172.17.96.197:8080 [03:04:24]Content-Length: 569 [03:04:24]Content-Type: application/json [03:04:24] [03:04:24]POST finish read [03:04:24]Found Content-Length = 569 [03:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10472", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:24]execute_script... [03:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10472", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:04:24]POST & json_proto [03:04:24]process_json_proto [03:04:24]json parsed OK: [03:04:24]protocol is kg_v1.0 [03:04:24]action value=close_receipt [03:04:24]process_action close_receipt [03:04:24]cmd_close_receipt [03:04:24]MH_GetDate [03:04:24]Write to MH i2c: F0 00 00 EB 13 ED [03:04:24]Write i2c OK [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: F0 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: F0 09 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: F0 09 00 EB 13 00 3A 99 1C 66 E0 85 7F 64 93 [03:04:24]GetLastDocTimeStamp 1713150218 [03:04:24]current date 1713150266 [03:04:24]FM_GetShiftState [03:04:24]SAM_PROTO_GetShiftState [03:04:24]wFMCommunicate request_size=4 [03:04:24]MH_SAM_APDU [03:04:24]CAPDU: 80 13 01 00 [03:04:24]Write to MH i2c: E2 08 00 EC 13 80 13 01 00 00 00 00 00 7C [03:04:24]OFD Sender: No OFD packet to send [03:04:24]Write i2c OK [03:04:24]MH_I2C_Read... [03:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:24]Read from MH i2c: E2 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 0E 00 [03:04:24]MH_I2C_Read... [03:04:24]Read from MH i2c: E2 0E 00 EC 13 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 31 [03:04:24]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:04:24]wFMCommunicate OK [03:04:24]SAM_PROTO_GetShiftState done [03:04:24]FM_GetShiftState done [03:04:24]opened in 1713141170 [03:04:24]opened+sec_in_day 1713227570 [03:04:24]quantity*price = 12500 [03:04:24]sum+1 = 12501 [03:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 25 15.04.2024 03:04 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112525 ФПД: 154826784958246 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030426&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112525&fm=154826784958246&tin=02508201610067®Number=0000000000094237&sum=12500 0 [03:04:25]StoreToDocumentArchive [03:04:25]shift 358 fd 112525 [03:04:25]save to /storage/0358/doc_00112525 [03:04:25]save last doc name /storage/0358/doc_00112525 to /storage/kkm_last_doc_name [03:04:25]save OK [03:04:25]Clear old archive folders... [03:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=254 [03:04:25]tlvbuf is 01A09120 [03:04:25]SAM_PROTO_ClearQueue [03:04:25]wFMCommunicate request_size=4 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 09 00 00 [03:04:25]Write to MH i2c: E2 08 00 F9 13 80 09 00 00 00 00 00 00 7E [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [03:04:25]RAPDU: 90 00 [03:04:25]wFMCommunicate OK [03:04:25]SAM_PROTO_ClearQueue done [03:04:25]KKMCreateOFDPacket [03:04:25]OFDProtocolAddRootSTLVToBuf [03:04:25]FM_MakeSignedData [03:04:25]FM_MakeSignedData [03:04:25]SAM_PROTO_SignData [03:04:25]wFMCommunicate request_size=4 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 0D 01 02 [03:04:25]Write to MH i2c: E2 08 00 FA 13 80 0D 01 02 00 00 00 00 86 [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 FA 13 00 90 00 81 [03:04:25]RAPDU: 90 00 [03:04:25]wFMCommunicate OK [03:04:25]wFMCommunicate request_size=255 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 0D 02 02 FA 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B7 01 00 35 04 [03:04:25]Write to MH i2c: E2 02 01 FB 13 80 0D 02 02 FA 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B7 01 00 35 04 00 00 91 [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 FB 13 00 90 00 82 [03:04:25]RAPDU: 90 00 [03:04:25]wFMCommunicate OK [03:04:25]wFMCommunicate request_size=13 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 0D 02 02 08 06 00 8C D0 6B 84 E7 26 [03:04:25]Write to MH i2c: E2 10 00 FC 13 80 0D 02 02 08 00 06 00 8C D0 6B 84 E7 26 00 00 F7 [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 03 00 FC 13 00 90 00 83 [03:04:25]RAPDU: 90 00 [03:04:25]wFMCommunicate OK [03:04:25]wFMCommunicate request_size=4 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 0D 03 02 [03:04:25]Write to MH i2c: E2 08 00 FD 13 80 0D 03 02 00 00 00 00 8B [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 0B 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 0B 00 FD 13 00 35 69 E6 F9 4A 68 33 E6 90 00 D4 [03:04:25]RAPDU: 35 69 E6 F9 4A 68 33 E6 90 00 [03:04:25]wFMCommunicate OK [03:04:25]SAM_PROTO_SignData done [03:04:25]FM_MakeSignedData done [03:04:25]CreateOFDProtocolMessage [03:04:25]wFMCommunicate request_size=4 [03:04:25]MH_SAM_APDU [03:04:25]CAPDU: 80 11 00 00 [03:04:25]Write to MH i2c: E2 08 00 FE 13 80 11 00 00 00 00 00 00 8B [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:25]Read from MH i2c: E2 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 17 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: E2 17 00 FE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 DC [03:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:04:25]wFMCommunicate OK [03:04:25]CreateOFDProtocolMessage done [03:04:25]OFDSenderStorePacket 112525 [03:04:25]StoreOFDPacket docnum=112525 [03:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 12 01 00 00 35 AB 0A 01 55 4E 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B7 01 00 35 04 06 00 8C D0 6B 84 E7 26 35 69 E6 F9 4A 68 33 E6 [03:04:25]CheckFolder [03:04:25]dirname=/storage/ofd_packets [03:04:25]CheckFolder done [03:04:25]ProducePacketName [03:04:25]name=ofd_packets/00112525 [03:04:25]NVStorageSaveData ofd_packets/00112525 [03:04:25]File name is /storage/ofd_packets/00112525 [03:04:25]Write 304 bytes [03:04:25]NVStorageSaveData done [03:04:25]OFDSenderStorePacket done [03:04:25]KKMCreateOFDPacket done [03:04:25]NVStorageSaveData kkm_last_timestamp [03:04:25]File name is /storage/kkm_last_timestamp [03:04:25]Write 4 bytes [03:04:25]NVStorageSaveData done [03:04:25]ExternCall_PrintAddStr [03:04:25]wPrintStart [03:04:25]Write to MH i2c: 01 00 00 FF 13 12 [03:04:25]Write i2c OK [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: 01 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: 01 07 00 [03:04:25]MH_I2C_Read... [03:04:25]Read from MH i2c: 01 07 00 FF 13 00 00 00 00 00 FF 0F 27 [03:04:25]RasterBufferAndPrint [03:04:25]line Счет N : (3)10472 [03:04:25]line ИНН: 02508201610067 [03:04:25]line Контрольно-Кассовый Чек [03:04:25]line ПРОДАЖА [03:04:25]line Товар: 48744546 [03:04:25]line LD Compact Silver [03:04:25]line 1.000 * 125.00 [03:04:25]line = 125.00 [03:04:25]line НДС 12% НСП 1% [03:04:25]line > о реализуемом товаре [03:04:25]line ИТОГО: 125.00 [03:04:25]line НСП 1% : 1.11 [03:04:25]line НДС 12% : 13.27 [03:04:25]line Наличными: 125.00 [03:04:25]line Безнал.: 0.00 [03:04:25]line Место: АЗС № 47 "Партнер Нефть" [03:04:25]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:04:25]line СНО: Общий режим [03:04:25]line Чек 25 15.04.2024 03:04 [03:04:25]line Смена: 358 ФФД: 1.0 [03:04:25]line ЗНМ: 0300000138 [03:04:25]line РНМ: 0000000000094237 [03:04:25]line Версия ККМ: 001 [03:04:25]line ФМ: 0000000000875019 [03:04:25]line ФД: 112525 [03:04:25]line ФПД: 154826784958246 [03:04:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030426&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112525&fm=154826784958246&tin=02508201610067®Number=0000000000094237&sum=12500 [03:04:26]line 0 [03:04:26]OFD Sender: Processing packet 112525 [packets to send 71, broken 70] [03:04:26]ProducePacketName [03:04:26]name=ofd_packets/00112525 [03:04:26]OFD Sender: To server: pG, [03:04:26]CommunicateWithHost lk.salyk.kg:30040 [03:04:26]ConnectInit lk.salyk.kg [03:04:26]written 0, free lines is 4095 [03:04:26]Connected sock=10 [03:04:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 12 01 00 00 35 AB 0A 01 55 4E 5A 03 01 00 03 00 FE 00 1E 04 01 00 01 23 04 50 00 8A 04 08 00 34 38 37 34 34 35 34 36 06 04 11 00 4C 44 20 43 6F 6D 70 61 63 74 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 3A 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B7 01 00 35 04 06 00 8C D0 6B 84 E7 26 35 69 E6 F9 4A 68 33 E6 [03:04:26]Write to MH i2c: 01 00 00 27 14 3B [03:04:26]Write i2c OK [03:04:26]MH_I2C_Read... [03:04:26]Read from MH i2c: 01 [03:04:26]MH_I2C_Read... [03:04:26]Read from MH i2c: 01 07 00 [03:04:26]MH_I2C_Read... [03:04:26]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 02 0D 51 [03:04:26]RasterBufferAndPrint [03:04:26]line [03:04:26]line [03:04:26]line [03:04:26]line [03:04:26]line [03:04:26]written 0, free lines is 3337 [03:04:26]MH_Cut [03:04:26]Write to MH i2c: D1 01 00 2E 14 01 14 [03:04:26]Write i2c OK [03:04:26]MH_I2C_Read... [03:04:26]Read from MH i2c: D1 [03:04:26]MH_I2C_Read... [03:04:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 C8 F5 47 00 DC 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8D B7 01 00 F4 03 04 00 C3 40 1C 66 B6 04 01 00 00 25 C0 87 F9 EA 23 27 76 [03:04:26]CommunicateWithHost err = 0 [03:04:26]CheckOFDResponse [03:04:26]1017 (14) - 77093643461234 [03:04:26]1041 (16) - 0000000000875019 [03:04:26]1040 (4) - 112525 [03:04:26]1012 (4) - 14.04.2024 20:46 [03:04:26]1206 (1) - 0 [03:04:26]OFD Sender: Remove packet 112525 [03:04:26]ProducePacketName [03:04:26]name=ofd_packets/00112525 [03:04:26]NVStorageDeleteData [03:04:26]Read from MH i2c: D1 01 00 [03:04:26]MH_I2C_Read... [03:04:26]Read from MH i2c: D1 01 00 2E 14 00 13 [03:04:26]Write to MH i2c: 01 00 00 2F 14 43 [03:04:26]Write i2c OK [03:04:26]MH_I2C_Read... [03:04:27]OFD Sender: No OFD packet to send [03:04:27]*** Cut start [03:04:27]*** Partial cut [03:04:27]*** CUTSNS_PIN = 1 [03:04:27]*** CUTSNS_PIN = 0 [03:04:27]*** Brake cut motor [03:04:28]Read from MH i2c: 01 [03:04:28]MH_I2C_Read... [03:04:28]*** Stop cut motor [03:04:28]Read from MH i2c: 01 07 00 [03:04:28]MH_I2C_Read... [03:04:28]*** Cut end [03:04:28]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [03:04:28]process_action close_receipt done [03:04:28]requested_data is exist [03:04:28]produce_requested_data [03:04:28]requested_item fm.sn is exist - process it [03:04:28]wFMCommunicate request_size=4 [03:04:28]MH_SAM_APDU [03:04:28]CAPDU: 80 11 00 00 [03:04:28]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [03:04:28]Write i2c OK [03:04:28]MH_I2C_Read... [03:04:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:04:28]Read from MH i2c: E2 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 17 00 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 0F [03:04:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:04:28]wFMCommunicate OK [03:04:28]requested_item fd.num is exist - process it [03:04:28]SAM_PROTO_GetFieldsCounters [03:04:28]wFMCommunicate request_size=4 [03:04:28]MH_SAM_APDU [03:04:28]CAPDU: 80 13 00 00 [03:04:28]Write to MH i2c: E2 08 00 31 14 80 13 00 00 00 00 00 00 C1 [03:04:28]Write i2c OK [03:04:28]MH_I2C_Read... [03:04:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:04:28]Read from MH i2c: E2 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 62 00 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 62 00 31 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [03:04:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8D B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:04:28]wFMCommunicate OK [03:04:28]SAM_PROTO_GetFieldsCounters done [03:04:28]requested_item shift.num is exist - process it [03:04:28]requested_item shift.opened is exist - process it [03:04:28]req_shift_opened [03:04:28]FM_GetShiftState [03:04:28]SAM_PROTO_GetShiftState [03:04:28]wFMCommunicate request_size=4 [03:04:28]MH_SAM_APDU [03:04:28]CAPDU: 80 13 01 00 [03:04:28]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [03:04:28]Write i2c OK [03:04:28]MH_I2C_Read... [03:04:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:04:28]Read from MH i2c: E2 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 0E 00 [03:04:28]MH_I2C_Read... [03:04:28]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 78 [03:04:28]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:04:28]wFMCommunicate OK [03:04:28]SAM_PROTO_GetShiftState done [03:04:28]FM_GetShiftState done [03:04:28]req_shift_opened done [03:04:28]requested_item shift.open_date is exist - process it [03:04:28]req_shift_open_date [03:04:28]req_shift_open_date done [03:04:28]produce_requested_data done [03:04:28]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112525,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:04:28]process_action_free close_receipt [03:04:28]json_value_free [03:04:28]json_value_free done [03:04:28]process_json_proto returns [03:04:28]Send response to host [03:04:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112525,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:04:28]free response buf [03:04:28]execute_script done [03:04:28]execute_script returns [03:04:28]free content buf [03:04:28]Sock 9.Close socket [03:04:28]Sock 9.Thread stoped [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:08]accept exits with 7 [03:05:08]New connection [03:05:08]New thread 3067174244 created [03:05:08]Thread 3067317604 joined [03:05:08]Waiting for new connection... [03:05:08] Sock 7.Parse request [03:05:08]Sock 7.Check first char [03:05:08]Sock 7.First char is OK [03:05:08]request: POST /json_proto HTTP/1.0 [03:05:08]Method: POST [03:05:08]URL: /json_proto [03:05:08]Method is POST - this is cgi request [03:05:08]url: /json_proto [03:05:08]query_string will be loaded in cgi processing [03:05:08]execute_cgi json_proto POST (null) [03:05:08]execute_cgi path=json_proto method=POST [03:05:08]POST find Content-Length [03:05:08]Host: 172.17.96.197:8080 [03:05:08]Content-Length: 681 [03:05:08]Content-Type: application/json [03:05:08] [03:05:08]POST finish read [03:05:08]Found Content-Length = 681 [03:05:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [03:05:08]execute_script... [03:05:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48798", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "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" ] } } [03:05:08]POST & json_proto [03:05:08]process_json_proto [03:05:08]json parsed OK: [03:05:08]protocol is kg_v1.0 [03:05:08]action value=close_receipt [03:05:08]process_action close_receipt [03:05:08]cmd_close_receipt [03:05:08]MH_GetDate [03:05:08]Write to MH i2c: F0 00 00 33 14 36 [03:05:08]Write i2c OK [03:05:08]MH_I2C_Read... [03:05:08]Read from MH i2c: F0 [03:05:08]MH_I2C_Read... [03:05:08]Read from MH i2c: F0 09 00 [03:05:08]MH_I2C_Read... [03:05:08]Read from MH i2c: F0 09 00 33 14 00 67 99 1C 66 E0 85 7F 64 09 [03:05:08]GetLastDocTimeStamp 1713150266 [03:05:08]current date 1713150311 [03:05:08]FM_GetShiftState [03:05:08]SAM_PROTO_GetShiftState [03:05:08]wFMCommunicate request_size=4 [03:05:08]MH_SAM_APDU [03:05:08]CAPDU: 80 13 01 00 [03:05:08]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [03:05:08]Write i2c OK [03:05:08]MH_I2C_Read... [03:05:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:08]Read from MH i2c: E2 [03:05:08]MH_I2C_Read... [03:05:08]Read from MH i2c: E2 0E 00 [03:05:08]MH_I2C_Read... [03:05:08]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 7A [03:05:08]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:05:08]wFMCommunicate OK [03:05:08]SAM_PROTO_GetShiftState done [03:05:08]FM_GetShiftState done [03:05:08]opened in 1713141170 [03:05:08]opened+sec_in_day 1713227570 [03:05:08]quantity*price = 150012 [03:05:08]sum+1 = 150013 [03:05:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.27 НДС 12% : 159.30 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 26 15.04.2024 03:05 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112526 ФПД: 142430668679818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030511&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112526&fm=142430668679818&tin=02508201610067®Number=0000000000094237&sum=150000 [03:05:10]StoreToDocumentArchive [03:05:10]shift 358 fd 112526 [03:05:10]save to /storage/0358/doc_00112526 [03:05:10]save last doc name /storage/0358/doc_00112526 to /storage/kkm_last_doc_name [03:05:10]save OK [03:05:10]Clear old archive folders... [03:05:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:05:10]tlvbuf is 01A082A0 [03:05:10]SAM_PROTO_ClearQueue [03:05:10]wFMCommunicate request_size=4 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 09 00 00 [03:05:10]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [03:05:10]RAPDU: 90 00 [03:05:10]wFMCommunicate OK [03:05:10]SAM_PROTO_ClearQueue done [03:05:10]KKMCreateOFDPacket [03:05:10]OFDProtocolAddRootSTLVToBuf [03:05:10]FM_MakeSignedData [03:05:10]FM_MakeSignedData [03:05:10]SAM_PROTO_SignData [03:05:10]wFMCommunicate request_size=4 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 0D 01 02 [03:05:10]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [03:05:10]RAPDU: 90 00 [03:05:10]wFMCommunicate OK [03:05:10]wFMCommunicate request_size=255 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 1A 00 00 00 F4 03 04 00 67 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B7 01 00 35 04 06 00 81 [03:05:10]Write to MH i2c: E2 02 01 43 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 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 1A 00 00 00 F4 03 04 00 67 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B7 01 00 35 04 06 00 81 00 00 3B [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [03:05:10]RAPDU: 90 00 [03:05:10]wFMCommunicate OK [03:05:10]wFMCommunicate request_size=10 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 0D 02 02 05 8A 39 69 6A 8A [03:05:10]Write to MH i2c: E2 0D 00 44 14 80 0D 02 02 05 00 8A 39 69 6A 8A 00 00 FC [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [03:05:10]RAPDU: 90 00 [03:05:10]wFMCommunicate OK [03:05:10]wFMCommunicate request_size=4 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 0D 03 02 [03:05:10]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 0B 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 0B 00 45 14 00 3F 94 F7 F5 6C 86 D4 DE 90 00 38 [03:05:10]RAPDU: 3F 94 F7 F5 6C 86 D4 DE 90 00 [03:05:10]wFMCommunicate OK [03:05:10]SAM_PROTO_SignData done [03:05:10]FM_MakeSignedData done [03:05:10]CreateOFDProtocolMessage [03:05:10]wFMCommunicate request_size=4 [03:05:10]MH_SAM_APDU [03:05:10]CAPDU: 80 11 00 00 [03:05:10]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:10]Read from MH i2c: E2 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 17 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 25 [03:05:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:05:10]wFMCommunicate OK [03:05:10]CreateOFDProtocolMessage done [03:05:10]OFDSenderStorePacket 112526 [03:05:10]StoreOFDPacket docnum=112526 [03:05:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 65 4F 07 01 9F F6 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 1A 00 00 00 F4 03 04 00 67 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B7 01 00 35 04 06 00 81 8A 39 69 6A 8A 3F 94 F7 F5 6C 86 D4 DE [03:05:10]CheckFolder [03:05:10]dirname=/storage/ofd_packets [03:05:10]CheckFolder done [03:05:10]ProducePacketName [03:05:10]name=ofd_packets/00112526 [03:05:10]NVStorageSaveData ofd_packets/00112526 [03:05:10]File name is /storage/ofd_packets/00112526 [03:05:10]Write 301 bytes [03:05:10]NVStorageSaveData done [03:05:10]OFDSenderStorePacket done [03:05:10]KKMCreateOFDPacket done [03:05:10]NVStorageSaveData kkm_last_timestamp [03:05:10]File name is /storage/kkm_last_timestamp [03:05:10]Write 4 bytes [03:05:10]NVStorageSaveData done [03:05:10]ExternCall_PrintAddStr [03:05:10]wPrintStart [03:05:10]Write to MH i2c: 01 00 00 47 14 5B [03:05:10]Write i2c OK [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: 01 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: 01 07 00 [03:05:10]MH_I2C_Read... [03:05:10]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [03:05:10]RasterBufferAndPrint [03:05:10]line Счет N : (1)48798 [03:05:10]line ИНН: 02508201610067 [03:05:10]line Контрольно-Кассовый Чек [03:05:10]line ПРОДАЖА [03:05:10]line ТРК (МРК, ГНК) : 11 [03:05:10]line Товар: 2710124130 [03:05:10]line Аи-92-К-5 [03:05:10]line 23.150 * 64.80 [03:05:10]line = 1500.12 [03:05:10]line НДС 12% НСП 1% [03:05:10]line > о реализуемом товаре [03:05:10]line ОКРУГЛЕНИЕ: -0.12 [03:05:10]line ИТОГО: 1500.00 [03:05:10]line Внесено: 1500.00 [03:05:10]line СДАЧА: 0.00 [03:05:10]line НСП 1% : 13.27 [03:05:10]line НДС 12% : 159.30 [03:05:10]line Наличными: 1500.00 [03:05:10]line Безнал.: 0.00 [03:05:10]line Место: АЗС № 47 "Партнер Нефть" [03:05:10]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:05:10]line СНО: Общий режим [03:05:10]line Чек 26 15.04.2024 03:05 [03:05:10]line Смена: 358 ФФД: 1.0 [03:05:10]line ЗНМ: 0300000138 [03:05:10]line РНМ: 0000000000094237 [03:05:10]line Версия ККМ: 001 [03:05:10]line ФМ: 0000000000875019 [03:05:10]line ФД: 112526 [03:05:10]line ФПД: 142430668679818 [03:05:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030511&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112526&fm=142430668679818&tin=02508201610067®Number=0000000000094237&sum=150000 [03:05:10]OFD Sender: Processing packet 112526 [packets to send 71, broken 70] [03:05:10]ProducePacketName [03:05:10]name=ofd_packets/00112526 [03:05:10]OFD Sender: To server: pG, [03:05:10]CommunicateWithHost lk.salyk.kg:30040 [03:05:10]ConnectInit lk.salyk.kg [03:05:11]written 0, free lines is 4095 [03:05:11]Connected sock=10 [03:05:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 65 4F 07 01 9F F6 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 1A 00 00 00 F4 03 04 00 67 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B7 01 00 35 04 06 00 81 8A 39 69 6A 8A 3F 94 F7 F5 6C 86 D4 DE [03:05:11]Write to MH i2c: 01 00 00 72 14 86 [03:05:11]Write i2c OK [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: 01 [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: 01 07 00 [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: 01 07 00 72 14 00 00 00 00 00 DF 0C 78 [03:05:11]RasterBufferAndPrint [03:05:11]line [03:05:11]line [03:05:11]line [03:05:11]line [03:05:11]line [03:05:11]written 0, free lines is 3301 [03:05:11]MH_Cut [03:05:11]Write to MH i2c: D1 01 00 79 14 01 5F [03:05:11]Write i2c OK [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: D1 [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: D1 01 00 [03:05:11]MH_I2C_Read... [03:05:11]Read from MH i2c: D1 01 00 79 14 00 5E [03:05:11]Write to MH i2c: 01 00 00 7A 14 8E [03:05:11]Write i2c OK [03:05:11]MH_I2C_Read... [03:05:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 11 61 47 00 45 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8E B7 01 00 F4 03 04 00 F0 40 1C 66 B6 04 01 00 00 49 F9 EB CE 6F EA 6A 9C [03:05:11]CommunicateWithHost err = 0 [03:05:11]CheckOFDResponse [03:05:11]1017 (14) - 77093643461234 [03:05:11]1041 (16) - 0000000000875019 [03:05:11]1040 (4) - 112526 [03:05:11]1012 (4) - 14.04.2024 20:47 [03:05:11]1206 (1) - 0 [03:05:11]OFD Sender: Remove packet 112526 [03:05:11]ProducePacketName [03:05:11]name=ofd_packets/00112526 [03:05:11]NVStorageDeleteData [03:05:11]OFD Sender: No OFD packet to send [03:05:12]*** Cut start [03:05:12]*** Partial cut [03:05:12]*** CUTSNS_PIN = 1 [03:05:12]*** CUTSNS_PIN = 0 [03:05:12]*** Brake cut motor [03:05:12]Read from MH i2c: 01 [03:05:12]MH_I2C_Read... [03:05:12]*** Stop cut motor [03:05:12]*** Cut end [03:05:12]Read from MH i2c: 01 07 00 [03:05:12]MH_I2C_Read... [03:05:12]Read from MH i2c: 01 07 00 7A 14 00 00 00 00 00 FF 0F A3 [03:05:12]process_action close_receipt done [03:05:12]requested_data is exist [03:05:12]produce_requested_data [03:05:12]requested_item fm.sn is exist - process it [03:05:12]wFMCommunicate request_size=4 [03:05:12]MH_SAM_APDU [03:05:12]CAPDU: 80 11 00 00 [03:05:12]Write to MH i2c: E2 08 00 7B 14 80 11 00 00 00 00 00 00 09 [03:05:12]Write i2c OK [03:05:12]MH_I2C_Read... [03:05:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:05:12]Read from MH i2c: E2 [03:05:12]MH_I2C_Read... [03:05:12]Read from MH i2c: E2 17 00 [03:05:12]MH_I2C_Read... [03:05:12]Read from MH i2c: E2 17 00 7B 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 5A [03:05:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:05:12]wFMCommunicate OK [03:05:12]requested_item fd.num is exist - process it [03:05:12]SAM_PROTO_GetFieldsCounters [03:05:12]wFMCommunicate request_size=4 [03:05:12]MH_SAM_APDU [03:05:12]CAPDU: 80 13 00 00 [03:05:12]Write to MH i2c: E2 08 00 7C 14 80 13 00 00 00 00 00 00 0C [03:05:12]Write i2c OK [03:05:12]MH_I2C_Read... [03:05:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:05:13]Read from MH i2c: E2 [03:05:13]MH_I2C_Read... [03:05:13]Read from MH i2c: E2 62 00 [03:05:13]MH_I2C_Read... [03:05:13]Read from MH i2c: E2 62 00 7C 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8E B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [03:05:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8E B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:05:13]wFMCommunicate OK [03:05:13]SAM_PROTO_GetFieldsCounters done [03:05:13]requested_item shift.num is exist - process it [03:05:13]requested_item shift.opened is exist - process it [03:05:13]req_shift_opened [03:05:13]FM_GetShiftState [03:05:13]SAM_PROTO_GetShiftState [03:05:13]wFMCommunicate request_size=4 [03:05:13]MH_SAM_APDU [03:05:13]CAPDU: 80 13 01 00 [03:05:13]Write to MH i2c: E2 08 00 7D 14 80 13 01 00 00 00 00 00 0E [03:05:13]Write i2c OK [03:05:13]MH_I2C_Read... [03:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:05:13]Read from MH i2c: E2 [03:05:13]MH_I2C_Read... [03:05:13]Read from MH i2c: E2 0E 00 [03:05:13]MH_I2C_Read... [03:05:13]Read from MH i2c: E2 0E 00 7D 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 C3 [03:05:13]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:05:13]wFMCommunicate OK [03:05:13]SAM_PROTO_GetShiftState done [03:05:13]FM_GetShiftState done [03:05:13]req_shift_opened done [03:05:13]requested_item shift.open_date is exist - process it [03:05:13]req_shift_open_date [03:05:13]req_shift_open_date done [03:05:13]produce_requested_data done [03:05:13]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112526,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:05:13]process_action_free close_receipt [03:05:13]json_value_free [03:05:13]json_value_free done [03:05:13]process_json_proto returns [03:05:13]Send response to host [03:05:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112526,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:05:13]free response buf [03:05:13]execute_script done [03:05:13]execute_script returns [03:05:13]free content buf [03:05:13]Sock 7.Close socket [03:05:13]Sock 7.Thread stoped [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:06]accept exits with 9 [03:06:06]New connection [03:06:06]New thread 3067317604 created [03:06:06]Thread 3067174244 joined [03:06:06]Waiting for new connection... [03:06:06] Sock 9.Parse request [03:06:06]Sock 9.Check first char [03:06:06]Sock 9.First char is OK [03:06:06]request: POST /json_proto HTTP/1.0 [03:06:06]Method: POST [03:06:06]URL: /json_proto [03:06:06]Method is POST - this is cgi request [03:06:06]url: /json_proto [03:06:06]query_string will be loaded in cgi processing [03:06:06]execute_cgi json_proto POST (null) [03:06:06]execute_cgi path=json_proto method=POST [03:06:06]POST find Content-Length [03:06:06]Host: 172.17.96.197:8080 [03:06:06]Content-Length: 895 [03:06:06]Content-Type: application/json [03:06:06] [03:06:06]POST finish read [03:06:06]Found Content-Length = 895 [03:06:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10473", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:06]execute_script... [03:06:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)10473", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 246.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:06:06]POST & json_proto [03:06:06]process_json_proto [03:06:06]json parsed OK: [03:06:06]protocol is kg_v1.0 [03:06:06]action value=close_receipt [03:06:06]process_action close_receipt [03:06:06]cmd_close_receipt [03:06:06]MH_GetDate [03:06:06]Write to MH i2c: F0 00 00 7E 14 81 [03:06:06]Write i2c OK [03:06:06]MH_I2C_Read... [03:06:06]Read from MH i2c: F0 [03:06:06]MH_I2C_Read... [03:06:06]Read from MH i2c: F0 09 00 [03:06:06]MH_I2C_Read... [03:06:06]Read from MH i2c: F0 09 00 7E 14 00 A0 99 1C 66 E0 85 7F 64 8D [03:06:06]GetLastDocTimeStamp 1713150311 [03:06:06]current date 1713150368 [03:06:06]FM_GetShiftState [03:06:06]SAM_PROTO_GetShiftState [03:06:06]wFMCommunicate request_size=4 [03:06:06]MH_SAM_APDU [03:06:06]CAPDU: 80 13 01 00 [03:06:06]Write to MH i2c: E2 08 00 7F 14 80 13 01 00 00 00 00 00 10 [03:06:06]Write i2c OK [03:06:06]MH_I2C_Read... [03:06:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:06]Read from MH i2c: E2 [03:06:06]MH_I2C_Read... [03:06:06]Read from MH i2c: E2 0E 00 [03:06:06]MH_I2C_Read... [03:06:06]Read from MH i2c: E2 0E 00 7F 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 C5 [03:06:06]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:06:06]wFMCommunicate OK [03:06:06]SAM_PROTO_GetShiftState done [03:06:06]FM_GetShiftState done [03:06:06]opened in 1713141170 [03:06:06]opened+sec_in_day 1713227570 [03:06:06]quantity*price = 9500 [03:06:06]sum+1 = 9501 [03:06:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741958 Сигареты Parliament Aqua Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 246.00 НСП 1% : 2.18 НДС 12% : 26.12 Наличными: 246.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 27 15.04.2024 03:06 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112527 ФПД: 246121214096774 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030608&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112527&fm=246121214096774&tin=02508201610067®Number=0000000000094237&sum=24600 0 [03:06:07]StoreToDocumentArchive [03:06:07]shift 358 fd 112527 [03:06:07]save to /storage/0358/doc_00112527 [03:06:07]save last doc name /storage/0358/doc_00112527 to /storage/kkm_last_doc_name [03:06:07]save OK [03:06:07]Clear old archive folders... [03:06:07]ProcessDocumentItem done err = 0, tmpTLVsize=392 [03:06:07]tlvbuf is 019D0EF0 [03:06:07]SAM_PROTO_ClearQueue [03:06:07]wFMCommunicate request_size=4 [03:06:07]MH_SAM_APDU [03:06:07]CAPDU: 80 09 00 00 [03:06:07]Write to MH i2c: E2 08 00 8C 14 80 09 00 00 00 00 00 00 12 [03:06:07]Write i2c OK [03:06:07]MH_I2C_Read... [03:06:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:06:07]Read from MH i2c: E2 [03:06:07]MH_I2C_Read... [03:06:07]Read from MH i2c: E2 03 00 [03:06:07]MH_I2C_Read... [03:06:07]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [03:06:07]RAPDU: 90 00 [03:06:07]wFMCommunicate OK [03:06:07]SAM_PROTO_ClearQueue done [03:06:07]KKMCreateOFDPacket [03:06:07]OFDProtocolAddRootSTLVToBuf [03:06:07]FM_MakeSignedData [03:06:07]FM_MakeSignedData [03:06:07]SAM_PROTO_SignData [03:06:07]wFMCommunicate request_size=4 [03:06:07]MH_SAM_APDU [03:06:07]CAPDU: 80 0D 01 02 [03:06:07]Write to MH i2c: E2 08 00 8D 14 80 0D 01 02 00 00 00 00 1A [03:06:07]Write i2c OK [03:06:07]MH_I2C_Read... [03:06:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:06:07]Read from MH i2c: E2 [03:06:07]MH_I2C_Read... [03:06:07]Read from MH i2c: E2 03 00 [03:06:07]MH_I2C_Read... [03:06:07]Read from MH i2c: E2 03 00 8D 14 00 90 00 15 [03:06:07]RAPDU: 90 00 [03:06:07]wFMCommunicate OK [03:06:07]wFMCommunicate request_size=255 [03:06:07]MH_SAM_APDU [03:06:07]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [03:06:07]Write to MH i2c: E2 02 01 8E 14 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 C7 [03:06:07]Write i2c OK [03:06:07]MH_I2C_Read... [03:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:08]Read from MH i2c: E2 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 03 00 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 03 00 8E 14 00 90 00 16 [03:06:08]RAPDU: 90 00 [03:06:08]wFMCommunicate OK [03:06:08]wFMCommunicate request_size=151 [03:06:08]MH_SAM_APDU [03:06:08]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A0 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B7 01 00 35 04 06 00 DF D8 8F 89 B5 86 [03:06:08]Write to MH i2c: E2 9A 00 8F 14 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A0 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B7 01 00 35 04 06 00 DF D8 8F 89 B5 86 00 00 8F [03:06:08]Write i2c OK [03:06:08]MH_I2C_Read... [03:06:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:06:08]Read from MH i2c: E2 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 03 00 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 03 00 8F 14 00 90 00 17 [03:06:08]RAPDU: 90 00 [03:06:08]wFMCommunicate OK [03:06:08]wFMCommunicate request_size=4 [03:06:08]MH_SAM_APDU [03:06:08]CAPDU: 80 0D 03 02 [03:06:08]Write to MH i2c: E2 08 00 90 14 80 0D 03 02 00 00 00 00 1F [03:06:08]Write i2c OK [03:06:08]MH_I2C_Read... [03:06:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:06:08]Read from MH i2c: E2 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 0B 00 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 0B 00 90 14 00 F3 4C 1F 67 8D 9E 21 BD 90 00 EE [03:06:08]RAPDU: F3 4C 1F 67 8D 9E 21 BD 90 00 [03:06:08]wFMCommunicate OK [03:06:08]SAM_PROTO_SignData done [03:06:08]FM_MakeSignedData done [03:06:08]CreateOFDProtocolMessage [03:06:08]wFMCommunicate request_size=4 [03:06:08]MH_SAM_APDU [03:06:08]CAPDU: 80 11 00 00 [03:06:08]Write to MH i2c: E2 08 00 91 14 80 11 00 00 00 00 00 00 1F [03:06:08]Write i2c OK [03:06:08]MH_I2C_Read... [03:06:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:08]Read from MH i2c: E2 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 17 00 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: E2 17 00 91 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 70 [03:06:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:06:08]wFMCommunicate OK [03:06:08]CreateOFDProtocolMessage done [03:06:08]OFDSenderStorePacket 112527 [03:06:08]StoreOFDPacket docnum=112527 [03:06:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 9C 01 00 00 46 7E 94 01 06 15 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A0 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B7 01 00 35 04 06 00 DF D8 8F 89 B5 86 F3 4C 1F 67 8D 9E 21 BD [03:06:08]CheckFolder [03:06:08]dirname=/storage/ofd_packets [03:06:08]CheckFolder done [03:06:08]ProducePacketName [03:06:08]name=ofd_packets/00112527 [03:06:08]NVStorageSaveData ofd_packets/00112527 [03:06:08]File name is /storage/ofd_packets/00112527 [03:06:08]Write 442 bytes [03:06:08]NVStorageSaveData done [03:06:08]OFDSenderStorePacket done [03:06:08]KKMCreateOFDPacket done [03:06:08]NVStorageSaveData kkm_last_timestamp [03:06:08]File name is /storage/kkm_last_timestamp [03:06:08]Write 4 bytes [03:06:08]NVStorageSaveData done [03:06:08]ExternCall_PrintAddStr [03:06:08]wPrintStart [03:06:08]Write to MH i2c: 01 00 00 92 14 A6 [03:06:08]Write i2c OK [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: 01 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: 01 07 00 [03:06:08]MH_I2C_Read... [03:06:08]Read from MH i2c: 01 07 00 92 14 00 00 00 00 00 FF 0F BB [03:06:08]RasterBufferAndPrint [03:06:08]line Счет N : (3)10473 [03:06:08]line ИНН: 02508201610067 [03:06:08]line Контрольно-Кассовый Чек [03:06:08]line ПРОДАЖА [03:06:08]line Товар: 4700000481453 [03:06:08]line Напиток энерг Nitro Max 0,45 ж/б [03:06:08]line 1.000 * 95.00 [03:06:08]line = 95.00 [03:06:08]line НДС 12% НСП 1% [03:06:08]line > о реализуемом товаре [03:06:08]line Товар: 48741958 [03:06:08]line Сигареты Parliament Aqua Blue [03:06:08]line 1.000 * 151.00 [03:06:08]line = 151.00 [03:06:08]line НДС 12% НСП 1% [03:06:08]line > о реализуемом товаре [03:06:08]line ИТОГО: 246.00 [03:06:08]line НСП 1% : 2.18 [03:06:08]line НДС 12% : 26.12 [03:06:08]line Наличными: 246.00 [03:06:08]line Безнал.: 0.00 [03:06:08]line Место: АЗС № 47 "Партнер Нефть" [03:06:08]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:06:08]line СНО: Общий режим [03:06:08]line Чек 27 15.04.2024 03:06 [03:06:08]line Смена: 358 ФФД: 1.0 [03:06:08]line ЗНМ: 0300000138 [03:06:08]line РНМ: 0000000000094237 [03:06:08]line Версия ККМ: 001 [03:06:08]line ФМ: 0000000000875019 [03:06:08]line ФД: 112527 [03:06:08]line ФПД: 246121214096774 [03:06:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T030608&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112527&fm=246121214096774&tin=02508201610067®Number=0000000000094237&sum=24600 [03:06:08]line 0 [03:06:08]OFD Sender: Processing packet 112527 [packets to send 71, broken 70] [03:06:08]ProducePacketName [03:06:08]name=ofd_packets/00112527 [03:06:08]OFD Sender: To server: pG, [03:06:08]CommunicateWithHost lk.salyk.kg:30040 [03:06:08]ConnectInit lk.salyk.kg [03:06:08]written 0, free lines is 4095 [03:06:08]Connected sock=10 [03:06:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 9C 01 00 00 46 7E 94 01 06 15 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 0A 00 00 00 00 07 04 06 00 18 60 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 A0 99 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B7 01 00 35 04 06 00 DF D8 8F 89 B5 86 F3 4C 1F 67 8D 9E 21 BD [03:06:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 2F 3F 47 00 20 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 8F B7 01 00 F4 03 04 00 2A 41 1C 66 B6 04 01 00 00 12 1D FA D1 DF 1A DF 6D [03:06:09]CommunicateWithHost err = 0 [03:06:09]CheckOFDResponse [03:06:09]1017 (14) - 77093643461234 [03:06:09]1041 (16) - 0000000000875019 [03:06:09]1040 (4) - 112527 [03:06:09]1012 (4) - 14.04.2024 20:48 [03:06:09]1206 (1) - 0 [03:06:09]OFD Sender: Remove packet 112527 [03:06:09]ProducePacketName [03:06:09]name=ofd_packets/00112527 [03:06:09]NVStorageDeleteData [03:06:09]Write to MH i2c: 01 00 00 C2 14 D6 [03:06:09]Write i2c OK [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: 01 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: 01 07 00 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: 01 07 00 C2 14 00 00 00 00 00 66 0C 4F [03:06:09]RasterBufferAndPrint [03:06:09]line [03:06:09]line [03:06:09]line [03:06:09]line [03:06:09]line [03:06:09]written 0, free lines is 3183 [03:06:09]MH_Cut [03:06:09]Write to MH i2c: D1 01 00 C9 14 01 AF [03:06:09]Write i2c OK [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: D1 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: D1 01 00 [03:06:09]MH_I2C_Read... [03:06:09]Read from MH i2c: D1 01 00 C9 14 00 AE [03:06:09]Write to MH i2c: 01 00 00 CA 14 DE [03:06:09]Write i2c OK [03:06:09]MH_I2C_Read... [03:06:09]OFD Sender: No OFD packet to send [03:06:09]*** Cut start [03:06:09]*** Partial cut [03:06:09]*** CUTSNS_PIN = 1 [03:06:10]*** CUTSNS_PIN = 0 [03:06:10]*** Brake cut motor [03:06:10]Read from MH i2c: 01 [03:06:10]MH_I2C_Read... [03:06:10]*** Stop cut motor [03:06:10]*** Cut end [03:06:10]Read from MH i2c: 01 07 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: 01 07 00 CA 14 00 00 00 00 00 FF 0F F3 [03:06:10]process_action close_receipt done [03:06:10]requested_data is exist [03:06:10]produce_requested_data [03:06:10]requested_item fm.sn is exist - process it [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 11 00 00 [03:06:10]Write to MH i2c: E2 08 00 CB 14 80 11 00 00 00 00 00 00 59 [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 17 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 17 00 CB 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AA [03:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:06:10]wFMCommunicate OK [03:06:10]requested_item fd.num is exist - process it [03:06:10]SAM_PROTO_GetFieldsCounters [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 13 00 00 [03:06:10]Write to MH i2c: E2 08 00 CC 14 80 13 00 00 00 00 00 00 5C [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 62 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 62 00 CC 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [03:06:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:06:10]wFMCommunicate OK [03:06:10]SAM_PROTO_GetFieldsCounters done [03:06:10]requested_item shift.num is exist - process it [03:06:10]requested_item shift.opened is exist - process it [03:06:10]req_shift_opened [03:06:10]FM_GetShiftState [03:06:10]SAM_PROTO_GetShiftState [03:06:10]wFMCommunicate request_size=4 [03:06:10]MH_SAM_APDU [03:06:10]CAPDU: 80 13 01 00 [03:06:10]Write to MH i2c: E2 08 00 CD 14 80 13 01 00 00 00 00 00 5E [03:06:10]Write i2c OK [03:06:10]MH_I2C_Read... [03:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:06:10]Read from MH i2c: E2 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0E 00 [03:06:10]MH_I2C_Read... [03:06:10]Read from MH i2c: E2 0E 00 CD 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 13 [03:06:10]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:06:10]wFMCommunicate OK [03:06:10]SAM_PROTO_GetShiftState done [03:06:10]FM_GetShiftState done [03:06:10]req_shift_opened done [03:06:10]requested_item shift.open_date is exist - process it [03:06:10]req_shift_open_date [03:06:10]req_shift_open_date done [03:06:10]produce_requested_data done [03:06:10]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112527,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:06:10]process_action_free close_receipt [03:06:10]json_value_free [03:06:10]json_value_free done [03:06:10]process_json_proto returns [03:06:10]Send response to host [03:06:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112527,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:06:10]free response buf [03:06:10]execute_script done [03:06:10]execute_script returns [03:06:10]free content buf [03:06:10]Sock 9.Close socket [03:06:10]Sock 9.Thread stoped [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:01]accept exits with 7 [03:07:01]New connection [03:07:01]New thread 3067174244 created [03:07:01]Thread 3067317604 joined [03:07:01]Waiting for new connection... [03:07:01] Sock 7.Parse request [03:07:01]Sock 7.Check first char [03:07:01]Sock 7.First char is OK [03:07:01]request: POST /json_proto HTTP/1.0 [03:07:01]Method: POST [03:07:01]URL: /json_proto [03:07:01]Method is POST - this is cgi request [03:07:01]url: /json_proto [03:07:01]query_string will be loaded in cgi processing [03:07:01]execute_cgi json_proto POST (null) [03:07:01]execute_cgi path=json_proto method=POST [03:07:01]POST find Content-Length [03:07:01]Host: 172.17.96.197:8080 [03:07:01]Content-Length: 215 [03:07:01]Content-Type: application/json [03:07:01] [03:07:01]POST finish read [03:07:01]Found Content-Length = 215 [03:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:01]execute_script... [03:07:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:07:01]POST & json_proto [03:07:01]process_json_proto [03:07:01]json parsed OK: [03:07:01]protocol is kg_v1.0 [03:07:01]action value=get_value [03:07:01]process_action get_value [03:07:01]cmd_get_value [03:07:01]process_action get_value done [03:07:01]requested_data is exist [03:07:01]produce_requested_data [03:07:01]requested_item kkm.sn is exist - process it [03:07:01]requested_item kkm.ver is exist - process it [03:07:01]requested_item fm.sn is exist - process it [03:07:01]wFMCommunicate request_size=4 [03:07:01]MH_SAM_APDU [03:07:01]CAPDU: 80 11 00 00 [03:07:01]Write to MH i2c: E2 08 00 CE 14 80 11 00 00 00 00 00 00 5C [03:07:01]Write i2c OK [03:07:01]MH_I2C_Read... [03:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:07:01]Read from MH i2c: E2 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 17 00 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 17 00 CE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 AD [03:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:07:01]wFMCommunicate OK [03:07:01]requested_item fd.num is exist - process it [03:07:01]SAM_PROTO_GetFieldsCounters [03:07:01]wFMCommunicate request_size=4 [03:07:01]MH_SAM_APDU [03:07:01]CAPDU: 80 13 00 00 [03:07:01]Write to MH i2c: E2 08 00 CF 14 80 13 00 00 00 00 00 00 5F [03:07:01]Write i2c OK [03:07:01]MH_I2C_Read... [03:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:07:01]Read from MH i2c: E2 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 62 00 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 62 00 CF 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [03:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 8F B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:07:01]wFMCommunicate OK [03:07:01]SAM_PROTO_GetFieldsCounters done [03:07:01]requested_item shift.num is exist - process it [03:07:01]requested_item shift.opened is exist - process it [03:07:01]req_shift_opened [03:07:01]FM_GetShiftState [03:07:01]SAM_PROTO_GetShiftState [03:07:01]wFMCommunicate request_size=4 [03:07:01]MH_SAM_APDU [03:07:01]CAPDU: 80 13 01 00 [03:07:01]Write to MH i2c: E2 08 00 D0 14 80 13 01 00 00 00 00 00 61 [03:07:01]Write i2c OK [03:07:01]MH_I2C_Read... [03:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:07:01]Read from MH i2c: E2 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 0E 00 [03:07:01]MH_I2C_Read... [03:07:01]Read from MH i2c: E2 0E 00 D0 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 16 [03:07:01]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:07:01]wFMCommunicate OK [03:07:01]SAM_PROTO_GetShiftState done [03:07:01]FM_GetShiftState done [03:07:01]req_shift_opened done [03:07:01]requested_item shift.open_date is exist - process it [03:07:01]req_shift_open_date [03:07:01]req_shift_open_date done [03:07:01]produce_requested_data done [03:07:01]produce_requested_data return {"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112527,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:07:01]process_action_free get_value [03:07:01]json_value_free [03:07:01]json_value_free done [03:07:01]process_json_proto returns [03:07:01]Send response to host [03:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000138","kkm.ver":"001","fm.sn":"0000000000875019","fd.num":112527,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:07:01]free response buf [03:07:01]execute_script done [03:07:01]execute_script returns [03:07:01]free content buf [03:07:01]Sock 7.Close socket [03:07:01]Sock 7.Thread stoped [03:07:01]accept exits with 9 [03:07:01]New connection [03:07:01]New thread 3067317604 created [03:07:01]Thread 3067174244 joined [03:07:01]Waiting for new connection... [03:07:01] Sock 9.Parse request [03:07:01]Sock 9.Check first char [03:07:01]Sock 9.First char is OK [03:07:01]request: POST /json_proto HTTP/1.0 [03:07:01]Method: POST [03:07:01]URL: /json_proto [03:07:01]Method is POST - this is cgi request [03:07:01]url: /json_proto [03:07:01]query_string will be loaded in cgi processing [03:07:01]execute_cgi json_proto POST (null) [03:07:01]execute_cgi path=json_proto method=POST [03:07:01]POST find Content-Length [03:07:01]Host: 172.17.96.197:8080 [03:07:01]Content-Length: 331 [03:07:01]Content-Type: application/json [03:07:01] [03:07:01]POST finish read [03:07:01]Found Content-Length = 331 [03:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [03:07:01]execute_script... [03:07:02]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" ] } } [03:07:02]POST & json_proto [03:07:02]process_json_proto [03:07:02]json parsed OK: [03:07:02]protocol is kg_v1.0 [03:07:02]action value=get_value [03:07:02]process_action get_value [03:07:02]cmd_get_value [03:07:02]process_action get_value done [03:07:02]requested_data is exist [03:07:02]produce_requested_data [03:07:02]requested_item fm.sale.total is exist - process it [03:07:02]SAM_PROTO_GetFMData [03:07:02]wFMCommunicate request_size=4 [03:07:02]MH_SAM_APDU [03:07:02]CAPDU: 80 13 03 00 [03:07:02]Write to MH i2c: E2 08 00 D1 14 80 13 03 00 00 00 00 00 64 [03:07:02]Write i2c OK [03:07:02]MH_I2C_Read... [03:07:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [03:07:02]Read from MH i2c: E2 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 D1 14 00 C8 04 85 04 C4 04 6E 04 04 00 C3 B4 01 00 69 04 A3 00 6F 04 04 00 4B AF 01 00 B1 04 05 00 7E 88 54 C9 01 70 04 05 00 12 30 4F 88 01 72 04 04 00 6C 58 05 41 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 C6 6F 94 30 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 8D 3B 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 60 [03:07:02]RAPDU: C8 04 85 04 C4 04 6E 04 04 00 C3 B4 01 00 69 04 A3 00 6F 04 04 00 4B AF 01 00 B1 04 05 00 7E 88 54 C9 01 70 04 05 00 12 30 4F 88 01 72 04 04 00 6C 58 05 41 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 C6 6F 94 30 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 8D 3B 0C 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F 00 6F 04 04 00 78 05 00 00 B1 04 04 00 98 1D 6A 0D 70 04 04 00 DC 71 68 0D 72 04 03 00 BC AB 01 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 3F BC 6C 01 90 00 [03:07:02]wFMCommunicate OK [03:07:02]wFMCommunicate request_size=4 [03:07:02]MH_SAM_APDU [03:07:02]CAPDU: 80 17 00 00 [03:07:02]Write to MH i2c: E2 08 00 D2 14 80 17 00 00 00 00 00 00 66 [03:07:02]Write i2c OK [03:07:02]MH_I2C_Read... [03:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:02]Read from MH i2c: E2 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 D2 14 00 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3D [03:07:02]RAPDU: 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 59 64 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [03:07:02]wFMCommunicate OK [03:07:02]wFMCommunicate request_size=4 [03:07:02]MH_SAM_APDU [03:07:02]CAPDU: 80 17 00 00 [03:07:02]Write to MH i2c: E2 08 00 D3 14 80 17 00 00 00 00 00 00 67 [03:07:02]Write i2c OK [03:07:02]MH_I2C_Read... [03:07:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:02]Read from MH i2c: E2 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 [03:07:02]MH_I2C_Read... [03:07:02]Read from MH i2c: E2 FD 00 D3 14 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [03:07:02]RAPDU: 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [03:07:02]wFMCommunicate OK [03:07:02]wFMCommunicate request_size=4 [03:07:02]MH_SAM_APDU [03:07:02]CAPDU: 80 17 00 00 [03:07:02]Write to MH i2c: E2 08 00 D4 14 80 17 00 00 00 00 00 00 68 [03:07:02]Write i2c OK [03:07:02]MH_I2C_Read... [03:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:03]Read from MH i2c: E2 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 FD 00 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 FD 00 D4 14 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E0 [03:07:03]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [03:07:03]wFMCommunicate OK [03:07:03]wFMCommunicate request_size=4 [03:07:03]MH_SAM_APDU [03:07:03]CAPDU: 80 17 00 00 [03:07:03]Write to MH i2c: E2 08 00 D5 14 80 17 00 00 00 00 00 00 69 [03:07:03]Write i2c OK [03:07:03]MH_I2C_Read... [03:07:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 226! [03:07:03]Read from MH i2c: E2 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 E5 00 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 E5 00 D5 14 00 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4D [03:07:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:07:03]wFMCommunicate OK [03:07:03]SAM_PROTO_GetFMData done [03:07:03]requested_item fm.sale_refund.total is exist - process it [03:07:03]requested_item fm.buy.total is exist - process it [03:07:03]requested_item shift.sale.total is exist - process it [03:07:03]SAM_PROTO_GetShiftData [03:07:03]wFMCommunicate request_size=4 [03:07:03]MH_SAM_APDU [03:07:03]CAPDU: 80 13 02 00 [03:07:03]Write to MH i2c: E2 08 00 D6 14 80 13 02 00 00 00 00 00 68 [03:07:03]Write i2c OK [03:07:03]MH_I2C_Read... [03:07:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [03:07:03]Read from MH i2c: E2 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 FD 00 [03:07:03]MH_I2C_Read... [03:07:03]Read from MH i2c: E2 FD 00 D6 14 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 AA 1B 13 70 04 03 00 E0 3E 0E 72 04 03 00 CA DC 04 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 8E 07 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1C [03:07:03]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 AA 1B 13 70 04 03 00 E0 3E 0E 72 04 03 00 CA DC 04 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 8E 07 02 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 4D 2B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [03:07:03]wFMCommunicate OK [03:07:03]wFMCommunicate request_size=4 [03:07:03]MH_SAM_APDU [03:07:03]CAPDU: 80 17 00 00 [03:07:03]Write to MH i2c: E2 08 00 D7 14 80 17 00 00 00 00 00 00 6B [03:07:03]Write i2c OK [03:07:03]MH_I2C_Read... [03:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:04]Read from MH i2c: E2 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 D7 14 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 8D [03:07:04]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 [03:07:04]wFMCommunicate OK [03:07:04]wFMCommunicate request_size=4 [03:07:04]MH_SAM_APDU [03:07:04]CAPDU: 80 17 00 00 [03:07:04]Write to MH i2c: E2 08 00 D8 14 80 17 00 00 00 00 00 00 6C [03:07:04]Write i2c OK [03:07:04]MH_I2C_Read... [03:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:04]Read from MH i2c: E2 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 D8 14 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 23 [03:07:04]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [03:07:04]wFMCommunicate OK [03:07:04]wFMCommunicate request_size=4 [03:07:04]MH_SAM_APDU [03:07:04]CAPDU: 80 17 00 00 [03:07:04]Write to MH i2c: E2 08 00 D9 14 80 17 00 00 00 00 00 00 6D [03:07:04]Write i2c OK [03:07:04]MH_I2C_Read... [03:07:04]OFD Sender: No OFD packet to send [03:07:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [03:07:04]Read from MH i2c: E2 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 [03:07:04]MH_I2C_Read... [03:07:04]Read from MH i2c: E2 FD 00 D9 14 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 DF [03:07:04]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [03:07:04]wFMCommunicate OK [03:07:04]wFMCommunicate request_size=4 [03:07:04]MH_SAM_APDU [03:07:04]CAPDU: 80 17 00 00 [03:07:04]Write to MH i2c: E2 08 00 DA 14 80 17 00 00 00 00 00 00 6E [03:07:04]Write i2c OK [03:07:04]MH_I2C_Read... [03:07:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [03:07:05]Read from MH i2c: E2 [03:07:05]MH_I2C_Read... [03:07:05]Read from MH i2c: E2 CB 00 [03:07:05]MH_I2C_Read... [03:07:05]Read from MH i2c: E2 CB 00 DA 14 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 57 [03:07:05]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 [03:07:05]wFMCommunicate OK [03:07:05]SAM_PROTO_GetShiftData done [03:07:05]requested_item shift.sale.total_cash is exist - process it [03:07:05]requested_item shift.sale_refund.total is exist - process it [03:07:05]requested_item shift.sale_refund.total_cash is exist - process it [03:07:05]requested_item shift.buy.total is exist - process it [03:07:05]requested_item shift.buy.total_cash is exist - process it [03:07:05]produce_requested_data done [03:07:05]produce_requested_data return {"fm.sale.total":76727276.78,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":12522.66,"shift.sale.total_cash":9336.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} [03:07:05]process_action_free get_value [03:07:05]json_value_free [03:07:05]json_value_free done [03:07:05]process_json_proto returns [03:07:05]Send response to host [03:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":76727276.78,"fm.sale_refund.total":2250582.00,"fm.buy.total":0.00,"shift.sale.total":12522.66,"shift.sale.total_cash":9336.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}}} [03:07:05]free response buf [03:07:05]execute_script done [03:07:05]execute_script returns [03:07:05]free content buf [03:07:05]Sock 9.Close socket [03:07:05]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:18]accept exits with 7 [03:10:18]New connection [03:10:18]New thread 3067174244 created [03:10:18]Thread 3067317604 joined [03:10:18]Waiting for new connection... [03:10:18] Sock 7.Parse request [03:10:18]Sock 7.Check first char [03:10:18]Sock 7.First char is OK [03:10:18]request: POST /json_proto HTTP/1.0 [03:10:18]Method: POST [03:10:18]URL: /json_proto [03:10:18]Method is POST - this is cgi request [03:10:18]url: /json_proto [03:10:18]query_string will be loaded in cgi processing [03:10:18]execute_cgi json_proto POST (null) [03:10:18]execute_cgi path=json_proto method=POST [03:10:18]POST find Content-Length [03:10:18]Host: 172.17.96.197:8080 [03:10:18]Content-Length: 684 [03:10:18]Content-Type: application/json [03:10:18] [03:10:18]POST finish read [03:10:18]Found Content-Length = 684 [03:10:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 29.680, "sum" : 1000.22, "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:10:18]execute_script... [03:10: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)48799", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 72", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 33.70, "quantity" : 29.680, "sum" : 1000.22, "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:10:18]POST & json_proto [03:10:18]process_json_proto [03:10:18]json parsed OK: [03:10:18]protocol is kg_v1.0 [03:10:18]action value=close_receipt [03:10:18]process_action close_receipt [03:10:18]cmd_close_receipt [03:10:18]MH_GetDate [03:10:18]Write to MH i2c: F0 00 00 DB 14 DE [03:10:18]Write i2c OK [03:10:18]MH_I2C_Read... [03:10:18]Read from MH i2c: F0 [03:10:18]MH_I2C_Read... [03:10:18]Read from MH i2c: F0 09 00 [03:10:18]MH_I2C_Read... [03:10:18]Read from MH i2c: F0 09 00 DB 14 00 9C 9A 1C 66 E0 85 7F 64 E7 [03:10:18]GetLastDocTimeStamp 1713150368 [03:10:18]current date 1713150620 [03:10:18]FM_GetShiftState [03:10:18]SAM_PROTO_GetShiftState [03:10:18]wFMCommunicate request_size=4 [03:10:18]MH_SAM_APDU [03:10:18]CAPDU: 80 13 01 00 [03:10:18]Write to MH i2c: E2 08 00 DC 14 80 13 01 00 00 00 00 00 6D [03:10:18]Write i2c OK [03:10:18]MH_I2C_Read... [03:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:18]Read from MH i2c: E2 [03:10:18]MH_I2C_Read... [03:10:18]Read from MH i2c: E2 0E 00 [03:10:18]MH_I2C_Read... [03:10:18]Read from MH i2c: E2 0E 00 DC 14 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 22 [03:10:18]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:10:18]wFMCommunicate OK [03:10:18]SAM_PROTO_GetShiftState done [03:10:18]FM_GetShiftState done [03:10:18]opened in 1713141170 [03:10:18]opened+sec_in_day 1713227570 [03:10:18]quantity*price = 100021 [03:10:18]sum+1 = 100023 [03:10:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 28 15.04.2024 03:10 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112528 ФПД: 180764022107333 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T031020&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112528&fm=180764022107333&tin=02508201610067®Number=0000000000094237&sum=100000 [03:10:19]StoreToDocumentArchive [03:10:19]shift 358 fd 112528 [03:10:19]save to /storage/0358/doc_00112528 [03:10:19]save last doc name /storage/0358/doc_00112528 to /storage/kkm_last_doc_name [03:10:19]save OK [03:10:19]Clear old archive folders... [03:10:19]ProcessDocumentItem done err = 0, tmpTLVsize=250 [03:10:19]tlvbuf is 019E4610 [03:10:19]SAM_PROTO_ClearQueue [03:10:19]wFMCommunicate request_size=4 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 09 00 00 [03:10:19]Write to MH i2c: E2 08 00 E9 14 80 09 00 00 00 00 00 00 6F [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [03:10:19]RAPDU: 90 00 [03:10:19]wFMCommunicate OK [03:10:19]SAM_PROTO_ClearQueue done [03:10:19]KKMCreateOFDPacket [03:10:19]OFDProtocolAddRootSTLVToBuf [03:10:19]FM_MakeSignedData [03:10:19]FM_MakeSignedData [03:10:19]SAM_PROTO_SignData [03:10:19]wFMCommunicate request_size=4 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 0D 01 02 [03:10:19]Write to MH i2c: E2 08 00 EA 14 80 0D 01 02 00 00 00 00 77 [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 EA 14 00 90 00 72 [03:10:19]RAPDU: 90 00 [03:10:19]wFMCommunicate OK [03:10:19]wFMCommunicate request_size=255 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B7 01 00 35 04 06 00 A4 67 [03:10:19]Write to MH i2c: E2 02 01 EB 14 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B7 01 00 35 04 06 00 A4 67 00 00 F8 [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 EB 14 00 90 00 73 [03:10:19]RAPDU: 90 00 [03:10:19]wFMCommunicate OK [03:10:19]wFMCommunicate request_size=9 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 0D 02 02 04 67 53 6C C5 [03:10:19]Write to MH i2c: E2 0C 00 EC 14 80 0D 02 02 04 00 67 53 6C C5 00 00 6D [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 03 00 EC 14 00 90 00 74 [03:10:19]RAPDU: 90 00 [03:10:19]wFMCommunicate OK [03:10:19]wFMCommunicate request_size=4 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 0D 03 02 [03:10:19]Write to MH i2c: E2 08 00 ED 14 80 0D 03 02 00 00 00 00 7C [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 0B 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 0B 00 ED 14 00 08 0D 48 F8 DC C6 6D 43 90 00 24 [03:10:19]RAPDU: 08 0D 48 F8 DC C6 6D 43 90 00 [03:10:19]wFMCommunicate OK [03:10:19]SAM_PROTO_SignData done [03:10:19]FM_MakeSignedData done [03:10:19]CreateOFDProtocolMessage [03:10:19]wFMCommunicate request_size=4 [03:10:19]MH_SAM_APDU [03:10:19]CAPDU: 80 11 00 00 [03:10:19]Write to MH i2c: E2 08 00 EE 14 80 11 00 00 00 00 00 00 7C [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]OFD Sender: No OFD packet to send [03:10:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:19]Read from MH i2c: E2 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 17 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: E2 17 00 EE 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 CD [03:10:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:10:19]wFMCommunicate OK [03:10:19]CreateOFDProtocolMessage done [03:10:19]OFDSenderStorePacket 112528 [03:10:19]StoreOFDPacket docnum=112528 [03:10:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A5 F0 06 01 3C 4E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B7 01 00 35 04 06 00 A4 67 67 53 6C C5 08 0D 48 F8 DC C6 6D 43 [03:10:19]CheckFolder [03:10:19]dirname=/storage/ofd_packets [03:10:19]CheckFolder done [03:10:19]ProducePacketName [03:10:19]name=ofd_packets/00112528 [03:10:19]NVStorageSaveData ofd_packets/00112528 [03:10:19]File name is /storage/ofd_packets/00112528 [03:10:19]Write 300 bytes [03:10:19]NVStorageSaveData done [03:10:19]OFDSenderStorePacket done [03:10:19]KKMCreateOFDPacket done [03:10:19]NVStorageSaveData kkm_last_timestamp [03:10:19]File name is /storage/kkm_last_timestamp [03:10:19]Write 4 bytes [03:10:19]NVStorageSaveData done [03:10:19]ExternCall_PrintAddStr [03:10:19]wPrintStart [03:10:19]Write to MH i2c: 01 00 00 EF 14 03 [03:10:19]Write i2c OK [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: 01 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: 01 07 00 [03:10:19]MH_I2C_Read... [03:10:19]Read from MH i2c: 01 07 00 EF 14 00 00 00 00 00 FF 0F 18 [03:10:19]RasterBufferAndPrint [03:10:19]line Счет N : (1)48799 [03:10:19]line ИНН: 02508201610067 [03:10:19]line Контрольно-Кассовый Чек [03:10:19]line ПРОДАЖА [03:10:19]line ТРК (МРК, ГНК) : 72 [03:10:19]line Товар: 2711190000 [03:10:19]line ГАЗ-К-5 [03:10:19]line 29.680 * 33.70 [03:10:19]line = 1000.22 [03:10:19]line НДС 12% НСП 1% [03:10:19]line > о реализуемом товаре [03:10:19]line ОКРУГЛЕНИЕ: -0.22 [03:10:19]line ИТОГО: 1000.00 [03:10:19]line Внесено: 1000.00 [03:10:19]line СДАЧА: 0.00 [03:10:19]line НСП 1% : 8.85 [03:10:19]line НДС 12% : 106.22 [03:10:19]line Наличными: 1000.00 [03:10:19]line Безнал.: 0.00 [03:10:19]line Место: АЗС № 47 "Партнер Нефть" [03:10:20]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:10:20]line СНО: Общий режим [03:10:20]line Чек 28 15.04.2024 03:10 [03:10:20]line Смена: 358 ФФД: 1.0 [03:10:20]line ЗНМ: 0300000138 [03:10:20]line РНМ: 0000000000094237 [03:10:20]line Версия ККМ: 001 [03:10:20]line ФМ: 0000000000875019 [03:10:20]line ФД: 112528 [03:10:20]line ФПД: 180764022107333 [03:10:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T031020&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112528&fm=180764022107333&tin=02508201610067®Number=0000000000094237&sum=100000 [03:10:20]OFD Sender: Processing packet 112528 [packets to send 71, broken 70] [03:10:20]ProducePacketName [03:10:20]name=ofd_packets/00112528 [03:10:20]OFD Sender: To server: pG, [03:10:20]CommunicateWithHost lk.salyk.kg:30040 [03:10:20]ConnectInit lk.salyk.kg [03:10:20]written 0, free lines is 4095 [03:10:20]Connected sock=10 [03:10:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0E 01 00 00 A5 F0 06 01 3C 4E 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 F0 73 00 00 00 00 00 37 04 06 00 2A 0D 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 9C 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B7 01 00 35 04 06 00 A4 67 67 53 6C C5 08 0D 48 F8 DC C6 6D 43 [03:10:20]Write to MH i2c: 01 00 00 1A 15 2F [03:10:20]Write i2c OK [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: 01 [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: 01 07 00 [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: 01 07 00 1A 15 00 00 00 00 00 D9 0C 1B [03:10:20]RasterBufferAndPrint [03:10:20]line [03:10:20]line [03:10:20]line [03:10:20]line [03:10:20]line [03:10:20]written 0, free lines is 3294 [03:10:20]MH_Cut [03:10:20]Write to MH i2c: D1 01 00 21 15 01 08 [03:10:20]Write i2c OK [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: D1 [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: D1 01 00 [03:10:20]MH_I2C_Read... [03:10:20]Read from MH i2c: D1 01 00 21 15 00 07 [03:10:20]Write to MH i2c: 01 00 00 22 15 37 [03:10:20]Write i2c OK [03:10:20]MH_I2C_Read... [03:10:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 F0 1F 47 00 F2 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 90 B7 01 00 F4 03 04 00 25 42 1C 66 B6 04 01 00 00 17 15 FA DA F3 8F 54 5F [03:10:20]CommunicateWithHost err = 0 [03:10:20]CheckOFDResponse [03:10:20]1017 (14) - 77093643461234 [03:10:20]1041 (16) - 0000000000875019 [03:10:20]1040 (4) - 112528 [03:10:20]1012 (4) - 14.04.2024 20:52 [03:10:20]1206 (1) - 0 [03:10:20]OFD Sender: Remove packet 112528 [03:10:20]ProducePacketName [03:10:20]name=ofd_packets/00112528 [03:10:20]NVStorageDeleteData [03:10:21]OFD Sender: No OFD packet to send [03:10:21]*** Cut start [03:10:21]*** Partial cut [03:10:21]*** CUTSNS_PIN = 1 [03:10:21]*** CUTSNS_PIN = 0 [03:10:21]*** Brake cut motor [03:10:22]Read from MH i2c: 01 [03:10:22]MH_I2C_Read... [03:10:22]*** Stop cut motor [03:10:22]*** Cut end [03:10:22]Read from MH i2c: 01 07 00 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: 01 07 00 22 15 00 00 00 00 00 FF 0F 4C [03:10:22]process_action close_receipt done [03:10:22]requested_data is exist [03:10:22]produce_requested_data [03:10:22]requested_item fm.sn is exist - process it [03:10:22]wFMCommunicate request_size=4 [03:10:22]MH_SAM_APDU [03:10:22]CAPDU: 80 11 00 00 [03:10:22]Write to MH i2c: E2 08 00 23 15 80 11 00 00 00 00 00 00 B2 [03:10:22]Write i2c OK [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 [03:10:22]MH_I2C_Read... [03:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:10:22]Read from MH i2c: E2 17 00 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 17 00 23 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 03 [03:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:10:22]wFMCommunicate OK [03:10:22]requested_item fd.num is exist - process it [03:10:22]SAM_PROTO_GetFieldsCounters [03:10:22]wFMCommunicate request_size=4 [03:10:22]MH_SAM_APDU [03:10:22]CAPDU: 80 13 00 00 [03:10:22]Write to MH i2c: E2 08 00 24 15 80 13 00 00 00 00 00 00 B5 [03:10:22]Write i2c OK [03:10:22]MH_I2C_Read... [03:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:10:22]Read from MH i2c: E2 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 62 00 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 62 00 24 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 90 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [03:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 90 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:10:22]wFMCommunicate OK [03:10:22]SAM_PROTO_GetFieldsCounters done [03:10:22]requested_item shift.num is exist - process it [03:10:22]requested_item shift.opened is exist - process it [03:10:22]req_shift_opened [03:10:22]FM_GetShiftState [03:10:22]SAM_PROTO_GetShiftState [03:10:22]wFMCommunicate request_size=4 [03:10:22]MH_SAM_APDU [03:10:22]CAPDU: 80 13 01 00 [03:10:22]Write to MH i2c: E2 08 00 25 15 80 13 01 00 00 00 00 00 B7 [03:10:22]Write i2c OK [03:10:22]MH_I2C_Read... [03:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:10:22]Read from MH i2c: E2 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 0E 00 [03:10:22]MH_I2C_Read... [03:10:22]Read from MH i2c: E2 0E 00 25 15 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 6C [03:10:22]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:10:22]wFMCommunicate OK [03:10:22]SAM_PROTO_GetShiftState done [03:10:22]FM_GetShiftState done [03:10:22]req_shift_opened done [03:10:22]requested_item shift.open_date is exist - process it [03:10:22]req_shift_open_date [03:10:22]req_shift_open_date done [03:10:22]produce_requested_data done [03:10:22]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112528,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:10:22]process_action_free close_receipt [03:10:22]json_value_free [03:10:22]json_value_free done [03:10:22]process_json_proto returns [03:10:22]Send response to host [03:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112528,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:10:22]free response buf [03:10:22]execute_script done [03:10:22]execute_script returns [03:10:22]free content buf [03:10:22]Sock 7.Close socket [03:10:22]Sock 7.Thread stoped [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:50]accept exits with 9 [03:11:50]New connection [03:11:50]New thread 3067317604 created [03:11:50]Thread 3067174244 joined [03:11:50]Waiting for new connection... [03:11:50] Sock 9.Parse request [03:11:50]Sock 9.Check first char [03:11:50]Sock 9.First char is OK [03:11:50]request: POST /json_proto HTTP/1.0 [03:11:50]Method: POST [03:11:50]URL: /json_proto [03:11:50]Method is POST - this is cgi request [03:11:50]url: /json_proto [03:11:50]query_string will be loaded in cgi processing [03:11:50]execute_cgi json_proto POST (null) [03:11:50]execute_cgi path=json_proto method=POST [03:11:50]POST find Content-Length [03:11:50]Host: 172.17.96.197:8080 [03:11:50]Content-Length: 681 [03:11:50]Content-Type: application/json [03:11:50] [03:11:50]POST finish read [03:11:50]Found Content-Length = 681 [03:11:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)48800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 21.610, "sum" : 1400.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:50]execute_script... [03:11: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)48800", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 64.80, "quantity" : 21.610, "sum" : 1400.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:11:50]POST & json_proto [03:11:50]process_json_proto [03:11:50]json parsed OK: [03:11:50]protocol is kg_v1.0 [03:11:50]action value=close_receipt [03:11:50]process_action close_receipt [03:11:50]cmd_close_receipt [03:11:50]MH_GetDate [03:11:50]Write to MH i2c: F0 00 00 26 15 2A [03:11:50]Write i2c OK [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 09 00 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: F0 09 00 26 15 00 F8 9A 1C 66 E0 85 7F 64 8F [03:11:50]GetLastDocTimeStamp 1713150620 [03:11:50]current date 1713150712 [03:11:50]FM_GetShiftState [03:11:50]SAM_PROTO_GetShiftState [03:11:50]wFMCommunicate request_size=4 [03:11:50]MH_SAM_APDU [03:11:50]CAPDU: 80 13 01 00 [03:11:50]Write to MH i2c: E2 08 00 27 15 80 13 01 00 00 00 00 00 B9 [03:11:50]Write i2c OK [03:11:50]MH_I2C_Read... [03:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:50]Read from MH i2c: E2 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: E2 0E 00 [03:11:50]MH_I2C_Read... [03:11:50]Read from MH i2c: E2 0E 00 27 15 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 6E [03:11:50]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:11:50]wFMCommunicate OK [03:11:50]SAM_PROTO_GetShiftState done [03:11:50]FM_GetShiftState done [03:11:50]opened in 1713141170 [03:11:50]opened+sec_in_day 1713227570 [03:11:50]quantity*price = 140032 [03:11:50]sum+1 = 140034 [03:11:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.71 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 47 "Партнер Нефть" Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 СНО: Общий режим Чек 29 15.04.2024 03:11 Смена: 358 ФФД: 1.0 ЗНМ: 0300000138 РНМ: 0000000000094237 Версия ККМ: 001 ФМ: 0000000000875019 ФД: 112529 ФПД: 141056879420949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T031153&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112529&fm=141056879420949&tin=02508201610067®Number=0000000000094237&sum=140000 [03:11:51]StoreToDocumentArchive [03:11:51]shift 358 fd 112529 [03:11:51]save to /storage/0358/doc_00112529 [03:11:51]save last doc name /storage/0358/doc_00112529 to /storage/kkm_last_doc_name [03:11:51]save OK [03:11:51]Clear old archive folders... [03:11:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:11:51]tlvbuf is 019D07B0 [03:11:51]SAM_PROTO_ClearQueue [03:11:51]wFMCommunicate request_size=4 [03:11:51]MH_SAM_APDU [03:11:51]CAPDU: 80 09 00 00 [03:11:51]Write to MH i2c: E2 08 00 34 15 80 09 00 00 00 00 00 00 BB [03:11:51]Write i2c OK [03:11:51]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 34 15 00 90 00 BD [03:11:52]RAPDU: 90 00 [03:11:52]wFMCommunicate OK [03:11:52]SAM_PROTO_ClearQueue done [03:11:52]KKMCreateOFDPacket [03:11:52]OFDProtocolAddRootSTLVToBuf [03:11:52]FM_MakeSignedData [03:11:52]FM_MakeSignedData [03:11:52]SAM_PROTO_SignData [03:11:52]wFMCommunicate request_size=4 [03:11:52]MH_SAM_APDU [03:11:52]CAPDU: 80 0D 01 02 [03:11:52]Write to MH i2c: E2 08 00 35 15 80 0D 01 02 00 00 00 00 C3 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 35 15 00 90 00 BE [03:11:52]RAPDU: 90 00 [03:11:52]wFMCommunicate OK [03:11:52]wFMCommunicate request_size=255 [03:11:52]MH_SAM_APDU [03:11: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 6A 54 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 01 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F9 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B7 01 00 35 04 06 00 80 [03:11:52]Write to MH i2c: E2 02 01 36 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 54 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 01 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F9 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B7 01 00 35 04 06 00 80 00 00 AE [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 36 15 00 90 00 BF [03:11:52]RAPDU: 90 00 [03:11:52]wFMCommunicate OK [03:11:52]wFMCommunicate request_size=10 [03:11:52]MH_SAM_APDU [03:11:52]CAPDU: 80 0D 02 02 05 4A 5D 30 E6 15 [03:11:52]Write to MH i2c: E2 0D 00 37 15 80 0D 02 02 05 00 4A 5D 30 E6 15 00 00 A2 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 03 00 37 15 00 90 00 C0 [03:11:52]RAPDU: 90 00 [03:11:52]wFMCommunicate OK [03:11:52]wFMCommunicate request_size=4 [03:11:52]MH_SAM_APDU [03:11:52]CAPDU: 80 0D 03 02 [03:11:52]Write to MH i2c: E2 08 00 38 15 80 0D 03 02 00 00 00 00 C8 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 0B 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 0B 00 38 15 00 34 2F 29 43 1D 60 30 D2 90 00 17 [03:11:52]RAPDU: 34 2F 29 43 1D 60 30 D2 90 00 [03:11:52]wFMCommunicate OK [03:11:52]SAM_PROTO_SignData done [03:11:52]FM_MakeSignedData done [03:11:52]CreateOFDProtocolMessage [03:11:52]wFMCommunicate request_size=4 [03:11:52]MH_SAM_APDU [03:11:52]CAPDU: 80 11 00 00 [03:11:52]Write to MH i2c: E2 08 00 39 15 80 11 00 00 00 00 00 00 C8 [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:52]Read from MH i2c: E2 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 17 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: E2 17 00 39 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 19 [03:11:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:11:52]wFMCommunicate OK [03:11:52]CreateOFDProtocolMessage done [03:11:52]OFDSenderStorePacket 112529 [03:11:52]StoreOFDPacket docnum=112529 [03:11:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 43 FA 07 01 95 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 54 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 01 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F9 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B7 01 00 35 04 06 00 80 4A 5D 30 E6 15 34 2F 29 43 1D 60 30 D2 [03:11:52]CheckFolder [03:11:52]dirname=/storage/ofd_packets [03:11:52]CheckFolder done [03:11:52]ProducePacketName [03:11:52]name=ofd_packets/00112529 [03:11:52]NVStorageSaveData ofd_packets/00112529 [03:11:52]File name is /storage/ofd_packets/00112529 [03:11:52]Write 301 bytes [03:11:52]NVStorageSaveData done [03:11:52]OFDSenderStorePacket done [03:11:52]KKMCreateOFDPacket done [03:11:52]NVStorageSaveData kkm_last_timestamp [03:11:52]File name is /storage/kkm_last_timestamp [03:11:52]Write 4 bytes [03:11:52]NVStorageSaveData done [03:11:52]OFD Sender: Processing packet 112529 [packets to send 71, broken 70] [03:11:52]ProducePacketName [03:11:52]name=ofd_packets/00112529 [03:11:52]OFD Sender: To server: pG, [03:11:52]CommunicateWithHost lk.salyk.kg:30040 [03:11:52]ConnectInit lk.salyk.kg [03:11:52]ExternCall_PrintAddStr [03:11:52]wPrintStart [03:11:52]Write to MH i2c: 01 00 00 3A 15 4F [03:11:52]Write i2c OK [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 07 00 [03:11:52]MH_I2C_Read... [03:11:52]Read from MH i2c: 01 07 00 3A 15 00 00 00 00 00 FF 0F 64 [03:11:52]RasterBufferAndPrint [03:11:52]line Счет N : (1)48800 [03:11:52]line ИНН: 02508201610067 [03:11:52]line Контрольно-Кассовый Чек [03:11:52]line ПРОДАЖА [03:11:52]line ТРК (МРК, ГНК) : 11 [03:11:52]line Товар: 2710124130 [03:11:52]line Аи-92-К-5 [03:11:52]line 21.610 * 64.80 [03:11:52]line = 1400.33 [03:11:52]line НДС 12% НСП 1% [03:11:52]line > о реализуемом товаре [03:11:52]line ОКРУГЛЕНИЕ: -0.33 [03:11:52]line ИТОГО: 1400.00 [03:11:52]line Внесено: 1400.00 [03:11:52]line СДАЧА: 0.00 [03:11:52]line НСП 1% : 12.39 [03:11:52]line НДС 12% : 148.71 [03:11:52]line Наличными: 1400.00 [03:11:52]line Безнал.: 0.00 [03:11:52]line Место: АЗС № 47 "Партнер Нефть" [03:11:52]line Адрес: 720001, г. Шопоков, ул. Фрунзе 2 А, 42.864490, 74.343379 [03:11:52]line СНО: Общий режим [03:11:52]line Чек 29 15.04.2024 03:11 [03:11:52]line Смена: 358 ФФД: 1.0 [03:11:52]line ЗНМ: 0300000138 [03:11:52]line РНМ: 0000000000094237 [03:11:52]line Версия ККМ: 001 [03:11:52]line ФМ: 0000000000875019 [03:11:52]line ФД: 112529 [03:11:52]line ФПД: 141056879420949 [03:11:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240415T031153&type=1&operation_type=1&fn_number=0000000000875019&fd_number=112529&fm=141056879420949&tin=02508201610067®Number=0000000000094237&sum=140000 [03:11:52]Connected sock=11 [03:11:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0F 01 00 00 43 FA 07 01 95 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 6A 54 00 00 00 00 00 37 04 06 00 50 19 00 00 00 00 13 04 06 00 01 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F9 9A 1C 66 0E 04 04 00 66 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B7 01 00 35 04 06 00 80 4A 5D 30 E6 15 34 2F 29 43 1D 60 30 D2 [03:11:52]written 0, free lines is 4095 [03:11:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 4F 00 00 00 E1 89 47 00 EF 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 10 04 04 00 91 B7 01 00 F4 03 04 00 82 42 1C 66 B6 04 01 00 00 E1 CA 46 45 BD 5F AC DD [03:11:53]CommunicateWithHost err = 0 [03:11:53]CheckOFDResponse [03:11:53]1017 (14) - 77093643461234 [03:11:53]1041 (16) - 0000000000875019 [03:11:53]1040 (4) - 112529 [03:11:53]1012 (4) - 14.04.2024 20:54 [03:11:53]1206 (1) - 0 [03:11:53]OFD Sender: Remove packet 112529 [03:11:53]ProducePacketName [03:11:53]name=ofd_packets/00112529 [03:11:53]NVStorageDeleteData [03:11:53]Write to MH i2c: 01 00 00 65 15 7A [03:11:53]Write i2c OK [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: 01 [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: 01 07 00 [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: 01 07 00 65 15 00 00 00 00 00 D9 0C 66 [03:11:53]RasterBufferAndPrint [03:11:53]line [03:11:53]line [03:11:53]line [03:11:53]line [03:11:53]line [03:11:53]written 0, free lines is 3296 [03:11:53]MH_Cut [03:11:53]Write to MH i2c: D1 01 00 6C 15 01 53 [03:11:53]Write i2c OK [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: D1 [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: D1 01 00 [03:11:53]MH_I2C_Read... [03:11:53]Read from MH i2c: D1 01 00 6C 15 00 52 [03:11:53]Write to MH i2c: 01 00 00 6D 15 82 [03:11:53]Write i2c OK [03:11:53]MH_I2C_Read... [03:11:53]OFD Sender: No OFD packet to send [03:11:54]*** Cut start [03:11:54]*** Partial cut [03:11:54]*** CUTSNS_PIN = 1 [03:11:54]*** CUTSNS_PIN = 0 [03:11:54]*** Brake cut motor [03:11:54]Read from MH i2c: 01 [03:11:54]MH_I2C_Read... [03:11:54]*** Stop cut motor [03:11:54]*** Cut end [03:11:54]Read from MH i2c: 01 07 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: 01 07 00 6D 15 00 00 00 00 00 FF 0F 97 [03:11:54]process_action close_receipt done [03:11:54]requested_data is exist [03:11:54]produce_requested_data [03:11:54]requested_item fm.sn is exist - process it [03:11:54]wFMCommunicate request_size=4 [03:11:54]MH_SAM_APDU [03:11:54]CAPDU: 80 11 00 00 [03:11:54]Write to MH i2c: E2 08 00 6E 15 80 11 00 00 00 00 00 00 FD [03:11:54]Write i2c OK [03:11:54]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 17 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 17 00 6E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 4E [03:11:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 90 00 [03:11:54]wFMCommunicate OK [03:11:54]requested_item fd.num is exist - process it [03:11:54]SAM_PROTO_GetFieldsCounters [03:11:54]wFMCommunicate request_size=4 [03:11:54]MH_SAM_APDU [03:11:54]CAPDU: 80 13 00 00 [03:11:54]Write to MH i2c: E2 08 00 6F 15 80 13 00 00 00 00 00 00 00 [03:11:54]Write i2c OK [03:11:54]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 62 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 62 00 6F 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 91 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [03:11:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 35 30 31 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 34 32 33 37 10 04 04 00 91 B7 01 00 0E 04 04 00 66 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:11:54]wFMCommunicate OK [03:11:54]SAM_PROTO_GetFieldsCounters done [03:11:54]requested_item shift.num is exist - process it [03:11:54]requested_item shift.opened is exist - process it [03:11:54]req_shift_opened [03:11:54]FM_GetShiftState [03:11:54]SAM_PROTO_GetShiftState [03:11:54]wFMCommunicate request_size=4 [03:11:54]MH_SAM_APDU [03:11:54]CAPDU: 80 13 01 00 [03:11:54]Write to MH i2c: E2 08 00 70 15 80 13 01 00 00 00 00 00 02 [03:11:54]Write i2c OK [03:11:54]MH_I2C_Read... [03:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:11:54]Read from MH i2c: E2 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 0E 00 [03:11:54]MH_I2C_Read... [03:11:54]Read from MH i2c: E2 0E 00 70 15 00 09 00 01 B2 75 1C 66 00 00 00 00 90 00 B7 [03:11:54]RAPDU: 09 00 01 B2 75 1C 66 00 00 00 00 90 00 [03:11:54]wFMCommunicate OK [03:11:54]SAM_PROTO_GetShiftState done [03:11:54]FM_GetShiftState done [03:11:54]req_shift_opened done [03:11:54]requested_item shift.open_date is exist - process it [03:11:54]req_shift_open_date [03:11:54]req_shift_open_date done [03:11:54]produce_requested_data done [03:11:54]produce_requested_data return {"fm.sn":"0000000000875019","fd.num":112529,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170} [03:11:54]process_action_free close_receipt [03:11:54]json_value_free [03:11:55]json_value_free done [03:11:55]process_json_proto returns [03:11:55]Send response to host [03:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000875019","fd.num":112529,"shift.num":358,"shift.opened":1,"shift.open_date":1713141170}}} [03:11:55]free response buf [03:11:55]execute_script done [03:11:55]execute_script returns [03:11:55]free content buf [03:11:55]Sock 9.Close socket [03:11:55]Sock 9.Thread stoped [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send